@inkeep/agents-core 0.65.2 → 0.66.1

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.
Files changed (99) hide show
  1. package/dist/_virtual/rolldown_runtime.js +25 -1
  2. package/dist/auth/auth.d.ts +6 -6
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/constants/index.d.ts +14 -0
  5. package/dist/constants/index.js +15 -0
  6. package/dist/constants/relation-types.d.ts +5 -0
  7. package/dist/constants/relation-types.js +6 -0
  8. package/dist/constants/session-events.d.ts +13 -0
  9. package/dist/constants/session-events.js +14 -0
  10. package/dist/constants/tool-names.d.ts +7 -0
  11. package/dist/constants/tool-names.js +8 -0
  12. package/dist/constants/workflow.d.ts +7 -0
  13. package/dist/constants/workflow.js +8 -0
  14. package/dist/data-access/index.d.ts +3 -3
  15. package/dist/data-access/manage/agentFull.d.ts +7 -10
  16. package/dist/data-access/manage/agentFull.js +26 -28
  17. package/dist/data-access/manage/agents.d.ts +10 -10
  18. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  19. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  20. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  21. package/dist/data-access/manage/functionTools.d.ts +8 -8
  22. package/dist/data-access/manage/projectFull.d.ts +6 -8
  23. package/dist/data-access/manage/projectFull.js +18 -18
  24. package/dist/data-access/manage/skills.d.ts +7 -7
  25. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  26. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  27. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  28. package/dist/data-access/manage/subAgents.d.ts +6 -6
  29. package/dist/data-access/manage/tools.d.ts +18 -18
  30. package/dist/data-access/manage/triggers.d.ts +2 -2
  31. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  32. package/dist/data-access/runtime/apps.d.ts +10 -10
  33. package/dist/data-access/runtime/conversations.d.ts +16 -16
  34. package/dist/data-access/runtime/feedback.d.ts +2 -2
  35. package/dist/data-access/runtime/messages.d.ts +3 -3
  36. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  37. package/dist/data-access/runtime/tasks.d.ts +5 -5
  38. package/dist/db/manage/manage-schema.d.ts +4 -4
  39. package/dist/db/runtime/runtime-schema.d.ts +373 -373
  40. package/dist/dolt/ref-middleware.js +2 -2
  41. package/dist/index.d.ts +7 -3
  42. package/dist/index.js +5 -1
  43. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
  44. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
  45. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
  46. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
  47. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
  48. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
  49. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
  50. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
  51. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
  52. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
  53. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
  54. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
  55. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
  56. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
  57. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
  58. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
  59. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
  60. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
  61. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
  62. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
  63. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
  64. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
  65. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
  66. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
  67. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
  68. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
  69. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
  70. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
  71. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
  72. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
  73. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
  74. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
  75. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
  76. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
  77. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
  78. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
  79. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
  80. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
  81. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
  82. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
  83. package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
  84. 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/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
  85. 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/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
  86. 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/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +48 -0
  87. 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/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +2613 -0
  88. package/dist/test-utils/index.d.ts +2 -0
  89. package/dist/test-utils/index.js +3 -0
  90. package/dist/test-utils/mocks/index.d.ts +2 -0
  91. package/dist/test-utils/mocks/index.js +3 -0
  92. package/dist/test-utils/mocks/logger.d.ts +27 -0
  93. package/dist/test-utils/mocks/logger.js +48 -0
  94. package/dist/utils/jwt-helpers.js +1 -1
  95. package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
  96. package/dist/utils/tracer-factory.js +1 -1
  97. package/dist/validation/schemas/skills.d.ts +51 -51
  98. package/dist/validation/schemas.d.ts +600 -600
  99. package/package.json +5 -1
@@ -11,10 +11,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  projectId: string;
14
+ agentId: string;
14
15
  id: string;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
- agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -46,10 +46,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  }) => Promise<{
47
47
  tenantId: string;
48
48
  projectId: string;
49
+ agentId: string;
49
50
  id: string;
50
51
  createdAt: string;
51
52
  updatedAt: string;
52
- agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -59,10 +59,10 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  }) => Promise<{
60
60
  tenantId: string;
61
61
  projectId: string;
62
+ agentId: string;
62
63
  id: string;
63
64
  createdAt: string;
64
65
  updatedAt: string;
65
- agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -128,10 +128,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  tenantId: string;
130
130
  projectId: string;
131
+ agentId: string;
131
132
  id: string;
132
133
  createdAt: string;
133
134
  updatedAt: string;
134
- agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -147,10 +147,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  }) => Promise<{
148
148
  tenantId: string;
149
149
  projectId: string;
150
+ agentId: string;
150
151
  id: string;
151
152
  createdAt: string;
152
153
  updatedAt: string;
153
- agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -161,10 +161,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  tenantId: string;
163
163
  projectId: string;
164
+ agentId: string;
164
165
  id: string;
165
166
  createdAt: string;
166
167
  updatedAt: string;
167
- agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -206,17 +206,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  }) => Promise<{
207
207
  tenantId: string;
208
208
  projectId: string;
209
- id: string;
210
- createdAt: string;
211
- updatedAt: string;
212
209
  agentId: string;
213
210
  subAgentId: string;
214
211
  toolId: string;
212
+ id: string;
213
+ createdAt: string;
214
+ updatedAt: string;
215
215
  headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | null;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -250,17 +250,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  }) => Promise<{
251
251
  tenantId: string;
252
252
  projectId: string;
253
- id: string;
254
- createdAt: string;
255
- updatedAt: string;
256
253
  agentId: string;
257
254
  subAgentId: string;
258
255
  toolId: string;
256
+ id: string;
257
+ createdAt: string;
258
+ updatedAt: string;
259
259
  headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  projectId: string;
14
+ agentId: string;
15
+ subAgentId: string;
14
16
  id: string;
15
17
  createdAt: string;
16
18
  updatedAt: string;
17
- agentId: string;
18
- subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  }) => Promise<{
47
47
  tenantId: string;
48
48
  projectId: string;
49
+ agentId: string;
50
+ subAgentId: string;
49
51
  id: string;
50
52
  createdAt: string;
51
53
  updatedAt: string;
52
- agentId: string;
53
- subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  }) => Promise<{
60
60
  tenantId: string;
61
61
  projectId: string;
62
+ agentId: string;
63
+ subAgentId: string;
62
64
  id: string;
63
65
  createdAt: string;
64
66
  updatedAt: string;
65
- agentId: string;
66
- subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -224,11 +224,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
224
224
  }) => Promise<{
225
225
  tenantId: string;
226
226
  projectId: string;
227
+ agentId: string;
228
+ subAgentId: string;
227
229
  id: string;
228
230
  createdAt: string;
229
231
  updatedAt: string;
230
- agentId: string;
231
- subAgentId: string;
232
232
  headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -241,11 +241,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
241
241
  }) => Promise<{
242
242
  tenantId: string;
243
243
  projectId: string;
244
+ agentId: string;
245
+ subAgentId: string;
244
246
  id: string;
245
247
  createdAt: string;
246
248
  updatedAt: string;
247
- agentId: string;
248
- subAgentId: string;
249
249
  headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -262,11 +262,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
262
262
  }) => Promise<{
263
263
  tenantId: string;
264
264
  projectId: string;
265
+ agentId: string;
266
+ subAgentId: string;
265
267
  id: string;
266
268
  createdAt: string;
267
269
  updatedAt: string;
268
- agentId: string;
269
- subAgentId: string;
270
270
  headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -11,9 +11,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  projectId: string;
14
+ agentId: string;
14
15
  id: string;
15
- name: string;
16
16
  createdAt: string;
17
+ name: string;
17
18
  updatedAt: string;
18
19
  description: string | null;
19
20
  models: {
@@ -39,7 +40,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
40
  stopWhen: {
40
41
  stepCountIs?: number | undefined;
41
42
  } | null;
42
- agentId: string;
43
43
  prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
@@ -48,9 +48,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
48
48
  }) => Promise<{
49
49
  tenantId: string;
50
50
  projectId: string;
51
+ agentId: string;
51
52
  id: string;
52
- name: string;
53
53
  createdAt: string;
54
+ name: string;
54
55
  updatedAt: string;
55
56
  description: string | null;
56
57
  models: {
@@ -76,7 +77,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
76
77
  stopWhen: {
77
78
  stepCountIs?: number | undefined;
78
79
  } | null;
79
- agentId: string;
80
80
  prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
@@ -129,9 +129,10 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
130
  tenantId: string;
131
131
  projectId: string;
132
+ agentId: string;
132
133
  id: string;
133
- name: string;
134
134
  createdAt: string;
135
+ name: string;
135
136
  updatedAt: string;
136
137
  description: string | null;
137
138
  models: {
@@ -157,7 +158,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
157
158
  stopWhen: {
158
159
  stepCountIs?: number | undefined;
159
160
  } | null;
160
- agentId: string;
161
161
  prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
@@ -23,17 +23,17 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
23
23
  tenantId: string;
24
24
  projectId: string;
25
25
  id: string;
26
- name: string;
27
26
  createdAt: string;
27
+ name: string;
28
28
  updatedAt: string;
29
29
  description: string | null;
30
- headers: Record<string, string> | null;
31
30
  config: {
32
31
  type: "mcp";
33
32
  mcp: ToolMcpConfig;
34
33
  };
35
34
  credentialReferenceId: string | null;
36
35
  credentialScope: string;
36
+ headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -81,17 +81,17 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
81
81
  tenantId: string;
82
82
  projectId: string;
83
83
  id: string;
84
- name: string;
85
84
  createdAt: string;
85
+ name: string;
86
86
  updatedAt: string;
87
87
  description: string | null;
88
- headers: Record<string, string> | null;
89
88
  config: {
90
89
  type: "mcp";
91
90
  mcp: ToolMcpConfig;
92
91
  };
93
92
  credentialReferenceId: string | null;
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -137,17 +137,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
137
137
  }) => Promise<{
138
138
  tenantId: string;
139
139
  projectId: string;
140
- id: string;
141
- createdAt: string;
142
- updatedAt: string;
143
140
  agentId: string;
144
141
  subAgentId: string;
145
142
  toolId: string;
143
+ id: string;
144
+ createdAt: string;
145
+ updatedAt: string;
146
146
  headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -156,17 +156,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
156
156
  }) => Promise<{
157
157
  tenantId: string;
158
158
  projectId: string;
159
- id: string;
160
- createdAt: string;
161
- updatedAt: string;
162
159
  agentId: string;
163
160
  subAgentId: string;
164
161
  toolId: string;
162
+ id: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
165
  headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -184,17 +184,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
184
184
  }) => Promise<{
185
185
  tenantId: string;
186
186
  projectId: string;
187
- id: string;
188
- createdAt: string;
189
- updatedAt: string;
190
187
  agentId: string;
191
188
  subAgentId: string;
192
189
  toolId: string;
190
+ id: string;
191
+ createdAt: string;
192
+ updatedAt: string;
193
193
  headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -205,17 +205,17 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
205
205
  tenantId: string;
206
206
  projectId: string;
207
207
  id: string;
208
- name: string;
209
208
  createdAt: string;
209
+ name: string;
210
210
  updatedAt: string;
211
211
  description: string | null;
212
- headers: Record<string, string> | null;
213
212
  config: {
214
213
  type: "mcp";
215
214
  mcp: ToolMcpConfig;
216
215
  };
217
216
  credentialReferenceId: string | null;
218
217
  credentialScope: string;
218
+ headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -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" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -10,30 +10,30 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  tenantId: string;
12
12
  projectId: string;
13
+ agentId: string;
13
14
  id: string;
14
- name: string | null;
15
15
  createdAt: string;
16
+ name: string | null;
16
17
  updatedAt: string;
17
- agentId: 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
  tenantId: string;
26
26
  projectId: string;
27
+ agentId: string;
27
28
  id: string;
28
- name: string | null;
29
29
  createdAt: string;
30
+ name: string | null;
30
31
  updatedAt: string;
31
- agentId: 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;
@@ -41,16 +41,16 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
41
41
  }) => Promise<{
42
42
  tenantId: string;
43
43
  projectId: string;
44
+ agentId: string;
44
45
  id: string;
45
- name: string | null;
46
46
  createdAt: string;
47
+ name: string | null;
47
48
  updatedAt: string;
48
- agentId: 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;
@@ -68,16 +68,16 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  tenantId: string;
70
70
  projectId: string;
71
+ agentId: string;
71
72
  id: string;
72
- name: string | null;
73
73
  createdAt: string;
74
+ name: string | null;
74
75
  updatedAt: string;
75
- agentId: 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;
@@ -5,15 +5,14 @@ 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
  tenantId: string | null;
9
10
  projectId: string | null;
10
11
  id: string;
11
- name: string;
12
12
  createdAt: string;
13
+ name: string;
13
14
  updatedAt: string;
14
15
  description: string | null;
15
- type: AppType;
16
- enabled: boolean;
17
16
  config: {
18
17
  type: "web_client";
19
18
  webClient: {
@@ -31,10 +30,11 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
31
30
  type: "api";
32
31
  api: Record<string, never>;
33
32
  };
33
+ enabled: boolean;
34
34
  prompt: string | null;
35
- defaultAgentId: string | null;
36
- defaultProjectId: string | null;
37
35
  lastUsedAt: string | null;
36
+ defaultProjectId: string | null;
37
+ defaultAgentId: string | null;
38
38
  } | undefined>;
39
39
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
40
40
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -61,15 +61,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
+ type: AppType;
64
65
  tenantId: string | null;
65
66
  projectId: string | null;
66
67
  id: string;
67
- name: string;
68
68
  createdAt: string;
69
+ name: string;
69
70
  updatedAt: string;
70
71
  description: string | null;
71
- type: AppType;
72
- enabled: boolean;
73
72
  config: {
74
73
  type: "web_client";
75
74
  webClient: {
@@ -87,10 +86,11 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
87
86
  type: "api";
88
87
  api: Record<string, never>;
89
88
  };
89
+ enabled: boolean;
90
90
  prompt: string | null;
91
- defaultAgentId: string | null;
92
- defaultProjectId: string | null;
93
91
  lastUsedAt: string | null;
92
+ defaultProjectId: string | null;
93
+ defaultAgentId: string | null;
94
94
  }>;
95
95
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
96
96
  scopes: TenantScopeConfig;
@@ -17,17 +17,17 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  tenantId: string;
19
19
  projectId: string;
20
+ agentId: string | null;
20
21
  id: string;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ metadata: ConversationMetadata | null;
21
25
  ref: {
22
26
  type: "commit" | "tag" | "branch";
23
27
  name: string;
24
28
  hash: string;
25
29
  } | null;
26
- createdAt: string;
27
- updatedAt: string;
28
30
  title: string | null;
29
- metadata: ConversationMetadata | null;
30
- agentId: string | null;
31
31
  userId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
@@ -86,17 +86,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
86
86
  }) => Promise<{
87
87
  tenantId: string;
88
88
  projectId: string;
89
+ agentId: string | null;
89
90
  id: string;
91
+ createdAt: string;
92
+ updatedAt: string;
93
+ metadata: ConversationMetadata | null;
90
94
  ref: {
91
95
  type: "commit" | "tag" | "branch";
92
96
  name: string;
93
97
  hash: string;
94
98
  } | null;
95
- createdAt: string;
96
- updatedAt: string;
97
99
  title: string | null;
98
- metadata: ConversationMetadata | null;
99
- agentId: string | null;
100
100
  userId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
@@ -122,17 +122,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
122
122
  } | {
123
123
  tenantId: string;
124
124
  projectId: string;
125
+ agentId: string | null;
125
126
  id: string;
127
+ createdAt: string;
128
+ updatedAt: string;
129
+ metadata: ConversationMetadata | null;
126
130
  ref: {
127
131
  type: "commit" | "tag" | "branch";
128
132
  name: string;
129
133
  hash: string;
130
134
  } | null;
131
- createdAt: string;
132
- updatedAt: string;
133
135
  title: string | null;
134
- metadata: ConversationMetadata | null;
135
- agentId: string | null;
136
136
  userId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
@@ -154,17 +154,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
154
154
  }) => Promise<{
155
155
  tenantId: string;
156
156
  projectId: string;
157
+ agentId: string | null;
157
158
  id: string;
159
+ createdAt: string;
160
+ updatedAt: string;
161
+ metadata: ConversationMetadata | null;
158
162
  ref: {
159
163
  type: "commit" | "tag" | "branch";
160
164
  name: string;
161
165
  hash: string;
162
166
  } | null;
163
- createdAt: string;
164
- updatedAt: string;
165
167
  title: string | null;
166
- metadata: ConversationMetadata | null;
167
- agentId: string | null;
168
168
  userId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
@@ -58,12 +58,12 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
58
58
  total: number;
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
+ type: "positive" | "negative";
61
62
  tenantId: string;
62
63
  projectId: string;
63
64
  id: string;
64
65
  createdAt: string;
65
66
  updatedAt: string;
66
- type: "positive" | "negative";
67
67
  conversationId: string;
68
68
  messageId: string | null;
69
69
  details: string | null;
@@ -87,12 +87,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
87
87
  scopes: ProjectScopeConfig;
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
+ type: "positive" | "negative";
90
91
  tenantId: string;
91
92
  projectId: string;
92
93
  id: string;
93
94
  createdAt: string;
94
95
  updatedAt: string;
95
- type: "positive" | "negative";
96
96
  conversationId: string;
97
97
  messageId: string | null;
98
98
  details: string | null;
@@ -13,10 +13,10 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  tenantId: string;
14
14
  projectId: string;
15
15
  id: string;
16
+ content: MessageContent;
16
17
  createdAt: string;
17
18
  updatedAt: string;
18
19
  metadata: MessageMetadata | null;
19
- content: MessageContent;
20
20
  role: string;
21
21
  conversationId: string;
22
22
  fromSubAgentId: string | null;
@@ -147,10 +147,10 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
147
147
  tenantId: string;
148
148
  projectId: string;
149
149
  id: string;
150
+ content: MessageContent;
150
151
  createdAt: string;
151
152
  updatedAt: string;
152
153
  metadata: MessageMetadata | null;
153
- content: MessageContent;
154
154
  role: string;
155
155
  conversationId: string;
156
156
  fromSubAgentId: string | null;
@@ -200,10 +200,10 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  tenantId: string;
201
201
  projectId: string;
202
202
  id: string;
203
+ content: MessageContent;
203
204
  createdAt: string;
204
205
  updatedAt: string;
205
206
  metadata: MessageMetadata | null;
206
- content: MessageContent;
207
207
  role: string;
208
208
  conversationId: string;
209
209
  fromSubAgentId: string | null;