@inkeep/agents-core 0.0.0-dev-20260123094230 → 0.0.0-dev-20260123205017

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 (45) hide show
  1. package/dist/auth/auth.d.ts +53 -53
  2. package/dist/auth/permissions.d.ts +13 -13
  3. package/dist/client-exports.d.ts +3 -2
  4. package/dist/client-exports.js +2 -2
  5. package/dist/credential-stores/keychain-store.js +1 -3
  6. package/dist/data-access/manage/agentFull.js +2 -0
  7. package/dist/data-access/manage/agents.d.ts +37 -37
  8. package/dist/data-access/manage/agents.js +5 -3
  9. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  10. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  11. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  12. package/dist/data-access/manage/functionTools.d.ts +37 -16
  13. package/dist/data-access/manage/functionTools.js +10 -6
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  17. package/dist/data-access/manage/subAgents.d.ts +27 -27
  18. package/dist/data-access/manage/tools.d.ts +33 -33
  19. package/dist/data-access/manage/triggers.d.ts +27 -1
  20. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  21. package/dist/data-access/runtime/conversations.d.ts +31 -31
  22. package/dist/data-access/runtime/messages.d.ts +12 -12
  23. package/dist/data-access/runtime/tasks.d.ts +6 -6
  24. package/dist/db/manage/manage-schema.d.ts +400 -306
  25. package/dist/db/manage/manage-schema.js +27 -17
  26. package/dist/db/runtime/runtime-schema.d.ts +163 -163
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +3 -3
  29. package/dist/utils/index.d.ts +2 -2
  30. package/dist/utils/index.js +2 -2
  31. package/dist/utils/signature-validation.d.ts +39 -0
  32. package/dist/utils/signature-validation.js +71 -0
  33. package/dist/utils/trigger-auth.d.ts +31 -8
  34. package/dist/utils/trigger-auth.js +123 -13
  35. package/dist/validation/dolt-schemas.d.ts +1 -1
  36. package/dist/validation/index.d.ts +2 -2
  37. package/dist/validation/index.js +2 -2
  38. package/dist/validation/schemas.d.ts +1343 -1156
  39. package/dist/validation/schemas.js +248 -14
  40. package/drizzle/manage/0003_tiny_captain_universe.sql +8 -0
  41. package/drizzle/manage/0004_curious_phil_sheldon.sql +2 -0
  42. package/drizzle/manage/meta/0003_snapshot.json +3134 -0
  43. package/drizzle/manage/meta/0004_snapshot.json +3141 -0
  44. package/drizzle/manage/meta/_journal.json +14 -0
  45. package/package.json +5 -1
@@ -8,15 +8,18 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
- id: string;
14
11
  name: string;
15
12
  description: string | null;
16
- prompt: string | null;
17
- agentId: string;
13
+ id: string;
18
14
  createdAt: string;
19
15
  updatedAt: string;
16
+ tenantId: string;
17
+ projectId: string;
18
+ stopWhen: {
19
+ stepCountIs?: number | undefined;
20
+ } | null;
21
+ prompt: string | null;
22
+ conversationHistoryConfig: ConversationHistoryConfig | null;
20
23
  models: {
21
24
  base?: {
22
25
  model?: string | undefined;
@@ -31,23 +34,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
34
  providerOptions?: Record<string, any> | undefined;
32
35
  } | undefined;
33
36
  } | null;
34
- stopWhen: {
35
- stepCountIs?: number | undefined;
36
- } | null;
37
- conversationHistoryConfig: ConversationHistoryConfig | null;
37
+ agentId: string;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- tenantId: string;
43
- projectId: string;
44
- id: string;
45
42
  name: string;
46
43
  description: string | null;
47
- prompt: string | null;
48
- agentId: string;
44
+ id: string;
49
45
  createdAt: string;
50
46
  updatedAt: string;
47
+ tenantId: string;
48
+ projectId: string;
49
+ stopWhen: {
50
+ stepCountIs?: number | undefined;
51
+ } | null;
52
+ prompt: string | null;
53
+ conversationHistoryConfig: ConversationHistoryConfig | null;
51
54
  models: {
52
55
  base?: {
53
56
  model?: string | undefined;
@@ -62,10 +65,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
65
  providerOptions?: Record<string, any> | undefined;
63
66
  } | undefined;
64
67
  } | null;
65
- stopWhen: {
66
- stepCountIs?: number | undefined;
67
- } | null;
68
- conversationHistoryConfig: ConversationHistoryConfig | null;
68
+ agentId: string;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -108,15 +108,18 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- tenantId: string;
112
- projectId: string;
113
- id: string;
114
111
  name: string;
115
112
  description: string | null;
116
- prompt: string | null;
117
- agentId: string;
113
+ id: string;
118
114
  createdAt: string;
119
115
  updatedAt: string;
116
+ tenantId: string;
117
+ projectId: string;
118
+ stopWhen: {
119
+ stepCountIs?: number | undefined;
120
+ } | null;
121
+ prompt: string | null;
122
+ conversationHistoryConfig: ConversationHistoryConfig | null;
120
123
  models: {
121
124
  base?: {
122
125
  model?: string | undefined;
@@ -131,10 +134,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
134
  providerOptions?: Record<string, any> | undefined;
132
135
  } | undefined;
133
136
  } | null;
134
- stopWhen: {
135
- stepCountIs?: number | undefined;
136
- } | null;
137
- conversationHistoryConfig: ConversationHistoryConfig | null;
137
+ agentId: string;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
140
  scopes: AgentScopeConfig;
@@ -12,19 +12,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  scopes: ProjectScopeConfig;
13
13
  toolId: string;
14
14
  }) => Promise<{
15
- tenantId: string;
16
- projectId: string;
17
- id: string;
18
15
  name: string;
19
16
  description: string | null;
17
+ id: string;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ headers: Record<string, string> | null;
21
+ tenantId: string;
22
+ projectId: string;
20
23
  config: {
21
24
  type: "mcp";
22
25
  mcp: ToolMcpConfig;
23
26
  };
24
27
  credentialReferenceId: string | null;
25
- createdAt: string;
26
- updatedAt: string;
27
- headers: Record<string, string> | null;
28
28
  credentialScope: string;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
@@ -68,19 +68,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
68
68
  };
69
69
  }>;
70
70
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
71
- tenantId: string;
72
- projectId: string;
73
- id: string;
74
71
  name: string;
75
72
  description: string | null;
73
+ id: string;
74
+ createdAt: string;
75
+ updatedAt: string;
76
+ headers: Record<string, string> | null;
77
+ tenantId: string;
78
+ projectId: string;
76
79
  config: {
77
80
  type: "mcp";
78
81
  mcp: ToolMcpConfig;
79
82
  };
80
83
  credentialReferenceId: string | null;
81
- createdAt: string;
82
- updatedAt: string;
83
- headers: Record<string, string> | null;
84
84
  credentialScope: string;
85
85
  imageUrl: string | null;
86
86
  capabilities: ToolServerCapabilities | null;
@@ -123,18 +123,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
123
123
  needsApproval?: boolean;
124
124
  }> | null;
125
125
  }) => Promise<{
126
- tenantId: string;
127
- projectId: string;
128
126
  id: string;
129
- agentId: string;
130
127
  createdAt: string;
131
128
  updatedAt: string;
132
- toolId: string;
133
129
  headers: Record<string, string> | null;
130
+ tenantId: string;
131
+ projectId: string;
132
+ subAgentId: string;
133
+ agentId: string;
134
+ toolId: string;
134
135
  toolPolicies: Record<string, {
135
136
  needsApproval?: boolean;
136
137
  }> | null;
137
- subAgentId: string;
138
138
  selectedTools: string[] | null;
139
139
  }>;
140
140
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -142,18 +142,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
142
142
  subAgentId: string;
143
143
  toolId: string;
144
144
  }) => Promise<{
145
- tenantId: string;
146
- projectId: string;
147
145
  id: string;
148
- agentId: string;
149
146
  createdAt: string;
150
147
  updatedAt: string;
151
- toolId: string;
152
148
  headers: Record<string, string> | null;
149
+ tenantId: string;
150
+ projectId: string;
151
+ subAgentId: string;
152
+ agentId: string;
153
+ toolId: string;
153
154
  toolPolicies: Record<string, {
154
155
  needsApproval?: boolean;
155
156
  }> | null;
156
- subAgentId: string;
157
157
  selectedTools: string[] | null;
158
158
  }>;
