dalvon-mcp 3.0.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/LICENSE +7 -0
- package/README.md +743 -0
- package/dist/clients/dalvon.d.ts +258 -0
- package/dist/clients/dalvon.d.ts.map +1 -0
- package/dist/clients/dalvon.js +1240 -0
- package/dist/clients/dalvon.js.map +1 -0
- package/dist/clients/knowledge.d.ts +59 -0
- package/dist/clients/knowledge.d.ts.map +1 -0
- package/dist/clients/knowledge.js +267 -0
- package/dist/clients/knowledge.js.map +1 -0
- package/dist/clients/telefonieren.d.ts +258 -0
- package/dist/clients/telefonieren.d.ts.map +1 -0
- package/dist/clients/telefonieren.js +1240 -0
- package/dist/clients/telefonieren.js.map +1 -0
- package/dist/config.d.ts +43 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +76 -0
- package/dist/config.js.map +1 -0
- package/dist/environment.d.ts +33 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/environment.js +63 -0
- package/dist/environment.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/agents.d.ts +8 -0
- package/dist/tools/agents.d.ts.map +1 -0
- package/dist/tools/agents.js +1880 -0
- package/dist/tools/agents.js.map +1 -0
- package/dist/tools/billing.d.ts +8 -0
- package/dist/tools/billing.d.ts.map +1 -0
- package/dist/tools/billing.js +205 -0
- package/dist/tools/billing.js.map +1 -0
- package/dist/tools/calendar.d.ts +8 -0
- package/dist/tools/calendar.d.ts.map +1 -0
- package/dist/tools/calendar.js +347 -0
- package/dist/tools/calendar.js.map +1 -0
- package/dist/tools/calls.d.ts +8 -0
- package/dist/tools/calls.d.ts.map +1 -0
- package/dist/tools/calls.js +508 -0
- package/dist/tools/calls.js.map +1 -0
- package/dist/tools/campaigns.d.ts +8 -0
- package/dist/tools/campaigns.d.ts.map +1 -0
- package/dist/tools/campaigns.js +531 -0
- package/dist/tools/campaigns.js.map +1 -0
- package/dist/tools/channels.d.ts +8 -0
- package/dist/tools/channels.d.ts.map +1 -0
- package/dist/tools/channels.js +165 -0
- package/dist/tools/channels.js.map +1 -0
- package/dist/tools/chats.d.ts +8 -0
- package/dist/tools/chats.d.ts.map +1 -0
- package/dist/tools/chats.js +142 -0
- package/dist/tools/chats.js.map +1 -0
- package/dist/tools/collections.d.ts +8 -0
- package/dist/tools/collections.d.ts.map +1 -0
- package/dist/tools/collections.js +389 -0
- package/dist/tools/collections.js.map +1 -0
- package/dist/tools/contacts.d.ts +8 -0
- package/dist/tools/contacts.d.ts.map +1 -0
- package/dist/tools/contacts.js +430 -0
- package/dist/tools/contacts.js.map +1 -0
- package/dist/tools/crawler.d.ts +8 -0
- package/dist/tools/crawler.d.ts.map +1 -0
- package/dist/tools/crawler.js +263 -0
- package/dist/tools/crawler.js.map +1 -0
- package/dist/tools/dnc.d.ts +8 -0
- package/dist/tools/dnc.d.ts.map +1 -0
- package/dist/tools/dnc.js +287 -0
- package/dist/tools/dnc.js.map +1 -0
- package/dist/tools/documents.d.ts +9 -0
- package/dist/tools/documents.d.ts.map +1 -0
- package/dist/tools/documents.js +518 -0
- package/dist/tools/documents.js.map +1 -0
- package/dist/tools/engines.d.ts +8 -0
- package/dist/tools/engines.d.ts.map +1 -0
- package/dist/tools/engines.js +271 -0
- package/dist/tools/engines.js.map +1 -0
- package/dist/tools/environment.d.ts +9 -0
- package/dist/tools/environment.d.ts.map +1 -0
- package/dist/tools/environment.js +59 -0
- package/dist/tools/environment.js.map +1 -0
- package/dist/tools/forwarding.d.ts +8 -0
- package/dist/tools/forwarding.d.ts.map +1 -0
- package/dist/tools/forwarding.js +30 -0
- package/dist/tools/forwarding.js.map +1 -0
- package/dist/tools/index.d.ts +58 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +158 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/integrations.d.ts +8 -0
- package/dist/tools/integrations.d.ts.map +1 -0
- package/dist/tools/integrations.js +234 -0
- package/dist/tools/integrations.js.map +1 -0
- package/dist/tools/mailbox.d.ts +8 -0
- package/dist/tools/mailbox.d.ts.map +1 -0
- package/dist/tools/mailbox.js +105 -0
- package/dist/tools/mailbox.js.map +1 -0
- package/dist/tools/media.d.ts +8 -0
- package/dist/tools/media.d.ts.map +1 -0
- package/dist/tools/media.js +223 -0
- package/dist/tools/media.js.map +1 -0
- package/dist/tools/numbers.d.ts +8 -0
- package/dist/tools/numbers.d.ts.map +1 -0
- package/dist/tools/numbers.js +560 -0
- package/dist/tools/numbers.js.map +1 -0
- package/dist/tools/organizations.d.ts +8 -0
- package/dist/tools/organizations.d.ts.map +1 -0
- package/dist/tools/organizations.js +234 -0
- package/dist/tools/organizations.js.map +1 -0
- package/dist/tools/postprocessing.d.ts +8 -0
- package/dist/tools/postprocessing.d.ts.map +1 -0
- package/dist/tools/postprocessing.js +383 -0
- package/dist/tools/postprocessing.js.map +1 -0
- package/dist/tools/pronunciations.d.ts +8 -0
- package/dist/tools/pronunciations.d.ts.map +1 -0
- package/dist/tools/pronunciations.js +236 -0
- package/dist/tools/pronunciations.js.map +1 -0
- package/dist/tools/rules.d.ts +8 -0
- package/dist/tools/rules.d.ts.map +1 -0
- package/dist/tools/rules.js +465 -0
- package/dist/tools/rules.js.map +1 -0
- package/dist/tools/statistics.d.ts +8 -0
- package/dist/tools/statistics.d.ts.map +1 -0
- package/dist/tools/statistics.js +120 -0
- package/dist/tools/statistics.js.map +1 -0
- package/dist/tools/templates.d.ts +8 -0
- package/dist/tools/templates.d.ts.map +1 -0
- package/dist/tools/templates.js +211 -0
- package/dist/tools/templates.js.map +1 -0
- package/dist/tools/tests.d.ts +8 -0
- package/dist/tools/tests.d.ts.map +1 -0
- package/dist/tools/tests.js +329 -0
- package/dist/tools/tests.js.map +1 -0
- package/dist/tools/users.d.ts +8 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +484 -0
- package/dist/tools/users.js.map +1 -0
- package/dist/tools/voice-preview.d.ts +8 -0
- package/dist/tools/voice-preview.d.ts.map +1 -0
- package/dist/tools/voice-preview.js +100 -0
- package/dist/tools/voice-preview.js.map +1 -0
- package/dist/tools/voices.d.ts +8 -0
- package/dist/tools/voices.d.ts.map +1 -0
- package/dist/tools/voices.js +110 -0
- package/dist/tools/voices.js.map +1 -0
- package/dist/tools/whitelabels.d.ts +8 -0
- package/dist/tools/whitelabels.d.ts.map +1 -0
- package/dist/tools/whitelabels.js +199 -0
- package/dist/tools/whitelabels.js.map +1 -0
- package/dist/tools/widget-config.d.ts +8 -0
- package/dist/tools/widget-config.d.ts.map +1 -0
- package/dist/tools/widget-config.js +116 -0
- package/dist/tools/widget-config.js.map +1 -0
- package/dist/types/api.d.ts +303 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +6 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/tools.d.ts +41 -0
- package/dist/types/tools.d.ts.map +1 -0
- package/dist/types/tools.js +6 -0
- package/dist/types/tools.js.map +1 -0
- package/dist/utils/errors.d.ts +31 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +77 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logger.d.ts +11 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +25 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/validation.d.ts +34 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +68 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calendar Tools
|
|
3
|
+
* Tools for managing calendar connections, booking types, and appointments
|
|
4
|
+
*/
|
|
5
|
+
import { validateUUID } from '../utils/validation.js';
|
|
6
|
+
import { formatApiError, createSuccess, isApiError } from '../utils/errors.js';
|
|
7
|
+
export function createCalendarTools(client) {
|
|
8
|
+
return [
|
|
9
|
+
// === CONNECTIONS ===
|
|
10
|
+
{
|
|
11
|
+
name: 'connect_calendar',
|
|
12
|
+
description: 'Get an OAuth authorization URL to connect a calendar provider (Google, Microsoft).',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
provider: { type: 'string', enum: ['google', 'microsoft'], description: 'Calendar provider' },
|
|
17
|
+
owner_type: { type: 'string', enum: ['user', 'organization'], description: 'Who owns the connection' },
|
|
18
|
+
owner_id: { type: 'string', description: 'UUID of the owner (user or organization)' },
|
|
19
|
+
},
|
|
20
|
+
required: ['provider'],
|
|
21
|
+
},
|
|
22
|
+
handler: async (args) => {
|
|
23
|
+
const { provider, owner_type, owner_id } = args;
|
|
24
|
+
const params = { provider };
|
|
25
|
+
if (owner_type)
|
|
26
|
+
params.owner_type = owner_type;
|
|
27
|
+
if (owner_id)
|
|
28
|
+
params.owner_id = owner_id;
|
|
29
|
+
const result = await client.getCalendarAuthUrl(params);
|
|
30
|
+
if (!result.success || isApiError(result))
|
|
31
|
+
return formatApiError(result, 'connect_calendar');
|
|
32
|
+
return createSuccess({ ...result.data, hint: 'Open the auth_url in a browser to complete the connection' });
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'disconnect_calendar',
|
|
37
|
+
description: 'Disconnect a calendar connection.',
|
|
38
|
+
inputSchema: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {
|
|
41
|
+
connection_id: { type: 'string', description: 'Calendar connection UUID' },
|
|
42
|
+
},
|
|
43
|
+
required: ['connection_id'],
|
|
44
|
+
},
|
|
45
|
+
handler: async (args) => {
|
|
46
|
+
const { connection_id } = args;
|
|
47
|
+
const v = validateUUID(connection_id, 'connection_id');
|
|
48
|
+
if (v)
|
|
49
|
+
return v;
|
|
50
|
+
const result = await client.disconnectCalendar(connection_id);
|
|
51
|
+
if (!result.success || isApiError(result))
|
|
52
|
+
return formatApiError(result, 'disconnect_calendar');
|
|
53
|
+
return createSuccess({ disconnected: true, connection_id });
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'list_calendar_connections',
|
|
58
|
+
description: 'List all calendar connections. Optionally filter by owner.',
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {
|
|
62
|
+
owner_type: { type: 'string', enum: ['user', 'organization'] },
|
|
63
|
+
owner_id: { type: 'string', description: 'Owner UUID' },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
handler: async (args) => {
|
|
67
|
+
const result = await client.listCalendarConnections(args);
|
|
68
|
+
if (!result.success || isApiError(result))
|
|
69
|
+
return formatApiError(result, 'list_calendar_connections');
|
|
70
|
+
return result;
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'get_calendar_connection',
|
|
75
|
+
description: 'Get details of a specific calendar connection.',
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: 'object',
|
|
78
|
+
properties: { connection_id: { type: 'string' } },
|
|
79
|
+
required: ['connection_id'],
|
|
80
|
+
},
|
|
81
|
+
handler: async (args) => {
|
|
82
|
+
const { connection_id } = args;
|
|
83
|
+
const v = validateUUID(connection_id, 'connection_id');
|
|
84
|
+
if (v)
|
|
85
|
+
return v;
|
|
86
|
+
const result = await client.getCalendarConnection(connection_id);
|
|
87
|
+
if (!result.success || isApiError(result))
|
|
88
|
+
return formatApiError(result, 'get_calendar_connection');
|
|
89
|
+
return result;
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'update_calendar_connection',
|
|
94
|
+
description: 'Update a calendar connection (e.g., set primary calendar).',
|
|
95
|
+
inputSchema: {
|
|
96
|
+
type: 'object',
|
|
97
|
+
properties: {
|
|
98
|
+
connection_id: { type: 'string' },
|
|
99
|
+
primary_calendar_id: { type: 'string', description: 'Set the primary calendar ID' },
|
|
100
|
+
display_name: { type: 'string' },
|
|
101
|
+
},
|
|
102
|
+
required: ['connection_id'],
|
|
103
|
+
},
|
|
104
|
+
handler: async (args) => {
|
|
105
|
+
const { connection_id, ...data } = args;
|
|
106
|
+
const v = validateUUID(connection_id, 'connection_id');
|
|
107
|
+
if (v)
|
|
108
|
+
return v;
|
|
109
|
+
const result = await client.updateCalendarConnection(connection_id, data);
|
|
110
|
+
if (!result.success || isApiError(result))
|
|
111
|
+
return formatApiError(result, 'update_calendar_connection');
|
|
112
|
+
return createSuccess({ updated: true, connection: result.data });
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'list_calendar_calendars',
|
|
117
|
+
description: 'List all calendars within a connection (e.g., all Google calendars for an account).',
|
|
118
|
+
inputSchema: {
|
|
119
|
+
type: 'object',
|
|
120
|
+
properties: { connection_id: { type: 'string' } },
|
|
121
|
+
required: ['connection_id'],
|
|
122
|
+
},
|
|
123
|
+
handler: async (args) => {
|
|
124
|
+
const { connection_id } = args;
|
|
125
|
+
const v = validateUUID(connection_id, 'connection_id');
|
|
126
|
+
if (v)
|
|
127
|
+
return v;
|
|
128
|
+
const result = await client.listCalendarConnectionCalendars(connection_id);
|
|
129
|
+
if (!result.success || isApiError(result))
|
|
130
|
+
return formatApiError(result, 'list_calendar_calendars');
|
|
131
|
+
return result;
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'list_available_calendar_connections',
|
|
136
|
+
description: 'List calendar connections available for booking (connected and active).',
|
|
137
|
+
inputSchema: { type: 'object', properties: {} },
|
|
138
|
+
handler: async () => {
|
|
139
|
+
const result = await client.listAvailableCalendarConnections();
|
|
140
|
+
if (!result.success || isApiError(result))
|
|
141
|
+
return formatApiError(result, 'list_available_calendar_connections');
|
|
142
|
+
return result;
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
// === BOOKING TYPES ===
|
|
146
|
+
{
|
|
147
|
+
name: 'list_booking_types',
|
|
148
|
+
description: 'List all booking types (appointment templates) for the organization.',
|
|
149
|
+
inputSchema: { type: 'object', properties: {} },
|
|
150
|
+
handler: async () => {
|
|
151
|
+
const result = await client.listBookingTypes();
|
|
152
|
+
if (!result.success || isApiError(result))
|
|
153
|
+
return formatApiError(result, 'list_booking_types');
|
|
154
|
+
return result;
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'create_booking_type',
|
|
159
|
+
description: 'Create a new booking type (appointment template).',
|
|
160
|
+
inputSchema: {
|
|
161
|
+
type: 'object',
|
|
162
|
+
properties: {
|
|
163
|
+
name: { type: 'string', description: 'Booking type name' },
|
|
164
|
+
duration_minutes: { type: 'integer', description: 'Appointment duration in minutes' },
|
|
165
|
+
buffer_before_min: { type: 'integer', description: 'Buffer time before appointment' },
|
|
166
|
+
buffer_after_min: { type: 'integer', description: 'Buffer time after appointment' },
|
|
167
|
+
scheduling_mode: { type: 'string', enum: ['collective', 'round_robin'], description: 'How to assign to team members' },
|
|
168
|
+
round_robin_mode: { type: 'string', enum: ['optimize_availability', 'optimize_fairness'] },
|
|
169
|
+
min_notice_minutes: { type: 'integer', description: 'Minimum notice before booking' },
|
|
170
|
+
max_days_ahead: { type: 'integer', description: 'How far ahead bookings are allowed' },
|
|
171
|
+
timezone: { type: 'string', description: 'Default timezone' },
|
|
172
|
+
confirmation_required: { type: 'boolean' },
|
|
173
|
+
is_default: { type: 'boolean' },
|
|
174
|
+
member_connection_ids: { type: 'array', items: { type: 'string' }, description: 'Calendar connection UUIDs for initial members' },
|
|
175
|
+
},
|
|
176
|
+
required: ['name', 'duration_minutes'],
|
|
177
|
+
},
|
|
178
|
+
handler: async (args) => {
|
|
179
|
+
const result = await client.createBookingType(args);
|
|
180
|
+
if (!result.success || isApiError(result))
|
|
181
|
+
return formatApiError(result, 'create_booking_type');
|
|
182
|
+
return createSuccess({ created: true, booking_type: result.data });
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'get_booking_type',
|
|
187
|
+
description: 'Get details of a specific booking type.',
|
|
188
|
+
inputSchema: {
|
|
189
|
+
type: 'object',
|
|
190
|
+
properties: { booking_type_id: { type: 'string' } },
|
|
191
|
+
required: ['booking_type_id'],
|
|
192
|
+
},
|
|
193
|
+
handler: async (args) => {
|
|
194
|
+
const { booking_type_id } = args;
|
|
195
|
+
const v = validateUUID(booking_type_id, 'booking_type_id');
|
|
196
|
+
if (v)
|
|
197
|
+
return v;
|
|
198
|
+
const result = await client.getBookingType(booking_type_id);
|
|
199
|
+
if (!result.success || isApiError(result))
|
|
200
|
+
return formatApiError(result, 'get_booking_type');
|
|
201
|
+
return result;
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'update_booking_type',
|
|
206
|
+
description: 'Update a booking type. Only provide fields to change.',
|
|
207
|
+
inputSchema: {
|
|
208
|
+
type: 'object',
|
|
209
|
+
properties: {
|
|
210
|
+
booking_type_id: { type: 'string' },
|
|
211
|
+
name: { type: 'string' },
|
|
212
|
+
duration_minutes: { type: 'integer' },
|
|
213
|
+
buffer_before_min: { type: 'integer' },
|
|
214
|
+
buffer_after_min: { type: 'integer' },
|
|
215
|
+
scheduling_mode: { type: 'string', enum: ['collective', 'round_robin'] },
|
|
216
|
+
round_robin_mode: { type: 'string', enum: ['optimize_availability', 'optimize_fairness'] },
|
|
217
|
+
min_notice_minutes: { type: 'integer' },
|
|
218
|
+
max_days_ahead: { type: 'integer' },
|
|
219
|
+
timezone: { type: 'string' },
|
|
220
|
+
confirmation_required: { type: 'boolean' },
|
|
221
|
+
is_default: { type: 'boolean' },
|
|
222
|
+
},
|
|
223
|
+
required: ['booking_type_id'],
|
|
224
|
+
},
|
|
225
|
+
handler: async (args) => {
|
|
226
|
+
const { booking_type_id, ...data } = args;
|
|
227
|
+
const v = validateUUID(booking_type_id, 'booking_type_id');
|
|
228
|
+
if (v)
|
|
229
|
+
return v;
|
|
230
|
+
const result = await client.updateBookingType(booking_type_id, data);
|
|
231
|
+
if (!result.success || isApiError(result))
|
|
232
|
+
return formatApiError(result, 'update_booking_type');
|
|
233
|
+
return createSuccess({ updated: true, booking_type: result.data });
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'delete_booking_type',
|
|
238
|
+
description: 'Delete a booking type.',
|
|
239
|
+
inputSchema: {
|
|
240
|
+
type: 'object',
|
|
241
|
+
properties: { booking_type_id: { type: 'string' } },
|
|
242
|
+
required: ['booking_type_id'],
|
|
243
|
+
},
|
|
244
|
+
handler: async (args) => {
|
|
245
|
+
const { booking_type_id } = args;
|
|
246
|
+
const v = validateUUID(booking_type_id, 'booking_type_id');
|
|
247
|
+
if (v)
|
|
248
|
+
return v;
|
|
249
|
+
const result = await client.deleteBookingType(booking_type_id);
|
|
250
|
+
if (!result.success || isApiError(result))
|
|
251
|
+
return formatApiError(result, 'delete_booking_type');
|
|
252
|
+
return createSuccess({ deleted: true, booking_type_id });
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'add_booking_type_member',
|
|
257
|
+
description: 'Add a team member (calendar connection) to a booking type.',
|
|
258
|
+
inputSchema: {
|
|
259
|
+
type: 'object',
|
|
260
|
+
properties: {
|
|
261
|
+
booking_type_id: { type: 'string' },
|
|
262
|
+
calendar_connection_id: { type: 'string', description: 'Calendar connection UUID of the member' },
|
|
263
|
+
priority: { type: 'integer', description: 'Member priority for round-robin scheduling' },
|
|
264
|
+
},
|
|
265
|
+
required: ['booking_type_id', 'calendar_connection_id'],
|
|
266
|
+
},
|
|
267
|
+
handler: async (args) => {
|
|
268
|
+
const { booking_type_id, ...data } = args;
|
|
269
|
+
const v = validateUUID(booking_type_id, 'booking_type_id');
|
|
270
|
+
if (v)
|
|
271
|
+
return v;
|
|
272
|
+
const result = await client.addBookingTypeMember(booking_type_id, data);
|
|
273
|
+
if (!result.success || isApiError(result))
|
|
274
|
+
return formatApiError(result, 'add_booking_type_member');
|
|
275
|
+
return createSuccess({ added: true, member: result.data });
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
name: 'remove_booking_type_member',
|
|
280
|
+
description: 'Remove a team member from a booking type.',
|
|
281
|
+
inputSchema: {
|
|
282
|
+
type: 'object',
|
|
283
|
+
properties: {
|
|
284
|
+
booking_type_id: { type: 'string' },
|
|
285
|
+
member_id: { type: 'string' },
|
|
286
|
+
},
|
|
287
|
+
required: ['booking_type_id', 'member_id'],
|
|
288
|
+
},
|
|
289
|
+
handler: async (args) => {
|
|
290
|
+
const { booking_type_id, member_id } = args;
|
|
291
|
+
const v1 = validateUUID(booking_type_id, 'booking_type_id');
|
|
292
|
+
if (v1)
|
|
293
|
+
return v1;
|
|
294
|
+
const v2 = validateUUID(member_id, 'member_id');
|
|
295
|
+
if (v2)
|
|
296
|
+
return v2;
|
|
297
|
+
const result = await client.removeBookingTypeMember(booking_type_id, member_id);
|
|
298
|
+
if (!result.success || isApiError(result))
|
|
299
|
+
return formatApiError(result, 'remove_booking_type_member');
|
|
300
|
+
return createSuccess({ removed: true, member_id });
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
// === APPOINTMENTS ===
|
|
304
|
+
{
|
|
305
|
+
name: 'list_appointments',
|
|
306
|
+
description: 'List appointments with optional filtering.',
|
|
307
|
+
inputSchema: {
|
|
308
|
+
type: 'object',
|
|
309
|
+
properties: {
|
|
310
|
+
owner_id: { type: 'string', description: 'Filter by owner UUID' },
|
|
311
|
+
status: { type: 'string', enum: ['confirmed', 'cancelled', 'pending'], description: 'Filter by status' },
|
|
312
|
+
from_date: { type: 'string', description: 'Start date (ISO 8601)' },
|
|
313
|
+
to_date: { type: 'string', description: 'End date (ISO 8601)' },
|
|
314
|
+
agent_version_id: { type: 'string', description: 'Filter by agent version' },
|
|
315
|
+
limit: { type: 'integer', minimum: 1, maximum: 100, default: 30 },
|
|
316
|
+
offset: { type: 'integer', minimum: 0, default: 0 },
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
handler: async (args) => {
|
|
320
|
+
const result = await client.listAppointments(args);
|
|
321
|
+
if (!result.success || isApiError(result))
|
|
322
|
+
return formatApiError(result, 'list_appointments');
|
|
323
|
+
return result;
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
name: 'cancel_appointment',
|
|
328
|
+
description: 'Cancel an existing appointment.',
|
|
329
|
+
inputSchema: {
|
|
330
|
+
type: 'object',
|
|
331
|
+
properties: { appointment_id: { type: 'string' } },
|
|
332
|
+
required: ['appointment_id'],
|
|
333
|
+
},
|
|
334
|
+
handler: async (args) => {
|
|
335
|
+
const { appointment_id } = args;
|
|
336
|
+
const v = validateUUID(appointment_id, 'appointment_id');
|
|
337
|
+
if (v)
|
|
338
|
+
return v;
|
|
339
|
+
const result = await client.cancelAppointment(appointment_id);
|
|
340
|
+
if (!result.success || isApiError(result))
|
|
341
|
+
return formatApiError(result, 'cancel_appointment');
|
|
342
|
+
return createSuccess({ cancelled: true, appointment: result.data });
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
];
|
|
346
|
+
}
|
|
347
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../src/tools/calendar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE/E,MAAM,UAAU,mBAAmB,CAAC,MAAoB;IACtD,OAAO;QACL,sBAAsB;QACt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O,IAAI,UAAU,CAAC,MAAM,CAAC;oBAAE,OAAO,cAAc,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;gBAC/F,OAAO,aAAa,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;YACtE,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Call Management Tools
|
|
3
|
+
* 10 tools for managing dalvon.ai calls (Phase 1: +3 new tools)
|
|
4
|
+
*/
|
|
5
|
+
import type { DalvonClient } from '../clients/dalvon.js';
|
|
6
|
+
import type { McpTool } from '../types/index.js';
|
|
7
|
+
export declare function createCallTools(client: DalvonClient): McpTool[];
|
|
8
|
+
//# sourceMappingURL=calls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../src/tools/calls.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,mBAAmB,CAAC;AAqF/D,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,EAAE,CAmd/D"}
|