@inkeep/agents-core 0.72.1 → 0.73.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 (42) hide show
  1. package/dist/auth/auth.d.ts +122 -122
  2. package/dist/auth/password-policy.d.ts +2 -2
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/client-exports.d.ts +2 -2
  5. package/dist/client-exports.js +2 -2
  6. package/dist/data-access/manage/agents.d.ts +36 -36
  7. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  10. package/dist/data-access/manage/functionTools.d.ts +18 -18
  11. package/dist/data-access/manage/skills.d.ts +13 -13
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgents.d.ts +12 -12
  16. package/dist/data-access/manage/tools.d.ts +24 -24
  17. package/dist/data-access/manage/triggers.d.ts +4 -4
  18. package/dist/data-access/manage/webhookDestinations.d.ts +1 -0
  19. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  20. package/dist/data-access/runtime/apps.d.ts +10 -10
  21. package/dist/data-access/runtime/conversations.d.ts +28 -28
  22. package/dist/data-access/runtime/events.d.ts +6 -6
  23. package/dist/data-access/runtime/feedback.d.ts +6 -6
  24. package/dist/data-access/runtime/messages.d.ts +18 -18
  25. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  26. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  27. package/dist/data-access/runtime/tasks.d.ts +5 -5
  28. package/dist/db/manage/manage-schema.d.ts +400 -381
  29. package/dist/db/manage/manage-schema.js +1 -0
  30. package/dist/db/runtime/runtime-schema.d.ts +409 -409
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +2 -2
  33. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  34. package/dist/validation/index.d.ts +2 -2
  35. package/dist/validation/index.js +2 -2
  36. package/dist/validation/schemas/skills.d.ts +46 -46
  37. package/dist/validation/schemas.d.ts +2183 -2135
  38. package/dist/validation/schemas.js +36 -12
  39. package/drizzle/manage/0020_typical_mandrill.sql +1 -0
  40. package/drizzle/manage/meta/0020_snapshot.json +4093 -0
  41. package/drizzle/manage/meta/_journal.json +7 -0
  42. package/package.json +1 -1
@@ -9,15 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  id: string;
15
13
  name: string;
16
- description: string | null;
17
- agentId: string;
18
14
  createdAt: string;
19
15
  updatedAt: string;
20
16
  prompt: string | null;
