@vapi-ai/mcp-server 0.0.10 → 0.1.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.
Files changed (53) hide show
  1. package/README.md +152 -6
  2. package/dist/knowledge/docs.d.ts +96 -0
  3. package/dist/knowledge/docs.d.ts.map +1 -0
  4. package/dist/knowledge/docs.js +16 -0
  5. package/dist/knowledge/skills.d.ts +28 -0
  6. package/dist/knowledge/skills.d.ts.map +1 -0
  7. package/dist/knowledge/skills.js +131 -0
  8. package/dist/schemas/assistant-openapi.d.ts +31 -0
  9. package/dist/schemas/assistant-openapi.d.ts.map +1 -0
  10. package/dist/schemas/assistant-openapi.js +87 -0
  11. package/dist/schemas/assistant-openapi.json +2341 -0
  12. package/dist/schemas/index.d.ts +158 -1181
  13. package/dist/schemas/index.d.ts.map +1 -1
  14. package/dist/schemas/index.js +95 -172
  15. package/dist/schemas/simulation-openapi.d.ts +9 -0
  16. package/dist/schemas/simulation-openapi.d.ts.map +1 -0
  17. package/dist/schemas/simulation-openapi.js +81 -0
  18. package/dist/schemas/simulation-openapi.json +27558 -0
  19. package/dist/schemas/simulation.d.ts +54 -0
  20. package/dist/schemas/simulation.d.ts.map +1 -0
  21. package/dist/schemas/simulation.js +76 -0
  22. package/dist/tools/api-schema.d.ts +4 -0
  23. package/dist/tools/api-schema.d.ts.map +1 -0
  24. package/dist/tools/api-schema.js +67 -0
  25. package/dist/tools/assistant.d.ts.map +1 -1
  26. package/dist/tools/assistant.js +25 -10
  27. package/dist/tools/call.d.ts.map +1 -1
  28. package/dist/tools/call.js +13 -6
  29. package/dist/tools/docs.d.ts +3 -0
  30. package/dist/tools/docs.d.ts.map +1 -0
  31. package/dist/tools/docs.js +27 -0
  32. package/dist/tools/index.d.ts.map +1 -1
  33. package/dist/tools/index.js +8 -0
  34. package/dist/tools/input-schema.d.ts +5 -0
  35. package/dist/tools/input-schema.d.ts.map +1 -0
  36. package/dist/tools/input-schema.js +59 -0
  37. package/dist/tools/phone-number.d.ts.map +1 -1
  38. package/dist/tools/phone-number.js +11 -5
  39. package/dist/tools/simulation.d.ts +4 -0
  40. package/dist/tools/simulation.d.ts.map +1 -0
  41. package/dist/tools/simulation.js +133 -0
  42. package/dist/tools/skills.d.ts +3 -0
  43. package/dist/tools/skills.d.ts.map +1 -0
  44. package/dist/tools/skills.js +31 -0
  45. package/dist/tools/tool.d.ts.map +1 -1
  46. package/dist/tools/tool.js +23 -9
  47. package/dist/tools/validation.d.ts +22 -0
  48. package/dist/tools/validation.d.ts.map +1 -0
  49. package/dist/tools/validation.js +94 -0
  50. package/dist/transformers/index.d.ts +3 -3
  51. package/dist/transformers/index.d.ts.map +1 -1
  52. package/dist/transformers/index.js +52 -31
  53. package/package.json +10 -7
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { VoiceInputSchema } from './assistant-openapi.js';
3
+ export declare const EmptyInputSchema: z.ZodObject<{}, z.core.$strip>;
2
4
  export declare const ModelProvider: {
3
5
  readonly OpenAI: "openai";
4
6
  readonly Anthropic: "anthropic";
@@ -26,8 +28,7 @@ export declare const DEFAULT_LLM: {
26
28
  provider: "openai";
27
29
  model: "gpt-4o";
28
30
  };
29
- declare const VoiceProviderSchema: z.ZodEnum<["vapi", "11labs", "azure", "cartesia", "custom-voice", "deepgram", "11labs", "hume", "lmnt", "neuphonic", "openai", "playht", "rime-ai", "smallest-ai", "tavus", "sesame"]>;
30
- export type VoiceProviderType = z.infer<typeof VoiceProviderSchema>;
31
+ export type VoiceProviderType = z.infer<typeof VoiceInputSchema>['provider'];
31
32
  export declare const DEFAULT_VOICE: {
32
33
  provider: VoiceProviderType;
33
34
  voiceId: string;
@@ -47,1278 +48,254 @@ export declare const BaseResponseSchema: z.ZodObject<{
47
48
  id: z.ZodString;
48
49
  createdAt: z.ZodString;
49
50
  updatedAt: z.ZodString;
50
- }, "strip", z.ZodTypeAny, {
51
- id: string;
52
- createdAt: string;
53
- updatedAt: string;
54
- }, {
55
- id: string;
56
- createdAt: string;
57
- updatedAt: string;
58
- }>;
51
+ }, z.core.$strip>;
59
52
  export declare const CreateAssistantInputSchema: z.ZodObject<{
60
- name: z.ZodString;
61
- instructions: z.ZodDefault<z.ZodOptional<z.ZodString>>;
62
- llm: z.ZodDefault<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
63
- provider: z.ZodLiteral<"openai">;
64
- model: z.ZodEnum<["gpt-4o", "gpt-4o-mini"]>;
65
- }, "strip", z.ZodTypeAny, {
66
- provider: "openai";
67
- model: "gpt-4o" | "gpt-4o-mini";
68
- }, {
69
- provider: "openai";
70
- model: "gpt-4o" | "gpt-4o-mini";
71
- }>, z.ZodObject<{
72
- provider: z.ZodLiteral<"anthropic">;
73
- model: z.ZodEnum<["claude-3-7-sonnet-20250219", "claude-3-5-haiku-20241022"]>;
74
- }, "strip", z.ZodTypeAny, {
75
- provider: "anthropic";
76
- model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022";
77
- }, {
78
- provider: "anthropic";
79
- model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022";
80
- }>, z.ZodObject<{
81
- provider: z.ZodLiteral<"google">;
82
- model: z.ZodEnum<["gemini-1.5-pro", "gemini-1.5-flash", "gemini-2.0-flash", "gemini-2.0-pro"]>;
83
- }, "strip", z.ZodTypeAny, {
84
- provider: "google";
85
- model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro";
86
- }, {
87
- provider: "google";
88
- model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro";
89
- }>, z.ZodObject<{
90
- provider: z.ZodString;
91
- model: z.ZodString;
92
- }, "strip", z.ZodTypeAny, {
53
+ name: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
54
+ instructions: z.ZodDefault<z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>>;
55
+ llm: z.ZodDefault<z.ZodUnion<readonly [z.ZodType<{
93
56
  provider: string;
94
- model: string;
95
- }, {
57
+ model?: string;
58
+ }, unknown, z.core.$ZodTypeInternals<{
96
59
  provider: string;
97
- model: string;
98
- }>]>, z.ZodEffects<z.ZodString, any, string>]>>;
99
- toolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
- transcriber: z.ZodDefault<z.ZodObject<{
101
- provider: z.ZodString;
102
- model: z.ZodString;
103
- }, "strip", z.ZodTypeAny, {
60
+ model?: string;
61
+ }, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<{
104
62
  provider: string;
105
- model: string;
106
- }, {
63
+ model?: string;
64
+ }, unknown, z.core.$ZodTypeInternals<{
107
65
  provider: string;
108
- model: string;
109
- }>>;
110
- voice: z.ZodDefault<z.ZodObject<{
111
- provider: z.ZodEnum<["vapi", "11labs", "azure", "cartesia", "custom-voice", "deepgram", "11labs", "hume", "lmnt", "neuphonic", "openai", "playht", "rime-ai", "smallest-ai", "tavus", "sesame"]>;
112
- voiceId: z.ZodString;
113
- model: z.ZodOptional<z.ZodString>;
114
- }, "strip", z.ZodTypeAny, {
115
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
116
- voiceId: string;
117
- model?: string | undefined;
118
- }, {
119
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
120
- voiceId: string;
121
- model?: string | undefined;
122
- }>>;
123
- firstMessage: z.ZodDefault<z.ZodOptional<z.ZodString>>;
124
- firstMessageMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["assistant-speaks-first", "assistant-waits-for-user", "assistant-speaks-first-with-model-generated-message"]>>>;
125
- }, "strip", z.ZodTypeAny, {
126
- name: string;
127
- instructions: string;
128
- transcriber: {
66
+ model?: string;
67
+ }, unknown>>>]>>;
68
+ toolIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
69
+ transcriber: z.ZodDefault<z.ZodType<{
129
70
  provider: string;
130
- model: string;
131
- };
132
- voice: {
133
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
134
- voiceId: string;
135
- model?: string | undefined;
136
- };
137
- firstMessage: string;
138
- llm?: any;
139
- toolIds?: string[] | undefined;
140
- firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined;
141
- }, {
142
- name: string;
143
- instructions?: string | undefined;
144
- llm?: string | {
145
- provider: "openai";
146
- model: "gpt-4o" | "gpt-4o-mini";
147
- } | {
148
- provider: "anthropic";
149
- model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022";
150
- } | {
151
- provider: "google";
152
- model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro";
153
- } | {
71
+ model?: string;
72
+ }, unknown, z.core.$ZodTypeInternals<{
73
+ provider: string;
74
+ model?: string;
75
+ }, unknown>>>;
76
+ voice: z.ZodDefault<z.ZodType<{
154
77
  provider: string;
155
- model: string;
156
- } | undefined;
157
- toolIds?: string[] | undefined;
158
- transcriber?: {
78
+ voiceId: string;
79
+ model?: string;
80
+ }, unknown, z.core.$ZodTypeInternals<{
159
81
  provider: string;
160
- model: string;
161
- } | undefined;
162
- voice?: {
163
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
164
82
  voiceId: string;
165
- model?: string | undefined;
166
- } | undefined;
167
- firstMessage?: string | undefined;
168
- firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined;
169
- }>;
83
+ model?: string;
84
+ }, unknown>>>;
85
+ firstMessage: z.ZodDefault<z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>>;
86
+ firstMessageMode: z.ZodOptional<z.ZodType<"assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message", unknown, z.core.$ZodTypeInternals<"assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message", unknown>>>;
87
+ }, z.core.$strip>;
170
88
  export declare const AssistantOutputSchema: z.ZodObject<{
171
89
  id: z.ZodString;
172
90
  createdAt: z.ZodString;
173
91
  updatedAt: z.ZodString;
174
- } & {
175
92
  name: z.ZodString;
176
93
  llm: z.ZodObject<{
177
94
  provider: z.ZodString;
178
95
  model: z.ZodString;
179
- }, "strip", z.ZodTypeAny, {
180
- provider: string;
181
- model: string;
182
- }, {
183
- provider: string;
184
- model: string;
185
- }>;
96
+ }, z.core.$strip>;
186
97
  voice: z.ZodObject<{
187
98
  provider: z.ZodString;
188
99
  voiceId: z.ZodString;
189
100
  model: z.ZodOptional<z.ZodString>;
190
- }, "strip", z.ZodTypeAny, {
191
- provider: string;
192
- voiceId: string;
193
- model?: string | undefined;
194
- }, {
195
- provider: string;
196
- voiceId: string;
197
- model?: string | undefined;
198
- }>;
101
+ }, z.core.$strip>;
199
102
  transcriber: z.ZodObject<{
200
103
  provider: z.ZodString;
201
- model: z.ZodString;
202
- }, "strip", z.ZodTypeAny, {
203
- provider: string;
204
- model: string;
205
- }, {
206
- provider: string;
207
- model: string;
208
- }>;
209
- toolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
- }, "strip", z.ZodTypeAny, {
211
- id: string;
212
- createdAt: string;
213
- updatedAt: string;
214
- name: string;
215
- llm: {
216
- provider: string;
217
- model: string;
218
- };
219
- transcriber: {
220
- provider: string;
221
- model: string;
222
- };
223
- voice: {
224
- provider: string;
225
- voiceId: string;
226
- model?: string | undefined;
227
- };
228
- toolIds?: string[] | undefined;
229
- }, {
230
- id: string;
231
- createdAt: string;
232
- updatedAt: string;
233
- name: string;
234
- llm: {
235
- provider: string;
236
- model: string;
237
- };
238
- transcriber: {
239
- provider: string;
240
- model: string;
241
- };
242
- voice: {
243
- provider: string;
244
- voiceId: string;
245
- model?: string | undefined;
246
- };
247
- toolIds?: string[] | undefined;
248
- }>;
104
+ model: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>;
106
+ toolIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
+ }, z.core.$strip>;
249
108
  export declare const GetAssistantInputSchema: z.ZodObject<{
250
- assistantId: z.ZodString;
251
- }, "strip", z.ZodTypeAny, {
252
- assistantId: string;
253
- }, {
254
- assistantId: string;
255
- }>;
109
+ assistantId: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
110
+ }, z.core.$strip>;
256
111
  export declare const UpdateAssistantInputSchema: z.ZodObject<{
257
- assistantId: z.ZodString;
258
- name: z.ZodOptional<z.ZodString>;
259
- instructions: z.ZodOptional<z.ZodString>;
260
- llm: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
261
- provider: z.ZodLiteral<"openai">;
262
- model: z.ZodEnum<["gpt-4o", "gpt-4o-mini"]>;
263
- }, "strip", z.ZodTypeAny, {
264
- provider: "openai";
265
- model: "gpt-4o" | "gpt-4o-mini";
266
- }, {
267
- provider: "openai";
268
- model: "gpt-4o" | "gpt-4o-mini";
269
- }>, z.ZodObject<{
270
- provider: z.ZodLiteral<"anthropic">;
271
- model: z.ZodEnum<["claude-3-7-sonnet-20250219", "claude-3-5-haiku-20241022"]>;
272
- }, "strip", z.ZodTypeAny, {
273
- provider: "anthropic";
274
- model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022";
275
- }, {
276
- provider: "anthropic";
277
- model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022";
278
- }>, z.ZodObject<{
279
- provider: z.ZodLiteral<"google">;
280
- model: z.ZodEnum<["gemini-1.5-pro", "gemini-1.5-flash", "gemini-2.0-flash", "gemini-2.0-pro"]>;
281
- }, "strip", z.ZodTypeAny, {
282
- provider: "google";
283
- model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro";
284
- }, {
285
- provider: "google";
286
- model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro";
287
- }>, z.ZodObject<{
288
- provider: z.ZodString;
289
- model: z.ZodString;
290
- }, "strip", z.ZodTypeAny, {
112
+ assistantId: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
113
+ name: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
114
+ instructions: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
115
+ llm: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<{
291
116
  provider: string;
292
- model: string;
293
- }, {
117
+ model?: string;
118
+ }, unknown, z.core.$ZodTypeInternals<{
294
119
  provider: string;
295
- model: string;
296
- }>]>, z.ZodEffects<z.ZodString, any, string>]>>;
297
- toolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
298
- transcriber: z.ZodOptional<z.ZodObject<{
299
- provider: z.ZodString;
300
- model: z.ZodString;
301
- }, "strip", z.ZodTypeAny, {
120
+ model?: string;
121
+ }, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<{
302
122
  provider: string;
303
- model: string;
304
- }, {
123
+ model?: string;
124
+ }, unknown, z.core.$ZodTypeInternals<{
305
125
  provider: string;
306
- model: string;
307
- }>>;
308
- voice: z.ZodOptional<z.ZodObject<{
309
- provider: z.ZodEnum<["vapi", "11labs", "azure", "cartesia", "custom-voice", "deepgram", "11labs", "hume", "lmnt", "neuphonic", "openai", "playht", "rime-ai", "smallest-ai", "tavus", "sesame"]>;
310
- voiceId: z.ZodString;
311
- model: z.ZodOptional<z.ZodString>;
312
- }, "strip", z.ZodTypeAny, {
313
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
314
- voiceId: string;
315
- model?: string | undefined;
316
- }, {
317
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
318
- voiceId: string;
319
- model?: string | undefined;
320
- }>>;
321
- firstMessage: z.ZodOptional<z.ZodString>;
322
- firstMessageMode: z.ZodOptional<z.ZodEnum<["assistant-speaks-first", "assistant-waits-for-user", "assistant-speaks-first-with-model-generated-message"]>>;
323
- }, "strip", z.ZodTypeAny, {
324
- assistantId: string;
325
- name?: string | undefined;
326
- instructions?: string | undefined;
327
- llm?: any;
328
- toolIds?: string[] | undefined;
329
- transcriber?: {
126
+ model?: string;
127
+ }, unknown>>>]>>;
128
+ toolIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
129
+ transcriber: z.ZodOptional<z.ZodType<{
330
130
  provider: string;
331
- model: string;
332
- } | undefined;
333
- voice?: {
334
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
335
- voiceId: string;
336
- model?: string | undefined;
337
- } | undefined;
338
- firstMessage?: string | undefined;
339
- firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined;
340
- }, {
341
- assistantId: string;
342
- name?: string | undefined;
343
- instructions?: string | undefined;
344
- llm?: string | {
345
- provider: "openai";
346
- model: "gpt-4o" | "gpt-4o-mini";
347
- } | {
348
- provider: "anthropic";
349
- model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022";
350
- } | {
351
- provider: "google";
352
- model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro";
353
- } | {
131
+ model?: string;
132
+ }, unknown, z.core.$ZodTypeInternals<{
133
+ provider: string;
134
+ model?: string;
135
+ }, unknown>>>;
136
+ voice: z.ZodOptional<z.ZodType<{
354
137
  provider: string;
355
- model: string;
356
- } | undefined;
357
- toolIds?: string[] | undefined;
358
- transcriber?: {
138
+ voiceId: string;
139
+ model?: string;
140
+ }, unknown, z.core.$ZodTypeInternals<{
359
141
  provider: string;
360
- model: string;
361
- } | undefined;
362
- voice?: {
363
- provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame";
364
142
  voiceId: string;
365
- model?: string | undefined;
366
- } | undefined;
367
- firstMessage?: string | undefined;
368
- firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined;
369
- }>;
143
+ model?: string;
144
+ }, unknown>>>;
145
+ firstMessage: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
146
+ firstMessageMode: z.ZodOptional<z.ZodType<"assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message", unknown, z.core.$ZodTypeInternals<"assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message", unknown>>>;
147
+ }, z.core.$strip>;
370
148
  export declare const CallInputSchema: z.ZodObject<{
371
- assistantId: z.ZodOptional<z.ZodString>;
372
- phoneNumberId: z.ZodOptional<z.ZodString>;
149
+ assistantId: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
150
+ phoneNumberId: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
373
151
  customer: z.ZodOptional<z.ZodObject<{
374
- number: z.ZodString;
375
- }, "strip", z.ZodTypeAny, {
376
- number: string;
377
- }, {
378
- number: string;
379
- }>>;
380
- scheduledAt: z.ZodOptional<z.ZodString>;
152
+ number: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
153
+ }, z.core.$strip>>;
154
+ scheduledAt: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
381
155
  assistantOverrides: z.ZodOptional<z.ZodObject<{
382
- variableValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
383
- }, "strip", z.ZodTypeAny, {
384
- variableValues?: Record<string, any> | undefined;
385
- }, {
386
- variableValues?: Record<string, any> | undefined;
387
- }>>;
388
- }, "strip", z.ZodTypeAny, {
389
- assistantId?: string | undefined;
390
- phoneNumberId?: string | undefined;
391
- customer?: {
392
- number: string;
393
- } | undefined;
394
- scheduledAt?: string | undefined;
395
- assistantOverrides?: {
396
- variableValues?: Record<string, any> | undefined;
397
- } | undefined;
398
- }, {
399
- assistantId?: string | undefined;
400
- phoneNumberId?: string | undefined;
401
- customer?: {
402
- number: string;
403
- } | undefined;
404
- scheduledAt?: string | undefined;
405
- assistantOverrides?: {
406
- variableValues?: Record<string, any> | undefined;
407
- } | undefined;
408
- }>;
156
+ variableValues: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
157
+ }, z.core.$strip>>;
158
+ }, z.core.$strip>;
409
159
  export declare const CallOutputSchema: z.ZodObject<{
410
160
  id: z.ZodString;
411
161
  createdAt: z.ZodString;
412
162
  updatedAt: z.ZodString;
413
- } & {
414
163
  status: z.ZodString;
415
164
  endedReason: z.ZodOptional<z.ZodString>;
416
165
  assistantId: z.ZodOptional<z.ZodString>;
417
166
  phoneNumberId: z.ZodOptional<z.ZodString>;
418
167
  customer: z.ZodOptional<z.ZodObject<{
419
168
  number: z.ZodString;
420
- }, "strip", z.ZodTypeAny, {
421
- number: string;
422
- }, {
423
- number: string;
424
- }>>;
169
+ }, z.core.$strip>>;
425
170
  scheduledAt: z.ZodOptional<z.ZodString>;
