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

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.
@@ -880,25 +880,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
880
880
  ac: better_auth_plugins0.AccessControl;
881
881
  roles: {
882
882
  member: {
883
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
884
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
883
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
884
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
885
885
  connector: "OR" | "AND";
886
886
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
887
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
887
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
888
888
  };
889
889
  admin: {
890
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
891
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
890
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
891
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
892
892
  connector: "OR" | "AND";
893
893
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
894
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
894
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
895
895
  };
896
896
  owner: {
897
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
898
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
897
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
898
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
899
899
  connector: "OR" | "AND";
900
900
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
901
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
901
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
902
902
  };
903
903
  };
904
904
  creatorRole: "admin";
@@ -1203,25 +1203,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1203
1203
  ac: better_auth_plugins0.AccessControl;
1204
1204
  roles: {
1205
1205
  member: {
1206
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1207
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1206
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1207
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1208
1208
  connector: "OR" | "AND";
1209
1209
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1210
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
1210
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1211
1211
  };
1212
1212
  admin: {
1213
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1214
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1213
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1214
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1215
1215
  connector: "OR" | "AND";
1216
1216
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1217
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
1217
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1218
1218
  };
1219
1219
  owner: {
1220
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1221
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1220
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1221
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1222
1222
  connector: "OR" | "AND";
1223
1223
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1224
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
1224
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1225
1225
  };
1226
1226
  };
1227
1227
  creatorRole: "admin";
@@ -16,7 +16,7 @@ let client = null;
16
16
  function getSpiceClient() {
17
17
  if (!client) {
18
18
  const config = getSpiceDbConfig();
19
- client = v1.NewClient(config.token, config.endpoint, config.tlsEnabled ? v1.ClientSecurity.SECURE : v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
19
+ client = v1.NewClient(config.token, config.endpoint, config.tlsEnabled ? v1.ClientSecurity.SECURE : v1.ClientSecurity.INSECURE_PLAINTEXT_CREDENTIALS);
20
20
  }
21
21
  return client;
22
22
  }
@@ -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 "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
9
- actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
8
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
9
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
12
- statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
12
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
16
- actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
15
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
16
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
19
- statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
19
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
23
- actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
22
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
23
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
26
- statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
26
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -8,7 +8,7 @@ async function writeSpiceDbSchema(options) {
8
8
  const config = getSpiceDbConfig();
9
9
  const { endpoint = config.endpoint, token = config.token, schemaPath = resolve(import.meta.dirname, "../../spicedb/schema.zed"), maxRetries = 30 } = options ?? {};
10
10
  const schema = readFileSync(schemaPath, "utf-8");
11
- const client = v1.NewClient(token, endpoint, config.tlsEnabled ? v1.ClientSecurity.SECURE : v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
11
+ const client = v1.NewClient(token, endpoint, config.tlsEnabled ? v1.ClientSecurity.SECURE : v1.ClientSecurity.INSECURE_PLAINTEXT_CREDENTIALS);
12
12
  let lastError;
13
13
  for (let attempt = 1; attempt <= maxRetries; attempt++) try {
14
14
  await client.promises.writeSchema(v1.WriteSchemaRequest.create({ schema }));
@@ -17,11 +17,10 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
17
17
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
18
18
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
19
19
  id: z.ZodString;
20
+ name: z.ZodString;
20
21
  createdAt: z.ZodOptional<z.ZodString>;
21
22
  updatedAt: z.ZodOptional<z.ZodString>;
22
- name: z.ZodString;
23
23
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
25
24
  models: z.ZodOptional<z.ZodObject<{
26
25
  base: z.ZodOptional<z.ZodObject<{
27
26
  model: z.ZodOptional<z.ZodString>;
@@ -45,6 +44,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
45
44
  }, {
46
45
  stepCountIs?: number | undefined;
47
46
  }>>>>;
47
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
48
48
  type: z.ZodLiteral<"internal">;
49
49
  canUse: z.ZodArray<z.ZodObject<{
50
50
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -9,14 +9,14 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
11
  id: string;
12
+ name: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
- name: string;
15
15
  description: string | null;
16
- defaultSubAgentId: string | null;
17
- tenantId: string;
18
16
  projectId: string;
19
- prompt: string | null;
17
+ tenantId: string;
18
+ defaultSubAgentId: string | null;
19
+ contextConfigId: string | null;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -31,10 +31,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
31
  providerOptions?: Record<string, any> | undefined;
32
32
  } | undefined;
33
33
  } | null;
34
- stopWhen: {
35
- transferCountIs?: number | undefined;
36
- } | null;
37
- contextConfigId: string | null;
34
+ prompt: string | null;
38
35
  statusUpdates: {
39
36
  enabled?: boolean | undefined;
40
37
  numEvents?: number | undefined;
@@ -50,19 +47,22 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
50
47
  } | undefined;
51
48
  }[] | undefined;
52
49
  } | null;
50
+ stopWhen: {
51
+ transferCountIs?: number | undefined;
52
+ } | null;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
+ name: string;
58
59
  createdAt: string;
59
60
  updatedAt: string;
60
- name: string;
61
61
  description: string | null;
62
- defaultSubAgentId: string | null;
63
- tenantId: string;
64
62
  projectId: string;
65
- prompt: string | null;
63
+ tenantId: string;
64
+ defaultSubAgentId: string | null;
65
+ contextConfigId: string | null;
66
66
  models: {
67
67
  base?: {
68
68
  model?: string | undefined;
@@ -77,10 +77,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
77
77
  providerOptions?: Record<string, any> | undefined;
78
78
  } | undefined;
79
79
  } | null;
80
- stopWhen: {
81
- transferCountIs?: number | undefined;
82
- } | null;
83
- contextConfigId: string | null;
80
+ prompt: string | null;
84
81
  statusUpdates: {
85
82
  enabled?: boolean | undefined;
86
83
  numEvents?: number | undefined;
@@ -96,17 +93,18 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
96
93
  } | undefined;
97
94
  }[] | undefined;
98
95
  } | null;
