@inkeep/agents-core 0.0.0-dev-20260223201726 → 0.0.0-dev-20260223213559
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 +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +57 -57
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/skills.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +3 -3
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +353 -353
- package/dist/db/runtime/runtime-schema.d.ts +294 -294
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +3 -1
- package/dist/utils/error.js +11 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1537 -1537
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as zod0 from "zod";
|
|
|
3
3
|
import * as better_auth0 from "better-auth";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
5
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
9
9
|
//#region src/auth/auth.d.ts
|
|
@@ -247,7 +247,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
247
247
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
248
248
|
}[];
|
|
249
249
|
};
|
|
250
|
-
options:
|
|
250
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
id: "sso";
|
|
253
253
|
endpoints: {
|
|
@@ -875,30 +875,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
875
875
|
};
|
|
876
876
|
}, {
|
|
877
877
|
id: "organization";
|
|
878
|
-
endpoints:
|
|
878
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
879
879
|
allowUserToCreateOrganization: true;
|
|
880
|
-
ac:
|
|
880
|
+
ac: better_auth_plugins20.AccessControl;
|
|
881
881
|
roles: {
|
|
882
882
|
member: {
|
|
883
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
884
|
-
actions:
|
|
883
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
884
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
885
885
|
connector: "OR" | "AND";
|
|
886
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
887
|
-
statements:
|
|
886
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
887
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
888
888
|
};
|
|
889
889
|
admin: {
|
|
890
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
891
|
-
actions:
|
|
890
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
891
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
892
892
|
connector: "OR" | "AND";
|
|
893
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
894
|
-
statements:
|
|
893
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
894
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
895
895
|
};
|
|
896
896
|
owner: {
|
|
897
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
898
|
-
actions:
|
|
897
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
898
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
899
899
|
connector: "OR" | "AND";
|
|
900
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
901
|
-
statements:
|
|
900
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
901
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
902
902
|
};
|
|
903
903
|
};
|
|
904
904
|
creatorRole: "admin";
|
|
@@ -909,9 +909,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
909
909
|
id: string;
|
|
910
910
|
role: string;
|
|
911
911
|
email: string;
|
|
912
|
-
organization:
|
|
913
|
-
invitation:
|
|
914
|
-
inviter:
|
|
912
|
+
organization: better_auth_plugins20.Organization;
|
|
913
|
+
invitation: better_auth_plugins20.Invitation;
|
|
914
|
+
inviter: better_auth_plugins20.Member & {
|
|
915
915
|
user: better_auth0.User;
|
|
916
916
|
};
|
|
917
917
|
}): Promise<void>;
|
|
@@ -946,28 +946,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
946
946
|
user,
|
|
947
947
|
organization: org
|
|
948
948
|
}: {
|
|
949
|
-
invitation:
|
|
950
|
-
member:
|
|
949
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
950
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
951
951
|
user: better_auth0.User & Record<string, any>;
|
|
952
|
-
organization:
|
|
952
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
953
953
|
}) => Promise<void>;
|
|
954
954
|
beforeUpdateMemberRole: ({
|
|
955
955
|
member,
|
|
956
956
|
organization: org,
|
|
957
957
|
newRole
|
|
958
958
|
}: {
|
|
959
|
-
member:
|
|
959
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
960
960
|
newRole: string;
|
|
961
961
|
user: better_auth0.User & Record<string, any>;
|
|
962
|
-
organization:
|
|
962
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
963
963
|
}) => Promise<void>;
|
|
964
964
|
beforeRemoveMember: ({
|
|
965
965
|
member,
|
|
966
966
|
organization: org
|
|
967
967
|
}: {
|
|
968
|
-
member:
|
|
968
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
969
969
|
user: better_auth0.User & Record<string, any>;
|
|
970
|
-
organization:
|
|
970
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
971
971
|
}) => Promise<void>;
|
|
972
972
|
};
|
|
973
973
|
}>;
|
|
@@ -1100,8 +1100,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1100
1100
|
id: string;
|
|
1101
1101
|
organizationId: string;
|
|
1102
1102
|
email: string;
|
|
1103
|
-
role: "
|
|
1104
|
-
status:
|
|
1103
|
+
role: "owner" | "admin" | "member";
|
|
1104
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1105
1105
|
inviterId: string;
|
|
1106
1106
|
expiresAt: Date;
|
|
1107
1107
|
createdAt: Date;
|
|
@@ -1110,7 +1110,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1110
1110
|
Member: {
|
|
1111
1111
|
id: string;
|
|
1112
1112
|
organizationId: string;
|
|
1113
|
-
role: "
|
|
1113
|
+
role: "owner" | "admin" | "member";
|
|
1114
1114
|
createdAt: Date;
|
|
1115
1115
|
userId: string;
|
|
1116
1116
|
user: {
|
|
@@ -1126,7 +1126,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1126
1126
|
members: {
|
|
1127
1127
|
id: string;
|
|
1128
1128
|
organizationId: string;
|
|
1129
|
-
role: "
|
|
1129
|
+
role: "owner" | "admin" | "member";
|
|
1130
1130
|
createdAt: Date;
|
|
1131
1131
|
userId: string;
|
|
1132
1132
|
user: {
|
|
@@ -1140,8 +1140,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1140
1140
|
id: string;
|
|
1141
1141
|
organizationId: string;
|
|
1142
1142
|
email: string;
|
|
1143
|
-
role: "
|
|
1144
|
-
status:
|
|
1143
|
+
role: "owner" | "admin" | "member";
|
|
1144
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1145
1145
|
inviterId: string;
|
|
1146
1146
|
expiresAt: Date;
|
|
1147
1147
|
createdAt: Date;
|
|
@@ -1218,28 +1218,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1218
1218
|
};
|
|
1219
1219
|
options: NoInfer<{
|
|
1220
1220
|
allowUserToCreateOrganization: true;
|
|
1221
|
-
ac:
|
|
1221
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1222
1222
|
roles: {
|
|
1223
1223
|
member: {
|
|
1224
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
1225
|
-
actions:
|
|
1224
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1225
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1226
1226
|
connector: "OR" | "AND";
|
|
1227
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1228
|
-
statements:
|
|
1227
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1228
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1229
1229
|
};
|
|
1230
1230
|
admin: {
|
|
1231
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
1232
|
-
actions:
|
|
1231
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1232
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1233
1233
|
connector: "OR" | "AND";
|
|
1234
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1235
|
-
statements:
|
|
1234
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1235
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1236
1236
|
};
|
|
1237
1237
|
owner: {
|
|
1238
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
1239
|
-
actions:
|
|
1238
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1239
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1240
1240
|
connector: "OR" | "AND";
|
|
1241
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1242
|
-
statements:
|
|
1241
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1242
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1243
1243
|
};
|
|
1244
1244
|
};
|
|
1245
1245
|
creatorRole: "admin";
|
|
@@ -1250,9 +1250,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1250
1250
|
id: string;
|
|
1251
1251
|
role: string;
|
|
1252
1252
|
email: string;
|
|
1253
|
-
organization:
|
|
1254
|
-
invitation:
|
|
1255
|
-
inviter:
|
|
1253
|
+
organization: better_auth_plugins20.Organization;
|
|
1254
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1255
|
+
inviter: better_auth_plugins20.Member & {
|
|
1256
1256
|
user: better_auth0.User;
|
|
1257
1257
|
};
|
|
1258
1258
|
}): Promise<void>;
|
|
@@ -1287,28 +1287,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1287
1287
|
user,
|
|
1288
1288
|
organization: org
|
|
1289
1289
|
}: {
|
|
1290
|
-
invitation:
|
|
1291
|
-
member:
|
|
1290
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1291
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1292
1292
|
user: better_auth0.User & Record<string, any>;
|
|
1293
|
-
organization:
|
|
1293
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1294
1294
|
}) => Promise<void>;
|
|
1295
1295
|
beforeUpdateMemberRole: ({
|
|
1296
1296
|
member,
|
|
1297
1297
|
organization: org,
|
|
1298
1298
|
newRole
|
|
1299
1299
|
}: {
|
|
1300
|
-
member:
|
|
1300
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1301
1301
|
newRole: string;
|
|
1302
1302
|
user: better_auth0.User & Record<string, any>;
|
|
1303
|
-
organization:
|
|
1303
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1304
1304
|
}) => Promise<void>;
|
|
1305
1305
|
beforeRemoveMember: ({
|
|
1306
1306
|
member,
|
|
1307
1307
|
organization: org
|
|
1308
1308
|
}: {
|
|
1309
|
-
member:
|
|
1309
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1310
1310
|
user: better_auth0.User & Record<string, any>;
|
|
1311
|
-
organization:
|
|
1311
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1312
1312
|
}) => Promise<void>;
|
|
1313
1313
|
};
|
|
1314
1314
|
}>;
|
|
@@ -1645,8 +1645,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1645
1645
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1646
1646
|
};
|
|
1647
1647
|
options: Partial<{
|
|
1648
|
-
expiresIn:
|
|
1649
|
-
interval:
|
|
1648
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1649
|
+
interval: better_auth_plugins20.TimeString;
|
|
1650
1650
|
deviceCodeLength: number;
|
|
1651
1651
|
userCodeLength: number;
|
|
1652
1652
|
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" | "member" | "invitation" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", 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" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", 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" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", 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" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -99,8 +99,8 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
99
99
|
updatedAt: string;
|
|
100
100
|
index: number;
|
|
101
101
|
alwaysLoaded: boolean;
|
|
102
|
-
subAgentId: string;
|
|
103
102
|
skillId: string;
|
|
103
|
+
subAgentId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -16,10 +16,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
|
-
lastUsedAt: string | null;
|
|
20
19
|
publicId: string;
|
|
21
20
|
keyHash: string;
|
|
22
21
|
keyPrefix: string;
|
|
22
|
+
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
@@ -30,10 +30,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
30
30
|
createdAt: string;
|
|
31
31
|
updatedAt: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
|
-
lastUsedAt: string | null;
|
|
34
33
|
publicId: string;
|
|
35
34
|
keyHash: string;
|
|
36
35
|
keyPrefix: string;
|
|
36
|
+
lastUsedAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -47,10 +47,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
|
-
lastUsedAt: string | null;
|
|
51
50
|
publicId: string;
|
|
52
51
|
keyHash: string;
|
|
53
52
|
keyPrefix: string;
|
|
53
|
+
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -74,10 +74,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
74
74
|
createdAt: string;
|
|
75
75
|
updatedAt: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
|
-
lastUsedAt: string | null;
|
|
78
77
|
publicId: string;
|
|
79
78
|
keyHash: string;
|
|
80
79
|
keyPrefix: string;
|
|
80
|
+
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -17,8 +17,8 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
metadata: MessageMetadata | null;
|
|
19
19
|
content: MessageContent;
|
|
20
|
-
conversationId: string;
|
|
21
20
|
role: string;
|
|
21
|
+
conversationId: string;
|
|
22
22
|
fromSubAgentId: string | null;
|
|
23
23
|
toSubAgentId: string | null;
|
|
24
24
|
fromExternalAgentId: string | null;
|
|
@@ -148,8 +148,8 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
148
148
|
updatedAt: string;
|
|
149
149
|
metadata: MessageMetadata | null;
|
|
150
150
|
content: MessageContent;
|
|
151
|
-
conversationId: string;
|
|
152
151
|
role: string;
|
|
152
|
+
conversationId: string;
|
|
153
153
|
fromSubAgentId: string | null;
|
|
154
154
|
toSubAgentId: string | null;
|
|
155
155
|
fromExternalAgentId: string | null;
|
|
@@ -201,8 +201,8 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
201
201
|
updatedAt: string;
|
|
202
202
|
metadata: MessageMetadata | null;
|
|
203
203
|
content: MessageContent;
|
|
204
|
-
conversationId: string;
|
|
205
204
|
role: string;
|
|
205
|
+
conversationId: string;
|
|
206
206
|
fromSubAgentId: string | null;
|
|
207
207
|
toSubAgentId: string | null;
|
|
208
208
|
fromExternalAgentId: string | null;
|
|
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
34
34
|
}) => Promise<{
|
|
35
35
|
data: {
|
|
36
36
|
scheduledTriggerId: string;
|
|
37
|
-
status: "pending" | "
|
|
37
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
38
38
|
scheduledFor: string;
|
|
39
39
|
startedAt: string | null;
|
|
40
40
|
completedAt: string | null;
|
|
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
174
174
|
}) => Promise<{
|
|
175
175
|
data: {
|
|
176
176
|
scheduledTriggerId: string;
|
|
177
|
-
status: "pending" | "
|
|
177
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
178
178
|
scheduledFor: string;
|
|
179
179
|
startedAt: string | null;
|
|
180
180
|
completedAt: string | null;
|
|
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
208
208
|
}) => Promise<{
|
|
209
209
|
data: {
|
|
210
210
|
scheduledTriggerId: string;
|
|
211
|
-
status: "pending" | "
|
|
211
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
212
212
|
scheduledFor: string;
|
|
213
213
|
startedAt: string | null;
|
|
214
214
|
completedAt: string | null;
|
|
@@ -13,14 +13,14 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
metadata: TaskMetadataConfig | null;
|
|
16
|
-
subAgentId: string;
|
|
17
16
|
status: string;
|
|
18
|
-
|
|
17
|
+
subAgentId: string;
|
|
19
18
|
ref: {
|
|
20
19
|
type: "commit" | "tag" | "branch";
|
|
21
20
|
name: string;
|
|
22
21
|
hash: string;
|
|
23
22
|
} | null;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|