@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/dist/index.js CHANGED
@@ -218,8 +218,8 @@ var DeleteBookingPageSchema = z.object({
218
218
  var ListEventsSchema = z.object({
219
219
  calendar_id: z.string().optional().describe("Calendar ID to list events from. Provide this or agent_id."),
220
220
  agent_id: z.string().optional().describe("Agent ID to list events for across all of the agent's calendars. Provide this or calendar_id."),
221
- start_after: z.string().datetime().optional().describe("Only events starting after this ISO 8601 time"),
222
- start_before: z.string().datetime().optional().describe("Only events starting before this ISO 8601 time"),
221
+ start_after: z.string().datetime({ offset: true }).optional().describe("Only events starting after this ISO 8601 time"),
222
+ start_before: z.string().datetime({ offset: true }).optional().describe("Only events starting before this ISO 8601 time"),
223
223
  status: z.enum(["confirmed", "tentative", "cancelled", "hold"]).optional().describe("Filter by event status"),
224
224
  source: z.enum(["internal", "external_ical"]).optional().describe('Filter by source: "internal" (created via the API) or "external_ical" (synced from an iCal subscription)'),
225
225
  limit: z.number().int().min(1).max(200).default(50).describe("Max results to return"),
@@ -229,8 +229,8 @@ var ListEventsSchema = z.object({
229
229
  var ListOrgEventsSchema = z.object({
230
230
  calendar_ids: z.array(z.string()).max(50).optional().describe("Only these calendar IDs (at most 50)"),
231
231
  agent_id: z.string().optional().describe("Only this agent's calendars"),
232
- start_after: z.string().datetime().optional().describe("Only events starting at or after this ISO 8601 time"),
233
- start_before: z.string().datetime().optional().describe("Only events starting at or before this ISO 8601 time"),
232
+ start_after: z.string().datetime({ offset: true }).optional().describe("Only events starting at or after this ISO 8601 time"),
233
+ start_before: z.string().datetime({ offset: true }).optional().describe("Only events starting at or before this ISO 8601 time"),
234
234
  status: z.enum(["confirmed", "tentative", "cancelled", "hold"]).optional().describe("Filter by event status"),
235
235
  source: z.enum(["internal", "external_ical"]).optional().describe('Filter by source: "internal" (created via the API) or "external_ical" (synced from an iCal subscription)'),
236
236
  q: z.string().optional().describe("Case-insensitive title search. Requires start_after and start_before at most 31 days apart"),
@@ -245,13 +245,13 @@ var GetEventSchema = z.object({
245
245
  var CreateEventSchema = z.object({
246
246
  calendar_id: z.string().describe("Calendar ID to add the event to"),
247
247
  title: z.string().min(1).max(500).describe("Event title"),
248
- start_time: z.string().datetime().describe("Start time (ISO 8601)"),
249
- end_time: z.string().datetime().describe("End time (ISO 8601)"),
248
+ start_time: z.string().datetime({ offset: true }).describe("Start time (ISO 8601)"),
249
+ end_time: z.string().datetime({ offset: true }).describe("End time (ISO 8601)"),
250
250
  description: z.string().max(1e4).optional().describe("Optional event description"),
251
251
  all_day: z.boolean().default(false).describe("Whether this is an all-day event"),
252
252
  status: z.enum(["confirmed", "tentative", "hold"]).optional().describe('Event status. "hold" creates a tentative reservation that auto-expires at hold_expires_at. Defaults to "confirmed".'),
253
253
  reminders: z.array(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."),
254
- hold_expires_at: z.string().datetime().optional().describe('Required when status="hold". ISO 8601 timestamp 30s-15min in the future. Auto-releases the hold when reached.'),
254
+ hold_expires_at: 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.'),
255
255
  hold_priority: 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.'),
256
256
  recurrence_rule: 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.')
257
257
  });
@@ -260,8 +260,8 @@ var UpdateEventSchema = z.object({
260
260
  calendar_id: z.string().optional().describe("Calendar ID that owns the event. Optional \u2014 if omitted the calendar is resolved from the event."),
261
261
  title: z.string().min(1).max(500).optional().describe("New event title"),
262
262
  description: z.string().max(1e4).nullable().optional().describe("New description, or null to clear it"),
263
- start_time: z.string().datetime().optional().describe("New start time (ISO 8601)"),
264
- end_time: z.string().datetime().optional().describe("New end time (ISO 8601)"),
263
+ start_time: z.string().datetime({ offset: true }).optional().describe("New start time (ISO 8601)"),
264
+ end_time: z.string().datetime({ offset: true }).optional().describe("New end time (ISO 8601)"),
265
265
  all_day: z.boolean().optional().describe("Whether this is an all-day event"),
266
266
  status: z.enum(["confirmed", "tentative", "cancelled"]).optional().describe("New event status"),
267
267
  metadata: z.record(z.string(), z.unknown()).optional().describe("Replacement metadata object"),
@@ -271,7 +271,7 @@ var UpdateEventSchema = z.object({
271
271
  var CancelEventSchema = z.object({
272
272
  event_id: z.string().describe("Event ID to cancel"),
273
273
  calendar_id: 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."),
274
- occurrence_start: 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.")
274
+ occurrence_start: 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.")
275
275
  });
276
276
  var ConfirmEventSchema = z.object({
277
277
  event_id: z.string().describe("Event ID of the hold to confirm")
@@ -305,10 +305,10 @@ var DeleteAgentSchema = z.object({
305
305
  });
306
306
  var GetAvailabilitySchema = z.object({
307
307
  agent_id: z.string().describe("Agent ID to check availability for"),
308
- start: z.string().datetime().optional().describe("Range start (ISO 8601). Alias: start_time."),
309
- end: z.string().datetime().optional().describe("Range end (ISO 8601). Alias: end_time."),
310
- start_time: z.string().datetime().optional().describe("Alias for `start` (matches REST events naming)."),
311
- end_time: z.string().datetime().optional().describe("Alias for `end` (matches REST events naming)."),
308
+ start: z.string().datetime({ offset: true }).optional().describe("Range start (ISO 8601). Alias: start_time."),
309
+ end: z.string().datetime({ offset: true }).optional().describe("Range end (ISO 8601). Alias: end_time."),
310
+ start_time: z.string().datetime({ offset: true }).optional().describe("Alias for `start` (matches REST events naming)."),
311
+ end_time: z.string().datetime({ offset: true }).optional().describe("Alias for `end` (matches REST events naming)."),
312
312
  duration: 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."),
313
313
  slot_duration: z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Deprecated alias for `duration` \u2014 minimum slot length. Prefer `duration`."),
314
314
  include_busy: z.boolean().default(false).describe("Include busy blocks in response")
@@ -316,10 +316,10 @@ var GetAvailabilitySchema = z.object({
316
316
  var FindMeetingTimeSchema = z.object({
317
317
  agents: z.array(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."),
318
318
  agent_ids: z.array(z.string()).min(1).optional().describe("Alias for `agents` (matches REST/scheduling-proposal naming)."),
319
- start: z.string().datetime().optional().describe("Search range start (ISO 8601). Alias: start_time."),
320
- end: z.string().datetime().optional().describe("Search range end (ISO 8601). Alias: end_time."),
321
- start_time: z.string().datetime().optional().describe("Alias for `start` (matches REST events naming)."),
322
- end_time: z.string().datetime().optional().describe("Alias for `end` (matches REST events naming)."),
319
+ start: z.string().datetime({ offset: true }).optional().describe("Search range start (ISO 8601). Alias: start_time."),
320
+ end: z.string().datetime({ offset: true }).optional().describe("Search range end (ISO 8601). Alias: end_time."),
321
+ start_time: z.string().datetime({ offset: true }).optional().describe("Alias for `start` (matches REST events naming)."),
322
+ end_time: z.string().datetime({ offset: true }).optional().describe("Alias for `end` (matches REST events naming)."),
323
323
  duration: 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."),
324
324
  slot_duration: z.enum(["15m", "30m", "45m", "1h", "2h"]).optional().describe("Deprecated alias for `duration` \u2014 minimum slot length. Prefer `duration`."),
325
325
  calendars: z.array(z.string()).optional().describe("Additional shared calendar IDs to treat as busy"),
@@ -338,8 +338,8 @@ var GetCalendarContextSchema = z.object({
338
338
  calendar_id: z.string().describe("Calendar ID")
339
339
  });
340
340
  var proposalSlotSchema = z.object({
341
- start_time: z.string().datetime().describe("Slot start time (ISO 8601)"),
342
- end_time: z.string().datetime().describe("Slot end time (ISO 8601), after start_time"),
341
+ start_time: z.string().datetime({ offset: true }).describe("Slot start time (ISO 8601)"),
342
+ end_time: z.string().datetime({ offset: true }).describe("Slot end time (ISO 8601), after start_time"),
343
343
  weight: 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."),
344
344
  calendar_id: z.string().optional().describe("Calendar to create the event on if this slot is chosen. Defaults to the proposal's top-level calendar_id.")
345
345
  });
@@ -350,7 +350,7 @@ var CreateProposalSchema = z.object({
350
350
  participant_agent_ids: z.array(z.string()).min(1).max(50).describe("Agent IDs invited to respond"),
351
351
  calendar_id: z.string().describe("Calendar the resolved event will be created on"),
352
352
  slots: z.array(proposalSlotSchema).min(1).max(20).describe("Candidate time slots (up to 20)"),
353
- expires_at: z.string().datetime().optional().describe("Auto-cancel cutoff if unresolved")
353
+ expires_at: z.string().datetime({ offset: true }).optional().describe("Auto-cancel cutoff if unresolved")
354
354
  });
355
355
  var ListProposalsSchema = z.object({
356
356
  status: z.enum(["pending", "resolving", "confirmed", "expired", "cancelled"]).optional().describe("Filter by proposal status"),
@@ -455,8 +455,8 @@ var ListWebhookDeliveriesSchema = z.object({
455
455
  status: z.enum(WEBHOOK_DELIVERY_STATUSES).optional().describe("Filter to a single delivery status"),
456
456
  include_payload: z.boolean().optional().describe("Include the full event payload sent on each delivery"),
457
457
  event_type: 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"),
458
- created_after: z.string().datetime().optional().describe("Only deliveries created at or after this time (ISO 8601, UTC)"),
459
- created_before: z.string().datetime().optional().describe("Only deliveries created before this time (ISO 8601, UTC)"),
458
+ created_after: z.string().datetime({ offset: true }).optional().describe("Only deliveries created at or after this time (ISO 8601)"),
459
+ created_before: z.string().datetime({ offset: true }).optional().describe("Only deliveries created before this time (ISO 8601)"),
460
460
  delivery_id: z.string().max(100).regex(/^whd_[A-Za-z0-9_-]+$/).optional().describe("Only the delivery with this id"),
461
461
  is_test: z.boolean().optional().describe("true for test events only, false to leave them out"),
462
462
  cursor: z.string().min(1).max(1024).optional().describe("The next_cursor from the previous page")