@inkeep/agents-core 0.0.0-dev-20260123222002 → 0.0.0-dev-20260124011934

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 (29) hide show
  1. package/dist/auth/auth-schema.d.ts +104 -104
  2. package/dist/auth/auth-validation-schemas.d.ts +129 -129
  3. package/dist/auth/auth.d.ts +53 -53
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +3 -2
  6. package/dist/data-access/manage/agents.d.ts +41 -41
  7. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  10. package/dist/data-access/manage/functionTools.d.ts +16 -16
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  12. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  14. package/dist/data-access/manage/subAgents.d.ts +15 -15
  15. package/dist/data-access/manage/tools.d.ts +33 -33
  16. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  17. package/dist/data-access/runtime/conversations.d.ts +24 -24
  18. package/dist/data-access/runtime/messages.d.ts +21 -21
  19. package/dist/data-access/runtime/tasks.d.ts +5 -5
  20. package/dist/db/manage/manage-schema.d.ts +377 -377
  21. package/dist/db/runtime/runtime-schema.d.ts +175 -175
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +2 -2
  24. package/dist/validation/index.d.ts +2 -2
  25. package/dist/validation/index.js +2 -2
  26. package/dist/validation/schemas.d.ts +1285 -1285
  27. package/dist/validation/stream-event-schemas.d.ts +96 -1
  28. package/dist/validation/stream-event-schemas.js +67 -2
  29. package/package.json +1 -1
@@ -73,6 +73,64 @@ declare const StreamFinishEventSchema: z.ZodObject<{
73
73
  totalTokens: z.ZodOptional<z.ZodNumber>;
74
74
  }, z.core.$strip>>;
75
75
  }, z.core.$strip>;
