@inkeep/agents-core 0.0.0-dev-20260226222604 → 0.0.0-dev-20260227004242
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 +135 -135
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +447 -447
- package/dist/db/runtime/runtime-schema.d.ts +290 -290
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +254 -254
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as zod0 from "zod";
|
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
5
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
6
6
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
7
|
-
import * as
|
|
7
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
8
8
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
9
9
|
|
|
10
10
|
//#region src/auth/auth.d.ts
|
|
@@ -252,7 +252,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
252
252
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
253
253
|
}[];
|
|
254
254
|
};
|
|
255
|
-
options:
|
|
255
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
256
256
|
}, {
|
|
257
257
|
id: "sso";
|
|
258
258
|
endpoints: {
|
|
@@ -1243,30 +1243,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1243
1243
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
1244
1244
|
}[];
|
|
1245
1245
|
};
|
|
1246
|
-
},
|
|
1246
|
+
}, better_auth_plugins20.DefaultOrganizationPlugin<{
|
|
1247
1247
|
allowUserToCreateOrganization: true;
|
|
1248
|
-
ac:
|
|
1248
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1249
1249
|
roles: {
|
|
1250
1250
|
member: {
|
|
1251
|
-
authorize<K_1 extends "
|
|
1252
|
-
actions:
|
|
1251
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1252
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1253
1253
|
connector: "OR" | "AND";
|
|
1254
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1255
|
-
statements:
|
|
1254
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1255
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1256
1256
|
};
|
|
1257
1257
|
admin: {
|
|
1258
|
-
authorize<K_1 extends "
|
|
1259
|
-
actions:
|
|
1258
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1259
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1260
1260
|
connector: "OR" | "AND";
|
|
1261
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1262
|
-
statements:
|
|
1261
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1262
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1263
1263
|
};
|
|
1264
1264
|
owner: {
|
|
1265
|
-
authorize<K_1 extends "
|
|
1266
|
-
actions:
|
|
1265
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1266
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1267
1267
|
connector: "OR" | "AND";
|
|
1268
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1269
|
-
statements:
|
|
1268
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1269
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1270
1270
|
};
|
|
1271
1271
|
};
|
|
1272
1272
|
creatorRole: "admin";
|
|
@@ -1277,9 +1277,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1277
1277
|
id: string;
|
|
1278
1278
|
role: string;
|
|
1279
1279
|
email: string;
|
|
1280
|
-
organization:
|
|
1281
|
-
invitation:
|
|
1282
|
-
inviter:
|
|
1280
|
+
organization: better_auth_plugins20.Organization;
|
|
1281
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1282
|
+
inviter: better_auth_plugins20.Member & {
|
|
1283
1283
|
user: better_auth0.User;
|
|
1284
1284
|
};
|
|
1285
1285
|
}): Promise<void>;
|
|
@@ -1314,28 +1314,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1314
1314
|
user,
|
|
1315
1315
|
organization: org
|
|
1316
1316
|
}: {
|
|
1317
|
-
invitation:
|
|
1318
|
-
member:
|
|
1317
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1318
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1319
1319
|
user: better_auth0.User & Record<string, any>;
|
|
1320
|
-
organization:
|
|
1320
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1321
1321
|
}) => Promise<void>;
|
|
1322
1322
|
beforeUpdateMemberRole: ({
|
|
1323
1323
|
member,
|
|
1324
1324
|
organization: org,
|
|
1325
1325
|
newRole
|
|
1326
1326
|
}: {
|
|
1327
|
-
member:
|
|
1327
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1328
1328
|
newRole: string;
|
|
1329
1329
|
user: better_auth0.User & Record<string, any>;
|
|
1330
|
-
organization:
|
|
1330
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1331
1331
|
}) => Promise<void>;
|
|
1332
1332
|
beforeRemoveMember: ({
|
|
1333
1333
|
member,
|
|
1334
1334
|
organization: org
|
|
1335
1335
|
}: {
|
|
1336
|
-
member:
|
|
1336
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1337
1337
|
user: better_auth0.User & Record<string, any>;
|
|
1338
|
-
organization:
|
|
1338
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1339
1339
|
}) => Promise<void>;
|
|
1340
1340
|
};
|
|
1341
1341
|
}>, {
|
|
@@ -1676,8 +1676,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1676
1676
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1677
1677
|
};
|
|
1678
1678
|
options: Partial<{
|
|
1679
|
-
expiresIn:
|
|
1680
|
-
interval:
|
|
1679
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1680
|
+
interval: better_auth_plugins20.TimeString;
|
|
1681
1681
|
deviceCodeLength: number;
|
|
1682
1682
|
userCodeLength: number;
|
|
1683
1683
|
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 "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "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<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "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<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "project" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "team" | "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<"organization" | "member" | "project" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -17,19 +17,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
metadata: MessageMetadata | null;
|
|
19
19
|
content: MessageContent;
|
|
20
|
+
conversationId: string;
|
|
21
|
+
role: string;
|
|
20
22
|
fromSubAgentId: string | null;
|
|
21
23
|
toSubAgentId: string | null;
|
|
22
24
|
fromExternalAgentId: string | null;
|
|
23
25
|
toExternalAgentId: string | null;
|
|
24
|
-
taskId: string | null;
|
|
25
|
-
a2aTaskId: string | null;
|
|
26
|
-
conversationId: string;
|
|
27
|
-
role: string;
|
|
28
26
|
fromTeamAgentId: string | null;
|
|
29
27
|
toTeamAgentId: string | null;
|
|
30
28
|
visibility: string;
|
|
31
29
|
messageType: string;
|
|
30
|
+
taskId: string | null;
|
|
32
31
|
parentMessageId: string | null;
|
|
32
|
+
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -148,19 +148,19 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
148
148
|
updatedAt: string;
|
|
149
149
|
metadata: MessageMetadata | null;
|
|
150
150
|
content: MessageContent;
|
|
151
|
+
conversationId: string;
|
|
152
|
+
role: string;
|
|
151
153
|
fromSubAgentId: string | null;
|
|
152
154
|
toSubAgentId: string | null;
|
|
153
155
|
fromExternalAgentId: string | null;
|
|
154
156
|
toExternalAgentId: string | null;
|
|
155
|
-
taskId: string | null;
|
|
156
|
-
a2aTaskId: string | null;
|
|
157
|
-
conversationId: string;
|
|
158
|
-
role: string;
|
|
159
157
|
fromTeamAgentId: string | null;
|
|
160
158
|
toTeamAgentId: string | null;
|
|
161
159
|
visibility: string;
|
|
162
160
|
messageType: string;
|
|
161
|
+
taskId: string | null;
|
|
163
162
|
parentMessageId: string | null;
|
|
163
|
+
a2aTaskId: string | null;
|
|
164
164
|
a2aSessionId: string | null;
|
|
165
165
|
}>;
|
|
166
166
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -201,19 +201,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
201
201
|
updatedAt: string;
|
|
202
202
|
metadata: MessageMetadata | null;
|
|
203
203
|
content: MessageContent;
|
|
204
|
+
conversationId: string;
|
|
205
|
+
role: string;
|
|
204
206
|
fromSubAgentId: string | null;
|
|
205
207
|
toSubAgentId: string | null;
|
|
206
208
|
fromExternalAgentId: string | null;
|
|
207
209
|
toExternalAgentId: string | null;
|
|
208
|
-
taskId: string | null;
|
|
209
|
-
a2aTaskId: string | null;
|
|
210
|
-
conversationId: string;
|
|
211
|
-
role: string;
|
|
212
210
|
fromTeamAgentId: string | null;
|
|
213
211
|
toTeamAgentId: string | null;
|
|
214
212
|
visibility: string;
|
|
215
213
|
messageType: string;
|
|
214
|
+
taskId: string | null;
|
|
216
215
|
parentMessageId: string | null;
|
|
216
|
+
a2aTaskId: string | null;
|
|
217
217
|
a2aSessionId: string | null;
|
|
218
218
|
}>;
|
|
219
219
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -13,7 +13,6 @@ 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
|
contextId: string;
|
|
19
18
|
ref: {
|
|
@@ -21,6 +20,7 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
21
20
|
name: string;
|
|
22
21
|
hash: string;
|
|
23
22
|
} | null;
|
|
23
|
+
subAgentId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|