@inkeep/agents-core 0.55.2 → 0.55.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.
@@ -1273,25 +1273,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1273
1273
  ac: better_auth_plugins0.AccessControl;
1274
1274
  roles: {
1275
1275
  member: {
1276
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1277
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1276
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1277
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1278
1278
  connector: "OR" | "AND";
1279
1279
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1280
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1280
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1281
1281
  };
1282
1282
  admin: {
1283
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1284
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1283
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1284
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1285
1285
  connector: "OR" | "AND";
1286
1286
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1287
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1287
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1288
1288
  };
1289
1289
  owner: {
1290
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1291
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1290
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1291
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1292
1292
  connector: "OR" | "AND";
1293
1293
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1294
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1294
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1295
1295
  };
1296
1296
  };
1297
1297
  creatorRole: "admin";
@@ -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" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
9
- actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
9
+ actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
12
- statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>;
12
+ statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
16
- actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
16
+ actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
19
- statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>;
19
+ statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
23
- actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
23
+ actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
26
- statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins35.Statements>;
26
+ statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -11,11 +11,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ description: string | null;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- description: string | null;
17
- tenantId: string;
18
17
  projectId: string;
18
+ tenantId: string;
19
+ defaultSubAgentId: string | null;
20
+ contextConfigId: string | null;
19
21
  models: {
20
22
  base?: {
21
23
  model?: string | undefined;
@@ -30,12 +32,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
32
  providerOptions?: Record<string, any> | undefined;
31
33
  } | undefined;
32
34
  } | null;
33
- stopWhen: {
34
- transferCountIs?: number | undefined;
35
- } | null;
36
35
  prompt: string | null;
37
- defaultSubAgentId: string | null;
38
- contextConfigId: string | null;
39
36
  statusUpdates: {
40
37
  enabled?: boolean | undefined;
41
38
  numEvents?: number | undefined;
@@ -51,17 +48,22 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
51
48
  } | undefined;
52
49
  }[] | undefined;
53
50
  } | null;
51
+ stopWhen: {
52
+ transferCountIs?: number | undefined;
53
+ } | null;
54
54
  } | null>;
55
55
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
58
  id: string;
59
59
  name: string;
60
+ description: string | null;
60
61
  createdAt: string;
61
62
  updatedAt: string;
62
- description: string | null;
63
- tenantId: string;
64
63
  projectId: string;
64
+ tenantId: string;
65
+ defaultSubAgentId: string | null;
66
+ contextConfigId: string | null;
65
67
  models: {
66
68
  base?: {
67
69
  model?: string | undefined;
@@ -76,12 +78,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
76
78
  providerOptions?: Record<string, any> | undefined;
77
79
  } | undefined;
78
80
  } | null;
79
- stopWhen: {
80
- transferCountIs?: number | undefined;
81
- } | null;
82
81
  prompt: string | null;
83
- defaultSubAgentId: string | null;
84
- contextConfigId: string | null;
85
82
  statusUpdates: {
86
83
  enabled?: boolean | undefined;
87
84
  numEvents?: number | undefined;
@@ -97,14 +94,18 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
94
  } | undefined;
98
95
  }[] | undefined;
99
96
  } | null;
97
+ stopWhen: {
98
+ transferCountIs?: number | undefined;
99
+ } | null;
100
100
  defaultSubAgent: {
101
101
  id: string;
102
102
  name: string;
103
+ description: string | null;
103
104
  createdAt: string;
104
105
  updatedAt: string;
105
- description: string | null;
106
- tenantId: string;
106
+ agentId: string;
107
107
  projectId: string;
108
+ tenantId: string;
108
109
  models: {
109
110
  base?: {
110
111
  model?: string | undefined;
@@ -119,11 +120,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
119
120
  providerOptions?: Record<string, any> | undefined;
120
121
  } | undefined;
121
122
  } | null;
123
+ prompt: string | null;
122
124
  stopWhen: {
123
125
  stepCountIs?: number | undefined;
124
126
  } | null;
125
- agentId: string;
126
- prompt: string | null;
127
127
  conversationHistoryConfig: ConversationHistoryConfig | null;
128
128
  } | null;
