@inkeep/agents-core 0.80.5 → 0.80.6

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.
Files changed (35) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/data-access/manage/agents.d.ts +21 -21
  5. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  6. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +14 -14
  9. package/dist/data-access/manage/skills.d.ts +12 -12
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  11. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgents.d.ts +15 -15
  14. package/dist/data-access/manage/tools.d.ts +27 -27
  15. package/dist/data-access/manage/triggers.d.ts +5 -5
  16. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  17. package/dist/data-access/runtime/apps.d.ts +17 -17
  18. package/dist/data-access/runtime/conversations.d.ts +24 -24
  19. package/dist/data-access/runtime/events.d.ts +7 -7
  20. package/dist/data-access/runtime/feedback.d.ts +6 -6
  21. package/dist/data-access/runtime/messages.d.ts +18 -18
  22. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +2 -2
  23. package/dist/data-access/runtime/tasks.d.ts +5 -5
  24. package/dist/db/manage/manage-schema.d.ts +506 -506
  25. package/dist/db/runtime/runtime-schema.d.ts +458 -458
  26. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
  27. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
  28. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  29. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_2c445fac125d61600c1f6965b81d42f1}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  30. package/dist/test-utils/mocks/logger.js +1 -1
  31. package/dist/utils/error.d.ts +51 -51
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas/skills.d.ts +41 -41
  34. package/dist/validation/schemas.d.ts +2222 -2222
  35. package/package.json +1 -1
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
12
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
12
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
19
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
19
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
26
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
26
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins7.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -12,12 +12,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  }) => Promise<{
13
13
  id: string;
14
14
  name: string;
15
- createdAt: string;
16
- updatedAt: string;
17
15
  description: string | null;
18
- prompt: string | null;
19
- tenantId: string;
16
+ createdAt: string;
20
17
  projectId: string;
18
+ tenantId: string;
19
+ updatedAt: string;
21
20
  models: {
22
21
  base?: {
23
22
  model?: string | undefined;
@@ -41,6 +40,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
41
40
  stopWhen: {
42
41
  transferCountIs?: number | undefined;
43
42
  } | null;
43
+ prompt: string | null;
44
44
  defaultSubAgentId: string | null;
45
45
  contextConfigId: string | null;
46
46
  statusUpdates: {
@@ -65,12 +65,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
65
65
  }) => Promise<{
66
66
  id: string;
67
67
  name: string;
68
- createdAt: string;
69
- updatedAt: string;
70
68
  description: string | null;
71
- prompt: string | null;
72
- tenantId: string;
69
+ createdAt: string;
73
70
  projectId: string;
71
+ tenantId: string;
72
+ updatedAt: string;
74
73
  models: {
75
74
  base?: {
76
75
  model?: string | undefined;
@@ -94,6 +93,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
94
93
  stopWhen: {
95
94
  transferCountIs?: number | undefined;
96
95
  } | null;
96
+ prompt: string | null;
97
97
  defaultSubAgentId: string | null;
98
98
  contextConfigId: string | null;
99
99
  statusUpdates: {
@@ -115,12 +115,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
115
115
  defaultSubAgent: {
116
116
  id: string;
117
117
  name: string;
118
- createdAt: string;
119
- updatedAt: string;
120
118
  description: string | null;
121
- prompt: string | null;
122
- tenantId: string;
119
+ createdAt: string;
120
+ agentId: string;
123
121
  projectId: string;
122
+ tenantId: string;
123
+ updatedAt: string;
124
124
  models: {
125
125
  base?: {
126
126
  model?: string | undefined;
@@ -144,7 +144,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
144
144
  stopWhen: {
145
145
  stepCountIs?: number | undefined;
146
146
  } | null;
147
- agentId: string;
147
+ prompt: string | null;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  outputContract: {
150
150
  [x: string]: unknown;
@@ -162,12 +162,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
162
162
  }) => Promise<{
163
163
  id: string;
164
164
  name: string;
165
- createdAt: string;
166
- updatedAt: string;
167
165
  description: string | null;
168
- prompt: string | null;
169
- tenantId: string;
166
+ createdAt: string;
170
167
  projectId: string;
168
+ tenantId: string;
169
+ updatedAt: string;
171
170
  models: {
172
171
  base?: {
173
172
  model?: string | undefined;
@@ -191,6 +190,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
191
190
  stopWhen: {
192
191
  transferCountIs?: number | undefined;
193
192
  } | null;
193
+ prompt: string | null;
194
194
  defaultSubAgentId: string | null;
195
195
  contextConfigId: string | null;
196
196
  statusUpdates: {
@@ -292,12 +292,11 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
292
292
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
293
293
  id: string;
294
294
  name: string;
295
- createdAt: string;
296
- updatedAt: string;
297
295
  description: string | null;
298
- prompt: string | null;
299
- tenantId: string;
296
+ createdAt: string;
300
297
  projectId: string;
298
+ tenantId: string;
299
+ updatedAt: string;
301
300
  models: {
302
301
  base?: {
303
302
  model?: string | undefined;
@@ -321,6 +320,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
321
320
  stopWhen: {
322
321
  transferCountIs?: number | undefined;
323
322
  } | null;
323
+ prompt: string | null;
324
324
  defaultSubAgentId: string | null;
325
325
  contextConfigId: string | null;
326
326
  statusUpdates: {
@@ -11,11 +11,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
14
  description: string | null;
17
- tenantId: string;
15
+ createdAt: string;
18
16
  projectId: string;
17
+ tenantId: string;
18
+ updatedAt: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -67,11 +67,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
68
  id: string;
69
69
  name: string;
70
- createdAt: string;
71
- updatedAt: string;
72
70
  description: string | null;
73
- tenantId: string;
71
+ createdAt: string;
74
72
  projectId: string;
73
+ tenantId: string;
74
+ updatedAt: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
143
143
  }) => Promise<{
144
144
  id: string;
145
145
  createdAt: string;
146
- tenantId: string;
147
- projectId: string;
148
146
  agentId: string;
147
+ projectId: string;
148
+ tenantId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
186
186
  }) => Promise<{
187
187
  id: string;
188
188
  createdAt: string;
189
- tenantId: string;
190
- projectId: string;
191
189
  agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -11,24 +11,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  createdAt: string;
14
- updatedAt: string;
15
- tenantId: string;
14
+ agentId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
+ updatedAt: string;
17
18
  headersSchema: unknown;
18
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
- agentId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
25
  createdAt: string;
26
- updatedAt: string;
27
- tenantId: string;
26
+ agentId: string;
28
27
  projectId: string;
28
+ tenantId: string;
29
+ updatedAt: string;
29
30
  headersSchema: unknown;
30
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
- agentId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -45,12 +45,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
47
  createdAt: string;
48
- updatedAt: string;
49
- tenantId: string;
48
+ agentId: string;
50
49
  projectId: string;
50
+ tenantId: string;
51
+ updatedAt: string;
51
52
  headersSchema: unknown;
52
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
- agentId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -85,12 +85,12 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
85
85
  }) => Promise<{
86
86
  id: string;
87
87
  createdAt: string;
88
- updatedAt: string;
89
- tenantId: string;
88
+ agentId: string;
90
89
  projectId: string;
90
+ tenantId: string;
91
+ updatedAt: string;
91
92
  headersSchema: unknown;
92
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
- agentId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- tenantId: string;
71
- projectId: string;
72
70
  agentId: string;
71
+ projectId: string;
72
+ tenantId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- tenantId: string;
113
- projectId: string;
114
112
  agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
- createdAt: string;
59
- updatedAt: string;
60
58
  description: string | null;
61
- tenantId: string;
62
- projectId: string;
59
+ createdAt: string;
63
60
  agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
- createdAt: string;
101
- updatedAt: string;
102
100
  description: string | null;
103
- tenantId: string;
104
- projectId: string;
101
+ createdAt: string;
105
102
  agentId: string;
103
+ projectId: string;
104
+ tenantId: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -159,11 +159,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
159
159
  }) => Promise<{
160
160
  id: string;
161
161
  createdAt: string;
162
- updatedAt: string;
163
- tenantId: string;
164
- projectId: string;
165
162
  agentId: string;
163
+ projectId: string;
164
+ tenantId: string;
166
165
  subAgentId: string;
166
+ updatedAt: string;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
169
169
  }> | null;
@@ -224,11 +224,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
224
224
  }) => Promise<{
225
225
  id: string;
226
226
  createdAt: string;
227
- updatedAt: string;
228
- tenantId: string;
229
- projectId: string;
230
227
  agentId: string;
228
+ projectId: string;
229
+ tenantId: string;
231
230
  subAgentId: string;
231
+ updatedAt: string;
232
232
  toolPolicies: Record<string, {
233
233
  needsApproval?: boolean;
234
234
  }> | null;
@@ -17,13 +17,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
17
17
  }) => Promise<{
18
18
  id: string;
19
19
  name: string;
20
- createdAt: string;
21
- updatedAt: string;
22
- metadata: Record<string, string> | null;
23
20
  description: string;
21
+ createdAt: string;
22
+ projectId: string;
24
23
  tenantId: string;
24
+ metadata: Record<string, string> | null;
25
25
  content: string;
26
- projectId: string;
26
+ updatedAt: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -112,13 +112,13 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
113
  id: string;
114
114
  name: string;
115
- createdAt: string;
116
- updatedAt: string;
117
- metadata: Record<string, string> | null;
118
115
  description: string;
116
+ createdAt: string;
117
+ projectId: string;
119
118
  tenantId: string;
119
+ metadata: Record<string, string> | null;
120
120
  content: string;
121
- projectId: string;
121
+ updatedAt: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -141,14 +141,14 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
141
141
  }) => Promise<{
142
142
  id: string;
143
143
  createdAt: string;
144
- updatedAt: string;
145
- tenantId: string;
146
- projectId: string;
147
144
  agentId: string;
145
+ projectId: string;
146
+ tenantId: string;
147
+ subAgentId: string;
148
+ updatedAt: string;
148
149
  skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- subAgentId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  createdAt: string;
14
- updatedAt: string;
15
- headers: Record<string, string> | null;
16
- tenantId: string;
17
- projectId: string;
18
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
19
17
  subAgentId: string;
18
+ updatedAt: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  }) => Promise<{
47
47
  id: string;
48
48
  createdAt: string;
49
- updatedAt: string;
50
- headers: Record<string, string> | null;
51
- tenantId: string;
52
- projectId: string;
53
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
54
52
  subAgentId: string;
53
+ updatedAt: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  }) => Promise<{
60
60
  id: string;
61
61
  createdAt: string;
62
- updatedAt: string;
63
- headers: Record<string, string> | null;
64
- tenantId: string;
65
- projectId: string;
66
62
  agentId: string;
63
+ projectId: string;
64
+ tenantId: string;
67
65
  subAgentId: string;
66
+ updatedAt: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -188,12 +188,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
188
188
  }) => Promise<{
189
189
  id: string;
190
190
  createdAt: string;
191
- updatedAt: string;
192
- headers: Record<string, string> | null;
193
- tenantId: string;
194
- projectId: string;
195
191
  agentId: string;
192
+ projectId: string;
193
+ tenantId: string;
196
194
  subAgentId: string;
195
+ updatedAt: string;
196
+ headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
199
199
  /**
@@ -205,12 +205,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
205
205
  }) => Promise<{
206
206
  id: string;
207
207
  createdAt: string;
208
- updatedAt: string;
209
- headers: Record<string, string> | null;
210
- tenantId: string;
211
- projectId: string;
212
208
  agentId: string;
209
+ projectId: string;
210
+ tenantId: string;
213
211
  subAgentId: string;
212
+ updatedAt: string;
213
+ headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
@@ -226,12 +226,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
226
226
  }) => Promise<{
227
227
  id: string;
228
228
  createdAt: string;
229
- updatedAt: string;
230
- headers: Record<string, string> | null;
231
- tenantId: string;
232
- projectId: string;
233
229
  agentId: string;
230
+ projectId: string;
231
+ tenantId: string;
234
232
  subAgentId: string;
233
+ updatedAt: string;
234
+ headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,10 +11,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  createdAt: string;
14
- updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -46,10 +46,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  }) => Promise<{
47
47
  id: string;
48
48
  createdAt: string;
49
- updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -59,10 +59,10 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  }) => Promise<{
60
60
  id: string;
61
61
  createdAt: string;
62
- updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
62
  agentId: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -128,10 +128,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
130
  createdAt: string;
131
- updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
134
131
  agentId: string;
132
+ projectId: string;
133
+ tenantId: string;
134
+ updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -147,10 +147,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  }) => Promise<{
148
148
  id: string;
149
149
  createdAt: string;
150
- updatedAt: string;
151
- tenantId: string;
152
- projectId: string;
153
150
  agentId: string;
151
+ projectId: string;
152
+ tenantId: string;
153
+ updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -161,10 +161,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
163
  createdAt: string;
164
- updatedAt: string;
165
- tenantId: string;
166
- projectId: string;
167
164
  agentId: string;
165
+ projectId: string;
166
+ tenantId: string;
167
+ updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -206,13 +206,13 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  }) => Promise<{
207
207
  id: string;
208
208
  createdAt: string;
209
- updatedAt: string;
210
- headers: Record<string, string> | null;
211
- tenantId: string;
212
- projectId: string;
213
- toolId: string;
214
209
  agentId: string;
210
+ projectId: string;
211
+ tenantId: string;
215
212
  subAgentId: string;
213
+ toolId: string;
214
+ updatedAt: string;
215
+ headers: Record<string, string> | null;
216
216
  selectedTools: string[] | null;
217
217
  toolPolicies: Record<string, {
218
218
  needsApproval?: boolean;
@@ -250,13 +250,13 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  }) => Promise<{
251
251
  id: string;
252
252
  createdAt: string;
253
- updatedAt: string;
254
- headers: Record<string, string> | null;
255
- tenantId: string;
256
- projectId: string;
257
- toolId: string;
258
253
  agentId: string;
254
+ projectId: string;
255
+ tenantId: string;
259
256
  subAgentId: string;
257
+ toolId: string;
258
+ updatedAt: string;
259
+ headers: Record<string, string> | null;
260
260
  selectedTools: string[] | null;
261
261
  toolPolicies: Record<string, {
262
262
  needsApproval?: boolean;