@inkeep/agents-core 0.73.1 → 0.73.2

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 (35) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/data-access/manage/agents.d.ts +30 -30
  5. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  6. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +10 -10
  9. package/dist/data-access/manage/skills.d.ts +8 -8
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgents.d.ts +18 -18
  14. package/dist/data-access/manage/tools.d.ts +15 -15
  15. package/dist/data-access/manage/triggers.d.ts +5 -5
  16. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  17. package/dist/data-access/runtime/apps.d.ts +9 -9
  18. package/dist/data-access/runtime/conversations.d.ts +32 -32
  19. package/dist/data-access/runtime/events.d.ts +5 -5
  20. package/dist/data-access/runtime/feedback.d.ts +4 -4
  21. package/dist/data-access/runtime/messages.d.ts +21 -21
  22. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  23. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  24. package/dist/data-access/runtime/tasks.d.ts +6 -6
  25. package/dist/db/manage/manage-schema.d.ts +483 -483
  26. package/dist/db/runtime/runtime-schema.d.ts +449 -449
  27. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
  28. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
  29. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  30. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  31. package/dist/test-utils/mocks/logger.js +1 -1
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas/skills.d.ts +27 -27
  34. package/dist/validation/schemas.d.ts +2200 -2200
  35. package/package.json +4 -4