17
+ description: string | null;
21
18
  models: {
22
19
  base?: {
23
20
  model?: string | undefined;
@@ -41,20 +38,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
41
38
  stopWhen: {
42
39
  stepCountIs?: number | undefined;
43
40
  } | null;
41
+ tenantId: string;
42
+ projectId: string;
43
+ agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
- tenantId: string;
50
- projectId: string;
51
49
  id: string;
52
50
  name: string;
53
- description: string | null;
54
- agentId: string;
55
51
  createdAt: string;
56
52
  updatedAt: string;
57
53
  prompt: string | null;
54
+ description: string | null;
58
55
  models: {
59
56
  base?: {
60
57
  model?: string | undefined;
@@ -78,6 +75,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
78
75
  stopWhen: {
79
76
  stepCountIs?: number | undefined;
80
77
  } | null;
78
+ tenantId: string;
79
+ projectId: string;
80
+ agentId: string;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -127,15 +127,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
127
127
  };
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
- tenantId: string;
131
- projectId: string;
132
130
  id: string;
133
131
  name: string;
134
- description: string | null;
135
- agentId: string;
136
132
  createdAt: string;
137
133
  updatedAt: string;
138
134
  prompt: string | null;
135
+ description: string | null;
139
136
  models: {
140
137
  base?: {
141
138
  model?: string | undefined;
@@ -159,6 +156,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
159
156
  stopWhen: {
160
157
  stepCountIs?: number | undefined;
161
158
  } | null;
159
+ tenantId: string;
160
+ projectId: string;
161
+ agentId: string;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- tenantId: string;
24
- projectId: string;
25
23
  id: string;
26
24
  name: string;
27
- description: string | null;
28
25
  createdAt: string;
29
26
  updatedAt: string;
30
27
  headers: Record<string, string> | null;
28
+ description: string | null;
29
+ tenantId: string;
30
+ projectId: string;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- tenantId: string;
82
- projectId: string;
83
81
  id: string;
84
82
  name: string;
85
- description: string | null;
86
83
  createdAt: string;
87
84
  updatedAt: string;
88
85
  headers: Record<string, string> | null;
86
+ description: string | null;
87
+ tenantId: string;
88
+ projectId: string;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -135,18 +135,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
139
- projectId: string;
140
138
  id: string;
141
- agentId: string;
142
- subAgentId: string;
143
- toolId: string;
144
139
  createdAt: string;
145
140
  updatedAt: string;
146
141
  headers: Record<string, string> | null;
142
+ tenantId: string;
143
+ projectId: string;
144
+ agentId: string;
145
+ toolId: string;
147
146
  toolPolicies: Record<string, {
148
147
  needsApproval?: boolean;
149
148
  }> | null;
149
+ subAgentId: string;
150
150
  selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -154,18 +154,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- tenantId: string;
158
- projectId: string;
159
157
  id: string;
160
- agentId: string;
161
- subAgentId: string;
162
- toolId: string;
163
158
  createdAt: string;
164
159
  updatedAt: string;
165
160
  headers: Record<string, string> | null;
161
+ tenantId: string;
162
+ projectId: string;
163
+ agentId: string;
164
+ toolId: string;
166
165
  toolPolicies: Record<string, {
167
166
  needsApproval?: boolean;
168
167
  }> | null;
168
+ subAgentId: string;
169
169
  selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
@@ -182,18 +182,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- tenantId: string;
186
- projectId: string;
187
185
  id: string;
188
- agentId: string;
189
- subAgentId: string;
190
- toolId: string;
191
186
  createdAt: string;
192
187
  updatedAt: string;
193
188
  headers: Record<string, string> | null;
189
+ tenantId: string;
190
+ projectId: string;
191
+ agentId: string;
192
+ toolId: string;
194
193
  toolPolicies: Record<string, {
195
194
  needsApproval?: boolean;
196
195
  }> | null;
196
+ subAgentId: string;
197
197
  selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
@@ -202,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- tenantId: string;
206
- projectId: string;
207
205
  id: string;
208
206
  name: string;
209
- description: string | null;
210
207
  createdAt: string;
211
208
  updatedAt: string;
212
209
  headers: Record<string, string> | null;
210
+ description: string | null;
211
+ tenantId: string;
212
+ projectId: string;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -37,8 +37,8 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
37
37
  authentication: unknown;
38
38
  signingSecretCredentialReferenceId: string | null;
39
39
  signatureVerification: {
40
- algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
- encoding: "base64" | "hex";
40
+ algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
+ encoding: "hex" | "base64";
42
42
  signature: {
43
43
  source: "query" | "body" | "header";
44
44
  key: string;
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
+ createdAt: string;
135
+ userId: string;
134
136
  tenantId: string;
135
137
  projectId: string;
136
138
  agentId: string;
137
- createdAt: string;
138
- userId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -19,6 +19,7 @@ declare const listWebhookDestinationsPaginated: (db: AgentsManageDatabaseClient)
19
19
  enabled: boolean;
20
20
  url: string;
21
21
  eventTypes: string[];
22
+ headers: Record<string, string> | null;
22
23
  name: string;
23
24
  description: string | null;
24
25
  projectId: string;
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
12
  name: string | null;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  expiresAt: string | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- tenantId: string;
26
- projectId: string;
27
25
  id: string;
28
26
  name: string | null;
29
- agentId: string;
30
27
  createdAt: string;
31
28
  updatedAt: string;
32
29
  expiresAt: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- tenantId: string;
43
- projectId: string;
44
42
  id: string;
45
43
  name: string | null;
46
- agentId: string;
47
44
  createdAt: string;
48
45
  updatedAt: string;
49
46
  expiresAt: string | null;
47
+ tenantId: string;
48
+ projectId: string;
49
+ agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- tenantId: string;
70
- projectId: string;
71
69
  id: string;
72
70
  name: string | null;
73
- agentId: string;
74
71
  createdAt: string;
75
72
  updatedAt: string;
76
73
  expiresAt: string | null;
74
+ tenantId: string;
75
+ projectId: string;
76
+ agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -5,16 +5,16 @@ 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
- tenantId: string | null;
9
- projectId: string | null;
8
+ type: AppType;
10
9
  id: string;
11
10
  name: string;
12
- description: string | null;
13
- type: AppType;
14
11
  createdAt: string;
15
12
  updatedAt: string;
16
- enabled: boolean;
17
13
  prompt: string | null;
14
+ description: string | null;
15
+ enabled: boolean;
16
+ tenantId: string | null;
17
+ projectId: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -74,16 +74,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
- tenantId: string | null;
78
- projectId: string | null;
77
+ type: AppType;
79
78
  id: string;
80
79
  name: string;
81
- description: string | null;
82
- type: AppType;
83
80
  createdAt: string;
84
81
  updatedAt: string;
85
- enabled: boolean;
86
82
  prompt: string | null;
83
+ description: string | null;
84
+ enabled: boolean;
85
+ tenantId: string | null;
86
+ projectId: string | null;
87
87
  config: {
88
88
  type: "web_client";
89
89
  webClient: {
@@ -15,13 +15,7 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- tenantId: string;
19
- projectId: string;
20
18
  id: string;
21
- metadata: ConversationMetadata | null;
22
- properties: Record<string, unknown> | null;
23
- title: string | null;
24
- agentId: string | null;
25
19
  createdAt: string;
26
20
  updatedAt: string;
27
21
  ref: {
@@ -30,9 +24,15 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
30
24
  hash: string;
31
25
  } | null;
32
26
  userId: string | null;
33
- userProperties: Record<string, unknown> | null;
27
+ metadata: ConversationMetadata | null;
28
+ properties: Record<string, unknown> | null;
29
+ title: string | null;
30
+ tenantId: string;
31
+ projectId: string;
32
+ agentId: string | null;
34
33
  activeSubAgentId: string;
35
34
  lastContextResolution: string | null;
35
+ userProperties: Record<string, unknown> | null;
36
36
  }>;
37
37
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
@@ -90,13 +90,7 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
90
90
  scopes: ProjectScopeConfig;
91
91
  conversationId: string;
92
92
  }) => Promise<{
93
- tenantId: string;
94
- projectId: string;
95
93
  id: string;
96
- metadata: ConversationMetadata | null;
97
- properties: Record<string, unknown> | null;
98
- title: string | null;
99
- agentId: string | null;
100
94
  createdAt: string;
101
95
  updatedAt: string;
102
96
  ref: {
@@ -105,9 +99,15 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
105
99
  hash: string;
106
100
  } | null;
107
101
  userId: string | null;
108
- userProperties: Record<string, unknown> | null;
102
+ metadata: ConversationMetadata | null;
103
+ properties: Record<string, unknown> | null;
104
+ title: string | null;
105
+ tenantId: string;
106
+ projectId: string;
107
+ agentId: string | null;
109
108
  activeSubAgentId: string;
110
109
  lastContextResolution: string | null;
110
+ userProperties: Record<string, unknown> | null;
111
111
  } | undefined>;
112
112
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
113
113
  activeSubAgentId: string;
@@ -130,13 +130,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  userProperties?: Record<string, unknown> | null | undefined;
131
131
  properties?: Record<string, unknown> | null | undefined;
132
132
  } | {
133
- tenantId: string;
134
- projectId: string;
135
133
  id: string;
136
- metadata: ConversationMetadata | null;
137
- properties: Record<string, unknown> | null;
138
- title: string | null;
139
- agentId: string | null;
140
134
  createdAt: string;
141
135
  updatedAt: string;
142
136
  ref: {
@@ -145,9 +139,15 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
145
139
  hash: string;
146
140
  } | null;
147
141
  userId: string | null;
148
- userProperties: Record<string, unknown> | null;
142
+ metadata: ConversationMetadata | null;
143
+ properties: Record<string, unknown> | null;
144
+ title: string | null;
145
+ tenantId: string;
146
+ projectId: string;
147
+ agentId: string | null;
149
148
  activeSubAgentId: string;
150
149
  lastContextResolution: string | null;
150
+ userProperties: Record<string, unknown> | null;
151
151
  }>;
152
152
  /**
153
153
  * Get conversation history with filtering and context management
@@ -164,13 +164,7 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
164
164
  scopes: ProjectScopeConfig;
165
165
  conversationId: string;
166
166
  }) => Promise<{
167
- tenantId: string;
168
- projectId: string;
169
167
  id: string;
170
- metadata: ConversationMetadata | null;
171
- properties: Record<string, unknown> | null;
172
- title: string | null;
173
- agentId: string | null;
174
168
  createdAt: string;
175
169
  updatedAt: string;
176
170
  ref: {
@@ -179,9 +173,15 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
179
173
  hash: string;
180
174
  } | null;
181
175
  userId: string | null;
182
- userProperties: Record<string, unknown> | null;
176
+ metadata: ConversationMetadata | null;
177
+ properties: Record<string, unknown> | null;
178
+ title: string | null;
179
+ tenantId: string;
180
+ projectId: string;
181
+ agentId: string | null;
183
182
  activeSubAgentId: string;
184
183
  lastContextResolution: string | null;
184
+ userProperties: Record<string, unknown> | null;
185
185
  } | undefined>;
186
186
  /**
187
187
  * Set active agent for a conversation (upsert operation)
@@ -7,17 +7,17 @@ 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
- tenantId: string;
11
- projectId: string;
10
+ type: string;
12
11
  id: string;
12
+ createdAt: string;
13
+ updatedAt: string;
13
14
  metadata: Record<string, unknown> | null;
14
- type: string;
15
15
  properties: Record<string, unknown> | null;
16
+ tenantId: string;
17
+ projectId: string;
16
18
  agentId: string | null;
17
- createdAt: string;
18
- updatedAt: string;
19
- conversationId: string | null;
20
19
  userProperties: Record<string, unknown> | null;
20
+ conversationId: string | null;
21
21
  messageId: string | null;
22
22
  serverMetadata: {
23
23
  [k: string]: unknown;
@@ -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
- tenantId: string;
74
- projectId: string;
75
- id: string;
76
73
  type: "positive" | "negative";
74
+ id: string;
77
75
  createdAt: string;
78
76
  updatedAt: string;
77
+ tenantId: string;
78
+ projectId: string;
79
79
  conversationId: string;
80
80
  messageId: string | null;
81
81
  details: string | null;
@@ -100,12 +100,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
100
100
  scopes: ProjectScopeConfig;
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
- tenantId: string;
104
- projectId: string;
105
- id: string;
106
103
  type: "positive" | "negative";
104
+ id: string;
107
105
  createdAt: string;
108
106
  updatedAt: string;
107
+ tenantId: string;
108
+ projectId: string;
109
109
  conversationId: string;
110
110
  messageId: string | null;
111
111
  details: string | null;
@@ -10,17 +10,17 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- tenantId: string;
14
- projectId: string;
15
13
  id: string;
16
- metadata: MessageMetadata | null;
17
- content: MessageContent;
18
- properties: Record<string, unknown> | null;
19
14
  createdAt: string;
20
15
  updatedAt: string;
16
+ metadata: MessageMetadata | null;
21
17
  role: string;
22
- conversationId: string;
18
+ properties: Record<string, unknown> | null;
19
+ tenantId: string;
20
+ projectId: string;
21
+ content: MessageContent;
23
22
  userProperties: Record<string, unknown> | null;
23
+ conversationId: string;
24
24
  fromSubAgentId: string | null;
25
25
  toSubAgentId: string | null;
26
26
  fromExternalAgentId: string | null;
@@ -154,17 +154,17 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
154
154
  scopes: ProjectScopeConfig;
155
155
  data: Omit<MessageInsert, "tenantId" | "projectId">;
156
156
  }) => Promise<{
157
- tenantId: string;
158
- projectId: string;
159
157
  id: string;
160
- metadata: MessageMetadata | null;
161
- content: MessageContent;
162
- properties: Record<string, unknown> | null;
163
158
  createdAt: string;
164
159
  updatedAt: string;
160
+ metadata: MessageMetadata | null;
165
161
  role: string;
166
- conversationId: string;
162
+ properties: Record<string, unknown> | null;
163
+ tenantId: string;
164
+ projectId: string;
165
+ content: MessageContent;
167
166
  userProperties: Record<string, unknown> | null;
167
+ conversationId: string;
168
168
  fromSubAgentId: string | null;
169
169
  toSubAgentId: string | null;
170
170
  fromExternalAgentId: string | null;
@@ -211,17 +211,17 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
211
211
  scopes: ProjectScopeConfig;
212
212
  messageId: string;
213
213
  }) => Promise<{
214
- tenantId: string;
215
- projectId: string;
216
214
  id: string;
217
- metadata: MessageMetadata | null;
218
- content: MessageContent;
219
- properties: Record<string, unknown> | null;
220
215
  createdAt: string;
221
216
  updatedAt: string;
217
+ metadata: MessageMetadata | null;
222
218
  role: string;
223
- conversationId: string;
219
+ properties: Record<string, unknown> | null;
220
+ tenantId: string;
221
+ projectId: string;
222
+ content: MessageContent;
224
223
  userProperties: Record<string, unknown> | null;
224
+ conversationId: string;
225
225
  fromSubAgentId: string | null;
226
226
  toSubAgentId: string | null;
227
227
  fromExternalAgentId: string | null;
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
43
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
202
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
203
203
  scheduledFor: string;
204
204
  startedAt: string | null;
205
205
  completedAt: string | null;
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
239
239
  name: string;
240
240
  hash: string;
241
241
  } | null;
242
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
242
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
243
243
  scheduledFor: string;
244
244
  startedAt: string | null;
245
245
  completedAt: string | null;
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
292
292
  name: string;
293
293
  hash: string;
294
294
  } | null;
295
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
295
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -15,9 +15,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
- tenantId: string;
19
18
  createdAt: string;
20
19
  userId: string;
20
+ tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -7,12 +7,7 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
 
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
- tenantId: string;
11
- projectId: string;
12
10
  id: string;
13
- metadata: TaskMetadataConfig | null;
14
- agentId: string;
15
- subAgentId: string;
16
11
  createdAt: string;
17
12
  updatedAt: string;
18
13
  ref: {
@@ -20,7 +15,12 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
20
15
  name: string;
21
16
  hash: string;
22
17
  } | null;
18
+ metadata: TaskMetadataConfig | null;
23
19
  status: string;
20
+ tenantId: string;
21
+ projectId: string;
22
+ agentId: string;
23
+ subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {