@inkeep/agents-core 0.58.16 → 0.58.18

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.
@@ -19,8 +19,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
19
19
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
20
20
  id: z.ZodString;
21
21
  name: z.ZodString;
22
+ createdAt: z.ZodOptional<z.ZodString>;
23
+ updatedAt: z.ZodOptional<z.ZodString>;
22
24
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
24
25
  models: z.ZodOptional<z.ZodObject<{
25
26
  base: z.ZodOptional<z.ZodObject<{
26
27
  model: z.ZodOptional<z.ZodString>;
@@ -35,8 +36,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
35
36
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
36
37
  }, z.core.$strip>>;
37
38
  }, z.core.$strip>>;
38
- createdAt: z.ZodOptional<z.ZodString>;
39
- updatedAt: z.ZodOptional<z.ZodString>;
39
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
40
40
  type: z.ZodLiteral<"internal">;
41
41
  canUse: z.ZodArray<z.ZodObject<{
42
42
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -12,11 +12,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  }) => Promise<{
13
13
  id: string;
14
14
  name: string;
15
+ createdAt: string;
16
+ updatedAt: string;
15
17
  description: string | null;
16
- defaultSubAgentId: string | null;
17
18
  tenantId: string;
18
19
  projectId: string;
19
- prompt: string | null;
20
+ contextConfigId: string | null;
20
21
  models: {
21
22
  base?: {
22
23
  model?: string | undefined;
@@ -34,9 +35,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
35
  stopWhen: {
35
36
  transferCountIs?: number | undefined;
36
37
  } | null;
37
- createdAt: string;
38
- updatedAt: string;
39
- contextConfigId: string | null;
38
+ prompt: string | null;
39
+ defaultSubAgentId: string | null;
40
40
  statusUpdates: {
41
41
  enabled?: boolean | undefined;
42
42
  numEvents?: number | undefined;
@@ -58,11 +58,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
58
58
  }) => Promise<{
59
59
  id: string;
60
60
  name: string;
61
+ createdAt: string;
62
+ updatedAt: string;
61
63
  description: string | null;
62
- defaultSubAgentId: string | null;
63
64
  tenantId: string;
64
65
  projectId: string;
65
- prompt: string | null;
66
+ contextConfigId: string | null;
66
67
  models: {
67
68
  base?: {
68
69
  model?: string | undefined;
@@ -80,9 +81,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
80
81
  stopWhen: {
81
82
  transferCountIs?: number | undefined;
82
83
  } | null;
83
- createdAt: string;
84
- updatedAt: string;
85
- contextConfigId: string | null;
84
+ prompt: string | null;
85
+ defaultSubAgentId: string | null;
86
86
  statusUpdates: {
87
87
  enabled?: boolean | undefined;
88
88
  numEvents?: number | undefined;
@@ -101,12 +101,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
101
101
  defaultSubAgent: {
102
102
  id: string;
103
103
  name: string;
104
+ createdAt: string;
105
+ updatedAt: string;
104
106
  description: string | null;
105
107
  tenantId: string;
106
108
  projectId: string;
107
109
  agentId: string;
108
- prompt: string | null;
109
- conversationHistoryConfig: ConversationHistoryConfig | null;
110
110
  models: {
111
111
  base?: {
112
112
  model?: string | undefined;
@@ -124,8 +124,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
124
124
  stopWhen: {
125
125
  stepCountIs?: number | undefined;
126
126
  } | null;
127
- createdAt: string;
128
- updatedAt: string;
127
+ prompt: string | null;
128
+ conversationHistoryConfig: ConversationHistoryConfig | null;
129
129
  } | null;
130
130
  } | null>;
131
131
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -133,11 +133,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
133
133
  }) => Promise<{
134
134
  id: string;
135
135
  name: string;
136
+ createdAt: string;
137
+ updatedAt: string;
136
138
  description: string | null;
137
- defaultSubAgentId: string | null;
138
139
  tenantId: string;
139
140
  projectId: string;
140
- prompt: string | null;
141
+ contextConfigId: string | null;
141
142
  models: {
142
143
  base?: {
143
144
  model?: string | undefined;
@@ -155,9 +156,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
155
156
  stopWhen: {
156
157
  transferCountIs?: number | undefined;
157
158
  } | null;
158
- createdAt: string;
159
- updatedAt: string;
160
- contextConfigId: string | null;
159
+ prompt: string | null;
160
+ defaultSubAgentId: string | null;
161
161
  statusUpdates: {
162
162
  enabled?: boolean | undefined;
163
163
  numEvents?: number | undefined;
@@ -249,11 +249,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
249
249
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
250
250
  id: string;
251
251
  name: string;
252
+ createdAt: string;
253
+ updatedAt: string;
252
254
  description: string | null;
253
- defaultSubAgentId: string | null;
254
255
  tenantId: string;
255
256
  projectId: string;
256
- prompt: string | null;
257
+ contextConfigId: string | null;
257
258
  models: {
258
259
  base?: {
259
260
  model?: string | undefined;
@@ -271,9 +272,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
271
272
  stopWhen: {
272
273
  transferCountIs?: number | undefined;
273
274
  } | null;
274
- createdAt: string;
275
- updatedAt: string;
276
- contextConfigId: string | null;
275
+ prompt: string | null;
276
+ defaultSubAgentId: string | null;
277
277
  statusUpdates: {
278
278
  enabled?: boolean | undefined;
279
279
  numEvents?: number | undefined;
@@ -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;
14
16
  description: string | null;
15
17
  tenantId: string;
16
18
  projectId: string;
17
- createdAt: 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;
70
72
  description: string | null;
71
73
  tenantId: string;
72
74
  projectId: string;
73
- createdAt: string;
74
- updatedAt: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
144
  id: string;
145
+ createdAt: string;
145
146
  tenantId: string;
146
147
  projectId: string;
147
148
  agentId: string;
148
- createdAt: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
+ createdAt: string;
188
189
  tenantId: string;
189
190
  projectId: string;
190
191
  agentId: string;
191
- createdAt: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ createdAt: string;
14
+ updatedAt: string;
13
15
  tenantId: string;
14
16
  projectId: string;
15
17
  agentId: string;
16
- createdAt: string;
17
- updatedAt: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
+ createdAt: string;
26
+ updatedAt: string;
25
27
  tenantId: string;
26
28
  projectId: string;
27
29
  agentId: string;
28
- createdAt: string;
29
- updatedAt: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
+ createdAt: string;
48
+ updatedAt: string;
47
49
  tenantId: string;
48
50
  projectId: string;
49
51
  agentId: string;
50
- createdAt: string;
51
- updatedAt: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
+ createdAt: string;
88
+ updatedAt: string;
87
89
  tenantId: string;
88
90
  projectId: string;
89
91
  agentId: string;
90
- createdAt: string;
91
- updatedAt: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
68
  id: string;
69
+ createdAt: string;
69
70
  tenantId: string;
70
71
  projectId: string;
71
72
  agentId: string;
72
- createdAt: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
110
  id: string;
111
+ createdAt: string;
111
112
  tenantId: string;
112
113
  projectId: string;
113
114
  agentId: string;
114
- createdAt: 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;
58
60
  description: string | null;
59
61
  tenantId: string;
60
62
  projectId: string;
61
63
  agentId: string;
62
- createdAt: 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;
100
102
  description: string | null;
101
103
  tenantId: string;
102
104
  projectId: string;
103
105
  agentId: string;
104
- createdAt: string;
105
- updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -158,15 +158,15 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
158
158
  }> | null;
159
159
  }) => Promise<{
160
160
  id: string;
161
+ createdAt: string;
162
+ updatedAt: string;
161
163
  tenantId: string;
162
164
  projectId: string;
163
165
  agentId: string;
164
- createdAt: string;
165
- updatedAt: string;
166
+ subAgentId: string;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- subAgentId: string;
170
170
  functionToolId: string;
171
171
  }>;
172
172
  /**
@@ -223,15 +223,15 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
223
223
  }> | null;
224
224
  }) => Promise<{
225
225
  id: string;
226
+ createdAt: string;
227
+ updatedAt: string;
226
228
  tenantId: string;
227
229
  projectId: string;
228
230
  agentId: string;
229
- createdAt: string;
230
- updatedAt: string;
231
+ subAgentId: string;
231
232
  toolPolicies: Record<string, {
232
233
  needsApproval?: boolean;
233
234
  }> | null;
234
- subAgentId: string;
235
235
  functionToolId: string;
236
236
  }>;
237
237
  //#endregion
@@ -10,12 +10,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
- description: string;
14
- tenantId: string;
15
- projectId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  metadata: Record<string, string> | null;
16
+ description: string;
17
+ tenantId: string;
18
+ projectId: string;
19
19
  content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,23 +43,23 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
44
  id: string;
45
45
  name: string;
46
- description: string;
47
- tenantId: string;
48
- projectId: string;
49
46
  createdAt: string;
50
47
  updatedAt: string;
51
48
  metadata: Record<string, string> | null;
49
+ description: string;
50
+ tenantId: string;
51
+ projectId: string;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  id: string;
56
56
  name: string;
57
- description: string;
58
- tenantId: string;
59
- projectId: string;
60
57
  createdAt: string;
61
58
  updatedAt: string;
62
59
  metadata: Record<string, string> | null;
60
+ description: string;
61
+ tenantId: string;
62
+ projectId: string;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -92,14 +92,14 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
94
  id: string;
95
+ createdAt: string;
96
+ updatedAt: string;
95
97
  tenantId: string;
96
98
  projectId: string;
97
99
  agentId: string;
98
- createdAt: string;
99
- updatedAt: string;
100
+ subAgentId: string;
100
101
  index: number;
101
102
  alwaysLoaded: boolean;
102
- subAgentId: string;
103
103
  skillId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,14 +10,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  headers: Record<string, string> | null;
19
- externalAgentId: string;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
20
19
  subAgentId: string;
20
+ externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -45,27 +45,27 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
53
50
  headers: Record<string, string> | null;
54
- externalAgentId: string;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
55
54
  subAgentId: string;
55
+ externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
- projectId: string;
63
- agentId: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
66
63
  headers: Record<string, string> | null;
67
- externalAgentId: string;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
68
67
  subAgentId: string;
68
+ externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -181,14 +181,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
181
181
  };
182
182
  }) => Promise<{
183
183
  id: string;
184
- tenantId: string;
185
- projectId: string;
186
- agentId: string;
187
184
  createdAt: string;
188
185
  updatedAt: string;
189
186
  headers: Record<string, string> | null;
190
- externalAgentId: string;
187
+ tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
191
190
  subAgentId: string;
191
+ externalAgentId: string;
192
192
  }>;
193
193
  /**
194
194
  * Check if sub-agent external agent relation exists by params
@@ -198,14 +198,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
- tenantId: string;
202
- projectId: string;
203
- agentId: string;
204
201
  createdAt: string;
205
202
  updatedAt: string;
206
203
  headers: Record<string, string> | null;
207
- externalAgentId: string;
204
+ tenantId: string;
205
+ projectId: string;
206
+ agentId: string;
208
207
  subAgentId: string;
208
+ externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
211
211
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -219,14 +219,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
219
219
  };
220
220
  }) => Promise<{
221
221
  id: string;
222
- tenantId: string;
223
- projectId: string;
224
- agentId: string;
225
222
  createdAt: string;
226
223
  updatedAt: string;
227
224
  headers: Record<string, string> | null;
228
- externalAgentId: string;
225
+ tenantId: string;
226
+ projectId: string;
227
+ agentId: string;
229
228
  subAgentId: string;
229
+ externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
232
232
  scopes: SubAgentScopeConfig;
@@ -10,14 +10,14 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ createdAt: string;
14
+ updatedAt: string;
13
15
  tenantId: string;
14
16
  projectId: string;
15
17
  agentId: string;
16
- createdAt: string;
17
- updatedAt: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -45,27 +45,27 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
+ createdAt: string;
49
+ updatedAt: string;
48
50
  tenantId: string;
49
51
  projectId: string;
50
52
  agentId: string;
51
- createdAt: string;
52
- updatedAt: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
+ createdAt: string;
62
+ updatedAt: string;
61
63
  tenantId: string;
62
64
  projectId: string;
63
65
  agentId: string;
64
- createdAt: string;
65
- updatedAt: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -127,14 +127,14 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
+ createdAt: string;
131
+ updatedAt: string;
130
132
  tenantId: string;
131
133
  projectId: string;
132
134
  agentId: string;
133
- createdAt: string;
134
- updatedAt: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -146,28 +146,28 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
+ createdAt: string;
150
+ updatedAt: string;
149
151
  tenantId: string;
150
152
  projectId: string;
151
153
  agentId: string;
152
- createdAt: string;
153
- updatedAt: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
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
162
  id: string;
163
+ createdAt: string;
164
+ updatedAt: string;
163
165
  tenantId: string;
164
166
  projectId: string;
165
167
  agentId: string;
166
- createdAt: string;
167
- updatedAt: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -205,17 +205,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
+ createdAt: string;
209
+ updatedAt: string;
210
+ headers: Record<string, string> | null;
208
211
  tenantId: string;
209
212
  projectId: string;
210
213
  agentId: string;
211
- createdAt: string;
212
- updatedAt: string;
214
+ subAgentId: string;
213
215
  toolId: string;
214
- headers: Record<string, string> | null;
215
216
  toolPolicies: Record<string, {
216
217
  needsApproval?: boolean;
217
218
  }> | null;
218
- subAgentId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -249,17 +249,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
+ createdAt: string;
253
+ updatedAt: string;
254
+ headers: Record<string, string> | null;
252
255
  tenantId: string;
253
256
  projectId: string;
254
257
  agentId: string;
255
- createdAt: string;
256
- updatedAt: string;
258
+ subAgentId: string;
257
259
  toolId: string;
258
- headers: Record<string, string> | null;
259
260
  toolPolicies: Record<string, {
260
261
  needsApproval?: boolean;
261
262
  }> | null;
262
- subAgentId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {