@inkeep/agents-core 0.58.1 → 0.58.3

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 (61) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +135 -135
  3. package/dist/client-exports.d.ts +2 -2
  4. package/dist/client-exports.js +2 -2
  5. package/dist/constants/allowed-image-formats.d.ts +8 -0
  6. package/dist/constants/allowed-image-formats.js +38 -0
  7. package/dist/constants/models.d.ts +2 -0
  8. package/dist/constants/models.js +2 -0
  9. package/dist/constants/otel-attributes.d.ts +1 -0
  10. package/dist/constants/otel-attributes.js +1 -0
  11. package/dist/data-access/index.d.ts +2 -1
  12. package/dist/data-access/index.js +2 -1
  13. package/dist/data-access/manage/agents.d.ts +20 -20
  14. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  15. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  16. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  17. package/dist/data-access/manage/functionTools.d.ts +14 -14
  18. package/dist/data-access/manage/skills.d.ts +15 -15
  19. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  20. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  21. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  22. package/dist/data-access/manage/subAgents.d.ts +12 -12
  23. package/dist/data-access/manage/tools.d.ts +30 -30
  24. package/dist/data-access/manage/tools.js +14 -2
  25. package/dist/data-access/manage/triggers.d.ts +1 -1
  26. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  27. package/dist/data-access/runtime/cascade-delete.d.ts +3 -0
  28. package/dist/data-access/runtime/cascade-delete.js +9 -2
  29. package/dist/data-access/runtime/conversations.d.ts +16 -16
  30. package/dist/data-access/runtime/messages.d.ts +12 -12
  31. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  32. package/dist/data-access/runtime/slack-work-app-mcp.d.ts +26 -0
  33. package/dist/data-access/runtime/slack-work-app-mcp.js +69 -0
  34. package/dist/data-access/runtime/tasks.d.ts +5 -5
  35. package/dist/data-access/runtime/workAppSlack.js +2 -2
  36. package/dist/db/manage/manage-schema.d.ts +451 -451
  37. package/dist/db/manage/scope-definitions.d.ts +3 -1
  38. package/dist/db/manage/scope-definitions.js +5 -0
  39. package/dist/db/runtime/runtime-schema.d.ts +459 -305
  40. package/dist/db/runtime/runtime-schema.js +24 -1
  41. package/dist/db/utils.js +4 -0
  42. package/dist/dolt/migrate-all-branches.js +4 -1
  43. package/dist/dolt/migrate-dolt.js +20 -3
  44. package/dist/env.d.ts +2 -0
  45. package/dist/env.js +1 -0
  46. package/dist/index.d.ts +5 -4
  47. package/dist/index.js +4 -3
  48. package/dist/middleware/authz-meta.d.ts +2 -2
  49. package/dist/middleware/create-protected-route.d.ts +2 -2
  50. package/dist/middleware/no-auth.d.ts +2 -2
  51. package/dist/types/index.d.ts +2 -2
  52. package/dist/types/utility.d.ts +9 -2
  53. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  54. package/dist/validation/index.d.ts +2 -2
  55. package/dist/validation/index.js +2 -2
  56. package/dist/validation/schemas.d.ts +1855 -1826
  57. package/dist/validation/schemas.js +16 -2
  58. package/drizzle/runtime/0020_tiny_killmonger.sql +15 -0
  59. package/drizzle/runtime/meta/0020_snapshot.json +4122 -0
  60. package/drizzle/runtime/meta/_journal.json +7 -0
  61. package/package.json +5 -1
@@ -9,13 +9,13 @@ import { PgTable } from "drizzle-orm/pg-core";
9
9
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  scopes: AgentScopeConfig;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  description: string | null;
15
- name: string;
16
13
  id: string;
14
+ name: string;
17
15
  createdAt: string;
18
16
  updatedAt: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -33,9 +33,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
33
  stopWhen: {
34
34
  transferCountIs?: number | undefined;
35
35
  } | null;
36
+ prompt: string | null;
36
37
  defaultSubAgentId: string | null;
37
38
  contextConfigId: string | null;