426
- }, "strip", z.ZodTypeAny, {
427
- status: string;
428
- id: string;
429
- createdAt: string;
430
- updatedAt: string;
431
- assistantId?: string | undefined;
432
- phoneNumberId?: string | undefined;
433
- customer?: {
434
- number: string;
435
- } | undefined;
436
- scheduledAt?: string | undefined;
437
- endedReason?: string | undefined;
438
- }, {
439
- status: string;
440
- id: string;
441
- createdAt: string;
442
- updatedAt: string;
443
- assistantId?: string | undefined;
444
- phoneNumberId?: string | undefined;
445
- customer?: {
446
- number: string;
447
- } | undefined;
448
- scheduledAt?: string | undefined;
449
- endedReason?: string | undefined;
450
- }>;
171
+ }, z.core.$strip>;
451
172
  export declare const GetCallInputSchema: z.ZodObject<{
452
- callId: z.ZodString;
453
- }, "strip", z.ZodTypeAny, {
454
- callId: string;
455
- }, {
456
- callId: string;
457
- }>;
173
+ callId: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
174
+ }, z.core.$strip>;
458
175
  export declare const GetPhoneNumberInputSchema: z.ZodObject<{
459
- phoneNumberId: z.ZodString;
460
- }, "strip", z.ZodTypeAny, {
461
- phoneNumberId: string;
462
- }, {
463
- phoneNumberId: string;
464
- }>;
176
+ phoneNumberId: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
177
+ }, z.core.$strip>;
465
178
  export declare const PhoneNumberOutputSchema: z.ZodObject<{
466
179
  id: z.ZodString;
467
180
  createdAt: z.ZodString;
468
181
  updatedAt: z.ZodString;
469
- } & {
470
182
  name: z.ZodOptional<z.ZodString>;
471
183
  phoneNumber: z.ZodString;
472
184
  status: z.ZodString;
473
185
  capabilities: z.ZodOptional<z.ZodObject<{
474
186
  sms: z.ZodOptional<z.ZodBoolean>;
475
187
  voice: z.ZodOptional<z.ZodBoolean>;
476
- }, "strip", z.ZodTypeAny, {
477
- voice?: boolean | undefined;
478
- sms?: boolean | undefined;
479
- }, {
480
- voice?: boolean | undefined;
481
- sms?: boolean | undefined;
482
- }>>;
483
- }, "strip", z.ZodTypeAny, {
484
- status: string;
485
- id: string;
486
- createdAt: string;
487
- updatedAt: string;
488
- phoneNumber: string;
489
- name?: string | undefined;
490
- capabilities?: {
491
- voice?: boolean | undefined;
492
- sms?: boolean | undefined;
493
- } | undefined;
494
- }, {
495
- status: string;
496
- id: string;
497
- createdAt: string;
498
- updatedAt: string;
499
- phoneNumber: string;
500
- name?: string | undefined;
501
- capabilities?: {
502
- voice?: boolean | undefined;
503
- sms?: boolean | undefined;
504
- } | undefined;
505
- }>;
188
+ }, z.core.$strip>>;
189
+ }, z.core.$strip>;
506
190
  export declare const GetToolInputSchema: z.ZodObject<{
507
- toolId: z.ZodString;
508
- }, "strip", z.ZodTypeAny, {
509
- toolId: string;
510
- }, {
511
- toolId: string;
512
- }>;
191
+ toolId: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
192
+ }, z.core.$strip>;
513
193
  export declare const CreateToolInputSchema: z.ZodObject<{
514
- name: z.ZodOptional<z.ZodString>;
515
- description: z.ZodOptional<z.ZodString>;
194
+ name: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
195
+ description: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
516
196
  sms: z.ZodOptional<z.ZodObject<{
517
197
  metadata: z.ZodObject<{
518
198
  from: z.ZodString;
519
- }, "strip", z.ZodTypeAny, {
520
- from: string;
521
- }, {
522
- from: string;
523
- }>;
524
- }, "strip", z.ZodTypeAny, {
525
- metadata: {
526
- from: string;
527
- };
528
- }, {
529
- metadata: {
530
- from: string;
531
- };
532
- }>>;
199
+ }, z.core.$strip>;
200
+ }, z.core.$strip>>;
533
201
  transferCall: z.ZodOptional<z.ZodObject<{
534
- destinations: z.ZodArray<z.ZodObject<{
535
- type: z.ZodLiteral<"number">;
536
- number: z.ZodString;
537
- extension: z.ZodOptional<z.ZodString>;
538
- callerId: z.ZodOptional<z.ZodString>;
539
- description: z.ZodOptional<z.ZodString>;
540
- }, "strip", z.ZodTypeAny, {
541
- number: string;
542
- type: "number";
543
- extension?: string | undefined;
544
- callerId?: string | undefined;
545
- description?: string | undefined;
546
- }, {
547
- number: string;
202
+ destinations: z.ZodArray<z.ZodType<{
548
203
  type: "number";
549
- extension?: string | undefined;
550
- callerId?: string | undefined;
551
- description?: string | undefined;
552
- }>, "many">;
553
- }, "strip", z.ZodTypeAny, {
554
- destinations: {
555
204
  number: string;
205
+ extension?: string;
206
+ callerId?: string;
207
+ description?: string;
208
+ }, unknown, z.core.$ZodTypeInternals<{
556
209
  type: "number";
557
- extension?: string | undefined;
558
- callerId?: string | undefined;
559
- description?: string | undefined;
560
- }[];
561
- }, {
562
- destinations: {
563
210
  number: string;
564
- type: "number";
565
- extension?: string | undefined;
566
- callerId?: string | undefined;
567
- description?: string | undefined;
568
- }[];
569
- }>>;
211
+ extension?: string;
212
+ callerId?: string;
213
+ description?: string;
214
+ }, unknown>>>;
215
+ }, z.core.$strip>>;
570
216
  function: z.ZodOptional<z.ZodObject<{
571
- parameters: z.ZodObject<{
572
- type: z.ZodLiteral<"object">;
573
- properties: z.ZodRecord<z.ZodString, z.ZodObject<{
574
- type: z.ZodString;
575
- description: z.ZodOptional<z.ZodString>;
576
- enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
577
- items: z.ZodOptional<z.ZodAny>;
578
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
579
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
580
- }, "strip", z.ZodTypeAny, {
581
- type: string;
582
- description?: string | undefined;
583
- enum?: string[] | undefined;
584
- items?: any;
585
- properties?: Record<string, any> | undefined;
586
- required?: string[] | undefined;
587
- }, {
588
- type: string;
589
- description?: string | undefined;
590
- enum?: string[] | undefined;
591
- items?: any;
592
- properties?: Record<string, any> | undefined;
593
- required?: string[] | undefined;
594
- }>>;
595
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
596
- }, "strip", z.ZodTypeAny, {
597
- type: "object";
598
- properties: Record<string, {
599
- type: string;
600
- description?: string | undefined;
601
- enum?: string[] | undefined;
602
- items?: any;
603
- properties?: Record<string, any> | undefined;
604
- required?: string[] | undefined;
605
- }>;
606
- required?: string[] | undefined;
607
- }, {
608
- type: "object";
609
- properties: Record<string, {
610
- type: string;
611
- description?: string | undefined;
612
- enum?: string[] | undefined;
613
- items?: any;
614
- properties?: Record<string, any> | undefined;
615
- required?: string[] | undefined;
616
- }>;
617
- required?: string[] | undefined;
618
- }>;
217
+ parameters: z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>;
619
218
  server: z.ZodObject<{
620
- url: z.ZodString;
621
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
622
- }, "strip", z.ZodTypeAny, {
623
- url: string;
624
- headers?: Record<string, string> | undefined;
625
- }, {
626
- url: string;
627
- headers?: Record<string, string> | undefined;
628
- }>;
629
- }, "strip", z.ZodTypeAny, {
630
- parameters: {
631
- type: "object";
632
- properties: Record<string, {
633
- type: string;
634
- description?: string | undefined;
635
- enum?: string[] | undefined;
636
- items?: any;
637
- properties?: Record<string, any> | undefined;
638
- required?: string[] | undefined;
639
- }>;
640
- required?: string[] | undefined;
641
- };
642
- server: {
643
- url: string;
644
- headers?: Record<string, string> | undefined;
645
- };
646
- }, {
647
- parameters: {
648
- type: "object";
649
- properties: Record<string, {
650
- type: string;
651
- description?: string | undefined;
652
- enum?: string[] | undefined;
653
- items?: any;
654
- properties?: Record<string, any> | undefined;
655
- required?: string[] | undefined;
656
- }>;
657
- required?: string[] | undefined;
658
- };
659
- server: {
660
- url: string;
661
- headers?: Record<string, string> | undefined;
662
- };
663
- }>>;
219
+ url: z.ZodPipe<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodString>;
220
+ headers: z.ZodOptional<z.ZodPipe<z.ZodType<Record<string, string>, unknown, z.core.$ZodTypeInternals<Record<string, string>, unknown>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
221
+ }, z.core.$strip>;
222
+ }, z.core.$strip>>;
664
223
  apiRequest: z.ZodOptional<z.ZodObject<{
665
- url: z.ZodString;
666
- method: z.ZodDefault<z.ZodEnum<["GET", "POST"]>>;
667
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
668
- body: z.ZodOptional<z.ZodObject<{
669
- type: z.ZodLiteral<"object">;
670
- properties: z.ZodRecord<z.ZodString, z.ZodObject<{
671
- type: z.ZodString;
672
- description: z.ZodOptional<z.ZodString>;
673
- enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
674
- items: z.ZodOptional<z.ZodAny>;
675
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
676
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
677
- }, "strip", z.ZodTypeAny, {
678
- type: string;
679
- description?: string | undefined;
680
- enum?: string[] | undefined;
681
- items?: any;
682
- properties?: Record<string, any> | undefined;
683
- required?: string[] | undefined;
684
- }, {
685
- type: string;
686
- description?: string | undefined;
687
- enum?: string[] | undefined;
688
- items?: any;
689
- properties?: Record<string, any> | undefined;
690
- required?: string[] | undefined;
691
- }>>;
692
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
693
- }, "strip", z.ZodTypeAny, {
694
- type: "object";
695
- properties: Record<string, {
696
- type: string;
697
- description?: string | undefined;
698
- enum?: string[] | undefined;
699
- items?: any;
700
- properties?: Record<string, any> | undefined;
701
- required?: string[] | undefined;
702
- }>;
703
- required?: string[] | undefined;
704
- }, {
705
- type: "object";
706
- properties: Record<string, {
707
- type: string;
708
- description?: string | undefined;
709
- enum?: string[] | undefined;
710
- items?: any;
711
- properties?: Record<string, any> | undefined;
712
- required?: string[] | undefined;
713
- }>;
714
- required?: string[] | undefined;
715
- }>>;
224
+ url: z.ZodPipe<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodString>;
225
+ method: z.ZodDefault<z.ZodType<"GET" | "POST" | "PUT" | "PATCH" | "DELETE", unknown, z.core.$ZodTypeInternals<"GET" | "POST" | "PUT" | "PATCH" | "DELETE", unknown>>>;
226
+ headers: z.ZodOptional<z.ZodPipe<z.ZodType<Record<string, string>, unknown, z.core.$ZodTypeInternals<Record<string, string>, unknown>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
227
+ body: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
716
228
  backoffPlan: z.ZodOptional<z.ZodObject<{
717
- type: z.ZodDefault<z.ZodEnum<["fixed", "exponential"]>>;
718
- maxRetries: z.ZodDefault<z.ZodNumber>;
719
- baseDelaySeconds: z.ZodDefault<z.ZodNumber>;
720
- }, "strip", z.ZodTypeAny, {
721
- type: "fixed" | "exponential";
722
- maxRetries: number;
723
- baseDelaySeconds: number;
724
- }, {
725
- type?: "fixed" | "exponential" | undefined;
726
- maxRetries?: number | undefined;
727
- baseDelaySeconds?: number | undefined;
728
- }>>;
729
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
730
- }, "strip", z.ZodTypeAny, {
731
- url: string;
732
- method: "GET" | "POST";
733
- timeoutSeconds: number;
734
- headers?: Record<string, string> | undefined;
735
- body?: {
736
- type: "object";
737
- properties: Record<string, {
738
- type: string;
739
- description?: string | undefined;
740
- enum?: string[] | undefined;
741
- items?: any;
742
- properties?: Record<string, any> | undefined;
743
- required?: string[] | undefined;
744
- }>;
745
- required?: string[] | undefined;
746
- } | undefined;
747
- backoffPlan?: {
748
- type: "fixed" | "exponential";
749
- maxRetries: number;
750
- baseDelaySeconds: number;
751
- } | undefined;
752
- }, {
753
- url: string;
754
- headers?: Record<string, string> | undefined;
755
- method?: "GET" | "POST" | undefined;
756
- body?: {
757
- type: "object";
758
- properties: Record<string, {
759
- type: string;
760
- description?: string | undefined;
761
- enum?: string[] | undefined;
762
- items?: any;
763
- properties?: Record<string, any> | undefined;
764
- required?: string[] | undefined;
765
- }>;
766
- required?: string[] | undefined;
767
- } | undefined;
768
- backoffPlan?: {
769
- type?: "fixed" | "exponential" | undefined;
770
- maxRetries?: number | undefined;
771
- baseDelaySeconds?: number | undefined;
772
- } | undefined;
773
- timeoutSeconds?: number | undefined;
774
- }>>;
775
- } & {
776
- type: z.ZodEnum<["sms", "transferCall", "function", "apiRequest"]>;
777
- }, "strip", z.ZodTypeAny, {
778
- type: "function" | "sms" | "transferCall" | "apiRequest";
779
- function?: {
780
- parameters: {
781
- type: "object";
782
- properties: Record<string, {
783
- type: string;
784
- description?: string | undefined;
785
- enum?: string[] | undefined;
786
- items?: any;
787
- properties?: Record<string, any> | undefined;
788
- required?: string[] | undefined;
789
- }>;
790
- required?: string[] | undefined;
791
- };
792
- server: {
793
- url: string;
794
- headers?: Record<string, string> | undefined;
795
- };
796
- } | undefined;
797
- name?: string | undefined;
798
- sms?: {
799
- metadata: {
800
- from: string;
801
- };
802
- } | undefined;
803
- description?: string | undefined;
804
- transferCall?: {
805
- destinations: {
806
- number: string;
807
- type: "number";
808
- extension?: string | undefined;
809
- callerId?: string | undefined;
810
- description?: string | undefined;
811
- }[];
812
- } | undefined;
813
- apiRequest?: {
814
- url: string;
815
- method: "GET" | "POST";
816
- timeoutSeconds: number;
817
- headers?: Record<string, string> | undefined;
818
- body?: {
819
- type: "object";
820
- properties: Record<string, {
821
- type: string;
822
- description?: string | undefined;
823
- enum?: string[] | undefined;
824
- items?: any;
825
- properties?: Record<string, any> | undefined;
826
- required?: string[] | undefined;
827
- }>;
828
- required?: string[] | undefined;
829
- } | undefined;
830
- backoffPlan?: {
831
- type: "fixed" | "exponential";
832
- maxRetries: number;
833
- baseDelaySeconds: number;
834
- } | undefined;
835
- } | undefined;
836
- }, {
837
- type: "function" | "sms" | "transferCall" | "apiRequest";
838
- function?: {
839
- parameters: {
840
- type: "object";
841
- properties: Record<string, {
842
- type: string;
843
- description?: string | undefined;
844
- enum?: string[] | undefined;
845
- items?: any;
846
- properties?: Record<string, any> | undefined;
847
- required?: string[] | undefined;
848
- }>;
849
- required?: string[] | undefined;
850
- };
851
- server: {
852
- url: string;
853
- headers?: Record<string, string> | undefined;
854
- };
855
- } | undefined;
856
- name?: string | undefined;
857
- sms?: {
858
- metadata: {
859
- from: string;
860
- };
861
- } | undefined;
862
- description?: string | undefined;
863
- transferCall?: {
864
- destinations: {
865
- number: string;
866
- type: "number";
867
- extension?: string | undefined;
868
- callerId?: string | undefined;
869
- description?: string | undefined;
870
- }[];
871
- } | undefined;
872
- apiRequest?: {
873
- url: string;
874
- headers?: Record<string, string> | undefined;
875
- method?: "GET" | "POST" | undefined;
876
- body?: {
877
- type: "object";
878
- properties: Record<string, {
879
- type: string;
880
- description?: string | undefined;
881
- enum?: string[] | undefined;
882
- items?: any;
883
- properties?: Record<string, any> | undefined;
884
- required?: string[] | undefined;
885
- }>;
886
- required?: string[] | undefined;
887
- } | undefined;
888
- backoffPlan?: {
889
- type?: "fixed" | "exponential" | undefined;
890
- maxRetries?: number | undefined;
891
- baseDelaySeconds?: number | undefined;
892
- } | undefined;
893
- timeoutSeconds?: number | undefined;
894
- } | undefined;
895
- }>;
229
+ type: z.ZodDefault<z.ZodType<"fixed" | "exponential", unknown, z.core.$ZodTypeInternals<"fixed" | "exponential", unknown>>>;
230
+ maxRetries: z.ZodDefault<z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
231
+ baseDelaySeconds: z.ZodDefault<z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
232
+ }, z.core.$strip>>;
233
+ timeoutSeconds: z.ZodDefault<z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
234
+ }, z.core.$strip>>;
235
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
236
+ type: z.ZodType<"function" | "sms" | "transferCall" | "apiRequest", unknown, z.core.$ZodTypeInternals<"function" | "sms" | "transferCall" | "apiRequest", unknown>>;
237
+ }, z.core.$strip>;
896
238
  export declare const UpdateToolInputSchema: z.ZodObject<{
897
- name: z.ZodOptional<z.ZodString>;
898
- description: z.ZodOptional<z.ZodString>;
239
+ name: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
240
+ description: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
899
241
  sms: z.ZodOptional<z.ZodObject<{
900
242
  metadata: z.ZodObject<{
901
243
  from: z.ZodString;
902
- }, "strip", z.ZodTypeAny, {
903
- from: string;
904
- }, {
905
- from: string;
906
- }>;
907
- }, "strip", z.ZodTypeAny, {
908
- metadata: {
909
- from: string;
910
- };
911
- }, {
912
- metadata: {
913
- from: string;
914
- };
915
- }>>;
244
+ }, z.core.$strip>;
245
+ }, z.core.$strip>>;
916
246
  transferCall: z.ZodOptional<z.ZodObject<{
917
- destinations: z.ZodArray<z.ZodObject<{
918
- type: z.ZodLiteral<"number">;
919
- number: z.ZodString;
920
- extension: z.ZodOptional<z.ZodString>;
921
- callerId: z.ZodOptional<z.ZodString>;
922
- description: z.ZodOptional<z.ZodString>;
923
- }, "strip", z.ZodTypeAny, {
924
- number: string;
247
+ destinations: z.ZodArray<z.ZodType<{
925
248
  type: "number";
926
- extension?: string | undefined;
927
- callerId?: string | undefined;
928
- description?: string | undefined;
929
- }, {
930
249
  number: string;
250
+ extension?: string;
251
+ callerId?: string;
252
+ description?: string;
253
+ }, unknown, z.core.$ZodTypeInternals<{
931
254
  type: "number";
932
- extension?: string | undefined;
933
- callerId?: string | undefined;
934
- description?: string | undefined;
935
- }>, "many">;
936
- }, "strip", z.ZodTypeAny, {
937
- destinations: {
938
255
  number: string;
939
- type: "number";
940
- extension?: string | undefined;
941
- callerId?: string | undefined;
942
- description?: string | undefined;
943
- }[];
944
- }, {
945
- destinations: {
946
- number: string;
947
- type: "number";
948
- extension?: string | undefined;
949
- callerId?: string | undefined;
950
- description?: string | undefined;
951
- }[];
952
- }>>;
256
+ extension?: string;
257
+ callerId?: string;
258
+ description?: string;
259
+ }, unknown>>>;
260
+ }, z.core.$strip>>;
953
261
  function: z.ZodOptional<z.ZodObject<{
954
- parameters: z.ZodObject<{
955
- type: z.ZodLiteral<"object">;
956
- properties: z.ZodRecord<z.ZodString, z.ZodObject<{
957
- type: z.ZodString;
958
- description: z.ZodOptional<z.ZodString>;
959
- enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
960
- items: z.ZodOptional<z.ZodAny>;
961
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
962
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
963
- }, "strip", z.ZodTypeAny, {
964
- type: string;
965
- description?: string | undefined;
966
- enum?: string[] | undefined;
967
- items?: any;
968
- properties?: Record<string, any> | undefined;
969
- required?: string[] | undefined;
970
- }, {
971
- type: string;
972
- description?: string | undefined;
973
- enum?: string[] | undefined;
974
- items?: any;
975
- properties?: Record<string, any> | undefined;
976
- required?: string[] | undefined;
977
- }>>;
978
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
979
- }, "strip", z.ZodTypeAny, {
980
- type: "object";
981
- properties: Record<string, {
982
- type: string;
983
- description?: string | undefined;
984
- enum?: string[] | undefined;
985
- items?: any;
986
- properties?: Record<string, any> | undefined;
987
- required?: string[] | undefined;
988
- }>;
989
- required?: string[] | undefined;
990
- }, {
991
- type: "object";
992
- properties: Record<string, {
993
- type: string;
994
- description?: string | undefined;
995
- enum?: string[] | undefined;
996
- items?: any;
997
- properties?: Record<string, any> | undefined;
998
- required?: string[] | undefined;
999
- }>;
1000
- required?: string[] | undefined;
1001
- }>;
262
+ parameters: z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>;
1002
263
  server: z.ZodObject<{
1003
- url: z.ZodString;
1004
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1005
- }, "strip", z.ZodTypeAny, {
1006
- url: string;
1007
- headers?: Record<string, string> | undefined;
1008
- }, {
1009
- url: string;
1010
- headers?: Record<string, string> | undefined;
1011
- }>;
1012
- }, "strip", z.ZodTypeAny, {
1013
- parameters: {
1014
- type: "object";
1015
- properties: Record<string, {
1016
- type: string;
1017
- description?: string | undefined;
1018
- enum?: string[] | undefined;
1019
- items?: any;
1020
- properties?: Record<string, any> | undefined;
1021
- required?: string[] | undefined;
1022
- }>;
1023
- required?: string[] | undefined;
1024
- };
1025
- server: {
1026
- url: string;
1027
- headers?: Record<string, string> | undefined;
1028
- };
1029
- }, {
1030
- parameters: {
1031
- type: "object";
1032
- properties: Record<string, {
1033
- type: string;
1034
- description?: string | undefined;
1035
- enum?: string[] | undefined;
1036
- items?: any;
1037
- properties?: Record<string, any> | undefined;
1038
- required?: string[] | undefined;
1039
- }>;
1040
- required?: string[] | undefined;
1041
- };
1042
- server: {
1043
- url: string;
1044
- headers?: Record<string, string> | undefined;
1045
- };
1046
- }>>;
264
+ url: z.ZodPipe<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodString>;
265
+ headers: z.ZodOptional<z.ZodPipe<z.ZodType<Record<string, string>, unknown, z.core.$ZodTypeInternals<Record<string, string>, unknown>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
266
+ }, z.core.$strip>;
267
+ }, z.core.$strip>>;
1047
268
  apiRequest: z.ZodOptional<z.ZodObject<{
1048
- url: z.ZodString;
1049
- method: z.ZodDefault<z.ZodEnum<["GET", "POST"]>>;
1050
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1051
- body: z.ZodOptional<z.ZodObject<{
1052
- type: z.ZodLiteral<"object">;
1053
- properties: z.ZodRecord<z.ZodString, z.ZodObject<{
1054
- type: z.ZodString;
1055
- description: z.ZodOptional<z.ZodString>;
1056
- enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1057
- items: z.ZodOptional<z.ZodAny>;
1058
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1059
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1060
- }, "strip", z.ZodTypeAny, {
1061
- type: string;
1062
- description?: string | undefined;
1063
- enum?: string[] | undefined;
1064
- items?: any;
1065
- properties?: Record<string, any> | undefined;
1066
- required?: string[] | undefined;
1067
- }, {
1068
- type: string;
1069
- description?: string | undefined;
1070
- enum?: string[] | undefined;
1071
- items?: any;
1072
- properties?: Record<string, any> | undefined;
1073
- required?: string[] | undefined;
1074
- }>>;
1075
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1076
- }, "strip", z.ZodTypeAny, {
1077
- type: "object";
1078
- properties: Record<string, {
1079
- type: string;
1080
- description?: string | undefined;
1081
- enum?: string[] | undefined;
1082
- items?: any;
1083
- properties?: Record<string, any> | undefined;
1084
- required?: string[] | undefined;
1085
- }>;
1086
- required?: string[] | undefined;
1087
- }, {
1088
- type: "object";
1089
- properties: Record<string, {
1090
- type: string;
1091
- description?: string | undefined;
1092
- enum?: string[] | undefined;
1093
- items?: any;
1094
- properties?: Record<string, any> | undefined;
1095
- required?: string[] | undefined;
1096
- }>;
1097
- required?: string[] | undefined;
1098
- }>>;
269
+ url: z.ZodPipe<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodString>;
270
+ method: z.ZodDefault<z.ZodType<"GET" | "POST" | "PUT" | "PATCH" | "DELETE", unknown, z.core.$ZodTypeInternals<"GET" | "POST" | "PUT" | "PATCH" | "DELETE", unknown>>>;
271
+ headers: z.ZodOptional<z.ZodPipe<z.ZodType<Record<string, string>, unknown, z.core.$ZodTypeInternals<Record<string, string>, unknown>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
272
+ body: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
1099
273
  backoffPlan: z.ZodOptional<z.ZodObject<{
1100
- type: z.ZodDefault<z.ZodEnum<["fixed", "exponential"]>>;
1101
- maxRetries: z.ZodDefault<z.ZodNumber>;
1102
- baseDelaySeconds: z.ZodDefault<z.ZodNumber>;
1103
- }, "strip", z.ZodTypeAny, {
1104
- type: "fixed" | "exponential";
1105
- maxRetries: number;
1106
- baseDelaySeconds: number;
1107
- }, {
1108
- type?: "fixed" | "exponential" | undefined;
1109
- maxRetries?: number | undefined;
1110
- baseDelaySeconds?: number | undefined;
1111
- }>>;
1112
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1113
- }, "strip", z.ZodTypeAny, {
1114
- url: string;
1115
- method: "GET" | "POST";
1116
- timeoutSeconds: number;
1117
- headers?: Record<string, string> | undefined;
1118
- body?: {
1119
- type: "object";
1120
- properties: Record<string, {
1121
- type: string;
1122
- description?: string | undefined;
1123
- enum?: string[] | undefined;
1124
- items?: any;
1125
- properties?: Record<string, any> | undefined;
1126
- required?: string[] | undefined;
1127
- }>;
1128
- required?: string[] | undefined;
1129
- } | undefined;
1130
- backoffPlan?: {
1131
- type: "fixed" | "exponential";
1132
- maxRetries: number;
1133
- baseDelaySeconds: number;
1134
- } | undefined;
1135
- }, {
1136
- url: string;
1137
- headers?: Record<string, string> | undefined;
1138
- method?: "GET" | "POST" | undefined;
1139
- body?: {
1140
- type: "object";
1141
- properties: Record<string, {
1142
- type: string;
1143
- description?: string | undefined;
1144
- enum?: string[] | undefined;
1145
- items?: any;
1146
- properties?: Record<string, any> | undefined;
1147
- required?: string[] | undefined;
1148
- }>;
1149
- required?: string[] | undefined;
1150
- } | undefined;
1151
- backoffPlan?: {
1152
- type?: "fixed" | "exponential" | undefined;
1153
- maxRetries?: number | undefined;
1154
- baseDelaySeconds?: number | undefined;
1155
- } | undefined;
1156
- timeoutSeconds?: number | undefined;
1157
- }>>;
1158
- } & {
1159
- toolId: z.ZodString;
1160
- }, "strip", z.ZodTypeAny, {
1161
- toolId: string;
1162
- function?: {
1163
- parameters: {
1164
- type: "object";
1165
- properties: Record<string, {
1166
- type: string;
1167
- description?: string | undefined;
1168
- enum?: string[] | undefined;
1169
- items?: any;
1170
- properties?: Record<string, any> | undefined;
1171
- required?: string[] | undefined;
1172
- }>;
1173
- required?: string[] | undefined;
1174
- };
1175
- server: {
1176
- url: string;
1177
- headers?: Record<string, string> | undefined;
1178
- };
1179
- } | undefined;
1180
- name?: string | undefined;
1181
- sms?: {
1182
- metadata: {
1183
- from: string;
1184
- };
1185
- } | undefined;
1186
- description?: string | undefined;
1187
- transferCall?: {
1188
- destinations: {
1189
- number: string;
1190
- type: "number";
1191
- extension?: string | undefined;
1192
- callerId?: string | undefined;
1193
- description?: string | undefined;
1194
- }[];
1195
- } | undefined;
1196
- apiRequest?: {
1197
- url: string;
1198
- method: "GET" | "POST";
1199
- timeoutSeconds: number;
1200
- headers?: Record<string, string> | undefined;
1201
- body?: {
1202
- type: "object";
1203
- properties: Record<string, {
1204
- type: string;
1205
- description?: string | undefined;
1206
- enum?: string[] | undefined;
1207
- items?: any;
1208
- properties?: Record<string, any> | undefined;
1209
- required?: string[] | undefined;
1210
- }>;
1211
- required?: string[] | undefined;
1212
- } | undefined;
1213
- backoffPlan?: {
1214
- type: "fixed" | "exponential";
1215
- maxRetries: number;
1216
- baseDelaySeconds: number;
1217
- } | undefined;
1218
- } | undefined;
1219
- }, {
1220
- toolId: string;
1221
- function?: {
1222
- parameters: {
1223
- type: "object";
1224
- properties: Record<string, {
1225
- type: string;
1226
- description?: string | undefined;
1227
- enum?: string[] | undefined;
1228
- items?: any;
1229
- properties?: Record<string, any> | undefined;
1230
- required?: string[] | undefined;
1231
- }>;
1232
- required?: string[] | undefined;
1233
- };
1234
- server: {
1235
- url: string;
1236
- headers?: Record<string, string> | undefined;
1237
- };
1238
- } | undefined;
1239
- name?: string | undefined;
1240
- sms?: {
1241
- metadata: {
1242
- from: string;
1243
- };
1244
- } | undefined;
1245
- description?: string | undefined;
1246
- transferCall?: {
1247
- destinations: {
1248
- number: string;
1249
- type: "number";
1250
- extension?: string | undefined;
1251
- callerId?: string | undefined;
1252
- description?: string | undefined;
1253
- }[];
1254
- } | undefined;
1255
- apiRequest?: {
1256
- url: string;
1257
- headers?: Record<string, string> | undefined;
1258
- method?: "GET" | "POST" | undefined;
1259
- body?: {
1260
- type: "object";
1261
- properties: Record<string, {
1262
- type: string;
1263
- description?: string | undefined;
1264
- enum?: string[] | undefined;
1265
- items?: any;
1266
- properties?: Record<string, any> | undefined;
1267
- required?: string[] | undefined;
1268
- }>;
1269
- required?: string[] | undefined;
1270
- } | undefined;
1271
- backoffPlan?: {
1272
- type?: "fixed" | "exponential" | undefined;
1273
- maxRetries?: number | undefined;
1274
- baseDelaySeconds?: number | undefined;
1275
- } | undefined;
1276
- timeoutSeconds?: number | undefined;
1277
- } | undefined;
1278
- }>;
274
+ type: z.ZodDefault<z.ZodType<"fixed" | "exponential", unknown, z.core.$ZodTypeInternals<"fixed" | "exponential", unknown>>>;
275
+ maxRetries: z.ZodDefault<z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
276
+ baseDelaySeconds: z.ZodDefault<z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
277
+ }, z.core.$strip>>;
278
+ timeoutSeconds: z.ZodDefault<z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
279
+ }, z.core.$strip>>;
280
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
281
+ toolId: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
282
+ }, z.core.$strip>;
1279
283
  export declare const ToolOutputSchema: z.ZodObject<{
1280
284
  id: z.ZodString;
1281
285
  createdAt: z.ZodString;
1282
286
  updatedAt: z.ZodString;
1283
- } & {
1284
287
  type: z.ZodString;
1285
288
  name: z.ZodString;
1286
289
  description: z.ZodString;
1287
290
  parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
1288
291
  server: z.ZodObject<{
1289
- url: z.ZodString;
1290
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1291
- }, "strip", z.ZodTypeAny, {
1292
- url: string;
1293
- headers?: Record<string, string> | undefined;
1294
- }, {
1295
- url: string;
1296
- headers?: Record<string, string> | undefined;
1297
- }>;
1298
- }, "strip", z.ZodTypeAny, {
1299
- type: string;
1300
- id: string;
1301
- createdAt: string;
1302
- updatedAt: string;
1303
- name: string;
1304
- description: string;
1305
- parameters: Record<string, any>;
1306
- server: {
1307
- url: string;
1308
- headers?: Record<string, string> | undefined;
1309
- };
1310
- }, {
1311
- type: string;
1312
- id: string;
1313
- createdAt: string;
1314
- updatedAt: string;
1315
- name: string;
1316
- description: string;
1317
- parameters: Record<string, any>;
1318
- server: {
1319
- url: string;
1320
- headers?: Record<string, string> | undefined;
1321
- };
1322
- }>;
1323
- export {};
292
+ url: z.ZodPipe<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodString>;
293
+ headers: z.ZodOptional<z.ZodPipe<z.ZodType<Record<string, string>, unknown, z.core.$ZodTypeInternals<Record<string, string>, unknown>>, z.ZodRecord<z.ZodString, z.ZodString>>>;
294
+ }, z.core.$strip>;
295
+ }, z.core.$strip>;
296
+ export declare const GetApiSchemaInputSchema: z.ZodObject<{
297
+ name: z.ZodOptional<z.ZodString>;
298
+ search: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strip>;
300
+ export * from './simulation.js';
1324
301
  //# sourceMappingURL=index.d.ts.map