@chronary/toolkit 1.3.1 → 1.5.0
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 +11 -2
- package/README.md +2 -2
- package/dist/ai-sdk.cjs +126 -2
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.d.cts +1 -1
- package/dist/ai-sdk.d.ts +1 -1
- package/dist/ai-sdk.js +126 -2
- package/dist/ai-sdk.js.map +1 -1
- package/dist/{base-C6QWbxc1.d.cts → base-DuHHyh4Q.d.cts} +2 -2
- package/dist/{base-C6QWbxc1.d.ts → base-DuHHyh4Q.d.ts} +2 -2
- package/dist/index.cjs +140 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -3
- package/dist/index.d.ts +53 -3
- package/dist/index.js +140 -2
- package/dist/index.js.map +1 -1
- package/dist/langchain.cjs +126 -2
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.d.cts +1 -1
- package/dist/langchain.d.ts +1 -1
- package/dist/langchain.js +126 -2
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +126 -2
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.d.cts +1 -1
- package/dist/mastra.d.ts +1 -1
- package/dist/mastra.js +126 -2
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +126 -2
- package/dist/mcp.cjs.map +1 -1
- package/dist/mcp.d.cts +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +126 -2
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +126 -2
- package/dist/openai.cjs.map +1 -1
- package/dist/openai.d.cts +1 -1
- package/dist/openai.d.ts +1 -1
- package/dist/openai.js +126 -2
- package/dist/openai.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolDefinition, b as ToolResult } from './base-
|
|
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-
|
|
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';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '@chronary/sdk';
|
|
5
5
|
|
|
@@ -38,6 +38,31 @@ declare const UpdateCalendarSchema: z.ZodObject<{
|
|
|
38
38
|
declare const DeleteCalendarSchema: z.ZodObject<{
|
|
39
39
|
calendar_id: z.ZodString;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
|
+
declare const ListBookingPagesSchema: z.ZodObject<{
|
|
42
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
declare const GetBookingPageSchema: z.ZodObject<{
|
|
46
|
+
booking_page_id: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const CreateBookingPageSchema: z.ZodObject<{
|
|
49
|
+
calendar_id: z.ZodString;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52
|
+
duration_minutes: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
buffer_minutes: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
window_days: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
min_notice_minutes: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
57
|
+
availability_constraints: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
58
|
+
start: z.ZodString;
|
|
59
|
+
end: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>>>;
|
|
61
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const DeleteBookingPageSchema: z.ZodObject<{
|
|
64
|
+
booking_page_id: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
41
66
|
declare const ListEventsSchema: z.ZodObject<{
|
|
42
67
|
calendar_id: z.ZodOptional<z.ZodString>;
|
|
43
68
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
@@ -191,6 +216,24 @@ declare const FindMeetingTimeSchema: z.ZodObject<{
|
|
|
191
216
|
calendars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
217
|
include_busy: z.ZodDefault<z.ZodBoolean>;
|
|
193
218
|
}, z.core.$strip>;
|
|
219
|
+
declare const CreateConnectionLinkSchema: z.ZodObject<{
|
|
220
|
+
calendar_id: z.ZodString;
|
|
221
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
222
|
+
availability: "availability";
|
|
223
|
+
publishing: "publishing";
|
|
224
|
+
}>>>;
|
|
225
|
+
publication_policy: z.ZodDefault<z.ZodEnum<{
|
|
226
|
+
confirmed: "confirmed";
|
|
227
|
+
none: "none";
|
|
228
|
+
confirmed_tentative: "confirmed_tentative";
|
|
229
|
+
}>>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
declare const GetConnectionLinkSchema: z.ZodObject<{
|
|
232
|
+
connection_link_id: z.ZodString;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
declare const CancelConnectionLinkSchema: z.ZodObject<{
|
|
235
|
+
connection_link_id: z.ZodString;
|
|
236
|
+
}, z.core.$strip>;
|
|
194
237
|
declare const GetCalendarContextSchema: z.ZodObject<{
|
|
195
238
|
calendar_id: z.ZodString;
|
|
196
239
|
}, z.core.$strip>;
|
|
@@ -408,17 +451,21 @@ declare const SyncICalSubscriptionSchema: z.ZodObject<{
|
|
|
408
451
|
declare const GetUsageSchema: z.ZodObject<{}, z.core.$strip>;
|
|
409
452
|
|
|
410
453
|
declare const schemas_AcceptTermsSchema: typeof AcceptTermsSchema;
|
|
454
|
+
declare const schemas_CancelConnectionLinkSchema: typeof CancelConnectionLinkSchema;
|
|
411
455
|
declare const schemas_CancelEventSchema: typeof CancelEventSchema;
|
|
412
456
|
declare const schemas_CancelProposalSchema: typeof CancelProposalSchema;
|
|
413
457
|
declare const schemas_ClearAvailabilityRulesSchema: typeof ClearAvailabilityRulesSchema;
|
|
414
458
|
declare const schemas_ConfirmEventSchema: typeof ConfirmEventSchema;
|
|
415
459
|
declare const schemas_CreateAgentSchema: typeof CreateAgentSchema;
|
|
460
|
+
declare const schemas_CreateBookingPageSchema: typeof CreateBookingPageSchema;
|
|
416
461
|
declare const schemas_CreateCalendarSchema: typeof CreateCalendarSchema;
|
|
462
|
+
declare const schemas_CreateConnectionLinkSchema: typeof CreateConnectionLinkSchema;
|
|
417
463
|
declare const schemas_CreateEventSchema: typeof CreateEventSchema;
|
|
418
464
|
declare const schemas_CreateProposalSchema: typeof CreateProposalSchema;
|
|
419
465
|
declare const schemas_CreateScopedKeySchema: typeof CreateScopedKeySchema;
|
|
420
466
|
declare const schemas_CreateWebhookSchema: typeof CreateWebhookSchema;
|
|
421
467
|
declare const schemas_DeleteAgentSchema: typeof DeleteAgentSchema;
|
|
468
|
+
declare const schemas_DeleteBookingPageSchema: typeof DeleteBookingPageSchema;
|
|
422
469
|
declare const schemas_DeleteCalendarSchema: typeof DeleteCalendarSchema;
|
|
423
470
|
declare const schemas_DeleteICalSubscriptionSchema: typeof DeleteICalSubscriptionSchema;
|
|
424
471
|
declare const schemas_DeleteWebhookSchema: typeof DeleteWebhookSchema;
|
|
@@ -427,14 +474,17 @@ declare const schemas_GetAgentSchema: typeof GetAgentSchema;
|
|
|
427
474
|
declare const schemas_GetAuditLogSchema: typeof GetAuditLogSchema;
|
|
428
475
|
declare const schemas_GetAvailabilityRulesSchema: typeof GetAvailabilityRulesSchema;
|
|
429
476
|
declare const schemas_GetAvailabilitySchema: typeof GetAvailabilitySchema;
|
|
477
|
+
declare const schemas_GetBookingPageSchema: typeof GetBookingPageSchema;
|
|
430
478
|
declare const schemas_GetCalendarContextSchema: typeof GetCalendarContextSchema;
|
|
431
479
|
declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
|
|
480
|
+
declare const schemas_GetConnectionLinkSchema: typeof GetConnectionLinkSchema;
|
|
432
481
|
declare const schemas_GetEventSchema: typeof GetEventSchema;
|
|
433
482
|
declare const schemas_GetICalSubscriptionSchema: typeof GetICalSubscriptionSchema;
|
|
434
483
|
declare const schemas_GetProposalSchema: typeof GetProposalSchema;
|
|
435
484
|
declare const schemas_GetUsageSchema: typeof GetUsageSchema;
|
|
436
485
|
declare const schemas_GetWebhookSchema: typeof GetWebhookSchema;
|
|
437
486
|
declare const schemas_ListAgentsSchema: typeof ListAgentsSchema;
|
|
487
|
+
declare const schemas_ListBookingPagesSchema: typeof ListBookingPagesSchema;
|
|
438
488
|
declare const schemas_ListCalendarsSchema: typeof ListCalendarsSchema;
|
|
439
489
|
declare const schemas_ListEventsSchema: typeof ListEventsSchema;
|
|
440
490
|
declare const schemas_ListICalSubscriptionsSchema: typeof ListICalSubscriptionsSchema;
|
|
@@ -455,7 +505,7 @@ declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
|
|
|
455
505
|
declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
|
|
456
506
|
declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
|
|
457
507
|
declare namespace schemas {
|
|
458
|
-
export { schemas_AcceptTermsSchema as AcceptTermsSchema, schemas_CancelEventSchema as CancelEventSchema, schemas_CancelProposalSchema as CancelProposalSchema, schemas_ClearAvailabilityRulesSchema as ClearAvailabilityRulesSchema, schemas_ConfirmEventSchema as ConfirmEventSchema, schemas_CreateAgentSchema as CreateAgentSchema, schemas_CreateCalendarSchema as CreateCalendarSchema, schemas_CreateEventSchema as CreateEventSchema, schemas_CreateProposalSchema as CreateProposalSchema, schemas_CreateScopedKeySchema as CreateScopedKeySchema, schemas_CreateWebhookSchema as CreateWebhookSchema, schemas_DeleteAgentSchema as DeleteAgentSchema, 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_GetCalendarContextSchema as GetCalendarContextSchema, schemas_GetCalendarSchema as GetCalendarSchema, 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_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 };
|
|
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 };
|
|
459
509
|
}
|
|
460
510
|
|
|
461
511
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToolDefinition, b as ToolResult } from './base-
|
|
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-
|
|
1
|
+
import { T as ToolDefinition, b as ToolResult } from './base-DuHHyh4Q.js';
|
|
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.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '@chronary/sdk';
|
|
5
5
|
|
|
@@ -38,6 +38,31 @@ declare const UpdateCalendarSchema: z.ZodObject<{
|
|
|
38
38
|
declare const DeleteCalendarSchema: z.ZodObject<{
|
|
39
39
|
calendar_id: z.ZodString;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
|
+
declare const ListBookingPagesSchema: z.ZodObject<{
|
|
42
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
declare const GetBookingPageSchema: z.ZodObject<{
|
|
46
|
+
booking_page_id: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const CreateBookingPageSchema: z.ZodObject<{
|
|
49
|
+
calendar_id: z.ZodString;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52
|
+
duration_minutes: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
buffer_minutes: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
window_days: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
min_notice_minutes: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
57
|
+
availability_constraints: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
58
|
+
start: z.ZodString;
|
|
59
|
+
end: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>>>;
|
|
61
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const DeleteBookingPageSchema: z.ZodObject<{
|
|
64
|
+
booking_page_id: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
41
66
|
declare const ListEventsSchema: z.ZodObject<{
|
|
42
67
|
calendar_id: z.ZodOptional<z.ZodString>;
|
|
43
68
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
@@ -191,6 +216,24 @@ declare const FindMeetingTimeSchema: z.ZodObject<{
|
|
|
191
216
|
calendars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
217
|
include_busy: z.ZodDefault<z.ZodBoolean>;
|
|
193
218
|
}, z.core.$strip>;
|
|
219
|
+
declare const CreateConnectionLinkSchema: z.ZodObject<{
|
|
220
|
+
calendar_id: z.ZodString;
|
|
221
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
222
|
+
availability: "availability";
|
|
223
|
+
publishing: "publishing";
|
|
224
|
+
}>>>;
|
|
225
|
+
publication_policy: z.ZodDefault<z.ZodEnum<{
|
|
226
|
+
confirmed: "confirmed";
|
|
227
|
+
none: "none";
|
|
228
|
+
confirmed_tentative: "confirmed_tentative";
|
|
229
|
+
}>>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
declare const GetConnectionLinkSchema: z.ZodObject<{
|
|
232
|
+
connection_link_id: z.ZodString;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
declare const CancelConnectionLinkSchema: z.ZodObject<{
|
|
235
|
+
connection_link_id: z.ZodString;
|
|
236
|
+
}, z.core.$strip>;
|
|
194
237
|
declare const GetCalendarContextSchema: z.ZodObject<{
|
|
195
238
|
calendar_id: z.ZodString;
|
|
196
239
|
}, z.core.$strip>;
|
|
@@ -408,17 +451,21 @@ declare const SyncICalSubscriptionSchema: z.ZodObject<{
|
|
|
408
451
|
declare const GetUsageSchema: z.ZodObject<{}, z.core.$strip>;
|
|
409
452
|
|
|
410
453
|
declare const schemas_AcceptTermsSchema: typeof AcceptTermsSchema;
|
|
454
|
+
declare const schemas_CancelConnectionLinkSchema: typeof CancelConnectionLinkSchema;
|
|
411
455
|
declare const schemas_CancelEventSchema: typeof CancelEventSchema;
|
|
412
456
|
declare const schemas_CancelProposalSchema: typeof CancelProposalSchema;
|
|
413
457
|
declare const schemas_ClearAvailabilityRulesSchema: typeof ClearAvailabilityRulesSchema;
|
|
414
458
|
declare const schemas_ConfirmEventSchema: typeof ConfirmEventSchema;
|
|
415
459
|
declare const schemas_CreateAgentSchema: typeof CreateAgentSchema;
|
|
460
|
+
declare const schemas_CreateBookingPageSchema: typeof CreateBookingPageSchema;
|
|
416
461
|
declare const schemas_CreateCalendarSchema: typeof CreateCalendarSchema;
|
|
462
|
+
declare const schemas_CreateConnectionLinkSchema: typeof CreateConnectionLinkSchema;
|
|
417
463
|
declare const schemas_CreateEventSchema: typeof CreateEventSchema;
|
|
418
464
|
declare const schemas_CreateProposalSchema: typeof CreateProposalSchema;
|
|
419
465
|
declare const schemas_CreateScopedKeySchema: typeof CreateScopedKeySchema;
|
|
420
466
|
declare const schemas_CreateWebhookSchema: typeof CreateWebhookSchema;
|
|
421
467
|
declare const schemas_DeleteAgentSchema: typeof DeleteAgentSchema;
|
|
468
|
+
declare const schemas_DeleteBookingPageSchema: typeof DeleteBookingPageSchema;
|
|
422
469
|
declare const schemas_DeleteCalendarSchema: typeof DeleteCalendarSchema;
|
|
423
470
|
declare const schemas_DeleteICalSubscriptionSchema: typeof DeleteICalSubscriptionSchema;
|
|
424
471
|
declare const schemas_DeleteWebhookSchema: typeof DeleteWebhookSchema;
|
|
@@ -427,14 +474,17 @@ declare const schemas_GetAgentSchema: typeof GetAgentSchema;
|
|
|
427
474
|
declare const schemas_GetAuditLogSchema: typeof GetAuditLogSchema;
|
|
428
475
|
declare const schemas_GetAvailabilityRulesSchema: typeof GetAvailabilityRulesSchema;
|
|
429
476
|
declare const schemas_GetAvailabilitySchema: typeof GetAvailabilitySchema;
|
|
477
|
+
declare const schemas_GetBookingPageSchema: typeof GetBookingPageSchema;
|
|
430
478
|
declare const schemas_GetCalendarContextSchema: typeof GetCalendarContextSchema;
|
|
431
479
|
declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
|
|
480
|
+
declare const schemas_GetConnectionLinkSchema: typeof GetConnectionLinkSchema;
|
|
432
481
|
declare const schemas_GetEventSchema: typeof GetEventSchema;
|
|
433
482
|
declare const schemas_GetICalSubscriptionSchema: typeof GetICalSubscriptionSchema;
|
|
434
483
|
declare const schemas_GetProposalSchema: typeof GetProposalSchema;
|
|
435
484
|
declare const schemas_GetUsageSchema: typeof GetUsageSchema;
|
|
436
485
|
declare const schemas_GetWebhookSchema: typeof GetWebhookSchema;
|
|
437
486
|
declare const schemas_ListAgentsSchema: typeof ListAgentsSchema;
|
|
487
|
+
declare const schemas_ListBookingPagesSchema: typeof ListBookingPagesSchema;
|
|
438
488
|
declare const schemas_ListCalendarsSchema: typeof ListCalendarsSchema;
|
|
439
489
|
declare const schemas_ListEventsSchema: typeof ListEventsSchema;
|
|
440
490
|
declare const schemas_ListICalSubscriptionsSchema: typeof ListICalSubscriptionsSchema;
|
|
@@ -455,7 +505,7 @@ declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
|
|
|
455
505
|
declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
|
|
456
506
|
declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
|
|
457
507
|
declare namespace schemas {
|
|
458
|
-
export { schemas_AcceptTermsSchema as AcceptTermsSchema, schemas_CancelEventSchema as CancelEventSchema, schemas_CancelProposalSchema as CancelProposalSchema, schemas_ClearAvailabilityRulesSchema as ClearAvailabilityRulesSchema, schemas_ConfirmEventSchema as ConfirmEventSchema, schemas_CreateAgentSchema as CreateAgentSchema, schemas_CreateCalendarSchema as CreateCalendarSchema, schemas_CreateEventSchema as CreateEventSchema, schemas_CreateProposalSchema as CreateProposalSchema, schemas_CreateScopedKeySchema as CreateScopedKeySchema, schemas_CreateWebhookSchema as CreateWebhookSchema, schemas_DeleteAgentSchema as DeleteAgentSchema, 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_GetCalendarContextSchema as GetCalendarContextSchema, schemas_GetCalendarSchema as GetCalendarSchema, 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_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 };
|
|
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 };
|
|
459
509
|
}
|
|
460
510
|
|
|
461
511
|
/**
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,10 @@ var TOOL_NAMES = [
|
|
|
11
11
|
"create_calendar",
|
|
12
12
|
"update_calendar",
|
|
13
13
|
"delete_calendar",
|
|
14
|
+
"create_booking_page",
|
|
15
|
+
"list_booking_pages",
|
|
16
|
+
"get_booking_page",
|
|
17
|
+
"delete_booking_page",
|
|
14
18
|
"list_events",
|
|
15
19
|
"get_event",
|
|
16
20
|
"create_event",
|
|
@@ -25,6 +29,9 @@ var TOOL_NAMES = [
|
|
|
25
29
|
"delete_agent",
|
|
26
30
|
"get_availability",
|
|
27
31
|
"find_meeting_time",
|
|
32
|
+
"create_connection_link",
|
|
33
|
+
"get_connection_link",
|
|
34
|
+
"cancel_connection_link",
|
|
28
35
|
"get_calendar_context",
|
|
29
36
|
"create_proposal",
|
|
30
37
|
"list_proposals",
|
|
@@ -59,17 +66,21 @@ var TOOL_NAMES = [
|
|
|
59
66
|
var schemas_exports = {};
|
|
60
67
|
__export(schemas_exports, {
|
|
61
68
|
AcceptTermsSchema: () => AcceptTermsSchema,
|
|
69
|
+
CancelConnectionLinkSchema: () => CancelConnectionLinkSchema,
|
|
62
70
|
CancelEventSchema: () => CancelEventSchema,
|
|
63
71
|
CancelProposalSchema: () => CancelProposalSchema,
|
|
64
72
|
ClearAvailabilityRulesSchema: () => ClearAvailabilityRulesSchema,
|
|
65
73
|
ConfirmEventSchema: () => ConfirmEventSchema,
|
|
66
74
|
CreateAgentSchema: () => CreateAgentSchema,
|
|
75
|
+
CreateBookingPageSchema: () => CreateBookingPageSchema,
|
|
67
76
|
CreateCalendarSchema: () => CreateCalendarSchema,
|
|
77
|
+
CreateConnectionLinkSchema: () => CreateConnectionLinkSchema,
|
|
68
78
|
CreateEventSchema: () => CreateEventSchema,
|
|
69
79
|
CreateProposalSchema: () => CreateProposalSchema,
|
|
70
80
|
CreateScopedKeySchema: () => CreateScopedKeySchema,
|
|
71
81
|
CreateWebhookSchema: () => CreateWebhookSchema,
|
|
72
82
|
DeleteAgentSchema: () => DeleteAgentSchema,
|
|
83
|
+
DeleteBookingPageSchema: () => DeleteBookingPageSchema,
|
|
73
84
|
DeleteCalendarSchema: () => DeleteCalendarSchema,
|
|
74
85
|
DeleteICalSubscriptionSchema: () => DeleteICalSubscriptionSchema,
|
|
75
86
|
DeleteWebhookSchema: () => DeleteWebhookSchema,
|
|
@@ -78,14 +89,17 @@ __export(schemas_exports, {
|
|
|
78
89
|
GetAuditLogSchema: () => GetAuditLogSchema,
|
|
79
90
|
GetAvailabilityRulesSchema: () => GetAvailabilityRulesSchema,
|
|
80
91
|
GetAvailabilitySchema: () => GetAvailabilitySchema,
|
|
92
|
+
GetBookingPageSchema: () => GetBookingPageSchema,
|
|
81
93
|
GetCalendarContextSchema: () => GetCalendarContextSchema,
|
|
82
94
|
GetCalendarSchema: () => GetCalendarSchema,
|
|
95
|
+
GetConnectionLinkSchema: () => GetConnectionLinkSchema,
|
|
83
96
|
GetEventSchema: () => GetEventSchema,
|
|
84
97
|
GetICalSubscriptionSchema: () => GetICalSubscriptionSchema,
|
|
85
98
|
GetProposalSchema: () => GetProposalSchema,
|
|
86
99
|
GetUsageSchema: () => GetUsageSchema,
|
|
87
100
|
GetWebhookSchema: () => GetWebhookSchema,
|
|
88
101
|
ListAgentsSchema: () => ListAgentsSchema,
|
|
102
|
+
ListBookingPagesSchema: () => ListBookingPagesSchema,
|
|
89
103
|
ListCalendarsSchema: () => ListCalendarsSchema,
|
|
90
104
|
ListEventsSchema: () => ListEventsSchema,
|
|
91
105
|
ListICalSubscriptionsSchema: () => ListICalSubscriptionsSchema,
|
|
@@ -154,6 +168,28 @@ var UpdateCalendarSchema = z.object({
|
|
|
154
168
|
var DeleteCalendarSchema = z.object({
|
|
155
169
|
calendar_id: z.string().describe("Calendar ID to delete")
|
|
156
170
|
});
|
|
171
|
+
var ListBookingPagesSchema = z.object({
|
|
172
|
+
limit: z.number().int().min(1).max(200).default(50).describe("Max results to return"),
|
|
173
|
+
offset: z.number().int().min(0).default(0).describe("Pagination offset")
|
|
174
|
+
});
|
|
175
|
+
var GetBookingPageSchema = z.object({
|
|
176
|
+
booking_page_id: z.string().describe("Booking page ID to fetch (bkp_...)")
|
|
177
|
+
});
|
|
178
|
+
var CreateBookingPageSchema = z.object({
|
|
179
|
+
calendar_id: z.string().describe("Calendar a booking resolves to (from create_calendar/list_calendars)."),
|
|
180
|
+
title: z.string().min(1).max(200).describe("Meeting title shown on the page."),
|
|
181
|
+
description: z.string().max(2e3).optional().describe("Optional description shown to the booker."),
|
|
182
|
+
duration_minutes: z.number().int().min(5).max(480).optional().describe("Slot length in minutes (default 30)."),
|
|
183
|
+
buffer_minutes: z.number().int().min(0).max(120).optional().describe("Padding before/after existing events (default 0)."),
|
|
184
|
+
window_days: z.number().int().min(1).max(365).optional().describe("How far ahead bookings are allowed (default 14)."),
|
|
185
|
+
min_notice_minutes: z.number().int().min(0).max(40320).optional().describe("Minimum lead time before a bookable slot (default 0)."),
|
|
186
|
+
timezone: z.string().min(1).max(64).optional().describe("IANA timezone for display + working hours (default UTC)."),
|
|
187
|
+
availability_constraints: z.record(z.string(), z.object({ start: z.string(), end: z.string() })).nullable().optional().describe('Weekly working hours, e.g. {"mon":{"start":"09:00","end":"17:00"}}. Omit/null for any time in the window.'),
|
|
188
|
+
active: z.boolean().optional().describe("Whether the page accepts bookings (default true).")
|
|
189
|
+
});
|
|
190
|
+
var DeleteBookingPageSchema = z.object({
|
|
191
|
+
booking_page_id: z.string().describe("Booking page ID to delete (bkp_...)")
|
|
192
|
+
});
|
|
157
193
|
var ListEventsSchema = z.object({
|
|
158
194
|
calendar_id: z.string().optional().describe("Calendar ID to list events from. Provide this or agent_id."),
|
|
159
195
|
agent_id: z.string().optional().describe("Agent ID to list events for across all of the agent's calendars. Provide this or calendar_id."),
|
|
@@ -252,6 +288,15 @@ var FindMeetingTimeSchema = z.object({
|
|
|
252
288
|
calendars: z.array(z.string()).optional().describe("Additional shared calendar IDs to treat as busy"),
|
|
253
289
|
include_busy: z.boolean().default(false).describe("Include per-agent busy blocks in response")
|
|
254
290
|
});
|
|
291
|
+
var CreateConnectionLinkSchema = z.object({
|
|
292
|
+
calendar_id: z.string().startsWith("cal_").describe("Chronary calendar whose owning agent will receive authorized availability"),
|
|
293
|
+
capabilities: z.array(z.enum(["availability", "publishing"])).min(1).max(2).default(["availability"]).describe("Request opaque availability and optional publishing permission"),
|
|
294
|
+
publication_policy: z.enum(["none", "confirmed", "confirmed_tentative"]).default("none").describe("Desired event publishing policy; a human still selects the destination")
|
|
295
|
+
});
|
|
296
|
+
var GetConnectionLinkSchema = z.object({
|
|
297
|
+
connection_link_id: z.string().startsWith("csl_").describe("Connection setup link ID")
|
|
298
|
+
});
|
|
299
|
+
var CancelConnectionLinkSchema = GetConnectionLinkSchema;
|
|
255
300
|
var GetCalendarContextSchema = z.object({
|
|
256
301
|
calendar_id: z.string().describe("Calendar ID")
|
|
257
302
|
});
|
|
@@ -445,6 +490,33 @@ var deleteCalendar = safeFunc(async (ctx) => {
|
|
|
445
490
|
await ctx.client.calendars.delete(ctx.params.calendar_id);
|
|
446
491
|
return void 0;
|
|
447
492
|
});
|
|
493
|
+
var listBookingPages = safeFunc(async (ctx) => {
|
|
494
|
+
const { client, params } = ctx;
|
|
495
|
+
const iter = client.bookingPages.list({ limit: params.limit });
|
|
496
|
+
return fetchPage(iter, params.offset, params.limit);
|
|
497
|
+
});
|
|
498
|
+
var getBookingPage = safeFunc(async (ctx) => {
|
|
499
|
+
return ctx.client.bookingPages.get(ctx.params.booking_page_id);
|
|
500
|
+
});
|
|
501
|
+
var createBookingPage = safeFunc(async (ctx) => {
|
|
502
|
+
const { client, params } = ctx;
|
|
503
|
+
return client.bookingPages.create({
|
|
504
|
+
calendar_id: params.calendar_id,
|
|
505
|
+
title: params.title,
|
|
506
|
+
description: params.description,
|
|
507
|
+
duration_minutes: params.duration_minutes,
|
|
508
|
+
buffer_minutes: params.buffer_minutes,
|
|
509
|
+
window_days: params.window_days,
|
|
510
|
+
min_notice_minutes: params.min_notice_minutes,
|
|
511
|
+
timezone: params.timezone,
|
|
512
|
+
availability_constraints: params.availability_constraints,
|
|
513
|
+
active: params.active
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
var deleteBookingPage = safeFunc(async (ctx) => {
|
|
517
|
+
await ctx.client.bookingPages.delete(ctx.params.booking_page_id);
|
|
518
|
+
return void 0;
|
|
519
|
+
});
|
|
448
520
|
var listEvents = safeFunc(async (ctx) => {
|
|
449
521
|
const { client, params } = ctx;
|
|
450
522
|
if (!params.calendar_id && !params.agent_id) {
|
|
@@ -548,6 +620,15 @@ var findMeetingTime = safeFunc(async (ctx) => {
|
|
|
548
620
|
include_busy: params.include_busy
|
|
549
621
|
});
|
|
550
622
|
});
|
|
623
|
+
var createConnectionLink = safeFunc(async (ctx) => {
|
|
624
|
+
const { calendar_id, ...params } = ctx.params;
|
|
625
|
+
return ctx.client.connectionLinks.create(calendar_id, params);
|
|
626
|
+
});
|
|
627
|
+
var getConnectionLink = safeFunc(async (ctx) => ctx.client.connectionLinks.get(ctx.params.connection_link_id));
|
|
628
|
+
var cancelConnectionLink = safeFunc(async (ctx) => {
|
|
629
|
+
await ctx.client.connectionLinks.cancel(ctx.params.connection_link_id);
|
|
630
|
+
return { cancelled: true, id: ctx.params.connection_link_id };
|
|
631
|
+
});
|
|
551
632
|
var getCalendarContext = safeFunc(async (ctx) => {
|
|
552
633
|
return ctx.client.calendars.getContext(ctx.params.calendar_id);
|
|
553
634
|
});
|
|
@@ -677,6 +758,9 @@ var HOSTED_API_MCP_TOOL_NAMES = [
|
|
|
677
758
|
"update_event",
|
|
678
759
|
"get_availability",
|
|
679
760
|
"find_meeting_time",
|
|
761
|
+
"create_connection_link",
|
|
762
|
+
"get_connection_link",
|
|
763
|
+
"cancel_connection_link",
|
|
680
764
|
"cancel_event",
|
|
681
765
|
"confirm_event",
|
|
682
766
|
"release_event",
|
|
@@ -712,6 +796,10 @@ var HOSTED_API_MCP_TOOL_NAMES = [
|
|
|
712
796
|
"get_calendar",
|
|
713
797
|
"update_calendar",
|
|
714
798
|
"delete_calendar",
|
|
799
|
+
"create_booking_page",
|
|
800
|
+
"list_booking_pages",
|
|
801
|
+
"get_booking_page",
|
|
802
|
+
"delete_booking_page",
|
|
715
803
|
"get_usage",
|
|
716
804
|
"get_audit_log",
|
|
717
805
|
"accept_terms"
|
|
@@ -753,6 +841,35 @@ var TOOL_DEFINITIONS = [
|
|
|
753
841
|
annotations: { title: "Delete Calendar", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
754
842
|
execute: createExecutor(deleteCalendar)
|
|
755
843
|
},
|
|
844
|
+
// ── Booking pages ──────────────────────────────────────────────
|
|
845
|
+
{
|
|
846
|
+
name: "create_booking_page",
|
|
847
|
+
description: "Create a public booking page (Calendly-style scheduling link) for a calendar. Returns a booking_url to send to a human; when they pick a slot, a confirmed event is created on the calendar and an event.created webhook fires with a booking_page_id field. Set availability_constraints to restrict to weekly working hours; existing calendar events always block slots.",
|
|
848
|
+
schema: CreateBookingPageSchema,
|
|
849
|
+
annotations: { title: "Create Booking Page", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
850
|
+
execute: createExecutor(createBookingPage)
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: "list_booking_pages",
|
|
854
|
+
description: "List booking pages in the org. Agent-scoped keys see only pages on their own agent's calendars.",
|
|
855
|
+
schema: ListBookingPagesSchema,
|
|
856
|
+
annotations: { title: "List Booking Pages", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
857
|
+
execute: createExecutor(listBookingPages)
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
name: "get_booking_page",
|
|
861
|
+
description: "Fetch a single booking page by ID, including its public booking_url and settings.",
|
|
862
|
+
schema: GetBookingPageSchema,
|
|
863
|
+
annotations: { title: "Get Booking Page", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
864
|
+
execute: createExecutor(getBookingPage)
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
name: "delete_booking_page",
|
|
868
|
+
description: "Delete (deactivate) a booking page. Its hosted URL stops resolving; already-booked events are unaffected.",
|
|
869
|
+
schema: DeleteBookingPageSchema,
|
|
870
|
+
annotations: { title: "Delete Booking Page", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
871
|
+
execute: createExecutor(deleteBookingPage)
|
|
872
|
+
},
|
|
756
873
|
// ── Events ─────────────────────────────────────────────────────
|
|
757
874
|
{
|
|
758
875
|
name: "list_events",
|
|
@@ -842,18 +959,39 @@ var TOOL_DEFINITIONS = [
|
|
|
842
959
|
// ── Availability ───────────────────────────────────────────────
|
|
843
960
|
{
|
|
844
961
|
name: "get_availability",
|
|
845
|
-
description: "Check when a single agent is free
|
|
962
|
+
description: "Check when a single agent is free across Chronary and authorized human calendars. This tool is fail-closed: always inspect availability_state and warnings before using slots.",
|
|
846
963
|
schema: GetAvailabilitySchema,
|
|
847
964
|
annotations: { title: "Get Availability", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
848
965
|
execute: createExecutor(getAvailability)
|
|
849
966
|
},
|
|
850
967
|
{
|
|
851
968
|
name: "find_meeting_time",
|
|
852
|
-
description: "Find time
|
|
969
|
+
description: "Find time when multiple agents are free across Chronary and their authorized human calendars. This tool is fail-closed: always inspect availability_state and warnings before using slots.",
|
|
853
970
|
schema: FindMeetingTimeSchema,
|
|
854
971
|
annotations: { title: "Find Meeting Time", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
855
972
|
execute: createExecutor(findMeetingTime)
|
|
856
973
|
},
|
|
974
|
+
{
|
|
975
|
+
name: "create_connection_link",
|
|
976
|
+
description: "Request human setup of Google Calendar or Microsoft Outlook for a Chronary calendar. Give setup_url to a human; agents never receive provider credentials or event data. The secret URL is returned only once.",
|
|
977
|
+
schema: CreateConnectionLinkSchema,
|
|
978
|
+
annotations: { title: "Create Human Calendar Setup Link", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
979
|
+
execute: createExecutor(createConnectionLink)
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
name: "get_connection_link",
|
|
983
|
+
description: "Poll provider-neutral human-calendar setup status. The bearer setup URL and provider data are never returned by polling.",
|
|
984
|
+
schema: GetConnectionLinkSchema,
|
|
985
|
+
annotations: { title: "Get Human Calendar Setup Status", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
986
|
+
execute: createExecutor(getConnectionLink)
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
name: "cancel_connection_link",
|
|
990
|
+
description: "Cancel a pending human-calendar setup request and invalidate its setup URL.",
|
|
991
|
+
schema: CancelConnectionLinkSchema,
|
|
992
|
+
annotations: { title: "Cancel Human Calendar Setup Link", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
993
|
+
execute: createExecutor(cancelConnectionLink)
|
|
994
|
+
},
|
|
857
995
|
// ── Calendar context ───────────────────────────────────────────
|
|
858
996
|
{
|
|
859
997
|
name: "get_calendar_context",
|