129
129
  } | null>;
@@ -132,11 +132,13 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
132
132
  }) => Promise<{
133
133
  id: string;
134
134
  name: string;
135
+ description: string | null;
135
136
  createdAt: string;
136
137
  updatedAt: string;
137
- description: string | null;
138
- tenantId: string;
139
138
  projectId: string;
139
+ tenantId: string;
140
+ defaultSubAgentId: string | null;
141
+ contextConfigId: string | null;
140
142
  models: {
141
143
  base?: {
142
144
  model?: string | undefined;
@@ -151,12 +153,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
151
153
  providerOptions?: Record<string, any> | undefined;
152
154
  } | undefined;
153
155
  } | null;
154
- stopWhen: {
155
- transferCountIs?: number | undefined;
156
- } | null;
157
156
  prompt: string | null;
158
- defaultSubAgentId: string | null;
159
- contextConfigId: string | null;
160
157
  statusUpdates: {
161
158
  enabled?: boolean | undefined;
162
159
  numEvents?: number | undefined;
@@ -172,6 +169,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
172
169
  } | undefined;
173
170
  }[] | undefined;
174
171
  } | null;
172
+ stopWhen: {
173
+ transferCountIs?: number | undefined;
174
+ } | null;
175
175
  }[]>;
176
176
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
177
177
  scopes: ProjectScopeConfig;
@@ -248,11 +248,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
248
248
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
249
249
  id: string;
250
250
  name: string;
251
+ description: string | null;
251
252
  createdAt: string;
252
253
  updatedAt: string;
253
- description: string | null;
254
- tenantId: string;
255
254
  projectId: string;
255
+ tenantId: string;
256
+ defaultSubAgentId: string | null;
257
+ contextConfigId: string | null;
256
258
  models: {
257
259
  base?: {
258
260
  model?: string | undefined;
@@ -267,12 +269,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
267
269
  providerOptions?: Record<string, any> | undefined;
268
270
  } | undefined;
269
271
  } | null;
270
- stopWhen: {
271
- transferCountIs?: number | undefined;
272
- } | null;
273
272
  prompt: string | null;
274
- defaultSubAgentId: string | null;
275
- contextConfigId: string | null;
276
273
  statusUpdates: {
277
274
  enabled?: boolean | undefined;
278
275
  numEvents?: number | undefined;
@@ -288,6 +285,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
288
285
  } | undefined;
289
286
  }[] | undefined;
290
287
  } | null;
288
+ stopWhen: {
289
+ transferCountIs?: number | undefined;
290
+ } | null;
291
291
  }>;
292
292
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
293
293
  scopes: AgentScopeConfig;
@@ -11,11 +11,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ description: string | null;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- description: string | null;
17
- tenantId: string;
18
17
  projectId: string;
18
+ tenantId: 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
+ description: string | null;
70
71
  createdAt: string;
71
72
  updatedAt: string;
72
- description: string | null;
73
- tenantId: string;
74
73
  projectId: string;
74
+ tenantId: 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>;
@@ -12,9 +12,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -24,9 +24,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
29
27
  agentId: string;
28
+ projectId: string;
29
+ tenantId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -46,9 +46,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
51
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -86,9 +86,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
- tenantId: string;
90
- projectId: string;
91
89
  agentId: string;
90
+ projectId: string;
91
+ tenantId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -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,13 +55,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
+ description: string | null;
59
+ functionId: string;
58
60
  createdAt: string;
59
61
  updatedAt: string;
60
- description: string | null;
61
- tenantId: string;
62
- projectId: string;
63
62
  agentId: string;
64
- functionId: string;
63
+ projectId: string;
64
+ tenantId: string;
65
65
  }>;
