@chronary/toolkit 1.6.2 → 1.6.3
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 +6 -1
- package/README.md +18 -15
- package/dist/ai-sdk.cjs +24 -23
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.d.cts +32 -27
- package/dist/ai-sdk.d.ts +32 -27
- package/dist/ai-sdk.js +24 -23
- package/dist/ai-sdk.js.map +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -23
- package/dist/index.js.map +1 -1
- package/dist/langchain.cjs +23 -23
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.js +23 -23
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +23 -23
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.js +23 -23
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +23 -23
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.js +23 -23
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +23 -23
- package/dist/openai.cjs.map +1 -1
- package/dist/openai.js +23 -23
- package/dist/openai.js.map +1 -1
- package/package.json +3 -2
package/dist/langchain.cjs
CHANGED
|
@@ -104,8 +104,8 @@ var DeleteBookingPageSchema = import_zod.z.object({
|
|
|
104
104
|
var ListEventsSchema = import_zod.z.object({
|
|
105
105
|
calendar_id: import_zod.z.string().optional().describe("Calendar ID to list events from. Provide this or agent_id."),
|
|
106
106
|
agent_id: import_zod.z.string().optional().describe("Agent ID to list events for across all of the agent's calendars. Provide this or calendar_id."),
|
|
107
|
-
start_after: import_zod.z.string().datetime().optional().describe("Only events starting after this ISO 8601 time"),
|
|
108
|
-
start_before: import_zod.z.string().datetime().optional().describe("Only events starting before this ISO 8601 time"),
|
|
107
|
+
start_after: import_zod.z.string().datetime({ offset: true }).optional().describe("Only events starting after this ISO 8601 time"),
|
|
108
|
+
start_before: import_zod.z.string().datetime({ offset: true }).optional().describe("Only events starting before this ISO 8601 time"),
|
|
109
109
|
status: import_zod.z.enum(["confirmed", "tentative", "cancelled", "hold"]).optional().describe("Filter by event status"),
|
|
110
110
|
source: import_zod.z.enum(["internal", "external_ical"]).optional().describe('Filter by source: "internal" (created via the API) or "external_ical" (synced from an iCal subscription)'),
|
|
111
111
|
limit: import_zod.z.number().int().min(1).max(200).default(50).describe("Max results to return"),
|
|
@@ -115,8 +115,8 @@ var ListEventsSchema = import_zod.z.object({
|
|
|
115
115
|
var ListOrgEventsSchema = import_zod.z.object({
|
|
116
116
|
calendar_ids: import_zod.z.array(import_zod.z.string()).max(50).optional().describe("Only these calendar IDs (at most 50)"),
|
|
117
117
|
agent_id: import_zod.z.string().optional().describe("Only this agent's calendars"),
|
|
118
|
-
start_after: import_zod.z.string().datetime().optional().describe("Only events starting at or after this ISO 8601 time"),
|
|
119
|
-
start_before: import_zod.z.string().datetime().optional().describe("Only events starting at or before this ISO 8601 time"),
|
|
118
|
+
start_after: import_zod.z.string().datetime({ offset: true }).optional().describe("Only events starting at or after this ISO 8601 time"),
|
|
119
|
+
start_before: import_zod.z.string().datetime({ offset: true }).optional().describe("Only events starting at or before this ISO 8601 time"),
|
|
120
120
|
status: import_zod.z.enum(["confirmed", "tentative", "cancelled", "hold"]).optional().describe("Filter by event status"),
|
|
121
121
|
source: import_zod.z.enum(["internal", "external_ical"]).optional().describe('Filter by source: "internal" (created via the API) or "external_ical" (synced from an iCal subscription)'),
|
|
122
122
|
q: import_zod.z.string().optional().describe("Case-insensitive title search. Requires start_after and start_before at most 31 days apart"),
|
|
@@ -131,13 +131,13 @@ var GetEventSchema = import_zod.z.object({
|
|
|
131
131
|
var CreateEventSchema = import_zod.z.object({
|
|
132
132
|
calendar_id: import_zod.z.string().describe("Calendar ID to add the event to"),
|
|
133
133
|
title: import_zod.z.string().min(1).max(500).describe("Event title"),
|
|
134
|
-
start_time: import_zod.z.string().datetime().describe("Start time (ISO 8601)"),
|
|
135
|
-
end_time: import_zod.z.string().datetime().describe("End time (ISO 8601)"),
|
|
134
|
+
start_time: import_zod.z.string().datetime({ offset: true }).describe("Start time (ISO 8601)"),
|
|
135
|
+
end_time: import_zod.z.string().datetime({ offset: true }).describe("End time (ISO 8601)"),
|
|
136
136
|
description: import_zod.z.string().max(1e4).optional().describe("Optional event description"),
|
|
137
137
|
all_day: import_zod.z.boolean().default(false).describe("Whether this is an all-day event"),
|
|
138
138
|
status: import_zod.z.enum(["confirmed", "tentative", "hold"]).optional().describe('Event status. "hold" creates a tentative reservation that auto-expires at hold_expires_at. Defaults to "confirmed".'),
|
|
139
139
|
reminders: import_zod.z.array(import_zod.z.number().int().min(1).max(40320)).max(5).nullable().optional().describe("Reminder offsets in minutes before start_time (e.g. [10, 1440]). Each fires an event.reminder webhook and shows as an alarm in the iCal feed. Omit or null to inherit the calendar default (then the system default of 10 min); [] for no reminders."),
|
|
140
|
-
hold_expires_at: import_zod.z.string().datetime().optional().describe('Required when status="hold". ISO 8601 timestamp 30s-15min in the future. Auto-releases the hold when reached.'),
|
|
140
|
+
hold_expires_at: import_zod.z.string().datetime({ offset: true }).optional().describe('Required when status="hold". ISO 8601 timestamp 30s-15min in the future. Auto-releases the hold when reached.'),
|
|
141
141
|
hold_priority: import_zod.z.number().int().min(0).max(100).optional().describe('Only valid with status="hold". Higher-priority overlapping holds pre-empt lower-priority ones. Defaults to 0.'),
|
|
142
142
|
recurrence_rule: import_zod.z.string().max(256).optional().describe('Make this a recurring series (RFC 5545 RRULE subset, no "RRULE:" prefix), e.g. "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=12". Supports FREQ=DAILY/WEEKLY/MONTHLY/YEARLY, INTERVAL, COUNT (max 730) or UNTIL, BYDAY (weekly list or monthly ordinal like 2TU/-1FR), BYMONTHDAY (1-28 or -1). start_time must match the rule pattern; expansion is UTC-only. Not allowed with status="hold". Free plan: 1 recurring series, must end within 90 days.')
|
|
143
143
|
});
|
|
@@ -146,8 +146,8 @@ var UpdateEventSchema = import_zod.z.object({
|
|
|
146
146
|
calendar_id: import_zod.z.string().optional().describe("Calendar ID that owns the event. Optional \u2014 if omitted the calendar is resolved from the event."),
|
|
147
147
|
title: import_zod.z.string().min(1).max(500).optional().describe("New event title"),
|
|
148
148
|
description: import_zod.z.string().max(1e4).nullable().optional().describe("New description, or null to clear it"),
|
|
149
|
-
start_time: import_zod.z.string().datetime().optional().describe("New start time (ISO 8601)"),
|
|
150
|
-
end_time: import_zod.z.string().datetime().optional().describe("New end time (ISO 8601)"),
|
|
149
|
+
start_time: import_zod.z.string().datetime({ offset: true }).optional().describe("New start time (ISO 8601)"),
|
|
150
|
+
end_time: import_zod.z.string().datetime({ offset: true }).optional().describe("New end time (ISO 8601)"),
|
|
151
151
|
all_day: import_zod.z.boolean().optional().describe("Whether this is an all-day event"),
|
|
152
152
|
status: import_zod.z.enum(["confirmed", "tentative", "cancelled"]).optional().describe("New event status"),
|
|
153
153
|
metadata: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional().describe("Replacement metadata object"),
|
|
@@ -157,7 +157,7 @@ var UpdateEventSchema = import_zod.z.object({
|
|
|
157
157
|
var CancelEventSchema = import_zod.z.object({
|
|
158
158
|
event_id: import_zod.z.string().describe("Event ID to cancel"),
|
|
159
159
|
calendar_id: import_zod.z.string().optional().describe("Calendar ID that owns the event. Optional \u2014 if omitted the calendar is resolved from the event. Matches the asymmetry with confirm_event / release_event which never required this arg."),
|
|
160
|
-
occurrence_start: import_zod.z.string().datetime().optional().describe("For recurring events only: ISO 8601 start of the single occurrence to cancel. The rest of the series is unaffected.")
|
|
160
|
+
occurrence_start: import_zod.z.string().datetime({ offset: true }).optional().describe("For recurring events only: ISO 8601 start of the single occurrence to cancel. The rest of the series is unaffected.")
|
|
161
161
|
});
|
|
162
162
|
var ConfirmEventSchema = import_zod.z.object({
|
|
163
163
|
event_id: import_zod.z.string().describe("Event ID of the hold to confirm")
|
|
@@ -191,10 +191,10 @@ var DeleteAgentSchema = import_zod.z.object({
|
|
|
191
191
|
});
|
|
192
192
|
var GetAvailabilitySchema = import_zod.z.object({
|
|
193
193
|
agent_id: import_zod.z.string().describe("Agent ID to check availability for"),
|
|
194
|
-
start: import_zod.z.string().datetime().optional().describe("Range start (ISO 8601). Alias: start_time."),
|
|
195
|
-
end: import_zod.z.string().datetime().optional().describe("Range end (ISO 8601). Alias: end_time."),
|
|
196
|
-
start_time: import_zod.z.string().datetime().optional().describe("Alias for `start` (matches REST events naming)."),
|
|
197
|
-
end_time: import_zod.z.string().datetime().optional().describe("Alias for `end` (matches REST events naming)."),
|
|
194
|
+
start: import_zod.z.string().datetime({ offset: true }).optional().describe("Range start (ISO 8601). Alias: start_time."),
|
|
195
|
+
end: import_zod.z.string().datetime({ offset: true }).optional().describe("Range end (ISO 8601). Alias: end_time."),
|
|
196
|
+
start_time: import_zod.z.string().datetime({ offset: true }).optional().describe("Alias for `start` (matches REST events naming)."),
|
|
197
|
+
end_time: import_zod.z.string().datetime({ offset: true }).optional().describe("Alias for `end` (matches REST events naming)."),
|
|
198
198
|
duration: import_zod.z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Requested slot length (15m/30m/45m/1h/2h). Preferred over the deprecated slot_duration. Defaults to 30m."),
|
|
199
199
|
slot_duration: import_zod.z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Deprecated alias for `duration` \u2014 minimum slot length. Prefer `duration`."),
|
|
200
200
|
include_busy: import_zod.z.boolean().default(false).describe("Include busy blocks in response")
|
|
@@ -202,10 +202,10 @@ var GetAvailabilitySchema = import_zod.z.object({
|
|
|
202
202
|
var FindMeetingTimeSchema = import_zod.z.object({
|
|
203
203
|
agents: import_zod.z.array(import_zod.z.string()).min(1).optional().describe("Array of agent IDs to find common free time for. All agents must be free during the returned slots. Alias: agent_ids."),
|
|
204
204
|
agent_ids: import_zod.z.array(import_zod.z.string()).min(1).optional().describe("Alias for `agents` (matches REST/scheduling-proposal naming)."),
|
|
205
|
-
start: import_zod.z.string().datetime().optional().describe("Search range start (ISO 8601). Alias: start_time."),
|
|
206
|
-
end: import_zod.z.string().datetime().optional().describe("Search range end (ISO 8601). Alias: end_time."),
|
|
207
|
-
start_time: import_zod.z.string().datetime().optional().describe("Alias for `start` (matches REST events naming)."),
|
|
208
|
-
end_time: import_zod.z.string().datetime().optional().describe("Alias for `end` (matches REST events naming)."),
|
|
205
|
+
start: import_zod.z.string().datetime({ offset: true }).optional().describe("Search range start (ISO 8601). Alias: start_time."),
|
|
206
|
+
end: import_zod.z.string().datetime({ offset: true }).optional().describe("Search range end (ISO 8601). Alias: end_time."),
|
|
207
|
+
start_time: import_zod.z.string().datetime({ offset: true }).optional().describe("Alias for `start` (matches REST events naming)."),
|
|
208
|
+
end_time: import_zod.z.string().datetime({ offset: true }).optional().describe("Alias for `end` (matches REST events naming)."),
|
|
209
209
|
duration: import_zod.z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Requested slot length (15m/30m/45m/1h/2h). Preferred over the deprecated slot_duration. Defaults to 30m."),
|
|
210
210
|
slot_duration: import_zod.z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Deprecated alias for `duration` \u2014 minimum slot length. Prefer `duration`."),
|
|
211
211
|
calendars: import_zod.z.array(import_zod.z.string()).optional().describe("Additional shared calendar IDs to treat as busy"),
|
|
@@ -224,8 +224,8 @@ var GetCalendarContextSchema = import_zod.z.object({
|
|
|
224
224
|
calendar_id: import_zod.z.string().describe("Calendar ID")
|
|
225
225
|
});
|
|
226
226
|
var proposalSlotSchema = import_zod.z.object({
|
|
227
|
-
start_time: import_zod.z.string().datetime().describe("Slot start time (ISO 8601)"),
|
|
228
|
-
end_time: import_zod.z.string().datetime().describe("Slot end time (ISO 8601), after start_time"),
|
|
227
|
+
start_time: import_zod.z.string().datetime({ offset: true }).describe("Slot start time (ISO 8601)"),
|
|
228
|
+
end_time: import_zod.z.string().datetime({ offset: true }).describe("Slot end time (ISO 8601), after start_time"),
|
|
229
229
|
weight: import_zod.z.number().min(0).max(10).default(1).optional().describe("Preference for this slot, 0\u201310 (higher = more preferred). Used to rank candidate slots when the proposal is resolved. Defaults to 1."),
|
|
230
230
|
calendar_id: import_zod.z.string().optional().describe("Calendar to create the event on if this slot is chosen. Defaults to the proposal's top-level calendar_id.")
|
|
231
231
|
});
|
|
@@ -236,7 +236,7 @@ var CreateProposalSchema = import_zod.z.object({
|
|
|
236
236
|
participant_agent_ids: import_zod.z.array(import_zod.z.string()).min(1).max(50).describe("Agent IDs invited to respond"),
|
|
237
237
|
calendar_id: import_zod.z.string().describe("Calendar the resolved event will be created on"),
|
|
238
238
|
slots: import_zod.z.array(proposalSlotSchema).min(1).max(20).describe("Candidate time slots (up to 20)"),
|
|
239
|
-
expires_at: import_zod.z.string().datetime().optional().describe("Auto-cancel cutoff if unresolved")
|
|
239
|
+
expires_at: import_zod.z.string().datetime({ offset: true }).optional().describe("Auto-cancel cutoff if unresolved")
|
|
240
240
|
});
|
|
241
241
|
var ListProposalsSchema = import_zod.z.object({
|
|
242
242
|
status: import_zod.z.enum(["pending", "resolving", "confirmed", "expired", "cancelled"]).optional().describe("Filter by proposal status"),
|
|
@@ -341,8 +341,8 @@ var ListWebhookDeliveriesSchema = import_zod.z.object({
|
|
|
341
341
|
status: import_zod.z.enum(WEBHOOK_DELIVERY_STATUSES).optional().describe("Filter to a single delivery status"),
|
|
342
342
|
include_payload: import_zod.z.boolean().optional().describe("Include the full event payload sent on each delivery"),
|
|
343
343
|
event_type: import_zod.z.string().max(100).regex(/^[a-z_]+\.(?:[a-z_]+)?$/).optional().describe("An exact event type (event.created), or a prefix ending in a dot (event.) for a whole group"),
|
|
344
|
-
created_after: import_zod.z.string().datetime().optional().describe("Only deliveries created at or after this time (ISO 8601
|
|
345
|
-
created_before: import_zod.z.string().datetime().optional().describe("Only deliveries created before this time (ISO 8601
|
|
344
|
+
created_after: import_zod.z.string().datetime({ offset: true }).optional().describe("Only deliveries created at or after this time (ISO 8601)"),
|
|
345
|
+
created_before: import_zod.z.string().datetime({ offset: true }).optional().describe("Only deliveries created before this time (ISO 8601)"),
|
|
346
346
|
delivery_id: import_zod.z.string().max(100).regex(/^whd_[A-Za-z0-9_-]+$/).optional().describe("Only the delivery with this id"),
|
|
347
347
|
is_test: import_zod.z.boolean().optional().describe("true for test events only, false to leave them out"),
|
|
348
348
|
cursor: import_zod.z.string().min(1).max(1024).optional().describe("The next_cursor from the previous page")
|