@inkeep/agents-core 0.0.0-dev-20260224193013 → 0.0.0-dev-20260224200401
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/client-exports.d.ts +1 -1
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +2 -2
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +3 -3
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/organizations.d.ts +2 -0
- package/dist/data-access/runtime/organizations.js +6 -2
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +447 -447
- 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/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/slack-link-token.d.ts +33 -8
- package/dist/utils/slack-link-token.js +20 -9
- package/dist/validation/schemas.d.ts +1368 -1368
- package/package.json +1 -1
package/dist/client-exports.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
22
22
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
23
23
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
24
24
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
25
26
|
models: z.ZodOptional<z.ZodObject<{
|
|
26
27
|
base: z.ZodOptional<z.ZodObject<{
|
|
27
28
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -36,7 +37,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
36
37
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
37
38
|
}, z.core.$strip>>;
|
|
38
39
|
}, z.core.$strip>>;
|
|
39
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
40
40
|
type: z.ZodLiteral<"internal">;
|
|
41
41
|
canUse: z.ZodArray<z.ZodObject<{
|
|
42
42
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -14,8 +14,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
+
defaultSubAgentId: string | null;
|
|
17
18
|
tenantId: string;
|
|
18
19
|
projectId: string;
|
|
20
|
+
prompt: string | null;
|
|
19
21
|
models: {
|
|
20
22
|
base?: {
|
|
21
23
|
model?: string | undefined;
|
|
@@ -33,8 +35,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
35
|
stopWhen: {
|
|
34
36
|
transferCountIs?: number | undefined;
|
|
35
37
|
} | null;
|
|
36
|
-
prompt: string | null;
|
|
37
|
-
defaultSubAgentId: string | null;
|
|
38
38
|
contextConfigId: string | null;
|
|
39
39
|
statusUpdates: {
|
|
40
40
|
enabled?: boolean | undefined;
|
|
@@ -60,8 +60,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
description: string | null;
|
|
63
|
+
defaultSubAgentId: string | null;
|
|
63
64
|
tenantId: string;
|
|
64
65
|
projectId: string;
|
|
66
|
+
prompt: string | null;
|
|
65
67
|
models: {
|
|
66
68
|
base?: {
|
|
67
69
|
model?: string | undefined;
|
|
@@ -79,8 +81,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
79
81
|
stopWhen: {
|
|
80
82
|
transferCountIs?: number | undefined;
|
|
81
83
|
} | null;
|
|
82
|
-
prompt: string | null;
|
|
83
|
-
defaultSubAgentId: string | null;
|
|
84
84
|
contextConfigId: string | null;
|
|
85
85
|
statusUpdates: {
|
|
86
86
|
enabled?: boolean | undefined;
|
|
@@ -106,6 +106,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
106
106
|
tenantId: string;
|
|
107
107
|
projectId: string;
|
|
108
108
|
agentId: string;
|
|
109
|
+
prompt: string | null;
|
|
110
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
109
111
|
models: {
|
|
110
112
|
base?: {
|
|
111
113
|
model?: string | undefined;
|
|
@@ -123,8 +125,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
123
125
|
stopWhen: {
|
|
124
126
|
stepCountIs?: number | undefined;
|
|
125
127
|
} | null;
|
|
126
|
-
prompt: string | null;
|
|
127
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
128
128
|
} | null;
|
|
129
129
|
} | null>;
|
|
130
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -135,8 +135,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
createdAt: string;
|
|
136
136
|
updatedAt: string;
|
|
137
137
|
description: string | null;
|
|
138
|
+
defaultSubAgentId: string | null;
|
|
138
139
|
tenantId: string;
|
|
139
140
|
projectId: string;
|
|
141
|
+
prompt: string | null;
|
|
140
142
|
models: {
|
|
141
143
|
base?: {
|
|
142
144
|
model?: string | undefined;
|
|
@@ -154,8 +156,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
154
156
|
stopWhen: {
|
|
155
157
|
transferCountIs?: number | undefined;
|
|
156
158
|
} | null;
|
|
157
|
-
prompt: string | null;
|
|
158
|
-
defaultSubAgentId: string | null;
|
|
159
159
|
contextConfigId: string | null;
|
|
160
160
|
statusUpdates: {
|
|
161
161
|
enabled?: boolean | undefined;
|
|
@@ -251,8 +251,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
description: string | null;
|
|
254
|
+
defaultSubAgentId: string | null;
|
|
254
255
|
tenantId: string;
|
|
255
256
|
projectId: string;
|
|
257
|
+
prompt: string | null;
|
|
256
258
|
models: {
|
|
257
259
|
base?: {
|
|
258
260
|
model?: string | undefined;
|
|
@@ -270,8 +272,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
270
272
|
stopWhen: {
|
|
271
273
|
transferCountIs?: number | undefined;
|
|
272
274
|
} | null;
|
|
273
|
-
prompt: string | null;
|
|
274
|
-
defaultSubAgentId: string | null;
|
|
275
275
|
contextConfigId: string | null;
|
|
276
276
|
statusUpdates: {
|
|
277
277
|
enabled?: boolean | undefined;
|
|
@@ -167,11 +167,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
167
167
|
tenantId: string;
|
|
168
168
|
projectId: string;
|
|
169
169
|
agentId: string;
|
|
170
|
-
subAgentId: string;
|
|
171
|
-
functionToolId: string;
|
|
172
170
|
toolPolicies: Record<string, {
|
|
173
171
|
needsApproval?: boolean;
|
|
174
172
|
}> | null;
|
|
173
|
+
subAgentId: string;
|
|
174
|
+
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -232,11 +232,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
232
232
|
tenantId: string;
|
|
233
233
|
projectId: string;
|
|
234
234
|
agentId: string;
|
|
235
|
-
subAgentId: string;
|
|
236
|
-
functionToolId: string;
|
|
237
235
|
toolPolicies: Record<string, {
|
|
238
236
|
needsApproval?: boolean;
|
|
239
237
|
}> | null;
|
|
238
|
+
subAgentId: string;
|
|
239
|
+
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -97,10 +97,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
97
97
|
tenantId: string;
|
|
98
98
|
projectId: string;
|
|
99
99
|
agentId: string;
|
|
100
|
-
subAgentId: string;
|
|
101
|
-
skillId: string;
|
|
102
100
|
index: number;
|
|
103
101
|
alwaysLoaded: boolean;
|
|
102
|
+
subAgentId: string;
|
|
103
|
+
skillId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -16,8 +16,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
16
16
|
tenantId: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
agentId: string;
|
|
19
|
-
subAgentId: string;
|
|
20
19
|
externalAgentId: string;
|
|
20
|
+
subAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -51,8 +51,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
51
51
|
tenantId: string;
|
|
52
52
|
projectId: string;
|
|
53
53
|
agentId: string;
|
|
54
|
-
subAgentId: string;
|
|
55
54
|
externalAgentId: string;
|
|
55
|
+
subAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -64,8 +64,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
64
64
|
tenantId: string;
|
|
65
65
|
projectId: string;
|
|
66
66
|
agentId: string;
|
|
67
|
-
subAgentId: string;
|
|
68
67
|
externalAgentId: string;
|
|
68
|
+
subAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -187,8 +187,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
tenantId: string;
|
|
188
188
|
projectId: string;
|
|
189
189
|
agentId: string;
|
|
190
|
-
subAgentId: string;
|
|
191
190
|
externalAgentId: string;
|
|
191
|
+
subAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -204,8 +204,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
tenantId: string;
|
|
205
205
|
projectId: string;
|
|
206
206
|
agentId: string;
|
|
207
|
-
subAgentId: string;
|
|
208
207
|
externalAgentId: string;
|
|
208
|
+
subAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
211
211
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -225,8 +225,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
tenantId: string;
|
|
226
226
|
projectId: string;
|
|
227
227
|
agentId: string;
|
|
228
|
-
subAgentId: string;
|
|
229
228
|
externalAgentId: string;
|
|
229
|
+
subAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
232
|
scopes: SubAgentScopeConfig;
|
|
@@ -15,9 +15,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
+
relationType: string | null;
|
|
18
19
|
sourceSubAgentId: string;
|
|
19
20
|
targetSubAgentId: string | null;
|
|
20
|
-
relationType: string | null;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: AgentScopeConfig;
|
|
@@ -50,9 +50,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
50
50
|
tenantId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
+
relationType: string | null;
|
|
53
54
|
sourceSubAgentId: string;
|
|
54
55
|
targetSubAgentId: string | null;
|
|
55
|
-
relationType: string | null;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -63,9 +63,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
63
63
|
tenantId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
+
relationType: string | null;
|
|
66
67
|
sourceSubAgentId: string;
|
|
67
68
|
targetSubAgentId: string | null;
|
|
68
|
-
relationType: string | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -132,9 +132,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
132
132
|
tenantId: string;
|
|
133
133
|
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
|
+
relationType: string | null;
|
|
135
136
|
sourceSubAgentId: string;
|
|
136
137
|
targetSubAgentId: string | null;
|
|
137
|
-
relationType: string | null;
|
|
138
138
|
}>;
|
|
139
139
|
/**
|
|
140
140
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -151,9 +151,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
151
151
|
tenantId: string;
|
|
152
152
|
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
|
+
relationType: string | null;
|
|
154
155
|
sourceSubAgentId: string;
|
|
155
156
|
targetSubAgentId: string | null;
|
|
156
|
-
relationType: string | null;
|
|
157
157
|
} | undefined>;
|
|
158
158
|
/**
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -165,9 +165,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
165
165
|
tenantId: string;
|
|
166
166
|
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
|
+
relationType: string | null;
|
|
168
169
|
sourceSubAgentId: string;
|
|
169
170
|
targetSubAgentId: string | null;
|
|
170
|
-
relationType: string | null;
|
|
171
171
|
}>;
|
|
172
172
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
173
173
|
scopes: AgentScopeConfig;
|
|
@@ -211,11 +211,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
211
211
|
tenantId: string;
|
|
212
212
|
projectId: string;
|
|
213
213
|
agentId: string;
|
|
214
|
-
subAgentId: string;
|
|
215
214
|
toolId: string;
|
|
216
215
|
toolPolicies: Record<string, {
|
|
217
216
|
needsApproval?: boolean;
|
|
218
217
|
}> | null;
|
|
218
|
+
subAgentId: string;
|
|
219
219
|
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -255,11 +255,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
255
255
|
tenantId: string;
|
|
256
256
|
projectId: string;
|
|
257
257
|
agentId: string;
|
|
258
|
-
subAgentId: string;
|
|
259
258
|
toolId: string;
|
|
260
259
|
toolPolicies: Record<string, {
|
|
261
260
|
needsApproval?: boolean;
|
|
262
261
|
}> | null;
|
|
262
|
+
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -17,6 +17,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
17
17
|
tenantId: string;
|
|
18
18
|
projectId: string;
|
|
19
19
|
agentId: string;
|
|
20
|
+
prompt: string | null;
|
|
21
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
20
22
|
models: {
|
|
21
23
|
base?: {
|
|
22
24
|
model?: string | undefined;
|
|
@@ -34,8 +36,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
36
|
stopWhen: {
|
|
35
37
|
stepCountIs?: number | undefined;
|
|
36
38
|
} | null;
|
|
37
|
-
prompt: string | null;
|
|
38
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
@@ -48,6 +48,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
48
48
|
tenantId: string;
|
|
49
49
|
projectId: string;
|
|
50
50
|
agentId: string;
|
|
51
|
+
prompt: string | null;
|
|
52
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
51
53
|
models: {
|
|
52
54
|
base?: {
|
|
53
55
|
model?: string | undefined;
|
|
@@ -65,8 +67,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
67
|
stopWhen: {
|
|
66
68
|
stepCountIs?: number | undefined;
|
|
67
69
|
} | null;
|
|
68
|
-
prompt: string | null;
|
|
69
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -117,6 +117,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
117
117
|
tenantId: string;
|
|
118
118
|
projectId: string;
|
|
119
119
|
agentId: string;
|
|
120
|
+
prompt: string | null;
|
|
121
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
120
122
|
models: {
|
|
121
123
|
base?: {
|
|
122
124
|
model?: string | undefined;
|
|
@@ -134,8 +136,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
136
|
stopWhen: {
|
|
135
137
|
stepCountIs?: number | undefined;
|
|
136
138
|
} | null;
|
|
137
|
-
prompt: string | null;
|
|
138
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -141,11 +141,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
141
141
|
tenantId: string;
|
|
142
142
|
projectId: string;
|
|
143
143
|
agentId: string;
|
|
144
|
-
subAgentId: string;
|
|
145
144
|
toolId: string;
|
|
146
145
|
toolPolicies: Record<string, {
|
|
147
146
|
needsApproval?: boolean;
|
|
148
147
|
}> | null;
|
|
148
|
+
subAgentId: string;
|
|
149
149
|
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -160,11 +160,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
160
160
|
tenantId: string;
|
|
161
161
|
projectId: string;
|
|
162
162
|
agentId: string;
|
|
163
|
-
subAgentId: string;
|
|
164
163
|
toolId: string;
|
|
165
164
|
toolPolicies: Record<string, {
|
|
166
165
|
needsApproval?: boolean;
|
|
167
166
|
}> | null;
|
|
167
|
+
subAgentId: string;
|
|
168
168
|
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
@@ -188,11 +188,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
188
188
|
tenantId: string;
|
|
189
189
|
projectId: string;
|
|
190
190
|
agentId: string;
|
|
191
|
-
subAgentId: string;
|
|
192
191
|
toolId: string;
|
|
193
192
|
toolPolicies: Record<string, {
|
|
194
193
|
needsApproval?: boolean;
|
|
195
194
|
}> | null;
|
|
195
|
+
subAgentId: string;
|
|
196
196
|
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
@@ -46,7 +46,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "body" | "header" | "literal";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -18,18 +18,18 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
18
18
|
tenantId: string;
|
|
19
19
|
projectId: string;
|
|
20
20
|
content: MessageContent;
|
|
21
|
+
conversationId: string;
|
|
21
22
|
fromSubAgentId: string | null;
|
|
22
23
|
toSubAgentId: string | null;
|
|
23
24
|
fromExternalAgentId: string | null;
|
|
24
25
|
toExternalAgentId: string | null;
|
|
25
|
-
taskId: string | null;
|
|
26
|
-
a2aTaskId: string | null;
|
|
27
|
-
conversationId: 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: {
|
|
@@ -149,18 +149,18 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
149
149
|
tenantId: string;
|
|
150
150
|
projectId: string;
|
|
151
151
|
content: MessageContent;
|
|
152
|
+
conversationId: string;
|
|
152
153
|
fromSubAgentId: string | null;
|
|
153
154
|
toSubAgentId: string | null;
|
|
154
155
|
fromExternalAgentId: string | null;
|
|
155
156
|
toExternalAgentId: string | null;
|
|
156
|
-
taskId: string | null;
|
|
157
|
-
a2aTaskId: string | null;
|
|
158
|
-
conversationId: 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: {
|
|
@@ -202,18 +202,18 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
202
202
|
tenantId: string;
|
|
203
203
|
projectId: string;
|
|
204
204
|
content: MessageContent;
|
|
205
|
+
conversationId: string;
|
|
205
206
|
fromSubAgentId: string | null;
|
|
206
207
|
toSubAgentId: string | null;
|
|
207
208
|
fromExternalAgentId: string | null;
|
|
208
209
|
toExternalAgentId: string | null;
|
|
209
|
-
taskId: string | null;
|
|
210
|
-
a2aTaskId: string | null;
|
|
211
|
-
conversationId: 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: {
|
|
@@ -29,6 +29,7 @@ declare const getPendingInvitationsByEmail: (db: AgentsRunDatabaseClient) => (em
|
|
|
29
29
|
status: string;
|
|
30
30
|
expiresAt: Date;
|
|
31
31
|
inviterId: string;
|
|
32
|
+
authMethod: string | null;
|
|
32
33
|
}[]>;
|
|
33
34
|
/**
|
|
34
35
|
* Add user to organization
|
|
@@ -66,6 +67,7 @@ declare const createInvitationInDb: (db: AgentsRunDatabaseClient) => (data: {
|
|
|
66
67
|
email: string;
|
|
67
68
|
}) => Promise<{
|
|
68
69
|
id: string;
|
|
70
|
+
authMethod: string;
|
|
69
71
|
}>;
|
|
70
72
|
//#endregion
|
|
71
73
|
export { UserProviderInfo, addUserToOrganization, createInvitationInDb, getPendingInvitationsByEmail, getUserOrganizationsFromDb, getUserProvidersFromDb, upsertOrganization };
|
|
@@ -41,7 +41,8 @@ const getPendingInvitationsByEmail = (db) => async (email) => {
|
|
|
41
41
|
role: invitation.role,
|
|
42
42
|
status: invitation.status,
|
|
43
43
|
expiresAt: invitation.expiresAt,
|
|
44
|
-
inviterId: invitation.inviterId
|
|
44
|
+
inviterId: invitation.inviterId,
|
|
45
|
+
authMethod: invitation.authMethod
|
|
45
46
|
}).from(invitation).leftJoin(organization, eq(invitation.organizationId, organization.id)).where(and(eq(invitation.email, email), eq(invitation.status, "pending")))).filter((inv) => new Date(inv.expiresAt) > now);
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
@@ -115,7 +116,10 @@ const createInvitationInDb = (db) => async (data) => {
|
|
|
115
116
|
inviterId: orgSettings.serviceAccountUserId,
|
|
116
117
|
authMethod: orgSettings.preferredAuthMethod
|
|
117
118
|
});
|
|
118
|
-
return {
|
|
119
|
+
return {
|
|
120
|
+
id: inviteId,
|
|
121
|
+
authMethod: orgSettings.preferredAuthMethod
|
|
122
|
+
};
|
|
119
123
|
};
|
|
120
124
|
|
|
121
125
|
//#endregion
|
|
@@ -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;
|