@@ -11,7 +11,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  description: string | null;
17
+ agentId: string;
18
+ projectId: string;
19
+ tenantId: string;
20
+ prompt: string | null;
15
21
  models: {
16
22
  base?: {
17
23
  model?: string | undefined;
@@ -35,12 +41,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
41
  stopWhen: {
36
42
  stepCountIs?: number | undefined;
37
43
  } | null;
38
- createdAt: string;
39
- updatedAt: string;
40
- tenantId: string;
41
- projectId: string;
42
- agentId: string;
43
- prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -48,7 +48,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
48
48
  }) => Promise<{
49
49
  id: string;
50
50
  name: string;
51
+ createdAt: string;
52
+ updatedAt: string;
51
53
  description: string | null;
54
+ agentId: string;
55
+ projectId: string;
56
+ tenantId: string;
57
+ prompt: string | null;
52
58
  models: {
53
59
  base?: {
54
60
  model?: string | undefined;
@@ -72,12 +78,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
72
78
  stopWhen: {
73
79
  stepCountIs?: number | undefined;
74
80
  } | null;
75
- createdAt: string;
76
- updatedAt: string;
77
- tenantId: string;
78
- projectId: string;
79
- agentId: string;
80
- prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -129,7 +129,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
130
  id: string;
131
131
  name: string;
132
+ createdAt: string;
133
+ updatedAt: string;
132
134
  description: string | null;
135
+ agentId: string;
136
+ projectId: string;
137
+ tenantId: string;
138
+ prompt: string | null;
133
139
  models: {
134
140
  base?: {
135
141
  model?: string | undefined;
@@ -153,12 +159,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
153
159
  stopWhen: {
154
160
  stepCountIs?: number | undefined;
155
161
  } | null;
156
- createdAt: string;
157
- updatedAt: string;
158
- tenantId: string;
159
- projectId: string;
160
- agentId: string;
161
- prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -22,17 +22,17 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
- description: string | null;
26
25
  createdAt: string;
27
26
  updatedAt: string;
28
- tenantId: string;
27
+ description: string | null;
29
28
  projectId: string;
29
+ tenantId: string;
30
30
  headers: Record<string, string> | null;
31
- credentialReferenceId: string | null;
32
31
  config: {
33
32
  type: "mcp";
34
33
  mcp: ToolMcpConfig;
35
34
  };
35
+ credentialReferenceId: string | null;
36
36
  credentialScope: string;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
@@ -80,17 +80,17 @@ 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;
84
83
  createdAt: string;
85
84
  updatedAt: string;
86
- tenantId: string;
85
+ description: string | null;
87
86
  projectId: string;
87
+ tenantId: string;
88
88
  headers: Record<string, string> | null;
89
- credentialReferenceId: string | null;
90
89
  config: {
91
90
  type: "mcp";
92
91
  mcp: ToolMcpConfig;
93
92
  };
93
+ credentialReferenceId: string | null;
94
94
  credentialScope: string;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
@@ -138,9 +138,9 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- tenantId: string;
142
- projectId: string;
143
141
  agentId: string;
142
+ projectId: string;
143
+ tenantId: string;
144
144
  subAgentId: string;
145
145
  toolId: string;
146
146
  headers: Record<string, string> | null;
@@ -157,9 +157,9 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- tenantId: string;
161
- projectId: string;
162
160
  agentId: string;
161
+ projectId: string;
162
+ tenantId: string;
163
163
  subAgentId: string;
164
164
  toolId: string;
165
165
  headers: Record<string, string> | null;
@@ -185,9 +185,9 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- tenantId: string;
189
- projectId: string;
190
188
  agentId: string;
189
+ projectId: string;
190
+ tenantId: string;
191
191
  subAgentId: string;
192
192
  toolId: string;
193
193
  headers: Record<string, string> | null;
@@ -204,17 +204,17 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
- description: string | null;
208
207
  createdAt: string;
209
208
  updatedAt: string;
210
- tenantId: string;
209
+ description: string | null;
211
210
  projectId: string;
211
+ tenantId: string;
212
212
  headers: Record<string, string> | null;
213
- credentialReferenceId: string | null;
214
213
  config: {
215
214
  type: "mcp";
216
215
  mcp: ToolMcpConfig;
217
216
  };
217
+ credentialReferenceId: string | null;
218
218
  credentialScope: string;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | 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" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
- tenantId: string;
136
- projectId: string;
137
- agentId: string;
138
135
  userId: string;
136
+ agentId: string;
137
+ projectId: string;
138
+ tenantId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
15
  expiresAt: string | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
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
- tenantId: string;
30
- projectId: string;
31
- agentId: string;
32
29
  expiresAt: string | null;
30
+ agentId: string;
31
+ projectId: string;
32
+ tenantId: string;
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
- tenantId: string;
47
- projectId: string;
48
- agentId: string;
49
46
  expiresAt: string | null;
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
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
- tenantId: string;
74
- projectId: string;
75
- agentId: string;
76
73
  expiresAt: string | null;
74
+ agentId: string;
75
+ projectId: string;
76
+ tenantId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -7,12 +7,12 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  id: string;
9
9
  name: string;
10
- description: string | null;
11
- type: AppType;
12
10
  createdAt: string;
13
11
  updatedAt: string;
14
- tenantId: string | null;
12
+ type: AppType;
13
+ description: string | null;
15
14
  projectId: string | null;
15
+ tenantId: string | null;
16
16
  enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
22
22
  publicKeys: {
23
23
  kid: string;
24
24
  publicKey: string;
25
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
25
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
26
26
  addedAt: string;
27
27
  }[];
28
28
  allowAnonymous: boolean;
@@ -76,12 +76,12 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  id: string;
78
78
  name: string;
79
- description: string | null;
80
- type: AppType;
81
79
  createdAt: string;
82
80
  updatedAt: string;
83
- tenantId: string | null;
81
+ type: AppType;
82
+ description: string | null;
84
83
  projectId: string | null;
84
+ tenantId: string | null;
85
85
  enabled: boolean;
86
86
  prompt: string | null;
87
87
  config: {
@@ -91,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
91
91
  publicKeys: {
92
92
  kid: string;
93
93
  publicKey: string;
94
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
94
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
95
95
  addedAt: string;
96
96
  }[];
97
97
  allowAnonymous: boolean;
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
174
174
  publicKeys: {
175
175
  kid: string;
176
176
  publicKey: string;
177
- algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
177
+ algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
178
178
  addedAt: string;
179
179
  }[];
180
180
  allowAnonymous: boolean;
@@ -16,21 +16,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
- properties: Record<string, unknown> | null;
20
- title: string | null;
21
19
  createdAt: string;
22
20
  updatedAt: string;
23
- tenantId: string;
24
- metadata: ConversationMetadata | null;
25
- projectId: string;
26
- agentId: string | null;
27
- userId: string | null;
28
- activeSubAgentId: string;
29
21
  ref: {
30
22
  type: "commit" | "tag" | "branch";
31
23
  name: string;
32
24
  hash: string;
33
25
  } | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ properties: Record<string, unknown> | null;
29
+ title: string | null;
30
+ agentId: string | null;
31
+ projectId: string;
32
+ tenantId: string;
33
+ activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  userProperties: Record<string, unknown> | null;
36
36
  }>;
@@ -91,21 +91,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
91
91
  conversationId: string;
92
92
  }) => Promise<{
93
93
  id: string;
94
- properties: Record<string, unknown> | null;
95
- title: string | null;
96
94
  createdAt: string;
97
95
  updatedAt: string;
98
- tenantId: string;
99
- metadata: ConversationMetadata | null;
100
- projectId: string;
101
- agentId: string | null;
102
- userId: string | null;
103
- activeSubAgentId: string;
104
96
  ref: {
105
97
  type: "commit" | "tag" | "branch";
106
98
  name: string;
107
99
  hash: string;
108
100
  } | null;
101
+ userId: string | null;
102
+ metadata: ConversationMetadata | null;
103
+ properties: Record<string, unknown> | null;
104
+ title: string | null;
105
+ agentId: string | null;
106
+ projectId: string;
107
+ tenantId: string;
108
+ activeSubAgentId: string;
109
109
  lastContextResolution: string | null;
110
110
  userProperties: Record<string, unknown> | null;
111
111
  } | undefined>;
@@ -131,21 +131,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
131
131
  properties?: Record<string, unknown> | null | undefined;
132
132
  } | {
133
133
  id: string;
134
- properties: Record<string, unknown> | null;
135
- title: string | null;
136
134
  createdAt: string;
137
135
  updatedAt: string;
138
- tenantId: string;
139
- metadata: ConversationMetadata | null;
140
- projectId: string;
141
- agentId: string | null;
142
- userId: string | null;
143
- activeSubAgentId: string;
144
136
  ref: {
145
137
  type: "commit" | "tag" | "branch";
146
138
  name: string;
147
139
  hash: string;
148
140
  } | null;
141
+ userId: string | null;
142
+ metadata: ConversationMetadata | null;
143
+ properties: Record<string, unknown> | null;
144
+ title: string | null;
145
+ agentId: string | null;
146
+ projectId: string;
147
+ tenantId: string;
148
+ activeSubAgentId: string;
149
149
  lastContextResolution: string | null;
150
150
  userProperties: Record<string, unknown> | null;
151
151
  }>;
@@ -165,21 +165,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
165
165
  conversationId: string;
166
166
  }) => Promise<{
167
167
  id: string;
168
- properties: Record<string, unknown> | null;
169
- title: string | null;
170
168
  createdAt: string;
171
169
  updatedAt: string;
172
- tenantId: string;
173
- metadata: ConversationMetadata | null;
174
- projectId: string;
175
- agentId: string | null;
176
- userId: string | null;
177
- activeSubAgentId: string;
178
170
  ref: {
179
171
  type: "commit" | "tag" | "branch";
180
172
  name: string;
181
173
  hash: string;
182
174
  } | null;
175
+ userId: string | null;
176
+ metadata: ConversationMetadata | null;
177
+ properties: Record<string, unknown> | null;
178
+ title: string | null;
179
+ agentId: string | null;
180
+ projectId: string;
181
+ tenantId: string;
182
+ activeSubAgentId: string;
183
183
  lastContextResolution: string | null;
184
184
  userProperties: Record<string, unknown> | null;
185
185
  } | undefined>;
@@ -8,16 +8,16 @@ import { EventInsert } from "../../types/entities.js";
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
10
  id: string;
11
- type: string;
12
- properties: Record<string, unknown> | null;
13
11
  createdAt: string;
14
12
  updatedAt: string;
15
- tenantId: string;
13
+ type: string;
16
14
  metadata: Record<string, unknown> | null;
17
- projectId: string;
15
+ properties: Record<string, unknown> | null;
18
16
  agentId: string | null;
19
- userProperties: Record<string, unknown> | null;
17
+ projectId: string;
18
+ tenantId: string;
20
19
  conversationId: string | null;
20
+ userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
22
22
  serverMetadata: {
23
23
  [k: string]: unknown;
@@ -71,11 +71,11 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
71
71
  }[]>;
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
73
  id: string;
74
- type: "positive" | "negative";
75
74
  createdAt: string;
76
75
  updatedAt: string;
77
- tenantId: string;
76
+ type: "positive" | "negative";
78
77
  projectId: string;
78
+ tenantId: string;
79
79
  conversationId: string;
80
80
  messageId: string | null;
81
81
  details: string | null;
@@ -101,11 +101,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
103
  id: string;
104
- type: "positive" | "negative";
105
104
  createdAt: string;
106
105
  updatedAt: string;
107
- tenantId: string;
106
+ type: "positive" | "negative";
108
107
  projectId: string;
108
+ tenantId: string;
109
109
  conversationId: string;
110
110
  messageId: string | null;
111
111
  details: string | null;
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- properties: Record<string, unknown> | null;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
- tenantId: string;
18
16
  metadata: MessageMetadata | null;
19
- content: MessageContent;
17
+ role: string;
18
+ properties: Record<string, unknown> | null;
20
19
  projectId: string;
