@inkeep/agents-core 0.0.0-dev-20260207223415 → 0.0.0-dev-20260209055455

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 (43) hide show
  1. package/dist/auth/auth-schema.d.ts +83 -83
  2. package/dist/auth/auth-validation-schemas.d.ts +131 -131
  3. package/dist/auth/auth.d.ts +53 -53
  4. package/dist/auth/auth.js +1 -1
  5. package/dist/auth/authz/config.d.ts +1 -86
  6. package/dist/auth/authz/config.js +6 -72
  7. package/dist/auth/authz/index.d.ts +2 -1
  8. package/dist/auth/authz/index.js +2 -1
  9. package/dist/auth/authz/permissions.d.ts +1 -1
  10. package/dist/auth/authz/permissions.js +1 -1
  11. package/dist/auth/authz/sync.d.ts +1 -1
  12. package/dist/auth/authz/sync.js +1 -1
  13. package/dist/auth/authz/types.d.ts +92 -0
  14. package/dist/auth/authz/types.js +76 -0
  15. package/dist/auth/init.js +1 -1
  16. package/dist/auth/permissions.d.ts +13 -13
  17. package/dist/auth/spicedb-schema.js +2 -2
  18. package/dist/client-exports.d.ts +4 -4
  19. package/dist/client-exports.js +1 -1
  20. package/dist/data-access/manage/agents.d.ts +42 -42
  21. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  22. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  23. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  24. package/dist/data-access/manage/functionTools.d.ts +16 -16
  25. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  26. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  27. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  28. package/dist/data-access/manage/subAgents.d.ts +18 -18
  29. package/dist/data-access/manage/tools.d.ts +24 -24
  30. package/dist/data-access/manage/triggers.d.ts +2 -2
  31. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  32. package/dist/data-access/runtime/conversations.d.ts +31 -31
  33. package/dist/data-access/runtime/messages.d.ts +9 -9
  34. package/dist/data-access/runtime/tasks.d.ts +7 -7
  35. package/dist/db/manage/manage-schema.d.ts +382 -382
  36. package/dist/db/runtime/runtime-schema.d.ts +238 -238
  37. package/dist/env.d.ts +6 -0
  38. package/dist/env.js +4 -1
  39. package/dist/index.d.ts +2 -1
  40. package/dist/index.js +2 -1
  41. package/dist/validation/dolt-schemas.d.ts +1 -1
  42. package/dist/validation/schemas.d.ts +1532 -1532
  43. package/package.json +1 -1
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
16
14
  tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
49
  tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
- projectId: string;
64
62
  tenantId: string;
63
+ projectId: string;
64
+ agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  id: string;
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
- agentId: string;
132
- projectId: string;
133
131
  tenantId: string;
132
+ projectId: string;
133
+ agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- agentId: string;
151
- projectId: string;
152
150
  tenantId: string;
151
+ projectId: string;
152
+ agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  id: string;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- agentId: string;
165
- projectId: string;
166
164
  tenantId: string;
165
+ projectId: string;
166
+ agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ headers: Record<string, string> | null;
206
207
  id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- agentId: string;
210
- projectId: string;
211
210
  tenantId: string;
212
- subAgentId: string;
213
- headers: Record<string, string> | null;
211
+ projectId: string;
212
+ agentId: string;
214
213
  toolId: string;
215
214
  toolPolicies: Record<string, {
216
215
  needsApproval?: boolean;
217
216
  }> | null;
217
+ subAgentId: string;
218
218
  selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -247,18 +247,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
+ headers: Record<string, string> | null;
250
251
  id: string;
251
252
  createdAt: string;
252
253
  updatedAt: string;
253
- agentId: string;
254
- projectId: string;
255
254
  tenantId: string;
256
- subAgentId: string;
257
- headers: Record<string, string> | null;
255
+ projectId: string;
256
+ agentId: string;
258
257
  toolId: string;
259
258
  toolPolicies: Record<string, {
260
259
  needsApproval?: boolean;
261
260
  }> | null;
