@inkeep/agents-core 0.48.0 → 0.48.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.
@@ -1,9 +1,9 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  import * as drizzle_orm_pg_core81 from "drizzle-orm/pg-core";
3
- import * as drizzle_zod3 from "drizzle-zod";
3
+ import * as drizzle_zod0 from "drizzle-zod";
4
4
 
5
5
  //#region src/auth/auth-validation-schemas.d.ts
6
- declare const UserSelectSchema: drizzle_zod3.BuildSchema<"select", {
6
+ declare const UserSelectSchema: drizzle_zod0.BuildSchema<"select", {
7
7
  id: drizzle_orm_pg_core81.PgColumn<{
8
8
  name: "id";
9
9
  tableName: "user";
@@ -124,7 +124,7 @@ declare const UserSelectSchema: drizzle_zod3.BuildSchema<"select", {
124
124
  generated: undefined;
125
125
  }, {}, {}>;
126
126
  }, undefined, undefined>;
127
- declare const UserInsertSchema: drizzle_zod3.BuildSchema<"insert", {
127
+ declare const UserInsertSchema: drizzle_zod0.BuildSchema<"insert", {
128
128
  id: drizzle_orm_pg_core81.PgColumn<{
129
129
  name: "id";
130
130
  tableName: "user";
@@ -245,7 +245,7 @@ declare const UserInsertSchema: drizzle_zod3.BuildSchema<"insert", {
245
245
  generated: undefined;
246
246
  }, {}, {}>;
247
247
  }, undefined, undefined>;
248
- declare const SessionSelectSchema: drizzle_zod3.BuildSchema<"select", {
248
+ declare const SessionSelectSchema: drizzle_zod0.BuildSchema<"select", {
249
249
  id: drizzle_orm_pg_core81.PgColumn<{
250
250
  name: "id";
251
251
  tableName: "session";
@@ -400,7 +400,7 @@ declare const SessionSelectSchema: drizzle_zod3.BuildSchema<"select", {
400
400
  generated: undefined;
401
401
  }, {}, {}>;
402
402
  }, undefined, undefined>;
403
- declare const SessionInsertSchema: drizzle_zod3.BuildSchema<"insert", {
403
+ declare const SessionInsertSchema: drizzle_zod0.BuildSchema<"insert", {
404
404
  id: drizzle_orm_pg_core81.PgColumn<{
405
405
  name: "id";
406
406
  tableName: "session";
@@ -555,7 +555,7 @@ declare const SessionInsertSchema: drizzle_zod3.BuildSchema<"insert", {
555
555
  generated: undefined;
556
556
  }, {}, {}>;
557
557
  }, undefined, undefined>;
558
- declare const AccountSelectSchema: drizzle_zod3.BuildSchema<"select", {
558
+ declare const AccountSelectSchema: drizzle_zod0.BuildSchema<"select", {
559
559
  id: drizzle_orm_pg_core81.PgColumn<{
560
560
  name: "id";
561
561
  tableName: "account";
@@ -778,7 +778,7 @@ declare const AccountSelectSchema: drizzle_zod3.BuildSchema<"select", {
778
778
  generated: undefined;
779
779
  }, {}, {}>;
780
780
  }, undefined, undefined>;
781
- declare const AccountInsertSchema: drizzle_zod3.BuildSchema<"insert", {
781
+ declare const AccountInsertSchema: drizzle_zod0.BuildSchema<"insert", {
782
782
  id: drizzle_orm_pg_core81.PgColumn<{
783
783
  name: "id";
784
784
  tableName: "account";
@@ -1001,7 +1001,7 @@ declare const AccountInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1001
1001
  generated: undefined;
1002
1002
  }, {}, {}>;
1003
1003
  }, undefined, undefined>;
1004
- declare const OrganizationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1004
+ declare const OrganizationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1005
1005
  id: drizzle_orm_pg_core81.PgColumn<{
1006
1006
  name: "id";
1007
1007
  tableName: "organization";
@@ -1105,7 +1105,7 @@ declare const OrganizationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1105
1105
  generated: undefined;
1106
1106
  }, {}, {}>;
1107
1107
  }, undefined, undefined>;
1108
- declare const OrganizationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1108
+ declare const OrganizationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1109
1109
  id: drizzle_orm_pg_core81.PgColumn<{
1110
1110
  name: "id";
1111
1111
  tableName: "organization";
@@ -1209,7 +1209,7 @@ declare const OrganizationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1209
1209
  generated: undefined;
1210
1210
  }, {}, {}>;
1211
1211
  }, undefined, undefined>;
1212
- declare const MemberSelectSchema: drizzle_zod3.BuildSchema<"select", {
1212
+ declare const MemberSelectSchema: drizzle_zod0.BuildSchema<"select", {
1213
1213
  id: drizzle_orm_pg_core81.PgColumn<{
1214
1214
  name: "id";
1215
1215
  tableName: "member";
@@ -1296,7 +1296,7 @@ declare const MemberSelectSchema: drizzle_zod3.BuildSchema<"select", {
1296
1296
  generated: undefined;
1297
1297
  }, {}, {}>;
1298
1298
  }, undefined, undefined>;
1299
- declare const MemberInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1299
+ declare const MemberInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1300
1300
  id: drizzle_orm_pg_core81.PgColumn<{
1301
1301
  name: "id";
1302
1302
  tableName: "member";
@@ -1383,7 +1383,7 @@ declare const MemberInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1383
1383
  generated: undefined;
1384
1384
  }, {}, {}>;
1385
1385
  }, undefined, undefined>;
1386
- declare const InvitationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1386
+ declare const InvitationSelectSchema: drizzle_zod0.BuildSchema<"select", {
1387
1387
  id: drizzle_orm_pg_core81.PgColumn<{
1388
1388
  name: "id";
1389
1389
  tableName: "invitation";
@@ -1538,7 +1538,7 @@ declare const InvitationSelectSchema: drizzle_zod3.BuildSchema<"select", {
1538
1538
  generated: undefined;
1539
1539
  }, {}, {}>;
1540
1540
  }, undefined, undefined>;
1541
- declare const InvitationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1541
+ declare const InvitationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1542
1542
  id: drizzle_orm_pg_core81.PgColumn<{
1543
1543
  name: "id";
1544
1544
  tableName: "invitation";
@@ -1693,7 +1693,7 @@ declare const InvitationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1693
1693
  generated: undefined;
1694
1694
  }, {}, {}>;
1695
1695
  }, undefined, undefined>;
1696
- declare const DeviceCodeSelectSchema: drizzle_zod3.BuildSchema<"select", {
1696
+ declare const DeviceCodeSelectSchema: drizzle_zod0.BuildSchema<"select", {
1697
1697
  id: drizzle_orm_pg_core81.PgColumn<{
1698
1698
  name: "id";
1699
1699
  tableName: "device_code";
@@ -1865,7 +1865,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod3.BuildSchema<"select", {
1865
1865
  generated: undefined;
1866
1866
  }, {}, {}>;
1867
1867
  }, undefined, undefined>;
1868
- declare const DeviceCodeInsertSchema: drizzle_zod3.BuildSchema<"insert", {
1868
+ declare const DeviceCodeInsertSchema: drizzle_zod0.BuildSchema<"insert", {
1869
1869
  id: drizzle_orm_pg_core81.PgColumn<{
1870
1870
  name: "id";
1871
1871
  tableName: "device_code";
@@ -2037,7 +2037,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod3.BuildSchema<"insert", {
2037
2037
  generated: undefined;
2038
2038
  }, {}, {}>;
2039
2039
  }, undefined, undefined>;
2040
- declare const VerificationSelectSchema: drizzle_zod3.BuildSchema<"select", {
2040
+ declare const VerificationSelectSchema: drizzle_zod0.BuildSchema<"select", {
2041
2041
  id: drizzle_orm_pg_core81.PgColumn<{
2042
2042
  name: "id";
2043
2043
  tableName: "verification";
@@ -2141,7 +2141,7 @@ declare const VerificationSelectSchema: drizzle_zod3.BuildSchema<"select", {
2141
2141
  generated: undefined;
2142
2142
  }, {}, {}>;
2143
2143
  }, undefined, undefined>;
2144
- declare const VerificationInsertSchema: drizzle_zod3.BuildSchema<"insert", {
2144
+ declare const VerificationInsertSchema: drizzle_zod0.BuildSchema<"insert", {
2145
2145
  id: drizzle_orm_pg_core81.PgColumn<{
2146
2146
  name: "id";
2147
2147
  tableName: "verification";
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
69
69
  projectId: string;
70
70
  agentId: string;
71
71
  createdAt: string;
72
- dataComponentId: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
111
111
  projectId: string;
112
112
  agentId: string;
113
113
  createdAt: string;
114
- dataComponentId: string;
115
114
  subAgentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -14,9 +14,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
14
14
  agentId: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
- relationType: string | null;
18
17
  sourceSubAgentId: string;
19
18
  targetSubAgentId: string | null;
19
+ relationType: string | null;
20
20
  } | undefined>;
21
21
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -49,9 +49,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
49
49
  agentId: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
- relationType: string | null;
53
52
  sourceSubAgentId: string;
54
53
  targetSubAgentId: string | null;
54
+ relationType: string | null;
55
55
  }[]>;
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -62,9 +62,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
62
62
  agentId: string;
63
63
  createdAt: string;
64
64
  updatedAt: string;
65
- relationType: string | null;
66
65
  sourceSubAgentId: string;
67
66
  targetSubAgentId: string | null;
67
+ relationType: string | null;
68
68
  }[]>;
69
69
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -131,9 +131,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
131
131
  agentId: string;
132
132
  createdAt: string;
133
133
  updatedAt: string;
134
- relationType: string | null;
135
134
  sourceSubAgentId: string;
136
135
  targetSubAgentId: string | null;
136
+ relationType: string | null;
137
137
  }>;
138
138
  /**
139
139
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -150,9 +150,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
150
150
  agentId: string;
151
151
  createdAt: string;
152
152
  updatedAt: string;
153
- relationType: string | null;
154
153
  sourceSubAgentId: string;
155
154
  targetSubAgentId: string | null;
155
+ relationType: string | null;
156
156
  } | undefined>;
157
157
  /**
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -164,9 +164,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
164
164
  agentId: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- relationType: string | null;
168
167
  sourceSubAgentId: string;
169
168
  targetSubAgentId: string | null;
169
+ relationType: string | null;
170
170
  }>;
171
171
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
172
172
  scopes: AgentScopeConfig;
@@ -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;
@@ -23,12 +23,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
23
23
  createdAt: string;
24
24
  updatedAt: string;
25
25
  metadata: ConversationMetadata | null;
26
- userId: string | null;
27
26
  ref: {
28
27
  type: "commit" | "tag" | "branch";
29
28
  name: string;
30
29
  hash: string;
31
30
  } | null;
31
+ userId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -92,12 +92,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
92
92
  createdAt: string;
93
93
  updatedAt: string;
94
94
  metadata: ConversationMetadata | null;
95
- userId: string | null;
96
95
  ref: {
97
96
  type: "commit" | "tag" | "branch";
98
97
  name: string;
99
98
  hash: string;
100
99
  } | null;
100
+ userId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -128,12 +128,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
128
128
  createdAt: string;
129
129
  updatedAt: string;
130
130
  metadata: ConversationMetadata | null;
131
- userId: string | null;
132
131
  ref: {
133
132
  type: "commit" | "tag" | "branch";
134
133
  name: string;
135
134
  hash: string;
136
135
  } | null;
136
+ userId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -160,12 +160,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
160
160
  createdAt: string;
161
161
  updatedAt: string;
162
162
  metadata: ConversationMetadata | null;
163
- userId: string | null;
164
163
  ref: {
165
164
  type: "commit" | "tag" | "branch";
166
165
  name: string;
167
166
  hash: string;
168
167
  } | null;
168
+ userId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -17,18 +17,18 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
17
17
  metadata: MessageMetadata | null;
18
18
  content: MessageContent;
19
19
  role: string;
20
- conversationId: string;
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: {
@@ -148,18 +148,18 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
148
148
  metadata: MessageMetadata | null;
149
149
  content: MessageContent;
150
150
  role: string;
151
- conversationId: string;
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: {
@@ -201,18 +201,18 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
201
201
  metadata: MessageMetadata | null;
202
202
  content: MessageContent;
203
203
  role: string;
204
- conversationId: string;
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;
@@ -13,13 +13,13 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  metadata: TaskMetadataConfig | null;
16
- status: string;
17
- subAgentId: string;
18
16
  ref: {
19
17
  type: "commit" | "tag" | "branch";
20
18
  name: string;
21
19
  hash: string;
22
20
  } | null;
21
+ status: string;
22
+ subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {