@inkeep/agents-core 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-QPOB7LI5.js → chunk-C2QU7WTO.js} +2 -1
- package/dist/{chunk-TE25X6YU.js → chunk-OSAGBXSF.js} +25 -31
- package/dist/{chunk-YD4OSCYB.js → chunk-T5TTDZ6L.js} +2 -1
- package/dist/client-exports.cjs +9 -2
- package/dist/client-exports.d.cts +7 -2
- package/dist/client-exports.d.ts +7 -2
- package/dist/client-exports.js +8 -3
- package/dist/db/schema.cjs +2 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +100 -151
- package/dist/index.d.cts +12 -14
- package/dist/index.d.ts +12 -14
- package/dist/index.js +79 -126
- package/dist/{schema-Y8eFxpzw.d.ts → schema-BQf2wGSE.d.ts} +26 -7
- package/dist/{schema-D_tjHvOp.d.cts → schema-C-rqra-r.d.cts} +26 -7
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{utility-ne-rF1pW.d.cts → utility-C5D70uSj.d.cts} +98 -87
- package/dist/{utility-ne-rF1pW.d.ts → utility-C5D70uSj.d.ts} +98 -87
- package/dist/validation/index.cjs +107 -111
- package/dist/validation/index.d.cts +10 -10
- package/dist/validation/index.d.ts +10 -10
- package/dist/validation/index.js +2 -2
- package/drizzle/0013_shocking_blur.sql +19 -0
- package/drizzle/0014_broad_hellfire_club.sql +29 -0
- package/drizzle/meta/0013_snapshot.json +2988 -0
- package/drizzle/meta/0014_snapshot.json +2992 -0
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -213698,7 +213698,7 @@ var dataComponents = sqliteCore.sqliteTable(
|
|
|
213698
213698
|
...projectScoped,
|
|
213699
213699
|
...uiProperties,
|
|
213700
213700
|
props: sqliteCore.blob("props", { mode: "json" }).$type(),
|
|
213701
|
-
|
|
213701
|
+
render: sqliteCore.blob("render", { mode: "json" }).$type(),
|
|
213702
213702
|
...timestamps
|
|
213703
213703
|
},
|
|
213704
213704
|
(table) => [
|
|
@@ -214051,6 +214051,7 @@ var credentialReferences = sqliteCore.sqliteTable(
|
|
|
214051
214051
|
"credential_references",
|
|
214052
214052
|
{
|
|
214053
214053
|
...projectScoped,
|
|
214054
|
+
name: sqliteCore.text("name").notNull(),
|
|
214054
214055
|
type: sqliteCore.text("type").notNull(),
|
|
214055
214056
|
credentialStoreId: sqliteCore.text("credential_store_id").notNull(),
|
|
214056
214057
|
retrievalParams: sqliteCore.blob("retrieval_params", { mode: "json" }).$type(),
|
|
@@ -214791,6 +214792,7 @@ var CredentialReferenceSelectSchema = zodOpenapi.z.object({
|
|
|
214791
214792
|
id: zodOpenapi.z.string(),
|
|
214792
214793
|
tenantId: zodOpenapi.z.string(),
|
|
214793
214794
|
projectId: zodOpenapi.z.string(),
|
|
214795
|
+
name: zodOpenapi.z.string(),
|
|
214794
214796
|
type: zodOpenapi.z.string(),
|
|
214795
214797
|
credentialStoreId: zodOpenapi.z.string(),
|
|
214796
214798
|
retrievalParams: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).nullish(),
|
|
@@ -218971,6 +218973,7 @@ var upsertCredentialReference = (db) => async (params) => {
|
|
|
218971
218973
|
scopes,
|
|
218972
218974
|
id: params.data.id,
|
|
218973
218975
|
data: {
|
|
218976
|
+
name: params.data.name,
|
|
218974
218977
|
type: params.data.type,
|
|
218975
218978
|
credentialStoreId: params.data.credentialStoreId,
|
|
218976
218979
|
retrievalParams: params.data.retrievalParams
|
|
@@ -219152,7 +219155,8 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
|
|
|
219152
219155
|
logger: logger8
|
|
219153
219156
|
});
|
|
219154
219157
|
status = toolNeedsAuth ? "needs_auth" : "unhealthy";
|
|
219155
|
-
|
|
219158
|
+
const errorMessage = error instanceof Error ? error.message : "Tool discovery failed";
|
|
219159
|
+
lastErrorComputed = toolNeedsAuth ? `Authentication required - OAuth login needed. ${errorMessage}` : errorMessage;
|
|
219156
219160
|
}
|
|
219157
219161
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
219158
219162
|
await updateTool(dbClient)({
|
|
@@ -220245,7 +220249,7 @@ var upsertArtifactComponent = (db) => async (params) => {
|
|
|
220245
220249
|
}
|
|
220246
220250
|
};
|
|
220247
220251
|
|
|
220248
|
-
// src/validation/
|
|
220252
|
+
// src/validation/render-validation.ts
|
|
220249
220253
|
var MAX_CODE_SIZE = 5e4;
|
|
220250
220254
|
var MAX_DATA_SIZE = 1e4;
|
|
220251
220255
|
var DANGEROUS_PATTERNS = [
|
|
@@ -220283,71 +220287,65 @@ var DANGEROUS_PATTERNS = [
|
|
|
220283
220287
|
}
|
|
220284
220288
|
];
|
|
220285
220289
|
var ALLOWED_IMPORTS = ["lucide-react"];
|
|
220286
|
-
function
|
|
220290
|
+
function validateRender(render) {
|
|
220287
220291
|
const errors = [];
|
|
220288
|
-
if (!
|
|
220292
|
+
if (!render.component || typeof render.component !== "string") {
|
|
220289
220293
|
return {
|
|
220290
220294
|
isValid: false,
|
|
220291
|
-
errors: [{ field: "
|
|
220295
|
+
errors: [{ field: "render.component", message: "Component must be a non-empty string" }]
|
|
220292
220296
|
};
|
|
220293
220297
|
}
|
|
220294
|
-
if (!
|
|
220298
|
+
if (!render.mockData || typeof render.mockData !== "object") {
|
|
220295
220299
|
return {
|
|
220296
220300
|
isValid: false,
|
|
220297
|
-
errors: [{ field: "
|
|
220301
|
+
errors: [{ field: "render.mockData", message: "MockData must be an object" }]
|
|
220298
220302
|
};
|
|
220299
220303
|
}
|
|
220300
|
-
if (
|
|
220304
|
+
if (render.component.length > MAX_CODE_SIZE) {
|
|
220301
220305
|
errors.push({
|
|
220302
|
-
field: "
|
|
220303
|
-
message: `
|
|
220306
|
+
field: "render.component",
|
|
220307
|
+
message: `Component size exceeds maximum allowed (${MAX_CODE_SIZE} characters)`
|
|
220304
220308
|
});
|
|
220305
220309
|
}
|
|
220306
|
-
const dataString = JSON.stringify(
|
|
220310
|
+
const dataString = JSON.stringify(render.mockData);
|
|
220307
220311
|
if (dataString.length > MAX_DATA_SIZE) {
|
|
220308
220312
|
errors.push({
|
|
220309
|
-
field: "
|
|
220310
|
-
message: `
|
|
220313
|
+
field: "render.mockData",
|
|
220314
|
+
message: `MockData size exceeds maximum allowed (${MAX_DATA_SIZE} characters)`
|
|
220311
220315
|
});
|
|
220312
220316
|
}
|
|
220313
220317
|
for (const { pattern, message } of DANGEROUS_PATTERNS) {
|
|
220314
|
-
if (pattern.test(
|
|
220318
|
+
if (pattern.test(render.component)) {
|
|
220315
220319
|
errors.push({
|
|
220316
|
-
field: "
|
|
220317
|
-
message: `
|
|
220320
|
+
field: "render.component",
|
|
220321
|
+
message: `Component contains potentially dangerous pattern: ${message}`
|
|
220318
220322
|
});
|
|
220319
220323
|
}
|
|
220320
220324
|
}
|
|
220321
|
-
const importMatches =
|
|
220325
|
+
const importMatches = render.component.matchAll(/import\s+.*?\s+from\s+['"]([^'"]+)['"]/g);
|
|
220322
220326
|
for (const match2 of importMatches) {
|
|
220323
220327
|
const importPath = match2[1];
|
|
220324
|
-
if (!ALLOWED_IMPORTS.includes(importPath)) {
|
|
220328
|
+
if (!ALLOWED_IMPORTS.includes(importPath) && !importPath.startsWith(".")) {
|
|
220325
220329
|
errors.push({
|
|
220326
|
-
field: "
|
|
220330
|
+
field: "render.component",
|
|
220327
220331
|
message: `Import from "${importPath}" is not allowed. Only imports from ${ALLOWED_IMPORTS.join(", ")} are permitted`
|
|
220328
220332
|
});
|
|
220329
220333
|
}
|
|
220330
220334
|
}
|
|
220331
|
-
const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(
|
|
220335
|
+
const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(render.component);
|
|
220332
220336
|
if (!hasFunctionDeclaration) {
|
|
220333
220337
|
errors.push({
|
|
220334
|
-
field: "
|
|
220335
|
-
message: "
|
|
220338
|
+
field: "render.component",
|
|
220339
|
+
message: "Component must contain a function declaration"
|
|
220336
220340
|
});
|
|
220337
220341
|
}
|
|
220338
|
-
const hasReturn = /return\s*\(?\s*</.test(
|
|
220342
|
+
const hasReturn = /return\s*\(?\s*</.test(render.component);
|
|
220339
220343
|
if (!hasReturn) {
|
|
220340
220344
|
errors.push({
|
|
220341
|
-
field: "
|
|
220345
|
+
field: "render.component",
|
|
220342
220346
|
message: "Component function must have a return statement with JSX"
|
|
220343
220347
|
});
|
|
220344
220348
|
}
|
|
220345
|
-
if (/\bexport\s+(default\s+)?/i.test(preview2.code)) {
|
|
220346
|
-
errors.push({
|
|
220347
|
-
field: "preview.code",
|
|
220348
|
-
message: "Code should not contain export statements"
|
|
220349
|
-
});
|
|
220350
|
-
}
|
|
220351
220349
|
return {
|
|
220352
220350
|
isValid: errors.length === 0,
|
|
220353
220351
|
errors
|
|
@@ -220406,11 +220404,15 @@ var createDataComponent = (db) => async (params) => {
|
|
|
220406
220404
|
throw new Error(`Invalid props schema: ${errorMessages}`);
|
|
220407
220405
|
}
|
|
220408
220406
|
}
|
|
220409
|
-
if (params.
|
|
220410
|
-
|
|
220411
|
-
|
|
220412
|
-
|
|
220413
|
-
|
|
220407
|
+
if (params.render !== void 0 && params.render !== null) {
|
|
220408
|
+
if (typeof params.render === "object" && params.render !== null && "component" in params.render && "mockData" in params.render) {
|
|
220409
|
+
const renderValidation = validateRender(
|
|
220410
|
+
params.render
|
|
220411
|
+
);
|
|
220412
|
+
if (!renderValidation.isValid) {
|
|
220413
|
+
const errorMessages = renderValidation.errors.map((e) => `${e.field}: ${e.message}`).join(", ");
|
|
220414
|
+
throw new Error(`Invalid render: ${errorMessages}`);
|
|
220415
|
+
}
|
|
220414
220416
|
}
|
|
220415
220417
|
}
|
|
220416
220418
|
const dataComponent = await db.insert(dataComponents).values(params).returning();
|
|
@@ -220424,11 +220426,15 @@ var updateDataComponent = (db) => async (params) => {
|
|
|
220424
220426
|
throw new Error(`Invalid props schema: ${errorMessages}`);
|
|
220425
220427
|
}
|
|
220426
220428
|
}
|
|
220427
|
-
if (params.data.
|
|
220428
|
-
|
|
220429
|
-
|
|
220430
|
-
|
|
220431
|
-
|
|
220429
|
+
if (params.data.render !== void 0 && params.data.render !== null) {
|
|
220430
|
+
if (typeof params.data.render === "object" && params.data.render !== null && "component" in params.data.render && "mockData" in params.data.render) {
|
|
220431
|
+
const renderValidation = validateRender(
|
|
220432
|
+
params.data.render
|
|
220433
|
+
);
|
|
220434
|
+
if (!renderValidation.isValid) {
|
|
220435
|
+
const errorMessages = renderValidation.errors.map((e) => `${e.field}: ${e.message}`).join(", ");
|
|
220436
|
+
throw new Error(`Invalid render: ${errorMessages}`);
|
|
220437
|
+
}
|
|
220432
220438
|
}
|
|
220433
220439
|
}
|
|
220434
220440
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -220467,7 +220473,7 @@ var getDataComponentsForAgent = (db) => async (params) => {
|
|
|
220467
220473
|
props: dataComponents.props,
|
|
220468
220474
|
createdAt: dataComponents.createdAt,
|
|
220469
220475
|
updatedAt: dataComponents.updatedAt,
|
|
220470
|
-
|
|
220476
|
+
render: dataComponents.render
|
|
220471
220477
|
}).from(dataComponents).innerJoin(
|
|
220472
220478
|
subAgentDataComponents,
|
|
220473
220479
|
drizzleOrm.eq(dataComponents.id, subAgentDataComponents.dataComponentId)
|
|
@@ -223906,7 +223912,8 @@ var getFullProject = (db, logger15 = defaultLogger2) => async (params) => {
|
|
|
223906
223912
|
id: component.id,
|
|
223907
223913
|
name: component.name,
|
|
223908
223914
|
description: component.description,
|
|
223909
|
-
props: component.props
|
|
223915
|
+
props: component.props,
|
|
223916
|
+
render: component.render
|
|
223910
223917
|
};
|
|
223911
223918
|
}
|
|
223912
223919
|
logger15.info(
|
|
@@ -225711,8 +225718,9 @@ var KeyChainStore = class {
|
|
|
225711
225718
|
}
|
|
225712
225719
|
/**
|
|
225713
225720
|
* Set a credential in the keychain
|
|
225721
|
+
* @param metadata - Optional metadata (ignored by keychain store)
|
|
225714
225722
|
*/
|
|
225715
|
-
async set(key, value) {
|
|
225723
|
+
async set(key, value, _metadata) {
|
|
225716
225724
|
await this.initializationPromise;
|
|
225717
225725
|
if (!this.keytarAvailable || !this.keytar) {
|
|
225718
225726
|
this.logger.warn({ storeId: this.id, key }, "Keytar not available, cannot set credential");
|
|
@@ -225882,8 +225890,9 @@ var InMemoryCredentialStore = class {
|
|
|
225882
225890
|
* Set a credential in the in memory store.
|
|
225883
225891
|
* @param key - The key of the credential to set
|
|
225884
225892
|
* @param value - The value of the credential to set
|
|
225893
|
+
* @param metadata - Optional metadata (ignored by memory store)
|
|
225885
225894
|
*/
|
|
225886
|
-
async set(key, value) {
|
|
225895
|
+
async set(key, value, _metadata) {
|
|
225887
225896
|
this.credentials.set(key, value);
|
|
225888
225897
|
}
|
|
225889
225898
|
/**
|
|
@@ -225914,8 +225923,24 @@ var InMemoryCredentialStore = class {
|
|
|
225914
225923
|
var logger14 = getLogger("nango-credential-store");
|
|
225915
225924
|
var CredentialKeySchema = zod.z.object({
|
|
225916
225925
|
connectionId: zod.z.string().min(1, "connectionId must be a non-empty string"),
|
|
225917
|
-
providerConfigKey: zod.z.string().min(1, "providerConfigKey must be a non-empty string")
|
|
225926
|
+
providerConfigKey: zod.z.string().min(1, "providerConfigKey must be a non-empty string"),
|
|
225927
|
+
integrationDisplayName: zod.z.string().nullish()
|
|
225918
225928
|
});
|
|
225929
|
+
function parseCredentialKey(key) {
|
|
225930
|
+
try {
|
|
225931
|
+
const parsed = JSON.parse(key);
|
|
225932
|
+
return CredentialKeySchema.parse(parsed);
|
|
225933
|
+
} catch (error) {
|
|
225934
|
+
logger14.warn(
|
|
225935
|
+
{
|
|
225936
|
+
key: key.substring(0, 100),
|
|
225937
|
+
error: error instanceof Error ? error.message : "Unknown error"
|
|
225938
|
+
},
|
|
225939
|
+
"Failed to parse credential key"
|
|
225940
|
+
);
|
|
225941
|
+
return null;
|
|
225942
|
+
}
|
|
225943
|
+
}
|
|
225919
225944
|
var SUPPORTED_AUTH_MODES = [
|
|
225920
225945
|
"APP",
|
|
225921
225946
|
"API_KEY",
|
|
@@ -226059,45 +226084,12 @@ var NangoCredentialStore = class {
|
|
|
226059
226084
|
return null;
|
|
226060
226085
|
}
|
|
226061
226086
|
}
|
|
226062
|
-
/**
|
|
226063
|
-
* Optimize OAuth token data to fit within Nango's 1024 character limit for apiKey field
|
|
226064
|
-
* Strategy: Remove unnecessary fields
|
|
226065
|
-
*/
|
|
226066
|
-
optimizeOAuthTokenForNango(tokenData) {
|
|
226067
|
-
const parsed = JSON.parse(tokenData);
|
|
226068
|
-
const essential = {
|
|
226069
|
-
access_token: parsed.access_token,
|
|
226070
|
-
token_type: parsed.token_type,
|
|
226071
|
-
expires_in: parsed.expires_in,
|
|
226072
|
-
refresh_token: parsed.refresh_token
|
|
226073
|
-
};
|
|
226074
|
-
Object.keys(essential).forEach((key) => {
|
|
226075
|
-
if (essential[key] === void 0) {
|
|
226076
|
-
delete essential[key];
|
|
226077
|
-
}
|
|
226078
|
-
});
|
|
226079
|
-
const result = JSON.stringify(essential);
|
|
226080
|
-
if (result.length > 1024) {
|
|
226081
|
-
logger14.error(
|
|
226082
|
-
{
|
|
226083
|
-
originalLength: tokenData.length,
|
|
226084
|
-
essentialLength: result.length,
|
|
226085
|
-
accessTokenLength: parsed.access_token?.length || 0,
|
|
226086
|
-
refreshTokenLength: parsed.refresh_token?.length || 0
|
|
226087
|
-
},
|
|
226088
|
-
"OAuth token too large for Nango storage even after removing non-essential fields"
|
|
226089
|
-
);
|
|
226090
|
-
throw new Error(
|
|
226091
|
-
`OAuth token (${result.length} chars) exceeds Nango's 1024 character limit. Essential fields cannot be truncated without breaking functionality. Consider using keychain storage instead of Nango for this provider.`
|
|
226092
|
-
);
|
|
226093
|
-
}
|
|
226094
|
-
return result;
|
|
226095
|
-
}
|
|
226096
226087
|
/**
|
|
226097
226088
|
* Create an API key credential by setting up Nango integration and importing the connection
|
|
226098
226089
|
*/
|
|
226099
226090
|
async createNangoApiKeyConnection({
|
|
226100
|
-
|
|
226091
|
+
uniqueKey,
|
|
226092
|
+
displayName,
|
|
226101
226093
|
apiKeyToSet,
|
|
226102
226094
|
metadata
|
|
226103
226095
|
}) {
|
|
@@ -226107,12 +226099,12 @@ var NangoCredentialStore = class {
|
|
|
226107
226099
|
try {
|
|
226108
226100
|
const response2 = await this.nangoClient.createIntegration({
|
|
226109
226101
|
provider,
|
|
226110
|
-
unique_key:
|
|
226111
|
-
display_name:
|
|
226102
|
+
unique_key: uniqueKey,
|
|
226103
|
+
display_name: displayName
|
|
226112
226104
|
});
|
|
226113
226105
|
integration = response2.data;
|
|
226114
226106
|
} catch (error) {
|
|
226115
|
-
const existingIntegration = await this.fetchNangoIntegration(
|
|
226107
|
+
const existingIntegration = await this.fetchNangoIntegration(uniqueKey);
|
|
226116
226108
|
if (existingIntegration) {
|
|
226117
226109
|
integration = existingIntegration;
|
|
226118
226110
|
} else {
|
|
@@ -226120,20 +226112,16 @@ var NangoCredentialStore = class {
|
|
|
226120
226112
|
}
|
|
226121
226113
|
}
|
|
226122
226114
|
if (!integration) {
|
|
226123
|
-
throw new Error(`Integration '${
|
|
226115
|
+
throw new Error(`Integration '${uniqueKey}' not found`);
|
|
226124
226116
|
}
|
|
226125
226117
|
const importConnectionUrl = `${process.env.NANGO_SERVER_URL || "https://api.nango.dev"}/connections`;
|
|
226126
|
-
const optimizedApiKey = this.optimizeOAuthTokenForNango(apiKeyToSet);
|
|
226127
|
-
if (!optimizedApiKey) {
|
|
226128
|
-
throw new Error(`Failed to optimize OAuth token for Nango.`);
|
|
226129
|
-
}
|
|
226130
226118
|
const credentials = {
|
|
226131
226119
|
type: "API_KEY",
|
|
226132
|
-
apiKey:
|
|
226120
|
+
apiKey: apiKeyToSet
|
|
226133
226121
|
};
|
|
226134
226122
|
const body = {
|
|
226135
226123
|
provider_config_key: integration.unique_key,
|
|
226136
|
-
connection_id:
|
|
226124
|
+
connection_id: uniqueKey,
|
|
226137
226125
|
metadata,
|
|
226138
226126
|
credentials
|
|
226139
226127
|
};
|
|
@@ -226155,12 +226143,12 @@ var NangoCredentialStore = class {
|
|
|
226155
226143
|
logger14.error(
|
|
226156
226144
|
{
|
|
226157
226145
|
error: error instanceof Error ? error.message : "Unknown error",
|
|
226158
|
-
|
|
226146
|
+
displayName
|
|
226159
226147
|
},
|
|
226160
|
-
`Unexpected error creating API key credential '${
|
|
226148
|
+
`Unexpected error creating API key credential '${displayName}'`
|
|
226161
226149
|
);
|
|
226162
226150
|
throw new Error(
|
|
226163
|
-
`Failed to create API key credential '${
|
|
226151
|
+
`Failed to create API key credential '${displayName}': ${error instanceof Error ? error.message : "Unknown error"}`
|
|
226164
226152
|
);
|
|
226165
226153
|
}
|
|
226166
226154
|
}
|
|
@@ -226204,34 +226192,11 @@ var NangoCredentialStore = class {
|
|
|
226204
226192
|
*/
|
|
226205
226193
|
async get(key) {
|
|
226206
226194
|
try {
|
|
226207
|
-
|
|
226208
|
-
|
|
226209
|
-
parsedKey = JSON.parse(key);
|
|
226210
|
-
} catch (parseError) {
|
|
226211
|
-
logger14.warn(
|
|
226212
|
-
{
|
|
226213
|
-
storeId: this.id,
|
|
226214
|
-
key: key.substring(0, 50),
|
|
226215
|
-
// Log only first 100 chars to avoid log pollution
|
|
226216
|
-
error: parseError instanceof Error ? parseError.message : "Unknown parsing error"
|
|
226217
|
-
},
|
|
226218
|
-
"Invalid JSON format in credential key"
|
|
226219
|
-
);
|
|
226220
|
-
return null;
|
|
226221
|
-
}
|
|
226222
|
-
const validationResult = CredentialKeySchema.safeParse(parsedKey);
|
|
226223
|
-
if (!validationResult.success) {
|
|
226224
|
-
logger14.warn(
|
|
226225
|
-
{
|
|
226226
|
-
storeId: this.id,
|
|
226227
|
-
key: key.substring(0, 100),
|
|
226228
|
-
validationErrors: validationResult.error.issues
|
|
226229
|
-
},
|
|
226230
|
-
"Invalid credential key structure"
|
|
226231
|
-
);
|
|
226195
|
+
const parsedKey = parseCredentialKey(key);
|
|
226196
|
+
if (!parsedKey) {
|
|
226232
226197
|
return null;
|
|
226233
226198
|
}
|
|
226234
|
-
const { connectionId, providerConfigKey } =
|
|
226199
|
+
const { connectionId, providerConfigKey } = parsedKey;
|
|
226235
226200
|
const credentials = await this.fetchCredentialsFromNango({ connectionId, providerConfigKey });
|
|
226236
226201
|
if (!credentials) {
|
|
226237
226202
|
return null;
|
|
@@ -226251,13 +226216,20 @@ var NangoCredentialStore = class {
|
|
|
226251
226216
|
}
|
|
226252
226217
|
}
|
|
226253
226218
|
/**
|
|
226254
|
-
* Set credentials -
|
|
226219
|
+
* Set credentials - this is used to save bearer auth
|
|
226220
|
+
* Key format: JSON string with connectionId and providerConfigKey
|
|
226255
226221
|
*/
|
|
226256
|
-
async set(key, value) {
|
|
226222
|
+
async set(key, value, metadata = {}) {
|
|
226223
|
+
const parsedKey = parseCredentialKey(key);
|
|
226224
|
+
if (!parsedKey) {
|
|
226225
|
+
throw new Error(`Invalid credential key: ${key}`);
|
|
226226
|
+
}
|
|
226227
|
+
const { connectionId, providerConfigKey, integrationDisplayName } = parsedKey;
|
|
226257
226228
|
await this.createNangoApiKeyConnection({
|
|
226258
|
-
|
|
226229
|
+
uniqueKey: connectionId,
|
|
226230
|
+
displayName: integrationDisplayName ?? providerConfigKey,
|
|
226259
226231
|
apiKeyToSet: value,
|
|
226260
|
-
metadata
|
|
226232
|
+
metadata
|
|
226261
226233
|
});
|
|
226262
226234
|
}
|
|
226263
226235
|
/**
|
|
@@ -226283,34 +226255,11 @@ var NangoCredentialStore = class {
|
|
|
226283
226255
|
*/
|
|
226284
226256
|
async delete(key) {
|
|
226285
226257
|
try {
|
|
226286
|
-
|
|
226287
|
-
|
|
226288
|
-
parsedKey = JSON.parse(key);
|
|
226289
|
-
} catch (parseError) {
|
|
226290
|
-
logger14.warn(
|
|
226291
|
-
{
|
|
226292
|
-
storeId: this.id,
|
|
226293
|
-
key: key.substring(0, 50),
|
|
226294
|
-
// Log only first 100 chars to avoid log pollution
|
|
226295
|
-
error: parseError instanceof Error ? parseError.message : "Unknown parsing error"
|
|
226296
|
-
},
|
|
226297
|
-
"Invalid JSON format in credential key"
|
|
226298
|
-
);
|
|
226299
|
-
return false;
|
|
226300
|
-
}
|
|
226301
|
-
const validationResult = CredentialKeySchema.safeParse(parsedKey);
|
|
226302
|
-
if (!validationResult.success) {
|
|
226303
|
-
logger14.warn(
|
|
226304
|
-
{
|
|
226305
|
-
storeId: this.id,
|
|
226306
|
-
key: key.substring(0, 100),
|
|
226307
|
-
validationErrors: validationResult.error.issues
|
|
226308
|
-
},
|
|
226309
|
-
"Invalid credential key structure"
|
|
226310
|
-
);
|
|
226258
|
+
const parsedKey = parseCredentialKey(key);
|
|
226259
|
+
if (!parsedKey) {
|
|
226311
226260
|
return false;
|
|
226312
226261
|
}
|
|
226313
|
-
const { connectionId, providerConfigKey } =
|
|
226262
|
+
const { connectionId, providerConfigKey } = parsedKey;
|
|
226314
226263
|
await this.nangoClient.deleteConnection(providerConfigKey, connectionId);
|
|
226315
226264
|
return true;
|
|
226316
226265
|
} catch (error) {
|
|
@@ -227079,9 +227028,9 @@ exports.validateArtifactComponentReferences = validateArtifactComponentReference
|
|
|
227079
227028
|
exports.validateDataComponentReferences = validateDataComponentReferences;
|
|
227080
227029
|
exports.validateHeaders = validateHeaders;
|
|
227081
227030
|
exports.validateHttpRequestHeaders = validateHttpRequestHeaders;
|
|
227082
|
-
exports.validatePreview = validatePreview;
|
|
227083
227031
|
exports.validateProjectExists = validateProjectExists;
|
|
227084
227032
|
exports.validatePropsAsJsonSchema = validatePropsAsJsonSchema;
|
|
227033
|
+
exports.validateRender = validateRender;
|
|
227085
227034
|
exports.validateSubAgent = validateSubAgent;
|
|
227086
227035
|
exports.validateSubAgentExternalAgentRelations = validateSubAgentExternalAgentRelations;
|
|
227087
227036
|
exports.validateTargetAgent = validateTargetAgent;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-DN8jWUDE.cjs';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-DN8jWUDE.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-
|
|
6
|
-
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-ne-rF1pW.cjs';
|
|
5
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-C5D70uSj.cjs';
|
|
6
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-C5D70uSj.cjs';
|
|
7
7
|
import { CredentialStore } from './types/index.cjs';
|
|
8
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
9
9
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
10
|
-
import { s as schema } from './schema-
|
|
11
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-
|
|
10
|
+
import { s as schema } from './schema-C-rqra-r.cjs';
|
|
11
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-C-rqra-r.cjs';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
14
14
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -19,7 +19,7 @@ import { z as z$1 } from '@hono/zod-openapi';
|
|
|
19
19
|
import { HTTPException } from 'hono/http-exception';
|
|
20
20
|
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.cjs';
|
|
21
21
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
22
|
-
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema,
|
|
22
|
+
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, RenderValidationResult, TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from './validation/index.cjs';
|
|
23
23
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
24
24
|
import 'pino';
|
|
25
25
|
import 'drizzle-zod';
|
|
@@ -466,8 +466,9 @@ declare class KeyChainStore implements CredentialStore {
|
|
|
466
466
|
get(key: string): Promise<string | null>;
|
|
467
467
|
/**
|
|
468
468
|
* Set a credential in the keychain
|
|
469
|
+
* @param metadata - Optional metadata (ignored by keychain store)
|
|
469
470
|
*/
|
|
470
|
-
set(key: string, value: string): Promise<void>;
|
|
471
|
+
set(key: string, value: string, _metadata?: Record<string, string>): Promise<void>;
|
|
471
472
|
/**
|
|
472
473
|
* Check if a credential exists in the keychain
|
|
473
474
|
*/
|
|
@@ -549,8 +550,9 @@ declare class InMemoryCredentialStore implements CredentialStore {
|
|
|
549
550
|
* Set a credential in the in memory store.
|
|
550
551
|
* @param key - The key of the credential to set
|
|
551
552
|
* @param value - The value of the credential to set
|
|
553
|
+
* @param metadata - Optional metadata (ignored by memory store)
|
|
552
554
|
*/
|
|
553
|
-
set(key: string, value: string): Promise<void>;
|
|
555
|
+
set(key: string, value: string, _metadata?: Record<string, string>): Promise<void>;
|
|
554
556
|
/**
|
|
555
557
|
* Check if a credential exists in the in memory store.
|
|
556
558
|
* @param key - The key of the credential to check
|
|
@@ -592,11 +594,6 @@ declare class NangoCredentialStore implements CredentialStore {
|
|
|
592
594
|
* Fetch a specific Nango integration
|
|
593
595
|
*/
|
|
594
596
|
private fetchNangoIntegration;
|
|
595
|
-
/**
|
|
596
|
-
* Optimize OAuth token data to fit within Nango's 1024 character limit for apiKey field
|
|
597
|
-
* Strategy: Remove unnecessary fields
|
|
598
|
-
*/
|
|
599
|
-
private optimizeOAuthTokenForNango;
|
|
600
597
|
/**
|
|
601
598
|
* Create an API key credential by setting up Nango integration and importing the connection
|
|
602
599
|
*/
|
|
@@ -614,9 +611,10 @@ declare class NangoCredentialStore implements CredentialStore {
|
|
|
614
611
|
*/
|
|
615
612
|
get(key: string): Promise<string | null>;
|
|
616
613
|
/**
|
|
617
|
-
* Set credentials -
|
|
614
|
+
* Set credentials - this is used to save bearer auth
|
|
615
|
+
* Key format: JSON string with connectionId and providerConfigKey
|
|
618
616
|
*/
|
|
619
|
-
set(key: string, value: string): Promise<void>;
|
|
617
|
+
set(key: string, value: string, metadata?: Record<string, string>): Promise<void>;
|
|
620
618
|
/**
|
|
621
619
|
* Check if credentials exist by attempting to fetch them
|
|
622
620
|
*/
|