261
+ subAgentId: string;
262
262
  selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ headers: Record<string, string> | null;
11
12
  id: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
- agentId: string;
15
- projectId: string;
16
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
17
18
  subAgentId: string;
18
- headers: Record<string, string> | null;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ headers: Record<string, string> | null;
46
47
  id: string;
47
48
  createdAt: string;
48
49
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
52
53
  subAgentId: string;
53
- headers: Record<string, string> | null;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ headers: Record<string, string> | null;
59
60
  id: string;
60
61
  createdAt: string;
61
62
  updatedAt: string;
62
- agentId: string;
63
- projectId: string;
64
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
65
66
  subAgentId: string;
66
- headers: Record<string, string> | null;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
+ headers: Record<string, string> | null;
212
213
  id: string;
213
214
  createdAt: string;
214
215
  updatedAt: string;
215
- agentId: string;
216
- projectId: string;
217
216
  tenantId: string;
217
+ projectId: string;
218
+ agentId: string;
218
219
  subAgentId: string;
219
- headers: Record<string, string> | null;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
+ headers: Record<string, string> | null;
229
230
  id: string;
230
231
  createdAt: string;
231
232
  updatedAt: string;
232
- agentId: string;
233
- projectId: string;
234
233
  tenantId: string;
234
+ projectId: string;
235
+ agentId: string;
235
236
  subAgentId: string;
236
- headers: Record<string, string> | null;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
+ headers: Record<string, string> | null;
250
251
  id: string;
251
252
  createdAt: string;
252
253
  updatedAt: string;
253
- agentId: string;
254
- projectId: string;
255
254
  tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
256
257
  subAgentId: string;
257
- headers: Record<string, string> | null;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,14 +8,16 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- name: string;
12
- description: string | null;
13
11
  id: string;
14
12
  createdAt: string;
15
13
  updatedAt: string;
16
- agentId: string;
17
- projectId: string;
14
+ name: string;
15
+ description: string | null;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
+ prompt: string | null;
20
+ conversationHistoryConfig: ConversationHistoryConfig | null;
19
21
  models: {
20
22
  base?: {
21
23
  model?: string | undefined;
@@ -30,23 +32,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
32
  providerOptions?: Record<string, any> | undefined;
31
33
  } | undefined;
32
34
  } | null;
33
- prompt: string | null;
34
35
  stopWhen: {
35
36
  stepCountIs?: number | undefined;
36
37
  } | null;
37
- conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- name: string;
43
- description: string | null;
44
42
  id: string;
45
43
  createdAt: string;
46
44
  updatedAt: string;
47
- agentId: string;
48
- projectId: string;
45
+ name: string;
46
+ description: string | null;
49
47
  tenantId: string;
48
+ projectId: string;
49
+ agentId: string;
50
+ prompt: string | null;
51
+ conversationHistoryConfig: ConversationHistoryConfig | null;
50
52
  models: {
51
53
  base?: {
52
54
  model?: string | undefined;
@@ -61,11 +63,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
63
  providerOptions?: Record<string, any> | undefined;
62
64
  } | undefined;
63
65
  } | null;
64
- prompt: string | null;
65
66
  stopWhen: {
66
67
  stepCountIs?: number | undefined;
67
68
  } | null;
68
- conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -108,14 +108,16 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- name: string;
112
- description: string | null;
113
111
  id: string;
114
112
  createdAt: string;
115
113
  updatedAt: string;
116
- agentId: string;
117
- projectId: string;
114
+ name: string;
115
+ description: string | null;
118
116
  tenantId: string;
117
+ projectId: string;
118
+ agentId: string;
119
+ prompt: string | null;
120
+ conversationHistoryConfig: ConversationHistoryConfig | null;
119
121
  models: {
120
122
  base?: {
121
123
  model?: string | undefined;
@@ -130,11 +132,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
132
  providerOptions?: Record<string, any> | undefined;
131
133
  } | undefined;
132
134
  } | null;
