@inkeep/agents-core 0.0.0-dev-20260319140628 → 0.0.0-dev-20260319160044

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 (52) hide show
  1. package/dist/auth/auth-config-utils.d.ts +49 -0
  2. package/dist/auth/auth-config-utils.js +133 -0
  3. package/dist/auth/auth-schema.d.ts +17 -0
  4. package/dist/auth/auth-schema.js +1 -0
  5. package/dist/auth/auth-types.d.ts +170 -0
  6. package/dist/auth/auth-types.js +53 -0
  7. package/dist/auth/auth-validation-schemas.d.ts +186 -152
  8. package/dist/auth/auth.d.ts +48 -1291
  9. package/dist/auth/auth.js +61 -70
  10. package/dist/auth/email-send-status-store.js +15 -3
  11. package/dist/auth/init.js +2 -1
  12. package/dist/auth/password-reset-link-store.js +8 -1
  13. package/dist/auth/permissions.d.ts +13 -13
  14. package/dist/data-access/index.d.ts +4 -3
  15. package/dist/data-access/index.js +3 -3
  16. package/dist/data-access/manage/agents.d.ts +11 -11
  17. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  18. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  19. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  20. package/dist/data-access/manage/functionTools.d.ts +12 -12
  21. package/dist/data-access/manage/skills.d.ts +10 -10
  22. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  23. package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
  24. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  25. package/dist/data-access/manage/subAgents.d.ts +9 -9
  26. package/dist/data-access/manage/tools.d.ts +15 -15
  27. package/dist/data-access/manage/triggers.d.ts +2 -2
  28. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  29. package/dist/data-access/runtime/apps.d.ts +6 -6
  30. package/dist/data-access/runtime/auth.d.ts +9 -9
  31. package/dist/data-access/runtime/auth.js +19 -21
  32. package/dist/data-access/runtime/conversations.d.ts +23 -23
  33. package/dist/data-access/runtime/messages.d.ts +6 -6
  34. package/dist/data-access/runtime/organizations.d.ts +28 -4
  35. package/dist/data-access/runtime/organizations.js +131 -9
  36. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +6 -6
  37. package/dist/data-access/runtime/tasks.d.ts +7 -7
  38. package/dist/data-access/runtime/triggerInvocations.d.ts +1 -1
  39. package/dist/db/manage/manage-schema.d.ts +453 -453
  40. package/dist/db/runtime/runtime-schema.d.ts +346 -346
  41. package/dist/index.d.ts +4 -3
  42. package/dist/index.js +3 -3
  43. package/dist/utils/error.d.ts +54 -51
  44. package/dist/utils/error.js +3 -0
  45. package/dist/validation/dolt-schemas.d.ts +1 -1
  46. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  47. package/dist/validation/schemas.d.ts +1883 -1883
  48. package/drizzle/runtime/0023_lazy_energizer.sql +1 -0
  49. package/drizzle/runtime/0024_moaning_kingpin.sql +1 -0
  50. package/drizzle/runtime/meta/0024_snapshot.json +4270 -0
  51. package/drizzle/runtime/meta/_journal.json +7 -0
  52. package/package.json +8 -3
@@ -9,11 +9,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
+ projectId: string;
13
+ tenantId: string;
12
14
  id: string;
13
15
  name: string;
14
16
  description: string | null;