76
+ /**
77
+ * Tool input start event - marks beginning of tool input streaming
78
+ */
79
+ declare const ToolInputStartEventSchema: z.ZodObject<{
80
+ type: z.ZodLiteral<"tool-input-start">;
81
+ toolCallId: z.ZodString;
82
+ toolName: z.ZodString;
83
+ }, z.core.$strip>;
84
+ /**
85
+ * Tool input delta event - streaming chunks of tool input
86
+ */
87
+ declare const ToolInputDeltaEventSchema: z.ZodObject<{
88
+ type: z.ZodLiteral<"tool-input-delta">;
89
+ toolCallId: z.ZodString;
90
+ inputTextDelta: z.ZodString;
91
+ }, z.core.$strip>;
92
+ /**
93
+ * Tool input available event - complete tool input is available
94
+ */
95
+ declare const ToolInputAvailableEventSchema: z.ZodObject<{
96
+ type: z.ZodLiteral<"tool-input-available">;
97
+ toolCallId: z.ZodString;
98
+ toolName: z.ZodString;
99
+ input: z.ZodAny;
100
+ providerMetadata: z.ZodOptional<z.ZodAny>;
101
+ }, z.core.$strip>;
102
+ /**
103
+ * Tool output available event - tool execution result
104
+ */
105
+ declare const ToolOutputAvailableEventSchema: z.ZodObject<{
106
+ type: z.ZodLiteral<"tool-output-available">;
107
+ toolCallId: z.ZodString;
108
+ output: z.ZodAny;
109
+ }, z.core.$strip>;
110
+ /**
111
+ * Tool output error event - tool execution failed
112
+ */
113
+ declare const ToolOutputErrorEventSchema: z.ZodObject<{
114
+ type: z.ZodLiteral<"tool-output-error">;
115
+ toolCallId: z.ZodString;
116
+ errorText: z.ZodString;
117
+ output: z.ZodNullable<z.ZodAny>;
118
+ }, z.core.$strip>;
119
+ /**
120
+ * Tool approval request event - requesting user approval for tool execution
121
+ */
122
+ declare const ToolApprovalRequestEventSchema: z.ZodObject<{
123
+ type: z.ZodLiteral<"tool-approval-request">;
124
+ approvalId: z.ZodString;
125
+ toolCallId: z.ZodString;
126
+ }, z.core.$strip>;
127
+ /**
128
+ * Tool output denied event - tool execution was denied by user
129
+ */
130
+ declare const ToolOutputDeniedEventSchema: z.ZodObject<{
131
+ type: z.ZodLiteral<"tool-output-denied">;
132
+ toolCallId: z.ZodString;
133
+ }, z.core.$strip>;
76
134
  /**
77
135
  * Union of all stream event types
78
136
  * This is the main schema used for validating incoming stream events
@@ -108,6 +166,36 @@ declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
108
166
  completionTokens: z.ZodOptional<z.ZodNumber>;
109
167
  totalTokens: z.ZodOptional<z.ZodNumber>;
110
168
  }, z.core.$strip>>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ type: z.ZodLiteral<"tool-input-start">;
171
+ toolCallId: z.ZodString;
172
+ toolName: z.ZodString;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ type: z.ZodLiteral<"tool-input-delta">;
175
+ toolCallId: z.ZodString;
176
+ inputTextDelta: z.ZodString;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ type: z.ZodLiteral<"tool-input-available">;
179
+ toolCallId: z.ZodString;
180
+ toolName: z.ZodString;
181
+ input: z.ZodAny;
182
+ providerMetadata: z.ZodOptional<z.ZodAny>;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ type: z.ZodLiteral<"tool-output-available">;
185
+ toolCallId: z.ZodString;
186
+ output: z.ZodAny;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ type: z.ZodLiteral<"tool-output-error">;
189
+ toolCallId: z.ZodString;
190
+ errorText: z.ZodString;
191
+ output: z.ZodNullable<z.ZodAny>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ type: z.ZodLiteral<"tool-approval-request">;
194
+ approvalId: z.ZodString;
195
+ toolCallId: z.ZodString;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ type: z.ZodLiteral<"tool-output-denied">;
198
+ toolCallId: z.ZodString;
111
199
  }, z.core.$strip>], "type">;
112
200
  type TextStartEvent = z.infer<typeof TextStartEventSchema>;
113
201
  type TextDeltaEvent = z.infer<typeof TextDeltaEventSchema>;
@@ -117,9 +205,16 @@ type DataOperationStreamEvent = z.infer<typeof DataOperationStreamEventSchema>;
117
205
  type DataSummaryStreamEvent = z.infer<typeof DataSummaryStreamEventSchema>;
118
206
  type StreamErrorEvent = z.infer<typeof StreamErrorEventSchema>;
119
207
  type StreamFinishEvent = z.infer<typeof StreamFinishEventSchema>;
208
+ type ToolInputStartEvent = z.infer<typeof ToolInputStartEventSchema>;
209
+ type ToolInputDeltaEvent = z.infer<typeof ToolInputDeltaEventSchema>;
210
+ type ToolInputAvailableEvent = z.infer<typeof ToolInputAvailableEventSchema>;
211
+ type ToolOutputAvailableEvent = z.infer<typeof ToolOutputAvailableEventSchema>;
212
+ type ToolOutputErrorEvent = z.infer<typeof ToolOutputErrorEventSchema>;
213
+ type ToolApprovalRequestEvent = z.infer<typeof ToolApprovalRequestEventSchema>;
214
+ type ToolOutputDeniedEvent = z.infer<typeof ToolOutputDeniedEventSchema>;
120
215
  /**
121
216
  * Union type of all possible stream events
122
217
  */
123
218
  type StreamEvent = z.infer<typeof StreamEventSchema>;
124
219
  //#endregion