133
- prompt: string | null;
134
135
  stopWhen: {
135
136
  stepCountIs?: number | undefined;
136
137
  } | null;
137
- conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
140
  scopes: AgentScopeConfig;
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- name: string;
22
- description: string | null;
21
+ headers: Record<string, string> | null;
23
22
  id: string;
24
23
  createdAt: string;
25
24
  updatedAt: string;
26
- projectId: string;
25
+ name: string;
26
+ description: string | null;
27
27
  tenantId: string;
28
- headers: Record<string, string> | null;
28
+ projectId: string;
29
29
  config: {
30
30
  type: "mcp";
31
31
  mcp: ToolMcpConfig;
@@ -76,14 +76,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
76
  };
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- name: string;
80
- description: string | null;
79
+ headers: Record<string, string> | null;
81
80
  id: string;
82
81
  createdAt: string;
83
82
  updatedAt: string;
84
- projectId: string;
83
+ name: string;
84
+ description: string | null;
85
85
  tenantId: string;
86
- headers: Record<string, string> | null;
86
+ projectId: string;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -133,18 +133,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
+ headers: Record<string, string> | null;
136
137
  id: string;
137
138
  createdAt: string;
138
139
  updatedAt: string;
139
- agentId: string;
140
- projectId: string;
141
140
  tenantId: string;
142
- subAgentId: string;
143
- headers: Record<string, string> | null;
141
+ projectId: string;
142
+ agentId: string;
144
143
  toolId: string;
145
144
  toolPolicies: Record<string, {
146
145
  needsApproval?: boolean;
147
146
  }> | null;
147
+ subAgentId: string;
148
148
  selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -152,18 +152,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
152
152
  subAgentId: string;
153
153
  toolId: string;
154
154
  }) => Promise<{
155
+ headers: Record<string, string> | null;
155
156
  id: string;
156
157
  createdAt: string;
157
158
  updatedAt: string;
158
- agentId: string;
159
- projectId: string;
160
159
  tenantId: string;
161
- subAgentId: string;
162
- headers: Record<string, string> | null;
160
+ projectId: string;
161
+ agentId: string;
163
162
  toolId: string;
164
163
  toolPolicies: Record<string, {
165
164
  needsApproval?: boolean;
166
165
  }> | null;
166
+ subAgentId: string;
167
167
  selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
@@ -180,18 +180,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
180
  }> | null;
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
+ headers: Record<string, string> | null;
183
184
  id: string;
184
185
  createdAt: string;
185
186
  updatedAt: string;
186
- agentId: string;
187
- projectId: string;
188
187
  tenantId: string;
189
- subAgentId: string;
190
- headers: Record<string, string> | null;
188
+ projectId: string;
189
+ agentId: string;
191
190
  toolId: string;
192
191
  toolPolicies: Record<string, {
193
192
  needsApproval?: boolean;
194
193
  }> | null;
194
+ subAgentId: string;
195
195
  selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
@@ -200,14 +200,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
200
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
- name: string;
204
- description: string | null;
203
+ headers: Record<string, string> | null;
205
204
  id: string;
206
205
  createdAt: string;
207
206
  updatedAt: string;
208
- projectId: string;
207
+ name: string;
208
+ description: string | null;
209
209
  tenantId: string;
