@chronary/toolkit 1.4.0 → 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 +4 -0
- package/dist/ai-sdk.cjs +82 -0
- 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 +82 -0
- package/dist/ai-sdk.js.map +1 -1
- package/dist/{base-BM5HxeCZ.d.cts → base-DuHHyh4Q.d.cts} +2 -2
- package/dist/{base-BM5HxeCZ.d.ts → base-DuHHyh4Q.d.ts} +2 -2
- package/dist/index.cjs +90 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -3
- package/dist/index.d.ts +32 -3
- package/dist/index.js +90 -0
- package/dist/index.js.map +1 -1
- package/dist/langchain.cjs +82 -0
- 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 +82 -0
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +82 -0
- 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 +82 -0
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +82 -0
- 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 +82 -0
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +82 -0
- 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 +82 -0
- 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>;
|
|
@@ -432,6 +457,7 @@ declare const schemas_CancelProposalSchema: typeof CancelProposalSchema;
|
|
|
432
457
|
declare const schemas_ClearAvailabilityRulesSchema: typeof ClearAvailabilityRulesSchema;
|
|
433
458
|
declare const schemas_ConfirmEventSchema: typeof ConfirmEventSchema;
|
|
434
459
|
declare const schemas_CreateAgentSchema: typeof CreateAgentSchema;
|
|
460
|
+
declare const schemas_CreateBookingPageSchema: typeof CreateBookingPageSchema;
|
|
435
461
|
declare const schemas_CreateCalendarSchema: typeof CreateCalendarSchema;
|
|
436
462
|
declare const schemas_CreateConnectionLinkSchema: typeof CreateConnectionLinkSchema;
|
|
437
463
|
declare const schemas_CreateEventSchema: typeof CreateEventSchema;
|
|
@@ -439,6 +465,7 @@ declare const schemas_CreateProposalSchema: typeof CreateProposalSchema;
|
|
|
439
465
|
declare const schemas_CreateScopedKeySchema: typeof CreateScopedKeySchema;
|
|
440
466
|
declare const schemas_CreateWebhookSchema: typeof CreateWebhookSchema;
|
|
441
467
|
declare const schemas_DeleteAgentSchema: typeof DeleteAgentSchema;
|
|
468
|
+
declare const schemas_DeleteBookingPageSchema: typeof DeleteBookingPageSchema;
|
|
442
469
|
declare const schemas_DeleteCalendarSchema: typeof DeleteCalendarSchema;
|
|
443
470
|
declare const schemas_DeleteICalSubscriptionSchema: typeof DeleteICalSubscriptionSchema;
|
|
444
471
|
declare const schemas_DeleteWebhookSchema: typeof DeleteWebhookSchema;
|
|
@@ -447,6 +474,7 @@ declare const schemas_GetAgentSchema: typeof GetAgentSchema;
|
|
|
447
474
|
declare const schemas_GetAuditLogSchema: typeof GetAuditLogSchema;
|
|
448
475
|
declare const schemas_GetAvailabilityRulesSchema: typeof GetAvailabilityRulesSchema;
|
|
449
476
|
declare const schemas_GetAvailabilitySchema: typeof GetAvailabilitySchema;
|
|
477
|
+
declare const schemas_GetBookingPageSchema: typeof GetBookingPageSchema;
|
|
450
478
|
declare const schemas_GetCalendarContextSchema: typeof GetCalendarContextSchema;
|
|
451
479
|
declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
|
|
452
480
|
declare const schemas_GetConnectionLinkSchema: typeof GetConnectionLinkSchema;
|
|
@@ -456,6 +484,7 @@ declare const schemas_GetProposalSchema: typeof GetProposalSchema;
|
|
|
456
484
|
declare const schemas_GetUsageSchema: typeof GetUsageSchema;
|
|
457
485
|
declare const schemas_GetWebhookSchema: typeof GetWebhookSchema;
|
|
458
486
|
declare const schemas_ListAgentsSchema: typeof ListAgentsSchema;
|
|
487
|
+
declare const schemas_ListBookingPagesSchema: typeof ListBookingPagesSchema;
|
|
459
488
|
declare const schemas_ListCalendarsSchema: typeof ListCalendarsSchema;
|
|
460
489
|
declare const schemas_ListEventsSchema: typeof ListEventsSchema;
|
|
461
490
|
declare const schemas_ListICalSubscriptionsSchema: typeof ListICalSubscriptionsSchema;
|
|
@@ -476,7 +505,7 @@ declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
|
|
|
476
505
|
declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
|
|
477
506
|
declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
|
|
478
507
|
declare namespace schemas {
|
|
479
|
-
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_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_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_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_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 };
|
|
480
509
|
}
|
|
481
510
|
|
|
482
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>;
|
|
@@ -432,6 +457,7 @@ declare const schemas_CancelProposalSchema: typeof CancelProposalSchema;
|
|
|
432
457
|
declare const schemas_ClearAvailabilityRulesSchema: typeof ClearAvailabilityRulesSchema;
|
|
433
458
|
declare const schemas_ConfirmEventSchema: typeof ConfirmEventSchema;
|
|
434
459
|
declare const schemas_CreateAgentSchema: typeof CreateAgentSchema;
|
|
460
|
+
declare const schemas_CreateBookingPageSchema: typeof CreateBookingPageSchema;
|
|
435
461
|
declare const schemas_CreateCalendarSchema: typeof CreateCalendarSchema;
|
|
436
462
|
declare const schemas_CreateConnectionLinkSchema: typeof CreateConnectionLinkSchema;
|
|
437
463
|
declare const schemas_CreateEventSchema: typeof CreateEventSchema;
|
|
@@ -439,6 +465,7 @@ declare const schemas_CreateProposalSchema: typeof CreateProposalSchema;
|
|
|
439
465
|
declare const schemas_CreateScopedKeySchema: typeof CreateScopedKeySchema;
|
|
440
466
|
declare const schemas_CreateWebhookSchema: typeof CreateWebhookSchema;
|
|
441
467
|
declare const schemas_DeleteAgentSchema: typeof DeleteAgentSchema;
|
|
468
|
+
declare const schemas_DeleteBookingPageSchema: typeof DeleteBookingPageSchema;
|
|
442
469
|
declare const schemas_DeleteCalendarSchema: typeof DeleteCalendarSchema;
|
|
443
470
|
declare const schemas_DeleteICalSubscriptionSchema: typeof DeleteICalSubscriptionSchema;
|
|
444
471
|
declare const schemas_DeleteWebhookSchema: typeof DeleteWebhookSchema;
|
|
@@ -447,6 +474,7 @@ declare const schemas_GetAgentSchema: typeof GetAgentSchema;
|
|
|
447
474
|
declare const schemas_GetAuditLogSchema: typeof GetAuditLogSchema;
|
|
448
475
|
declare const schemas_GetAvailabilityRulesSchema: typeof GetAvailabilityRulesSchema;
|
|
449
476
|
declare const schemas_GetAvailabilitySchema: typeof GetAvailabilitySchema;
|
|
477
|
+
declare const schemas_GetBookingPageSchema: typeof GetBookingPageSchema;
|
|
450
478
|
declare const schemas_GetCalendarContextSchema: typeof GetCalendarContextSchema;
|
|
451
479
|
declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
|
|
452
480
|
declare const schemas_GetConnectionLinkSchema: typeof GetConnectionLinkSchema;
|
|
@@ -456,6 +484,7 @@ declare const schemas_GetProposalSchema: typeof GetProposalSchema;
|
|
|
456
484
|
declare const schemas_GetUsageSchema: typeof GetUsageSchema;
|
|
457
485
|
declare const schemas_GetWebhookSchema: typeof GetWebhookSchema;
|
|
458
486
|
declare const schemas_ListAgentsSchema: typeof ListAgentsSchema;
|
|
487
|
+
declare const schemas_ListBookingPagesSchema: typeof ListBookingPagesSchema;
|
|
459
488
|
declare const schemas_ListCalendarsSchema: typeof ListCalendarsSchema;
|
|
460
489
|
declare const schemas_ListEventsSchema: typeof ListEventsSchema;
|
|
461
490
|
declare const schemas_ListICalSubscriptionsSchema: typeof ListICalSubscriptionsSchema;
|
|
@@ -476,7 +505,7 @@ declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
|
|
|
476
505
|
declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
|
|
477
506
|
declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
|
|
478
507
|
declare namespace schemas {
|
|
479
|
-
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_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_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_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_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 };
|
|
480
509
|
}
|
|
481
510
|
|
|
482
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",
|
|
@@ -68,6 +72,7 @@ __export(schemas_exports, {
|
|
|
68
72
|
ClearAvailabilityRulesSchema: () => ClearAvailabilityRulesSchema,
|
|
69
73
|
ConfirmEventSchema: () => ConfirmEventSchema,
|
|
70
74
|
CreateAgentSchema: () => CreateAgentSchema,
|
|
75
|
+
CreateBookingPageSchema: () => CreateBookingPageSchema,
|
|
71
76
|
CreateCalendarSchema: () => CreateCalendarSchema,
|
|
72
77
|
CreateConnectionLinkSchema: () => CreateConnectionLinkSchema,
|
|
73
78
|
CreateEventSchema: () => CreateEventSchema,
|
|
@@ -75,6 +80,7 @@ __export(schemas_exports, {
|
|
|
75
80
|
CreateScopedKeySchema: () => CreateScopedKeySchema,
|
|
76
81
|
CreateWebhookSchema: () => CreateWebhookSchema,
|
|
77
82
|
DeleteAgentSchema: () => DeleteAgentSchema,
|
|
83
|
+
DeleteBookingPageSchema: () => DeleteBookingPageSchema,
|
|
78
84
|
DeleteCalendarSchema: () => DeleteCalendarSchema,
|
|
79
85
|
DeleteICalSubscriptionSchema: () => DeleteICalSubscriptionSchema,
|
|
80
86
|
DeleteWebhookSchema: () => DeleteWebhookSchema,
|
|
@@ -83,6 +89,7 @@ __export(schemas_exports, {
|
|
|
83
89
|
GetAuditLogSchema: () => GetAuditLogSchema,
|
|
84
90
|
GetAvailabilityRulesSchema: () => GetAvailabilityRulesSchema,
|
|
85
91
|
GetAvailabilitySchema: () => GetAvailabilitySchema,
|
|
92
|
+
GetBookingPageSchema: () => GetBookingPageSchema,
|
|
86
93
|
GetCalendarContextSchema: () => GetCalendarContextSchema,
|
|
87
94
|
GetCalendarSchema: () => GetCalendarSchema,
|
|
88
95
|
GetConnectionLinkSchema: () => GetConnectionLinkSchema,
|
|
@@ -92,6 +99,7 @@ __export(schemas_exports, {
|
|
|
92
99
|
GetUsageSchema: () => GetUsageSchema,
|
|
93
100
|
GetWebhookSchema: () => GetWebhookSchema,
|
|
94
101
|
ListAgentsSchema: () => ListAgentsSchema,
|
|
102
|
+
ListBookingPagesSchema: () => ListBookingPagesSchema,
|
|
95
103
|
ListCalendarsSchema: () => ListCalendarsSchema,
|
|
96
104
|
ListEventsSchema: () => ListEventsSchema,
|
|
97
105
|
ListICalSubscriptionsSchema: () => ListICalSubscriptionsSchema,
|
|
@@ -160,6 +168,28 @@ var UpdateCalendarSchema = z.object({
|
|
|
160
168
|
var DeleteCalendarSchema = z.object({
|
|
161
169
|
calendar_id: z.string().describe("Calendar ID to delete")
|
|
162
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
|
+
});
|
|
163
193
|
var ListEventsSchema = z.object({
|
|
164
194
|
calendar_id: z.string().optional().describe("Calendar ID to list events from. Provide this or agent_id."),
|
|
165
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."),
|
|
@@ -460,6 +490,33 @@ var deleteCalendar = safeFunc(async (ctx) => {
|
|
|
460
490
|
await ctx.client.calendars.delete(ctx.params.calendar_id);
|
|
461
491
|
return void 0;
|
|
462
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
|
+
});
|
|
463
520
|
var listEvents = safeFunc(async (ctx) => {
|
|
464
521
|
const { client, params } = ctx;
|
|
465
522
|
if (!params.calendar_id && !params.agent_id) {
|
|
@@ -739,6 +796,10 @@ var HOSTED_API_MCP_TOOL_NAMES = [
|
|
|
739
796
|
"get_calendar",
|
|
740
797
|
"update_calendar",
|
|
741
798
|
"delete_calendar",
|
|
799
|
+
"create_booking_page",
|
|
800
|
+
"list_booking_pages",
|
|
801
|
+
"get_booking_page",
|
|
802
|
+
"delete_booking_page",
|
|
742
803
|
"get_usage",
|
|
743
804
|
"get_audit_log",
|
|
744
805
|
"accept_terms"
|
|
@@ -780,6 +841,35 @@ var TOOL_DEFINITIONS = [
|
|
|
780
841
|
annotations: { title: "Delete Calendar", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
781
842
|
execute: createExecutor(deleteCalendar)
|
|
782
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
|
+
},
|
|
783
873
|
// ── Events ─────────────────────────────────────────────────────
|
|
784
874
|
{
|
|
785
875
|
name: "list_events",
|