@inkeep/agents-core 0.0.0-dev-20260121032144 → 0.0.0-dev-20260121072051
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.
- package/dist/auth/auth.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/otel-attributes.d.ts +2 -0
- package/dist/constants/otel-attributes.js +2 -0
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/conversations.d.ts +7 -7
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +1 -1
- package/dist/db/manage/manage-schema.js +1 -1
- package/dist/db/runtime/runtime-schema.d.ts +6 -6
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +73 -73
- package/dist/validation/schemas.js +1 -1
- package/drizzle/manage/0002_bent_sunfire.sql +1 -0
- package/drizzle/manage/meta/0002_snapshot.json +3115 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
|
|
|
2
2
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
3
3
|
import * as better_auth0 from "better-auth";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -213,7 +213,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
213
213
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
214
214
|
}[];
|
|
215
215
|
};
|
|
216
|
-
options:
|
|
216
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
id: "sso";
|
|
219
219
|
endpoints: {
|
|
@@ -841,30 +841,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
841
841
|
};
|
|
842
842
|
}, {
|
|
843
843
|
id: "organization";
|
|
844
|
-
endpoints:
|
|
844
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
845
845
|
allowUserToCreateOrganization: true;
|
|
846
|
-
ac:
|
|
846
|
+
ac: better_auth_plugins0.AccessControl;
|
|
847
847
|
roles: {
|
|
848
848
|
member: {
|
|
849
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
850
|
-
actions:
|
|
849
|
+
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] | {
|
|
850
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
851
851
|
connector: "OR" | "AND";
|
|
852
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
853
|
-
statements:
|
|
852
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
853
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
854
854
|
};
|
|
855
855
|
admin: {
|
|
856
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
857
|
-
actions:
|
|
856
|
+
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] | {
|
|
857
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
858
858
|
connector: "OR" | "AND";
|
|
859
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
860
|
-
statements:
|
|
859
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
860
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
861
861
|
};
|
|
862
862
|
owner: {
|
|
863
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
864
|
-
actions:
|
|
863
|
+
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] | {
|
|
864
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
865
865
|
connector: "OR" | "AND";
|
|
866
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
867
|
-
statements:
|
|
866
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
867
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
868
868
|
};
|
|
869
869
|
};
|
|
870
870
|
membershipLimit: number;
|
|
@@ -874,9 +874,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
874
874
|
id: string;
|
|
875
875
|
role: string;
|
|
876
876
|
email: string;
|
|
877
|
-
organization:
|
|
878
|
-
invitation:
|
|
879
|
-
inviter:
|
|
877
|
+
organization: better_auth_plugins0.Organization;
|
|
878
|
+
invitation: better_auth_plugins0.Invitation;
|
|
879
|
+
inviter: better_auth_plugins0.Member & {
|
|
880
880
|
user: better_auth0.User;
|
|
881
881
|
};
|
|
882
882
|
}): Promise<void>;
|
|
@@ -886,28 +886,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
886
886
|
user,
|
|
887
887
|
organization: org
|
|
888
888
|
}: {
|
|
889
|
-
invitation:
|
|
890
|
-
member:
|
|
889
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
890
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
891
891
|
user: better_auth0.User & Record<string, any>;
|
|
892
|
-
organization:
|
|
892
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
893
893
|
}) => Promise<void>;
|
|
894
894
|
afterUpdateMemberRole: ({
|
|
895
895
|
member,
|
|
896
896
|
organization: org,
|
|
897
897
|
previousRole
|
|
898
898
|
}: {
|
|
899
|
-
member:
|
|
899
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
900
900
|
previousRole: string;
|
|
901
901
|
user: better_auth0.User & Record<string, any>;
|
|
902
|
-
organization:
|
|
902
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
903
903
|
}) => Promise<void>;
|
|
904
904
|
afterRemoveMember: ({
|
|
905
905
|
member,
|
|
906
906
|
organization: org
|
|
907
907
|
}: {
|
|
908
|
-
member:
|
|
908
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
909
909
|
user: better_auth0.User & Record<string, any>;
|
|
910
|
-
organization:
|
|
910
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
911
911
|
}) => Promise<void>;
|
|
912
912
|
};
|
|
913
913
|
}>;
|
|
@@ -1039,7 +1039,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1039
1039
|
organizationId: string;
|
|
1040
1040
|
email: string;
|
|
1041
1041
|
role: "member" | "admin" | "owner";
|
|
1042
|
-
status:
|
|
1042
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1043
1043
|
inviterId: string;
|
|
1044
1044
|
expiresAt: Date;
|
|
1045
1045
|
createdAt: Date;
|
|
@@ -1078,7 +1078,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1078
1078
|
organizationId: string;
|
|
1079
1079
|
email: string;
|
|
1080
1080
|
role: "member" | "admin" | "owner";
|
|
1081
|
-
status:
|
|
1081
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1082
1082
|
inviterId: string;
|
|
1083
1083
|
expiresAt: Date;
|
|
1084
1084
|
createdAt: Date;
|
|
@@ -1152,28 +1152,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1152
1152
|
};
|
|
1153
1153
|
options: NoInfer<{
|
|
1154
1154
|
allowUserToCreateOrganization: true;
|
|
1155
|
-
ac:
|
|
1155
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1156
1156
|
roles: {
|
|
1157
1157
|
member: {
|
|
1158
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1159
|
-
actions:
|
|
1158
|
+
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] | {
|
|
1159
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1160
1160
|
connector: "OR" | "AND";
|
|
1161
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1162
|
-
statements:
|
|
1161
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1162
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1163
1163
|
};
|
|
1164
1164
|
admin: {
|
|
1165
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1166
|
-
actions:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1169
|
-
statements:
|
|
1168
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1169
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1170
1170
|
};
|
|
1171
1171
|
owner: {
|
|
1172
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1173
|
-
actions:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1176
|
-
statements:
|
|
1175
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1176
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1177
1177
|
};
|
|
1178
1178
|
};
|
|
1179
1179
|
membershipLimit: number;
|
|
@@ -1183,9 +1183,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1183
1183
|
id: string;
|
|
1184
1184
|
role: string;
|
|
1185
1185
|
email: string;
|
|
1186
|
-
organization:
|
|
1187
|
-
invitation:
|
|
1188
|
-
inviter:
|
|
1186
|
+
organization: better_auth_plugins0.Organization;
|
|
1187
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1188
|
+
inviter: better_auth_plugins0.Member & {
|
|
1189
1189
|
user: better_auth0.User;
|
|
1190
1190
|
};
|
|
1191
1191
|
}): Promise<void>;
|
|
@@ -1195,28 +1195,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1195
1195
|
user,
|
|
1196
1196
|
organization: org
|
|
1197
1197
|
}: {
|
|
1198
|
-
invitation:
|
|
1199
|
-
member:
|
|
1198
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
1199
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1200
1200
|
user: better_auth0.User & Record<string, any>;
|
|
1201
|
-
organization:
|
|
1201
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1202
1202
|
}) => Promise<void>;
|
|
1203
1203
|
afterUpdateMemberRole: ({
|
|
1204
1204
|
member,
|
|
1205
1205
|
organization: org,
|
|
1206
1206
|
previousRole
|
|
1207
1207
|
}: {
|
|
1208
|
-
member:
|
|
1208
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1209
1209
|
previousRole: string;
|
|
1210
1210
|
user: better_auth0.User & Record<string, any>;
|
|
1211
|
-
organization:
|
|
1211
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1212
1212
|
}) => Promise<void>;
|
|
1213
1213
|
afterRemoveMember: ({
|
|
1214
1214
|
member,
|
|
1215
1215
|
organization: org
|
|
1216
1216
|
}: {
|
|
1217
|
-
member:
|
|
1217
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1218
1218
|
user: better_auth0.User & Record<string, any>;
|
|
1219
|
-
organization:
|
|
1219
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1220
1220
|
}) => Promise<void>;
|
|
1221
1221
|
};
|
|
1222
1222
|
}>;
|
|
@@ -1553,8 +1553,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1553
1553
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1554
1554
|
};
|
|
1555
1555
|
options: Partial<{
|
|
1556
|
-
expiresIn:
|
|
1557
|
-
interval:
|
|
1556
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
1557
|
+
interval: better_auth_plugins0.TimeString;
|
|
1558
1558
|
deviceCodeLength: number;
|
|
1559
1559
|
userCodeLength: number;
|
|
1560
1560
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins69 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
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" | "
|
|
9
|
-
actions:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
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>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
16
|
-
actions:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
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>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
23
|
-
actions:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
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>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -67,6 +67,8 @@ declare const SPAN_KEYS: {
|
|
|
67
67
|
readonly CONTEXT_AGENT_ID: "context.agent_id";
|
|
68
68
|
readonly CONTEXT_HEADERS_KEYS: "context.headers_keys";
|
|
69
69
|
readonly MESSAGE_CONTENT: "message.content";
|
|
70
|
+
readonly MESSAGE_PARTS: "message.parts";
|
|
71
|
+
readonly MESSAGE_PARTS_COUNT: "message.parts.count";
|
|
70
72
|
readonly MESSAGE_TIMESTAMP: "message.timestamp";
|
|
71
73
|
readonly MCP_TOOL_DESCRIPTION: "mcp.tool.description";
|
|
72
74
|
readonly DELEGATION_FROM_SUB_AGENT_ID: "delegation.from_sub_agent_id";
|
|
@@ -67,6 +67,8 @@ const SPAN_KEYS = {
|
|
|
67
67
|
CONTEXT_AGENT_ID: "context.agent_id",
|
|
68
68
|
CONTEXT_HEADERS_KEYS: "context.headers_keys",
|
|
69
69
|
MESSAGE_CONTENT: "message.content",
|
|
70
|
+
MESSAGE_PARTS: "message.parts",
|
|
71
|
+
MESSAGE_PARTS_COUNT: "message.parts.count",
|
|
70
72
|
MESSAGE_TIMESTAMP: "message.timestamp",
|
|
71
73
|
MCP_TOOL_DESCRIPTION: "mcp.tool.description",
|
|
72
74
|
DELEGATION_FROM_SUB_AGENT_ID,
|
|
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
69
69
|
id: string;
|
|
70
70
|
agentId: string;
|
|
71
71
|
createdAt: string;
|
|
72
|
-
subAgentId: string;
|
|
73
72
|
dataComponentId: string;
|
|
73
|
+
subAgentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove association between data component and agent
|
|
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
111
111
|
id: string;
|
|
112
112
|
agentId: string;
|
|
113
113
|
createdAt: string;
|
|
114
|
-
subAgentId: string;
|
|
115
114
|
dataComponentId: string;
|
|
115
|
+
subAgentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Count data components for a tenant/project
|
|
@@ -33,7 +33,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
33
33
|
jmespath?: string;
|
|
34
34
|
objectTransformation?: Record<string, string>;
|
|
35
35
|
} | null;
|
|
36
|
-
messageTemplate: string;
|
|
36
|
+
messageTemplate: string | null;
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecret: string | null;
|
|
39
39
|
name: string;
|
|
@@ -25,7 +25,7 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
25
25
|
userId: string | null;
|
|
26
26
|
metadata: ConversationMetadata | null;
|
|
27
27
|
ref: {
|
|
28
|
-
type: "
|
|
28
|
+
type: "tag" | "commit" | "branch";
|
|
29
29
|
name: string;
|
|
30
30
|
hash: string;
|
|
31
31
|
} | null;
|
|
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
43
|
agentId: string | null;
|
|
44
44
|
activeSubAgentId: string;
|
|
45
45
|
ref: {
|
|
46
|
-
type: "
|
|
46
|
+
type: "tag" | "commit" | "branch";
|
|
47
47
|
name: string;
|
|
48
48
|
hash: string;
|
|
49
49
|
} | null;
|
|
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
69
69
|
agentId: string | null;
|
|
70
70
|
activeSubAgentId: string;
|
|
71
71
|
ref: {
|
|
72
|
-
type: "
|
|
72
|
+
type: "tag" | "commit" | "branch";
|
|
73
73
|
name: string;
|
|
74
74
|
hash: string;
|
|
75
75
|
} | null;
|
|
@@ -94,7 +94,7 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
94
94
|
userId: string | null;
|
|
95
95
|
metadata: ConversationMetadata | null;
|
|
96
96
|
ref: {
|
|
97
|
-
type: "
|
|
97
|
+
type: "tag" | "commit" | "branch";
|
|
98
98
|
name: string;
|
|
99
99
|
hash: string;
|
|
100
100
|
} | null;
|
|
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
107
107
|
tenantId: string;
|
|
108
108
|
id: string;
|
|
109
109
|
ref: {
|
|
110
|
-
type: "
|
|
110
|
+
type: "tag" | "commit" | "branch";
|
|
111
111
|
name: string;
|
|
112
112
|
hash: string;
|
|
113
113
|
};
|
|
@@ -130,7 +130,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
130
130
|
userId: string | null;
|
|
131
131
|
metadata: ConversationMetadata | null;
|
|
132
132
|
ref: {
|
|
133
|
-
type: "
|
|
133
|
+
type: "tag" | "commit" | "branch";
|
|
134
134
|
name: string;
|
|
135
135
|
hash: string;
|
|
136
136
|
} | null;
|
|
@@ -162,7 +162,7 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
162
162
|
userId: string | null;
|
|
163
163
|
metadata: ConversationMetadata | null;
|
|
164
164
|
ref: {
|
|
165
|
-
type: "
|
|
165
|
+
type: "tag" | "commit" | "branch";
|
|
166
166
|
name: string;
|
|
167
167
|
hash: string;
|
|
168
168
|
} | null;
|
|
@@ -18,15 +18,15 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
18
18
|
content: MessageContent;
|
|
19
19
|
role: string;
|
|
20
20
|
conversationId: string;
|
|
21
|
-
taskId: string | null;
|
|
22
|
-
visibility: string;
|
|
23
21
|
fromSubAgentId: string | null;
|
|
24
22
|
toSubAgentId: string | null;
|
|
25
23
|
fromExternalAgentId: string | null;
|
|
26
24
|
toExternalAgentId: string | null;
|
|
27
25
|
fromTeamAgentId: string | null;
|
|
28
26
|
toTeamAgentId: string | null;
|
|
27
|
+
visibility: string;
|
|
29
28
|
messageType: string;
|
|
29
|
+
taskId: string | null;
|
|
30
30
|
parentMessageId: string | null;
|
|
31
31
|
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
@@ -149,15 +149,15 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
149
149
|
content: MessageContent;
|
|
150
150
|
role: string;
|
|
151
151
|
conversationId: string;
|
|
152
|
-
taskId: string | null;
|
|
153
|
-
visibility: string;
|
|
154
152
|
fromSubAgentId: string | null;
|
|
155
153
|
toSubAgentId: string | null;
|
|
156
154
|
fromExternalAgentId: string | null;
|
|
157
155
|
toExternalAgentId: string | null;
|
|
158
156
|
fromTeamAgentId: string | null;
|
|
159
157
|
toTeamAgentId: string | null;
|
|
158
|
+
visibility: string;
|
|
160
159
|
messageType: string;
|
|
160
|
+
taskId: string | null;
|
|
161
161
|
parentMessageId: string | null;
|
|
162
162
|
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
@@ -202,15 +202,15 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
202
202
|
content: MessageContent;
|
|
203
203
|
role: string;
|
|
204
204
|
conversationId: string;
|
|
205
|
-
taskId: string | null;
|
|
206
|
-
visibility: string;
|
|
207
205
|
fromSubAgentId: string | null;
|
|
208
206
|
toSubAgentId: string | null;
|
|
209
207
|
fromExternalAgentId: string | null;
|
|
210
208
|
toExternalAgentId: string | null;
|
|
211
209
|
fromTeamAgentId: string | null;
|
|
212
210
|
toTeamAgentId: string | null;
|
|
211
|
+
visibility: string;
|
|
213
212
|
messageType: string;
|
|
213
|
+
taskId: string | null;
|
|
214
214
|
parentMessageId: string | null;
|
|
215
215
|
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
@@ -14,7 +14,7 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
metadata: TaskMetadataConfig | null;
|
|
16
16
|
ref: {
|
|
17
|
-
type: "
|
|
17
|
+
type: "tag" | "commit" | "branch";
|
|
18
18
|
name: string;
|
|
19
19
|
hash: string;
|
|
20
20
|
} | null;
|
|
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
contextId: string;
|
|
38
38
|
ref: {
|
|
39
|
-
type: "
|
|
39
|
+
type: "tag" | "commit" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|
|
@@ -133,7 +133,7 @@ const triggers = pgTable("triggers", {
|
|
|
133
133
|
enabled: boolean("enabled").notNull().default(true),
|
|
134
134
|
inputSchema: jsonb("input_schema").$type(),
|
|
135
135
|
outputTransform: jsonb("output_transform").$type(),
|
|
136
|
-
messageTemplate: text("message_template")
|
|
136
|
+
messageTemplate: text("message_template"),
|
|
137
137
|
authentication: jsonb("authentication").$type(),
|
|
138
138
|
signingSecret: text("signing_secret"),
|
|
139
139
|
...timestamps
|
|
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core506.PgTableWithColumns<{
|
|
|
216
216
|
dataType: "json";
|
|
217
217
|
columnType: "PgJsonb";
|
|
218
218
|
data: {
|
|
219
|
-
type: "
|
|
219
|
+
type: "tag" | "commit" | "branch";
|
|
220
220
|
name: string;
|
|
221
221
|
hash: string;
|
|
222
222
|
};
|
|
@@ -232,7 +232,7 @@ declare const conversations: drizzle_orm_pg_core506.PgTableWithColumns<{
|
|
|
232
232
|
generated: undefined;
|
|
233
233
|
}, {}, {
|
|
234
234
|
$type: {
|
|
235
|
-
type: "
|
|
235
|
+
type: "tag" | "commit" | "branch";
|
|
236
236
|
name: string;
|
|
237
237
|
hash: string;
|
|
238
238
|
};
|
|
@@ -413,7 +413,7 @@ declare const tasks: drizzle_orm_pg_core506.PgTableWithColumns<{
|
|
|
413
413
|
dataType: "json";
|
|
414
414
|
columnType: "PgJsonb";
|
|
415
415
|
data: {
|
|
416
|
-
type: "
|
|
416
|
+
type: "tag" | "commit" | "branch";
|
|
417
417
|
name: string;
|
|
418
418
|
hash: string;
|
|
419
419
|
};
|
|
@@ -429,7 +429,7 @@ declare const tasks: drizzle_orm_pg_core506.PgTableWithColumns<{
|
|
|
429
429
|
generated: undefined;
|
|
430
430
|
}, {}, {
|
|
431
431
|
$type: {
|
|
432
|
-
type: "
|
|
432
|
+
type: "tag" | "commit" | "branch";
|
|
433
433
|
name: string;
|
|
434
434
|
hash: string;
|
|
435
435
|
};
|
|
@@ -2011,7 +2011,7 @@ declare const contextCache: drizzle_orm_pg_core506.PgTableWithColumns<{
|
|
|
2011
2011
|
dataType: "json";
|
|
2012
2012
|
columnType: "PgJsonb";
|
|
2013
2013
|
data: {
|
|
2014
|
-
type: "
|
|
2014
|
+
type: "tag" | "commit" | "branch";
|
|
2015
2015
|
name: string;
|
|
2016
2016
|
hash: string;
|
|
2017
2017
|
};
|
|
@@ -2027,7 +2027,7 @@ declare const contextCache: drizzle_orm_pg_core506.PgTableWithColumns<{
|
|
|
2027
2027
|
generated: undefined;
|
|
2028
2028
|
}, {}, {
|
|
2029
2029
|
$type: {
|
|
2030
|
-
type: "
|
|
2030
|
+
type: "tag" | "commit" | "branch";
|
|
2031
2031
|
name: string;
|
|
2032
2032
|
hash: string;
|
|
2033
2033
|
};
|