@chronary/toolkit 0.1.2
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/CHANGELOG.md +7 -0
- package/LICENSE +189 -0
- package/README.md +113 -0
- package/dist/ai-sdk.cjs +542 -0
- package/dist/ai-sdk.cjs.map +1 -0
- package/dist/ai-sdk.d.cts +47 -0
- package/dist/ai-sdk.d.ts +47 -0
- package/dist/ai-sdk.js +514 -0
- package/dist/ai-sdk.js.map +1 -0
- package/dist/base-BZ_wFEVc.d.cts +60 -0
- package/dist/base-BZ_wFEVc.d.ts +60 -0
- package/dist/index.cjs +586 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +350 -0
- package/dist/index.d.ts +350 -0
- package/dist/index.js +559 -0
- package/dist/index.js.map +1 -0
- package/dist/langchain.cjs +533 -0
- package/dist/langchain.cjs.map +1 -0
- package/dist/langchain.d.cts +33 -0
- package/dist/langchain.d.ts +33 -0
- package/dist/langchain.js +506 -0
- package/dist/langchain.js.map +1 -0
- package/dist/mastra.cjs +538 -0
- package/dist/mastra.cjs.map +1 -0
- package/dist/mastra.d.cts +31 -0
- package/dist/mastra.d.ts +31 -0
- package/dist/mastra.js +511 -0
- package/dist/mastra.js.map +1 -0
- package/dist/mcp.cjs +554 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.cts +57 -0
- package/dist/mcp.d.ts +57 -0
- package/dist/mcp.js +529 -0
- package/dist/mcp.js.map +1 -0
- package/dist/openai.cjs +551 -0
- package/dist/openai.cjs.map +1 -0
- package/dist/openai.d.cts +58 -0
- package/dist/openai.d.ts +58 -0
- package/dist/openai.js +526 -0
- package/dist/openai.js.map +1 -0
- package/package.json +145 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { T as ToolDefinition, a as ToolResult } from './base-BZ_wFEVc.js';
|
|
2
|
+
export { B as BaseToolkit, C as ChronaryToolkitConfig, L as ListToolkit, M as MapToolkit, b as TOOL_NAMES, c as ToolAnnotations, d as ToolName } from './base-BZ_wFEVc.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import '@chronary/sdk';
|
|
5
|
+
|
|
6
|
+
declare const TOOL_DEFINITIONS: ToolDefinition[];
|
|
7
|
+
|
|
8
|
+
declare const ListCalendarsSchema: z.ZodObject<{
|
|
9
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
include: z.ZodOptional<z.ZodEnum<["all"]>>;
|
|
11
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
agent_id?: string | undefined;
|
|
15
|
+
include?: "all" | undefined;
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
offset?: number | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
agent_id?: string | undefined;
|
|
20
|
+
include?: "all" | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
offset?: number | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
declare const GetCalendarSchema: z.ZodObject<{
|
|
25
|
+
calendar_id: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
calendar_id: string;
|
|
28
|
+
}, {
|
|
29
|
+
calendar_id: string;
|
|
30
|
+
}>;
|
|
31
|
+
declare const CreateCalendarSchema: z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
timezone: z.ZodString;
|
|
34
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
name: string;
|
|
38
|
+
timezone: string;
|
|
39
|
+
agent_id?: string | undefined;
|
|
40
|
+
metadata?: Record<string, unknown> | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
name: string;
|
|
43
|
+
timezone: string;
|
|
44
|
+
agent_id?: string | undefined;
|
|
45
|
+
metadata?: Record<string, unknown> | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
declare const UpdateCalendarSchema: z.ZodObject<{
|
|
48
|
+
calendar_id: z.ZodString;
|
|
49
|
+
name: z.ZodOptional<z.ZodString>;
|
|
50
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
51
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
calendar_id: string;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
timezone?: string | undefined;
|
|
56
|
+
metadata?: Record<string, unknown> | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
calendar_id: string;
|
|
59
|
+
name?: string | undefined;
|
|
60
|
+
timezone?: string | undefined;
|
|
61
|
+
metadata?: Record<string, unknown> | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
declare const DeleteCalendarSchema: z.ZodObject<{
|
|
64
|
+
calendar_id: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
calendar_id: string;
|
|
67
|
+
}, {
|
|
68
|
+
calendar_id: string;
|
|
69
|
+
}>;
|
|
70
|
+
declare const ListEventsSchema: z.ZodObject<{
|
|
71
|
+
calendar_id: z.ZodOptional<z.ZodString>;
|
|
72
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
73
|
+
start_after: z.ZodOptional<z.ZodString>;
|
|
74
|
+
start_before: z.ZodOptional<z.ZodString>;
|
|
75
|
+
status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled"]>>;
|
|
76
|
+
source: z.ZodOptional<z.ZodEnum<["internal", "external_ical"]>>;
|
|
77
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
status?: "confirmed" | "tentative" | "cancelled" | undefined;
|
|
81
|
+
agent_id?: string | undefined;
|
|
82
|
+
limit?: number | undefined;
|
|
83
|
+
offset?: number | undefined;
|
|
84
|
+
calendar_id?: string | undefined;
|
|
85
|
+
start_after?: string | undefined;
|
|
86
|
+
start_before?: string | undefined;
|
|
87
|
+
source?: "internal" | "external_ical" | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
status?: "confirmed" | "tentative" | "cancelled" | undefined;
|
|
90
|
+
agent_id?: string | undefined;
|
|
91
|
+
limit?: number | undefined;
|
|
92
|
+
offset?: number | undefined;
|
|
93
|
+
calendar_id?: string | undefined;
|
|
94
|
+
start_after?: string | undefined;
|
|
95
|
+
start_before?: string | undefined;
|
|
96
|
+
source?: "internal" | "external_ical" | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
declare const GetEventSchema: z.ZodObject<{
|
|
99
|
+
calendar_id: z.ZodString;
|
|
100
|
+
event_id: z.ZodString;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
calendar_id: string;
|
|
103
|
+
event_id: string;
|
|
104
|
+
}, {
|
|
105
|
+
calendar_id: string;
|
|
106
|
+
event_id: string;
|
|
107
|
+
}>;
|
|
108
|
+
declare const CreateEventSchema: z.ZodObject<{
|
|
109
|
+
calendar_id: z.ZodString;
|
|
110
|
+
title: z.ZodString;
|
|
111
|
+
start_time: z.ZodString;
|
|
112
|
+
end_time: z.ZodString;
|
|
113
|
+
description: z.ZodOptional<z.ZodString>;
|
|
114
|
+
all_day: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled"]>>;
|
|
116
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
calendar_id: string;
|
|
119
|
+
title: string;
|
|
120
|
+
start_time: string;
|
|
121
|
+
end_time: string;
|
|
122
|
+
status?: "confirmed" | "tentative" | "cancelled" | undefined;
|
|
123
|
+
metadata?: Record<string, unknown> | undefined;
|
|
124
|
+
description?: string | undefined;
|
|
125
|
+
all_day?: boolean | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
calendar_id: string;
|
|
128
|
+
title: string;
|
|
129
|
+
start_time: string;
|
|
130
|
+
end_time: string;
|
|
131
|
+
status?: "confirmed" | "tentative" | "cancelled" | undefined;
|
|
132
|
+
metadata?: Record<string, unknown> | undefined;
|
|
133
|
+
description?: string | undefined;
|
|
134
|
+
all_day?: boolean | undefined;
|
|
135
|
+
}>;
|
|
136
|
+
declare const UpdateEventSchema: z.ZodObject<{
|
|
137
|
+
calendar_id: z.ZodString;
|
|
138
|
+
event_id: z.ZodString;
|
|
139
|
+
title: z.ZodOptional<z.ZodString>;
|
|
140
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
start_time: z.ZodOptional<z.ZodString>;
|
|
142
|
+
end_time: z.ZodOptional<z.ZodString>;
|
|
143
|
+
all_day: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled"]>>;
|
|
145
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
calendar_id: string;
|
|
148
|
+
event_id: string;
|
|
149
|
+
status?: "confirmed" | "tentative" | "cancelled" | undefined;
|
|
150
|
+
metadata?: Record<string, unknown> | undefined;
|
|
151
|
+
title?: string | undefined;
|
|
152
|
+
start_time?: string | undefined;
|
|
153
|
+
end_time?: string | undefined;
|
|
154
|
+
description?: string | null | undefined;
|
|
155
|
+
all_day?: boolean | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
calendar_id: string;
|
|
158
|
+
event_id: string;
|
|
159
|
+
status?: "confirmed" | "tentative" | "cancelled" | undefined;
|
|
160
|
+
metadata?: Record<string, unknown> | undefined;
|
|
161
|
+
title?: string | undefined;
|
|
162
|
+
start_time?: string | undefined;
|
|
163
|
+
end_time?: string | undefined;
|
|
164
|
+
description?: string | null | undefined;
|
|
165
|
+
all_day?: boolean | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
declare const DeleteEventSchema: z.ZodObject<{
|
|
168
|
+
calendar_id: z.ZodString;
|
|
169
|
+
event_id: z.ZodString;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
calendar_id: string;
|
|
172
|
+
event_id: string;
|
|
173
|
+
}, {
|
|
174
|
+
calendar_id: string;
|
|
175
|
+
event_id: string;
|
|
176
|
+
}>;
|
|
177
|
+
declare const CheckAvailabilitySchema: z.ZodObject<{
|
|
178
|
+
agents: z.ZodArray<z.ZodString, "many">;
|
|
179
|
+
start: z.ZodString;
|
|
180
|
+
end: z.ZodString;
|
|
181
|
+
slot_duration: z.ZodOptional<z.ZodEnum<["15m", "30m", "45m", "1h", "2h"]>>;
|
|
182
|
+
calendars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
183
|
+
include_busy: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
agents: string[];
|
|
186
|
+
start: string;
|
|
187
|
+
end: string;
|
|
188
|
+
slot_duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
|
|
189
|
+
calendars?: string[] | undefined;
|
|
190
|
+
include_busy?: boolean | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
agents: string[];
|
|
193
|
+
start: string;
|
|
194
|
+
end: string;
|
|
195
|
+
slot_duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
|
|
196
|
+
calendars?: string[] | undefined;
|
|
197
|
+
include_busy?: boolean | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
declare const ListWebhooksSchema: z.ZodObject<{
|
|
200
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
limit?: number | undefined;
|
|
204
|
+
offset?: number | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
limit?: number | undefined;
|
|
207
|
+
offset?: number | undefined;
|
|
208
|
+
}>;
|
|
209
|
+
declare const GetWebhookSchema: z.ZodObject<{
|
|
210
|
+
webhook_id: z.ZodString;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
webhook_id: string;
|
|
213
|
+
}, {
|
|
214
|
+
webhook_id: string;
|
|
215
|
+
}>;
|
|
216
|
+
declare const CreateWebhookSchema: z.ZodObject<{
|
|
217
|
+
url: z.ZodString;
|
|
218
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
url: string;
|
|
221
|
+
events: string[];
|
|
222
|
+
}, {
|
|
223
|
+
url: string;
|
|
224
|
+
events: string[];
|
|
225
|
+
}>;
|
|
226
|
+
declare const UpdateWebhookSchema: z.ZodObject<{
|
|
227
|
+
webhook_id: z.ZodString;
|
|
228
|
+
url: z.ZodOptional<z.ZodString>;
|
|
229
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
230
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
webhook_id: string;
|
|
233
|
+
url?: string | undefined;
|
|
234
|
+
events?: string[] | undefined;
|
|
235
|
+
active?: boolean | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
webhook_id: string;
|
|
238
|
+
url?: string | undefined;
|
|
239
|
+
events?: string[] | undefined;
|
|
240
|
+
active?: boolean | undefined;
|
|
241
|
+
}>;
|
|
242
|
+
declare const DeleteWebhookSchema: z.ZodObject<{
|
|
243
|
+
webhook_id: z.ZodString;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
webhook_id: string;
|
|
246
|
+
}, {
|
|
247
|
+
webhook_id: string;
|
|
248
|
+
}>;
|
|
249
|
+
declare const ListICalSubscriptionsSchema: z.ZodObject<{
|
|
250
|
+
agent_id: z.ZodString;
|
|
251
|
+
status: z.ZodOptional<z.ZodEnum<["active", "error", "paused"]>>;
|
|
252
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
agent_id: string;
|
|
256
|
+
status?: "active" | "error" | "paused" | undefined;
|
|
257
|
+
limit?: number | undefined;
|
|
258
|
+
offset?: number | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
agent_id: string;
|
|
261
|
+
status?: "active" | "error" | "paused" | undefined;
|
|
262
|
+
limit?: number | undefined;
|
|
263
|
+
offset?: number | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
declare const GetICalSubscriptionSchema: z.ZodObject<{
|
|
266
|
+
subscription_id: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
subscription_id: string;
|
|
269
|
+
}, {
|
|
270
|
+
subscription_id: string;
|
|
271
|
+
}>;
|
|
272
|
+
declare const CreateICalSubscriptionSchema: z.ZodObject<{
|
|
273
|
+
agent_id: z.ZodString;
|
|
274
|
+
calendar_id: z.ZodString;
|
|
275
|
+
url: z.ZodString;
|
|
276
|
+
label: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
agent_id: string;
|
|
279
|
+
calendar_id: string;
|
|
280
|
+
url: string;
|
|
281
|
+
label?: string | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
agent_id: string;
|
|
284
|
+
calendar_id: string;
|
|
285
|
+
url: string;
|
|
286
|
+
label?: string | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
declare const UpdateICalSubscriptionSchema: z.ZodObject<{
|
|
289
|
+
subscription_id: z.ZodString;
|
|
290
|
+
label: z.ZodOptional<z.ZodString>;
|
|
291
|
+
url: z.ZodOptional<z.ZodString>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
subscription_id: string;
|
|
294
|
+
url?: string | undefined;
|
|
295
|
+
label?: string | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
subscription_id: string;
|
|
298
|
+
url?: string | undefined;
|
|
299
|
+
label?: string | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
declare const DeleteICalSubscriptionSchema: z.ZodObject<{
|
|
302
|
+
subscription_id: z.ZodString;
|
|
303
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
subscription_id: string;
|
|
305
|
+
}, {
|
|
306
|
+
subscription_id: string;
|
|
307
|
+
}>;
|
|
308
|
+
declare const SyncICalSubscriptionSchema: z.ZodObject<{
|
|
309
|
+
subscription_id: z.ZodString;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
subscription_id: string;
|
|
312
|
+
}, {
|
|
313
|
+
subscription_id: string;
|
|
314
|
+
}>;
|
|
315
|
+
declare const GetUsageSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
316
|
+
|
|
317
|
+
declare const schemas_CheckAvailabilitySchema: typeof CheckAvailabilitySchema;
|
|
318
|
+
declare const schemas_CreateCalendarSchema: typeof CreateCalendarSchema;
|
|
319
|
+
declare const schemas_CreateEventSchema: typeof CreateEventSchema;
|
|
320
|
+
declare const schemas_CreateICalSubscriptionSchema: typeof CreateICalSubscriptionSchema;
|
|
321
|
+
declare const schemas_CreateWebhookSchema: typeof CreateWebhookSchema;
|
|
322
|
+
declare const schemas_DeleteCalendarSchema: typeof DeleteCalendarSchema;
|
|
323
|
+
declare const schemas_DeleteEventSchema: typeof DeleteEventSchema;
|
|
324
|
+
declare const schemas_DeleteICalSubscriptionSchema: typeof DeleteICalSubscriptionSchema;
|
|
325
|
+
declare const schemas_DeleteWebhookSchema: typeof DeleteWebhookSchema;
|
|
326
|
+
declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
|
|
327
|
+
declare const schemas_GetEventSchema: typeof GetEventSchema;
|
|
328
|
+
declare const schemas_GetICalSubscriptionSchema: typeof GetICalSubscriptionSchema;
|
|
329
|
+
declare const schemas_GetUsageSchema: typeof GetUsageSchema;
|
|
330
|
+
declare const schemas_GetWebhookSchema: typeof GetWebhookSchema;
|
|
331
|
+
declare const schemas_ListCalendarsSchema: typeof ListCalendarsSchema;
|
|
332
|
+
declare const schemas_ListEventsSchema: typeof ListEventsSchema;
|
|
333
|
+
declare const schemas_ListICalSubscriptionsSchema: typeof ListICalSubscriptionsSchema;
|
|
334
|
+
declare const schemas_ListWebhooksSchema: typeof ListWebhooksSchema;
|
|
335
|
+
declare const schemas_SyncICalSubscriptionSchema: typeof SyncICalSubscriptionSchema;
|
|
336
|
+
declare const schemas_UpdateCalendarSchema: typeof UpdateCalendarSchema;
|
|
337
|
+
declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
|
|
338
|
+
declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
|
|
339
|
+
declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
|
|
340
|
+
declare namespace schemas {
|
|
341
|
+
export { schemas_CheckAvailabilitySchema as CheckAvailabilitySchema, schemas_CreateCalendarSchema as CreateCalendarSchema, schemas_CreateEventSchema as CreateEventSchema, schemas_CreateICalSubscriptionSchema as CreateICalSubscriptionSchema, schemas_CreateWebhookSchema as CreateWebhookSchema, schemas_DeleteCalendarSchema as DeleteCalendarSchema, schemas_DeleteEventSchema as DeleteEventSchema, schemas_DeleteICalSubscriptionSchema as DeleteICalSubscriptionSchema, schemas_DeleteWebhookSchema as DeleteWebhookSchema, schemas_GetCalendarSchema as GetCalendarSchema, schemas_GetEventSchema as GetEventSchema, schemas_GetICalSubscriptionSchema as GetICalSubscriptionSchema, schemas_GetUsageSchema as GetUsageSchema, schemas_GetWebhookSchema as GetWebhookSchema, schemas_ListCalendarsSchema as ListCalendarsSchema, schemas_ListEventsSchema as ListEventsSchema, schemas_ListICalSubscriptionsSchema as ListICalSubscriptionsSchema, schemas_ListWebhooksSchema as ListWebhooksSchema, schemas_SyncICalSubscriptionSchema as SyncICalSubscriptionSchema, schemas_UpdateCalendarSchema as UpdateCalendarSchema, schemas_UpdateEventSchema as UpdateEventSchema, schemas_UpdateICalSubscriptionSchema as UpdateICalSubscriptionSchema, schemas_UpdateWebhookSchema as UpdateWebhookSchema };
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Wraps an async function so SDK errors become structured ToolResult objects
|
|
346
|
+
* instead of thrown exceptions. LLMs see error messages, never stack traces.
|
|
347
|
+
*/
|
|
348
|
+
declare function safeFunc<TParams>(fn: (params: TParams) => Promise<unknown>): (params: TParams) => Promise<ToolResult>;
|
|
349
|
+
|
|
350
|
+
export { TOOL_DEFINITIONS, ToolDefinition, ToolResult, safeFunc, schemas };
|