@inkeep/agents-core 0.0.0-dev-20250911072451 → 0.0.0-dev-20250911192304
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/client-exports.d.cts +1 -1
- package/dist/client-exports.d.ts +1 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/{entities-Cc3_mgG5.d.cts → entities-B59eRwT_.d.cts} +4 -14
- package/dist/{entities-Cc3_mgG5.d.ts → entities-B59eRwT_.d.ts} +4 -14
- package/dist/index.cjs +74 -211
- package/dist/index.d.cts +18 -32
- package/dist/index.d.ts +18 -32
- package/dist/index.js +75 -210
- package/dist/{schema-xZJcE9v-.d.ts → schema-B3zZJ85n.d.ts} +1 -1
- package/dist/{schema-DDI2Py7i.d.cts → schema-CzRwwW8E.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1525,40 +1525,6 @@ var PaginationQueryParamsSchema = zodOpenapi.z.object({
|
|
|
1525
1525
|
|
|
1526
1526
|
// src/context/ContextConfig.ts
|
|
1527
1527
|
var logger = getLogger("context-config");
|
|
1528
|
-
function createRequestSchema(schemas, config2) {
|
|
1529
|
-
const schemaConfig = {
|
|
1530
|
-
schemas,
|
|
1531
|
-
optional: config2?.optional
|
|
1532
|
-
};
|
|
1533
|
-
return {
|
|
1534
|
-
schemas,
|
|
1535
|
-
config: schemaConfig,
|
|
1536
|
-
// Convert all schemas to JSON Schema for storage
|
|
1537
|
-
toJsonSchema: () => {
|
|
1538
|
-
const jsonSchemas = {};
|
|
1539
|
-
if (schemas.body) {
|
|
1540
|
-
jsonSchemas.body = convertZodToJsonSchema(schemas.body);
|
|
1541
|
-
}
|
|
1542
|
-
if (schemas.headers) {
|
|
1543
|
-
jsonSchemas.headers = convertZodToJsonSchema(schemas.headers);
|
|
1544
|
-
}
|
|
1545
|
-
if (schemas.query) {
|
|
1546
|
-
jsonSchemas.query = convertZodToJsonSchema(schemas.query);
|
|
1547
|
-
}
|
|
1548
|
-
if (schemas.params) {
|
|
1549
|
-
jsonSchemas.params = convertZodToJsonSchema(schemas.params);
|
|
1550
|
-
}
|
|
1551
|
-
return {
|
|
1552
|
-
schemas: jsonSchemas,
|
|
1553
|
-
optional: schemaConfig.optional
|
|
1554
|
-
};
|
|
1555
|
-
},
|
|
1556
|
-
// Get the Zod schemas for runtime validation
|
|
1557
|
-
getZodSchemas: () => schemas,
|
|
1558
|
-
// Get the configuration including optional flags
|
|
1559
|
-
getConfig: () => schemaConfig
|
|
1560
|
-
};
|
|
1561
|
-
}
|
|
1562
1528
|
function convertZodToJsonSchema(zodSchema) {
|
|
1563
1529
|
try {
|
|
1564
1530
|
return v4.z.toJSONSchema(zodSchema, { target: "draft-7" });
|
|
@@ -1587,13 +1553,17 @@ var ContextConfigBuilder = class {
|
|
|
1587
1553
|
{
|
|
1588
1554
|
requestContextSchema: options.requestContextSchema
|
|
1589
1555
|
},
|
|
1590
|
-
"Converting request schema to JSON Schema for database storage"
|
|
1556
|
+
"Converting request headers schema to JSON Schema for database storage"
|
|
1591
1557
|
);
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1558
|
+
let schema = options.requestContextSchema;
|
|
1559
|
+
if (schema instanceof v4.z.ZodObject) {
|
|
1560
|
+
schema = schema.loose();
|
|
1561
|
+
logger.debug(
|
|
1562
|
+
{ schemaType: "ZodObject" },
|
|
1563
|
+
"Applied .loose() to ZodObject requestContextSchema for more permissive validation"
|
|
1564
|
+
);
|
|
1596
1565
|
}
|
|
1566
|
+
requestContextSchema = convertZodToJsonSchema(schema);
|
|
1597
1567
|
}
|
|
1598
1568
|
this.config = {
|
|
1599
1569
|
id: options.id,
|
|
@@ -7801,10 +7771,10 @@ var ContextResolver = class {
|
|
|
7801
7771
|
// src/middleware/contextValidation.ts
|
|
7802
7772
|
var logger7 = getLogger("context-validation");
|
|
7803
7773
|
var ajv = new Ajv__default.default({ allErrors: true, strict: false });
|
|
7804
|
-
var HTTP_REQUEST_PARTS = ["
|
|
7774
|
+
var HTTP_REQUEST_PARTS = ["headers"];
|
|
7805
7775
|
var schemaCache = /* @__PURE__ */ new Map();
|
|
7806
7776
|
function isValidHttpRequest(obj) {
|
|
7807
|
-
return obj != null && typeof obj === "object" && !Array.isArray(obj) &&
|
|
7777
|
+
return obj != null && typeof obj === "object" && !Array.isArray(obj) && "headers" in obj;
|
|
7808
7778
|
}
|
|
7809
7779
|
function getCachedValidator(schema) {
|
|
7810
7780
|
const key = JSON.stringify(schema);
|
|
@@ -7851,84 +7821,60 @@ function filterByJsonSchema(data, schema) {
|
|
|
7851
7821
|
}
|
|
7852
7822
|
return data;
|
|
7853
7823
|
}
|
|
7854
|
-
function filterContextToSchemaKeys(validatedContext,
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
} else if (typeof filteredPart !== "object") {
|
|
7865
|
-
filteredContext[part] = filteredPart;
|
|
7866
|
-
}
|
|
7867
|
-
}
|
|
7868
|
-
} else if (validatedContext[part]) {
|
|
7869
|
-
filteredContext[part] = validatedContext[part];
|
|
7824
|
+
function filterContextToSchemaKeys(validatedContext, headersSchema) {
|
|
7825
|
+
if (!headersSchema || !validatedContext) {
|
|
7826
|
+
return validatedContext;
|
|
7827
|
+
}
|
|
7828
|
+
const filteredHeaders = filterByJsonSchema(validatedContext, headersSchema);
|
|
7829
|
+
if (filteredHeaders !== null && filteredHeaders !== void 0) {
|
|
7830
|
+
if (typeof filteredHeaders === "object" && Object.keys(filteredHeaders).length > 0) {
|
|
7831
|
+
return filteredHeaders;
|
|
7832
|
+
} else if (typeof filteredHeaders !== "object") {
|
|
7833
|
+
return filteredHeaders;
|
|
7870
7834
|
}
|
|
7871
7835
|
}
|
|
7872
|
-
return
|
|
7873
|
-
}
|
|
7874
|
-
function filterLegacyContextToSchemaKeys(validatedContext, jsonSchema) {
|
|
7875
|
-
return filterByJsonSchema(validatedContext, jsonSchema);
|
|
7836
|
+
return {};
|
|
7876
7837
|
}
|
|
7877
|
-
function
|
|
7878
|
-
return schema && typeof schema === "object" && "schemas" in schema && typeof schema.schemas === "object";
|
|
7879
|
-
}
|
|
7880
|
-
async function validateHttpRequestParts(comprehensiveSchema, httpRequest) {
|
|
7838
|
+
async function validateHttpRequestHeaders(headersSchema, httpRequest) {
|
|
7881
7839
|
const errors = [];
|
|
7882
|
-
|
|
7840
|
+
let validatedContext = {};
|
|
7883
7841
|
if (!isValidHttpRequest(httpRequest)) {
|
|
7884
7842
|
return {
|
|
7885
7843
|
valid: false,
|
|
7886
7844
|
errors: [
|
|
7887
7845
|
{
|
|
7888
7846
|
field: "httpRequest",
|
|
7889
|
-
message: "Invalid HTTP request format - must contain
|
|
7847
|
+
message: "Invalid HTTP request format - must contain headers"
|
|
7890
7848
|
}
|
|
7891
7849
|
]
|
|
7892
7850
|
};
|
|
7893
7851
|
}
|
|
7894
7852
|
try {
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
if (
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
message: `${part} ${error.message}`,
|
|
7910
|
-
value: error.data
|
|
7911
|
-
});
|
|
7912
|
-
}
|
|
7853
|
+
if (headersSchema && httpRequest.headers !== void 0) {
|
|
7854
|
+
try {
|
|
7855
|
+
const validate = validationHelper(headersSchema);
|
|
7856
|
+
const isValid = validate(httpRequest.headers);
|
|
7857
|
+
if (isValid) {
|
|
7858
|
+
validatedContext = httpRequest.headers;
|
|
7859
|
+
} else {
|
|
7860
|
+
if (validate.errors) {
|
|
7861
|
+
for (const error of validate.errors) {
|
|
7862
|
+
errors.push({
|
|
7863
|
+
field: `headers.${error.instancePath || "root"}`,
|
|
7864
|
+
message: `headers ${error.message}`,
|
|
7865
|
+
value: error.data
|
|
7866
|
+
});
|
|
7913
7867
|
}
|
|
7914
7868
|
}
|
|
7915
|
-
} catch (validationError) {
|
|
7916
|
-
errors.push({
|
|
7917
|
-
field: part,
|
|
7918
|
-
message: `Failed to validate ${part}: ${validationError instanceof Error ? validationError.message : "Unknown error"}`
|
|
7919
|
-
});
|
|
7920
|
-
}
|
|
7921
|
-
} else if (schemas[part] && httpRequest[part] === void 0) {
|
|
7922
|
-
const isPartOptional = optional.includes(part);
|
|
7923
|
-
if (!isPartOptional) {
|
|
7924
|
-
errors.push({
|
|
7925
|
-
field: part,
|
|
7926
|
-
message: `Required ${part} is missing`
|
|
7927
|
-
});
|
|
7928
7869
|
}
|
|
7870
|
+
} catch (validationError) {
|
|
7871
|
+
errors.push({
|
|
7872
|
+
field: "headers",
|
|
7873
|
+
message: `Failed to validate headers: ${validationError instanceof Error ? validationError.message : "Unknown error"}`
|
|
7874
|
+
});
|
|
7929
7875
|
}
|
|
7930
7876
|
}
|
|
7931
|
-
const filteredContext = errors.length === 0 ? filterContextToSchemaKeys(
|
|
7877
|
+
const filteredContext = errors.length === 0 ? filterContextToSchemaKeys(validatedContext, headersSchema) : void 0;
|
|
7932
7878
|
return {
|
|
7933
7879
|
valid: errors.length === 0,
|
|
7934
7880
|
errors,
|
|
@@ -7937,14 +7883,14 @@ async function validateHttpRequestParts(comprehensiveSchema, httpRequest) {
|
|
|
7937
7883
|
} catch (error) {
|
|
7938
7884
|
logger7.error(
|
|
7939
7885
|
{ error: error instanceof Error ? error.message : "Unknown error" },
|
|
7940
|
-
"Failed to validate
|
|
7886
|
+
"Failed to validate headers schema"
|
|
7941
7887
|
);
|
|
7942
7888
|
return {
|
|
7943
7889
|
valid: false,
|
|
7944
7890
|
errors: [
|
|
7945
7891
|
{
|
|
7946
7892
|
field: "schema",
|
|
7947
|
-
message: "Failed to validate
|
|
7893
|
+
message: "Failed to validate headers schema"
|
|
7948
7894
|
}
|
|
7949
7895
|
]
|
|
7950
7896
|
};
|
|
@@ -8017,92 +7963,30 @@ async function validateRequestContext(tenantId, projectId, graphId, conversation
|
|
|
8017
7963
|
}
|
|
8018
7964
|
try {
|
|
8019
7965
|
const schema = contextConfig2.requestContextSchema;
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
return validationResult;
|
|
8045
|
-
}
|
|
8046
|
-
} else {
|
|
8047
|
-
logger7.debug({ contextConfigId: contextConfig2.id }, "Using legacy JSON schema validation");
|
|
8048
|
-
const jsonSchema = schema;
|
|
8049
|
-
const validate = validationHelper(jsonSchema);
|
|
8050
|
-
const isValid = validate(legacyRequestContext);
|
|
8051
|
-
if (isValid) {
|
|
8052
|
-
logger7.debug(
|
|
8053
|
-
{
|
|
8054
|
-
contextConfigId: contextConfig2.id,
|
|
8055
|
-
requestContextKeys: Object.keys(legacyRequestContext)
|
|
8056
|
-
},
|
|
8057
|
-
"Request context validation successful"
|
|
8058
|
-
);
|
|
8059
|
-
const filteredContext = filterLegacyContextToSchemaKeys(
|
|
8060
|
-
legacyRequestContext,
|
|
8061
|
-
jsonSchema
|
|
8062
|
-
);
|
|
8063
|
-
return {
|
|
8064
|
-
valid: true,
|
|
8065
|
-
errors: [],
|
|
8066
|
-
validatedContext: filteredContext
|
|
8067
|
-
};
|
|
8068
|
-
}
|
|
8069
|
-
const errors = [];
|
|
8070
|
-
if (validate.errors) {
|
|
8071
|
-
for (const error of validate.errors) {
|
|
8072
|
-
errors.push({
|
|
8073
|
-
field: error.instancePath || error.schemaPath || "root",
|
|
8074
|
-
message: `${error.instancePath || "root"} ${error.message}`,
|
|
8075
|
-
value: error.data
|
|
8076
|
-
});
|
|
8077
|
-
}
|
|
8078
|
-
}
|
|
8079
|
-
logger7.warn(
|
|
8080
|
-
{
|
|
8081
|
-
contextConfigId: contextConfig2.id,
|
|
8082
|
-
legacyRequestContext,
|
|
8083
|
-
errors
|
|
8084
|
-
},
|
|
8085
|
-
"Legacy request context validation failed, trying cache fallback"
|
|
8086
|
-
);
|
|
8087
|
-
try {
|
|
8088
|
-
return await fetchExistingRequestContext({
|
|
8089
|
-
tenantId,
|
|
8090
|
-
projectId,
|
|
8091
|
-
contextConfig: contextConfig2,
|
|
8092
|
-
conversationId,
|
|
8093
|
-
dbClient,
|
|
8094
|
-
credentialStores
|
|
8095
|
-
});
|
|
8096
|
-
} catch (_error) {
|
|
8097
|
-
errors.push({
|
|
8098
|
-
field: "requestContext",
|
|
8099
|
-
message: "Failed to fetch request context from cache"
|
|
8100
|
-
});
|
|
8101
|
-
return {
|
|
8102
|
-
valid: false,
|
|
8103
|
-
errors
|
|
8104
|
-
};
|
|
8105
|
-
}
|
|
7966
|
+
logger7.debug(
|
|
7967
|
+
{ contextConfigId: contextConfig2.id },
|
|
7968
|
+
"Using headers schema validation"
|
|
7969
|
+
);
|
|
7970
|
+
const httpRequest = parsedRequest;
|
|
7971
|
+
const validationResult = await validateHttpRequestHeaders(schema, httpRequest);
|
|
7972
|
+
if (validationResult.valid) {
|
|
7973
|
+
return validationResult;
|
|
7974
|
+
}
|
|
7975
|
+
try {
|
|
7976
|
+
return await fetchExistingRequestContext({
|
|
7977
|
+
tenantId,
|
|
7978
|
+
projectId,
|
|
7979
|
+
contextConfig: contextConfig2,
|
|
7980
|
+
conversationId,
|
|
7981
|
+
dbClient,
|
|
7982
|
+
credentialStores
|
|
7983
|
+
});
|
|
7984
|
+
} catch (_error) {
|
|
7985
|
+
validationResult.errors.push({
|
|
7986
|
+
field: "requestContext",
|
|
7987
|
+
message: "Failed to fetch request context from cache"
|
|
7988
|
+
});
|
|
7989
|
+
return validationResult;
|
|
8106
7990
|
}
|
|
8107
7991
|
} catch (error) {
|
|
8108
7992
|
logger7.error(
|
|
@@ -8157,30 +8041,13 @@ function contextValidationMiddleware(dbClient) {
|
|
|
8157
8041
|
}
|
|
8158
8042
|
const body = await c.req.json();
|
|
8159
8043
|
const conversationId = body.conversationId || "";
|
|
8160
|
-
let url;
|
|
8161
|
-
try {
|
|
8162
|
-
url = new URL(c.req.url);
|
|
8163
|
-
} catch (error) {
|
|
8164
|
-
logger7.warn(
|
|
8165
|
-
{ error: error instanceof Error ? error.message : "Unknown error" },
|
|
8166
|
-
`Invalid URL: ${c.req.url}`
|
|
8167
|
-
);
|
|
8168
|
-
return c.json({ error: "Invalid request URL" }, 400);
|
|
8169
|
-
}
|
|
8170
|
-
const query = {};
|
|
8171
|
-
for (const [key, value] of url.searchParams) {
|
|
8172
|
-
query[key] = value;
|
|
8173
|
-
}
|
|
8174
8044
|
const headers = {};
|
|
8175
8045
|
c.req.raw.headers.forEach((value, key) => {
|
|
8176
8046
|
headers[key.toLowerCase()] = value;
|
|
8177
8047
|
});
|
|
8178
8048
|
const credentialStores = c.get("credentialStores");
|
|
8179
8049
|
const parsedRequest = {
|
|
8180
|
-
|
|
8181
|
-
headers,
|
|
8182
|
-
query,
|
|
8183
|
-
params: c.req.param() || {}
|
|
8050
|
+
headers
|
|
8184
8051
|
};
|
|
8185
8052
|
const validationResult = await validateRequestContext(
|
|
8186
8053
|
tenantId,
|
|
@@ -8189,9 +8056,7 @@ function contextValidationMiddleware(dbClient) {
|
|
|
8189
8056
|
conversationId,
|
|
8190
8057
|
parsedRequest,
|
|
8191
8058
|
dbClient,
|
|
8192
|
-
credentialStores
|
|
8193
|
-
body.requestContext
|
|
8194
|
-
);
|
|
8059
|
+
credentialStores);
|
|
8195
8060
|
if (!validationResult.valid) {
|
|
8196
8061
|
logger7.warn(
|
|
8197
8062
|
{
|
|
@@ -9608,7 +9473,6 @@ exports.createMessage = createMessage;
|
|
|
9608
9473
|
exports.createNangoCredentialStore = createNangoCredentialStore;
|
|
9609
9474
|
exports.createOrGetConversation = createOrGetConversation;
|
|
9610
9475
|
exports.createProject = createProject;
|
|
9611
|
-
exports.createRequestSchema = createRequestSchema;
|
|
9612
9476
|
exports.createSpanName = createSpanName;
|
|
9613
9477
|
exports.createTask = createTask;
|
|
9614
9478
|
exports.createTool = createTool;
|
|
@@ -9727,7 +9591,6 @@ exports.invalidateInvocationDefinitionsCache = invalidateInvocationDefinitionsCa
|
|
|
9727
9591
|
exports.invalidateRequestContextCache = invalidateRequestContextCache;
|
|
9728
9592
|
exports.isApiKeyExpired = isApiKeyExpired;
|
|
9729
9593
|
exports.isArtifactComponentAssociatedWithAgent = isArtifactComponentAssociatedWithAgent;
|
|
9730
|
-
exports.isComprehensiveRequestSchema = isComprehensiveRequestSchema;
|
|
9731
9594
|
exports.isDataComponentAssociatedWithAgent = isDataComponentAssociatedWithAgent;
|
|
9732
9595
|
exports.isExternalAgent = isExternalAgent;
|
|
9733
9596
|
exports.isInternalAgent = isInternalAgent;
|
|
@@ -9826,7 +9689,7 @@ exports.validateArtifactComponentReferences = validateArtifactComponentReference
|
|
|
9826
9689
|
exports.validateDataComponentReferences = validateDataComponentReferences;
|
|
9827
9690
|
exports.validateExternalAgent = validateExternalAgent;
|
|
9828
9691
|
exports.validateGraphStructure = validateGraphStructure;
|
|
9829
|
-
exports.
|
|
9692
|
+
exports.validateHttpRequestHeaders = validateHttpRequestHeaders;
|
|
9830
9693
|
exports.validateInternalAgent = validateInternalAgent;
|
|
9831
9694
|
exports.validateProjectExists = validateProjectExists;
|
|
9832
9695
|
exports.validateRequestContext = validateRequestContext;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import {
|
|
3
|
-
export { aV as A2AError, bp as A2ARequest, bq as A2AResponse, au as APIKeySecurityScheme, bu as AgentApiInsert, dj as AgentApiInsertSchema, bt as AgentApiSelect, di as AgentApiSelectSchema, bv as AgentApiUpdate, dk as AgentApiUpdateSchema, cm as AgentArtifactComponentApiInsert, ev as AgentArtifactComponentApiInsertSchema, cl as AgentArtifactComponentApiSelect, eu as AgentArtifactComponentApiSelectSchema, cn as AgentArtifactComponentApiUpdate, ew as AgentArtifactComponentApiUpdateSchema, cj as AgentArtifactComponentInsert, es as AgentArtifactComponentInsertSchema, ci as AgentArtifactComponentSelect, er as AgentArtifactComponentSelectSchema, ck as AgentArtifactComponentUpdate, et as AgentArtifactComponentUpdateSchema, aq as AgentCapabilities, aE as AgentCard, c_ as AgentConversationHistoryConfig, cd as AgentDataComponentApiInsert, ej as AgentDataComponentApiInsertSchema, cc as AgentDataComponentApiSelect, ei as AgentDataComponentApiSelectSchema, ce as AgentDataComponentApiUpdate, ek as AgentDataComponentApiUpdateSchema, ca as AgentDataComponentInsert, eg as AgentDataComponentInsertSchema, c9 as AgentDataComponentSelect, ef as AgentDataComponentSelectSchema, cb as AgentDataComponentUpdate, eh as AgentDataComponentUpdateSchema, cL as AgentDefinition, bE as AgentGraphApiInsert, dz as AgentGraphApiInsertSchema, bD as AgentGraphApiSelect, dy as AgentGraphApiSelectSchema, bF as AgentGraphApiUpdate, dA as AgentGraphApiUpdateSchema, dw as AgentGraphInsertSchema, bC as AgentGraphSelect, dv as AgentGraphSelectSchema, dx as AgentGraphUpdateSchema, dg as AgentInsertSchema, ar as AgentProvider, by as AgentRelationApiInsert, dq as AgentRelationApiInsertSchema, bx as AgentRelationApiSelect, dp as AgentRelationApiSelectSchema, bz as AgentRelationApiUpdate, dr as AgentRelationApiUpdateSchema, dm as AgentRelationInsertSchema, bA as AgentRelationQuery, ds as AgentRelationQuerySchema, bw as AgentRelationSelect, dl as AgentRelationSelectSchema, dn as AgentRelationUpdateSchema, df as AgentSelectSchema, as as AgentSkill, cC as AgentToolRelationApiInsert, f7 as AgentToolRelationApiInsertSchema, cB as AgentToolRelationApiSelect, f6 as AgentToolRelationApiSelectSchema, cD as AgentToolRelationApiUpdate, f8 as AgentToolRelationApiUpdateSchema, cA as AgentToolRelationInsert, f4 as AgentToolRelationInsertSchema, cz as AgentToolRelationSelect, f3 as AgentToolRelationSelectSchema, f5 as AgentToolRelationUpdateSchema, dh as AgentUpdateSchema, eD as AllAgentSchema, cr as AllAgentSelect, cv as ApiKeyApiCreationResponse, eI as ApiKeyApiCreationResponseSchema, ct as ApiKeyApiInsert, eJ as ApiKeyApiInsertSchema, cs as ApiKeyApiSelect, eH as ApiKeyApiSelectSchema, cu as ApiKeyApiUpdate, eK as ApiKeyApiUpdateSchema, eF as ApiKeyInsertSchema, eE as ApiKeySelectSchema, eG as ApiKeyUpdateSchema, cg as ArtifactComponentApiInsert, ep as ArtifactComponentApiInsertSchema, cf as ArtifactComponentApiSelect, eo as ArtifactComponentApiSelectSchema, ch as ArtifactComponentApiUpdate, eq as ArtifactComponentApiUpdateSchema, em as ArtifactComponentInsertSchema, el as ArtifactComponentSelectSchema, en as ArtifactComponentUpdateSchema, ax as AuthorizationCodeOAuthFlow, b9 as CancelTaskRequest, bk as CancelTaskResponse, bj as CancelTaskSuccessResponse, ay as ClientCredentialsOAuthFlow, aT as ContentTypeNotSupportedError, c4 as ContextCacheApiInsert, e6 as ContextCacheApiInsertSchema, c3 as ContextCacheApiSelect, e5 as ContextCacheApiSelectSchema, c5 as ContextCacheApiUpdate, e7 as ContextCacheApiUpdateSchema, c$ as ContextCacheEntry, e3 as ContextCacheInsertSchema, e2 as ContextCacheSelectSchema, c2 as ContextCacheUpdate, e4 as ContextCacheUpdateSchema, b$ as ContextConfigApiInsert, f1 as ContextConfigApiInsertSchema, b_ as ContextConfigApiSelect, f0 as ContextConfigApiSelectSchema, c0 as ContextConfigApiUpdate, f2 as ContextConfigApiUpdateSchema, e_ as ContextConfigInsertSchema, eZ as ContextConfigSelectSchema, e$ as ContextConfigUpdateSchema, bU as ConversationApiInsert, dW as ConversationApiInsertSchema, bT as ConversationApiSelect, dV as ConversationApiSelectSchema, bV as ConversationApiUpdate, dX as ConversationApiUpdateSchema, dT as ConversationInsertSchema, cZ as ConversationScopeOptions, dS as ConversationSelectSchema, dU as ConversationUpdateSchema, cx as CredentialReferenceApiInsert, eP as CredentialReferenceApiInsertSchema, cw as CredentialReferenceApiSelect, eO as CredentialReferenceApiSelectSchema, cy as CredentialReferenceApiUpdate, eQ as CredentialReferenceApiUpdateSchema, eM as CredentialReferenceInsertSchema, eL as CredentialReferenceSelectSchema, eN as CredentialReferenceUpdateSchema, c7 as DataComponentApiInsert, ed as DataComponentApiInsertSchema, c6 as DataComponentApiSelect, ec as DataComponentApiSelectSchema, c8 as DataComponentApiUpdate, ee as DataComponentApiUpdateSchema, ea as DataComponentBaseSchema, e9 as DataComponentInsertSchema, e8 as DataComponentSelectSchema, eb as DataComponentUpdateSchema, ao as DataPart, fm as ErrorResponseSchema, fn as ExistsResponseSchema, cp as ExternalAgentApiInsert, eB as ExternalAgentApiInsertSchema, co as ExternalAgentApiSelect, eA as ExternalAgentApiSelectSchema, cq as ExternalAgentApiUpdate, eC as ExternalAgentApiUpdateSchema, ey as ExternalAgentInsertSchema, bB as ExternalAgentRelationApiInsert, du as ExternalAgentRelationApiInsertSchema, dt as ExternalAgentRelationInsertSchema, ex as ExternalAgentSelectSchema, ez as ExternalAgentUpdateSchema, c1 as FetchConfig, eX as FetchConfigSchema, eY as FetchDefinitionSchema, ak as FileBase, an as FilePart, al as FileWithBytes, am as FileWithUri, cJ as FullGraphAgentInsert, fh as FullGraphAgentInsertSchema, fi as FullGraphDefinitionSchema, bb as GetTaskPushNotificationConfigRequest, bo as GetTaskPushNotificationConfigResponse, bn as GetTaskPushNotificationConfigSuccessResponse, b8 as GetTaskRequest, bi as GetTaskResponse, bh as GetTaskSuccessResponse, av as HTTPAuthSecurityScheme, fv as HeadersScopeSchema, fA as IdParamsSchema, az as ImplicitOAuthFlow, cK as InternalAgentDefinition, aO as InternalError, aU as InvalidAgentResponseError, aN as InvalidParamsError, aL as InvalidRequestError, aK as JSONParseError, b3 as JSONRPCError, b5 as JSONRPCErrorResponse, b1 as JSONRPCMessage, b2 as JSONRPCRequest, b4 as JSONRPCResult, cH as LedgerArtifactApiInsert, fd as LedgerArtifactApiInsertSchema, cG as LedgerArtifactApiSelect, fc as LedgerArtifactApiSelectSchema, cI as LedgerArtifactApiUpdate, fe as LedgerArtifactApiUpdateSchema, cE as LedgerArtifactInsert, fa as LedgerArtifactInsertSchema, f9 as LedgerArtifactSelectSchema, cF as LedgerArtifactUpdate, fb as LedgerArtifactUpdateSchema, fk as ListResponseSchema, d9 as MAX_ID_LENGTH, d7 as MCPServerType, eS as MCPToolConfigSchema, d8 as MIN_ID_LENGTH, d0 as McpAuthType, d1 as McpServerAuth, d3 as McpServerCapabilities, dP as McpToolDefinitionSchema, eR as McpToolSchema, d2 as McpTransportConfig, dN as McpTransportConfigSchema, aF as Message, bY as MessageApiInsert, e0 as MessageApiInsertSchema, bX as MessageApiSelect, d$ as MessageApiSelectSchema, bZ as MessageApiUpdate, e1 as MessageApiUpdateSchema, dZ as MessageInsertSchema, cT as MessageMode, br as MessagePart, cS as MessageRole, bW as MessageSelect, dY as MessageSelectSchema, a$ as MessageSendConfiguration, b0 as MessageSendParams, cR as MessageType, d_ as MessageUpdateSchema, aM as MethodNotFoundError, dd as ModelSchema, cW as ModelSettings, dc as ModelSettingsSchema, cU as Models, aB as OAuth2SecurityScheme, aw as OAuthFlows, aC as OpenIdConnectSecurityScheme, cQ as Pagination, fB as PaginationQueryParamsSchema, fj as PaginationSchema, P as Part, ai as PartBase, aA as PasswordOAuthFlow, cO as ProjectApiInsert, ft as ProjectApiInsertSchema, cN as ProjectApiSelect, fs as ProjectApiSelectSchema, cP as ProjectApiUpdate, fu as ProjectApiUpdateSchema, fq as ProjectInsertSchema, de as ProjectModelSchema, cV as ProjectModels, fp as ProjectSelectSchema, fr as ProjectUpdateSchema, aW as PushNotificationAuthenticationInfo, aX as PushNotificationConfig, aR as PushNotificationNotSupportedError, fo as RemovedResponseSchema, aD as SecurityScheme, at as SecuritySchemeBase, b6 as SendMessageRequest, be as SendMessageResponse, bd as SendMessageSuccessResponse, b7 as SendStreamingMessageRequest, bg as SendStreamingMessageResponse, bf as SendStreamingMessageSuccessResponse, ba as SetTaskPushNotificationConfigRequest, bm as SetTaskPushNotificationConfigResponse, bl as SetTaskPushNotificationConfigSuccessResponse, fl as SingleResponseSchema, cY as StatusComponent, ff as StatusComponentSchema, fg as StatusUpdateSchema, cX as StatusUpdateSettings, d5 as TOOL_STATUS_VALUES, aH as Task, bI as TaskApiInsert, dF as TaskApiInsertSchema, bH as TaskApiSelect, dE as TaskApiSelectSchema, bJ as TaskApiUpdate, dG as TaskApiUpdateSchema, bs as TaskArtifact, aJ as TaskArtifactUpdateEvent, aZ as TaskIdParams, dC as TaskInsertSchema, aQ as TaskNotCancelableError, aP as TaskNotFoundError, aY as TaskPushNotificationConfig, a_ as TaskQueryParams, bO as TaskRelationApiInsert, dL as TaskRelationApiInsertSchema, bN as TaskRelationApiSelect, dK as TaskRelationApiSelectSchema, bP as TaskRelationApiUpdate, dM as TaskRelationApiUpdateSchema, bL as TaskRelationInsert, dI as TaskRelationInsertSchema, bK as TaskRelationSelect, dH as TaskRelationSelectSchema, bM as TaskRelationUpdate, dJ as TaskRelationUpdateSchema, bc as TaskResubscriptionRequest, dB as TaskSelectSchema, ap as TaskState, aG as TaskStatus, aI as TaskStatusUpdateEvent, bG as TaskUpdate, dD as TaskUpdateSchema, fz as TenantIdParamsSchema, fw as TenantParamsSchema, fy as TenantProjectIdParamsSchema, fx as TenantProjectParamsSchema, aj as TextPart, bR as ToolApiInsert, eV as ToolApiInsertSchema, bQ as ToolApiSelect, eU as ToolApiSelectSchema, bS as ToolApiUpdate, eW as ToolApiUpdateSchema, cM as ToolDefinition, dR as ToolInsertSchema, dQ as ToolSelectSchema, dO as ToolStatusSchema, eT as ToolUpdateSchema, da as URL_SAFE_ID_PATTERN, aS as UnsupportedOperationError, d6 as VALID_RELATION_TYPES, db as resourceIdSchema, d4 as toolStatus } from './entities-Cc3_mgG5.cjs';
|
|
2
|
+
import { a as ContextFetchDefinition, i as ContextConfigSelect, F as FetchDefinition, M as MCPTransportType, j as MCPToolConfig, S as ScopeConfig, b as ConversationHistoryConfig, k as PaginationConfig, A as AgentGraphInsert, l as AgentGraphUpdate, m as FullGraphDefinition, n as AgentRelationInsert, E as ExternalAgentRelationInsert, o as AgentRelationUpdate, p as AgentToolRelationUpdate, c as ToolMcpConfig, d as ToolServerCapabilities, e as McpToolDefinition, q as AgentInsert, r as AgentUpdate, s as AgentSelect, t as ApiKeySelect, u as ApiKeyInsert, v as ApiKeyUpdate, w as CreateApiKeyParams, x as ApiKeyCreateResult, y as ArtifactComponentSelect, z as ArtifactComponentInsert, B as ArtifactComponentUpdate, D as ContextCacheSelect, G as ContextCacheInsert, H as ContextConfigInsert, I as ContextConfigUpdate, J as ConversationSelect, K as ConversationInsert, f as ConversationMetadata, L as ConversationUpdate, N as CredentialReferenceSelect, O as ToolSelect, Q as CredentialReferenceInsert, R as CredentialReferenceUpdate, U as DataComponentSelect, V as DataComponentInsert, W as DataComponentUpdate, X as ExternalAgentInsert, Y as ExternalAgentSelect, Z as ExternalAgentUpdate, _ as Artifact, $ as LedgerArtifactSelect, h as MessageMetadata, g as MessageContent, a0 as MessageVisibility, a1 as MessageInsert, a2 as MessageUpdate, a3 as ProjectInfo, a4 as ProjectSelect, a5 as PaginationResult, a6 as ProjectResourceCounts, a7 as ProjectInsert, a8 as ProjectUpdate, a9 as TaskInsert, T as TaskMetadataConfig, aa as TaskSelect, ab as McpTool, ac as McpToolStatus, ad as ToolInsert, ae as ToolUpdate, C as CredentialStoreType, af as ExecutionContext } from './entities-B59eRwT_.cjs';
|
|
3
|
+
export { aT as A2AError, bn as A2ARequest, bo as A2AResponse, as as APIKeySecurityScheme, bs as AgentApiInsert, dh as AgentApiInsertSchema, br as AgentApiSelect, dg as AgentApiSelectSchema, bt as AgentApiUpdate, di as AgentApiUpdateSchema, ck as AgentArtifactComponentApiInsert, et as AgentArtifactComponentApiInsertSchema, cj as AgentArtifactComponentApiSelect, es as AgentArtifactComponentApiSelectSchema, cl as AgentArtifactComponentApiUpdate, eu as AgentArtifactComponentApiUpdateSchema, ch as AgentArtifactComponentInsert, eq as AgentArtifactComponentInsertSchema, cg as AgentArtifactComponentSelect, ep as AgentArtifactComponentSelectSchema, ci as AgentArtifactComponentUpdate, er as AgentArtifactComponentUpdateSchema, ao as AgentCapabilities, aC as AgentCard, cY as AgentConversationHistoryConfig, cb as AgentDataComponentApiInsert, eh as AgentDataComponentApiInsertSchema, ca as AgentDataComponentApiSelect, eg as AgentDataComponentApiSelectSchema, cc as AgentDataComponentApiUpdate, ei as AgentDataComponentApiUpdateSchema, c8 as AgentDataComponentInsert, ee as AgentDataComponentInsertSchema, c7 as AgentDataComponentSelect, ed as AgentDataComponentSelectSchema, c9 as AgentDataComponentUpdate, ef as AgentDataComponentUpdateSchema, cJ as AgentDefinition, bC as AgentGraphApiInsert, dx as AgentGraphApiInsertSchema, bB as AgentGraphApiSelect, dw as AgentGraphApiSelectSchema, bD as AgentGraphApiUpdate, dy as AgentGraphApiUpdateSchema, du as AgentGraphInsertSchema, bA as AgentGraphSelect, dt as AgentGraphSelectSchema, dv as AgentGraphUpdateSchema, de as AgentInsertSchema, ap as AgentProvider, bw as AgentRelationApiInsert, dn as AgentRelationApiInsertSchema, bv as AgentRelationApiSelect, dm as AgentRelationApiSelectSchema, bx as AgentRelationApiUpdate, dp as AgentRelationApiUpdateSchema, dk as AgentRelationInsertSchema, by as AgentRelationQuery, dq as AgentRelationQuerySchema, bu as AgentRelationSelect, dj as AgentRelationSelectSchema, dl as AgentRelationUpdateSchema, dd as AgentSelectSchema, aq as AgentSkill, cA as AgentToolRelationApiInsert, f5 as AgentToolRelationApiInsertSchema, cz as AgentToolRelationApiSelect, f4 as AgentToolRelationApiSelectSchema, cB as AgentToolRelationApiUpdate, f6 as AgentToolRelationApiUpdateSchema, cy as AgentToolRelationInsert, f2 as AgentToolRelationInsertSchema, cx as AgentToolRelationSelect, f1 as AgentToolRelationSelectSchema, f3 as AgentToolRelationUpdateSchema, df as AgentUpdateSchema, eB as AllAgentSchema, cp as AllAgentSelect, ct as ApiKeyApiCreationResponse, eG as ApiKeyApiCreationResponseSchema, cr as ApiKeyApiInsert, eH as ApiKeyApiInsertSchema, cq as ApiKeyApiSelect, eF as ApiKeyApiSelectSchema, cs as ApiKeyApiUpdate, eI as ApiKeyApiUpdateSchema, eD as ApiKeyInsertSchema, eC as ApiKeySelectSchema, eE as ApiKeyUpdateSchema, ce as ArtifactComponentApiInsert, en as ArtifactComponentApiInsertSchema, cd as ArtifactComponentApiSelect, em as ArtifactComponentApiSelectSchema, cf as ArtifactComponentApiUpdate, eo as ArtifactComponentApiUpdateSchema, ek as ArtifactComponentInsertSchema, ej as ArtifactComponentSelectSchema, el as ArtifactComponentUpdateSchema, av as AuthorizationCodeOAuthFlow, b7 as CancelTaskRequest, bi as CancelTaskResponse, bh as CancelTaskSuccessResponse, aw as ClientCredentialsOAuthFlow, aR as ContentTypeNotSupportedError, c2 as ContextCacheApiInsert, e4 as ContextCacheApiInsertSchema, c1 as ContextCacheApiSelect, e3 as ContextCacheApiSelectSchema, c3 as ContextCacheApiUpdate, e5 as ContextCacheApiUpdateSchema, cZ as ContextCacheEntry, e1 as ContextCacheInsertSchema, e0 as ContextCacheSelectSchema, c0 as ContextCacheUpdate, e2 as ContextCacheUpdateSchema, bZ as ContextConfigApiInsert, e$ as ContextConfigApiInsertSchema, bY as ContextConfigApiSelect, e_ as ContextConfigApiSelectSchema, b_ as ContextConfigApiUpdate, f0 as ContextConfigApiUpdateSchema, eY as ContextConfigInsertSchema, eX as ContextConfigSelectSchema, eZ as ContextConfigUpdateSchema, bS as ConversationApiInsert, dU as ConversationApiInsertSchema, bR as ConversationApiSelect, dT as ConversationApiSelectSchema, bT as ConversationApiUpdate, dV as ConversationApiUpdateSchema, dR as ConversationInsertSchema, cX as ConversationScopeOptions, dQ as ConversationSelectSchema, dS as ConversationUpdateSchema, cv as CredentialReferenceApiInsert, eN as CredentialReferenceApiInsertSchema, cu as CredentialReferenceApiSelect, eM as CredentialReferenceApiSelectSchema, cw as CredentialReferenceApiUpdate, eO as CredentialReferenceApiUpdateSchema, eK as CredentialReferenceInsertSchema, eJ as CredentialReferenceSelectSchema, eL as CredentialReferenceUpdateSchema, c5 as DataComponentApiInsert, eb as DataComponentApiInsertSchema, c4 as DataComponentApiSelect, ea as DataComponentApiSelectSchema, c6 as DataComponentApiUpdate, ec as DataComponentApiUpdateSchema, e8 as DataComponentBaseSchema, e7 as DataComponentInsertSchema, e6 as DataComponentSelectSchema, e9 as DataComponentUpdateSchema, am as DataPart, fk as ErrorResponseSchema, fl as ExistsResponseSchema, cn as ExternalAgentApiInsert, ez as ExternalAgentApiInsertSchema, cm as ExternalAgentApiSelect, ey as ExternalAgentApiSelectSchema, co as ExternalAgentApiUpdate, eA as ExternalAgentApiUpdateSchema, ew as ExternalAgentInsertSchema, bz as ExternalAgentRelationApiInsert, ds as ExternalAgentRelationApiInsertSchema, dr as ExternalAgentRelationInsertSchema, ev as ExternalAgentSelectSchema, ex as ExternalAgentUpdateSchema, b$ as FetchConfig, eV as FetchConfigSchema, eW as FetchDefinitionSchema, ai as FileBase, al as FilePart, aj as FileWithBytes, ak as FileWithUri, cH as FullGraphAgentInsert, ff as FullGraphAgentInsertSchema, fg as FullGraphDefinitionSchema, b9 as GetTaskPushNotificationConfigRequest, bm as GetTaskPushNotificationConfigResponse, bl as GetTaskPushNotificationConfigSuccessResponse, b6 as GetTaskRequest, bg as GetTaskResponse, bf as GetTaskSuccessResponse, at as HTTPAuthSecurityScheme, ft as HeadersScopeSchema, fy as IdParamsSchema, ax as ImplicitOAuthFlow, cI as InternalAgentDefinition, aM as InternalError, aS as InvalidAgentResponseError, aL as InvalidParamsError, aJ as InvalidRequestError, aI as JSONParseError, b1 as JSONRPCError, b3 as JSONRPCErrorResponse, a$ as JSONRPCMessage, b0 as JSONRPCRequest, b2 as JSONRPCResult, cF as LedgerArtifactApiInsert, fb as LedgerArtifactApiInsertSchema, cE as LedgerArtifactApiSelect, fa as LedgerArtifactApiSelectSchema, cG as LedgerArtifactApiUpdate, fc as LedgerArtifactApiUpdateSchema, cC as LedgerArtifactInsert, f8 as LedgerArtifactInsertSchema, f7 as LedgerArtifactSelectSchema, cD as LedgerArtifactUpdate, f9 as LedgerArtifactUpdateSchema, fi as ListResponseSchema, d7 as MAX_ID_LENGTH, d5 as MCPServerType, eQ as MCPToolConfigSchema, d6 as MIN_ID_LENGTH, c_ as McpAuthType, c$ as McpServerAuth, d1 as McpServerCapabilities, dN as McpToolDefinitionSchema, eP as McpToolSchema, d0 as McpTransportConfig, dL as McpTransportConfigSchema, aD as Message, bW as MessageApiInsert, d_ as MessageApiInsertSchema, bV as MessageApiSelect, dZ as MessageApiSelectSchema, bX as MessageApiUpdate, d$ as MessageApiUpdateSchema, dX as MessageInsertSchema, cR as MessageMode, bp as MessagePart, cQ as MessageRole, bU as MessageSelect, dW as MessageSelectSchema, aZ as MessageSendConfiguration, a_ as MessageSendParams, cP as MessageType, dY as MessageUpdateSchema, aK as MethodNotFoundError, db as ModelSchema, cU as ModelSettings, da as ModelSettingsSchema, cS as Models, az as OAuth2SecurityScheme, au as OAuthFlows, aA as OpenIdConnectSecurityScheme, cO as Pagination, fz as PaginationQueryParamsSchema, fh as PaginationSchema, P as Part, ag as PartBase, ay as PasswordOAuthFlow, cM as ProjectApiInsert, fr as ProjectApiInsertSchema, cL as ProjectApiSelect, fq as ProjectApiSelectSchema, cN as ProjectApiUpdate, fs as ProjectApiUpdateSchema, fo as ProjectInsertSchema, dc as ProjectModelSchema, cT as ProjectModels, fn as ProjectSelectSchema, fp as ProjectUpdateSchema, aU as PushNotificationAuthenticationInfo, aV as PushNotificationConfig, aP as PushNotificationNotSupportedError, fm as RemovedResponseSchema, aB as SecurityScheme, ar as SecuritySchemeBase, b4 as SendMessageRequest, bc as SendMessageResponse, bb as SendMessageSuccessResponse, b5 as SendStreamingMessageRequest, be as SendStreamingMessageResponse, bd as SendStreamingMessageSuccessResponse, b8 as SetTaskPushNotificationConfigRequest, bk as SetTaskPushNotificationConfigResponse, bj as SetTaskPushNotificationConfigSuccessResponse, fj as SingleResponseSchema, cW as StatusComponent, fd as StatusComponentSchema, fe as StatusUpdateSchema, cV as StatusUpdateSettings, d3 as TOOL_STATUS_VALUES, aF as Task, bG as TaskApiInsert, dD as TaskApiInsertSchema, bF as TaskApiSelect, dC as TaskApiSelectSchema, bH as TaskApiUpdate, dE as TaskApiUpdateSchema, bq as TaskArtifact, aH as TaskArtifactUpdateEvent, aX as TaskIdParams, dA as TaskInsertSchema, aO as TaskNotCancelableError, aN as TaskNotFoundError, aW as TaskPushNotificationConfig, aY as TaskQueryParams, bM as TaskRelationApiInsert, dJ as TaskRelationApiInsertSchema, bL as TaskRelationApiSelect, dI as TaskRelationApiSelectSchema, bN as TaskRelationApiUpdate, dK as TaskRelationApiUpdateSchema, bJ as TaskRelationInsert, dG as TaskRelationInsertSchema, bI as TaskRelationSelect, dF as TaskRelationSelectSchema, bK as TaskRelationUpdate, dH as TaskRelationUpdateSchema, ba as TaskResubscriptionRequest, dz as TaskSelectSchema, an as TaskState, aE as TaskStatus, aG as TaskStatusUpdateEvent, bE as TaskUpdate, dB as TaskUpdateSchema, fx as TenantIdParamsSchema, fu as TenantParamsSchema, fw as TenantProjectIdParamsSchema, fv as TenantProjectParamsSchema, ah as TextPart, bP as ToolApiInsert, eT as ToolApiInsertSchema, bO as ToolApiSelect, eS as ToolApiSelectSchema, bQ as ToolApiUpdate, eU as ToolApiUpdateSchema, cK as ToolDefinition, dP as ToolInsertSchema, dO as ToolSelectSchema, dM as ToolStatusSchema, eR as ToolUpdateSchema, d8 as URL_SAFE_ID_PATTERN, aQ as UnsupportedOperationError, d4 as VALID_RELATION_TYPES, d9 as resourceIdSchema, d2 as toolStatus } from './entities-B59eRwT_.cjs';
|
|
4
4
|
import { CredentialStore } from './types/index.cjs';
|
|
5
5
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
6
6
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
7
|
-
import { s as schema } from './schema-
|
|
8
|
-
export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-
|
|
7
|
+
import { s as schema } from './schema-CzRwwW8E.cjs';
|
|
8
|
+
export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-CzRwwW8E.cjs';
|
|
9
9
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
10
10
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
11
11
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -21,23 +21,11 @@ import 'drizzle-zod';
|
|
|
21
21
|
import 'drizzle-orm/sqlite-core';
|
|
22
22
|
import 'drizzle-orm';
|
|
23
23
|
|
|
24
|
-
declare function createRequestSchema(schemas: RequestSchemaDefinition, config?: {
|
|
25
|
-
optional?: ('body' | 'headers' | 'query' | 'params')[];
|
|
26
|
-
}): {
|
|
27
|
-
schemas: RequestSchemaDefinition;
|
|
28
|
-
config: RequestSchemaConfig;
|
|
29
|
-
toJsonSchema: () => {
|
|
30
|
-
schemas: Record<string, any>;
|
|
31
|
-
optional: ("query" | "body" | "headers" | "params")[] | undefined;
|
|
32
|
-
};
|
|
33
|
-
getZodSchemas: () => RequestSchemaDefinition;
|
|
34
|
-
getConfig: () => RequestSchemaConfig;
|
|
35
|
-
};
|
|
36
24
|
interface ContextConfigBuilderOptions {
|
|
37
25
|
id: string;
|
|
38
26
|
name: string;
|
|
39
27
|
description?: string;
|
|
40
|
-
requestContextSchema?: z.ZodSchema<any
|
|
28
|
+
requestContextSchema?: z.ZodSchema<any>;
|
|
41
29
|
contextVariables?: Record<string, ContextFetchDefinition>;
|
|
42
30
|
tenantId?: string;
|
|
43
31
|
projectId?: string;
|
|
@@ -2718,8 +2706,8 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2718
2706
|
createdAt: string;
|
|
2719
2707
|
updatedAt: string;
|
|
2720
2708
|
metadata: MessageMetadata | null;
|
|
2721
|
-
role: string;
|
|
2722
2709
|
content: MessageContent;
|
|
2710
|
+
role: string;
|
|
2723
2711
|
conversationId: string;
|
|
2724
2712
|
agentId: string | null;
|
|
2725
2713
|
fromAgentId: string | null;
|
|
@@ -2844,8 +2832,8 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
2844
2832
|
createdAt: string;
|
|
2845
2833
|
updatedAt: string;
|
|
2846
2834
|
metadata: MessageMetadata | null;
|
|
2847
|
-
role: string;
|
|
2848
2835
|
content: MessageContent;
|
|
2836
|
+
role: string;
|
|
2849
2837
|
conversationId: string;
|
|
2850
2838
|
agentId: string | null;
|
|
2851
2839
|
fromAgentId: string | null;
|
|
@@ -2870,8 +2858,8 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2870
2858
|
createdAt: string;
|
|
2871
2859
|
updatedAt: string;
|
|
2872
2860
|
metadata: MessageMetadata | null;
|
|
2873
|
-
role: string;
|
|
2874
2861
|
content: MessageContent;
|
|
2862
|
+
role: string;
|
|
2875
2863
|
conversationId: string;
|
|
2876
2864
|
agentId: string | null;
|
|
2877
2865
|
fromAgentId: string | null;
|
|
@@ -2895,8 +2883,8 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2895
2883
|
createdAt: string;
|
|
2896
2884
|
updatedAt: string;
|
|
2897
2885
|
metadata: MessageMetadata | null;
|
|
2898
|
-
role: string;
|
|
2899
2886
|
content: MessageContent;
|
|
2887
|
+
role: string;
|
|
2900
2888
|
conversationId: string;
|
|
2901
2889
|
agentId: string | null;
|
|
2902
2890
|
fromAgentId: string | null;
|
|
@@ -3305,7 +3293,7 @@ declare const withProjectValidation: <T extends (...args: any[]) => Promise<any>
|
|
|
3305
3293
|
*/
|
|
3306
3294
|
declare const createValidatedDataAccess: <T extends Record<string, any>>(db: DatabaseClient, dataAccessFunctions: T) => T;
|
|
3307
3295
|
|
|
3308
|
-
declare const HTTP_REQUEST_PARTS: readonly ["
|
|
3296
|
+
declare const HTTP_REQUEST_PARTS: readonly ["headers"];
|
|
3309
3297
|
type HttpRequestPart = (typeof HTTP_REQUEST_PARTS)[number];
|
|
3310
3298
|
interface ContextValidationError {
|
|
3311
3299
|
field: string;
|
|
@@ -3318,23 +3306,16 @@ interface ContextValidationResult {
|
|
|
3318
3306
|
validatedContext?: Record<string, unknown> | ParsedHttpRequest;
|
|
3319
3307
|
}
|
|
3320
3308
|
interface ParsedHttpRequest {
|
|
3321
|
-
body?: any;
|
|
3322
3309
|
headers?: Record<string, string>;
|
|
3323
|
-
query?: Record<string, string>;
|
|
3324
|
-
params?: Record<string, string>;
|
|
3325
3310
|
}
|
|
3326
3311
|
declare function isValidHttpRequest(obj: any): obj is ParsedHttpRequest;
|
|
3327
3312
|
declare function getCachedValidator(schema: Record<string, unknown>): ValidateFunction;
|
|
3328
3313
|
declare function validationHelper(jsonSchema: Record<string, unknown>): ValidateFunction<unknown>;
|
|
3329
3314
|
declare function validateAgainstJsonSchema(jsonSchema: Record<string, unknown>, context: unknown): boolean;
|
|
3330
3315
|
/**
|
|
3331
|
-
*
|
|
3316
|
+
* Validates HTTP request headers against schema
|
|
3332
3317
|
*/
|
|
3333
|
-
declare function
|
|
3334
|
-
/**
|
|
3335
|
-
* Validates HTTP request parts against comprehensive schema
|
|
3336
|
-
*/
|
|
3337
|
-
declare function validateHttpRequestParts(comprehensiveSchema: any, httpRequest: ParsedHttpRequest): Promise<ContextValidationResult>;
|
|
3318
|
+
declare function validateHttpRequestHeaders(headersSchema: any, httpRequest: ParsedHttpRequest): Promise<ContextValidationResult>;
|
|
3338
3319
|
/**
|
|
3339
3320
|
* Validates request context against the JSON Schema stored in context configuration
|
|
3340
3321
|
* Supports both legacy simple schemas and new comprehensive HTTP request schemas
|
|
@@ -3345,6 +3326,11 @@ declare function validateRequestContext(tenantId: string, projectId: string, gra
|
|
|
3345
3326
|
*/
|
|
3346
3327
|
declare function contextValidationMiddleware(dbClient: DatabaseClient): (c: Context, next: Next) => Promise<void | (Response & hono.TypedResponse<{
|
|
3347
3328
|
error: string;
|
|
3329
|
+
details: {
|
|
3330
|
+
field: string;
|
|
3331
|
+
message: string;
|
|
3332
|
+
value?: undefined;
|
|
3333
|
+
}[];
|
|
3348
3334
|
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
3349
3335
|
error: string;
|
|
3350
3336
|
message: string;
|
|
@@ -3989,4 +3975,4 @@ declare function getGlobalTracer(): Tracer;
|
|
|
3989
3975
|
*/
|
|
3990
3976
|
declare function forceFlushTracer(): Promise<void>;
|
|
3991
3977
|
|
|
3992
|
-
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, BASE, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ConsoleLogger, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, FetchDefinition, type FetchResult, FullGraphDefinition, type GraphLogger, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type Logger$1 as Logger, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, McpToolDefinition, McpToolStatus, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, NoOpLogger, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, type ProblemDetails, ProjectInfo, ProjectInsert, ProjectResourceCounts, ProjectSelect, ProjectUpdate,
|
|
3978
|
+
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, BASE, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ConsoleLogger, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, FetchDefinition, type FetchResult, FullGraphDefinition, type GraphLogger, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type Logger$1 as Logger, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, McpToolDefinition, McpToolStatus, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, NoOpLogger, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, type ProblemDetails, ProjectInfo, ProjectInsert, ProjectResourceCounts, ProjectSelect, ProjectUpdate, type ResolvedContext, SERVICE_NAME, SERVICE_VERSION, ScopeConfig, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, configureLogging, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSpanName, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, forceFlushTracer, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraph, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentInGraphContext, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getGlobalTracer, getGraphAgentInfos, getHealthyToolsForAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsByStatus, getToolsForAgent, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, handleSpanError, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgentToolRelationsByAgent, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, listToolsByStatus, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateMessage, updateProject, updateTask, updateTool, updateToolStatus, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|