@chronary/toolkit 1.3.1 → 1.4.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 +7 -2
- package/README.md +2 -2
- package/dist/ai-sdk.cjs +44 -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 +44 -2
- package/dist/ai-sdk.js.map +1 -1
- package/dist/{base-C6QWbxc1.d.cts → base-BM5HxeCZ.d.cts} +2 -2
- package/dist/{base-C6QWbxc1.d.ts → base-BM5HxeCZ.d.ts} +2 -2
- package/dist/index.cjs +50 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +50 -2
- package/dist/index.js.map +1 -1
- package/dist/langchain.cjs +44 -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 +44 -2
- package/dist/langchain.js.map +1 -1
- package/dist/mastra.cjs +44 -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 +44 -2
- package/dist/mastra.js.map +1 -1
- package/dist/mcp.cjs +44 -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 +44 -2
- package/dist/mcp.js.map +1 -1
- package/dist/openai.cjs +44 -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 +44 -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-BM5HxeCZ.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-BM5HxeCZ.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '@chronary/sdk';
|
|
5
5
|
|
|
@@ -191,6 +191,24 @@ declare const FindMeetingTimeSchema: z.ZodObject<{
|
|
|
191
191
|
calendars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
192
|
include_busy: z.ZodDefault<z.ZodBoolean>;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
|
+
declare const CreateConnectionLinkSchema: z.ZodObject<{
|
|
195
|
+
calendar_id: z.ZodString;
|
|
196
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
197
|
+
availability: "availability";
|
|
198
|
+
publishing: "publishing";
|
|
199
|
+
}>>>;
|
|
200
|
+
publication_policy: z.ZodDefault<z.ZodEnum<{
|
|
201
|
+
confirmed: "confirmed";
|
|
202
|
+
none: "none";
|
|
203
|
+
confirmed_tentative: "confirmed_tentative";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
declare const GetConnectionLinkSchema: z.ZodObject<{
|
|
207
|
+
connection_link_id: z.ZodString;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
declare const CancelConnectionLinkSchema: z.ZodObject<{
|
|
210
|
+
connection_link_id: z.ZodString;
|
|
211
|
+
}, z.core.$strip>;
|
|
194
212
|
declare const GetCalendarContextSchema: z.ZodObject<{
|
|
195
213
|
calendar_id: z.ZodString;
|
|
196
214
|
}, z.core.$strip>;
|
|
@@ -408,12 +426,14 @@ declare const SyncICalSubscriptionSchema: z.ZodObject<{
|
|
|
408
426
|
declare const GetUsageSchema: z.ZodObject<{}, z.core.$strip>;
|
|
409
427
|
|
|
410
428
|
declare const schemas_AcceptTermsSchema: typeof AcceptTermsSchema;
|
|
429
|
+
declare const schemas_CancelConnectionLinkSchema: typeof CancelConnectionLinkSchema;
|
|
411
430
|
declare const schemas_CancelEventSchema: typeof CancelEventSchema;
|
|
412
431
|
declare const schemas_CancelProposalSchema: typeof CancelProposalSchema;
|
|
413
432
|
declare const schemas_ClearAvailabilityRulesSchema: typeof ClearAvailabilityRulesSchema;
|
|
414
433
|
declare const schemas_ConfirmEventSchema: typeof ConfirmEventSchema;
|
|
415
434
|
declare const schemas_CreateAgentSchema: typeof CreateAgentSchema;
|
|
416
435
|
declare const schemas_CreateCalendarSchema: typeof CreateCalendarSchema;
|
|
436
|
+
declare const schemas_CreateConnectionLinkSchema: typeof CreateConnectionLinkSchema;
|
|
417
437
|
declare const schemas_CreateEventSchema: typeof CreateEventSchema;
|
|
418
438
|
declare const schemas_CreateProposalSchema: typeof CreateProposalSchema;
|
|
419
439
|
declare const schemas_CreateScopedKeySchema: typeof CreateScopedKeySchema;
|
|
@@ -429,6 +449,7 @@ declare const schemas_GetAvailabilityRulesSchema: typeof GetAvailabilityRulesSch
|
|
|
429
449
|
declare const schemas_GetAvailabilitySchema: typeof GetAvailabilitySchema;
|
|
430
450
|
declare const schemas_GetCalendarContextSchema: typeof GetCalendarContextSchema;
|
|
431
451
|
declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
|
|
452
|
+
declare const schemas_GetConnectionLinkSchema: typeof GetConnectionLinkSchema;
|
|
432
453
|
declare const schemas_GetEventSchema: typeof GetEventSchema;
|
|
433
454
|
declare const schemas_GetICalSubscriptionSchema: typeof GetICalSubscriptionSchema;
|
|
434
455
|
declare const schemas_GetProposalSchema: typeof GetProposalSchema;
|
|
@@ -455,7 +476,7 @@ declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
|
|
|
455
476
|
declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
|
|
456
477
|
declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
|
|
457
478
|
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 };
|
|
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 };
|
|
459
480
|
}
|
|
460
481
|
|
|
461
482
|
/**
|
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-BM5HxeCZ.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-BM5HxeCZ.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '@chronary/sdk';
|
|
5
5
|
|
|
@@ -191,6 +191,24 @@ declare const FindMeetingTimeSchema: z.ZodObject<{
|
|
|
191
191
|
calendars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
192
|
include_busy: z.ZodDefault<z.ZodBoolean>;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
|
+
declare const CreateConnectionLinkSchema: z.ZodObject<{
|
|
195
|
+
calendar_id: z.ZodString;
|
|
196
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
197
|
+
availability: "availability";
|
|
198
|
+
publishing: "publishing";
|
|
199
|
+
}>>>;
|
|
200
|
+
publication_policy: z.ZodDefault<z.ZodEnum<{
|
|
201
|
+
confirmed: "confirmed";
|
|
202
|
+
none: "none";
|
|
203
|
+
confirmed_tentative: "confirmed_tentative";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
declare const GetConnectionLinkSchema: z.ZodObject<{
|
|
207
|
+
connection_link_id: z.ZodString;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
declare const CancelConnectionLinkSchema: z.ZodObject<{
|
|
210
|
+
connection_link_id: z.ZodString;
|
|
211
|
+
}, z.core.$strip>;
|
|
194
212
|
declare const GetCalendarContextSchema: z.ZodObject<{
|
|
195
213
|
calendar_id: z.ZodString;
|
|
196
214
|
}, z.core.$strip>;
|
|
@@ -408,12 +426,14 @@ declare const SyncICalSubscriptionSchema: z.ZodObject<{
|
|
|
408
426
|
declare const GetUsageSchema: z.ZodObject<{}, z.core.$strip>;
|
|
409
427
|
|
|
410
428
|
declare const schemas_AcceptTermsSchema: typeof AcceptTermsSchema;
|
|
429
|
+
declare const schemas_CancelConnectionLinkSchema: typeof CancelConnectionLinkSchema;
|
|
411
430
|
declare const schemas_CancelEventSchema: typeof CancelEventSchema;
|
|
412
431
|
declare const schemas_CancelProposalSchema: typeof CancelProposalSchema;
|
|
413
432
|
declare const schemas_ClearAvailabilityRulesSchema: typeof ClearAvailabilityRulesSchema;
|
|
414
433
|
declare const schemas_ConfirmEventSchema: typeof ConfirmEventSchema;
|
|
415
434
|
declare const schemas_CreateAgentSchema: typeof CreateAgentSchema;
|
|
416
435
|
declare const schemas_CreateCalendarSchema: typeof CreateCalendarSchema;
|
|
436
|
+
declare const schemas_CreateConnectionLinkSchema: typeof CreateConnectionLinkSchema;
|
|
417
437
|
declare const schemas_CreateEventSchema: typeof CreateEventSchema;
|
|
418
438
|
declare const schemas_CreateProposalSchema: typeof CreateProposalSchema;
|
|
419
439
|
declare const schemas_CreateScopedKeySchema: typeof CreateScopedKeySchema;
|
|
@@ -429,6 +449,7 @@ declare const schemas_GetAvailabilityRulesSchema: typeof GetAvailabilityRulesSch
|
|
|
429
449
|
declare const schemas_GetAvailabilitySchema: typeof GetAvailabilitySchema;
|
|
430
450
|
declare const schemas_GetCalendarContextSchema: typeof GetCalendarContextSchema;
|
|
431
451
|
declare const schemas_GetCalendarSchema: typeof GetCalendarSchema;
|
|
452
|
+
declare const schemas_GetConnectionLinkSchema: typeof GetConnectionLinkSchema;
|
|
432
453
|
declare const schemas_GetEventSchema: typeof GetEventSchema;
|
|
433
454
|
declare const schemas_GetICalSubscriptionSchema: typeof GetICalSubscriptionSchema;
|
|
434
455
|
declare const schemas_GetProposalSchema: typeof GetProposalSchema;
|
|
@@ -455,7 +476,7 @@ declare const schemas_UpdateEventSchema: typeof UpdateEventSchema;
|
|
|
455
476
|
declare const schemas_UpdateICalSubscriptionSchema: typeof UpdateICalSubscriptionSchema;
|
|
456
477
|
declare const schemas_UpdateWebhookSchema: typeof UpdateWebhookSchema;
|
|
457
478
|
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 };
|
|
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 };
|
|
459
480
|
}
|
|
460
481
|
|
|
461
482
|
/**
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,9 @@ var TOOL_NAMES = [
|
|
|
25
25
|
"delete_agent",
|
|
26
26
|
"get_availability",
|
|
27
27
|
"find_meeting_time",
|
|
28
|
+
"create_connection_link",
|
|
29
|
+
"get_connection_link",
|
|
30
|
+
"cancel_connection_link",
|
|
28
31
|
"get_calendar_context",
|
|
29
32
|
"create_proposal",
|
|
30
33
|
"list_proposals",
|
|
@@ -59,12 +62,14 @@ var TOOL_NAMES = [
|
|
|
59
62
|
var schemas_exports = {};
|
|
60
63
|
__export(schemas_exports, {
|
|
61
64
|
AcceptTermsSchema: () => AcceptTermsSchema,
|
|
65
|
+
CancelConnectionLinkSchema: () => CancelConnectionLinkSchema,
|
|
62
66
|
CancelEventSchema: () => CancelEventSchema,
|
|
63
67
|
CancelProposalSchema: () => CancelProposalSchema,
|
|
64
68
|
ClearAvailabilityRulesSchema: () => ClearAvailabilityRulesSchema,
|
|
65
69
|
ConfirmEventSchema: () => ConfirmEventSchema,
|
|
66
70
|
CreateAgentSchema: () => CreateAgentSchema,
|
|
67
71
|
CreateCalendarSchema: () => CreateCalendarSchema,
|
|
72
|
+
CreateConnectionLinkSchema: () => CreateConnectionLinkSchema,
|
|
68
73
|
CreateEventSchema: () => CreateEventSchema,
|
|
69
74
|
CreateProposalSchema: () => CreateProposalSchema,
|
|
70
75
|
CreateScopedKeySchema: () => CreateScopedKeySchema,
|
|
@@ -80,6 +85,7 @@ __export(schemas_exports, {
|
|
|
80
85
|
GetAvailabilitySchema: () => GetAvailabilitySchema,
|
|
81
86
|
GetCalendarContextSchema: () => GetCalendarContextSchema,
|
|
82
87
|
GetCalendarSchema: () => GetCalendarSchema,
|
|
88
|
+
GetConnectionLinkSchema: () => GetConnectionLinkSchema,
|
|
83
89
|
GetEventSchema: () => GetEventSchema,
|
|
84
90
|
GetICalSubscriptionSchema: () => GetICalSubscriptionSchema,
|
|
85
91
|
GetProposalSchema: () => GetProposalSchema,
|
|
@@ -252,6 +258,15 @@ var FindMeetingTimeSchema = z.object({
|
|
|
252
258
|
calendars: z.array(z.string()).optional().describe("Additional shared calendar IDs to treat as busy"),
|
|
253
259
|
include_busy: z.boolean().default(false).describe("Include per-agent busy blocks in response")
|
|
254
260
|
});
|
|
261
|
+
var CreateConnectionLinkSchema = z.object({
|
|
262
|
+
calendar_id: z.string().startsWith("cal_").describe("Chronary calendar whose owning agent will receive authorized availability"),
|
|
263
|
+
capabilities: z.array(z.enum(["availability", "publishing"])).min(1).max(2).default(["availability"]).describe("Request opaque availability and optional publishing permission"),
|
|
264
|
+
publication_policy: z.enum(["none", "confirmed", "confirmed_tentative"]).default("none").describe("Desired event publishing policy; a human still selects the destination")
|
|
265
|
+
});
|
|
266
|
+
var GetConnectionLinkSchema = z.object({
|
|
267
|
+
connection_link_id: z.string().startsWith("csl_").describe("Connection setup link ID")
|
|
268
|
+
});
|
|
269
|
+
var CancelConnectionLinkSchema = GetConnectionLinkSchema;
|
|
255
270
|
var GetCalendarContextSchema = z.object({
|
|
256
271
|
calendar_id: z.string().describe("Calendar ID")
|
|
257
272
|
});
|
|
@@ -548,6 +563,15 @@ var findMeetingTime = safeFunc(async (ctx) => {
|
|
|
548
563
|
include_busy: params.include_busy
|
|
549
564
|
});
|
|
550
565
|
});
|
|
566
|
+
var createConnectionLink = safeFunc(async (ctx) => {
|
|
567
|
+
const { calendar_id, ...params } = ctx.params;
|
|
568
|
+
return ctx.client.connectionLinks.create(calendar_id, params);
|
|
569
|
+
});
|
|
570
|
+
var getConnectionLink = safeFunc(async (ctx) => ctx.client.connectionLinks.get(ctx.params.connection_link_id));
|
|
571
|
+
var cancelConnectionLink = safeFunc(async (ctx) => {
|
|
572
|
+
await ctx.client.connectionLinks.cancel(ctx.params.connection_link_id);
|
|
573
|
+
return { cancelled: true, id: ctx.params.connection_link_id };
|
|
574
|
+
});
|
|
551
575
|
var getCalendarContext = safeFunc(async (ctx) => {
|
|
552
576
|
return ctx.client.calendars.getContext(ctx.params.calendar_id);
|
|
553
577
|
});
|
|
@@ -677,6 +701,9 @@ var HOSTED_API_MCP_TOOL_NAMES = [
|
|
|
677
701
|
"update_event",
|
|
678
702
|
"get_availability",
|
|
679
703
|
"find_meeting_time",
|
|
704
|
+
"create_connection_link",
|
|
705
|
+
"get_connection_link",
|
|
706
|
+
"cancel_connection_link",
|
|
680
707
|
"cancel_event",
|
|
681
708
|
"confirm_event",
|
|
682
709
|
"release_event",
|
|
@@ -842,18 +869,39 @@ var TOOL_DEFINITIONS = [
|
|
|
842
869
|
// ── Availability ───────────────────────────────────────────────
|
|
843
870
|
{
|
|
844
871
|
name: "get_availability",
|
|
845
|
-
description: "Check when a single agent is free
|
|
872
|
+
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
873
|
schema: GetAvailabilitySchema,
|
|
847
874
|
annotations: { title: "Get Availability", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
848
875
|
execute: createExecutor(getAvailability)
|
|
849
876
|
},
|
|
850
877
|
{
|
|
851
878
|
name: "find_meeting_time",
|
|
852
|
-
description: "Find time
|
|
879
|
+
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
880
|
schema: FindMeetingTimeSchema,
|
|
854
881
|
annotations: { title: "Find Meeting Time", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
855
882
|
execute: createExecutor(findMeetingTime)
|
|
856
883
|
},
|
|
884
|
+
{
|
|
885
|
+
name: "create_connection_link",
|
|
886
|
+
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.",
|
|
887
|
+
schema: CreateConnectionLinkSchema,
|
|
888
|
+
annotations: { title: "Create Human Calendar Setup Link", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
889
|
+
execute: createExecutor(createConnectionLink)
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
name: "get_connection_link",
|
|
893
|
+
description: "Poll provider-neutral human-calendar setup status. The bearer setup URL and provider data are never returned by polling.",
|
|
894
|
+
schema: GetConnectionLinkSchema,
|
|
895
|
+
annotations: { title: "Get Human Calendar Setup Status", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
896
|
+
execute: createExecutor(getConnectionLink)
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
name: "cancel_connection_link",
|
|
900
|
+
description: "Cancel a pending human-calendar setup request and invalidate its setup URL.",
|
|
901
|
+
schema: CancelConnectionLinkSchema,
|
|
902
|
+
annotations: { title: "Cancel Human Calendar Setup Link", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
903
|
+
execute: createExecutor(cancelConnectionLink)
|
|
904
|
+
},
|
|
857
905
|
// ── Calendar context ───────────────────────────────────────────
|
|
858
906
|
{
|
|
859
907
|
name: "get_calendar_context",
|