15
- tenantId: string;
16
- projectId: string;
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
19
  props: {
@@ -65,11 +65,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
+ projectId: string;
69
+ tenantId: string;
68
70
  id: string;
69
71
  name: string;
70
72
  description: string | null;
71
- tenantId: string;
72
- projectId: string;
73
73
  createdAt: string;
74
74
  updatedAt: string;
75
75
  props: {
@@ -141,10 +141,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
141
141
  scopes: SubAgentScopeConfig;
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
- id: string;
145
- tenantId: string;
146
- projectId: string;
147
144
  agentId: string;
145
+ projectId: string;
146
+ tenantId: string;
147
+ id: string;
148
148
  createdAt: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
@@ -184,10 +184,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
184
184
  scopes: SubAgentScopeConfig;
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
- id: string;
188
- tenantId: string;
189
- projectId: string;
190
187
  agentId: string;
188
+ projectId: string;
189
+ tenantId: string;
190
+ id: string;
191
191
  createdAt: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
@@ -9,10 +9,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- id: string;
13
- tenantId: string;
14
- projectId: string;
15
12
  agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
15
+ id: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  headersSchema: unknown;
@@ -21,10 +21,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
- id: string;
25
- tenantId: string;
26
- projectId: string;
27
24
  agentId: string;
25
+ projectId: string;
26
+ tenantId: string;
27
+ id: string;
28
28
  createdAt: string;
29
29
  updatedAt: string;
30
30
  headersSchema: unknown;
@@ -43,10 +43,10 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
43
43
  };
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
- id: string;
47
- tenantId: string;
48
- projectId: string;
49
46
  agentId: string;
47
+ projectId: string;
48
+ tenantId: string;
49
+ id: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
52
  headersSchema: unknown;
@@ -83,10 +83,10 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
83
83
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
- id: string;
87
- tenantId: string;
88
- projectId: string;
89
86
  agentId: string;
87
+ projectId: string;
88
+ tenantId: string;
89
+ id: string;
90
90
  createdAt: string;
91
91
  updatedAt: string;
92
92
  headersSchema: unknown;
@@ -65,10 +65,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
65
65
  scopes: SubAgentScopeConfig;
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
- id: string;
69
- tenantId: string;
70
- projectId: string;
71
68
  agentId: string;
69
+ projectId: string;
70
+ tenantId: string;
71
+ id: string;
72
72
  createdAt: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
@@ -107,10 +107,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
107
107
  scopes: SubAgentScopeConfig;
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
- id: string;
111
- tenantId: string;
112
- projectId: string;
113
110
  agentId: string;
111
+ projectId: string;
112
+ tenantId: string;
113
+ id: string;
114
114
  createdAt: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
@@ -53,12 +53,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
+ agentId: string;
57
+ projectId: string;
58
+ tenantId: string;
56
59
  id: string;
57
60
  name: string;
58
61
  description: string | null;
59
- tenantId: string;
60
- projectId: string;
61
- agentId: string;
62
62
  createdAt: string;
63
63
  updatedAt: string;
64
64
  functionId: string;
@@ -95,12 +95,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
+ agentId: string;
99
+ projectId: string;
100
+ tenantId: string;
98
101
  id: string;
99
102
  name: string;
100
103
  description: string | null;
101
- tenantId: string;
102
- projectId: string;
103
- agentId: string;
104
104
  createdAt: string;
105
105
  updatedAt: string;
106
106
  functionId: string;
@@ -157,10 +157,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
157
157
  needsApproval?: boolean;
158
158
  }> | null;
159
159
  }) => Promise<{
160
- id: string;
161
- tenantId: string;
162
- projectId: string;
163
160
  agentId: string;
161
+ projectId: string;
162
+ tenantId: string;
163
+ id: string;
164
164
  createdAt: string;
165
165
  updatedAt: string;
166
166
  toolPolicies: Record<string, {
@@ -222,10 +222,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
222
222
  needsApproval?: boolean;
223
223
  }> | null;
224
224
  }) => Promise<{
225
- id: string;
226
- tenantId: string;
227
- projectId: string;
228
225
  agentId: string;
226
+ projectId: string;
227
+ tenantId: string;
228
+ id: string;
229
229
  createdAt: string;
230
230
  updatedAt: string;
231
231
  toolPolicies: Record<string, {
@@ -8,11 +8,11 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
+ projectId: string;
12
+ tenantId: string;
11
13
  id: string;
12
14
  name: string;
13
15
  description: string;
14
- tenantId: string;
15
- projectId: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  metadata: Record<string, string> | null;
@@ -41,22 +41,22 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
41
41
  };
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
+ projectId: string;
45
+ tenantId: string;
44
46
  id: string;
45
47
  name: string;
46
48
  description: string;
47
- tenantId: string;
48
- projectId: string;
49
49
  createdAt: string;
50
50
  updatedAt: string;
51
51
  metadata: Record<string, string> | null;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
+ projectId: string;
56
+ tenantId: string;
55
57
  id: string;
56
58
  name: string;
57
59
  description: string;
58
- tenantId: string;
59
- projectId: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
62
  metadata: Record<string, string> | null;
@@ -91,16 +91,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
91
91
  index: number;
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
- id: string;
95
- tenantId: string;
96
- projectId: string;
97
94
  agentId: string;
95
+ projectId: string;
96
+ tenantId: string;
97
+ id: string;
98
98
  createdAt: string;
99
99
  updatedAt: string;
100
100
  index: number;
101
101
  alwaysLoaded: boolean;
102
- skillId: string;
103
102
  subAgentId: string;
103
+ skillId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  scopes: AgentScopeConfig;
@@ -9,10 +9,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- tenantId: string;
14
- projectId: string;
15
12
  agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
15
+ id: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  headers: Record<string, string> | null;
@@ -44,10 +44,10 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- id: string;
48
- tenantId: string;
49
- projectId: string;
50
47
  agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
50
+ id: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
53
  headers: Record<string, string> | null;
@@ -57,10 +57,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- id: string;
61
- tenantId: string;
62
- projectId: string;
63
60
  agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ id: string;
64
64
  createdAt: string;
65
65
  updatedAt: string;
66
66
  headers: Record<string, string> | null;
@@ -180,10 +180,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
- id: string;
184
- tenantId: string;
185
- projectId: string;
186
183
  agentId: string;
184
+ projectId: string;
185
+ tenantId: string;
186
+ id: string;
187
187
  createdAt: string;
188
188
  updatedAt: string;
189
189
  headers: Record<string, string> | null;
@@ -197,10 +197,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
- id: string;
201
- tenantId: string;
202
- projectId: string;
203
200
  agentId: string;
201
+ projectId: string;
202
+ tenantId: string;
203
+ id: string;
204
204
  createdAt: string;
205
205
  updatedAt: string;
206
206
  headers: Record<string, string> | null;
@@ -218,10 +218,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
- id: string;
222
- tenantId: string;
223
- projectId: string;
224
221
  agentId: string;
222
+ projectId: string;
223
+ tenantId: string;
224
+ id: string;
225
225
  createdAt: string;
226
226
  updatedAt: string;
227
227
  headers: Record<string, string> | null;
@@ -9,10 +9,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- tenantId: string;
14
- projectId: string;
15
12
  agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
15
+ id: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  sourceSubAgentId: string;
@@ -44,10 +44,10 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- id: string;
48
- tenantId: string;
49
- projectId: string;
50
47
  agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
50
+ id: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
53
  sourceSubAgentId: string;
@@ -57,10 +57,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- id: string;
61
- tenantId: string;
62
- projectId: string;
63
60
  agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ id: string;
64
64
  createdAt: string;
65
65
  updatedAt: string;
66
66
  sourceSubAgentId: string;
@@ -126,10 +126,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- id: string;
130
- tenantId: string;
131
- projectId: string;
132
129
  agentId: string;
130
+ projectId: string;
131
+ tenantId: string;
132
+ id: string;
133
133
  createdAt: string;
134
134
  updatedAt: string;
135
135
  sourceSubAgentId: string;
@@ -145,10 +145,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- id: string;
149
- tenantId: string;
150
- projectId: string;
151
148
  agentId: string;
149
+ projectId: string;
150
+ tenantId: string;
151
+ id: string;
152
152
  createdAt: string;
153
153
  updatedAt: string;
154
154
  sourceSubAgentId: string;
@@ -159,10 +159,10 @@ 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
- id: string;
163
- tenantId: string;
164
- projectId: string;
165
162
  agentId: string;
163
+ projectId: string;
164
+ tenantId: string;
165
+ id: string;
166
166
  createdAt: string;
167
167
  updatedAt: string;
168
168
  sourceSubAgentId: string;
@@ -204,10 +204,10 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- id: string;
208
- tenantId: string;
209
- projectId: string;
210
207
  agentId: string;
208
+ projectId: string;
209
+ tenantId: string;
210
+ id: string;
211
211
  createdAt: string;
212
212
  updatedAt: string;
213
213
  toolId: string;
@@ -248,10 +248,10 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- id: string;
252
- tenantId: string;
253
- projectId: string;
254
251
  agentId: string;
252
+ projectId: string;
253
+ tenantId: string;
254
+ id: string;
255
255
  createdAt: string;
256
256
  updatedAt: string;
257
257
  toolId: string;
@@ -9,10 +9,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- tenantId: string;
14
- projectId: string;
15
12
  agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
15
+ id: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  headers: Record<string, string> | null;
@@ -44,10 +44,10 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- id: string;
48
- tenantId: string;
49
- projectId: string;
50
47
  agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
50
+ id: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
53
  headers: Record<string, string> | null;
@@ -57,10 +57,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- id: string;
61
- tenantId: string;
62
- projectId: string;
63
60
  agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
63
+ id: string;
64
64
  createdAt: string;
65
65
  updatedAt: string;
66
66
  headers: Record<string, string> | null;
@@ -210,10 +210,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
- id: string;
214
- tenantId: string;
215
- projectId: string;
216
213
  agentId: string;
214
+ projectId: string;
215
+ tenantId: string;
216
+ id: string;
217
217
  createdAt: string;
218
218
  updatedAt: string;
219
219
  headers: Record<string, string> | null;
@@ -227,10 +227,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
- id: string;
231
- tenantId: string;
232
- projectId: string;
233
230
  agentId: string;
231
+ projectId: string;
232
+ tenantId: string;
233
+ id: string;
234
234
  createdAt: string;
235
235
  updatedAt: string;
236
236
  headers: Record<string, string> | null;
@@ -248,10 +248,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
- id: string;
252
- tenantId: string;
253
- projectId: string;
254
251
  agentId: string;
252
+ projectId: string;
253
+ tenantId: string;
254
+ id: string;
255
255
  createdAt: string;
256
256
  updatedAt: string;
257
257
  headers: Record<string, string> | null;
@@ -9,12 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
12
15
  id: string;
13
16
  name: string;
14
17
  description: string | null;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
18
  prompt: string | null;
19
19
  conversationHistoryConfig: ConversationHistoryConfig | null;
20
20
  models: {
@@ -40,12 +40,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
+ agentId: string;
44
+ projectId: string;
45
+ tenantId: string;
43
46
  id: string;
44
47
  name: string;
45
48
  description: string | null;
46
- tenantId: string;
47
- projectId: string;
48
- agentId: string;
49
49
  prompt: string | null;
50
50
  conversationHistoryConfig: ConversationHistoryConfig | null;
51
51
  models: {
@@ -109,12 +109,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
+ agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
112
115
  id: string;
113
116
  name: string;
114
117
  description: string | null;
115
- tenantId: string;
116
- projectId: string;
117
- agentId: string;
118
118
  prompt: string | null;
119
119
  conversationHistoryConfig: ConversationHistoryConfig | null;
120
120
  models: {
@@ -20,11 +20,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
+ projectId: string;
24
+ tenantId: string;
23
25
  id: string;
24
26
  name: string;
25
27
  description: string | null;
26
- tenantId: string;
27
- projectId: string;
28
28
  createdAt: string;
29
29
  updatedAt: string;
30
30
  headers: Record<string, string> | null;
@@ -78,11 +78,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
+ projectId: string;
82
+ tenantId: string;
81
83
  id: string;
82
84
  name: string;
83
85
  description: string | null;
84
- tenantId: string;
85
- projectId: string;
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
88
  headers: Record<string, string> | null;
@@ -135,10 +135,10 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- id: string;
139
- tenantId: string;
140
- projectId: string;
141
138
  agentId: string;
139
+ projectId: string;
140
+ tenantId: string;
141
+ id: string;
142
142
  createdAt: string;
143
143
  updatedAt: string;
144
144
  toolId: string;
@@ -154,10 +154,10 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- id: string;
158
- tenantId: string;
159
- projectId: string;
160
157
  agentId: string;
158
+ projectId: string;
159
+ tenantId: string;
160
+ id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
163
  toolId: string;
@@ -182,10 +182,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- id: string;
186
- tenantId: string;
187
- projectId: string;
188
185
  agentId: string;
186
+ projectId: string;
187
+ tenantId: string;
188
+ id: string;
189
189
  createdAt: string;
190
190
  updatedAt: string;
191
191
  toolId: string;
@@ -202,11 +202,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
+ projectId: string;
206
+ tenantId: string;
205
207
  id: string;
206
208
  name: string;
207
209
  description: string | null;
208
- tenantId: string;
209
- projectId: string;
210
210
  createdAt: string;
211
211
  updatedAt: string;
212
212
  headers: Record<string, string> | null;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;