96
+ stopWhen: {
97
+ transferCountIs?: number | undefined;
98
+ } | null;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
+ name: string;
101
102
  createdAt: string;
102
103
  updatedAt: string;
103
- name: string;
104
104
  description: string | null;
105
- tenantId: string;
106
- projectId: string;
107
105
  agentId: string;
108
- prompt: string | null;
109
- conversationHistoryConfig: ConversationHistoryConfig | null;
106
+ projectId: string;
107
+ tenantId: string;
110
108
  models: {
111
109
  base?: {
112
110
  model?: string | undefined;
@@ -121,23 +119,25 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
121
119
  providerOptions?: Record<string, any> | undefined;
122
120
  } | undefined;
123
121
  } | null;
122
+ prompt: string | null;
124
123
  stopWhen: {
125
124
  stepCountIs?: number | undefined;
126
125
  } | null;
126
+ conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
132
  id: string;
133
+ name: string;
133
134
  createdAt: string;
134
135
  updatedAt: string;
135
- name: string;
136
136
  description: string | null;
137
- defaultSubAgentId: string | null;
138
- tenantId: string;
139
137
  projectId: string;
140
- prompt: string | null;
138
+ tenantId: string;
139
+ defaultSubAgentId: string | null;
140
+ contextConfigId: string | null;
141
141
  models: {
142
142
  base?: {
143
143
  model?: string | undefined;
@@ -152,10 +152,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
152
  providerOptions?: Record<string, any> | undefined;
153
153
  } | undefined;
154
154
  } | null;
155
- stopWhen: {
156
- transferCountIs?: number | undefined;
157
- } | null;
158
- contextConfigId: string | null;
155
+ prompt: string | null;
159
156
  statusUpdates: {
160
157
  enabled?: boolean | undefined;
161
158
  numEvents?: number | undefined;
@@ -171,6 +168,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
171
168
  } | undefined;
172
169
  }[] | undefined;
173
170
  } | null;
171
+ stopWhen: {
172
+ transferCountIs?: number | undefined;
173
+ } | null;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -246,14 +246,14 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
248
  id: string;
249
+ name: string;
249
250
  createdAt: string;
250
251
  updatedAt: string;
251
- name: string;
252
252
  description: string | null;
253
- defaultSubAgentId: string | null;
254
- tenantId: string;
255
253
  projectId: string;
256
- prompt: string | null;
254
+ tenantId: string;
255
+ defaultSubAgentId: string | null;
256
+ contextConfigId: string | null;
257
257
  models: {
258
258
  base?: {
259
259
  model?: string | undefined;
@@ -268,10 +268,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
268
268
  providerOptions?: Record<string, any> | undefined;
269
269
  } | undefined;
270
270
  } | null;
271
- stopWhen: {
272
- transferCountIs?: number | undefined;
273
- } | null;
274
- contextConfigId: string | null;
271
+ prompt: string | null;
275
272
  statusUpdates: {
276
273
  enabled?: boolean | undefined;
277
274
  numEvents?: number | undefined;
@@ -287,6 +284,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
287
284
  } | undefined;
288
285
  }[] | undefined;
289
286
  } | null;
287
+ stopWhen: {
288
+ transferCountIs?: number | undefined;
289
+ } | null;
290
290
  }>;
291
291
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
292
292
  scopes: AgentScopeConfig;
@@ -8,12 +8,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  id: string;
11
+ name: string;
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
- name: string;
14
14
  description: string | null;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -50,12 +50,12 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
+ name: string;
53
54
  createdAt: string;
54
55
  updatedAt: string;
55
- name: string;
56
56
  description: string | null;
57
- tenantId: string;
58
57
  projectId: string;
