@inkeep/agents-core 0.68.3 → 0.69.0
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 +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/authz/config.d.ts +33 -7
- package/dist/auth/authz/config.js +18 -8
- package/dist/auth/authz/credential-gateway.d.ts +57 -0
- package/dist/auth/authz/credential-gateway.js +118 -0
- package/dist/auth/authz/index.d.ts +4 -3
- package/dist/auth/authz/index.js +4 -3
- package/dist/auth/authz/types.d.ts +8 -1
- package/dist/auth/authz/types.js +7 -3
- package/dist/auth/entitlement-lock.js +2 -4
- package/dist/auth/entitlements.js +1 -1
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/auth/support-copilot-platforms.d.ts +147 -0
- package/dist/auth/support-copilot-platforms.js +120 -0
- package/dist/client-exports.d.ts +3 -2
- package/dist/client-exports.js +3 -2
- package/dist/context/TemplateEngine.d.ts +17 -1
- package/dist/context/TemplateEngine.js +37 -3
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agents.d.ts +22 -22
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +6 -6
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +40 -16
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/entitlements.d.ts +2 -1
- package/dist/data-access/runtime/entitlements.js +5 -1
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +461 -461
- package/dist/db/runtime/runtime-schema.d.ts +437 -421
- package/dist/index.d.ts +7 -5
- package/dist/index.js +7 -5
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
- package/dist/test-utils/mocks/logger.js +1 -1
- package/dist/utils/apiKeys.js +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +40 -40
- package/dist/validation/schemas.d.ts +2417 -2229
- package/dist/validation/schemas.js +16 -2
- package/package.json +1 -1
- package/spicedb/schema.zed +27 -0
|
@@ -6,15 +6,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
type: AppType;
|
|
9
|
-
id: string;
|
|
10
9
|
name: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
updatedAt: string;
|
|
13
10
|
description: string | null;
|
|
14
|
-
enabled: boolean;
|
|
15
|
-
prompt: string | null;
|
|
16
11
|
tenantId: string | null;
|
|
17
12
|
projectId: string | null;
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
prompt: string | null;
|
|
17
|
+
enabled: boolean;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
22
|
publicKeys: {
|
|
23
23
|
kid: string;
|
|
24
24
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
25
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -34,7 +34,15 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
34
34
|
} | {
|
|
35
35
|
type: "support_copilot";
|
|
36
36
|
supportCopilot: {
|
|
37
|
-
|
|
37
|
+
platform: string;
|
|
38
|
+
credentialReferenceId?: string | undefined;
|
|
39
|
+
quickActions?: {
|
|
40
|
+
group: string;
|
|
41
|
+
actions: {
|
|
42
|
+
label: string;
|
|
43
|
+
prompt: string;
|
|
44
|
+
}[];
|
|
45
|
+
}[] | undefined;
|
|
38
46
|
};
|
|
39
47
|
};
|
|
40
48
|
lastUsedAt: string | null;
|
|
@@ -67,15 +75,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
75
|
}>;
|
|
68
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
69
77
|
type: AppType;
|
|
70
|
-
id: string;
|
|
71
78
|
name: string;
|
|
72
|
-
createdAt: string;
|
|
73
|
-
updatedAt: string;
|
|
74
79
|
description: string | null;
|
|
75
|
-
enabled: boolean;
|
|
76
|
-
prompt: string | null;
|
|
77
80
|
tenantId: string | null;
|
|
78
81
|
projectId: string | null;
|
|
82
|
+
id: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
prompt: string | null;
|
|
86
|
+
enabled: boolean;
|
|
79
87
|
config: {
|
|
80
88
|
type: "web_client";
|
|
81
89
|
webClient: {
|
|
@@ -83,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
83
91
|
publicKeys: {
|
|
84
92
|
kid: string;
|
|
85
93
|
publicKey: string;
|
|
86
|
-
algorithm: "
|
|
94
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
87
95
|
addedAt: string;
|
|
88
96
|
}[];
|
|
89
97
|
allowAnonymous: boolean;
|
|
@@ -95,7 +103,15 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
95
103
|
} | {
|
|
96
104
|
type: "support_copilot";
|
|
97
105
|
supportCopilot: {
|
|
98
|
-
|
|
106
|
+
platform: string;
|
|
107
|
+
credentialReferenceId?: string | undefined;
|
|
108
|
+
quickActions?: {
|
|
109
|
+
group: string;
|
|
110
|
+
actions: {
|
|
111
|
+
label: string;
|
|
112
|
+
prompt: string;
|
|
113
|
+
}[];
|
|
114
|
+
}[] | undefined;
|
|
99
115
|
};
|
|
100
116
|
};
|
|
101
117
|
lastUsedAt: string | null;
|
|
@@ -158,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
158
174
|
publicKeys: {
|
|
159
175
|
kid: string;
|
|
160
176
|
publicKey: string;
|
|
161
|
-
algorithm: "
|
|
177
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
162
178
|
addedAt: string;
|
|
163
179
|
}[];
|
|
164
180
|
allowAnonymous: boolean;
|
|
@@ -170,7 +186,15 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
170
186
|
} | {
|
|
171
187
|
type: "support_copilot";
|
|
172
188
|
supportCopilot: {
|
|
173
|
-
|
|
189
|
+
platform: string;
|
|
190
|
+
credentialReferenceId?: string | undefined;
|
|
191
|
+
quickActions?: {
|
|
192
|
+
group: string;
|
|
193
|
+
actions: {
|
|
194
|
+
label: string;
|
|
195
|
+
prompt: string;
|
|
196
|
+
}[];
|
|
197
|
+
}[] | undefined;
|
|
174
198
|
};
|
|
175
199
|
};
|
|
176
200
|
lastUsedAt: string | null;
|
|
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
+
title: string | null;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
18
21
|
id: string;
|
|
19
22
|
createdAt: string;
|
|
20
23
|
updatedAt: string;
|
|
24
|
+
metadata: ConversationMetadata | null;
|
|
25
|
+
agentId: string | null;
|
|
26
|
+
userId: string | null;
|
|
21
27
|
ref: {
|
|
22
28
|
type: "commit" | "tag" | "branch";
|
|
23
29
|
name: string;
|
|
24
30
|
hash: string;
|
|
25
31
|
} | null;
|
|
26
|
-
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
title: string | null;
|
|
29
|
-
tenantId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
agentId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
+
title: string | null;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
projectId: string;
|
|
87
90
|
id: string;
|
|
88
91
|
createdAt: string;
|
|
89
92
|
updatedAt: string;
|
|
93
|
+
metadata: ConversationMetadata | null;
|
|
94
|
+
agentId: string | null;
|
|
95
|
+
userId: string | null;
|
|
90
96
|
ref: {
|
|
91
97
|
type: "commit" | "tag" | "branch";
|
|
92
98
|
name: string;
|
|
93
99
|
hash: string;
|
|
94
100
|
} | null;
|
|
95
|
-
userId: string | null;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
|
-
title: string | null;
|
|
98
|
-
tenantId: string;
|
|
99
|
-
projectId: string;
|
|
100
|
-
agentId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
+
title: string | null;
|
|
124
|
+
tenantId: string;
|
|
125
|
+
projectId: string;
|
|
123
126
|
id: string;
|
|
124
127
|
createdAt: string;
|
|
125
128
|
updatedAt: string;
|
|
129
|
+
metadata: ConversationMetadata | null;
|
|
130
|
+
agentId: string | null;
|
|
131
|
+
userId: string | null;
|
|
126
132
|
ref: {
|
|
127
133
|
type: "commit" | "tag" | "branch";
|
|
128
134
|
name: string;
|
|
129
135
|
hash: string;
|
|
130
136
|
} | null;
|
|
131
|
-
userId: string | null;
|
|
132
|
-
metadata: ConversationMetadata | null;
|
|
133
|
-
title: string | null;
|
|
134
|
-
tenantId: string;
|
|
135
|
-
projectId: string;
|
|
136
|
-
agentId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
+
title: string | null;
|
|
156
|
+
tenantId: string;
|
|
157
|
+
projectId: string;
|
|
155
158
|
id: string;
|
|
156
159
|
createdAt: string;
|
|
157
160
|
updatedAt: string;
|
|
161
|
+
metadata: ConversationMetadata | null;
|
|
162
|
+
agentId: string | null;
|
|
163
|
+
userId: string | null;
|
|
158
164
|
ref: {
|
|
159
165
|
type: "commit" | "tag" | "branch";
|
|
160
166
|
name: string;
|
|
161
167
|
hash: string;
|
|
162
168
|
} | null;
|
|
163
|
-
userId: string | null;
|
|
164
|
-
metadata: ConversationMetadata | null;
|
|
165
|
-
title: string | null;
|
|
166
|
-
tenantId: string;
|
|
167
|
-
projectId: string;
|
|
168
|
-
agentId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -6,8 +6,9 @@ declare const listOrgEntitlements: (db: AgentsRunDatabaseClient) => (orgId: stri
|
|
|
6
6
|
maxValue: number;
|
|
7
7
|
}>>;
|
|
8
8
|
declare function dalResolveEntitlement(db: AgentsRunDatabaseClient, orgId: string, resourceType: string): Promise<number | null>;
|
|
9
|
+
declare function dalSelectEntitlementForUpdate(tx: AgentsRunDatabaseClient, orgId: string, resourceType: string): Promise<number | null>;
|
|
9
10
|
declare function dalGetServiceAccountUserId(db: AgentsRunDatabaseClient, orgId: string): Promise<string | null>;
|
|
10
11
|
declare function dalCountMembersByRoleBucket(db: AgentsRunDatabaseClient, orgId: string, isAdminBucket: boolean, serviceAccountUserId: string | null): Promise<number>;
|
|
11
12
|
declare function dalSumSeatEntitlements(db: AgentsRunDatabaseClient, orgId: string): Promise<number | null>;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { dalCountMembersByRoleBucket, dalGetServiceAccountUserId, dalResolveEntitlement, dalSumSeatEntitlements, listOrgEntitlements };
|
|
14
|
+
export { dalCountMembersByRoleBucket, dalGetServiceAccountUserId, dalResolveEntitlement, dalSelectEntitlementForUpdate, dalSumSeatEntitlements, listOrgEntitlements };
|
|
@@ -14,6 +14,10 @@ async function dalResolveEntitlement(db, orgId, resourceType) {
|
|
|
14
14
|
if (rows.length === 0) return null;
|
|
15
15
|
return rows[0].maxValue;
|
|
16
16
|
}
|
|
17
|
+
async function dalSelectEntitlementForUpdate(tx, orgId, resourceType) {
|
|
18
|
+
const rows = await tx.select({ maxValue: orgEntitlement.maxValue }).from(orgEntitlement).where(and(eq(orgEntitlement.organizationId, orgId), eq(orgEntitlement.resourceType, resourceType))).for("update");
|
|
19
|
+
return rows.length === 0 ? null : rows[0].maxValue;
|
|
20
|
+
}
|
|
17
21
|
async function dalGetServiceAccountUserId(db, orgId) {
|
|
18
22
|
return (await db.select({ serviceAccountUserId: organization.serviceAccountUserId }).from(organization).where(eq(organization.id, orgId)))[0]?.serviceAccountUserId ?? null;
|
|
19
23
|
}
|
|
@@ -30,4 +34,4 @@ async function dalSumSeatEntitlements(db, orgId) {
|
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
//#endregion
|
|
33
|
-
export { dalCountMembersByRoleBucket, dalGetServiceAccountUserId, dalResolveEntitlement, dalSumSeatEntitlements, listOrgEntitlements };
|
|
37
|
+
export { dalCountMembersByRoleBucket, dalGetServiceAccountUserId, dalResolveEntitlement, dalSelectEntitlementForUpdate, dalSumSeatEntitlements, listOrgEntitlements };
|
|
@@ -59,11 +59,11 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
59
59
|
}>;
|
|
60
60
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
61
61
|
type: "positive" | "negative";
|
|
62
|
+
tenantId: string;
|
|
63
|
+
projectId: string;
|
|
62
64
|
id: string;
|
|
63
65
|
createdAt: string;
|
|
64
66
|
updatedAt: string;
|
|
65
|
-
tenantId: string;
|
|
66
|
-
projectId: string;
|
|
67
67
|
conversationId: string;
|
|
68
68
|
messageId: string | null;
|
|
69
69
|
details: string | null;
|
|
@@ -88,11 +88,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
88
88
|
feedbackId: string;
|
|
89
89
|
}) => Promise<{
|
|
90
90
|
type: "positive" | "negative";
|
|
91
|
+
tenantId: string;
|
|
92
|
+
projectId: string;
|
|
91
93
|
id: string;
|
|
92
94
|
createdAt: string;
|
|
93
95
|
updatedAt: string;
|
|
94
|
-
tenantId: string;
|
|
95
|
-
projectId: string;
|
|
96
96
|
conversationId: string;
|
|
97
97
|
messageId: string | null;
|
|
98
98
|
details: string | null;
|
|
@@ -10,15 +10,15 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
content: MessageContent;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
13
16
|
id: string;
|
|
14
17
|
createdAt: string;
|
|
15
18
|
updatedAt: string;
|
|
16
19
|
metadata: MessageMetadata | null;
|
|
17
|
-
role: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
content: MessageContent;
|
|
21
20
|
conversationId: string;
|
|
21
|
+
role: string;
|
|
22
22
|
fromSubAgentId: string | null;
|
|
23
23
|
toSubAgentId: string | null;
|
|
24
24
|
fromExternalAgentId: string | null;
|
|
@@ -144,15 +144,15 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
144
144
|
scopes: ProjectScopeConfig;
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
|
+
content: MessageContent;
|
|
148
|
+
tenantId: string;
|
|
149
|
+
projectId: string;
|
|
147
150
|
id: string;
|
|
148
151
|
createdAt: string;
|
|
149
152
|
updatedAt: string;
|
|
150
153
|
metadata: MessageMetadata | null;
|
|
151
|
-
role: string;
|
|
152
|
-
tenantId: string;
|
|
153
|
-
projectId: string;
|
|
154
|
-
content: MessageContent;
|
|
155
154
|
conversationId: string;
|
|
155
|
+
role: string;
|
|
156
156
|
fromSubAgentId: string | null;
|
|
157
157
|
toSubAgentId: string | null;
|
|
158
158
|
fromExternalAgentId: string | null;
|
|
@@ -197,15 +197,15 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
scopes: ProjectScopeConfig;
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
+
content: MessageContent;
|
|
201
|
+
tenantId: string;
|
|
202
|
+
projectId: string;
|
|
200
203
|
id: string;
|
|
201
204
|
createdAt: string;
|
|
202
205
|
updatedAt: string;
|
|
203
206
|
metadata: MessageMetadata | null;
|
|
204
|
-
role: string;
|
|
205
|
-
tenantId: string;
|
|
206
|
-
projectId: string;
|
|
207
|
-
content: MessageContent;
|
|
208
207
|
conversationId: string;
|
|
208
|
+
role: string;
|
|
209
209
|
fromSubAgentId: string | null;
|
|
210
210
|
toSubAgentId: string | null;
|
|
211
211
|
fromExternalAgentId: string | null;
|
|
@@ -15,9 +15,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
15
15
|
scheduledTriggerId: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
+
tenantId: string;
|
|
18
19
|
createdAt: string;
|
|
19
20
|
userId: string;
|
|
20
|
-
tenantId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
23
23
|
declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -7,21 +7,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
status: string;
|
|
10
13
|
id: string;
|
|
11
14
|
createdAt: string;
|
|
12
15
|
updatedAt: string;
|
|
16
|
+
metadata: TaskMetadataConfig | null;
|
|
17
|
+
agentId: string;
|
|
13
18
|
ref: {
|
|
14
19
|
type: "commit" | "tag" | "branch";
|
|
15
20
|
name: string;
|
|
16
21
|
hash: string;
|
|
17
22
|
} | null;
|
|
18
|
-
metadata: TaskMetadataConfig | null;
|
|
19
|
-
status: string;
|
|
20
|
-
tenantId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
agentId: string;
|
|
23
|
-
subAgentId: string;
|
|
24
23
|
contextId: string;
|
|
24
|
+
subAgentId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
27
27
|
id: string;
|