@inkeep/agents-core 0.0.0-dev-20260204152302 → 0.0.0-dev-20260204170416

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_plugins0.AccessControl;
853
853
  roles: {
854
854
  member: {
855
- 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] | {
856
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
855
+ 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] | {
856
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
857
857
  connector: "OR" | "AND";
858
858
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
859
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
859
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
860
860
  };
861
861
  admin: {
862
- 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] | {
863
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
862
+ 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] | {
863
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
864
864
  connector: "OR" | "AND";
865
865
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
866
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
866
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
867
867
  };
868
868
  owner: {
869
- 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] | {
870
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
869
+ 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] | {
870
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
871
871
  connector: "OR" | "AND";
872
872
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
873
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
873
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
874
874
  };
875
875
  };
876
876
  creatorRole: "admin";
@@ -1045,7 +1045,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1045
1045
  id: string;
1046
1046
  organizationId: string;
1047
1047
  email: string;
1048
- role: "member" | "owner" | "admin";
1048
+ role: "member" | "admin" | "owner";
1049
1049
  status: better_auth_plugins0.InvitationStatus;
1050
1050
  inviterId: string;
1051
1051
  expiresAt: Date;
@@ -1054,7 +1054,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1054
1054
  Member: {
1055
1055
  id: string;
1056
1056
  organizationId: string;
1057
- role: "member" | "owner" | "admin";
1057
+ role: "member" | "admin" | "owner";
1058
1058
  createdAt: Date;
1059
1059
  userId: string;
1060
1060
  user: {
@@ -1070,7 +1070,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1070
1070
  members: {
1071
1071
  id: string;
1072
1072
  organizationId: string;
1073
- role: "member" | "owner" | "admin";
1073
+ role: "member" | "admin" | "owner";
1074
1074
  createdAt: Date;
1075
1075
  userId: string;
1076
1076
  user: {
@@ -1084,7 +1084,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1084
1084
  id: string;
1085
1085
  organizationId: string;
1086
1086
  email: string;
1087
- role: "member" | "owner" | "admin";
1087
+ role: "member" | "admin" | "owner";
1088
1088
  status: better_auth_plugins0.InvitationStatus;
1089
1089
  inviterId: string;
1090
1090
  expiresAt: Date;
@@ -1162,25 +1162,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1162
1162
  ac: better_auth_plugins0.AccessControl;
1163
1163
  roles: {
1164
1164
  member: {
1165
- 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] | {
1166
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1165
+ 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] | {
1166
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1167
1167
  connector: "OR" | "AND";
1168
1168
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1169
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1169
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1170
1170
  };
1171
1171
  admin: {
1172
- 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] | {
1173
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1172
+ 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] | {
1173
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1174
1174
  connector: "OR" | "AND";
1175
1175
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1176
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1176
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1177
1177
  };
1178
1178
  owner: {
1179
- 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] | {
1180
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1179
+ 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] | {
1180
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1181
1181
  connector: "OR" | "AND";
1182
1182
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1183
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1183
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1184
1184
  };
1185
1185
  };
1186
1186
  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 "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" | "member" | "invitation" | "project" | "ac" | "team", 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" | "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 "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" | "member" | "invitation" | "project" | "ac" | "team", 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" | "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 "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" | "member" | "invitation" | "project" | "ac" | "team", 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 };
@@ -7,6 +7,7 @@ import "./types/index.js";
7
7
  import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
8
8
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
9
9
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
10
+ import "./index.js";
10
11
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, ResourceIdSchema, SignatureSource, SignatureVerificationConfig, SignatureVerificationConfigSchema, SignedComponent, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
11
12
  import { z } from "@hono/zod-openapi";
12
13
 
@@ -65,8 +66,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
65
66
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
67
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
68
  type: z.ZodOptional<z.ZodEnum<{
68
- external: "external";
69
69
  internal: "internal";
70
+ external: "external";
70
71
  }>>;
71
72
  }, z.core.$strip>;
72
73
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -193,9 +194,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
193
194
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
194
195
  id: z.ZodString;
195
196
  name: z.ZodString;
197
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
198
  createdAt: z.ZodOptional<z.ZodString>;
197
199
  updatedAt: z.ZodOptional<z.ZodString>;
198
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
200
  models: z.ZodOptional<z.ZodObject<{
200
201
  base: z.ZodOptional<z.ZodObject<{
201
202
  model: z.ZodOptional<z.ZodString>;
@@ -74,6 +74,7 @@ declare const SPAN_KEYS: {
74
74
  readonly DELEGATION_FROM_SUB_AGENT_ID: "delegation.from_sub_agent_id";
75
75
  readonly DELEGATION_TO_SUB_AGENT_ID: "delegation.to_sub_agent_id";
76
76
  readonly DELEGATION_ID: "delegation.id";
77
+ readonly DELEGATION_TYPE: "delegation.type";
77
78
  readonly TRANSFER_FROM_SUB_AGENT_ID: "transfer.from_sub_agent_id";
78
79
  readonly TRANSFER_TO_SUB_AGENT_ID: "transfer.to_sub_agent_id";
79
80
  readonly HTTP_URL: "http.url";
@@ -74,6 +74,7 @@ const SPAN_KEYS = {
74
74
  DELEGATION_FROM_SUB_AGENT_ID,
75
75
  DELEGATION_TO_SUB_AGENT_ID,
76
76
  DELEGATION_ID,
77
+ DELEGATION_TYPE: "delegation.type",
77
78
  TRANSFER_FROM_SUB_AGENT_ID,
78
79
  TRANSFER_TO_SUB_AGENT_ID,
79
80
  HTTP_URL: "http.url",
@@ -13,6 +13,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  description: string | null;
16
+ projectId: string;
17
+ tenantId: string;
18
+ defaultSubAgentId: string | null;
19
+ contextConfigId: string | null;
16
20
  models: {
17
21
  base?: {
18
22
  model?: string | undefined;
@@ -27,12 +31,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
27
31
  providerOptions?: Record<string, any> | undefined;
28
32
  } | undefined;
29
33
  } | null;
30
- stopWhen: {
31
- transferCountIs?: number | undefined;
32
- } | null;
33
- tenantId: string;
34
- defaultSubAgentId: string | null;
35
- contextConfigId: string | null;
36
34
  prompt: string | null;
37
35
  statusUpdates: {
38
36
  enabled?: boolean | undefined;
@@ -49,7 +47,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
49
47
  } | undefined;
50
48
  }[] | undefined;
51
49
  } | null;
52
- projectId: string;
50
+ stopWhen: {
51
+ transferCountIs?: number | undefined;
52
+ } | null;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -59,6 +59,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
59
59
  createdAt: string;
60
60
  updatedAt: string;
61
61
  description: string | null;
62
+ projectId: string;
63
+ tenantId: string;
64
+ defaultSubAgentId: string | null;
65
+ contextConfigId: string | null;
62
66
  models: {
63
67
  base?: {
64
68
  model?: string | undefined;
@@ -73,12 +77,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
73
77
  providerOptions?: Record<string, any> | undefined;
74
78
  } | undefined;
75
79
  } | null;
76
- stopWhen: {
77
- transferCountIs?: number | undefined;
78
- } | null;
79
- tenantId: string;
80
- defaultSubAgentId: string | null;
81
- contextConfigId: string | null;
82
80
  prompt: string | null;
83
81
  statusUpdates: {
84
82
  enabled?: boolean | undefined;
@@ -95,13 +93,18 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
95
93
  } | undefined;
96
94
  }[] | undefined;
97
95
  } | null;
98
- projectId: string;
96
+ stopWhen: {
97
+ transferCountIs?: number | undefined;
98
+ } | null;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
101
  name: string;
102
102
  createdAt: string;
103
103
  updatedAt: string;
104
104
  description: string | null;
105
+ agentId: string;
106
+ projectId: string;
107
+ tenantId: string;
105
108
  models: {
106
109
  base?: {
107
110
  model?: string | undefined;
@@ -116,13 +119,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
116
119
  providerOptions?: Record<string, any> | undefined;
117
120
  } | undefined;
118
121
  } | null;
122
+ prompt: string | null;
119
123
  stopWhen: {
120
124
  stepCountIs?: number | undefined;
121
125
  } | null;
122
- tenantId: string;
123
- prompt: string | null;
124
- projectId: string;
125
- agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -134,6 +134,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
134
134
  createdAt: string;
135
135
  updatedAt: string;
136
136
  description: string | null;
137
+ projectId: string;
138
+ tenantId: string;
139
+ defaultSubAgentId: string | null;
140
+ contextConfigId: string | null;
137
141
  models: {
138
142
  base?: {
139
143
  model?: string | undefined;
@@ -148,12 +152,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
148
152
  providerOptions?: Record<string, any> | undefined;
149
153
  } | undefined;
150
154
  } | null;
151
- stopWhen: {
152
- transferCountIs?: number | undefined;
153
- } | null;
154
- tenantId: string;
155
- defaultSubAgentId: string | null;
156
- contextConfigId: string | null;
157
155
  prompt: string | null;
158
156
  statusUpdates: {
159
157
  enabled?: boolean | undefined;
@@ -170,7 +168,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
170
168
  } | undefined;
171
169
  }[] | undefined;
172
170
  } | null;
173
- projectId: string;
171
+ stopWhen: {
172
+ transferCountIs?: number | undefined;
173
+ } | null;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -250,6 +250,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
250
250
  createdAt: string;
251
251
  updatedAt: string;
252
252
  description: string | null;
253
+ projectId: string;
254
+ tenantId: string;
255
+ defaultSubAgentId: string | null;
256
+ contextConfigId: string | null;
253
257
  models: {
254
258
  base?: {
255
259
  model?: string | undefined;
@@ -264,12 +268,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
264
268
  providerOptions?: Record<string, any> | undefined;
265
269
  } | undefined;
266
270
  } | null;
267
- stopWhen: {
268
- transferCountIs?: number | undefined;
269
- } | null;
270
- tenantId: string;
271
- defaultSubAgentId: string | null;
272
- contextConfigId: string | null;
273
271
  prompt: string | null;
274
272
  statusUpdates: {
275
273
  enabled?: boolean | undefined;
@@ -286,7 +284,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
286
284
  } | undefined;
287
285
  }[] | undefined;
288
286
  } | null;
289
- projectId: string;
287
+ stopWhen: {
288
+ transferCountIs?: number | undefined;
289
+ } | null;
290
290
  }>;
291
291
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
292
292
  scopes: AgentScopeConfig;
@@ -12,8 +12,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
12
12
  createdAt: string;
13
13
  updatedAt: 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;
@@ -54,8 +54,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
54
54
  createdAt: string;
55
55
  updatedAt: 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
14
  headersSchema: unknown;
17
15
  contextVariables: Record<string, ContextFetchDefinition> | null;
18
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
26
  headersSchema: unknown;
29
27
  contextVariables: Record<string, ContextFetchDefinition> | null;
30
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
48
  headersSchema: unknown;
51
49
  contextVariables: Record<string, ContextFetchDefinition> | null;
52
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
88
  headersSchema: unknown;
91
89
  contextVariables: Record<string, ContextFetchDefinition> | null;
92
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,9 +66,9 @@ 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;
70
+ projectId: string;
71
+ tenantId: string;
72
72
  dataComponentId: string;
73
73
  subAgentId: string;
74
74
  }>;
@@ -108,9 +108,9 @@ 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;
112
+ projectId: string;
113
+ tenantId: string;
114
114
  dataComponentId: string;
115
115
  subAgentId: string;
116
116
  } | null>;
@@ -58,9 +58,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
58
58
  createdAt: string;
59
59
  updatedAt: 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
  /**
@@ -100,9 +100,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
100
100
  createdAt: string;
101
101
  updatedAt: 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
  subAgentId: string;
171
171
  toolPolicies: Record<string, {
172
172
  needsApproval?: boolean;
@@ -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
  subAgentId: string;
236
236
  toolPolicies: Record<string, {
237
237
  needsApproval?: boolean;
@@ -11,11 +11,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- tenantId: string;
15
- projectId: string;
14
+ headers: Record<string, string> | null;
16
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
17
18
  subAgentId: string;
18
- headers: Record<string, string> | null;
19
19
  externalAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
49
+ headers: Record<string, string> | null;
51
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
52
53
  subAgentId: string;
53
- headers: Record<string, string> | null;
54
54
  externalAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- tenantId: string;
63
- projectId: string;
62
+ headers: Record<string, string> | null;
64
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
65
66
  subAgentId: string;
66
- headers: Record<string, string> | null;
67
67
  externalAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -182,11 +182,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- tenantId: string;
186
- projectId: string;
185
+ headers: Record<string, string> | null;
187
186
  agentId: string;
187
+ projectId: string;
188
+ tenantId: string;
188
189
  subAgentId: string;
189
- headers: Record<string, string> | null;
190
190
  externalAgentId: string;
191
191
  }>;
192
192
  /**
@@ -199,11 +199,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- tenantId: string;
203
- projectId: string;
202
+ headers: Record<string, string> | null;
204
203
  agentId: string;
204
+ projectId: string;
205
+ tenantId: string;
205
206
  subAgentId: string;
206
- headers: Record<string, string> | null;
207
207
  externalAgentId: string;
208
208
  } | undefined>;
209
209
  /**
@@ -220,11 +220,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- tenantId: string;
224
- projectId: string;
223
+ headers: Record<string, string> | null;
225
224
  agentId: string;
225
+ projectId: string;
226
+ tenantId: string;
226
227
  subAgentId: string;
227
- headers: Record<string, string> | null;
228
228
  externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {