@inkeep/agents-core 0.0.0-dev-20260121184116 → 0.0.0-dev-20260121211317

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.
@@ -852,25 +852,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
852
852
  ac: better_auth_plugins20.AccessControl;
853
853
  roles: {
854
854
  member: {
855
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
856
- actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
855
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
856
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
857
857
  connector: "OR" | "AND";
858
858
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
859
- statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
859
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
860
860
  };
861
861
  admin: {
862
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
863
- actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
862
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
863
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
864
864
  connector: "OR" | "AND";
865
865
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
866
- statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
866
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
867
867
  };
868
868
  owner: {
869
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
870
- actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
869
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
870
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
871
871
  connector: "OR" | "AND";
872
872
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
873
- statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
873
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
874
874
  };
875
875
  };
876
876
  membershipLimit: number;
@@ -1044,7 +1044,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1044
1044
  id: string;
1045
1045
  organizationId: string;
1046
1046
  email: string;
1047
- role: "owner" | "admin" | "member";
1047
+ role: "member" | "admin" | "owner";
1048
1048
  status: better_auth_plugins20.InvitationStatus;
1049
1049
  inviterId: string;
1050
1050
  expiresAt: Date;
@@ -1053,7 +1053,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1053
1053
  Member: {
1054
1054
  id: string;
1055
1055
  organizationId: string;
1056
- role: "owner" | "admin" | "member";
1056
+ role: "member" | "admin" | "owner";
1057
1057
  createdAt: Date;
1058
1058
  userId: string;
1059
1059
  user: {
@@ -1069,7 +1069,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1069
1069
  members: {
1070
1070
  id: string;
1071
1071
  organizationId: string;
1072
- role: "owner" | "admin" | "member";
1072
+ role: "member" | "admin" | "owner";
1073
1073
  createdAt: Date;
1074
1074
  userId: string;
1075
1075
  user: {
@@ -1083,7 +1083,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1083
1083
  id: string;
1084
1084
  organizationId: string;
1085
1085
  email: string;
1086
- role: "owner" | "admin" | "member";
1086
+ role: "member" | "admin" | "owner";
1087
1087
  status: better_auth_plugins20.InvitationStatus;
1088
1088
  inviterId: string;
1089
1089
  expiresAt: Date;
@@ -1161,25 +1161,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1161
1161
  ac: better_auth_plugins20.AccessControl;
1162
1162
  roles: {
1163
1163
  member: {
1164
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1165
- actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1164
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
1165
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
1166
1166
  connector: "OR" | "AND";
1167
1167
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1168
- statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1168
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
1169
1169
  };
1170
1170
  admin: {
1171
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1172
- actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1171
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
1172
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
1173
1173
  connector: "OR" | "AND";
1174
1174
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1175
- statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1175
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
1176
1176
  };
1177
1177
  owner: {
1178
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1179
- actions: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1178
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
1179
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
1180
1180
  connector: "OR" | "AND";
1181
1181
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1182
- statements: better_auth_plugins20.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1182
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
1183
1183
  };
1184
1184
  };
1185
1185
  membershipLimit: number;
@@ -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" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", 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<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
12
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", 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<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
19
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", 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<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
26
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -6,7 +6,6 @@ import "./types/index.js";
6
6
  import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
7
7
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
8
8
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
9
- import "./index.js";
10
9
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse } from "./validation/schemas.js";
11
10
  import { z } from "@hono/zod-openapi";
12
11
 
@@ -8,13 +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;
12
11
  tenantId: string;
13
- createdAt: string;
12
+ projectId: string;
13
+ id: string;
14
14
  name: string;
15
15
  description: string | null;
16
+ prompt: string | null;
17
+ createdAt: string;
16
18
  updatedAt: string;
17
- projectId: string;
18
19
  models: {
19
20
  base?: {
20
21
  model?: string | undefined;
@@ -34,7 +35,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
35
  } | null;
35
36
  defaultSubAgentId: string | null;
36
37
  contextConfigId: string | null;
37
- prompt: string | null;
38
38
  statusUpdates: {
39
39
  enabled?: boolean | undefined;
40
40
  numEvents?: number | undefined;
@@ -54,13 +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;
58
57
  tenantId: string;
59
- createdAt: string;
58
+ projectId: string;
59
+ id: string;
60
60
  name: string;
61
61
  description: string | null;
62
+ prompt: string | null;
63
+ createdAt: string;
62
64
  updatedAt: string;
63
- projectId: string;
64
65
  models: {
65
66
  base?: {
66
67
  model?: string | undefined;
@@ -80,7 +81,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
80
81
  } | null;
81
82
  defaultSubAgentId: string | null;
82
83
  contextConfigId: string | null;
83
- prompt: string | null;
84
84
  statusUpdates: {
85
85
  enabled?: boolean | undefined;
86
86
  numEvents?: number | undefined;
@@ -97,14 +97,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
97
  }[] | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
- id: string;
101
100
  tenantId: string;
102
- createdAt: string;
101
+ projectId: string;
102
+ id: string;
103
103
  name: string;
104
104
  description: string | null;
105
- updatedAt: string;
105
+ prompt: string | null;
106
106
  agentId: string;
107
- projectId: string;
107
+ createdAt: string;
108
+ updatedAt: string;
108
109
  models: {
109
110
  base?: {
110
111
  model?: string | undefined;
@@ -122,20 +123,20 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
122
123
  stopWhen: {
123
124
  stepCountIs?: number | undefined;
124
125
  } | null;
125
- prompt: string | null;
126
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
- id: string;
133
132
  tenantId: string;
134
- createdAt: string;
133
+ projectId: string;
134
+ id: string;
135
135
  name: string;
136
136
  description: string | null;
137
+ prompt: string | null;
138
+ createdAt: string;
137
139
  updatedAt: string;
138
- projectId: string;
139
140
  models: {
140
141
  base?: {
141
142
  model?: string | undefined;
@@ -155,7 +156,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
155
156
  } | null;
156
157
  defaultSubAgentId: string | null;
157
158
  contextConfigId: string | null;
158
- prompt: string | null;
159
159
  statusUpdates: {
160
160
  enabled?: boolean | undefined;
161
161
  numEvents?: number | undefined;
@@ -228,13 +228,14 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
- id: string;
232
231
  tenantId: string;
233
- createdAt: string;
232
+ projectId: string;
233
+ id: string;
234
234
  name: string;
235
235
  description: string | null;
236
+ prompt: string | null;
237
+ createdAt: string;
236
238
  updatedAt: string;
237
- projectId: string;
238
239
  models: {
239
240
  base?: {
240
241
  model?: string | undefined;
@@ -254,7 +255,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
254
255
  } | null;
255
256
  defaultSubAgentId: string | null;
256
257
  contextConfigId: string | null;
257
- prompt: string | null;
258
258
  statusUpdates: {
259
259
  enabled?: boolean | undefined;
260
260
  numEvents?: number | 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;
11
10
  tenantId: string;
12
- createdAt: string;
11
+ projectId: string;
12
+ id: string;
13
13
  name: string;
14
14
  description: string | null;
15
+ createdAt: string;
15
16
  updatedAt: string;
16
- projectId: 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;
53
52
  tenantId: string;
54
- createdAt: string;
53
+ projectId: string;
54
+ id: string;
55
55
  name: string;
56
56
  description: string | null;
57
+ createdAt: string;
57
58
  updatedAt: string;
58
- projectId: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -104,12 +104,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
104
104
  scopes: SubAgentScopeConfig;
105
105
  artifactComponentId: string;
106
106
  }) => Promise<{
107
- id: string;
108
107
  tenantId: string;
108
+ projectId: string;
109
+ id: string;
110
+ agentId: string;
109
111
  createdAt: string;
110
112
  subAgentId: string;
111
- agentId: string;
112
- projectId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
115
115
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -147,12 +147,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
147
147
  scopes: SubAgentScopeConfig;
148
148
  artifactComponentId: string;
149
149
  }) => Promise<{
150
- id: string;
151
150
  tenantId: string;
151
+ projectId: string;
152
+ id: string;
153
+ agentId: string;
152
154
  createdAt: string;
153
155
  subAgentId: string;
154
- agentId: string;
155
- projectId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
158
158
  /**
@@ -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
11
  tenantId: string;
12
+ projectId: string;
13
+ id: string;
14
+ agentId: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- agentId: string;
16
- projectId: 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
23
  tenantId: string;
24
+ projectId: string;
25
+ id: string;
26
+ agentId: string;
25
27
  createdAt: string;
26
28
  updatedAt: string;
27
- agentId: string;
28
- projectId: 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
45
  tenantId: string;
46
+ projectId: string;
47
+ id: string;
48
+ agentId: string;
47
49
  createdAt: string;
48
50
  updatedAt: string;
49
- agentId: string;
50
- projectId: 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
85
  tenantId: string;
86
+ projectId: string;
87
+ id: string;
88
+ agentId: string;
87
89
  createdAt: string;
88
90
  updatedAt: string;
89
- agentId: string;
90
- projectId: 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
67
  tenantId: string;
69
- createdAt: string;
70
- subAgentId: string;
71
- agentId: string;
72
68
  projectId: string;
69
+ id: string;
70
+ agentId: string;
71
+ createdAt: string;
73
72
  dataComponentId: string;
73
+ subAgentId: 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
109
  tenantId: string;
111
- createdAt: string;
112
- subAgentId: string;
113
- agentId: string;
114
110
  projectId: string;
111
+ id: string;
112
+ agentId: string;
113
+ createdAt: string;
115
114
  dataComponentId: string;
115
+ subAgentId: 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;
57
56
  tenantId: string;
58
- createdAt: string;
57
+ projectId: string;
58
+ id: string;
59
59
  name: string;
60
60
  description: string | null;
61
- updatedAt: string;
62
61
  agentId: string;
63
- projectId: 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;
99
98
  tenantId: string;
100
- createdAt: string;
99
+ projectId: string;
100
+ id: string;
101
101
  name: string;
102
102
  description: string | null;
103
- updatedAt: string;
104
103
  agentId: string;
105
- projectId: string;
104
+ createdAt: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -150,13 +150,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
150
150
  subAgentId: string;
151
151
  functionToolId: string;
152
152
  }) => Promise<{
153
- id: string;
154
153
  tenantId: string;
154
+ projectId: string;
155
+ id: string;
156
+ agentId: string;
155
157
  createdAt: string;
156
158
  updatedAt: string;
157
159
  subAgentId: string;
158
- agentId: string;
159
- projectId: string;
160
160
  functionToolId: string;
161
161
  }>;
162
162
  /**
@@ -206,13 +206,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
206
206
  subAgentId: string;
207
207
  functionToolId: string;
208
208
  }) => Promise<{
209
- id: string;
210
209
  tenantId: string;
210
+ projectId: string;
211
+ id: string;
212
+ agentId: string;
211
213
  createdAt: string;
212
214
  updatedAt: string;
213
215
  subAgentId: string;
214
- agentId: string;
215
- projectId: string;
216
216
  functionToolId: string;
217
217
  }>;
218
218
  //#endregion
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- id: string;
12
11
  tenantId: string;
12
+ projectId: string;
13
+ id: string;
14
+ agentId: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- subAgentId: string;
16
- agentId: string;
17
- projectId: string;
18
17
  headers: Record<string, string> | null;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- id: string;
47
46
  tenantId: string;
47
+ projectId: string;
48
+ id: string;
49
+ agentId: string;
48
50
  createdAt: string;
49
51
  updatedAt: string;
50
- subAgentId: string;
51
- agentId: string;
52
- projectId: string;
53
52
  headers: Record<string, string> | null;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- id: string;
60
59
  tenantId: string;
60
+ projectId: string;
61
+ id: string;
62
+ agentId: string;
61
63
  createdAt: string;
62
64
  updatedAt: string;
63
- subAgentId: string;
64
- agentId: string;
65
- projectId: string;
66
65
  headers: Record<string, string> | null;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- id: string;
183
182
  tenantId: string;
183
+ projectId: string;
184
+ id: string;
185
+ agentId: string;
184
186
  createdAt: string;
185
187
  updatedAt: string;
186
- subAgentId: string;
187
- agentId: string;
188
- projectId: string;
189
188
  headers: Record<string, string> | null;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- id: string;
200
199
  tenantId: string;
200
+ projectId: string;
201
+ id: string;
202
+ agentId: string;
201
203
  createdAt: string;
202
204
  updatedAt: string;
203
- subAgentId: string;
204
- agentId: string;
205
- projectId: string;
206
205
  headers: Record<string, string> | null;
207
206
  externalAgentId: string;
207
+ subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- id: string;
221
220
  tenantId: string;
221
+ projectId: string;
222
+ id: string;
223
+ agentId: string;
222
224
  createdAt: string;
223
225
  updatedAt: string;
224
- subAgentId: string;
225
- agentId: string;
226
- projectId: string;
227
226
  headers: Record<string, string> | null;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;