@inkeep/agents-core 0.0.0-dev-20260311032321 → 0.0.0-dev-20260311051611
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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/skills.d.ts +1 -1
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +324 -324
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1520 -1520
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
import * as drizzle_orm_pg_core1481 from "drizzle-orm/pg-core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as drizzle_zod361 from "drizzle-zod";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/auth-validation-schemas.d.ts
|
|
6
|
-
declare const UserSelectSchema:
|
|
6
|
+
declare const UserSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
7
7
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
8
8
|
name: "id";
|
|
9
9
|
tableName: "user";
|
|
@@ -124,7 +124,7 @@ declare const UserSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
124
124
|
generated: undefined;
|
|
125
125
|
}, {}, {}>;
|
|
126
126
|
}, undefined, undefined>;
|
|
127
|
-
declare const UserInsertSchema:
|
|
127
|
+
declare const UserInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
128
128
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
129
129
|
name: "id";
|
|
130
130
|
tableName: "user";
|
|
@@ -245,7 +245,7 @@ declare const UserInsertSchema: drizzle_zod365.BuildSchema<"insert", {
|
|
|
245
245
|
generated: undefined;
|
|
246
246
|
}, {}, {}>;
|
|
247
247
|
}, undefined, undefined>;
|
|
248
|
-
declare const SessionSelectSchema:
|
|
248
|
+
declare const SessionSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
249
249
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
250
250
|
name: "id";
|
|
251
251
|
tableName: "session";
|
|
@@ -400,7 +400,7 @@ declare const SessionSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
400
400
|
generated: undefined;
|
|
401
401
|
}, {}, {}>;
|
|
402
402
|
}, undefined, undefined>;
|
|
403
|
-
declare const SessionInsertSchema:
|
|
403
|
+
declare const SessionInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
404
404
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
405
405
|
name: "id";
|
|
406
406
|
tableName: "session";
|
|
@@ -555,7 +555,7 @@ declare const SessionInsertSchema: drizzle_zod365.BuildSchema<"insert", {
|
|
|
555
555
|
generated: undefined;
|
|
556
556
|
}, {}, {}>;
|
|
557
557
|
}, undefined, undefined>;
|
|
558
|
-
declare const AccountSelectSchema:
|
|
558
|
+
declare const AccountSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
559
559
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
560
560
|
name: "id";
|
|
561
561
|
tableName: "account";
|
|
@@ -778,7 +778,7 @@ declare const AccountSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
778
778
|
generated: undefined;
|
|
779
779
|
}, {}, {}>;
|
|
780
780
|
}, undefined, undefined>;
|
|
781
|
-
declare const AccountInsertSchema:
|
|
781
|
+
declare const AccountInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
782
782
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
783
783
|
name: "id";
|
|
784
784
|
tableName: "account";
|
|
@@ -1001,7 +1001,7 @@ declare const AccountInsertSchema: drizzle_zod365.BuildSchema<"insert", {
|
|
|
1001
1001
|
generated: undefined;
|
|
1002
1002
|
}, {}, {}>;
|
|
1003
1003
|
}, undefined, undefined>;
|
|
1004
|
-
declare const OrganizationSelectSchema:
|
|
1004
|
+
declare const OrganizationSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
1005
1005
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1006
1006
|
name: "id";
|
|
1007
1007
|
tableName: "organization";
|
|
@@ -1139,7 +1139,7 @@ declare const OrganizationSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
1139
1139
|
generated: undefined;
|
|
1140
1140
|
}, {}, {}>;
|
|
1141
1141
|
}, undefined, undefined>;
|
|
1142
|
-
declare const OrganizationInsertSchema:
|
|
1142
|
+
declare const OrganizationInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
1143
1143
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1144
1144
|
name: "id";
|
|
1145
1145
|
tableName: "organization";
|
|
@@ -1277,7 +1277,7 @@ declare const OrganizationInsertSchema: drizzle_zod365.BuildSchema<"insert", {
|
|
|
1277
1277
|
generated: undefined;
|
|
1278
1278
|
}, {}, {}>;
|
|
1279
1279
|
}, undefined, undefined>;
|
|
1280
|
-
declare const MemberSelectSchema:
|
|
1280
|
+
declare const MemberSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
1281
1281
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1282
1282
|
name: "id";
|
|
1283
1283
|
tableName: "member";
|
|
@@ -1364,7 +1364,7 @@ declare const MemberSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
1364
1364
|
generated: undefined;
|
|
1365
1365
|
}, {}, {}>;
|
|
1366
1366
|
}, undefined, undefined>;
|
|
1367
|
-
declare const MemberInsertSchema:
|
|
1367
|
+
declare const MemberInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
1368
1368
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1369
1369
|
name: "id";
|
|
1370
1370
|
tableName: "member";
|
|
@@ -1451,7 +1451,7 @@ declare const MemberInsertSchema: drizzle_zod365.BuildSchema<"insert", {
|
|
|
1451
1451
|
generated: undefined;
|
|
1452
1452
|
}, {}, {}>;
|
|
1453
1453
|
}, undefined, undefined>;
|
|
1454
|
-
declare const InvitationSelectSchema:
|
|
1454
|
+
declare const InvitationSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
1455
1455
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1456
1456
|
name: "id";
|
|
1457
1457
|
tableName: "invitation";
|
|
@@ -1606,7 +1606,7 @@ declare const InvitationSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
1606
1606
|
generated: undefined;
|
|
1607
1607
|
}, {}, {}>;
|
|
1608
1608
|
}, undefined, undefined>;
|
|
1609
|
-
declare const InvitationInsertSchema:
|
|
1609
|
+
declare const InvitationInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
1610
1610
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1611
1611
|
name: "id";
|
|
1612
1612
|
tableName: "invitation";
|
|
@@ -1761,7 +1761,7 @@ declare const InvitationInsertSchema: drizzle_zod365.BuildSchema<"insert", {
|
|
|
1761
1761
|
generated: undefined;
|
|
1762
1762
|
}, {}, {}>;
|
|
1763
1763
|
}, undefined, undefined>;
|
|
1764
|
-
declare const DeviceCodeSelectSchema:
|
|
1764
|
+
declare const DeviceCodeSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
1765
1765
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1766
1766
|
name: "id";
|
|
1767
1767
|
tableName: "device_code";
|
|
@@ -1933,7 +1933,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
1933
1933
|
generated: undefined;
|
|
1934
1934
|
}, {}, {}>;
|
|
1935
1935
|
}, undefined, undefined>;
|
|
1936
|
-
declare const DeviceCodeInsertSchema:
|
|
1936
|
+
declare const DeviceCodeInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
1937
1937
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
1938
1938
|
name: "id";
|
|
1939
1939
|
tableName: "device_code";
|
|
@@ -2105,7 +2105,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod365.BuildSchema<"insert", {
|
|
|
2105
2105
|
generated: undefined;
|
|
2106
2106
|
}, {}, {}>;
|
|
2107
2107
|
}, undefined, undefined>;
|
|
2108
|
-
declare const VerificationSelectSchema:
|
|
2108
|
+
declare const VerificationSelectSchema: drizzle_zod361.BuildSchema<"select", {
|
|
2109
2109
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
2110
2110
|
name: "id";
|
|
2111
2111
|
tableName: "verification";
|
|
@@ -2209,7 +2209,7 @@ declare const VerificationSelectSchema: drizzle_zod365.BuildSchema<"select", {
|
|
|
2209
2209
|
generated: undefined;
|
|
2210
2210
|
}, {}, {}>;
|
|
2211
2211
|
}, undefined, undefined>;
|
|
2212
|
-
declare const VerificationInsertSchema:
|
|
2212
|
+
declare const VerificationInsertSchema: drizzle_zod361.BuildSchema<"insert", {
|
|
2213
2213
|
id: drizzle_orm_pg_core1481.PgColumn<{
|
|
2214
2214
|
name: "id";
|
|
2215
2215
|
tableName: "verification";
|
package/dist/auth/auth.d.ts
CHANGED
|
@@ -1273,25 +1273,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1273
1273
|
ac: better_auth_plugins0.AccessControl;
|
|
1274
1274
|
roles: {
|
|
1275
1275
|
member: {
|
|
1276
|
-
authorize<K_1 extends "
|
|
1277
|
-
actions: better_auth_plugins0.Subset<"
|
|
1276
|
+
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] | {
|
|
1277
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1278
1278
|
connector: "OR" | "AND";
|
|
1279
1279
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1280
|
-
statements: better_auth_plugins0.Subset<"
|
|
1280
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1281
1281
|
};
|
|
1282
1282
|
admin: {
|
|
1283
|
-
authorize<K_1 extends "
|
|
1284
|
-
actions: better_auth_plugins0.Subset<"
|
|
1283
|
+
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] | {
|
|
1284
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1285
1285
|
connector: "OR" | "AND";
|
|
1286
1286
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1287
|
-
statements: better_auth_plugins0.Subset<"
|
|
1287
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1288
1288
|
};
|
|
1289
1289
|
owner: {
|
|
1290
|
-
authorize<K_1 extends "
|
|
1291
|
-
actions: better_auth_plugins0.Subset<"
|
|
1290
|
+
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] | {
|
|
1291
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1292
1292
|
connector: "OR" | "AND";
|
|
1293
1293
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1294
|
-
statements: better_auth_plugins0.Subset<"
|
|
1294
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1295
1295
|
};
|
|
1296
1296
|
};
|
|
1297
1297
|
creatorRole: "admin";
|
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "
|
|
9
|
-
actions: better_auth_plugins35.Subset<"
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins35.Subset<"
|
|
12
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions: better_auth_plugins35.Subset<"
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins35.Subset<"
|
|
19
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions: better_auth_plugins35.Subset<"
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins35.Subset<"
|
|
26
|
+
statements: better_auth_plugins35.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins35.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;
|
|
@@ -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;
|
|
@@ -15,11 +15,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
agentId: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
|
+
expiresAt: string | null;
|
|
18
19
|
publicId: string;
|
|
19
20
|
keyHash: string;
|
|
20
21
|
keyPrefix: string;
|
|
21
22
|
lastUsedAt: string | null;
|
|
22
|
-
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
@@ -29,11 +29,11 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
29
29
|
agentId: string;
|
|
30
30
|
createdAt: string;
|
|
31
31
|
updatedAt: string;
|
|
32
|
+
expiresAt: string | null;
|
|
32
33
|
publicId: string;
|
|
33
34
|
keyHash: string;
|
|
34
35
|
keyPrefix: string;
|
|
35
36
|
lastUsedAt: string | null;
|
|
36
|
-
expiresAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -46,11 +46,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
46
46
|
agentId: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
+
expiresAt: string | null;
|
|
49
50
|
publicId: string;
|
|
50
51
|
keyHash: string;
|
|
51
52
|
keyPrefix: string;
|
|
52
53
|
lastUsedAt: string | null;
|
|
53
|
-
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -73,11 +73,11 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
73
73
|
agentId: string;
|
|
74
74
|
createdAt: string;
|
|
75
75
|
updatedAt: string;
|
|
76
|
+
expiresAt: string | null;
|
|
76
77
|
publicId: string;
|
|
77
78
|
keyHash: string;
|
|
78
79
|
keyPrefix: string;
|
|
79
80
|
lastUsedAt: string | null;
|
|
80
|
-
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -5,12 +5,12 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
|
+
type: AppType;
|
|
8
9
|
id: string;
|
|
9
10
|
name: string;
|
|
10
11
|
description: string | null;
|
|
11
12
|
tenantId: string | null;
|
|
12
13
|
projectId: string | null;
|
|
13
|
-
type: AppType;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
enabled: boolean;
|
|
@@ -48,12 +48,12 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
48
48
|
};
|
|
49
49
|
}>;
|
|
50
50
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
51
|
+
type: AppType;
|
|
51
52
|
id: string;
|
|
52
53
|
name: string;
|
|
53
54
|
description: string | null;
|
|
54
55
|
tenantId: string | null;
|
|
55
56
|
projectId: string | null;
|
|
56
|
-
type: AppType;
|
|
57
57
|
createdAt: string;
|
|
58
58
|
updatedAt: string;
|
|
59
59
|
enabled: boolean;
|
|
@@ -24,12 +24,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
26
|
metadata: ConversationMetadata | null;
|
|
27
|
-
userId: string | null;
|
|
28
27
|
ref: {
|
|
29
28
|
type: "commit" | "tag" | "branch";
|
|
30
29
|
name: string;
|
|
31
30
|
hash: string;
|
|
32
31
|
} | null;
|
|
32
|
+
userId: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -93,12 +93,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
93
93
|
createdAt: string;
|
|
94
94
|
updatedAt: string;
|
|
95
95
|
metadata: ConversationMetadata | null;
|
|
96
|
-
userId: string | null;
|
|
97
96
|
ref: {
|
|
98
97
|
type: "commit" | "tag" | "branch";
|
|
99
98
|
name: string;
|
|
100
99
|
hash: string;
|
|
101
100
|
} | null;
|
|
101
|
+
userId: string | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -129,12 +129,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
131
|
metadata: ConversationMetadata | null;
|
|
132
|
-
userId: string | null;
|
|
133
132
|
ref: {
|
|
134
133
|
type: "commit" | "tag" | "branch";
|
|
135
134
|
name: string;
|
|
136
135
|
hash: string;
|
|
137
136
|
} | null;
|
|
137
|
+
userId: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -161,12 +161,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
163
|
metadata: ConversationMetadata | null;
|
|
164
|
-
userId: string | null;
|
|
165
164
|
ref: {
|
|
166
165
|
type: "commit" | "tag" | "branch";
|
|
167
166
|
name: string;
|
|
168
167
|
hash: string;
|
|
169
168
|
} | null;
|
|
169
|
+
userId: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -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;
|
|
@@ -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
|
-
status: string;
|
|
17
|
-
contextId: string;
|
|
18
16
|
ref: {
|
|
19
17
|
type: "commit" | "tag" | "branch";
|
|
20
18
|
name: string;
|
|
21
19
|
hash: string;
|
|
22
20
|
} | null;
|
|
21
|
+
status: string;
|
|
23
22
|
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|