@inkeep/agents-core 0.0.0-dev-20260217034346 → 0.0.0-dev-20260217162453

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 (33) 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 +18 -18
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +3 -3
  6. package/dist/data-access/manage/agents.d.ts +43 -43
  7. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  10. package/dist/data-access/manage/functionTools.d.ts +18 -18
  11. package/dist/data-access/manage/skills.d.ts +14 -14
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +21 -21
  16. package/dist/data-access/manage/tools.d.ts +24 -24
  17. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  18. package/dist/data-access/runtime/conversations.d.ts +27 -27
  19. package/dist/data-access/runtime/messages.d.ts +18 -18
  20. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  21. package/dist/data-access/runtime/tasks.d.ts +7 -7
  22. package/dist/db/runtime/runtime-schema.d.ts +10 -10
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.js +2 -1
  25. package/dist/utils/index.d.ts +2 -1
  26. package/dist/utils/index.js +2 -1
  27. package/dist/utils/mock-provider.d.ts +41 -0
  28. package/dist/utils/mock-provider.js +117 -0
  29. package/dist/utils/model-factory.js +5 -2
  30. package/dist/validation/dolt-schemas.d.ts +1 -1
  31. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  32. package/dist/validation/schemas.d.ts +1836 -1836
  33. package/package.json +2 -1
@@ -16,19 +16,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string | null;
22
- title: string | null;
23
19
  createdAt: string;
24
20
  updatedAt: string;
25
- metadata: ConversationMetadata | null;
26
21
  ref: {
27
- type: "commit" | "tag" | "branch";
22
+ type: "tag" | "commit" | "branch";
28
23
  name: string;
29
24
  hash: string;
30
25
  } | null;
31
26
  userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ agentId: string | null;
29
+ projectId: string;
30
+ tenantId: string;
31
+ title: 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: "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;
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
87
  id: string;
88
- tenantId: string;
89
- projectId: string;
90
- agentId: string | null;
91
- title: string | null;
92
88
  createdAt: string;
93
89
  updatedAt: string;
94
- metadata: ConversationMetadata | null;
95
90
  ref: {
96
- type: "commit" | "tag" | "branch";
91
+ type: "tag" | "commit" | "branch";
97
92
  name: string;
98
93
  hash: string;
99
94
  } | null;
100
95
  userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ agentId: string | null;
98
+ projectId: string;
99
+ tenantId: string;
100
+ title: 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: "commit" | "tag" | "branch";
110
+ type: "tag" | "commit" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
123
  id: string;
124
- tenantId: string;
125
- projectId: string;
126
- agentId: string | null;
127
- title: string | null;
128
124
  createdAt: string;
129
125
  updatedAt: string;
130
- metadata: ConversationMetadata | null;
131
126
  ref: {
132
- type: "commit" | "tag" | "branch";
127
+ type: "tag" | "commit" | "branch";
133
128
  name: string;
134
129
  hash: string;
135
130
  } | null;
136
131
  userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
+ agentId: string | null;
134
+ projectId: string;
135
+ tenantId: string;
136
+ title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
- tenantId: string;
157
- projectId: string;
158
- agentId: string | null;
159
- title: string | null;
160
156
  createdAt: string;
161
157
  updatedAt: string;
162
- metadata: ConversationMetadata | null;
163
158
  ref: {
164
- type: "commit" | "tag" | "branch";
159
+ type: "tag" | "commit" | "branch";
165
160
  name: string;
166
161
  hash: string;
167
162
  } | null;
168
163
  userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
+ agentId: string | null;
166
+ projectId: string;
167
+ tenantId: string;
168
+ title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -10,25 +10,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  messageId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
15
  metadata: MessageMetadata | null;
18
- content: MessageContent;
19
- conversationId: string;
20
16
  role: string;
17
+ projectId: string;
18
+ tenantId: string;
19
+ content: MessageContent;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
24
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ conversationId: string;
25
27
  fromTeamAgentId: string | null;
26
28
  toTeamAgentId: string | null;
27
29
  visibility: string;
28
30
  messageType: string;
29
- taskId: string | null;
30
31
  parentMessageId: string | null;
31
- a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
33
33
  } | undefined>;
34
34
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -141,25 +141,25 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
143
  id: string;
144
- tenantId: string;
145
- projectId: string;
146
144
  createdAt: string;
147
145
  updatedAt: string;
148
146
  metadata: MessageMetadata | null;
149
- content: MessageContent;
150
- conversationId: string;
151
147
  role: string;
148
+ projectId: string;
149
+ tenantId: string;
150
+ content: MessageContent;
152
151
  fromSubAgentId: string | null;
153
152
  toSubAgentId: string | null;
154
153
  fromExternalAgentId: string | null;
155
154
  toExternalAgentId: string | null;
155
+ taskId: string | null;
156
+ a2aTaskId: string | null;
157
+ conversationId: string;
156
158
  fromTeamAgentId: string | null;
157
159
  toTeamAgentId: string | null;
158
160
  visibility: string;
159
161
  messageType: string;
160
- taskId: string | null;
161
162
  parentMessageId: string | null;
162
- a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
164
164
  }>;
165
165
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -194,25 +194,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  messageId: string;
195
195
  }) => Promise<{
196
196
  id: string;
197
- tenantId: string;
198
- projectId: string;
199
197
  createdAt: string;
200
198
  updatedAt: string;
201
199
  metadata: MessageMetadata | null;
202
- content: MessageContent;
203
- conversationId: string;
204
200
  role: string;
201
+ projectId: string;
202
+ tenantId: string;
203
+ content: MessageContent;
205
204
  fromSubAgentId: string | null;
206
205
  toSubAgentId: string | null;
207
206
  fromExternalAgentId: string | null;
208
207
  toExternalAgentId: string | null;
208
+ taskId: string | null;
209
+ a2aTaskId: string | null;
210
+ conversationId: string;
209
211
  fromTeamAgentId: string | null;
210
212
  toTeamAgentId: string | null;
211
213
  visibility: string;
212
214
  messageType: string;
213
- taskId: string | null;
214
215
  parentMessageId: string | null;
215
- a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
34
34
  }) => Promise<{
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
37
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
38
38
  scheduledFor: string;
39
39
  startedAt: string | null;
40
40
  completedAt: string | null;
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
174
174
  }) => Promise<{
175
175
  data: {
176
176
  scheduledTriggerId: string;
177
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
177
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
178
178
  scheduledFor: string;
179
179
  startedAt: string | null;
180
180
  completedAt: string | null;
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
208
208
  }) => Promise<{
209
209
  data: {
210
210
  scheduledTriggerId: string;
211
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
211
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
9
  id: string;
10
- tenantId: string;
11
- projectId: string;
12
- agentId: string;
13
10
  createdAt: string;
14
11
  updatedAt: string;
15
- metadata: TaskMetadataConfig | null;
16
12
  ref: {
17
- type: "commit" | "tag" | "branch";
13
+ type: "tag" | "commit" | "branch";
18
14
  name: string;
19
15
  hash: string;
20
16
  } | null;
17
+ metadata: TaskMetadataConfig | null;
21
18
  status: string;
22
- contextId: string;
19
+ agentId: string;
20
+ projectId: string;
21
+ tenantId: string;
23
22
  subAgentId: string;
23
+ contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "commit" | "tag" | "branch";
39
+ type: "tag" | "commit" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core1831.PgTableWithColumns<{
216
216
  dataType: "json";
217
217
  columnType: "PgJsonb";
218
218
  data: {
219
- type: "commit" | "tag" | "branch";
219
+ type: "tag" | "commit" | "branch";
220
220
  name: string;
221
221
  hash: string;
222
222
  };
@@ -232,7 +232,7 @@ declare const conversations: drizzle_orm_pg_core1831.PgTableWithColumns<{
232
232
  generated: undefined;
233
233
  }, {}, {
234
234
  $type: {
235
- type: "commit" | "tag" | "branch";
235
+ type: "tag" | "commit" | "branch";
236
236
  name: string;
237
237
  hash: string;
238
238
  };
@@ -413,7 +413,7 @@ declare const tasks: drizzle_orm_pg_core1831.PgTableWithColumns<{
413
413
  dataType: "json";
414
414
  columnType: "PgJsonb";
415
415
  data: {
416
- type: "commit" | "tag" | "branch";
416
+ type: "tag" | "commit" | "branch";
417
417
  name: string;
418
418
  hash: string;
419
419
  };
@@ -429,7 +429,7 @@ declare const tasks: drizzle_orm_pg_core1831.PgTableWithColumns<{
429
429
  generated: undefined;
430
430
  }, {}, {
431
431
  $type: {
432
- type: "commit" | "tag" | "branch";
432
+ type: "tag" | "commit" | "branch";
433
433
  name: string;
434
434
  hash: string;
435
435
  };
@@ -1778,7 +1778,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1831.PgTableWithCo
1778
1778
  tableName: "scheduled_trigger_invocations";
1779
1779
  dataType: "string";
1780
1780
  columnType: "PgVarchar";
1781
- data: "pending" | "running" | "completed" | "failed" | "cancelled";
1781
+ data: "pending" | "failed" | "running" | "completed" | "cancelled";
1782
1782
  driverParam: string;
1783
1783
  notNull: true;
1784
1784
  hasDefault: false;
@@ -1791,7 +1791,7 @@ declare const scheduledTriggerInvocations: drizzle_orm_pg_core1831.PgTableWithCo
1791
1791
  generated: undefined;
1792
1792
  }, {}, {
1793
1793
  length: 50;
1794
- $type: "pending" | "running" | "completed" | "failed" | "cancelled";
1794
+ $type: "pending" | "failed" | "running" | "completed" | "cancelled";
1795
1795
  }>;
1796
1796
  scheduledFor: drizzle_orm_pg_core1831.PgColumn<{
1797
1797
  name: "scheduled_for";
@@ -3013,7 +3013,7 @@ declare const contextCache: drizzle_orm_pg_core1831.PgTableWithColumns<{
3013
3013
  dataType: "json";
3014
3014
  columnType: "PgJsonb";
3015
3015
  data: {
3016
- type: "commit" | "tag" | "branch";
3016
+ type: "tag" | "commit" | "branch";
3017
3017
  name: string;
3018
3018
  hash: string;
3019
3019
  };
@@ -3029,7 +3029,7 @@ declare const contextCache: drizzle_orm_pg_core1831.PgTableWithColumns<{
3029
3029
  generated: undefined;
3030
3030
  }, {}, {
3031
3031
  $type: {
3032
- type: "commit" | "tag" | "branch";
3032
+ type: "tag" | "commit" | "branch";
3033
3033
  name: string;
3034
3034
  hash: string;
3035
3035
  };
@@ -3933,7 +3933,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1831.PgTableWithCol
3933
3933
  tableName: "work_app_github_installations";
3934
3934
  dataType: "string";
3935
3935
  columnType: "PgVarchar";
3936
- data: "Organization" | "User";
3936
+ data: "User" | "Organization";
3937
3937
  driverParam: string;
3938
3938
  notNull: true;
3939
3939
  hasDefault: false;
@@ -3946,7 +3946,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1831.PgTableWithCol
3946
3946
  generated: undefined;
3947
3947
  }, {}, {
3948
3948
  length: 20;
3949
- $type: "Organization" | "User";
3949
+ $type: "User" | "Organization";
3950
3950
  }>;
3951
3951
  status: drizzle_orm_pg_core1831.PgColumn<{
3952
3952
  name: "status";