@inkeep/agents-core 0.53.9 → 0.53.11

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.
@@ -1248,25 +1248,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1248
1248
  ac: better_auth_plugins20.AccessControl;
1249
1249
  roles: {
1250
1250
  member: {
1251
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1252
- actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1251
+ authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1252
+ actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1253
1253
  connector: "OR" | "AND";
1254
1254
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1255
- statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1255
+ statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1256
1256
  };
1257
1257
  admin: {
1258
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1259
- actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1258
+ authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1259
+ actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1260
1260
  connector: "OR" | "AND";
1261
1261
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1262
- statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1262
+ statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1263
1263
  };
1264
1264
  owner: {
1265
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1266
- actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1265
+ authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1266
+ actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1267
1267
  connector: "OR" | "AND";
1268
1268
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1269
- statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1269
+ statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1270
1270
  };
1271
1271
  };
1272
1272
  creatorRole: "admin";
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
12
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
19
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
26
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -20,6 +20,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
20
20
  id: z.ZodString;
21
21
  name: z.ZodString;
22
22
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
23
24
  models: z.ZodOptional<z.ZodObject<{
24
25
  base: z.ZodOptional<z.ZodObject<{
25
26
  model: z.ZodOptional<z.ZodString>;
@@ -36,7 +37,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
36
37
  }, z.core.$strip>>;
37
38
  createdAt: z.ZodOptional<z.ZodString>;
38
39
  updatedAt: z.ZodOptional<z.ZodString>;
39
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
40
40
  type: z.ZodLiteral<"internal">;
41
41
  canUse: z.ZodArray<z.ZodObject<{
42
42
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -16,6 +16,7 @@ declare const SPAN_NAMES: {
16
16
  readonly TOOL_APPROVAL_DENIED: "tool.approval_denied";
17
17
  readonly COMPRESSOR_SAFE_COMPRESS: "compressor.safe_compress";
18
18
  readonly AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached";
19
+ readonly STREAM_FORCE_CLEANUP: "stream.force_cleanup";
19
20
  };
20
21
  declare const AI_OPERATIONS: {
21
22
  readonly GENERATE_TEXT: "ai.generateText.doGenerate";
@@ -113,6 +114,11 @@ declare const SPAN_KEYS: {
113
114
  readonly AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached";
114
115
  readonly AGENT_STEPS_COMPLETED: "agent.steps_completed";
115
116
  readonly AGENT_MAX_STEPS: "agent.max_steps";
117
+ readonly STREAM_CLEANUP_REASON: "stream.cleanup.reason";
118
+ readonly STREAM_MAX_LIFETIME_MS: "stream.max_lifetime_ms";
119
+ readonly STREAM_BUFFER_SIZE_BYTES: "stream.buffer_size_bytes";
120
+ readonly STREAM_SENT_ITEMS_COUNT: "stream.sent_items_count";
121
+ readonly STREAM_COMPLETED_ITEMS_COUNT: "stream.completed_items_count";
116
122
  };
117
123
  declare const UNKNOWN_VALUE: "unknown";
118
124
  /** Activity Types */
@@ -130,6 +136,7 @@ declare const ACTIVITY_TYPES: {
130
136
  readonly TOOL_APPROVAL_DENIED: "tool_approval_denied";
131
137
  readonly COMPRESSION: "compression";
132
138
  readonly MAX_STEPS_REACHED: "max_steps_reached";
139
+ readonly STREAM_LIFETIME_EXCEEDED: "stream_lifetime_exceeded";
133
140
  };
134
141
  /** Activity Status Values */
135
142
  declare const ACTIVITY_STATUS: {
@@ -15,7 +15,8 @@ const SPAN_NAMES = {
15
15
  TOOL_APPROVAL_APPROVED: "tool.approval_approved",
16
16
  TOOL_APPROVAL_DENIED: "tool.approval_denied",
17
17
  COMPRESSOR_SAFE_COMPRESS: "compressor.safe_compress",
18
- AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached"
18
+ AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached",
19
+ STREAM_FORCE_CLEANUP: "stream.force_cleanup"
19
20
  };
20
21
  const AI_OPERATIONS = {
21
22
  GENERATE_TEXT: "ai.generateText.doGenerate",
@@ -112,7 +113,12 @@ const SPAN_KEYS = {
112
113
  CONTEXT_BREAKDOWN_TOTAL: "context.breakdown.total_tokens",
113
114
  AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached",
114
115
  AGENT_STEPS_COMPLETED: "agent.steps_completed",
115
- AGENT_MAX_STEPS: "agent.max_steps"
116
+ AGENT_MAX_STEPS: "agent.max_steps",
117
+ STREAM_CLEANUP_REASON: "stream.cleanup.reason",
118
+ STREAM_MAX_LIFETIME_MS: "stream.max_lifetime_ms",
119
+ STREAM_BUFFER_SIZE_BYTES: "stream.buffer_size_bytes",
120
+ STREAM_SENT_ITEMS_COUNT: "stream.sent_items_count",
121
+ STREAM_COMPLETED_ITEMS_COUNT: "stream.completed_items_count"
116
122
  };
117
123
  const UNKNOWN_VALUE = "unknown";
118
124
  /** Activity Types */
@@ -129,7 +135,8 @@ const ACTIVITY_TYPES = {
129
135
  TOOL_APPROVAL_APPROVED: "tool_approval_approved",
130
136
  TOOL_APPROVAL_DENIED: "tool_approval_denied",
131
137
  COMPRESSION: "compression",
132
- MAX_STEPS_REACHED: "max_steps_reached"
138
+ MAX_STEPS_REACHED: "max_steps_reached",
139
+ STREAM_LIFETIME_EXCEEDED: "stream_lifetime_exceeded"
133
140
  };
134
141
  /** Activity Status Values */
135
142
  const ACTIVITY_STATUS = {
@@ -106,6 +106,7 @@ declare const QUERY_EXPRESSIONS: {
106
106
  readonly TOOL_APPROVAL_DENIED: "toolApprovalDenied";
107
107
  readonly COMPRESSION: "compression";
108
108
  readonly MAX_STEPS_REACHED: "maxStepsReached";
109
+ readonly STREAM_LIFETIME_EXCEEDED: "streamLifetimeExceeded";
109
110
  };
110
111
  /** Query Reduce Operations */
111
112
  declare const REDUCE_OPERATIONS: {
@@ -105,7 +105,8 @@ const QUERY_EXPRESSIONS = {
105
105
  TOOL_APPROVAL_APPROVED: "toolApprovalApproved",
106
106
  TOOL_APPROVAL_DENIED: "toolApprovalDenied",
107
107
  COMPRESSION: "compression",
108
- MAX_STEPS_REACHED: "maxStepsReached"
108
+ MAX_STEPS_REACHED: "maxStepsReached",
109
+ STREAM_LIFETIME_EXCEEDED: "streamLifetimeExceeded"
109
110
  };
110
111
  /** Query Reduce Operations */
111
112
  const REDUCE_OPERATIONS = {
@@ -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: "header" | "query" | "body";
43
+ source: "query" | "header" | "body";
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: "header" | "literal" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -25,12 +25,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
25
25
  agentId: string | null;
26
26
  userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
+ activeSubAgentId: string;
28
29
  ref: {
29
30
  type: "commit" | "tag" | "branch";
30
31
  name: string;
31
32
  hash: string;
32
33
  } | null;
33
- activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
36
36
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -94,12 +94,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
94
94
  agentId: string | null;
95
95
  userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
+ activeSubAgentId: string;
97
98
  ref: {
98
99
  type: "commit" | "tag" | "branch";
99
100
  name: string;
100
101
  hash: string;
101
102
  } | null;
102
- activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
105
105
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
@@ -130,12 +130,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  agentId: string | null;
131
131
  userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
+ activeSubAgentId: string;
133
134
  ref: {
134
135
  type: "commit" | "tag" | "branch";
135
136
  name: string;
136
137
  hash: string;
137
138
  } | null;
138
- activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
141
141
  /**
@@ -162,12 +162,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
162
162
  agentId: string | null;
163
163
  userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
+ activeSubAgentId: string;
165
166
  ref: {
166
167
  type: "commit" | "tag" | "branch";
167
168
  name: string;
168
169
  hash: string;
169
170
  } | null;
170
- activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
173
173
  /**
@@ -17,19 +17,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
17
17
  projectId: string;
18
18
  content: MessageContent;
19
19
  metadata: MessageMetadata | null;
20
+ conversationId: string;
21
+ role: string;
20
22
  fromSubAgentId: string | null;
21
23
  toSubAgentId: string | null;
22
24
  fromExternalAgentId: string | null;
23
25
  toExternalAgentId: string | null;
24
- taskId: string | null;
25
- a2aTaskId: string | null;
26
- role: string;
27
- conversationId: string;
28
26
  fromTeamAgentId: string | null;
29
27
  toTeamAgentId: string | null;
30
28
  visibility: string;
31
29
  messageType: string;
30
+ taskId: string | null;
32
31
  parentMessageId: string | null;
32
+ a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -148,19 +148,19 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
148
148
  projectId: string;
149
149
  content: MessageContent;
150
150
  metadata: MessageMetadata | null;
151
+ conversationId: string;
152
+ role: string;
151
153
  fromSubAgentId: string | null;
152
154
  toSubAgentId: string | null;
153
155
  fromExternalAgentId: string | null;
154
156
  toExternalAgentId: string | null;
155
- taskId: string | null;
156
- a2aTaskId: string | null;
157
- role: string;
158
- conversationId: string;
159
157
  fromTeamAgentId: string | null;
160
158
  toTeamAgentId: string | null;
161
159
  visibility: string;
162
160
  messageType: string;
161
+ taskId: string | null;
163
162
  parentMessageId: string | null;
163
+ a2aTaskId: string | null;
164
164
  a2aSessionId: string | null;
165
165
  }>;
166
166
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -201,19 +201,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
201
201
  projectId: string;
202
202
  content: MessageContent;
203
203
  metadata: MessageMetadata | null;
204
+ conversationId: string;
205
+ role: string;
204
206
  fromSubAgentId: string | null;
205
207
  toSubAgentId: string | null;
206
208
  fromExternalAgentId: string | null;
207
209
  toExternalAgentId: string | null;
208
- taskId: string | null;
209
- a2aTaskId: string | null;
210
- role: string;
211
- conversationId: string;
212
210
  fromTeamAgentId: string | null;
213
211
  toTeamAgentId: string | null;
214
212
  visibility: string;
215
213
  messageType: string;
214
+ taskId: string | null;
216
215
  parentMessageId: string | null;
216
+ a2aTaskId: string | null;
217
217
  a2aSessionId: string | null;
218
218
  }>;
219
219
  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" | "failed" | "running" | "completed" | "cancelled";
37
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
177
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
211
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;