File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @vapi-ai/mcp-server" ,
3
3
"description" : " Vapi MCP Server" ,
4
- "version" : " 0.0.3 " ,
4
+ "version" : " 0.0.4 " ,
5
5
"main" : " dist/index.js" ,
6
+ "types" : " dist/index.d.ts" ,
6
7
"type" : " module" ,
7
8
"author" : {
8
9
"name" : " Vapi AI" ,
43
44
"test:e2e" : " NODE_OPTIONS=--experimental-vm-modules jest src/tests/mcp-server-e2e.test.ts"
44
45
},
45
46
"files" : [
46
- " dist"
47
+ " dist" ,
48
+ " dist/**/*.d.ts" ,
49
+ " dist/**/*.d.ts.map"
47
50
],
48
51
"dependencies" : {
49
52
"@modelcontextprotocol/sdk" : " ^1.9.0" ,
Original file line number Diff line number Diff line change @@ -210,6 +210,10 @@ export const CallInputSchema = z.object({
210
210
} )
211
211
. optional ( )
212
212
. describe ( 'Customer information' ) ,
213
+ scheduledAt : z
214
+ . string ( )
215
+ . optional ( )
216
+ . describe ( 'ISO datetime string for when the call should be scheduled (e.g. "2025-03-25T22:39:27.771Z")' ) ,
213
217
} ) ;
214
218
215
219
export const CallOutputSchema = BaseResponseSchema . extend ( {
@@ -222,6 +226,7 @@ export const CallOutputSchema = BaseResponseSchema.extend({
222
226
phoneNumber : z . string ( ) ,
223
227
} )
224
228
. optional ( ) ,
229
+ scheduledAt : z . string ( ) . optional ( ) ,
225
230
} ) ;
226
231
227
232
export const GetCallInputSchema = z . object ( {
Original file line number Diff line number Diff line change @@ -115,6 +115,13 @@ export function transformCallInput(
115
115
} ,
116
116
}
117
117
: { } ) ,
118
+ ...( input . scheduledAt
119
+ ? {
120
+ schedulePlan : {
121
+ earliestAt : input . scheduledAt ,
122
+ } ,
123
+ }
124
+ : { } ) ,
118
125
} ;
119
126
}
120
127
@@ -134,6 +141,7 @@ export function transformCallOutput(
134
141
phoneNumber : call . customer . number || '' ,
135
142
}
136
143
: undefined ,
144
+ scheduledAt : call . schedulePlan ?. earliestAt ,
137
145
} ;
138
146
}
139
147
Original file line number Diff line number Diff line change 8
8
"strict" : true ,
9
9
"esModuleInterop" : true ,
10
10
"skipLibCheck" : true ,
11
- "forceConsistentCasingInFileNames" : true
11
+ "forceConsistentCasingInFileNames" : true ,
12
+ "declaration" : true ,
13
+ "declarationMap" : true
12
14
},
13
15
"include" : [" src/**/*" ],
14
16
"exclude" : [" node_modules" , " dist" ]
You can’t perform that action at this time.
0 commit comments