@inkeep/agents-core 0.0.0-dev-20251023175321 → 0.0.0-dev-20251024203414
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-OYTJILYZ.js → chunk-C2QU7WTO.js} +2 -1
- package/dist/{chunk-2GL6WAMT.js → chunk-OSAGBXSF.js} +1 -1
- package/dist/{chunk-FDR5SA4O.js → chunk-T5TTDZ6L.js} +1 -0
- package/dist/client-exports.cjs +3 -0
- package/dist/client-exports.d.cts +3 -2
- package/dist/client-exports.d.ts +3 -2
- package/dist/client-exports.js +3 -2
- package/dist/db/schema.cjs +1 -0
- 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 +65 -131
- package/dist/index.d.cts +12 -14
- package/dist/index.d.ts +12 -14
- package/dist/index.js +69 -137
- package/dist/{schema-O4RZSGWH.d.ts → schema-BQf2wGSE.d.ts} +20 -1
- package/dist/{schema-Dl4IdQS5.d.cts → schema-C-rqra-r.d.cts} +20 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{utility-aTj9Dhgx.d.cts → utility-C5D70uSj.d.cts} +11 -0
- package/dist/{utility-aTj9Dhgx.d.ts → utility-C5D70uSj.d.ts} +11 -0
- package/dist/validation/index.cjs +2 -0
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0014_broad_hellfire_club.sql +29 -0
- package/drizzle/meta/0014_snapshot.json +2992 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-
|
|
1
|
+
import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-T5TTDZ6L.js';
|
|
2
2
|
import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
|
|
@@ -361,6 +361,7 @@ var CredentialReferenceSelectSchema = z.object({
|
|
|
361
361
|
id: z.string(),
|
|
362
362
|
tenantId: z.string(),
|
|
363
363
|
projectId: z.string(),
|
|
364
|
+
name: z.string(),
|
|
364
365
|
type: z.string(),
|
|
365
366
|
credentialStoreId: z.string(),
|
|
366
367
|
retrievalParams: z.record(z.string(), z.unknown()).nullish(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-C2QU7WTO.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/validation/agentFull.ts
|
|
@@ -621,6 +621,7 @@ var credentialReferences = sqliteTable(
|
|
|
621
621
|
"credential_references",
|
|
622
622
|
{
|
|
623
623
|
...projectScoped,
|
|
624
|
+
name: text("name").notNull(),
|
|
624
625
|
type: text("type").notNull(),
|
|
625
626
|
credentialStoreId: text("credential_store_id").notNull(),
|
|
626
627
|
retrievalParams: blob("retrieval_params", { mode: "json" }).$type(),
|
package/dist/client-exports.cjs
CHANGED
|
@@ -595,6 +595,7 @@ var credentialReferences = sqliteCore.sqliteTable(
|
|
|
595
595
|
"credential_references",
|
|
596
596
|
{
|
|
597
597
|
...projectScoped,
|
|
598
|
+
name: sqliteCore.text("name").notNull(),
|
|
598
599
|
type: sqliteCore.text("type").notNull(),
|
|
599
600
|
credentialStoreId: sqliteCore.text("credential_store_id").notNull(),
|
|
600
601
|
retrievalParams: sqliteCore.blob("retrieval_params", { mode: "json" }).$type(),
|
|
@@ -1318,6 +1319,7 @@ var CredentialReferenceSelectSchema = zodOpenapi.z.object({
|
|
|
1318
1319
|
id: zodOpenapi.z.string(),
|
|
1319
1320
|
tenantId: zodOpenapi.z.string(),
|
|
1320
1321
|
projectId: zodOpenapi.z.string(),
|
|
1322
|
+
name: zodOpenapi.z.string(),
|
|
1321
1323
|
type: zodOpenapi.z.string(),
|
|
1322
1324
|
credentialStoreId: zodOpenapi.z.string(),
|
|
1323
1325
|
retrievalParams: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).nullish(),
|
|
@@ -2303,6 +2305,7 @@ var CredentialReferenceApiInsertSchema2 = zod.z.object({
|
|
|
2303
2305
|
id: zod.z.string(),
|
|
2304
2306
|
tenantId: zod.z.string().optional(),
|
|
2305
2307
|
projectId: zod.z.string().optional(),
|
|
2308
|
+
name: zod.z.string(),
|
|
2306
2309
|
type: zod.z.enum(CredentialStoreType),
|
|
2307
2310
|
credentialStoreId: zod.z.string(),
|
|
2308
2311
|
retrievalParams: zod.z.record(zod.z.string(), zod.z.unknown()).nullish()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, 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 } from './auth-detection-DN8jWUDE.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-C5D70uSj.cjs';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-C5D70uSj.cjs';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -114,6 +114,7 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
|
|
|
114
114
|
id: z.ZodString;
|
|
115
115
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
116
116
|
projectId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
name: z.ZodString;
|
|
117
118
|
type: z.ZodEnum<{
|
|
118
119
|
readonly memory: "memory";
|
|
119
120
|
readonly keychain: "keychain";
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, 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 } from './auth-detection-DN8jWUDE.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-C5D70uSj.js';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-C5D70uSj.js';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -114,6 +114,7 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
|
|
|
114
114
|
id: z.ZodString;
|
|
115
115
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
116
116
|
projectId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
name: z.ZodString;
|
|
117
118
|
type: z.ZodEnum<{
|
|
118
119
|
readonly memory: "memory";
|
|
119
120
|
readonly keychain: "keychain";
|
package/dist/client-exports.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-CK2M5I4Q.js';
|
|
2
|
-
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-
|
|
3
|
-
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-
|
|
2
|
+
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-C2QU7WTO.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-C2QU7WTO.js';
|
|
4
4
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
5
5
|
export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
6
6
|
import { z } from 'zod';
|
|
@@ -80,6 +80,7 @@ var CredentialReferenceApiInsertSchema = z.object({
|
|
|
80
80
|
id: z.string(),
|
|
81
81
|
tenantId: z.string().optional(),
|
|
82
82
|
projectId: z.string().optional(),
|
|
83
|
+
name: z.string(),
|
|
83
84
|
type: z.enum(CredentialStoreType),
|
|
84
85
|
credentialStoreId: z.string(),
|
|
85
86
|
retrievalParams: z.record(z.string(), z.unknown()).nullish()
|
package/dist/db/schema.cjs
CHANGED
|
@@ -569,6 +569,7 @@ var credentialReferences = sqliteCore.sqliteTable(
|
|
|
569
569
|
"credential_references",
|
|
570
570
|
{
|
|
571
571
|
...projectScoped,
|
|
572
|
+
name: sqliteCore.text("name").notNull(),
|
|
572
573
|
type: sqliteCore.text("type").notNull(),
|
|
573
574
|
credentialStoreId: sqliteCore.text("credential_store_id").notNull(),
|
|
574
575
|
retrievalParams: sqliteCore.blob("retrieval_params", { mode: "json" }).$type(),
|
package/dist/db/schema.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
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-
|
|
3
|
+
import '../utility-C5D70uSj.cjs';
|
|
4
|
+
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';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
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-
|
|
3
|
+
import '../utility-C5D70uSj.js';
|
|
4
|
+
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-BQf2wGSE.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-
|
|
1
|
+
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-T5TTDZ6L.js';
|
package/dist/index.cjs
CHANGED
|
@@ -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(),
|
|
@@ -215637,31 +215639,20 @@ var _TemplateEngine = class _TemplateEngine {
|
|
|
215637
215639
|
});
|
|
215638
215640
|
}
|
|
215639
215641
|
/**
|
|
215640
|
-
* Process built-in variables like $
|
|
215642
|
+
* Process built-in variables like $env, etc.
|
|
215641
215643
|
*/
|
|
215642
215644
|
static processBuiltinVariable(variable) {
|
|
215643
|
-
|
|
215644
|
-
|
|
215645
|
-
|
|
215646
|
-
case "$timestamp":
|
|
215647
|
-
return Date.now().toString();
|
|
215648
|
-
case "$date":
|
|
215649
|
-
return (/* @__PURE__ */ new Date()).toDateString();
|
|
215650
|
-
case "$time":
|
|
215651
|
-
return (/* @__PURE__ */ new Date()).toTimeString();
|
|
215652
|
-
default:
|
|
215653
|
-
if (variable.startsWith("$env.")) {
|
|
215654
|
-
const envVar = variable.substring(5);
|
|
215655
|
-
return process.env[envVar] || "";
|
|
215656
|
-
}
|
|
215657
|
-
logger3.warn(
|
|
215658
|
-
{
|
|
215659
|
-
variable
|
|
215660
|
-
},
|
|
215661
|
-
"Unknown built-in variable"
|
|
215662
|
-
);
|
|
215663
|
-
return "";
|
|
215645
|
+
if (variable.startsWith("$env.")) {
|
|
215646
|
+
const envVar = variable.substring(5);
|
|
215647
|
+
return process.env[envVar] || "";
|
|
215664
215648
|
}
|
|
215649
|
+
logger3.warn(
|
|
215650
|
+
{
|
|
215651
|
+
variable
|
|
215652
|
+
},
|
|
215653
|
+
"Unknown built-in variable"
|
|
215654
|
+
);
|
|
215655
|
+
return "";
|
|
215665
215656
|
}
|
|
215666
215657
|
/**
|
|
215667
215658
|
* Check if template contains template variables
|
|
@@ -218971,6 +218962,7 @@ var upsertCredentialReference = (db) => async (params) => {
|
|
|
218971
218962
|
scopes,
|
|
218972
218963
|
id: params.data.id,
|
|
218973
218964
|
data: {
|
|
218965
|
+
name: params.data.name,
|
|
218974
218966
|
type: params.data.type,
|
|
218975
218967
|
credentialStoreId: params.data.credentialStoreId,
|
|
218976
218968
|
retrievalParams: params.data.retrievalParams
|
|
@@ -219152,7 +219144,8 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
|
|
|
219152
219144
|
logger: logger8
|
|
219153
219145
|
});
|
|
219154
219146
|
status = toolNeedsAuth ? "needs_auth" : "unhealthy";
|
|
219155
|
-
|
|
219147
|
+
const errorMessage = error instanceof Error ? error.message : "Tool discovery failed";
|
|
219148
|
+
lastErrorComputed = toolNeedsAuth ? `Authentication required - OAuth login needed. ${errorMessage}` : errorMessage;
|
|
219156
219149
|
}
|
|
219157
219150
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
219158
219151
|
await updateTool(dbClient)({
|
|
@@ -225510,7 +225503,6 @@ async function handleContextResolution({
|
|
|
225510
225503
|
});
|
|
225511
225504
|
const resolvedContext = {
|
|
225512
225505
|
...contextResult.resolvedContext,
|
|
225513
|
-
$now: (/* @__PURE__ */ new Date()).toISOString(),
|
|
225514
225506
|
$env: process.env
|
|
225515
225507
|
};
|
|
225516
225508
|
await updateConversation(dbClient)({
|
|
@@ -225714,8 +225706,9 @@ var KeyChainStore = class {
|
|
|
225714
225706
|
}
|
|
225715
225707
|
/**
|
|
225716
225708
|
* Set a credential in the keychain
|
|
225709
|
+
* @param metadata - Optional metadata (ignored by keychain store)
|
|
225717
225710
|
*/
|
|
225718
|
-
async set(key, value) {
|
|
225711
|
+
async set(key, value, _metadata) {
|
|
225719
225712
|
await this.initializationPromise;
|
|
225720
225713
|
if (!this.keytarAvailable || !this.keytar) {
|
|
225721
225714
|
this.logger.warn({ storeId: this.id, key }, "Keytar not available, cannot set credential");
|
|
@@ -225885,8 +225878,9 @@ var InMemoryCredentialStore = class {
|
|
|
225885
225878
|
* Set a credential in the in memory store.
|
|
225886
225879
|
* @param key - The key of the credential to set
|
|
225887
225880
|
* @param value - The value of the credential to set
|
|
225881
|
+
* @param metadata - Optional metadata (ignored by memory store)
|
|
225888
225882
|
*/
|
|
225889
|
-
async set(key, value) {
|
|
225883
|
+
async set(key, value, _metadata) {
|
|
225890
225884
|
this.credentials.set(key, value);
|
|
225891
225885
|
}
|
|
225892
225886
|
/**
|
|
@@ -225917,8 +225911,24 @@ var InMemoryCredentialStore = class {
|
|
|
225917
225911
|
var logger14 = getLogger("nango-credential-store");
|
|
225918
225912
|
var CredentialKeySchema = zod.z.object({
|
|
225919
225913
|
connectionId: zod.z.string().min(1, "connectionId must be a non-empty string"),
|
|
225920
|
-
providerConfigKey: zod.z.string().min(1, "providerConfigKey must be a non-empty string")
|
|
225914
|
+
providerConfigKey: zod.z.string().min(1, "providerConfigKey must be a non-empty string"),
|
|
225915
|
+
integrationDisplayName: zod.z.string().nullish()
|
|
225921
225916
|
});
|
|
225917
|
+
function parseCredentialKey(key) {
|
|
225918
|
+
try {
|
|
225919
|
+
const parsed = JSON.parse(key);
|
|
225920
|
+
return CredentialKeySchema.parse(parsed);
|
|
225921
|
+
} catch (error) {
|
|
225922
|
+
logger14.warn(
|
|
225923
|
+
{
|
|
225924
|
+
key: key.substring(0, 100),
|
|
225925
|
+
error: error instanceof Error ? error.message : "Unknown error"
|
|
225926
|
+
},
|
|
225927
|
+
"Failed to parse credential key"
|
|
225928
|
+
);
|
|
225929
|
+
return null;
|
|
225930
|
+
}
|
|
225931
|
+
}
|
|
225922
225932
|
var SUPPORTED_AUTH_MODES = [
|
|
225923
225933
|
"APP",
|
|
225924
225934
|
"API_KEY",
|
|
@@ -226062,45 +226072,12 @@ var NangoCredentialStore = class {
|
|
|
226062
226072
|
return null;
|
|
226063
226073
|
}
|
|
226064
226074
|
}
|
|
226065
|
-
/**
|
|
226066
|
-
* Optimize OAuth token data to fit within Nango's 1024 character limit for apiKey field
|
|
226067
|
-
* Strategy: Remove unnecessary fields
|
|
226068
|
-
*/
|
|
226069
|
-
optimizeOAuthTokenForNango(tokenData) {
|
|
226070
|
-
const parsed = JSON.parse(tokenData);
|
|
226071
|
-
const essential = {
|
|
226072
|
-
access_token: parsed.access_token,
|
|
226073
|
-
token_type: parsed.token_type,
|
|
226074
|
-
expires_in: parsed.expires_in,
|
|
226075
|
-
refresh_token: parsed.refresh_token
|
|
226076
|
-
};
|
|
226077
|
-
Object.keys(essential).forEach((key) => {
|
|
226078
|
-
if (essential[key] === void 0) {
|
|
226079
|
-
delete essential[key];
|
|
226080
|
-
}
|
|
226081
|
-
});
|
|
226082
|
-
const result = JSON.stringify(essential);
|
|
226083
|
-
if (result.length > 1024) {
|
|
226084
|
-
logger14.error(
|
|
226085
|
-
{
|
|
226086
|
-
originalLength: tokenData.length,
|
|
226087
|
-
essentialLength: result.length,
|
|
226088
|
-
accessTokenLength: parsed.access_token?.length || 0,
|
|
226089
|
-
refreshTokenLength: parsed.refresh_token?.length || 0
|
|
226090
|
-
},
|
|
226091
|
-
"OAuth token too large for Nango storage even after removing non-essential fields"
|
|
226092
|
-
);
|
|
226093
|
-
throw new Error(
|
|
226094
|
-
`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.`
|
|
226095
|
-
);
|
|
226096
|
-
}
|
|
226097
|
-
return result;
|
|
226098
|
-
}
|
|
226099
226075
|
/**
|
|
226100
226076
|
* Create an API key credential by setting up Nango integration and importing the connection
|
|
226101
226077
|
*/
|
|
226102
226078
|
async createNangoApiKeyConnection({
|
|
226103
|
-
|
|
226079
|
+
uniqueKey,
|
|
226080
|
+
displayName,
|
|
226104
226081
|
apiKeyToSet,
|
|
226105
226082
|
metadata
|
|
226106
226083
|
}) {
|
|
@@ -226110,12 +226087,12 @@ var NangoCredentialStore = class {
|
|
|
226110
226087
|
try {
|
|
226111
226088
|
const response2 = await this.nangoClient.createIntegration({
|
|
226112
226089
|
provider,
|
|
226113
|
-
unique_key:
|
|
226114
|
-
display_name:
|
|
226090
|
+
unique_key: uniqueKey,
|
|
226091
|
+
display_name: displayName
|
|
226115
226092
|
});
|
|
226116
226093
|
integration = response2.data;
|
|
226117
226094
|
} catch (error) {
|
|
226118
|
-
const existingIntegration = await this.fetchNangoIntegration(
|
|
226095
|
+
const existingIntegration = await this.fetchNangoIntegration(uniqueKey);
|
|
226119
226096
|
if (existingIntegration) {
|
|
226120
226097
|
integration = existingIntegration;
|
|
226121
226098
|
} else {
|
|
@@ -226123,20 +226100,16 @@ var NangoCredentialStore = class {
|
|
|
226123
226100
|
}
|
|
226124
226101
|
}
|
|
226125
226102
|
if (!integration) {
|
|
226126
|
-
throw new Error(`Integration '${
|
|
226103
|
+
throw new Error(`Integration '${uniqueKey}' not found`);
|
|
226127
226104
|
}
|
|
226128
226105
|
const importConnectionUrl = `${process.env.NANGO_SERVER_URL || "https://api.nango.dev"}/connections`;
|
|
226129
|
-
const optimizedApiKey = this.optimizeOAuthTokenForNango(apiKeyToSet);
|
|
226130
|
-
if (!optimizedApiKey) {
|
|
226131
|
-
throw new Error(`Failed to optimize OAuth token for Nango.`);
|
|
226132
|
-
}
|
|
226133
226106
|
const credentials = {
|
|
226134
226107
|
type: "API_KEY",
|
|
226135
|
-
apiKey:
|
|
226108
|
+
apiKey: apiKeyToSet
|
|
226136
226109
|
};
|
|
226137
226110
|
const body = {
|
|
226138
226111
|
provider_config_key: integration.unique_key,
|
|
226139
|
-
connection_id:
|
|
226112
|
+
connection_id: uniqueKey,
|
|
226140
226113
|
metadata,
|
|
226141
226114
|
credentials
|
|
226142
226115
|
};
|
|
@@ -226158,12 +226131,12 @@ var NangoCredentialStore = class {
|
|
|
226158
226131
|
logger14.error(
|
|
226159
226132
|
{
|
|
226160
226133
|
error: error instanceof Error ? error.message : "Unknown error",
|
|
226161
|
-
|
|
226134
|
+
displayName
|
|
226162
226135
|
},
|
|
226163
|
-
`Unexpected error creating API key credential '${
|
|
226136
|
+
`Unexpected error creating API key credential '${displayName}'`
|
|
226164
226137
|
);
|
|
226165
226138
|
throw new Error(
|
|
226166
|
-
`Failed to create API key credential '${
|
|
226139
|
+
`Failed to create API key credential '${displayName}': ${error instanceof Error ? error.message : "Unknown error"}`
|
|
226167
226140
|
);
|
|
226168
226141
|
}
|
|
226169
226142
|
}
|
|
@@ -226207,34 +226180,11 @@ var NangoCredentialStore = class {
|
|
|
226207
226180
|
*/
|
|
226208
226181
|
async get(key) {
|
|
226209
226182
|
try {
|
|
226210
|
-
|
|
226211
|
-
|
|
226212
|
-
parsedKey = JSON.parse(key);
|
|
226213
|
-
} catch (parseError) {
|
|
226214
|
-
logger14.warn(
|
|
226215
|
-
{
|
|
226216
|
-
storeId: this.id,
|
|
226217
|
-
key: key.substring(0, 50),
|
|
226218
|
-
// Log only first 100 chars to avoid log pollution
|
|
226219
|
-
error: parseError instanceof Error ? parseError.message : "Unknown parsing error"
|
|
226220
|
-
},
|
|
226221
|
-
"Invalid JSON format in credential key"
|
|
226222
|
-
);
|
|
226223
|
-
return null;
|
|
226224
|
-
}
|
|
226225
|
-
const validationResult = CredentialKeySchema.safeParse(parsedKey);
|
|
226226
|
-
if (!validationResult.success) {
|
|
226227
|
-
logger14.warn(
|
|
226228
|
-
{
|
|
226229
|
-
storeId: this.id,
|
|
226230
|
-
key: key.substring(0, 100),
|
|
226231
|
-
validationErrors: validationResult.error.issues
|
|
226232
|
-
},
|
|
226233
|
-
"Invalid credential key structure"
|
|
226234
|
-
);
|
|
226183
|
+
const parsedKey = parseCredentialKey(key);
|
|
226184
|
+
if (!parsedKey) {
|
|
226235
226185
|
return null;
|
|
226236
226186
|
}
|
|
226237
|
-
const { connectionId, providerConfigKey } =
|
|
226187
|
+
const { connectionId, providerConfigKey } = parsedKey;
|
|
226238
226188
|
const credentials = await this.fetchCredentialsFromNango({ connectionId, providerConfigKey });
|
|
226239
226189
|
if (!credentials) {
|
|
226240
226190
|
return null;
|
|
@@ -226254,13 +226204,20 @@ var NangoCredentialStore = class {
|
|
|
226254
226204
|
}
|
|
226255
226205
|
}
|
|
226256
226206
|
/**
|
|
226257
|
-
* Set credentials -
|
|
226207
|
+
* Set credentials - this is used to save bearer auth
|
|
226208
|
+
* Key format: JSON string with connectionId and providerConfigKey
|
|
226258
226209
|
*/
|
|
226259
|
-
async set(key, value) {
|
|
226210
|
+
async set(key, value, metadata = {}) {
|
|
226211
|
+
const parsedKey = parseCredentialKey(key);
|
|
226212
|
+
if (!parsedKey) {
|
|
226213
|
+
throw new Error(`Invalid credential key: ${key}`);
|
|
226214
|
+
}
|
|
226215
|
+
const { connectionId, providerConfigKey, integrationDisplayName } = parsedKey;
|
|
226260
226216
|
await this.createNangoApiKeyConnection({
|
|
226261
|
-
|
|
226217
|
+
uniqueKey: connectionId,
|
|
226218
|
+
displayName: integrationDisplayName ?? providerConfigKey,
|
|
226262
226219
|
apiKeyToSet: value,
|
|
226263
|
-
metadata
|
|
226220
|
+
metadata
|
|
226264
226221
|
});
|
|
226265
226222
|
}
|
|
226266
226223
|
/**
|
|
@@ -226286,34 +226243,11 @@ var NangoCredentialStore = class {
|
|
|
226286
226243
|
*/
|
|
226287
226244
|
async delete(key) {
|
|
226288
226245
|
try {
|
|
226289
|
-
|
|
226290
|
-
|
|
226291
|
-
parsedKey = JSON.parse(key);
|
|
226292
|
-
} catch (parseError) {
|
|
226293
|
-
logger14.warn(
|
|
226294
|
-
{
|
|
226295
|
-
storeId: this.id,
|
|
226296
|
-
key: key.substring(0, 50),
|
|
226297
|
-
// Log only first 100 chars to avoid log pollution
|
|
226298
|
-
error: parseError instanceof Error ? parseError.message : "Unknown parsing error"
|
|
226299
|
-
},
|
|
226300
|
-
"Invalid JSON format in credential key"
|
|
226301
|
-
);
|
|
226302
|
-
return false;
|
|
226303
|
-
}
|
|
226304
|
-
const validationResult = CredentialKeySchema.safeParse(parsedKey);
|
|
226305
|
-
if (!validationResult.success) {
|
|
226306
|
-
logger14.warn(
|
|
226307
|
-
{
|
|
226308
|
-
storeId: this.id,
|
|
226309
|
-
key: key.substring(0, 100),
|
|
226310
|
-
validationErrors: validationResult.error.issues
|
|
226311
|
-
},
|
|
226312
|
-
"Invalid credential key structure"
|
|
226313
|
-
);
|
|
226246
|
+
const parsedKey = parseCredentialKey(key);
|
|
226247
|
+
if (!parsedKey) {
|
|
226314
226248
|
return false;
|
|
226315
226249
|
}
|
|
226316
|
-
const { connectionId, providerConfigKey } =
|
|
226250
|
+
const { connectionId, providerConfigKey } = parsedKey;
|
|
226317
226251
|
await this.nangoClient.deleteConnection(providerConfigKey, connectionId);
|
|
226318
226252
|
return true;
|
|
226319
226253
|
} catch (error) {
|
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-aTj9Dhgx.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';
|
|
@@ -219,7 +219,7 @@ declare class TemplateEngine {
|
|
|
219
219
|
*/
|
|
220
220
|
private static processVariables;
|
|
221
221
|
/**
|
|
222
|
-
* Process built-in variables like $
|
|
222
|
+
* Process built-in variables like $env, etc.
|
|
223
223
|
*/
|
|
224
224
|
private static processBuiltinVariable;
|
|
225
225
|
/**
|
|
@@ -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
|
*/
|