210
- headers: Record<string, string> | null;
210
+ projectId: string;
211
211
  config: {
212
212
  type: "mcp";
213
213
  mcp: ToolMcpConfig;
@@ -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: "body" | "query" | "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: "body" | "header" | "literal";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -7,28 +7,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- name: string | null;
11
10
  id: string;
12
11
  createdAt: string;
13
12
  updatedAt: string;
13
+ name: string | null;
14
14
  expiresAt: string | null;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  publicId: string;
19
19
  keyHash: string;
20
20
  keyPrefix: string;
21
21
  lastUsedAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- name: string | null;
25
24
  id: string;
26
25
  createdAt: string;
27
26
  updatedAt: string;
27
+ name: string | null;
28
28
  expiresAt: string | null;
29
- agentId: string;
30
- projectId: string;
31
29
  tenantId: string;
30
+ projectId: string;
31
+ agentId: string;
32
32
  publicId: string;
33
33
  keyHash: string;
34
34
  keyPrefix: string;
@@ -38,14 +38,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- name: string | null;
42
41
  id: string;
43
42
  createdAt: string;
44
43
  updatedAt: string;
44
+ name: string | null;
45
45
  expiresAt: string | null;
46
- agentId: string;
47
- projectId: string;
48
46
  tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
49
  publicId: string;
50
50
  keyHash: string;
51
51
  keyPrefix: string;
@@ -65,14 +65,14 @@ 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
68
  id: string;
70
69
  createdAt: string;
71
70
  updatedAt: string;
71
+ name: string | null;
72
72
  expiresAt: string | null;
73
- agentId: string;
74
- projectId: string;
75
73
  tenantId: string;
74
+ projectId: string;
75
+ agentId: string;
76
76
  publicId: string;
77
77
  keyHash: string;
78
78
  keyPrefix: string;
@@ -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
- title: string | null;
18
+ metadata: ConversationMetadata | null;
19
19
  id: string;
20
+ userId: string | null;
20
21
  createdAt: string;
21
22
  updatedAt: string;
23
+ tenantId: string;
24
+ projectId: string;
25
+ agentId: string | null;
26
+ title: string | null;
22
27
  ref: {
23
- type: "commit" | "tag" | "branch";
28
+ type: "tag" | "commit" | "branch";
24
29
  name: string;
25
30
  hash: string;
26
31
  } | null;
27
- userId: string | null;
28
- metadata: ConversationMetadata | null;
29
- agentId: string | null;
30
- projectId: string;
31
- tenantId: string;
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: "commit" | "tag" | "branch";
46
+ type: "tag" | "commit" | "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: "commit" | "tag" | "branch";
72
+ type: "tag" | "commit" | "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
- title: string | null;
87
+ metadata: ConversationMetadata | null;
88
88
  id: string;
89
+ userId: string | null;
89
90
  createdAt: string;
90
91
  updatedAt: string;
92
+ tenantId: string;
93
+ projectId: string;
94
+ agentId: string | null;
95
+ title: string | null;
91
96
  ref: {
92
- type: "commit" | "tag" | "branch";
97
+ type: "tag" | "commit" | "branch";
93
98
  name: string;
94
99
  hash: string;
95
100
  } | null;
96
- userId: string | null;
97
- metadata: ConversationMetadata | null;
98
- agentId: string | null;
99
- projectId: string;
100
- tenantId: string;
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: "commit" | "tag" | "branch";
110
+ type: "tag" | "commit" | "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
- title: string | null;
123
+ metadata: ConversationMetadata | null;
124
124
  id: string;
125
+ userId: string | null;
125
126
  createdAt: string;
126
127
  updatedAt: string;
128
+ tenantId: string;
129
+ projectId: string;
130
+ agentId: string | null;
131
+ title: string | null;
127
132
  ref: {
128
- type: "commit" | "tag" | "branch";
133
+ type: "tag" | "commit" | "branch";
129
134
  name: string;
130
135
  hash: string;
131
136
  } | null;
132
- userId: string | null;
133
- metadata: ConversationMetadata | null;
134
- agentId: string | null;
135
- projectId: string;
136
- tenantId: string;
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
- title: string | null;
155
+ metadata: ConversationMetadata | null;
156
156
  id: string;
157
+ userId: string | null;
157
158
  createdAt: string;
158
159
  updatedAt: string;
160
+ tenantId: string;
161
+ projectId: string;
162
+ agentId: string | null;
163
+ title: string | null;
159
164
  ref: {
160
- type: "commit" | "tag" | "branch";
165
+ type: "tag" | "commit" | "branch";
161
166
  name: string;
162
167
  hash: string;
163
168
  } | null;
164
- userId: string | null;
165
- metadata: ConversationMetadata | null;
166
- agentId: string | null;
167
- projectId: string;
168
- tenantId: string;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;