38
- prompt: string | null;
39
39
  statusUpdates: {
40
40
  enabled?: boolean | undefined;
41
41
  numEvents?: number | undefined;
@@ -55,13 +55,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
55
55
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
- tenantId: string;
59
- projectId: string;
60
58
  description: string | null;
61
- name: string;
62
59
  id: string;
60
+ name: string;
63
61
  createdAt: string;
64
62
  updatedAt: string;
63
+ projectId: string;
64
+ tenantId: string;
65
65
  models: {
66
66
  base?: {
67
67
  model?: string | undefined;
@@ -79,9 +79,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
79
79
  stopWhen: {
80
80
  transferCountIs?: number | undefined;
81
81
  } | null;
82
+ prompt: string | null;
82
83
  defaultSubAgentId: string | null;
83
84
  contextConfigId: string | null;
84
- prompt: string | null;
85
85
  statusUpdates: {
86
86
  enabled?: boolean | undefined;
87
87
  numEvents?: number | undefined;
@@ -98,14 +98,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
98
98
  }[] | undefined;
99
99
  } | null;
100
100
  defaultSubAgent: {
101
- tenantId: string;
102
- projectId: string;
103
- agentId: string;
104
101
  description: string | null;
105
- name: string;
106
102
  id: string;
103
+ name: string;
107
104
  createdAt: string;
108
105
  updatedAt: string;
106
+ projectId: string;
107
+ tenantId: string;
109
108
  models: {
110
109
  base?: {
111
110
  model?: string | undefined;
@@ -125,18 +124,19 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
125
124
  } | null;
126
125
  prompt: string | null;
127
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
+ agentId: string;
128
128
  } | null;
129
129
  } | null>;
130
130
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
131
131
  scopes: ProjectScopeConfig;
132
132
  }) => Promise<{
133
- tenantId: string;
134
- projectId: string;
135
133
  description: string | null;
136
- name: string;
137
134
  id: string;
135
+ name: string;
138
136
  createdAt: string;
139
137
  updatedAt: string;
138
+ projectId: string;
139
+ tenantId: string;
140
140
  models: {
141
141
  base?: {
142
142
  model?: string | undefined;
@@ -154,9 +154,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
154
154
  stopWhen: {
155
155
  transferCountIs?: number | undefined;
156
156
  } | null;
157
+ prompt: string | null;
157
158
  defaultSubAgentId: string | null;
158
159
  contextConfigId: string | null;
159
- prompt: string | null;
160
160
  statusUpdates: {
161
161
  enabled?: boolean | undefined;
162
162
  numEvents?: number | undefined;
@@ -246,13 +246,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
246
246
  projectIds: string[];
247
247
  }): Promise<AvailableAgentInfo[]>;
248
248
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
249
- tenantId: string;
250
- projectId: string;
251
249
  description: string | null;
252
- name: string;
253
250
  id: string;
251
+ name: string;
254
252
  createdAt: string;
255
253
  updatedAt: string;
254
+ projectId: string;
255
+ tenantId: string;
256
256
  models: {
257
257
  base?: {
258
258
  model?: string | undefined;
@@ -270,9 +270,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
270
  stopWhen: {
271
271
  transferCountIs?: number | undefined;
272
272
  } | null;
273
+ prompt: string | null;
273
274
  defaultSubAgentId: string | null;
274
275
  contextConfigId: string | null;
275
- prompt: string | null;
276
276
  statusUpdates: {
277
277
  enabled?: boolean | undefined;
278
278
  numEvents?: number | undefined;
@@ -9,11 +9,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  description: string | null;
15
- name: string;
16
13
  id: string;
14
+ name: string;
17
15
  props: {
18
16
  [x: string]: unknown;
19
17
  type: "object";
@@ -28,6 +26,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
28
26
  } | null;
29
27
  createdAt: string;
30
28
  updatedAt: string;
29
+ projectId: string;
30
+ tenantId: string;
31
31
  } | undefined>;
32
32
  declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: ProjectScopeConfig;
@@ -65,11 +65,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
- tenantId: string;
69
- projectId: string;
70
68
  description: string | null;
71
- name: string;
72
69
  id: string;
70
+ name: string;
73
71
  props: {
74
72
  [x: string]: unknown;
75
73
  type: "object";
@@ -84,6 +82,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
84
82
  } | null;
85
83
  createdAt: string;
86
84
  updatedAt: string;
85
+ projectId: string;
86
+ tenantId: string;
87
87
  }>;
88
88
  declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
89
89
  scopes: ProjectScopeConfig;
@@ -141,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
141
141
  scopes: SubAgentScopeConfig;
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
- tenantId: string;
145
- projectId: string;
146
- agentId: string;
147
144
  subAgentId: string;
148
145
  id: string;
149
146
  createdAt: string;
147
+ projectId: string;
148
+ tenantId: string;
149
+ agentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
152
152
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -184,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
184
184
  scopes: SubAgentScopeConfig;
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
- tenantId: string;
188
- projectId: string;
189
- agentId: string;
190
187
  subAgentId: string;
191
188
  id: string;
192
189
  createdAt: string;
190
+ projectId: string;
191
+ tenantId: string;
192
+ agentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
195
195
  /**
@@ -9,24 +9,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
12
  id: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ agentId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
- tenantId: string;
25
- projectId: string;
26
- agentId: string;
27
24
  id: string;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ projectId: string;
28
+ tenantId: string;
29
+ agentId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -43,12 +43,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
43
43
  };
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
- agentId: string;
49
46
  id: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
49
+ projectId: string;
50
+ tenantId: string;
51
+ agentId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -83,12 +83,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
83
83
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
- tenantId: string;
87
- projectId: string;
88
- agentId: string;
89
86
  id: string;
90
87
  createdAt: string;
91
88
  updatedAt: string;
89
+ projectId: string;
90
+ tenantId: string;
91
+ agentId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
65
65
  scopes: SubAgentScopeConfig;
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
- tenantId: string;
69
- projectId: string;
70
- agentId: string;
71
68
  subAgentId: string;
72
69
  id: string;
73
70
  createdAt: string;
71
+ projectId: string;
72
+ tenantId: string;
73
+ agentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
76
76
  /**
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
107
107
  scopes: SubAgentScopeConfig;
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
- tenantId: string;
111
- projectId: string;
112
- agentId: string;
113
110
  subAgentId: string;
114
111
  id: string;
115
112
  createdAt: string;
113
+ projectId: string;
114
+ tenantId: string;
115
+ agentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
118
118
  /**
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- tenantId: string;
57
- projectId: string;
58
- agentId: string;
59
56
  description: string | null;
60
- name: string;
61
57
  id: string;
58
+ name: string;
62
59
  createdAt: string;
63
60
  updatedAt: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- tenantId: string;
99
- projectId: string;
100
- agentId: string;
101
98
  description: string | null;
102
- name: string;
103
99
  id: string;
100
+ name: string;
104
101
  createdAt: string;
105
102
  updatedAt: string;
103
+ projectId: string;
104
+ tenantId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,13 +161,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
- tenantId: string;
165
- projectId: string;
166
- agentId: string;
167
164
  subAgentId: string;
168
165
  id: string;
169
166
  createdAt: string;
170
167
  updatedAt: string;
168
+ projectId: string;
169
+ tenantId: string;
170
+ agentId: string;
171
171
  functionToolId: string;
172
172
  toolPolicies: Record<string, {
173
173
  needsApproval?: boolean;
@@ -226,13 +226,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
- tenantId: string;
230
- projectId: string;
231
- agentId: string;
232
229
  subAgentId: string;
233
230
  id: string;
234
231
  createdAt: string;
235
232
  updatedAt: string;
233
+ projectId: string;
234
+ tenantId: string;
235
+ agentId: string;
236
236
  functionToolId: string;
237
237
  toolPolicies: Record<string, {
238
238
  needsApproval?: boolean;
@@ -8,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  description: string;
14
- name: string;
15
- content: string;
16
12
  id: string;
13
+ name: string;
17
14
  createdAt: string;
18
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
19
18
  metadata: Record<string, string> | null;
19
+ content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: ProjectScopeConfig;
@@ -41,26 +41,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
41
41
  };
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
- tenantId: string;
45
- projectId: string;
46
44
  description: string;
47
- name: string;
48
- content: string;
49
45
  id: string;
46
+ name: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
49
+ projectId: string;
50
+ tenantId: string;
52
51
  metadata: Record<string, string> | null;
52
+ content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- tenantId: string;
56
- projectId: string;
57
55
  description: string;
58
- name: string;
59
- content: string;
60
56
  id: string;
57
+ name: string;
61
58
  createdAt: string;
62
59
  updatedAt: string;
60
+ projectId: string;
61
+ tenantId: string;
63
62
  metadata: Record<string, string> | null;
63
+ content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
66
66
  scopes: ProjectScopeConfig;
@@ -91,13 +91,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
91
91
  index: number;
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
- tenantId: string;
95
- projectId: string;
96
- agentId: string;
97
94
  subAgentId: string;
98
95
  id: string;
99
96
  createdAt: string;
100
97
  updatedAt: string;
98
+ projectId: string;
99
+ tenantId: string;
100
+ agentId: string;
101
101
  skillId: string;
102
102
  index: number;
103
103
  alwaysLoaded: boolean;
@@ -9,13 +9,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
12
  subAgentId: string;
16
13
  id: string;
17
14
  createdAt: string;
18
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ agentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
47
  subAgentId: string;
51
48
  id: string;
52
49
  createdAt: string;
53
50
  updatedAt: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ agentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
60
  subAgentId: string;
64
61
  id: string;
65
62
  createdAt: string;
66
63
  updatedAt: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ agentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -180,13 +180,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
- tenantId: string;
184
- projectId: string;
185
- agentId: string;
186
183
  subAgentId: string;
187
184
  id: string;
188
185
  createdAt: string;
189
186
  updatedAt: string;
187
+ projectId: string;
188
+ tenantId: string;
189
+ agentId: string;
190
190
  headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
@@ -197,13 +197,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
- tenantId: string;
201
- projectId: string;
202
- agentId: string;
203
200
  subAgentId: string;
204
201
  id: string;
205
202
  createdAt: string;
206
203
  updatedAt: string;
204
+ projectId: string;
205
+ tenantId: string;
206
+ agentId: string;
207
207
  headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
@@ -218,13 +218,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
- tenantId: string;
222
- projectId: string;
223
- agentId: string;
224
221
  subAgentId: string;
225
222
  id: string;
226
223
  createdAt: string;
227
224
  updatedAt: string;
225
+ projectId: string;
226
+ tenantId: string;
227
+ agentId: string;
228
228
  headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
12
  id: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
47
  id: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
60
  id: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- tenantId: string;
130
- projectId: string;
131
- agentId: string;
132
129
  id: string;
133
130
  createdAt: string;
134
131
  updatedAt: string;
132
+ projectId: string;
133
+ tenantId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- tenantId: string;
149
- projectId: string;
150
- agentId: string;
151
148
  id: string;
152
149
  createdAt: string;
153
150
  updatedAt: string;
151
+ projectId: string;
152
+ tenantId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
- tenantId: string;
163
- projectId: string;
164
- agentId: string;
165
162
  id: string;
166
163
  createdAt: string;
167
164
  updatedAt: string;
165
+ projectId: string;
166
+ tenantId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- tenantId: string;
208
- projectId: string;
209
- agentId: string;
210
207
  subAgentId: string;
211
208
  id: string;
212
209
  createdAt: string;
213
210
  updatedAt: string;
211
+ projectId: string;
212
+ tenantId: string;
213
+ agentId: string;
214
+ headers: Record<string, string> | null;
215
+ toolId: string;
214
216
  toolPolicies: Record<string, {
215
217
  needsApproval?: boolean;
216
218
  }> | null;
217
- toolId: string;
218
- headers: Record<string, string> | null;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -248,18 +248,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- tenantId: string;
252
- projectId: string;
253
- agentId: string;
254
251
  subAgentId: string;
255
252
  id: string;
256
253
  createdAt: string;
257
254
  updatedAt: string;
255
+ projectId: string;
256
+ tenantId: string;
257
+ agentId: string;
258
+ headers: Record<string, string> | null;
259
+ toolId: string;
258
260
  toolPolicies: Record<string, {
259
261
  needsApproval?: boolean;
260
262
  }> | null;
261
- toolId: string;
262
- headers: Record<string, string> | null;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {