@inkeep/agents-core 0.0.0-dev-20260130050728 → 0.0.0-dev-20260130091014
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-schema.d.ts +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +57 -57
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -6
- package/dist/client-exports.js +3 -7
- package/dist/data-access/manage/agentFull.js +1 -1
- package/dist/data-access/manage/artifactComponents.js +1 -1
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +11 -11
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +381 -381
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- package/dist/index.d.ts +2 -4
- package/dist/index.js +8 -10
- package/dist/validation/agentFull.js +1 -1
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +4 -23
- package/dist/validation/drizzle-schema-helpers.js +3 -30
- package/dist/validation/index.d.ts +2 -4
- package/dist/validation/index.js +4 -6
- package/dist/validation/schemas.d.ts +1381 -1378
- package/dist/validation/schemas.js +87 -77
- package/package.json +1 -1
- package/dist/validation/id-validation.d.ts +0 -24
- package/dist/validation/id-validation.js +0 -52
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_plugins20 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -219,7 +219,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
219
219
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
220
220
|
}[];
|
|
221
221
|
};
|
|
222
|
-
options:
|
|
222
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
id: "sso";
|
|
225
225
|
endpoints: {
|
|
@@ -847,30 +847,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
847
847
|
};
|
|
848
848
|
}, {
|
|
849
849
|
id: "organization";
|
|
850
|
-
endpoints:
|
|
850
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
851
851
|
allowUserToCreateOrganization: true;
|
|
852
|
-
ac:
|
|
852
|
+
ac: better_auth_plugins20.AccessControl;
|
|
853
853
|
roles: {
|
|
854
854
|
member: {
|
|
855
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
856
|
-
actions:
|
|
855
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
856
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
857
857
|
connector: "OR" | "AND";
|
|
858
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
859
|
-
statements:
|
|
858
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
859
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
860
860
|
};
|
|
861
861
|
admin: {
|
|
862
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
863
|
-
actions:
|
|
862
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
863
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
864
864
|
connector: "OR" | "AND";
|
|
865
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
866
|
-
statements:
|
|
865
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
866
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
867
867
|
};
|
|
868
868
|
owner: {
|
|
869
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
870
|
-
actions:
|
|
869
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
870
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
871
871
|
connector: "OR" | "AND";
|
|
872
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
873
|
-
statements:
|
|
872
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
873
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
876
|
creatorRole: "admin";
|
|
@@ -881,9 +881,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
881
881
|
id: string;
|
|
882
882
|
role: string;
|
|
883
883
|
email: string;
|
|
884
|
-
organization:
|
|
885
|
-
invitation:
|
|
886
|
-
inviter:
|
|
884
|
+
organization: better_auth_plugins20.Organization;
|
|
885
|
+
invitation: better_auth_plugins20.Invitation;
|
|
886
|
+
inviter: better_auth_plugins20.Member & {
|
|
887
887
|
user: better_auth0.User;
|
|
888
888
|
};
|
|
889
889
|
}): Promise<void>;
|
|
@@ -893,28 +893,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
893
893
|
user,
|
|
894
894
|
organization: org
|
|
895
895
|
}: {
|
|
896
|
-
invitation:
|
|
897
|
-
member:
|
|
896
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
897
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
898
898
|
user: better_auth0.User & Record<string, any>;
|
|
899
|
-
organization:
|
|
899
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
900
900
|
}) => Promise<void>;
|
|
901
901
|
beforeUpdateMemberRole: ({
|
|
902
902
|
member,
|
|
903
903
|
organization: org,
|
|
904
904
|
newRole
|
|
905
905
|
}: {
|
|
906
|
-
member:
|
|
906
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
907
907
|
newRole: string;
|
|
908
908
|
user: better_auth0.User & Record<string, any>;
|
|
909
|
-
organization:
|
|
909
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
910
910
|
}) => Promise<void>;
|
|
911
911
|
afterRemoveMember: ({
|
|
912
912
|
member,
|
|
913
913
|
organization: org
|
|
914
914
|
}: {
|
|
915
|
-
member:
|
|
915
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
916
916
|
user: better_auth0.User & Record<string, any>;
|
|
917
|
-
organization:
|
|
917
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
918
918
|
}) => Promise<void>;
|
|
919
919
|
};
|
|
920
920
|
}>;
|
|
@@ -1045,8 +1045,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1045
1045
|
id: string;
|
|
1046
1046
|
organizationId: string;
|
|
1047
1047
|
email: string;
|
|
1048
|
-
role: "
|
|
1049
|
-
status:
|
|
1048
|
+
role: "member" | "admin" | "owner";
|
|
1049
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1050
1050
|
inviterId: string;
|
|
1051
1051
|
expiresAt: Date;
|
|
1052
1052
|
createdAt: 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: "
|
|
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: "
|
|
1073
|
+
role: "member" | "admin" | "owner";
|
|
1074
1074
|
createdAt: Date;
|
|
1075
1075
|
userId: string;
|
|
1076
1076
|
user: {
|
|
@@ -1084,8 +1084,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1084
1084
|
id: string;
|
|
1085
1085
|
organizationId: string;
|
|
1086
1086
|
email: string;
|
|
1087
|
-
role: "
|
|
1088
|
-
status:
|
|
1087
|
+
role: "member" | "admin" | "owner";
|
|
1088
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1089
1089
|
inviterId: string;
|
|
1090
1090
|
expiresAt: Date;
|
|
1091
1091
|
createdAt: Date;
|
|
@@ -1159,28 +1159,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1159
1159
|
};
|
|
1160
1160
|
options: NoInfer<{
|
|
1161
1161
|
allowUserToCreateOrganization: true;
|
|
1162
|
-
ac:
|
|
1162
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1163
1163
|
roles: {
|
|
1164
1164
|
member: {
|
|
1165
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1166
|
-
actions:
|
|
1165
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1166
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1167
1167
|
connector: "OR" | "AND";
|
|
1168
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1169
|
-
statements:
|
|
1168
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1169
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1170
1170
|
};
|
|
1171
1171
|
admin: {
|
|
1172
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1173
|
-
actions:
|
|
1172
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1173
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1174
1174
|
connector: "OR" | "AND";
|
|
1175
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1176
|
-
statements:
|
|
1175
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1176
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1177
1177
|
};
|
|
1178
1178
|
owner: {
|
|
1179
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
1180
|
-
actions:
|
|
1179
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1180
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1181
1181
|
connector: "OR" | "AND";
|
|
1182
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1183
|
-
statements:
|
|
1182
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1183
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1184
1184
|
};
|
|
1185
1185
|
};
|
|
1186
1186
|
creatorRole: "admin";
|
|
@@ -1191,9 +1191,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1191
1191
|
id: string;
|
|
1192
1192
|
role: string;
|
|
1193
1193
|
email: string;
|
|
1194
|
-
organization:
|
|
1195
|
-
invitation:
|
|
1196
|
-
inviter:
|
|
1194
|
+
organization: better_auth_plugins20.Organization;
|
|
1195
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1196
|
+
inviter: better_auth_plugins20.Member & {
|
|
1197
1197
|
user: better_auth0.User;
|
|
1198
1198
|
};
|
|
1199
1199
|
}): Promise<void>;
|
|
@@ -1203,28 +1203,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1203
1203
|
user,
|
|
1204
1204
|
organization: org
|
|
1205
1205
|
}: {
|
|
1206
|
-
invitation:
|
|
1207
|
-
member:
|
|
1206
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1207
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1208
1208
|
user: better_auth0.User & Record<string, any>;
|
|
1209
|
-
organization:
|
|
1209
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1210
1210
|
}) => Promise<void>;
|
|
1211
1211
|
beforeUpdateMemberRole: ({
|
|
1212
1212
|
member,
|
|
1213
1213
|
organization: org,
|
|
1214
1214
|
newRole
|
|
1215
1215
|
}: {
|
|
1216
|
-
member:
|
|
1216
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1217
1217
|
newRole: string;
|
|
1218
1218
|
user: better_auth0.User & Record<string, any>;
|
|
1219
|
-
organization:
|
|
1219
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1220
1220
|
}) => Promise<void>;
|
|
1221
1221
|
afterRemoveMember: ({
|
|
1222
1222
|
member,
|
|
1223
1223
|
organization: org
|
|
1224
1224
|
}: {
|
|
1225
|
-
member:
|
|
1225
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1226
1226
|
user: better_auth0.User & Record<string, any>;
|
|
1227
|
-
organization:
|
|
1227
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1228
1228
|
}) => Promise<void>;
|
|
1229
1229
|
};
|
|
1230
1230
|
}>;
|
|
@@ -1561,8 +1561,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1561
1561
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1562
1562
|
};
|
|
1563
1563
|
options: Partial<{
|
|
1564
|
-
expiresIn:
|
|
1565
|
-
interval:
|
|
1564
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1565
|
+
interval: better_auth_plugins20.TimeString;
|
|
1566
1566
|
deviceCodeLength: number;
|
|
1567
1567
|
userCodeLength: number;
|
|
1568
1568
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 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 "project" | "organization" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -8,7 +8,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
10
|
import "./index.js";
|
|
11
|
-
import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, 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
|
+
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";
|
|
12
12
|
import { z } from "@hono/zod-openapi";
|
|
13
13
|
|
|
14
14
|
//#region src/client-exports.d.ts
|
|
@@ -307,12 +307,8 @@ type InternalAgentDefinition = z.infer<typeof FullAgentAgentInsertSchema>;
|
|
|
307
307
|
type ExternalAgentDefinition = z.infer<typeof ExternalAgentApiInsertSchema>;
|
|
308
308
|
type TenantParams = z.infer<typeof TenantParamsSchema>;
|
|
309
309
|
type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
310
|
-
declare const MIN_ID_LENGTH = 1;
|
|
311
|
-
declare const MAX_ID_LENGTH = 255;
|
|
312
|
-
declare const URL_SAFE_ID_PATTERN: RegExp;
|
|
313
|
-
declare const resourceIdSchema: z.ZodString;
|
|
314
310
|
declare function generateIdFromName(name: string): string;
|
|
315
311
|
type ToolInsert = ToolApiInsert;
|
|
316
312
|
type AgentAgentInsert = AgentAgentApiInsert;
|
|
317
313
|
//#endregion
|
|
318
|
-
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsert, AgentAgentApiInsertSchema, AgentAgentInsert, AgentApiInsert, AgentApiInsertSchema, type AgentStopWhen, AgentStopWhenSchema, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdateResponse, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, ContextConfigApiInsert, ContextConfigApiInsertSchema, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, ErrorResponse, ErrorResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentDefinition, FIELD_TYPES, FullAgentDefinition, FullAgentDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, InternalAgentDefinition, ListResponseSchema,
|
|
314
|
+
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsert, AgentAgentApiInsertSchema, AgentAgentInsert, AgentApiInsert, AgentApiInsertSchema, type AgentStopWhen, AgentStopWhenSchema, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdateResponse, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, ContextConfigApiInsert, ContextConfigApiInsertSchema, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, ErrorResponse, ErrorResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentDefinition, FIELD_TYPES, FullAgentDefinition, FullAgentDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, InternalAgentDefinition, ListResponseSchema, MCPTransportType, type ModelSettings, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, type OrgRole, OrgRoles, PANEL_TYPES, PaginationSchema, type ProjectRole, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, type SignatureSource, type SignatureVerificationConfig, SignatureVerificationConfigSchema, type SignedComponent, SingleResponseSchema, type StopWhen, StopWhenSchema, type SubAgentStopWhen, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsert, ToolApiInsertSchema, ToolInsert, TriggerApiInsert, TriggerApiInsertSchema, TriggerApiSelect, TriggerApiSelectSchema, TriggerApiUpdate, TriggerApiUpdateSchema, TriggerInvocationApiSelect, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
|
package/dist/client-exports.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { schemaValidationDefaults } from "./constants/schema-validation/defaults.js";
|
|
2
2
|
import { CredentialStoreType, MCPTransportType } from "./types/utility.js";
|
|
3
|
-
import { AgentStopWhenSchema, ArtifactComponentApiInsertSchema as ArtifactComponentApiInsertSchema$1, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, SignatureVerificationConfigSchema, StopWhenSchema, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
|
|
4
|
-
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
5
3
|
import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
4
|
+
import { AgentStopWhenSchema, ArtifactComponentApiInsertSchema as ArtifactComponentApiInsertSchema$1, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, MAX_ID_LENGTH, ModelSettingsSchema, ResourceIdSchema, SignatureVerificationConfigSchema, StopWhenSchema, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
|
|
5
|
+
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
6
6
|
import { OrgRoles, ProjectRoles } from "./auth/authz/config.js";
|
|
7
7
|
import { CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, parseContextBreakdownFromSpan } from "./constants/context-breakdown.js";
|
|
8
8
|
import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from "./constants/otel-attributes.js";
|
|
@@ -160,13 +160,9 @@ const FullAgentDefinitionSchema = AgentAgentApiInsertSchema.extend({
|
|
|
160
160
|
})).optional()
|
|
161
161
|
}).optional()
|
|
162
162
|
});
|
|
163
|
-
const MIN_ID_LENGTH = 1;
|
|
164
|
-
const MAX_ID_LENGTH = 255;
|
|
165
|
-
const URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
166
|
-
const resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, { message: "ID must contain only letters, numbers, hyphens, underscores, and dots" });
|
|
167
163
|
function generateIdFromName(name) {
|
|
168
164
|
return name.toLowerCase().replace(/[^a-zA-Z0-9]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").slice(0, MAX_ID_LENGTH);
|
|
169
165
|
}
|
|
170
166
|
|
|
171
167
|
//#endregion
|
|
172
|
-
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsertSchema, AgentApiInsertSchema, AgentStopWhenSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FIELD_TYPES, FullAgentDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, ListResponseSchema,
|
|
168
|
+
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsertSchema, AgentApiInsertSchema, AgentStopWhenSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FIELD_TYPES, FullAgentDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, ListResponseSchema, MCPTransportType, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, OrgRoles, PANEL_TYPES, PaginationSchema, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, SignatureVerificationConfigSchema, SingleResponseSchema, StopWhenSchema, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { projects, subAgentFunctionToolRelations, subAgentToolRelations, subAgents } from "../../db/manage/manage-schema.js";
|
|
2
|
-
import { generateId } from "../../utils/conversations.js";
|
|
3
2
|
import { validateAgentStructure, validateAndTypeAgentData } from "../../validation/agentFull.js";
|
|
3
|
+
import { generateId } from "../../utils/conversations.js";
|
|
4
4
|
import { upsertContextConfig } from "./contextConfigs.js";
|
|
5
5
|
import { upsertFunction } from "./functions.js";
|
|
6
6
|
import { deleteFunctionTool, listFunctionTools, upsertFunctionTool, upsertSubAgentFunctionToolRelation } from "./functionTools.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { artifactComponents, subAgentArtifactComponents, subAgentRelations, subAgents } from "../../db/manage/manage-schema.js";
|
|
2
2
|
import { validatePropsAsJsonSchema } from "../../validation/props-validation.js";
|
|
3
|
-
import { generateId } from "../../utils/conversations.js";
|
|
4
3
|
import { validateRender } from "../../validation/render-validation.js";
|
|
4
|
+
import { generateId } from "../../utils/conversations.js";
|
|
5
5
|
import { and, count, desc, eq } from "drizzle-orm";
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/manage/artifactComponents.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { dataComponents, subAgentDataComponents } from "../../db/manage/manage-schema.js";
|
|
2
2
|
import { validatePropsAsJsonSchema } from "../../validation/props-validation.js";
|
|
3
|
+
import { validateRender } from "../../validation/render-validation.js";
|
|
3
4
|
import { generateId } from "../../utils/conversations.js";
|
|
4
5
|
import { createApiError } from "../../utils/error.js";
|
|
5
6
|
import "../../utils/index.js";
|
|
6
|
-
import { validateRender } from "../../validation/render-validation.js";
|
|
7
7
|
import { and, count, desc, eq } from "drizzle-orm";
|
|
8
8
|
|
|
9
9
|
//#region src/data-access/manage/dataComponents.ts
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -24,12 +24,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
24
24
|
updatedAt: string;
|
|
25
25
|
userId: string | null;
|
|
26
26
|
metadata: ConversationMetadata | null;
|
|
27
|
-
activeSubAgentId: string;
|
|
28
27
|
ref: {
|
|
29
|
-
type: "
|
|
28
|
+
type: "tag" | "commit" | "branch";
|
|
30
29
|
name: string;
|
|
31
30
|
hash: string;
|
|
32
31
|
} | null;
|
|
32
|
+
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
35
35
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -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;
|
|
@@ -93,12 +93,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
93
93
|
updatedAt: string;
|
|
94
94
|
userId: string | null;
|
|
95
95
|
metadata: ConversationMetadata | null;
|
|
96
|
-
activeSubAgentId: string;
|
|
97
96
|
ref: {
|
|
98
|
-
type: "
|
|
97
|
+
type: "tag" | "commit" | "branch";
|
|
99
98
|
name: string;
|
|
100
99
|
hash: string;
|
|
101
100
|
} | null;
|
|
101
|
+
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
104
104
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
@@ -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
|
};
|
|
@@ -129,12 +129,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
129
129
|
updatedAt: string;
|
|
130
130
|
userId: string | null;
|
|
131
131
|
metadata: ConversationMetadata | null;
|
|
132
|
-
activeSubAgentId: string;
|
|
133
132
|
ref: {
|
|
134
|
-
type: "
|
|
133
|
+
type: "tag" | "commit" | "branch";
|
|
135
134
|
name: string;
|
|
136
135
|
hash: string;
|
|
137
136
|
} | null;
|
|
137
|
+
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
140
140
|
/**
|
|
@@ -161,12 +161,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
161
161
|
updatedAt: string;
|
|
162
162
|
userId: string | null;
|
|
163
163
|
metadata: ConversationMetadata | null;
|
|
164
|
-
activeSubAgentId: string;
|
|
165
164
|
ref: {
|
|
166
|
-
type: "
|
|
165
|
+
type: "tag" | "commit" | "branch";
|
|
167
166
|
name: string;
|
|
168
167
|
hash: string;
|
|
169
168
|
} | null;
|
|
169
|
+
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
172
172
|
/**
|
|
@@ -16,19 +16,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
|
-
conversationId: string;
|
|
20
19
|
role: string;
|
|
21
20
|
fromSubAgentId: string | null;
|
|
22
21
|
toSubAgentId: string | null;
|
|
23
22
|
fromExternalAgentId: string | null;
|
|
24
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
conversationId: string;
|
|
25
27
|
fromTeamAgentId: string | null;
|
|
26
28
|
toTeamAgentId: string | null;
|
|
27
29
|
visibility: string;
|
|
28
30
|
messageType: string;
|
|
29
|
-
taskId: string | null;
|
|
30
31
|
parentMessageId: string | null;
|
|
31
|
-
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -147,19 +147,19 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
147
147
|
updatedAt: string;
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
|
-
conversationId: string;
|
|
151
150
|
role: string;
|
|
152
151
|
fromSubAgentId: string | null;
|
|
153
152
|
toSubAgentId: string | null;
|
|
154
153
|
fromExternalAgentId: string | null;
|
|
155
154
|
toExternalAgentId: string | null;
|
|
155
|
+
taskId: string | null;
|
|
156
|
+
a2aTaskId: string | null;
|
|
157
|
+
conversationId: string;
|
|
156
158
|
fromTeamAgentId: string | null;
|
|
157
159
|
toTeamAgentId: string | null;
|
|
158
160
|
visibility: string;
|
|
159
161
|
messageType: string;
|
|
160
|
-
taskId: string | null;
|
|
161
162
|
parentMessageId: string | null;
|
|
162
|
-
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -200,19 +200,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
200
200
|
updatedAt: string;
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
|
-
conversationId: string;
|
|
204
203
|
role: string;
|
|
205
204
|
fromSubAgentId: string | null;
|
|
206
205
|
toSubAgentId: string | null;
|
|
207
206
|
fromExternalAgentId: string | null;
|
|
208
207
|
toExternalAgentId: string | null;
|
|
208
|
+
taskId: string | null;
|
|
209
|
+
a2aTaskId: string | null;
|
|
210
|
+
conversationId: string;
|
|
209
211
|
fromTeamAgentId: string | null;
|
|
210
212
|
toTeamAgentId: string | null;
|
|
211
213
|
visibility: string;
|
|
212
214
|
messageType: string;
|
|
213
|
-
taskId: string | null;
|
|
214
215
|
parentMessageId: string | null;
|
|
215
|
-
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -14,13 +14,13 @@ 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;
|
|
21
21
|
status: string;
|
|
22
|
-
contextId: string;
|
|
23
22
|
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|
|
@@ -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;
|