159
159
  /**
@@ -170,18 +170,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
170
170
  }> | null;
171
171
  relationId?: string;
172
172
  }) => Promise<{
173
- tenantId: string;
174
- projectId: string;
175
173
  id: string;
176
- agentId: string;
177
174
  createdAt: string;
178
175
  updatedAt: string;
179
- toolId: string;
180
176
  headers: Record<string, string> | null;
177
+ tenantId: string;
178
+ projectId: string;
179
+ subAgentId: string;
180
+ agentId: string;
181
+ toolId: string;
181
182
  toolPolicies: Record<string, {
182
183
  needsApproval?: boolean;
183
184
  }> | null;
184
- subAgentId: string;
185
185
  selectedTools: string[] | null;
186
186
  }>;
187
187
  /**
@@ -190,19 +190,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
190
190
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
191
191
  data: ToolInsert;
192
192
  }) => Promise<{
193
- tenantId: string;
194
- projectId: string;
195
- id: string;
196
193
  name: string;
197
194
  description: string | null;
195
+ id: string;
196
+ createdAt: string;
197
+ updatedAt: string;
198
+ headers: Record<string, string> | null;
199
+ tenantId: string;
200
+ projectId: string;
198
201
  config: {
199
202
  type: "mcp";
200
203
  mcp: ToolMcpConfig;
201
204
  };
202
205
  credentialReferenceId: string | null;
203
- createdAt: string;
204
- updatedAt: string;
205
- headers: Record<string, string> | null;
206
206
  credentialScope: string;
207
207
  imageUrl: string | null;
208
208
  capabilities: ToolServerCapabilities | null;
@@ -35,7 +35,33 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
35
35
  } | null;
36
36
  messageTemplate: string | null;
37
37
  authentication: unknown;
38
- signingSecret: string | null;
38
+ signingSecretCredentialReferenceId: string | null;
39
+ signatureVerification: {
40
+ algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
+ encoding: "hex" | "base64";
42
+ signature: {
43
+ source: "query" | "body" | "header";
44
+ key: string;
45
+ prefix?: string | undefined;
46
+ regex?: string | undefined;
47
+ };
48
+ signedComponents: {
49
+ source: "literal" | "body" | "header";
50
+ required: boolean;
51
+ key?: string | undefined;
52
+ value?: string | undefined;
53
+ regex?: string | undefined;
54
+ }[];
55
+ componentJoin: {
56
+ strategy: "concatenate";
57
+ separator: string;
58
+ };
59
+ validation?: {
60
+ headerCaseSensitive: boolean;
61
+ allowEmptyBody: boolean;
62
+ normalizeUnicode: boolean;
63
+ } | undefined;
64
+ } | null;
39
65
  name: string;
40
66
  description: string | null;
41
67
  agentId: string;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ name: string | null;
11
+ id: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ expiresAt: string | null;
10
15
  tenantId: string;
11
16
  projectId: string;
12
- id: string;
13
- name: string | null;
14
17
  agentId: string;
15
18
  publicId: string;
16
19
  keyHash: string;
17
20
  keyPrefix: string;
18
21
  lastUsedAt: string | null;
19
- expiresAt: string | null;
20
- createdAt: string;
21
- updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
+ name: string | null;
25
+ id: string;
26
+ createdAt: string;
27
+ updatedAt: string;
28
+ expiresAt: string | null;
24
29
  tenantId: string;
25
30
  projectId: string;
26
- id: string;
27
- name: string | null;
28
31
  agentId: string;
29
32
  publicId: string;
30
33
  keyHash: string;
31
34
  keyPrefix: string;
32
35
  lastUsedAt: string | null;
33
- expiresAt: string | null;
34
- createdAt: string;
35
- updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
+ name: string | null;
42
+ id: string;
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ expiresAt: string | null;
41
46
  tenantId: string;
42
47
  projectId: string;
43
- id: string;
44
- name: string | null;
45
48
  agentId: string;
46
49
  publicId: string;
47
50
  keyHash: string;
48
51
  keyPrefix: string;
49
52
  lastUsedAt: string | null;
50
- expiresAt: string | null;
51
- createdAt: string;
52
- updatedAt: string;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
+ name: string | null;
69
+ id: string;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ expiresAt: string | null;
68
73
  tenantId: string;
69
74
  projectId: string;
70
- id: string;
71
- name: string | null;
72
75
  agentId: string;
73
76
  publicId: string;
74
77
  keyHash: string;
75
78
  keyPrefix: string;
76
79
  lastUsedAt: string | null;
77
- expiresAt: string | null;
78
- createdAt: string;
79
- updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -15,20 +15,20 @@ 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
- id: string;
21
18
  title: string | null;
22
- agentId: string | null;
19
+ id: string;
23
20
  createdAt: string;
24
21
  updatedAt: string;
25
- userId: string | null;
26
- metadata: ConversationMetadata | null;
27
22
  ref: {
28
- type: "tag" | "commit" | "branch";
23
+ type: "commit" | "tag" | "branch";
29
24
  name: string;
30
25
  hash: string;
31
26
  } | null;
27
+ userId: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ tenantId: string;
30
+ projectId: string;
31
+ agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "tag" | "commit" | "branch";
46
+ type: "commit" | "tag" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- tenantId: string;
88
- projectId: string;
89
- id: string;
90
87
  title: string | null;
91
- agentId: string | null;
88
+ id: string;
92
89
  createdAt: string;
93
90
  updatedAt: string;
94
- userId: string | null;
95
- metadata: ConversationMetadata | null;
96
91
  ref: {
97
- type: "tag" | "commit" | "branch";
92
+ type: "commit" | "tag" | "branch";
98
93
  name: string;
99
94
  hash: string;
100
95
  } | null;
96
+ userId: string | null;
97
+ metadata: ConversationMetadata | null;
98
+ tenantId: string;
99
+ projectId: string;
100
+ agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
- tenantId: string;
124
- projectId: string;
125
- id: string;
126
123
  title: string | null;
127
- agentId: string | null;
124
+ id: string;
128
125
  createdAt: string;
129
126
  updatedAt: string;
130
- userId: string | null;
131
- metadata: ConversationMetadata | null;
132
127
  ref: {
133
- type: "tag" | "commit" | "branch";
128
+ type: "commit" | "tag" | "branch";
134
129
  name: string;
135
130
  hash: string;
136
131
  } | null;
132
+ userId: string | null;
133
+ metadata: ConversationMetadata | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- tenantId: string;
156
- projectId: string;
157
- id: string;
158
155
  title: string | null;
159
- agentId: string | null;
156
+ id: string;
160
157
  createdAt: string;
161
158
  updatedAt: string;
162
- userId: string | null;
163
- metadata: ConversationMetadata | null;
164
159
  ref: {
165
- type: "tag" | "commit" | "branch";
160
+ type: "commit" | "tag" | "branch";
166
161
  name: string;
167
162
  hash: string;
168
163
  } | null;
164
+ userId: string | null;
165
+ metadata: ConversationMetadata | null;
166
+ tenantId: string;
167
+ projectId: string;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -9,21 +9,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  id: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
15
  metadata: MessageMetadata | null;
18
- content: MessageContent;
19
16
  role: string;
20
- conversationId: string;
17
+ content: MessageContent;
18
+ tenantId: string;
19
+ projectId: string;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
24
23
  toExternalAgentId: string | null;
25
24
  taskId: string | null;
26
25
  a2aTaskId: string | null;
26
+ conversationId: string;
27
27
  fromTeamAgentId: string | null;
28
28
  toTeamAgentId: string | null;
29
29
  visibility: string;
@@ -140,21 +140,21 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
140
  id: string;
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
- tenantId: string;
144
- projectId: string;
145
143
  id: string;
146
144
  createdAt: string;
147
145
  updatedAt: string;
148
146
  metadata: MessageMetadata | null;
149
- content: MessageContent;
150
147
  role: string;
151
- conversationId: string;
148
+ content: MessageContent;
149
+ tenantId: string;
150
+ projectId: string;
152
151
  fromSubAgentId: string | null;
153
152
  toSubAgentId: string | null;
154
153
  fromExternalAgentId: string | null;
155
154
  toExternalAgentId: string | null;
156
155
  taskId: string | null;
157
156
  a2aTaskId: string | null;
157
+ conversationId: string;
158
158
  fromTeamAgentId: string | null;
159
159
  toTeamAgentId: string | null;
160
160
  visibility: string;
@@ -193,21 +193,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
193
193
  scopes: ProjectScopeConfig;
194
194
  messageId: string;
195
195
  }) => Promise<{
196
- tenantId: string;
197
- projectId: string;
198
196
  id: string;
199
197
  createdAt: string;
200
198
  updatedAt: string;
201
199
  metadata: MessageMetadata | null;
202
- content: MessageContent;
203
200
  role: string;
204
- conversationId: string;
201
+ content: MessageContent;
202
+ tenantId: string;
203
+ projectId: string;
205
204
  fromSubAgentId: string | null;
206
205
  toSubAgentId: string | null;
207
206
  fromExternalAgentId: string | null;
208
207
  toExternalAgentId: string | null;
209
208
  taskId: string | null;
210
209
  a2aTaskId: string | null;
210
+ conversationId: string;
211
211
  fromTeamAgentId: string | null;
212
212
  toTeamAgentId: string | null;
213
213
  visibility: string;
@@ -6,20 +6,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
- tenantId: string;
10
- projectId: string;
11
9
  id: string;
12
- agentId: string;
13
10
  createdAt: string;
14
11
  updatedAt: string;
15
- metadata: TaskMetadataConfig | null;
16
12
  ref: {
17
- type: "tag" | "commit" | "branch";
13
+ type: "commit" | "tag" | "branch";
18
14
  name: string;
19
15
  hash: string;
20
16
  } | null;
17
+ metadata: TaskMetadataConfig | null;
21
18
  status: string;
19
+ tenantId: string;
20
+ projectId: string;
22
21
  subAgentId: string;
22
+ agentId: string;
23
23
  contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;