@chronary/toolkit 1.5.2 → 1.6.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 (43) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +2 -2
  3. package/dist/ai-sdk.cjs +291 -62
  4. package/dist/ai-sdk.cjs.map +1 -1
  5. package/dist/ai-sdk.d.cts +1 -1
  6. package/dist/ai-sdk.d.ts +1 -1
  7. package/dist/ai-sdk.js +291 -62
  8. package/dist/ai-sdk.js.map +1 -1
  9. package/dist/{base-DuHHyh4Q.d.cts → base-BL0efzXv.d.cts} +11 -3
  10. package/dist/{base-DuHHyh4Q.d.ts → base-BL0efzXv.d.ts} +11 -3
  11. package/dist/index.cjs +336 -64
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +230 -6
  14. package/dist/index.d.ts +230 -6
  15. package/dist/index.js +331 -63
  16. package/dist/index.js.map +1 -1
  17. package/dist/instructions-CQAfBjV3.d.cts +10 -0
  18. package/dist/instructions-CQAfBjV3.d.ts +10 -0
  19. package/dist/langchain.cjs +290 -61
  20. package/dist/langchain.cjs.map +1 -1
  21. package/dist/langchain.d.cts +3 -2
  22. package/dist/langchain.d.ts +3 -2
  23. package/dist/langchain.js +290 -61
  24. package/dist/langchain.js.map +1 -1
  25. package/dist/mastra.cjs +291 -62
  26. package/dist/mastra.cjs.map +1 -1
  27. package/dist/mastra.d.cts +3 -2
  28. package/dist/mastra.d.ts +3 -2
  29. package/dist/mastra.js +291 -62
  30. package/dist/mastra.js.map +1 -1
  31. package/dist/mcp.cjs +313 -68
  32. package/dist/mcp.cjs.map +1 -1
  33. package/dist/mcp.d.cts +4 -2
  34. package/dist/mcp.d.ts +4 -2
  35. package/dist/mcp.js +311 -67
  36. package/dist/mcp.js.map +1 -1
  37. package/dist/openai.cjs +290 -61
  38. package/dist/openai.cjs.map +1 -1
  39. package/dist/openai.d.cts +3 -2
  40. package/dist/openai.d.ts +3 -2
  41. package/dist/openai.js +290 -61
  42. package/dist/openai.js.map +1 -1
  43. package/package.json +5 -5
package/dist/index.d.cts CHANGED
@@ -1,10 +1,29 @@
1
- import { T as ToolDefinition, b as ToolResult } from './base-DuHHyh4Q.cjs';
2
- export { B as BaseToolkit, C as ChronaryToolkitConfig, L as ListToolkit, M as MapToolkit, c as TOOL_NAMES, a as ToolAnnotations, d as ToolName } from './base-DuHHyh4Q.cjs';
1
+ import { T as ToolDefinition, b as ToolResult } from './base-BL0efzXv.cjs';
2
+ export { B as BaseToolkit, C as ChronaryToolkitConfig, L as ListToolkit, M as MapToolkit, c as TOOL_NAMES, a as ToolAnnotations, d as ToolName } from './base-BL0efzXv.cjs';
3
+ export { M as MCP_SERVER_INSTRUCTIONS } from './instructions-CQAfBjV3.cjs';
3
4
  import { z } from 'zod';
4
5
  import '@chronary/sdk';
5
6
 
6
7
  declare const TOOL_DEFINITIONS: ToolDefinition[];
7
8
 
