@inkeep/agents-core 0.52.0 → 0.53.1

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 +107 -107
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +22 -22
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +5 -5
  6. package/dist/data-access/manage/agents.d.ts +31 -31
  7. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  8. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  9. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  10. package/dist/data-access/manage/functionTools.d.ts +12 -12
  11. package/dist/data-access/manage/skills.d.ts +13 -13
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  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 +16 -16
  19. package/dist/data-access/runtime/messages.d.ts +18 -18
  20. package/dist/data-access/runtime/organizations.d.ts +2 -0
  21. package/dist/data-access/runtime/organizations.js +6 -2
  22. package/dist/data-access/runtime/tasks.d.ts +5 -5
  23. package/dist/db/manage/manage-schema.d.ts +445 -445
  24. package/dist/db/runtime/runtime-schema.d.ts +292 -292
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +2 -2
  27. package/dist/middleware/no-auth.d.ts +2 -2
  28. package/dist/setup/setup.js +52 -14
  29. package/dist/utils/index.d.ts +2 -2
  30. package/dist/utils/index.js +2 -2
  31. package/dist/utils/slack-link-token.d.ts +33 -8
  32. package/dist/utils/slack-link-token.js +20 -9
  33. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  34. package/dist/validation/schemas.d.ts +1989 -1989
  35. package/package.json +1 -1
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
- title: string | null;
19
+ id: string;
20
20
  tenantId: string;
21
21
  projectId: string;
22
- id: string;
22
+ agentId: string | null;
23
+ title: string | null;
23
24
  createdAt: string;
24
25
  updatedAt: string;
25
26
  metadata: ConversationMetadata | null;
26
- agentId: string | null;
27
- userId: string | null;
28
27
  ref: {
29
28
  type: "commit" | "tag" | "branch";
30
29
  name: string;
31
30
  hash: string;
32
31
  } | null;
32
+ userId: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
- title: string | null;
88
+ id: string;
89
89
  tenantId: string;
90
90
  projectId: string;
91
- id: string;
91
+ agentId: string | null;
92
+ title: string | null;
92
93
  createdAt: string;
93
94
  updatedAt: string;
94
95
  metadata: ConversationMetadata | null;
95
- agentId: string | null;
96
- userId: string | null;
97
96
  ref: {
98
97
  type: "commit" | "tag" | "branch";
99
98
  name: string;
100
99
  hash: string;
101
100
  } | null;
101
+ userId: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
- title: string | null;
124
+ id: string;
125
125
  tenantId: string;
126
126
  projectId: string;
127
- id: string;
127
+ agentId: string | null;
128
+ title: string | null;
128
129
  createdAt: string;
129
130
  updatedAt: string;
130
131
  metadata: ConversationMetadata | null;
131
- agentId: string | null;
132
- userId: string | null;
133
132
  ref: {
134
133
  type: "commit" | "tag" | "branch";
135
134
  name: string;
136
135
  hash: string;
137
136
  } | null;
137
+ userId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
- title: string | null;
156
+ id: string;
157
157
  tenantId: string;
158
158
  projectId: string;
159
- id: string;
159
+ agentId: string | null;
160
+ title: string | null;
160
161
  createdAt: string;
161
162
  updatedAt: string;
162
163
  metadata: ConversationMetadata | null;
163
- agentId: string | null;
164
- userId: string | null;
165
164
  ref: {
166
165
  type: "commit" | "tag" | "branch";
167
166
  name: string;
168
167
  hash: string;
169
168
  } | null;
169
+ userId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -10,21 +10,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- content: MessageContent;
13
+ id: string;
14
14
  tenantId: string;
15
15
  projectId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ metadata: MessageMetadata | null;
19
+ content: MessageContent;
20
+ role: string;
16
21
  fromSubAgentId: string | null;
17
22
  toSubAgentId: string | null;
18
23
  fromExternalAgentId: string | null;
19
24
  toExternalAgentId: string | null;
20
25
  taskId: string | null;
21
26
  a2aTaskId: string | null;
22
- id: string;
23
- createdAt: string;
24
- updatedAt: string;
25
- metadata: MessageMetadata | null;
26
27
  conversationId: string;
27
- role: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
30
30
  visibility: string;