66
66
  /**
67
67
  * Update a function tool (agent-scoped)
@@ -97,13 +97,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
+ description: string | null;
101
+ functionId: string;
100
102
  createdAt: string;
101
103
  updatedAt: string;
102
- description: string | null;
103
- tenantId: string;
104
- projectId: string;
105
104
  agentId: string;
106
- functionId: string;
105
+ projectId: string;
106
+ tenantId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
109
109
  scopes: {
@@ -164,9 +164,9 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  id: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- tenantId: string;
168
- projectId: string;
169
167
  agentId: string;
168
+ projectId: string;
169
+ tenantId: string;
170
170
  subAgentId: string;
171
171
  functionToolId: string;
172
172
  toolPolicies: Record<string, {
@@ -229,9 +229,9 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- tenantId: string;
233
- projectId: string;
234
232
  agentId: string;
233
+ projectId: string;
234
+ tenantId: string;
235
235
  subAgentId: string;
236
236
  functionToolId: string;
237
237
  toolPolicies: Record<string, {
@@ -10,12 +10,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
+ description: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- metadata: Record<string, string> | null;
16
- description: string;
17
- tenantId: string;
18
16
  projectId: string;
17
+ tenantId: string;
18
+ metadata: Record<string, string> | null;
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;
46
47
  createdAt: string;
47
48
  updatedAt: string;
48
- metadata: Record<string, string> | null;
49
- description: string;
50
- tenantId: string;
51
49
  projectId: string;
50
+ tenantId: string;
51
+ metadata: Record<string, string> | null;
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;
57
58
  createdAt: string;
58
59
  updatedAt: string;
59
- metadata: Record<string, string> | null;
60
- description: string;
61
- tenantId: string;
62
60
  projectId: string;
61
+ tenantId: string;
62
+ metadata: Record<string, string> | null;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -94,9 +94,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
94
94
  id: string;
95
95
  createdAt: string;
96
96
  updatedAt: string;
97
- tenantId: string;
98
- projectId: string;
99
97
  agentId: string;
98
+ projectId: string;
99
+ tenantId: string;
100
100
  subAgentId: string;
101
101
  skillId: string;
102
102
  index: number;
@@ -12,9 +12,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
@@ -47,9 +47,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
@@ -60,9 +60,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
@@ -183,9 +183,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- tenantId: string;
187
- projectId: string;
188
186
  agentId: string;
187
+ projectId: string;
188
+ tenantId: string;
189
189
  subAgentId: string;
190
190
  headers: Record<string, string> | null;
191
191
  externalAgentId: string;
@@ -200,9 +200,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- tenantId: string;
204
- projectId: string;
205
203
  agentId: string;
204
+ projectId: string;
205
+ tenantId: string;
206
206
  subAgentId: string;
207
207
  headers: Record<string, string> | null;
208
208
  externalAgentId: string;
@@ -221,9 +221,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- tenantId: string;
225
- projectId: string;
226
224
  agentId: string;
225
+ projectId: string;
226
+ tenantId: string;
227
227
  subAgentId: string;
228
228
  headers: Record<string, string> | null;
229
229
  externalAgentId: string;
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
134
132
  agentId: string;
133
+ projectId: string;
134
+ tenantId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- tenantId: string;
152
- projectId: string;
153
151
  agentId: string;
152
+ projectId: string;
153
+ tenantId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- tenantId: string;
166
- projectId: string;
167
165
  agentId: string;
166
+ projectId: string;
167
+ tenantId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -207,15 +207,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
212
210
  agentId: string;
211
+ projectId: string;
212
+ tenantId: string;
213
213
  subAgentId: string;
214
- headers: Record<string, string> | null;
215
- toolId: string;
216
214
  toolPolicies: Record<string, {
217
215
  needsApproval?: boolean;
218
216
  }> | null;
217
+ headers: Record<string, string> | null;
218
+ toolId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -251,15 +251,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- tenantId: string;
255
- projectId: string;
256
254
  agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
257
  subAgentId: string;
258
- headers: Record<string, string> | null;
259
- toolId: string;
260
258
  toolPolicies: Record<string, {
261
259
  needsApproval?: boolean;
262
260
  }> | null;
261
+ headers: Record<string, string> | null;
262
+ toolId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {