@inkeep/agents-core 0.0.0-dev-20260213181729 → 0.0.0-dev-20260213220920

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -880,25 +880,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
880
880
  ac: better_auth_plugins0.AccessControl;
881
881
  roles: {
882
882
  member: {
883
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
884
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
883
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
884
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
885
885
  connector: "OR" | "AND";
886
886
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
887
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
887
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
888
888
  };
889
889
  admin: {
890
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
891
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
890
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
891
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
892
892
  connector: "OR" | "AND";
893
893
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
894
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
894
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
895
895
  };
896
896
  owner: {
897
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
898
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
897
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
898
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
899
899
  connector: "OR" | "AND";
900
900
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
901
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
901
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
902
902
  };
903
903
  };
904
904
  creatorRole: "admin";
@@ -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" | "admin" | "owner";
1087
+ role: "member" | "owner" | "admin";
1088
1088
  status: better_auth_plugins0.InvitationStatus;
1089
1089
  inviterId: string;
1090
1090
  expiresAt: Date;
@@ -1094,7 +1094,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1094
1094
  Member: {
1095
1095
  id: string;
1096
1096
  organizationId: string;
1097
- role: "member" | "admin" | "owner";
1097
+ role: "member" | "owner" | "admin";
1098
1098
  createdAt: Date;
1099
1099
  userId: string;
1100
1100
  user: {
@@ -1110,7 +1110,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1110
1110
  members: {
1111
1111
  id: string;
1112
1112
  organizationId: string;
1113
- role: "member" | "admin" | "owner";
1113
+ role: "member" | "owner" | "admin";
1114
1114
  createdAt: Date;
1115
1115
  userId: string;
1116
1116
  user: {
@@ -1124,7 +1124,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1124
1124
  id: string;
1125
1125
  organizationId: string;
1126
1126
  email: string;
1127
- role: "member" | "admin" | "owner";
1127
+ role: "member" | "owner" | "admin";
1128
1128
  status: better_auth_plugins0.InvitationStatus;
1129
1129
  inviterId: string;
1130
1130
  expiresAt: Date;
@@ -1203,25 +1203,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1203
1203
  ac: better_auth_plugins0.AccessControl;
1204
1204
  roles: {
1205
1205
  member: {
1206
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1207
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1206
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1207
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1208
1208
  connector: "OR" | "AND";
1209
1209
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1210
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1210
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1211
1211
  };
1212
1212
  admin: {
1213
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1214
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1213
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1214
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1215
1215
  connector: "OR" | "AND";
1216
1216
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1217
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1217
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1218
1218
  };
1219
1219
  owner: {
1220
- authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1221
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1220
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1221
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1222
1222
  connector: "OR" | "AND";
1223
1223
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1224
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1224
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1225
1225
  };
1226
1226
  };
1227
1227
  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" | "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];
8
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
9
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "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" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
12
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
13
13
  };
14
14
  declare const adminRole: {
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];
15
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
16
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "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" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
19
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
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];
22
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
23
+ actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "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" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
26
+ statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -19,9 +19,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
19
19
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
20
20
  id: z.ZodString;
21
21
  name: z.ZodString;
22
- createdAt: z.ZodOptional<z.ZodString>;
23
- updatedAt: z.ZodOptional<z.ZodString>;
24
22
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
25
24
  models: z.ZodOptional<z.ZodObject<{
26
25
  base: z.ZodOptional<z.ZodObject<{
27
26
  model: z.ZodOptional<z.ZodString>;
@@ -45,7 +44,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
45
44
  }, {
46
45
  stepCountIs?: number | undefined;
47
46
  }>>>>;
48
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
47
+ createdAt: z.ZodOptional<z.ZodString>;
48
+ updatedAt: z.ZodOptional<z.ZodString>;
49
49
  type: z.ZodLiteral<"internal">;
50
50
  canUse: z.ZodArray<z.ZodObject<{
51
51
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -8,15 +8,15 @@ 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
  name: string;
12
+ description: string | null;
13
+ id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- description: string | null;
16
- tenantId: string;
17
16
  projectId: string;
18
- defaultSubAgentId: string | null;
17
+ tenantId: string;
19
18
  contextConfigId: string | null;
19
+ defaultSubAgentId: string | null;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -54,15 +54,15 @@ 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
  name: string;
58
+ description: string | null;
59
+ id: string;
59
60
  createdAt: string;
60
61
  updatedAt: string;
61
- description: string | null;
62
- tenantId: string;
63
62
  projectId: string;
64
- defaultSubAgentId: string | null;
63
+ tenantId: string;
65
64
  contextConfigId: string | null;
65
+ defaultSubAgentId: string | null;
66
66
  models: {
67
67
  base?: {
68
68
  model?: string | undefined;
@@ -97,13 +97,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
97
  transferCountIs?: number | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
- id: string;
101
100
  name: string;
101
+ description: string | null;
102
+ id: string;
102
103
  createdAt: string;
103
104
  updatedAt: string;
104
- description: string | null;
105
- tenantId: string;
105
+ agentId: string;
106
106
  projectId: string;
107
+ tenantId: string;
107
108
  models: {
108
109
  base?: {
109
110
  model?: string | undefined;
@@ -122,22 +123,21 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
122
123
  stopWhen: {
123
124
  stepCountIs?: number | undefined;
124
125
  } | null;
125
- agentId: string;
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
  name: string;
133
+ description: string | null;
134
+ id: string;
134
135
  createdAt: string;
135
136
  updatedAt: string;
136
- description: string | null;
137
- tenantId: string;
138
137
  projectId: string;
139
- defaultSubAgentId: string | null;
138
+ tenantId: string;
140
139
  contextConfigId: string | null;
140
+ defaultSubAgentId: string | null;
141
141
  models: {
142
142
  base?: {
143
143
  model?: string | undefined;
@@ -245,15 +245,15 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
245
245
  projectIds: string[];
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
- id: string;
249
248
  name: string;
249
+ description: string | null;
250
+ id: string;
250
251
  createdAt: string;
251
252
  updatedAt: string;
252
- description: string | null;
253
- tenantId: string;
254
253
  projectId: string;
255
- defaultSubAgentId: string | null;
254
+ tenantId: string;
256
255
  contextConfigId: string | null;
256
+ defaultSubAgentId: string | null;
257
257
  models: {
258
258
  base?: {
259
259
  model?: string | undefined;
@@ -8,13 +8,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- id: string;
12
11
  name: string;
12
+ description: string | null;
13
+ id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- description: string | null;
16
- tenantId: string;
17
16
  projectId: string;
17
+ tenantId: string;
18
18
  props: {
19
19
  [x: string]: unknown;
20
20
  type: "object";
@@ -64,13 +64,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
64
64
  };
65
65
  }>;
66
66
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
67
- id: string;
68
67
  name: string;
68
+ description: string | null;
69
+ id: string;
69
70
  createdAt: string;
70
71
  updatedAt: string;
71
- description: string | null;
72
- tenantId: string;
73
72
  projectId: string;
73
+ tenantId: string;
74
74
  props: {
75
75
  [x: string]: unknown;
76
76
  type: "object";
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
142
142
  }) => Promise<{
143
143
  id: string;
144
144
  createdAt: string;
145
- tenantId: string;
146
- projectId: string;
147
- agentId: string;
148
145
  subAgentId: string;
146
+ agentId: string;
147
+ projectId: string;
148
+ tenantId: string;
149
149
  artifactComponentId: string;
150
150
  }>;
151
151
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
185
185
  }) => Promise<{
186
186
  id: string;
187
187
  createdAt: string;
188
- tenantId: string;
189
- projectId: string;
190
- agentId: string;
191
188
  subAgentId: string;
189
+ agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
192
192
  artifactComponentId: string;
193
193
  } | null>;
194
194
  /**
@@ -11,9 +11,9 @@ 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
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
@@ -23,9 +23,9 @@ 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
  agentId: string;
27
+ projectId: string;
28
+ tenantId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -45,9 +45,9 @@ 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
  agentId: string;
49
+ projectId: string;
50
+ tenantId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -85,9 +85,9 @@ 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
  agentId: string;
89
+ projectId: string;
90
+ tenantId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  }) => Promise<{
67
67
  id: string;
68
68
  createdAt: string;
69
- tenantId: string;
70
- projectId: string;
71
- agentId: string;
72
69
  subAgentId: string;
70
+ agentId: string;
71
+ projectId: string;
72
+ tenantId: string;
73
73
  dataComponentId: string;
74
74
  }>;
75
75
  /**
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  }) => Promise<{
109
109
  id: string;
110
110
  createdAt: string;
111
- tenantId: string;
112
- projectId: string;
113
- agentId: string;
114
111
  subAgentId: string;
112
+ agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
117
117
  /**
@@ -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
  name: string;
57
+ description: string | null;
58
+ id: string;
58
59
  createdAt: string;
59
60
  updatedAt: string;
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
  /**
@@ -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
  name: string;
99
+ description: string | null;
100
+ id: string;
100
101
  createdAt: string;
101
102
  updatedAt: string;
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,13 +164,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  id: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
- tenantId: string;
168
- projectId: string;
167
+ subAgentId: string;
169
168
  agentId: string;
169
+ projectId: string;
170
+ tenantId: string;
170
171
  toolPolicies: Record<string, {
171
172
  needsApproval?: boolean;
172
173
  }> | null;
173
- subAgentId: string;
174
174
  functionToolId: string;
175
175
  }>;
176
176
  /**
@@ -229,13 +229,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- tenantId: string;
233
- projectId: string;
232
+ subAgentId: string;
234
233
  agentId: string;
234
+ projectId: string;
235
+ tenantId: string;
235
236
  toolPolicies: Record<string, {
236
237
  needsApproval?: boolean;
237
238
  }> | null;
238
- subAgentId: string;
239
239
  functionToolId: string;
240
240
  }>;
241
241
  //#endregion
@@ -7,14 +7,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  skillId: string;
9
9
  }) => Promise<{
10
- id: string;
11
10
  name: string;
11
+ description: string;
12
+ id: string;
13
+ metadata: Record<string, string> | null;
12
14
  createdAt: string;
13
15
  updatedAt: string;
14
- metadata: Record<string, string> | null;
15
- description: string;
16
- tenantId: string;
17
16
  projectId: string;
17
+ tenantId: string;
18
18
  content: string;
19
19
  } | null>;
20
20
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -40,25 +40,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
40
40
  };
41
41
  }>;
42
42
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
43
- id: string;
44
43
  name: string;
44
+ description: string;
45
+ id: string;
46
+ metadata: Record<string, string> | null;
45
47
  createdAt: string;
46
48
  updatedAt: string;
47
- metadata: Record<string, string> | null;
48
- description: string;
49
- tenantId: string;
50
49
  projectId: string;
50
+ tenantId: string;
51
51
  content: string;
52
52
  }>;
53
53
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
54
- id: string;
55
54
  name: string;
55
+ description: string;
56
+ id: string;
57
+ metadata: Record<string, string> | null;
56
58
  createdAt: string;
57
59
  updatedAt: string;
58
- metadata: Record<string, string> | null;
59
- description: string;
60
- tenantId: string;
61
60
  projectId: string;
61
+ tenantId: string;
62
62
  content: string;
63
63
  }>;
64
64
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -93,12 +93,12 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
93
93
  id: string;
94
94
  createdAt: string;
95
95
  updatedAt: string;
96
- tenantId: string;
97
- projectId: string;
96
+ subAgentId: string;
98
97
  agentId: string;
98
+ projectId: string;
99
+ tenantId: string;
99
100
  index: number;
100
101
  alwaysLoaded: boolean;
101
- subAgentId: string;
102
102
  skillId: string;
103
103
  }>;
104
104
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
- tenantId: string;
16
- projectId: string;
14
+ subAgentId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ headers: Record<string, string> | null;
18
19
  externalAgentId: string;
19
- subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
- tenantId: string;
51
- projectId: string;
49
+ subAgentId: string;
52
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ headers: Record<string, string> | null;
53
54
  externalAgentId: string;
54
- subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
- tenantId: string;
64
- projectId: string;
62
+ subAgentId: string;
65
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ headers: Record<string, string> | null;
66
67
  externalAgentId: string;
67
- subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -182,12 +182,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- headers: Record<string, string> | null;
186
- tenantId: string;
187
- projectId: string;
185
+ subAgentId: string;
188
186
  agentId: string;
187
+ projectId: string;
188
+ tenantId: string;
189
+ headers: Record<string, string> | null;
189
190
  externalAgentId: string;
190
- subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -199,12 +199,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- headers: Record<string, string> | null;
203
- tenantId: string;
204
- projectId: string;
202
+ subAgentId: string;
205
203
  agentId: string;
204
+ projectId: string;
205
+ tenantId: string;
206
+ headers: Record<string, string> | null;
206
207
  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)
@@ -220,12 +220,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- headers: Record<string, string> | null;
224
- tenantId: string;
225
- projectId: string;
223
+ subAgentId: string;
226
224
  agentId: string;
225
+ projectId: string;
226
+ tenantId: string;
227
+ headers: Record<string, string> | null;
227
228
  externalAgentId: string;
228
- subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;