@@ -141,21 +141,21 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
- content: MessageContent;
144
+ id: string;
145
145
  tenantId: string;
146
146
  projectId: string;
147
+ createdAt: string;
148
+ updatedAt: string;
149
+ metadata: MessageMetadata | null;
150
+ content: MessageContent;
151
+ role: string;
147
152
  fromSubAgentId: string | null;
148
153
  toSubAgentId: string | null;
149
154
  fromExternalAgentId: string | null;
150
155
  toExternalAgentId: string | null;
151
156
  taskId: string | null;
152
157
  a2aTaskId: string | null;
153
- id: string;
154
- createdAt: string;
155
- updatedAt: string;
156
- metadata: MessageMetadata | null;
157
158
  conversationId: string;
158
- role: string;
159
159
  fromTeamAgentId: string | null;
160
160
  toTeamAgentId: string | null;
161
161
  visibility: string;
@@ -194,21 +194,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
- content: MessageContent;
197
+ id: string;
198
198
  tenantId: string;
199
199
  projectId: string;
200
+ createdAt: string;
201
+ updatedAt: string;
202
+ metadata: MessageMetadata | null;
203
+ content: MessageContent;
204
+ role: string;
200
205
  fromSubAgentId: string | null;
201
206
  toSubAgentId: string | null;
202
207
  fromExternalAgentId: string | null;
203
208
  toExternalAgentId: string | null;
204
209
  taskId: string | null;
205
210
  a2aTaskId: string | null;
206
- id: string;
207
- createdAt: string;
208
- updatedAt: string;
209
- metadata: MessageMetadata | null;
210
211
  conversationId: string;
211
- role: string;
212
212
  fromTeamAgentId: string | null;
213
213
  toTeamAgentId: string | null;
214
214
  visibility: string;
@@ -29,6 +29,7 @@ declare const getPendingInvitationsByEmail: (db: AgentsRunDatabaseClient) => (em
29
29
  status: string;
30
30
  expiresAt: Date;
31
31
  inviterId: string;
32
+ authMethod: string | null;
32
33
  }[]>;
33
34
  /**
34
35
  * Add user to organization
@@ -66,6 +67,7 @@ declare const createInvitationInDb: (db: AgentsRunDatabaseClient) => (data: {
66
67
  email: string;
67
68
  }) => Promise<{
68
69
  id: string;
70
+ authMethod: string;
69
71
  }>;
70
72
  //#endregion
71
73
  export { UserProviderInfo, addUserToOrganization, createInvitationInDb, getPendingInvitationsByEmail, getUserOrganizationsFromDb, getUserProvidersFromDb, upsertOrganization };
@@ -41,7 +41,8 @@ const getPendingInvitationsByEmail = (db) => async (email) => {
41
41
  role: invitation.role,
42
42
  status: invitation.status,
43
43
  expiresAt: invitation.expiresAt,
44
- inviterId: invitation.inviterId
44
+ inviterId: invitation.inviterId,
45
+ authMethod: invitation.authMethod
45
46
  }).from(invitation).leftJoin(organization, eq(invitation.organizationId, organization.id)).where(and(eq(invitation.email, email), eq(invitation.status, "pending")))).filter((inv) => new Date(inv.expiresAt) > now);
46
47
  };
47
48
  /**
@@ -115,7 +116,10 @@ const createInvitationInDb = (db) => async (data) => {
115
116
  inviterId: orgSettings.serviceAccountUserId,
116
117
  authMethod: orgSettings.preferredAuthMethod
117
118
  });
118
- return { id: inviteId };
119
+ return {
120
+ id: inviteId,
121
+ authMethod: orgSettings.preferredAuthMethod
122
+ };
119
123
  };
120
124
 
121
125
  //#endregion
@@ -6,21 +6,21 @@ 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
+ id: string;
9
10
  tenantId: string;
10
11
  projectId: string;
11
- subAgentId: string;
12
- id: string;
12
+ agentId: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  metadata: TaskMetadataConfig | null;
16
- agentId: string;
17
- status: string;
18
- contextId: string;
19
16
  ref: {
20
17
  type: "commit" | "tag" | "branch";
21
18
  name: string;
22
19
  hash: string;
23
20
  } | null;
21
+ status: string;
22
+ subAgentId: string;
23
+ contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;