@inkeep/agents-core 0.78.5 → 0.79.0

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 (32) hide show
  1. package/dist/auth/permissions.d.ts +9 -9
  2. package/dist/data-access/manage/agents.d.ts +5 -5
  3. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  4. package/dist/data-access/manage/functionTools.d.ts +2 -2
  5. package/dist/data-access/manage/skills.d.ts +6 -6
  6. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  7. package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
  8. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  9. package/dist/data-access/manage/subAgents.d.ts +3 -3
  10. package/dist/data-access/manage/tools.d.ts +6 -6
  11. package/dist/data-access/manage/triggers.d.ts +1 -1
  12. package/dist/data-access/manage/webhookDestinations.d.ts +2 -1
  13. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  14. package/dist/data-access/runtime/apps.d.ts +6 -6
  15. package/dist/data-access/runtime/conversations.d.ts +28 -28
  16. package/dist/data-access/runtime/events.d.ts +2 -2
  17. package/dist/data-access/runtime/feedback.d.ts +2 -2
  18. package/dist/data-access/runtime/messages.d.ts +9 -9
  19. package/dist/data-access/runtime/organizations.d.ts +4 -3
  20. package/dist/data-access/runtime/organizations.js +5 -4
  21. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  22. package/dist/data-access/runtime/tasks.d.ts +5 -5
  23. package/dist/db/manage/manage-schema.d.ts +521 -502
  24. package/dist/db/manage/manage-schema.js +2 -1
  25. package/dist/db/runtime/runtime-schema.d.ts +440 -440
  26. package/dist/validation/schemas/skills.d.ts +40 -40
  27. package/dist/validation/schemas.d.ts +325 -280
  28. package/dist/validation/schemas.js +6 -2
  29. package/drizzle/manage/0024_blue_junta.sql +2 -0
  30. package/drizzle/manage/meta/0024_snapshot.json +4323 -0
  31. package/drizzle/manage/meta/_journal.json +7 -0
  32. package/package.json +1 -1
@@ -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_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
12
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
12
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.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_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
19
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
19
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.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_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
- actions: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
26
- statements: better_auth_plugins7.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins7.Statements>;
26
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -12,9 +12,9 @@ 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
18
  projectId: string;
19
19
  tenantId: string;
20
20
  models: {
@@ -65,9 +65,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
65
65
  }) => Promise<{
66
66
  id: string;
67
67
  name: string;
68
+ description: string | null;
68
69
  createdAt: string;
69
70
  updatedAt: string;
70
- description: string | null;
71
71
  projectId: string;
72
72
  tenantId: string;
73
73
  models: {
@@ -115,9 +115,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
115
115
  defaultSubAgent: {
116
116
  id: string;
117
117
  name: string;
118
+ description: string | null;
118
119
  createdAt: string;
119
120
  updatedAt: string;
120
- description: string | null;
121
121
  projectId: string;
122
122
  tenantId: string;
123
123
  models: {
@@ -162,9 +162,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
162
162
  }) => Promise<{
163
163
  id: string;
164
164
  name: string;
165
+ description: string | null;
165
166
  createdAt: string;
166
167
  updatedAt: string;
167
- description: string | null;
168
168
  projectId: string;
169
169
  tenantId: string;
170
170
  models: {
@@ -292,9 +292,9 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
292
292
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
293
293
  id: string;
294
294
  name: string;
295
+ description: string | null;
295
296
  createdAt: string;
296
297
  updatedAt: string;
297
- description: string | null;
298
298
  projectId: string;
299
299
  tenantId: string;
300
300
  models: {
@@ -11,9 +11,9 @@ 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
17
  projectId: string;
18
18
  tenantId: string;
19
19
  props: {
@@ -67,9 +67,9 @@ 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
73
  projectId: string;
74
74
  tenantId: string;
75
75
  props: {
@@ -55,9 +55,9 @@ 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
61
  projectId: string;
62
62
  tenantId: string;
63
63
  agentId: string;
@@ -97,9 +97,9 @@ 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
103
  projectId: string;
104
104
  tenantId: string;
105
105
  agentId: string;
@@ -17,11 +17,11 @@ 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
21
  content: string;
22
+ metadata: Record<string, string> | null;
23
+ createdAt: string;
24
+ updatedAt: string;
25
25
  projectId: string;
26
26
  tenantId: string;
27
27
  } | null>;
@@ -112,11 +112,11 @@ 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
116
  content: string;
117
+ metadata: Record<string, string> | null;
118
+ createdAt: string;
119
+ updatedAt: string;
120
120
  projectId: string;
121
121
  tenantId: string;
122
122
  }>;
@@ -15,8 +15,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
15
15
  projectId: string;
16
16
  tenantId: string;
17
17
  agentId: string;
18
- headers: Record<string, string> | null;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -50,8 +50,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
50
50
  projectId: string;
51
51
  tenantId: string;
52
52
  agentId: string;
53
- headers: Record<string, string> | null;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -63,8 +63,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
63
63
  projectId: string;
64
64
  tenantId: string;
65
65
  agentId: string;
66
- headers: Record<string, string> | null;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -192,8 +192,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
192
192
  projectId: string;
193
193
  tenantId: string;
194
194
  agentId: string;
195
- headers: Record<string, string> | null;
196
195
  subAgentId: string;
196
+ headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
199
199
  /**
@@ -209,8 +209,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
209
209
  projectId: string;
210
210
  tenantId: string;
211
211
  agentId: string;
212
- headers: Record<string, string> | null;
213
212
  subAgentId: string;
213
+ headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
@@ -230,8 +230,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
230
230
  projectId: string;
231
231
  tenantId: string;
232
232
  agentId: string;
233
- headers: Record<string, string> | null;
234
233
  subAgentId: string;
234
+ headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -210,9 +210,9 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
210
210
  projectId: string;
211
211
  tenantId: string;
212
212
  agentId: string;
213
- headers: Record<string, string> | null;
214
213
  subAgentId: string;
215
214
  toolId: string;
215
+ headers: Record<string, string> | null;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
218
218
  }> | null;
@@ -254,9 +254,9 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
254
254
  projectId: string;
255
255
  tenantId: string;
256
256
  agentId: string;
257
- headers: Record<string, string> | null;
258
257
  subAgentId: string;
259
258
  toolId: string;
259
+ headers: Record<string, string> | null;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
262
262
  }> | null;
@@ -15,8 +15,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
15
15
  projectId: string;
16
16
  tenantId: string;
17
17
  agentId: string;
18
- headers: Record<string, string> | null;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -50,8 +50,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
50
50
  projectId: string;
51
51
  tenantId: string;
52
52
  agentId: string;
53
- headers: Record<string, string> | null;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -63,8 +63,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
63
63
  projectId: string;
64
64
  tenantId: string;
65
65
  agentId: string;
66
- headers: Record<string, string> | null;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -228,8 +228,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
228
228
  projectId: string;
229
229
  tenantId: string;
230
230
  agentId: string;
231
- headers: Record<string, string> | null;
232
231
  subAgentId: string;
232
+ headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -245,8 +245,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
245
245
  projectId: string;
246
246
  tenantId: string;
247
247
  agentId: string;
248
- headers: Record<string, string> | null;
249
248
  subAgentId: string;
249
+ headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -266,8 +266,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
266
266
  projectId: string;
267
267
  tenantId: string;
268
268
  agentId: string;
269
- headers: Record<string, string> | null;
270
269
  subAgentId: string;
270
+ headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,9 +11,9 @@ 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
17
  projectId: string;
18
18
  tenantId: string;
19
19
  models: {
@@ -57,9 +57,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
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
63
  projectId: string;
64
64
  tenantId: string;
65
65
  models: {
@@ -156,9 +156,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
157
  id: string;
158
158
  name: string;
159
+ description: string | null;
159
160
  createdAt: string;
160
161
  updatedAt: string;
161
- description: string | null;
162
162
  projectId: string;
163
163
  tenantId: string;
164
164
  models: {
@@ -22,9 +22,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
+ description: string | null;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- description: string | null;
28
28
  projectId: string;
29
29
  tenantId: string;
30
30
  headers: Record<string, string> | null;
@@ -80,9 +80,9 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
82
  name: string;
83
+ description: string | null;
83
84
  createdAt: string;
84
85
  updatedAt: string;
85
- description: string | null;
86
86
  projectId: string;
87
87
  tenantId: string;
88
88
  headers: Record<string, string> | null;
@@ -141,9 +141,9 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  projectId: string;
142
142
  tenantId: string;
143
143
  agentId: string;
144
- headers: Record<string, string> | null;
145
144
  subAgentId: string;
146
145
  toolId: string;
146
+ headers: Record<string, string> | null;
147
147
  toolPolicies: Record<string, {
148
148
  needsApproval?: boolean;
149
149
  }> | null;
@@ -160,9 +160,9 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
160
160
  projectId: string;
161
161
  tenantId: string;
162
162
  agentId: string;
163
- headers: Record<string, string> | null;
164
163
  subAgentId: string;
165
164
  toolId: string;
165
+ headers: Record<string, string> | null;
166
166
  toolPolicies: Record<string, {
167
167
  needsApproval?: boolean;
168
168
  }> | null;
@@ -188,9 +188,9 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
188
188
  projectId: string;
189
189
  tenantId: string;
190
190
  agentId: string;
191
- headers: Record<string, string> | null;
192
191
  subAgentId: string;
193
192
  toolId: string;
193
+ headers: Record<string, string> | null;
194
194
  toolPolicies: Record<string, {
195
195
  needsApproval?: boolean;
196
196
  }> | null;
@@ -204,9 +204,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
+ description: string | null;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- description: string | null;
210
210
  projectId: string;
211
211
  tenantId: string;
212
212
  headers: Record<string, string> | null;
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
- userId: string;
136
135
  projectId: string;
137
136
  tenantId: string;
138
137
  agentId: string;
138
+ userId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -17,7 +17,8 @@ declare const listWebhookDestinationsPaginated: (db: AgentsManageDatabaseClient)
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
19
  enabled: boolean;
20
- url: string;
20
+ url: string | null;
21
+ slackChannelId: string | null;
21
22
  eventTypes: string[];
22
23
  headers: Record<string, string> | null;
23
24
  name: string;
@@ -12,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- expiresAt: string | null;
16
15
  projectId: string;
17
16
  tenantId: string;
18
17
  agentId: string;
18
+ expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -26,10 +26,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
26
26
  name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- expiresAt: string | null;
30
29
  projectId: string;
31
30
  tenantId: string;
32
31
  agentId: string;
32
+ expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -43,10 +43,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  name: string | null;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
- expiresAt: string | null;
47
46
  projectId: string;
48
47
  tenantId: string;
49
48
  agentId: string;
49
+ expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -70,10 +70,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  name: string | null;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
- expiresAt: string | null;
74
73
  projectId: string;
75
74
  tenantId: string;
76
75
  agentId: string;
76
+ expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -5,15 +5,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
- type: AppType;
9
8
  id: string;
10
9
  name: string;
10
+ description: string | null;
11
11
  createdAt: string;
12
12
  updatedAt: string;
13
- description: string | null;
14
- enabled: boolean;
15
13
  projectId: string | null;
16
14
  tenantId: string | null;
15
+ type: AppType;
16
+ enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
@@ -74,15 +74,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
- type: AppType;
78
77
  id: string;
79
78
  name: string;
79
+ description: string | null;
80
80
  createdAt: string;
81
81
  updatedAt: string;
82
- description: string | null;
83
- enabled: boolean;
84
82
  projectId: string | null;
85
83
  tenantId: string | null;
84
+ type: AppType;
85
+ enabled: boolean;
86
86
  prompt: string | null;
87
87
  config: {
88
88
  type: "web_client";
@@ -17,20 +17,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
+ metadata: ConversationMetadata | null;
20
21
  createdAt: string;
21
22
  updatedAt: string;
22
- ref: {
23
- type: "commit" | "tag" | "branch";
24
- name: string;
25
- hash: string;
26
- } | null;
27
- userId: string | null;
28
- metadata: ConversationMetadata | null;
29
23
  projectId: string;
30
24
  tenantId: string;
31
25
  properties: Record<string, unknown> | null;
32
26
  title: string | null;
33
27
  agentId: string | null;
28
+ userId: string | null;
29
+ ref: {
30
+ type: "commit" | "tag" | "branch";
31
+ name: string;
32
+ hash: string;
33
+ } | null;
34
34
  userProperties: Record<string, unknown> | null;
35
35
  activeSubAgentId: string;
36
36
  lastContextResolution: string | null;
@@ -92,20 +92,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
92
92
  conversationId: string;
93
93
  }) => Promise<{
94
94
  id: string;
95
+ metadata: ConversationMetadata | null;
95
96
  createdAt: string;
96
97
  updatedAt: string;
97
- ref: {
98
- type: "commit" | "tag" | "branch";
99
- name: string;
100
- hash: string;
101
- } | null;
102
- userId: string | null;
103
- metadata: ConversationMetadata | null;
104
98
  projectId: string;
105
99
  tenantId: string;
106
100
  properties: Record<string, unknown> | null;
107
101
  title: string | null;
108
102
  agentId: string | null;
103
+ userId: string | null;
104
+ ref: {
105
+ type: "commit" | "tag" | "branch";
106
+ name: string;
107
+ hash: string;
108
+ } | null;
109
109
  userProperties: Record<string, unknown> | null;
110
110
  activeSubAgentId: string;
111
111
  lastContextResolution: string | null;
@@ -147,20 +147,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
147
147
  properties?: Record<string, unknown> | null | undefined;
148
148
  } | {
149
149
  id: string;
150
+ metadata: ConversationMetadata | null;
150
151
  createdAt: string;
151
152
  updatedAt: string;
152
- ref: {
153
- type: "commit" | "tag" | "branch";
154
- name: string;
155
- hash: string;
156
- } | null;
157
- userId: string | null;
158
- metadata: ConversationMetadata | null;
159
153
  projectId: string;
160
154
  tenantId: string;
161
155
  properties: Record<string, unknown> | null;
162
156
  title: string | null;
163
157
  agentId: string | null;
158
+ userId: string | null;
159
+ ref: {
160
+ type: "commit" | "tag" | "branch";
161
+ name: string;
162
+ hash: string;
163
+ } | null;
164
164
  userProperties: Record<string, unknown> | null;
165
165
  activeSubAgentId: string;
166
166
  lastContextResolution: string | null;
@@ -185,20 +185,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
185
185
  conversationId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
+ metadata: ConversationMetadata | null;
188
189
  createdAt: string;
189
190
  updatedAt: string;
190
- ref: {
191
- type: "commit" | "tag" | "branch";
192
- name: string;
193
- hash: string;
194
- } | null;
195
- userId: string | null;
196
- metadata: ConversationMetadata | null;
197
191
  projectId: string;
198
192
  tenantId: string;
199
193
  properties: Record<string, unknown> | null;
200
194
  title: string | null;
201
195
  agentId: string | null;
196
+ userId: string | null;
197
+ ref: {
198
+ type: "commit" | "tag" | "branch";
199
+ name: string;
200
+ hash: string;
201
+ } | null;
202
202
  userProperties: Record<string, unknown> | null;
203
203
  activeSubAgentId: string;
204
204
  lastContextResolution: string | null;
@@ -7,13 +7,13 @@ import { EventInsert } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/events.d.ts
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
- type: string;
11
10
  id: string;
11
+ metadata: Record<string, unknown> | null;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- metadata: Record<string, unknown> | null;
15
14
  projectId: string;
16
15
  tenantId: string;
16
+ type: string;
17
17
  properties: Record<string, unknown> | null;
18
18
  agentId: string | null;
19
19
  conversationId: string | null;
@@ -70,12 +70,12 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
70
70
  agentId: string | null;
71
71
  }[]>;
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
- type: "positive" | "negative";
74
73
  id: string;
75
74
  createdAt: string;
76
75
  updatedAt: string;
77
76
  projectId: string;
78
77
  tenantId: string;
78
+ type: "positive" | "negative";
79
79
  details: string | null;
80
80
  conversationId: string;
81
81
  messageId: string | null;
@@ -100,12 +100,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
100
100
  scopes: ProjectScopeConfig;
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
- type: "positive" | "negative";
104
103
  id: string;
105
104
  createdAt: string;
106
105
  updatedAt: string;
107
106
  projectId: string;
108
107
  tenantId: string;
108
+ type: "positive" | "negative";
109
109
  details: string | null;
110
110
  conversationId: string;
111
111
  messageId: string | null;