21
- taskId: string | null;
22
- visibility: string;
23
- userProperties: Record<string, unknown> | null;
20
+ tenantId: string;
21
+ content: MessageContent;
24
22
  conversationId: string;
25
- role: string;
23
+ userProperties: Record<string, unknown> | null;
26
24
  fromSubAgentId: string | null;
27
25
  toSubAgentId: string | null;
28
26
  fromExternalAgentId: string | null;
29
27
  toExternalAgentId: string | null;
30
28
  fromTeamAgentId: string | null;
31
29
  toTeamAgentId: string | null;
30
+ visibility: string;
32
31
  messageType: string;
32
+ taskId: string | null;
33
33
  parentMessageId: string | null;
34
34
  a2aTaskId: string | null;
35
35
  a2aSessionId: string | null;
@@ -155,25 +155,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
155
155
  data: Omit<MessageInsert, "tenantId" | "projectId">;
156
156
  }) => Promise<{
157
157
  id: string;
158
- properties: Record<string, unknown> | null;
159
158
  createdAt: string;
160
159
  updatedAt: string;
161
- tenantId: string;
162
160
  metadata: MessageMetadata | null;
163
- content: MessageContent;
161
+ role: string;
162
+ properties: Record<string, unknown> | null;
164
163
  projectId: string;
165
- taskId: string | null;
166
- visibility: string;
167
- userProperties: Record<string, unknown> | null;
164
+ tenantId: string;
165
+ content: MessageContent;
168
166
  conversationId: string;
169
- role: string;
167
+ userProperties: Record<string, unknown> | null;
170
168
  fromSubAgentId: string | null;
171
169
  toSubAgentId: string | null;
172
170
  fromExternalAgentId: string | null;
173
171
  toExternalAgentId: string | null;
174
172
  fromTeamAgentId: string | null;
175
173
  toTeamAgentId: string | null;
174
+ visibility: string;
176
175
  messageType: string;
176
+ taskId: string | null;
177
177
  parentMessageId: string | null;
178
178
  a2aTaskId: string | null;
179
179
  a2aSessionId: string | null;
@@ -212,25 +212,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
212
212
  messageId: string;
213
213
  }) => Promise<{
214
214
  id: string;
215
- properties: Record<string, unknown> | null;
216
215
  createdAt: string;
217
216
  updatedAt: string;
218
- tenantId: string;
219
217
  metadata: MessageMetadata | null;
220
- content: MessageContent;
218
+ role: string;
219
+ properties: Record<string, unknown> | null;
221
220
  projectId: string;
222
- taskId: string | null;
223
- visibility: string;
224
- userProperties: Record<string, unknown> | null;
221
+ tenantId: string;
222
+ content: MessageContent;
225
223
  conversationId: string;
226
- role: string;
224
+ userProperties: Record<string, unknown> | null;
227
225
  fromSubAgentId: string | null;
228
226
  toSubAgentId: string | null;
229
227
  fromExternalAgentId: string | null;
230
228
  toExternalAgentId: string | null;
231
229
  fromTeamAgentId: string | null;
232
230
  toTeamAgentId: string | null;
231
+ visibility: string;
233
232
  messageType: string;
233
+ taskId: string | null;
234
234
  parentMessageId: string | null;
235
235
  a2aTaskId: string | null;
236
236
  a2aSessionId: string | null;
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "running" | "pending" | "completed" | "failed" | "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: "running" | "pending" | "completed" | "failed" | "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: "running" | "pending" | "completed" | "failed" | "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: "running" | "pending" | "completed" | "failed" | "cancelled";
295
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -16,9 +16,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
16
16
  userId: string;
17
17
  }) => Promise<{
18
18
  createdAt: string;
19
- tenantId: string;
20
19
  userId: string;
21
20
  scheduledTriggerId: string;
21
+ tenantId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
24
24
  tenantId: string;
@@ -10,18 +10,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
10
10
  id: string;
11
11
  createdAt: string;
12
12
  updatedAt: string;
13
- tenantId: string;
14
- metadata: TaskMetadataConfig | null;
15
- projectId: string;
16
- agentId: string;
17
- subAgentId: string;
18
- contextId: string;
19
13
  ref: {
20
14
  type: "commit" | "tag" | "branch";
21
15
  name: string;
22
16
  hash: string;
23
17
  } | null;
18
+ metadata: TaskMetadataConfig | null;
24
19
  status: string;
20
+ agentId: string;
21
+ projectId: string;
22
+ tenantId: string;
23
+ subAgentId: string;
24
+ contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;