@inkeep/agents-core 0.0.0-dev-20260205205159 → 0.0.0-dev-20260205231249

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.
@@ -870,25 +870,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
870
870
  ac: better_auth_plugins0.AccessControl;
871
871
  roles: {
872
872
  member: {
873
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
874
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
873
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
874
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
875
875
  connector: "OR" | "AND";
876
876
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
877
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
877
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
878
878
  };
879
879
  admin: {
880
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
881
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
880
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
881
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
882
882
  connector: "OR" | "AND";
883
883
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
884
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
884
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
885
885
  };
886
886
  owner: {
887
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
888
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
887
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
888
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
889
889
  connector: "OR" | "AND";
890
890
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
891
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
891
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
892
892
  };
893
893
  };
894
894
  creatorRole: "admin";
@@ -1180,25 +1180,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1180
1180
  ac: better_auth_plugins0.AccessControl;
1181
1181
  roles: {
1182
1182
  member: {
1183
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1184
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1183
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1184
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1185
1185
  connector: "OR" | "AND";
1186
1186
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1187
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1187
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1188
1188
  };
1189
1189
  admin: {
1190
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1191
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1190
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1191
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1192
1192
  connector: "OR" | "AND";
1193
1193
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1194
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1194
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1195
1195
  };
1196
1196
  owner: {
1197
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1198
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1197
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1198
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1199
1199
  connector: "OR" | "AND";
1200
1200
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1201
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1201
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1202
1202
  };
1203
1203
  };
1204
1204
  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 "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
9
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
9
+ actions: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "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" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
12
+ statements: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
16
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
16
+ actions: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "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" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
19
+ statements: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
23
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
23
+ actions: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "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" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
26
+ statements: better_auth_plugins69.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -143,9 +143,9 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
143
143
  }, z.core.$strip>>>;
144
144
  }, z.core.$strip>;
145
145
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
146
- id: z.ZodString;
147
- name: z.ZodString;
148
146
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ name: z.ZodString;
148
+ id: z.ZodString;
149
149
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
150
150
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
151
151
  component: string;
@@ -192,11 +192,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
192
192
  description: z.ZodOptional<z.ZodString>;
193
193
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
194
194
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
195
- id: z.ZodString;
195
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
196
  name: z.ZodString;
197
+ id: z.ZodString;
197
198
  createdAt: z.ZodOptional<z.ZodString>;
198
199
  updatedAt: z.ZodOptional<z.ZodString>;
199
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
200
  models: z.ZodOptional<z.ZodObject<{
201
201
  base: z.ZodOptional<z.ZodObject<{
202
202
  model: z.ZodOptional<z.ZodString>;
@@ -79,6 +79,8 @@ declare const QUERY_EXPRESSIONS: {
79
79
  readonly LAST_ACTIVITY: "lastActivity";
80
80
  readonly CONVERSATION_METADATA: "conversationMetadata";
81
81
  readonly FILTERED_CONVERSATIONS: "filteredConversations";
82
+ readonly PAGE_CONVERSATIONS: "pageConversations";
83
+ readonly TOTAL_CONVERSATIONS: "totalConversations";
82
84
  readonly TOOLS: "tools";
83
85
  readonly TRANSFERS: "transfers";
84
86
  readonly DELEGATIONS: "delegations";
@@ -79,6 +79,8 @@ const QUERY_EXPRESSIONS = {
79
79
  LAST_ACTIVITY: "lastActivity",
80
80
  CONVERSATION_METADATA: "conversationMetadata",
81
81
  FILTERED_CONVERSATIONS: "filteredConversations",
82
+ PAGE_CONVERSATIONS: "pageConversations",
83
+ TOTAL_CONVERSATIONS: "totalConversations",
82
84
  TOOLS: "tools",
83
85
  TRANSFERS: "transfers",
84
86
  DELEGATIONS: "delegations",
@@ -8,14 +8,14 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- id: string;
11
+ description: string | null;
12
12
  name: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
17
- description: string | null;
15
+ id: string;
18
16
  prompt: string | null;
17
+ createdAt: string;
18
+ updatedAt: string;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -54,14 +54,14 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- id: string;
57
+ description: string | null;
58
58
  name: string;
59
- createdAt: string;
60
- updatedAt: string;
61
59
  tenantId: string;
62
60
  projectId: string;
63
- description: string | null;
61
+ id: string;
64
62
  prompt: string | null;
63
+ createdAt: string;
64
+ updatedAt: string;
65
65
  models: {
66
66
  base?: {
67
67
  model?: string | undefined;
@@ -97,15 +97,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
97
  }[] | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
- id: string;
100
+ description: string | null;
101
101
  name: string;
102
- createdAt: string;
103
- updatedAt: string;
104
102
  tenantId: string;
105
103
  projectId: string;
106
- description: string | null;
104
+ id: string;
107
105
  prompt: string | null;
108
106
  agentId: string;
107
+ createdAt: string;
108
+ updatedAt: string;
109
109
  models: {
110
110
  base?: {
111
111
  model?: string | undefined;
@@ -129,14 +129,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- id: string;
132
+ description: string | null;
133
133
  name: string;
134
- createdAt: string;
135
- updatedAt: string;
136
134
  tenantId: string;
137
135
  projectId: string;
138
- description: string | null;
136
+ id: string;
139
137
  prompt: string | null;
138
+ createdAt: string;
139
+ updatedAt: string;
140
140
  models: {
141
141
  base?: {
142
142
  model?: string | undefined;
@@ -245,14 +245,14 @@ declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient,
245
245
  projectIds: string[];
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
- id: string;
248
+ description: string | null;
249
249
  name: string;
250
- createdAt: string;
251
- updatedAt: string;
252
250
  tenantId: string;
253
251
  projectId: string;
254
- description: string | null;
252
+ id: string;
255
253
  prompt: string | null;
254
+ createdAt: string;
255
+ updatedAt: string;
256
256
  models: {
257
257
  base?: {
258
258
  model?: string | undefined;
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- id: string;
10
+ description: string | null;
11
11
  name: string;
12
- createdAt: string;
13
- updatedAt: string;
14
12
  tenantId: string;
15
13
  projectId: string;
16
- description: string | null;
14
+ id: string;
15
+ createdAt: string;
16
+ updatedAt: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
49
49
  };
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
- id: string;
52
+ description: string | null;
53
53
  name: string;
54
- createdAt: string;
55
- updatedAt: string;
56
54
  tenantId: string;
57
55
  projectId: string;
58
- description: string | null;
56
+ id: string;
57
+ createdAt: string;
58
+ updatedAt: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -104,11 +104,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
104
104
  scopes: SubAgentScopeConfig;
105
105
  artifactComponentId: string;
106
106
  }) => Promise<{
107
- id: string;
108
- createdAt: string;
109
107
  tenantId: string;
110
108
  projectId: string;
109
+ id: string;
111
110
  agentId: string;
111
+ createdAt: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -147,11 +147,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
147
147
  scopes: SubAgentScopeConfig;
148
148
  artifactComponentId: string;
149
149
  }) => Promise<{
150
- id: string;
151
- createdAt: string;
152
150
  tenantId: string;
153
151
  projectId: string;
152
+ id: string;
154
153
  agentId: string;
154
+ createdAt: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
@@ -8,24 +8,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- id: string;
12
- createdAt: string;
13
- updatedAt: string;
14
11
  tenantId: string;
15
12
  projectId: string;
13
+ id: string;
16
14
  agentId: string;
15
+ createdAt: string;
16
+ updatedAt: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
- id: string;
24
- createdAt: string;
25
- updatedAt: string;
26
23
  tenantId: string;
27
24
  projectId: string;
25
+ id: string;
28
26
  agentId: string;
27
+ createdAt: string;
28
+ updatedAt: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -42,12 +42,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
42
42
  };
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
- id: string;
46
- createdAt: string;
47
- updatedAt: string;
48
45
  tenantId: string;
49
46
  projectId: string;
47
+ id: string;
50
48
  agentId: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -82,12 +82,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
82
82
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
- id: string;
86
- createdAt: string;
87
- updatedAt: string;
88
85
  tenantId: string;
89
86
  projectId: string;
87
+ id: string;
90
88
  agentId: string;
89
+ createdAt: string;
90
+ updatedAt: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
@@ -64,13 +64,13 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
- id: string;
68
- createdAt: string;
69
67
  tenantId: string;
70
68
  projectId: string;
69
+ id: string;
71
70
  agentId: string;
72
- dataComponentId: string;
71
+ createdAt: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -106,13 +106,13 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
- id: string;
110
- createdAt: string;
111
109
  tenantId: string;
112
110
  projectId: string;
111
+ id: string;
113
112
  agentId: string;
114
- dataComponentId: string;
113
+ createdAt: string;
115
114
  subAgentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- id: string;
56
+ description: string | null;
57
57
  name: string;
58
- createdAt: string;
59
- updatedAt: string;
60
58
  tenantId: string;
61
59
  projectId: string;
62
- description: string | null;
60
+ id: string;
63
61
  agentId: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- id: string;
98
+ description: string | null;
99
99
  name: string;
100
- createdAt: string;
101
- updatedAt: string;
102
100
  tenantId: string;
103
101
  projectId: string;
104
- description: string | null;
102
+ id: string;
105
103
  agentId: string;
104
+ createdAt: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,12 +161,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
- id: string;
165
- createdAt: string;
166
- updatedAt: string;
167
164
  tenantId: string;
168
165
  projectId: string;
166
+ id: string;
169
167
  agentId: string;
168
+ createdAt: string;
169
+ updatedAt: string;
170
170
  toolPolicies: Record<string, {
171
171
  needsApproval?: boolean;
172
172
  }> | null;
@@ -226,12 +226,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
- id: string;
230
- createdAt: string;
231
- updatedAt: string;
232
229
  tenantId: string;
233
230
  projectId: string;
231
+ id: string;
234
232
  agentId: string;
233
+ createdAt: string;
234
+ updatedAt: string;
235
235
  toolPolicies: Record<string, {
236
236
  needsApproval?: boolean;
237
237
  }> | null;
@@ -8,12 +8,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- id: string;
12
- createdAt: string;
13
- updatedAt: string;
14
11
  tenantId: string;
15
12
  projectId: string;
13
+ id: string;
16
14
  agentId: string;
15
+ createdAt: string;
16
+ updatedAt: string;
17
17
  headers: Record<string, string> | null;
18
18
  externalAgentId: string;
19
19
  subAgentId: string;
@@ -43,12 +43,12 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- id: string;
47
- createdAt: string;
48
- updatedAt: string;
49
46
  tenantId: string;
50
47
  projectId: string;
48
+ id: string;
51
49
  agentId: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
52
  headers: Record<string, string> | null;
53
53
  externalAgentId: string;
54
54
  subAgentId: string;
@@ -56,12 +56,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- id: string;
60
- createdAt: string;
61
- updatedAt: string;
62
59
  tenantId: string;
63
60
  projectId: string;
61
+ id: string;
64
62
  agentId: string;
63
+ createdAt: string;
64
+ updatedAt: string;
65
65
  headers: Record<string, string> | null;
66
66
  externalAgentId: string;
67
67
  subAgentId: string;
@@ -179,12 +179,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- id: string;
183
- createdAt: string;
184
- updatedAt: string;
185
182
  tenantId: string;
186
183
  projectId: string;
184
+ id: string;
187
185
  agentId: string;
186
+ createdAt: string;
187
+ updatedAt: string;
188
188
  headers: Record<string, string> | null;
189
189
  externalAgentId: string;
190
190
  subAgentId: string;
@@ -196,12 +196,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- id: string;
200
- createdAt: string;
201
- updatedAt: string;
202
199
  tenantId: string;
203
200
  projectId: string;
201
+ id: string;
204
202
  agentId: string;
203
+ createdAt: string;
204
+ updatedAt: string;
205
205
  headers: Record<string, string> | null;
206
206
  externalAgentId: string;
207
207
  subAgentId: string;
@@ -217,12 +217,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- id: string;
221
- createdAt: string;
222
- updatedAt: string;
223
220
  tenantId: string;
224
221
  projectId: string;
222
+ id: string;
225
223
  agentId: string;
224
+ createdAt: string;
225
+ updatedAt: string;
226
226
  headers: Record<string, string> | null;
227
227
  externalAgentId: string;
228
228
  subAgentId: string;