9
+ /**
10
+ * Event fields whose text can come from outside the org: a public booking
11
+ * page writes the booker's name into `title` and their notes into
12
+ * `description` and `metadata.invitee_notes` (`metadata.source` is
13
+ * `booking_page`). Kept equal to the hosted MCP server's list.
14
+ */
15
+ declare const EVENT_UNTRUSTED_FIELDS: readonly ["title", "description", "metadata"];
16
+ /**
17
+ * Webhook delivery fields with third-party text: `payload` carries event text,
18
+ * `response_body` is whatever the receiving server answered.
19
+ */
20
+ declare const WEBHOOK_DELIVERY_UNTRUSTED_FIELDS: readonly ["payload", "response_body"];
21
+ /**
22
+ * Prefix `untrusted_fields` to a successful JSON object result. Arrays,
23
+ * primitives and errors are returned unchanged.
24
+ */
25
+ declare function withUntrustedFields(result: ToolResult, fields: readonly string[]): ToolResult;
26
+
8
27
  declare const ListCalendarsSchema: z.ZodObject<{
9
28
  agent_id: z.ZodOptional<z.ZodString>;
10
29
  include: z.ZodOptional<z.ZodEnum<{
@@ -82,6 +101,26 @@ declare const ListEventsSchema: z.ZodObject<{
82
101
  offset: z.ZodDefault<z.ZodNumber>;
83
102
  expand: z.ZodDefault<z.ZodBoolean>;
84
103
  }, z.core.$strip>;
104
+ declare const ListOrgEventsSchema: z.ZodObject<{
105
+ calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
+ agent_id: z.ZodOptional<z.ZodString>;
107
+ start_after: z.ZodOptional<z.ZodString>;
108
+ start_before: z.ZodOptional<z.ZodString>;
109
+ status: z.ZodOptional<z.ZodEnum<{
110
+ confirmed: "confirmed";
111
+ tentative: "tentative";
112
+ cancelled: "cancelled";
113
+ hold: "hold";
114
+ }>>;
115
+ source: z.ZodOptional<z.ZodEnum<{
116
+ internal: "internal";
117
+ external_ical: "external_ical";
118
+ }>>;
119
+ q: z.ZodOptional<z.ZodString>;
120
+ expand: z.ZodDefault<z.ZodBoolean>;
121
+ limit: z.ZodDefault<z.ZodNumber>;
122
+ offset: z.ZodDefault<z.ZodNumber>;
123
+ }, z.core.$strip>;
85
124
  declare const GetEventSchema: z.ZodObject<{
86
125
  event_id: z.ZodString;
87
126
  calendar_id: z.ZodOptional<z.ZodString>;
@@ -253,9 +292,10 @@ declare const CreateProposalSchema: z.ZodObject<{
253
292
  }, z.core.$strip>;
254
293
  declare const ListProposalsSchema: z.ZodObject<{
255
294
  status: z.ZodOptional<z.ZodEnum<{
256
- pending: "pending";
257
295
  confirmed: "confirmed";
258
296
  cancelled: "cancelled";
297
+ pending: "pending";
298
+ resolving: "resolving";
259
299
  expired: "expired";
260
300
  }>>;
261
301
  organizer_agent_id: z.ZodOptional<z.ZodString>;
@@ -333,6 +373,13 @@ declare const ClearAvailabilityRulesSchema: z.ZodObject<{
333
373
  declare const CreateScopedKeySchema: z.ZodObject<{
334
374
  agent_id: z.ZodString;
335
375
  label: z.ZodOptional<z.ZodString>;
376
+ expires_in: z.ZodOptional<z.ZodEnum<{
377
+ "30d": "30d";
378
+ "60d": "60d";
379
+ "90d": "90d";
380
+ "180d": "180d";
381
+ "365d": "365d";
382
+ }>>;
336
383
  }, z.core.$strip>;
337
384
  declare const ListScopedKeysSchema: z.ZodObject<{}, z.core.$strip>;
338
385
  declare const RevokeScopedKeySchema: z.ZodObject<{
@@ -343,6 +390,33 @@ declare const GetAuditLogSchema: z.ZodObject<{
343
390
  to: z.ZodOptional<z.ZodString>;
344
391
  action: z.ZodOptional<z.ZodString>;
345
392
  actor_key_prefix: z.ZodOptional<z.ZodString>;
393
+ actor_type: z.ZodOptional<z.ZodEnum<{
394
+ session: "session";
395
+ org_key: "org_key";
396
+ agent_key: "agent_key";
397
+ system: "system";
398
+ }>>;
399
+ actor_id: z.ZodOptional<z.ZodString>;
400
+ request_id: z.ZodOptional<z.ZodString>;
401
+ resource: z.ZodOptional<z.ZodString>;
402
+ status_class: z.ZodOptional<z.ZodEnum<{
403
+ "2xx": "2xx";
404
+ "3xx": "3xx";
405
+ "4xx": "4xx";
406
+ "5xx": "5xx";
407
+ }>>;
408
+ category: z.ZodOptional<z.ZodEnum<{
409
+ agents: "agents";
410
+ calendars: "calendars";
411
+ account: "account";
412
+ keys: "keys";
413
+ events: "events";
414
+ scheduling: "scheduling";
415
+ webhooks: "webhooks";
416
+ human_calendars: "human_calendars";
417
+ billing: "billing";
418
+ security: "security";
419
+ }>>;
346
420
  cursor: z.ZodOptional<z.ZodString>;
347
421
  limit: z.ZodOptional<z.ZodNumber>;
348
422
  }, z.core.$strip>;
@@ -377,6 +451,9 @@ declare const CreateWebhookSchema: z.ZodObject<{
377
451
  "proposal.expired": "proposal.expired";
378
452
  "proposal.cancelled": "proposal.cancelled";
379
453
  "webhook.deactivated": "webhook.deactivated";
454
+ "org.plan_changed": "org.plan_changed";
455
+ "calendar_connection.reauthorization_required": "calendar_connection.reauthorization_required";
456
+ "usage.threshold_crossed": "usage.threshold_crossed";
380
457
  }>>;
381
458
  }, z.core.$strip>;
382
459
  declare const UpdateWebhookSchema: z.ZodObject<{
@@ -401,6 +478,9 @@ declare const UpdateWebhookSchema: z.ZodObject<{
401
478
  "proposal.expired": "proposal.expired";
402
479
  "proposal.cancelled": "proposal.cancelled";
403
480
  "webhook.deactivated": "webhook.deactivated";
481
+ "org.plan_changed": "org.plan_changed";
482
+ "calendar_connection.reauthorization_required": "calendar_connection.reauthorization_required";
483
+ "usage.threshold_crossed": "usage.threshold_crossed";
404
484
  }>>>;
405
485
  active: z.ZodOptional<z.ZodBoolean>;
406
486
  }, z.core.$strip>;
@@ -415,8 +495,49 @@ declare const ListWebhookDeliveriesSchema: z.ZodObject<{
415
495
  pending: "pending";
416
496
  delivered: "delivered";
417
497
  failed: "failed";
498
+ dropped: "dropped";
418
499
  }>>;
419
500
  include_payload: z.ZodOptional<z.ZodBoolean>;
501
+ event_type: z.ZodOptional<z.ZodString>;
502
+ created_after: z.ZodOptional<z.ZodString>;
503
+ created_before: z.ZodOptional<z.ZodString>;
504
+ delivery_id: z.ZodOptional<z.ZodString>;
505
+ is_test: z.ZodOptional<z.ZodBoolean>;
506
+ cursor: z.ZodOptional<z.ZodString>;
507
+ }, z.core.$strip>;
508
+ declare const GetWebhookDeliverySchema: z.ZodObject<{
509
+ webhook_id: z.ZodString;
510
+ delivery_id: z.ZodString;
511
+ }, z.core.$strip>;
512
+ declare const SendTestWebhookSchema: z.ZodObject<{
513
+ webhook_id: z.ZodString;
514
+ event_type: z.ZodEnum<{
515
+ "agent.created": "agent.created";
516
+ "agent.updated": "agent.updated";
517
+ "event.created": "event.created";
518
+ "event.updated": "event.updated";
519
+ "event.deleted": "event.deleted";
520
+ "event.started": "event.started";
521
+ "event.ended": "event.ended";
522
+ "event.reminder": "event.reminder";
523
+ "event.hold_created": "event.hold_created";
524
+ "event.hold_expired": "event.hold_expired";
525
+ "event.hold_released": "event.hold_released";
526
+ "event.hold_confirmed": "event.hold_confirmed";
527
+ "proposal.created": "proposal.created";
528
+ "proposal.responded": "proposal.responded";
529
+ "proposal.confirmed": "proposal.confirmed";
530
+ "proposal.expired": "proposal.expired";
531
+ "proposal.cancelled": "proposal.cancelled";
532
+ "webhook.deactivated": "webhook.deactivated";
533
+ "org.plan_changed": "org.plan_changed";
534
+ "calendar_connection.reauthorization_required": "calendar_connection.reauthorization_required";
535
+ "usage.threshold_crossed": "usage.threshold_crossed";
536
+ }>;
537
+ }, z.core.$strip>;
538
+ declare const ReplayWebhookDeliverySchema: z.ZodObject<{
539
+ webhook_id: z.ZodString;
540
+ delivery_id: z.ZodString;
420
541
  }, z.core.$strip>;
421
542
  declare const ListICalSubscriptionsSchema: z.ZodObject<{
422
543
  agent_id: z.ZodString;
@@ -448,12 +569,38 @@ declare const DeleteICalSubscriptionSchema: z.ZodObject<{
448
569
  declare const SyncICalSubscriptionSchema: z.ZodObject<{
449
570
  subscription_id: z.ZodString;
450
571
  }, z.core.$strip>;
572
+ declare const PauseICalSubscriptionSchema: z.ZodObject<{
573
+ subscription_id: z.ZodString;
574
+ }, z.core.$strip>;
575
+ declare const ResumeICalSubscriptionSchema: z.ZodObject<{
576
+ subscription_id: z.ZodString;
577
+ }, z.core.$strip>;
451
578
  declare const GetUsageSchema: z.ZodObject<{}, z.core.$strip>;
579
+ declare const GetUsageHistorySchema: z.ZodObject<{
580
+ months: z.ZodOptional<z.ZodNumber>;
581
+ }, z.core.$strip>;
582
+ declare const GetBillingSchema: z.ZodObject<{}, z.core.$strip>;
583
+ declare const RequestUpgradeSchema: z.ZodObject<{
584
+ interval: z.ZodOptional<z.ZodEnum<{
585
+ month: "month";
586
+ year: "year";
587
+ }>>;
588
+ reason: z.ZodOptional<z.ZodString>;
589
+ feature: z.ZodOptional<z.ZodString>;
590
+ metric: z.ZodOptional<z.ZodString>;
591
+ }, z.core.$strip>;
592
+ declare const GetUpgradeRequestSchema: z.ZodObject<{
593
+ id: z.ZodString;
594
+ }, z.core.$strip>;
595
+ declare const CancelUpgradeRequestSchema: z.ZodObject<{
596
+ id: z.ZodString;
597
+ }, z.core.$strip>;
452
598
 
453
599
  declare const schemas_AcceptTermsSchema: typeof AcceptTermsSchema;
454
600
  declare const schemas_CancelConnectionLinkSchema: typeof CancelConnectionLinkSchema;
455
601
  declare const schemas_CancelEventSchema: typeof CancelEventSchema;
456
602
  declare const schemas_CancelProposalSchema: typeof CancelProposalSchema;
603
+ declare const schemas_CancelUpgradeRequestSchema: typeof CancelUpgradeRequestSchema;
457
604
  declare const schemas_ClearAvailabilityRulesSchema: typeof ClearAvailabilityRulesSchema;
458
605
  declare const schemas_ConfirmEventSchema: typeof ConfirmEventSchema;
459
606
  declare const schemas_CreateAgentSchema: typeof CreateAgentSchema;
@@ -474,6 +621,7 @@ declare const schemas_GetAgentSchema: typeof GetAgentSchema;
474
621
  declare const schemas_GetAuditLogSchema: typeof GetAuditLogSchema;
475
622
  declare const schemas_GetAvailabilityRulesSchema: typeof GetAvailabilityRulesSchema;
476
623
  declare const schemas_GetAvailabilitySchema: typeof GetAvailabilitySchema;
624
+ declare const schemas_GetBillingSchema: typeof GetBillingSchema;
477
625
  declare const schemas_GetBookingPageSchema: typeof GetBookingPageSchema;
478
626
  declare const schemas_GetCalendarContextSchema: typeof GetCalendarContextSchema;
479
627
  declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
@@ -481,21 +629,30 @@ declare const schemas_GetConnectionLinkSchema: typeof GetConnectionLinkSchema;
481
629
  declare const schemas_GetEventSchema: typeof GetEventSchema;
482
630
  declare const schemas_GetICalSubscriptionSchema: typeof GetICalSubscriptionSchema;
483
631
  declare const schemas_GetProposalSchema: typeof GetProposalSchema;
632
+ declare const schemas_GetUpgradeRequestSchema: typeof GetUpgradeRequestSchema;
633
+ declare const schemas_GetUsageHistorySchema: typeof GetUsageHistorySchema;
484
634
  declare const schemas_GetUsageSchema: typeof GetUsageSchema;
635
+ declare const schemas_GetWebhookDeliverySchema: typeof GetWebhookDeliverySchema;
485
636
  declare const schemas_GetWebhookSchema: typeof GetWebhookSchema;
486
637
  declare const schemas_ListAgentsSchema: typeof ListAgentsSchema;
487
638
  declare const schemas_ListBookingPagesSchema: typeof ListBookingPagesSchema;
488
639
  declare const schemas_ListCalendarsSchema: typeof ListCalendarsSchema;
489
640
  declare const schemas_ListEventsSchema: typeof ListEventsSchema;
490
641
  declare const schemas_ListICalSubscriptionsSchema: typeof ListICalSubscriptionsSchema;
642
+ declare const schemas_ListOrgEventsSchema: typeof ListOrgEventsSchema;
491
643
  declare const schemas_ListProposalsSchema: typeof ListProposalsSchema;
492
644
  declare const schemas_ListScopedKeysSchema: typeof ListScopedKeysSchema;
493
645
  declare const schemas_ListWebhookDeliveriesSchema: typeof ListWebhookDeliveriesSchema;
494
646
  declare const schemas_ListWebhooksSchema: typeof ListWebhooksSchema;
647
+ declare const schemas_PauseICalSubscriptionSchema: typeof PauseICalSubscriptionSchema;
495
648
  declare const schemas_ReleaseEventSchema: typeof ReleaseEventSchema;
649
+ declare const schemas_ReplayWebhookDeliverySchema: typeof ReplayWebhookDeliverySchema;
650
+ declare const schemas_RequestUpgradeSchema: typeof RequestUpgradeSchema;
496
651
  declare const schemas_ResolveProposalSchema: typeof ResolveProposalSchema;
497
652
  declare const schemas_RespondToProposalSchema: typeof RespondToProposalSchema;
653
+ declare const schemas_ResumeICalSubscriptionSchema: typeof ResumeICalSubscriptionSchema;
498
654
  declare const schemas_RevokeScopedKeySchema: typeof RevokeScopedKeySchema;
655
+ declare const schemas_SendTestWebhookSchema: typeof SendTestWebhookSchema;
499
656
  declare const schemas_SetAvailabilityRulesSchema: typeof SetAvailabilityRulesSchema;
500
657
  declare const schemas_SubscribeICalSchema: typeof SubscribeICalSchema;
501
658
  declare const schemas_SyncICalSubscriptionSchema: typeof SyncICalSubscriptionSchema;
@@ -505,13 +662,80 @@ declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
505
662
  declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
506
663
  declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
507
664
  declare namespace schemas {
508
- export { schemas_AcceptTermsSchema as AcceptTermsSchema, schemas_CancelConnectionLinkSchema as CancelConnectionLinkSchema, schemas_CancelEventSchema as CancelEventSchema, schemas_CancelProposalSchema as CancelProposalSchema, schemas_ClearAvailabilityRulesSchema as ClearAvailabilityRulesSchema, schemas_ConfirmEventSchema as ConfirmEventSchema, schemas_CreateAgentSchema as CreateAgentSchema, schemas_CreateBookingPageSchema as CreateBookingPageSchema, schemas_CreateCalendarSchema as CreateCalendarSchema, schemas_CreateConnectionLinkSchema as CreateConnectionLinkSchema, schemas_CreateEventSchema as CreateEventSchema, schemas_CreateProposalSchema as CreateProposalSchema, schemas_CreateScopedKeySchema as CreateScopedKeySchema, schemas_CreateWebhookSchema as CreateWebhookSchema, schemas_DeleteAgentSchema as DeleteAgentSchema, schemas_DeleteBookingPageSchema as DeleteBookingPageSchema, schemas_DeleteCalendarSchema as DeleteCalendarSchema, schemas_DeleteICalSubscriptionSchema as DeleteICalSubscriptionSchema, schemas_DeleteWebhookSchema as DeleteWebhookSchema, schemas_FindMeetingTimeSchema as FindMeetingTimeSchema, schemas_GetAgentSchema as GetAgentSchema, schemas_GetAuditLogSchema as GetAuditLogSchema, schemas_GetAvailabilityRulesSchema as GetAvailabilityRulesSchema, schemas_GetAvailabilitySchema as GetAvailabilitySchema, schemas_GetBookingPageSchema as GetBookingPageSchema, schemas_GetCalendarContextSchema as GetCalendarContextSchema, schemas_GetCalendarSchema as GetCalendarSchema, schemas_GetConnectionLinkSchema as GetConnectionLinkSchema, schemas_GetEventSchema as GetEventSchema, schemas_GetICalSubscriptionSchema as GetICalSubscriptionSchema, schemas_GetProposalSchema as GetProposalSchema, schemas_GetUsageSchema as GetUsageSchema, schemas_GetWebhookSchema as GetWebhookSchema, schemas_ListAgentsSchema as ListAgentsSchema, schemas_ListBookingPagesSchema as ListBookingPagesSchema, schemas_ListCalendarsSchema as ListCalendarsSchema, schemas_ListEventsSchema as ListEventsSchema, schemas_ListICalSubscriptionsSchema as ListICalSubscriptionsSchema, schemas_ListProposalsSchema as ListProposalsSchema, schemas_ListScopedKeysSchema as ListScopedKeysSchema, schemas_ListWebhookDeliveriesSchema as ListWebhookDeliveriesSchema, schemas_ListWebhooksSchema as ListWebhooksSchema, schemas_ReleaseEventSchema as ReleaseEventSchema, schemas_ResolveProposalSchema as ResolveProposalSchema, schemas_RespondToProposalSchema as RespondToProposalSchema, schemas_RevokeScopedKeySchema as RevokeScopedKeySchema, schemas_SetAvailabilityRulesSchema as SetAvailabilityRulesSchema, schemas_SubscribeICalSchema as SubscribeICalSchema, schemas_SyncICalSubscriptionSchema as SyncICalSubscriptionSchema, schemas_UpdateAgentSchema as UpdateAgentSchema, schemas_UpdateCalendarSchema as UpdateCalendarSchema, schemas_UpdateEventSchema as UpdateEventSchema, schemas_UpdateICalSubscriptionSchema as UpdateICalSubscriptionSchema, schemas_UpdateWebhookSchema as UpdateWebhookSchema };
665
+ export {
666
+ schemas_AcceptTermsSchema as AcceptTermsSchema,
667
+ schemas_CancelConnectionLinkSchema as CancelConnectionLinkSchema,
668
+ schemas_CancelEventSchema as CancelEventSchema,
669
+ schemas_CancelProposalSchema as CancelProposalSchema,
670
+ schemas_CancelUpgradeRequestSchema as CancelUpgradeRequestSchema,
671
+ schemas_ClearAvailabilityRulesSchema as ClearAvailabilityRulesSchema,
672
+ schemas_ConfirmEventSchema as ConfirmEventSchema,
673
+ schemas_CreateAgentSchema as CreateAgentSchema,
674
+ schemas_CreateBookingPageSchema as CreateBookingPageSchema,
675
+ schemas_CreateCalendarSchema as CreateCalendarSchema,
676
+ schemas_CreateConnectionLinkSchema as CreateConnectionLinkSchema,
677
+ schemas_CreateEventSchema as CreateEventSchema,
678
+ schemas_CreateProposalSchema as CreateProposalSchema,
679
+ schemas_CreateScopedKeySchema as CreateScopedKeySchema,
680
+ schemas_CreateWebhookSchema as CreateWebhookSchema,
681
+ schemas_DeleteAgentSchema as DeleteAgentSchema,
682
+ schemas_DeleteBookingPageSchema as DeleteBookingPageSchema,
683
+ schemas_DeleteCalendarSchema as DeleteCalendarSchema,
684
+ schemas_DeleteICalSubscriptionSchema as DeleteICalSubscriptionSchema,
685
+ schemas_DeleteWebhookSchema as DeleteWebhookSchema,
686
+ schemas_FindMeetingTimeSchema as FindMeetingTimeSchema,
687
+ schemas_GetAgentSchema as GetAgentSchema,
688
+ schemas_GetAuditLogSchema as GetAuditLogSchema,
689
+ schemas_GetAvailabilityRulesSchema as GetAvailabilityRulesSchema,
690
+ schemas_GetAvailabilitySchema as GetAvailabilitySchema,
691
+ schemas_GetBillingSchema as GetBillingSchema,
692
+ schemas_GetBookingPageSchema as GetBookingPageSchema,
693
+ schemas_GetCalendarContextSchema as GetCalendarContextSchema,
694
+ schemas_GetCalendarSchema as GetCalendarSchema,
695
+ schemas_GetConnectionLinkSchema as GetConnectionLinkSchema,
696
+ schemas_GetEventSchema as GetEventSchema,
697
+ schemas_GetICalSubscriptionSchema as GetICalSubscriptionSchema,
698
+ schemas_GetProposalSchema as GetProposalSchema,
699
+ schemas_GetUpgradeRequestSchema as GetUpgradeRequestSchema,
700
+ schemas_GetUsageHistorySchema as GetUsageHistorySchema,
701
+ schemas_GetUsageSchema as GetUsageSchema,
702
+ schemas_GetWebhookDeliverySchema as GetWebhookDeliverySchema,
703
+ schemas_GetWebhookSchema as GetWebhookSchema,
704
+ schemas_ListAgentsSchema as ListAgentsSchema,
705
+ schemas_ListBookingPagesSchema as ListBookingPagesSchema,
706
+ schemas_ListCalendarsSchema as ListCalendarsSchema,
707
+ schemas_ListEventsSchema as ListEventsSchema,
708
+ schemas_ListICalSubscriptionsSchema as ListICalSubscriptionsSchema,
709
+ schemas_ListOrgEventsSchema as ListOrgEventsSchema,
710
+ schemas_ListProposalsSchema as ListProposalsSchema,
711
+ schemas_ListScopedKeysSchema as ListScopedKeysSchema,
712
+ schemas_ListWebhookDeliveriesSchema as ListWebhookDeliveriesSchema,
713
+ schemas_ListWebhooksSchema as ListWebhooksSchema,
714
+ schemas_PauseICalSubscriptionSchema as PauseICalSubscriptionSchema,
715
+ schemas_ReleaseEventSchema as ReleaseEventSchema,
716
+ schemas_ReplayWebhookDeliverySchema as ReplayWebhookDeliverySchema,
717
+ schemas_RequestUpgradeSchema as RequestUpgradeSchema,
718
+ schemas_ResolveProposalSchema as ResolveProposalSchema,
719
+ schemas_RespondToProposalSchema as RespondToProposalSchema,
720
+ schemas_ResumeICalSubscriptionSchema as ResumeICalSubscriptionSchema,
721
+ schemas_RevokeScopedKeySchema as RevokeScopedKeySchema,
722
+ schemas_SendTestWebhookSchema as SendTestWebhookSchema,
723
+ schemas_SetAvailabilityRulesSchema as SetAvailabilityRulesSchema,
724
+ schemas_SubscribeICalSchema as SubscribeICalSchema,
725
+ schemas_SyncICalSubscriptionSchema as SyncICalSubscriptionSchema,
726
+ schemas_UpdateAgentSchema as UpdateAgentSchema,
727
+ schemas_UpdateCalendarSchema as UpdateCalendarSchema,
728
+ schemas_UpdateEventSchema as UpdateEventSchema,
729
+ schemas_UpdateICalSubscriptionSchema as UpdateICalSubscriptionSchema,
730
+ schemas_UpdateWebhookSchema as UpdateWebhookSchema,
731
+ };
509
732
  }
510
733
 
511
734
  /**
512
735
  * Wraps an async function so SDK errors become structured ToolResult objects
513
- * instead of thrown exceptions. LLMs see error messages, never stack traces.
736
+ * instead of thrown exceptions. LLMs see a structured error object, never
737
+ * stack traces.
514
738
  */
515
739
  declare function safeFunc<TParams>(fn: (params: TParams) => Promise<unknown>): (params: TParams) => Promise<ToolResult>;
516
740
 
517
- export { TOOL_DEFINITIONS, ToolDefinition, ToolResult, safeFunc, schemas };
741
+ export { EVENT_UNTRUSTED_FIELDS, TOOL_DEFINITIONS, ToolDefinition, ToolResult, WEBHOOK_DELIVERY_UNTRUSTED_FIELDS, safeFunc, schemas, withUntrustedFields };