@inkeep/agents-core 0.0.0-dev-20260330224432 → 0.0.0-dev-20260331031331

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.
@@ -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_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
12
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.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_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
19
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.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_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
26
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -12,9 +12,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  }) => Promise<{
13
13
  id: string;
14
14
  name: string;
15
+ description: string | null;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
- description: string | null;
18
+ projectId: string;
19
+ tenantId: string;
18
20
  models: {
19
21
  base?: {
20
22
  model?: string | undefined;
@@ -32,11 +34,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
34
  stopWhen: {
33
35
  transferCountIs?: number | undefined;
34
36
  } | null;
35
- tenantId: string;
36
- projectId: string;
37
- defaultSubAgentId: string | null;
38
- contextConfigId: string | null;
39
37
  prompt: string | null;
38
+ contextConfigId: string | null;
39
+ defaultSubAgentId: string | null;
40
40
  statusUpdates: {
41
41
  enabled?: boolean | undefined;
42
42
  numEvents?: number | undefined;
@@ -59,9 +59,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
59
59
  }) => Promise<{
60
60
  id: string;
61
61
  name: string;
62
+ description: string | null;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
- description: string | null;
65
+ projectId: string;
66
+ tenantId: string;
65
67
  models: {
66
68
  base?: {
67
69
  model?: string | undefined;
@@ -79,11 +81,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
79
81
  stopWhen: {
80
82
  transferCountIs?: number | undefined;
81
83
  } | null;
82
- tenantId: string;
83
- projectId: string;
84
- defaultSubAgentId: string | null;
85
- contextConfigId: string | null;
86
84
  prompt: string | null;
85
+ contextConfigId: string | null;
86
+ defaultSubAgentId: string | null;
87
87
  statusUpdates: {
88
88
  enabled?: boolean | undefined;
89
89
  numEvents?: number | undefined;
@@ -103,9 +103,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
103
103
  defaultSubAgent: {
104
104
  id: string;
105
105
  name: string;
106
+ description: string | null;
106
107
  createdAt: string;
107
108
  updatedAt: string;
108
- description: string | null;
109
+ projectId: string;
110
+ tenantId: string;
109
111
  models: {
110
112
  base?: {
111
113
  model?: string | undefined;
@@ -123,8 +125,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
123
125
  stopWhen: {
124
126
  stepCountIs?: number | undefined;
125
127
  } | null;
126
- tenantId: string;
127
- projectId: string;
128
128
  agentId: string;
129
129
  prompt: string | null;
130
130
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -135,9 +135,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
135
135
  }) => Promise<{
136
136
  id: string;
137
137
  name: string;
138
+ description: string | null;
138
139
  createdAt: string;
139
140
  updatedAt: string;
140
- description: string | null;
141
+ projectId: string;
142
+ tenantId: string;
141
143
  models: {
142
144
  base?: {
143
145
  model?: string | undefined;
@@ -155,11 +157,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
155
157
  stopWhen: {
156
158
  transferCountIs?: number | undefined;
157
159
  } | null;
158
- tenantId: string;
159
- projectId: string;
160
- defaultSubAgentId: string | null;
161
- contextConfigId: string | null;
162
160
  prompt: string | null;
161
+ contextConfigId: string | null;
162
+ defaultSubAgentId: string | null;
163
163
  statusUpdates: {
164
164
  enabled?: boolean | undefined;
165
165
  numEvents?: number | undefined;
@@ -253,9 +253,11 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
253
253
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
254
254
  id: string;
255
255
  name: string;
256
+ description: string | null;
256
257
  createdAt: string;
257
258
  updatedAt: string;
258
- description: string | null;
259
+ projectId: string;
260
+ tenantId: string;
259
261
  models: {
260
262
  base?: {
261
263
  model?: string | undefined;
@@ -273,11 +275,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
273
275
  stopWhen: {
274
276
  transferCountIs?: number | undefined;
275
277
  } | null;
276
- tenantId: string;
277
- projectId: string;
278
- defaultSubAgentId: string | null;
279
- contextConfigId: string | null;
280
278
  prompt: string | null;
279
+ contextConfigId: string | null;
280
+ defaultSubAgentId: string | null;
281
281
  statusUpdates: {
282
282
  enabled?: boolean | undefined;
283
283
  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
+ 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,8 +143,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
143
143
  }) => Promise<{
144
144
  id: string;
145
145
  createdAt: string;
146
- tenantId: string;
147
146
  projectId: string;
147
+ tenantId: string;
148
148
  agentId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
@@ -186,8 +186,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
186
186
  }) => Promise<{
187
187
  id: string;
188
188
  createdAt: string;
189
- tenantId: string;
190
189
  projectId: string;
190
+ tenantId: string;
191
191
  agentId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
@@ -12,8 +12,8 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  agentId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -24,8 +24,8 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- tenantId: string;
28
27
  projectId: string;
28
+ tenantId: string;
29
29
  agentId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -46,8 +46,8 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
49
  projectId: string;
50
+ tenantId: string;
51
51
  agentId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -86,8 +86,8 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
- tenantId: string;
90
89
  projectId: string;
90
+ tenantId: string;
91
91
  agentId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- tenantId: string;
71
70
  projectId: string;
71
+ tenantId: string;
72
72
  agentId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- tenantId: string;
113
112
  projectId: string;
113
+ tenantId: string;
114
114
  agentId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
@@ -55,11 +55,11 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
+ description: string | null;
58
59
  createdAt: string;
59
60
  updatedAt: string;
60
- description: string | null;
61
- tenantId: string;
62
61
  projectId: string;
62
+ tenantId: string;
63
63
  agentId: string;
64
64
  functionId: string;
65
65
  }>;
@@ -97,11 +97,11 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
+ description: string | null;
100
101
  createdAt: string;
101
102
  updatedAt: string;
102
- description: string | null;
103
- tenantId: string;
104
103
  projectId: string;
104
+ tenantId: string;
105
105
  agentId: string;
106
106
  functionId: string;
107
107
  }>;
@@ -160,8 +160,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
160
160
  id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
- tenantId: string;
164
163
  projectId: string;
164
+ tenantId: string;
165
165
  agentId: string;
166
166
  subAgentId: string;
167
167
  toolPolicies: Record<string, {
@@ -225,8 +225,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- tenantId: string;
229
228
  projectId: string;
229
+ tenantId: string;
230
230
  agentId: string;
231
231
  subAgentId: string;
232
232
  toolPolicies: Record<string, {
@@ -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;
24
- tenantId: string;
25
21
  content: string;
22
+ metadata: Record<string, string> | null;
23
+ createdAt: string;
24
+ updatedAt: string;
26
25
  projectId: string;
26
+ tenantId: 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;
119
- tenantId: string;
120
116
  content: string;
117
+ metadata: Record<string, string> | null;
118
+ createdAt: string;
119
+ updatedAt: string;
121
120
  projectId: string;
121
+ tenantId: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -142,8 +142,8 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
142
142
  id: string;
143
143
  createdAt: string;
144
144
  updatedAt: string;
145
- tenantId: string;
146
145
  projectId: string;
146
+ tenantId: string;
147
147
  agentId: string;
148
148
  subAgentId: string;
149
149
  skillId: string;
@@ -12,8 +12,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  agentId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
@@ -47,8 +47,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
50
  projectId: string;
51
+ tenantId: string;
52
52
  agentId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
@@ -60,8 +60,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
63
  projectId: string;
64
+ tenantId: string;
65
65
  agentId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
@@ -183,8 +183,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- tenantId: string;
187
186
  projectId: string;
187
+ tenantId: string;
188
188
  agentId: string;
189
189
  subAgentId: string;
190
190
  headers: Record<string, string> | null;
@@ -200,8 +200,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- tenantId: string;
204
203
  projectId: string;
204
+ tenantId: string;
205
205
  agentId: string;
206
206
  subAgentId: string;
207
207
  headers: Record<string, string> | null;
@@ -221,8 +221,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- tenantId: string;
225
224
  projectId: string;
225
+ tenantId: string;
226
226
  agentId: string;
227
227
  subAgentId: string;
228
228
  headers: Record<string, string> | null;
@@ -12,12 +12,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  agentId: 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;
@@ -47,12 +47,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
50
  projectId: string;
51
+ tenantId: string;
52
52
  agentId: 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;
@@ -60,12 +60,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
63
  projectId: string;
64
+ tenantId: string;
65
65
  agentId: 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;
@@ -129,12 +129,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- tenantId: string;
133
132
  projectId: string;
133
+ tenantId: string;
134
134
  agentId: 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
@@ -148,12 +148,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- tenantId: string;
152
151
  projectId: string;
152
+ tenantId: string;
153
153
  agentId: 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)
@@ -162,12 +162,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- tenantId: string;
166
165
  projectId: string;
166
+ tenantId: string;
167
167
  agentId: 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;
@@ -207,8 +207,8 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- tenantId: string;
211
210
  projectId: string;
211
+ tenantId: string;
212
212
  agentId: string;
213
213
  subAgentId: string;
214
214
  toolId: string;
@@ -251,8 +251,8 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- tenantId: string;
255
254
  projectId: string;
255
+ tenantId: string;
256
256
  agentId: string;
257
257
  subAgentId: string;
258
258
  toolId: string;
@@ -12,8 +12,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  agentId: string;
18
18
  subAgentId: string;
19
19
  headers: Record<string, string> | null;
@@ -47,8 +47,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
50
  projectId: string;
51
+ tenantId: string;
52
52
  agentId: string;
53
53
  subAgentId: string;
54
54
  headers: Record<string, string> | null;
@@ -60,8 +60,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
63
  projectId: string;
64
+ tenantId: string;
65
65
  agentId: string;
66
66
  subAgentId: string;
67
67
  headers: Record<string, string> | null;
@@ -213,8 +213,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- tenantId: string;
217
216
  projectId: string;
217
+ tenantId: string;
218
218
  agentId: string;
219
219
  subAgentId: string;
220
220
  headers: Record<string, string> | null;
@@ -230,8 +230,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- tenantId: string;
234
233
  projectId: string;
234
+ tenantId: string;
235
235
  agentId: string;
236
236
  subAgentId: string;
237
237
  headers: Record<string, string> | null;
@@ -251,8 +251,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- tenantId: string;
255
254
  projectId: string;
255
+ tenantId: string;
256
256
  agentId: string;
257
257
  subAgentId: string;
258
258
  headers: Record<string, string> | null;
@@ -11,9 +11,11 @@ declare const getSubAgentById: (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
+ projectId: string;
18
+ tenantId: string;
17
19
  models: {
18
20
  base?: {
19
21
  model?: string | undefined;
@@ -31,8 +33,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
33
  stopWhen: {
32
34
  stepCountIs?: number | undefined;
33
35
  } | null;
34
- tenantId: string;
35
- projectId: string;
36
36
  agentId: string;
37
37
  prompt: string | null;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -42,9 +42,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
42
42
  }) => Promise<{
43
43
  id: string;
44
44
  name: string;
45
+ description: string | null;
45
46
  createdAt: string;
46
47
  updatedAt: string;
47
- description: string | null;
48
+ projectId: string;
49
+ tenantId: string;
48
50
  models: {
49
51
  base?: {
50
52
  model?: string | undefined;
@@ -62,8 +64,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
64
  stopWhen: {
63
65
  stepCountIs?: number | undefined;
64
66
  } | null;
65
- tenantId: string;
66
- projectId: string;
67
67
  agentId: string;
68
68
  prompt: string | null;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -111,9 +111,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
113
  name: string;
114
+ description: string | null;
114
115
  createdAt: string;
115
116
  updatedAt: string;
116
- description: string | null;
117
+ projectId: string;
118
+ tenantId: string;
117
119
  models: {
118
120
  base?: {
119
121
  model?: string | undefined;
@@ -131,8 +133,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
133
  stopWhen: {
132
134
  stepCountIs?: number | undefined;
133
135
  } | null;
134
- tenantId: string;
135
- projectId: string;
136
136
  agentId: string;
137
137
  prompt: string | null;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;