125
- export { DataComponentStreamEvent, DataComponentStreamEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataSummaryStreamEvent, DataSummaryStreamEventSchema, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextStartEvent, TextStartEventSchema };
220
+ export { DataComponentStreamEvent, DataComponentStreamEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataSummaryStreamEvent, DataSummaryStreamEventSchema, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextStartEvent, TextStartEventSchema, ToolApprovalRequestEvent, ToolApprovalRequestEventSchema, ToolInputAvailableEvent, ToolInputAvailableEventSchema, ToolInputDeltaEvent, ToolInputDeltaEventSchema, ToolInputStartEvent, ToolInputStartEventSchema, ToolOutputAvailableEvent, ToolOutputAvailableEventSchema, ToolOutputDeniedEvent, ToolOutputDeniedEventSchema, ToolOutputErrorEvent, ToolOutputErrorEventSchema };
@@ -73,6 +73,64 @@ const StreamFinishEventSchema = z.object({
73
73
  }).optional()
74
74
  });
75
75
  /**
76
+ * Tool input start event - marks beginning of tool input streaming
77
+ */
78
+ const ToolInputStartEventSchema = z.object({
79
+ type: z.literal("tool-input-start"),
80
+ toolCallId: z.string(),
81
+ toolName: z.string()
82
+ });
83
+ /**
84
+ * Tool input delta event - streaming chunks of tool input
85
+ */
86
+ const ToolInputDeltaEventSchema = z.object({
87
+ type: z.literal("tool-input-delta"),
88
+ toolCallId: z.string(),
89
+ inputTextDelta: z.string()
90
+ });
91
+ /**
92
+ * Tool input available event - complete tool input is available
93
+ */
94
+ const ToolInputAvailableEventSchema = z.object({
95
+ type: z.literal("tool-input-available"),
96
+ toolCallId: z.string(),
97
+ toolName: z.string(),
98
+ input: z.any(),
99
+ providerMetadata: z.any().optional()
100
+ });
101
+ /**
102
+ * Tool output available event - tool execution result
103
+ */
104
+ const ToolOutputAvailableEventSchema = z.object({
105
+ type: z.literal("tool-output-available"),
106
+ toolCallId: z.string(),
107
+ output: z.any()
108
+ });
109
+ /**
110
+ * Tool output error event - tool execution failed
111
+ */
112
+ const ToolOutputErrorEventSchema = z.object({
113
+ type: z.literal("tool-output-error"),
114
+ toolCallId: z.string(),
115
+ errorText: z.string(),
116
+ output: z.any().nullable()
117
+ });
118
+ /**
119
+ * Tool approval request event - requesting user approval for tool execution
120
+ */
121
+ const ToolApprovalRequestEventSchema = z.object({
122
+ type: z.literal("tool-approval-request"),
123
+ approvalId: z.string(),
124
+ toolCallId: z.string()
125
+ });
126
+ /**
127
+ * Tool output denied event - tool execution was denied by user
128
+ */
129
+ const ToolOutputDeniedEventSchema = z.object({
130
+ type: z.literal("tool-output-denied"),
131
+ toolCallId: z.string()
132
+ });
133
+ /**
76
134
  * Union of all stream event types
77
135
  * This is the main schema used for validating incoming stream events
78
136
  */
@@ -84,8 +142,15 @@ const StreamEventSchema = z.discriminatedUnion("type", [
84
142
  DataOperationStreamEventSchema,
85
143
  DataSummaryStreamEventSchema,
86
144
  StreamErrorEventSchema,
87
- StreamFinishEventSchema
145
+ StreamFinishEventSchema,
146
+ ToolInputStartEventSchema,
147
+ ToolInputDeltaEventSchema,
148
+ ToolInputAvailableEventSchema,
149
+ ToolOutputAvailableEventSchema,
150
+ ToolOutputErrorEventSchema,
151
+ ToolApprovalRequestEventSchema,
152
+ ToolOutputDeniedEventSchema
88
153
  ]);
89
154
 
90
155
  //#endregion
91
- export { DataComponentStreamEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema };
156
+ export { DataComponentStreamEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema, ToolApprovalRequestEventSchema, ToolInputAvailableEventSchema, ToolInputDeltaEventSchema, ToolInputStartEventSchema, ToolOutputAvailableEventSchema, ToolOutputDeniedEventSchema, ToolOutputErrorEventSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20260123222002",
3
+ "version": "0.0.0-dev-20260124011934",
4
4
  "description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",