58
+ tenantId: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -106,9 +106,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
106
106
  }) => Promise<{
107
107
  id: string;
108
108
  createdAt: string;
109
- tenantId: string;
110
- projectId: string;
111
109
  agentId: string;
110
+ projectId: string;
111
+ tenantId: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -149,9 +149,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
149
149
  }) => Promise<{
150
150
  id: string;
151
151
  createdAt: string;
152
- tenantId: string;
153
- projectId: string;
154
152
  agentId: string;
153
+ projectId: string;
154
+ tenantId: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- tenantId: string;
15
- projectId: string;
16
- agentId: string;
17
14
  headersSchema: unknown;
18
15
  contextVariables: Record<string, ContextFetchDefinition> | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -23,11 +23,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
23
23
  id: string;
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
- tenantId: string;
27
- projectId: string;
28
- agentId: string;
29
26
  headersSchema: unknown;
30
27
  contextVariables: Record<string, ContextFetchDefinition> | null;
28
+ agentId: string;
29
+ projectId: string;
30
+ tenantId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -45,11 +45,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
45
45
  id: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  headersSchema: unknown;
52
49
  contextVariables: Record<string, ContextFetchDefinition> | null;
50
+ agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -85,11 +85,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
85
85
  id: string;
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
- tenantId: string;
89
- projectId: string;
90
- agentId: string;
91
88
  headersSchema: unknown;
92
89
  contextVariables: Record<string, ContextFetchDefinition> | null;
90
+ agentId: string;
91
+ projectId: string;
92
+ tenantId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -66,11 +66,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  }) => Promise<{
67
67
  id: string;
68
68
  createdAt: string;
69
- tenantId: string;
70
- projectId: string;
71
69
  agentId: string;
72
- subAgentId: string;
70
+ projectId: string;
71
+ tenantId: string;
73
72
  dataComponentId: string;
73
+ subAgentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -108,11 +108,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  }) => Promise<{
109
109
  id: string;
110
110
  createdAt: string;
111
- tenantId: string;
112
- projectId: string;
113
111
  agentId: string;
114
- subAgentId: string;
112
+ projectId: string;
113
+ tenantId: string;
115
114
  dataComponentId: string;
115
+ subAgentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
+ name: string;
57
58
  createdAt: string;
58
59
  updatedAt: string;
59
- name: string;
60
60
  description: string | null;
61
- tenantId: string;
62
- projectId: string;
63
61
  agentId: string;
62
+ projectId: string;
63
+ tenantId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
+ name: string;
99
100
  createdAt: string;
100
101
  updatedAt: string;
101
- name: string;
102
102
  description: string | null;
103
- tenantId: string;
104
- projectId: string;
105
103
  agentId: string;
104
+ projectId: string;
105
+ tenantId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -164,9 +164,9 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  id: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- tenantId: string;
168
- projectId: string;
169
167
  agentId: string;
168
+ projectId: string;
169
+ tenantId: string;
170
170
  toolPolicies: Record<string, {
171
171
  needsApproval?: boolean;
172
172
  }> | null;
@@ -229,9 +229,9 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- tenantId: string;
233
- projectId: string;
234
232
  agentId: string;
233
+ projectId: string;
234
+ tenantId: string;
235
235
  toolPolicies: Record<string, {
236
236
  needsApproval?: boolean;
237
237
  }> | null;
@@ -8,13 +8,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- headers: Record<string, string> | null;
12
11
  id: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ headers: Record<string, string> | null;
18
18
  externalAgentId: string;
19
19
  subAgentId: string;
20
20
  } | undefined>;
@@ -43,26 +43,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- headers: Record<string, string> | null;
47
46
  id: string;
48
47
  createdAt: string;
49
48
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ headers: Record<string, string> | null;
53
53
  externalAgentId: string;
54
54
  subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- headers: Record<string, string> | null;
60
59
  id: string;
61
60
  createdAt: string;
62
61
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
62
  agentId: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ headers: Record<string, string> | null;
66
66
  externalAgentId: string;
67
67
  subAgentId: string;
68
68
  }[]>;
@@ -179,13 +179,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- headers: Record<string, string> | null;
183
182
  id: string;
184
183
  createdAt: string;
185
184
  updatedAt: string;
186
- tenantId: string;
187
- projectId: string;
188
185
  agentId: string;
186
+ projectId: string;
187
+ tenantId: string;
188
+ headers: Record<string, string> | null;
189
189
  externalAgentId: string;
190
190
  subAgentId: string;
191
191
  }>;
@@ -196,13 +196,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- headers: Record<string, string> | null;
200
199
  id: string;
201
200
  createdAt: string;
202
201
  updatedAt: string;
203
- tenantId: string;
204
- projectId: string;
205
202
  agentId: string;
203
+ projectId: string;
204
+ tenantId: string;
205
+ headers: Record<string, string> | null;
206
206
  externalAgentId: string;
207
207
  subAgentId: string;
208
208
  } | undefined>;
@@ -217,13 +217,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- headers: Record<string, string> | null;
221
220
  id: string;
222
221
  createdAt: string;
223
222
  updatedAt: string;
224
- tenantId: string;
225
- projectId: string;
226
223
  agentId: string;
224
+ projectId: string;
225
+ tenantId: string;
226
+ headers: Record<string, string> | null;
227
227
  externalAgentId: string;
228
228
  subAgentId: string;
229
229
  }>;