@avallon-labs/mcp 9.0.0 → 10.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.
|
@@ -5,7 +5,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
5
5
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
6
|
|
|
7
7
|
// src/generated/http-client.ts
|
|
8
|
-
var
|
|
8
|
+
var getListVoiceAgentsUrl = (params) => {
|
|
9
9
|
const normalizedParams = new URLSearchParams();
|
|
10
10
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
11
11
|
if (value !== void 0) {
|
|
@@ -19,10 +19,10 @@ var getListAgentsUrl = (params) => {
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const stringifiedParams = normalizedParams.toString();
|
|
22
|
-
return stringifiedParams.length > 0 ? `/v1/agents?${stringifiedParams}` : `/v1/agents`;
|
|
22
|
+
return stringifiedParams.length > 0 ? `/v1/voice-agents?${stringifiedParams}` : `/v1/voice-agents`;
|
|
23
23
|
};
|
|
24
|
-
var
|
|
25
|
-
const res = await fetch(
|
|
24
|
+
var listVoiceAgents = async (params, options) => {
|
|
25
|
+
const res = await fetch(getListVoiceAgentsUrl(params), {
|
|
26
26
|
...options,
|
|
27
27
|
method: "GET"
|
|
28
28
|
});
|
|
@@ -34,15 +34,15 @@ var listAgents = async (params, options) => {
|
|
|
34
34
|
headers: res.headers
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
var
|
|
38
|
-
return `/v1/agents`;
|
|
37
|
+
var getCreateVoiceAgentUrl = () => {
|
|
38
|
+
return `/v1/voice-agents`;
|
|
39
39
|
};
|
|
40
|
-
var
|
|
41
|
-
const res = await fetch(
|
|
40
|
+
var createVoiceAgent = async (createVoiceAgentBody, options) => {
|
|
41
|
+
const res = await fetch(getCreateVoiceAgentUrl(), {
|
|
42
42
|
...options,
|
|
43
43
|
method: "POST",
|
|
44
44
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
45
|
-
body: JSON.stringify(
|
|
45
|
+
body: JSON.stringify(createVoiceAgentBody)
|
|
46
46
|
});
|
|
47
47
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
48
48
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -52,27 +52,31 @@ var createAgent = async (createAgentBody, options) => {
|
|
|
52
52
|
headers: res.headers
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
var
|
|
56
|
-
return `/v1/agents/${
|
|
55
|
+
var getGetVoiceAgentUrl = (voiceAgentId) => {
|
|
56
|
+
return `/v1/voice-agents/${voiceAgentId}`;
|
|
57
57
|
};
|
|
58
|
-
var
|
|
59
|
-
const res = await fetch(
|
|
58
|
+
var getVoiceAgent = async (voiceAgentId, options) => {
|
|
59
|
+
const res = await fetch(getGetVoiceAgentUrl(voiceAgentId), {
|
|
60
60
|
...options,
|
|
61
61
|
method: "GET"
|
|
62
62
|
});
|
|
63
63
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
64
64
|
const data = body ? JSON.parse(body) : {};
|
|
65
|
-
return {
|
|
65
|
+
return {
|
|
66
|
+
data,
|
|
67
|
+
status: res.status,
|
|
68
|
+
headers: res.headers
|
|
69
|
+
};
|
|
66
70
|
};
|
|
67
|
-
var
|
|
68
|
-
return `/v1/agents/${
|
|
71
|
+
var getAddToolsToVoiceAgentUrl = (voiceAgentId) => {
|
|
72
|
+
return `/v1/voice-agents/${voiceAgentId}/tools`;
|
|
69
73
|
};
|
|
70
|
-
var
|
|
71
|
-
const res = await fetch(
|
|
74
|
+
var addToolsToVoiceAgent = async (voiceAgentId, addToolsToVoiceAgentBody, options) => {
|
|
75
|
+
const res = await fetch(getAddToolsToVoiceAgentUrl(voiceAgentId), {
|
|
72
76
|
...options,
|
|
73
77
|
method: "POST",
|
|
74
78
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
75
|
-
body: JSON.stringify(
|
|
79
|
+
body: JSON.stringify(addToolsToVoiceAgentBody)
|
|
76
80
|
});
|
|
77
81
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
78
82
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -82,15 +86,15 @@ var addToolsToAgent = async (id, addToolsToAgentBody, options) => {
|
|
|
82
86
|
headers: res.headers
|
|
83
87
|
};
|
|
84
88
|
};
|
|
85
|
-
var
|
|
86
|
-
return `/v1/agents/${
|
|
89
|
+
var getDeleteToolsFromVoiceAgentUrl = (voiceAgentId) => {
|
|
90
|
+
return `/v1/voice-agents/${voiceAgentId}/tools`;
|
|
87
91
|
};
|
|
88
|
-
var
|
|
89
|
-
const res = await fetch(
|
|
92
|
+
var deleteToolsFromVoiceAgent = async (voiceAgentId, deleteToolsFromVoiceAgentBody, options) => {
|
|
93
|
+
const res = await fetch(getDeleteToolsFromVoiceAgentUrl(voiceAgentId), {
|
|
90
94
|
...options,
|
|
91
95
|
method: "DELETE",
|
|
92
96
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
93
|
-
body: JSON.stringify(
|
|
97
|
+
body: JSON.stringify(deleteToolsFromVoiceAgentBody)
|
|
94
98
|
});
|
|
95
99
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
96
100
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -100,11 +104,11 @@ var deleteToolsFromAgent = async (id, deleteToolsFromAgentBody, options) => {
|
|
|
100
104
|
headers: res.headers
|
|
101
105
|
};
|
|
102
106
|
};
|
|
103
|
-
var
|
|
104
|
-
return `/v1/agents/${
|
|
107
|
+
var getGetVoiceAgentPromptUrl = (voiceAgentId) => {
|
|
108
|
+
return `/v1/voice-agents/${voiceAgentId}/prompt`;
|
|
105
109
|
};
|
|
106
|
-
var
|
|
107
|
-
const res = await fetch(
|
|
110
|
+
var getVoiceAgentPrompt = async (voiceAgentId, options) => {
|
|
111
|
+
const res = await fetch(getGetVoiceAgentPromptUrl(voiceAgentId), {
|
|
108
112
|
...options,
|
|
109
113
|
method: "GET"
|
|
110
114
|
});
|
|
@@ -116,15 +120,15 @@ var getAgentPrompt = async (id, options) => {
|
|
|
116
120
|
headers: res.headers
|
|
117
121
|
};
|
|
118
122
|
};
|
|
119
|
-
var
|
|
120
|
-
return `/v1/agents/${
|
|
123
|
+
var getUpdateVoiceAgentModelsUrl = (voiceAgentId) => {
|
|
124
|
+
return `/v1/voice-agents/${voiceAgentId}/models`;
|
|
121
125
|
};
|
|
122
|
-
var
|
|
123
|
-
const res = await fetch(
|
|
126
|
+
var updateVoiceAgentModels = async (voiceAgentId, updateVoiceAgentModelsBody, options) => {
|
|
127
|
+
const res = await fetch(getUpdateVoiceAgentModelsUrl(voiceAgentId), {
|
|
124
128
|
...options,
|
|
125
129
|
method: "PATCH",
|
|
126
130
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
127
|
-
body: JSON.stringify(
|
|
131
|
+
body: JSON.stringify(updateVoiceAgentModelsBody)
|
|
128
132
|
});
|
|
129
133
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
130
134
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -134,11 +138,11 @@ var updateAgentModels = async (id, updateAgentModelsBody, options) => {
|
|
|
134
138
|
headers: res.headers
|
|
135
139
|
};
|
|
136
140
|
};
|
|
137
|
-
var getUpdateCallControlsUrl = (
|
|
138
|
-
return `/v1/agents/${
|
|
141
|
+
var getUpdateCallControlsUrl = (voiceAgentId) => {
|
|
142
|
+
return `/v1/voice-agents/${voiceAgentId}/call-controls`;
|
|
139
143
|
};
|
|
140
|
-
var updateCallControls = async (
|
|
141
|
-
const res = await fetch(getUpdateCallControlsUrl(
|
|
144
|
+
var updateCallControls = async (voiceAgentId, updateCallControlsBody, options) => {
|
|
145
|
+
const res = await fetch(getUpdateCallControlsUrl(voiceAgentId), {
|
|
142
146
|
...options,
|
|
143
147
|
method: "PUT",
|
|
144
148
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
@@ -152,11 +156,11 @@ var updateCallControls = async (id, updateCallControlsBody, options) => {
|
|
|
152
156
|
headers: res.headers
|
|
153
157
|
};
|
|
154
158
|
};
|
|
155
|
-
var getScheduleJobUrl = (
|
|
156
|
-
return `/v1/agents/${
|
|
159
|
+
var getScheduleJobUrl = (voiceAgentId) => {
|
|
160
|
+
return `/v1/voice-agents/${voiceAgentId}/jobs`;
|
|
157
161
|
};
|
|
158
|
-
var scheduleJob = async (
|
|
159
|
-
const res = await fetch(getScheduleJobUrl(
|
|
162
|
+
var scheduleJob = async (voiceAgentId, scheduleJobBody, options) => {
|
|
163
|
+
const res = await fetch(getScheduleJobUrl(voiceAgentId), {
|
|
160
164
|
...options,
|
|
161
165
|
method: "POST",
|
|
162
166
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
@@ -184,7 +188,7 @@ var getListJobsUrl = (params) => {
|
|
|
184
188
|
}
|
|
185
189
|
});
|
|
186
190
|
const stringifiedParams = normalizedParams.toString();
|
|
187
|
-
return stringifiedParams.length > 0 ? `/v1/agents/jobs?${stringifiedParams}` : `/v1/agents/jobs`;
|
|
191
|
+
return stringifiedParams.length > 0 ? `/v1/voice-agents/jobs?${stringifiedParams}` : `/v1/voice-agents/jobs`;
|
|
188
192
|
};
|
|
189
193
|
var listJobs = async (params, options) => {
|
|
190
194
|
const res = await fetch(getListJobsUrl(params), {
|
|
@@ -195,11 +199,11 @@ var listJobs = async (params, options) => {
|
|
|
195
199
|
const data = body ? JSON.parse(body) : {};
|
|
196
200
|
return { data, status: res.status, headers: res.headers };
|
|
197
201
|
};
|
|
198
|
-
var getCancelJobUrl = (
|
|
199
|
-
return `/v1/agents/jobs/${
|
|
202
|
+
var getCancelJobUrl = (jobId) => {
|
|
203
|
+
return `/v1/voice-agents/jobs/${jobId}/cancel`;
|
|
200
204
|
};
|
|
201
|
-
var cancelJob = async (
|
|
202
|
-
const res = await fetch(getCancelJobUrl(
|
|
205
|
+
var cancelJob = async (jobId, options) => {
|
|
206
|
+
const res = await fetch(getCancelJobUrl(jobId), {
|
|
203
207
|
...options,
|
|
204
208
|
method: "POST"
|
|
205
209
|
});
|
|
@@ -718,7 +722,7 @@ var getClaimDetail = async (id, options) => {
|
|
|
718
722
|
headers: res.headers
|
|
719
723
|
};
|
|
720
724
|
};
|
|
721
|
-
var
|
|
725
|
+
var getCheckInboxAvailabilityUrl = (params) => {
|
|
722
726
|
const normalizedParams = new URLSearchParams();
|
|
723
727
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
724
728
|
if (value !== void 0) {
|
|
@@ -732,10 +736,10 @@ var getCheckEmailUsernameAvailabilityUrl = (params) => {
|
|
|
732
736
|
}
|
|
733
737
|
});
|
|
734
738
|
const stringifiedParams = normalizedParams.toString();
|
|
735
|
-
return stringifiedParams.length > 0 ? `/v1/
|
|
739
|
+
return stringifiedParams.length > 0 ? `/v1/inboxes/availability?${stringifiedParams}` : `/v1/inboxes/availability`;
|
|
736
740
|
};
|
|
737
|
-
var
|
|
738
|
-
const res = await fetch(
|
|
741
|
+
var checkInboxAvailability = async (params, options) => {
|
|
742
|
+
const res = await fetch(getCheckInboxAvailabilityUrl(params), {
|
|
739
743
|
...options,
|
|
740
744
|
method: "GET"
|
|
741
745
|
});
|
|
@@ -747,15 +751,15 @@ var checkEmailUsernameAvailability = async (params, options) => {
|
|
|
747
751
|
headers: res.headers
|
|
748
752
|
};
|
|
749
753
|
};
|
|
750
|
-
var
|
|
751
|
-
return `/v1/
|
|
754
|
+
var getCreateInboxUrl = () => {
|
|
755
|
+
return `/v1/inboxes`;
|
|
752
756
|
};
|
|
753
|
-
var
|
|
754
|
-
const res = await fetch(
|
|
757
|
+
var createInbox = async (createInboxBody, options) => {
|
|
758
|
+
const res = await fetch(getCreateInboxUrl(), {
|
|
755
759
|
...options,
|
|
756
760
|
method: "POST",
|
|
757
761
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
758
|
-
body: JSON.stringify(
|
|
762
|
+
body: JSON.stringify(createInboxBody)
|
|
759
763
|
});
|
|
760
764
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
761
765
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -765,7 +769,7 @@ var createEmailAgent = async (createEmailAgentBody, options) => {
|
|
|
765
769
|
headers: res.headers
|
|
766
770
|
};
|
|
767
771
|
};
|
|
768
|
-
var
|
|
772
|
+
var getListInboxesUrl = (params) => {
|
|
769
773
|
const normalizedParams = new URLSearchParams();
|
|
770
774
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
771
775
|
if (value !== void 0) {
|
|
@@ -779,10 +783,10 @@ var getListEmailAgentsUrl = (params) => {
|
|
|
779
783
|
}
|
|
780
784
|
});
|
|
781
785
|
const stringifiedParams = normalizedParams.toString();
|
|
782
|
-
return stringifiedParams.length > 0 ? `/v1/
|
|
786
|
+
return stringifiedParams.length > 0 ? `/v1/inboxes?${stringifiedParams}` : `/v1/inboxes`;
|
|
783
787
|
};
|
|
784
|
-
var
|
|
785
|
-
const res = await fetch(
|
|
788
|
+
var listInboxes = async (params, options) => {
|
|
789
|
+
const res = await fetch(getListInboxesUrl(params), {
|
|
786
790
|
...options,
|
|
787
791
|
method: "GET"
|
|
788
792
|
});
|
|
@@ -794,15 +798,15 @@ var listEmailAgents = async (params, options) => {
|
|
|
794
798
|
headers: res.headers
|
|
795
799
|
};
|
|
796
800
|
};
|
|
797
|
-
var
|
|
798
|
-
return `/v1/
|
|
801
|
+
var getUpdateInboxUrl = (inboxId) => {
|
|
802
|
+
return `/v1/inboxes/${inboxId}`;
|
|
799
803
|
};
|
|
800
|
-
var
|
|
801
|
-
const res = await fetch(
|
|
804
|
+
var updateInbox = async (inboxId, updateInboxBody, options) => {
|
|
805
|
+
const res = await fetch(getUpdateInboxUrl(inboxId), {
|
|
802
806
|
...options,
|
|
803
807
|
method: "PATCH",
|
|
804
808
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
805
|
-
body: JSON.stringify(
|
|
809
|
+
body: JSON.stringify(updateInboxBody)
|
|
806
810
|
});
|
|
807
811
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
808
812
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -1268,11 +1272,11 @@ var uploadFile = async (uploadFileBody, options) => {
|
|
|
1268
1272
|
headers: res.headers
|
|
1269
1273
|
};
|
|
1270
1274
|
};
|
|
1271
|
-
var getCreateAgentWebhookUrl = (
|
|
1272
|
-
return `/v1/agents/${
|
|
1275
|
+
var getCreateAgentWebhookUrl = (voiceAgentId) => {
|
|
1276
|
+
return `/v1/voice-agents/${voiceAgentId}/webhooks`;
|
|
1273
1277
|
};
|
|
1274
|
-
var createAgentWebhook = async (
|
|
1275
|
-
const res = await fetch(getCreateAgentWebhookUrl(
|
|
1278
|
+
var createAgentWebhook = async (voiceAgentId, createAgentWebhookBody, options) => {
|
|
1279
|
+
const res = await fetch(getCreateAgentWebhookUrl(voiceAgentId), {
|
|
1276
1280
|
...options,
|
|
1277
1281
|
method: "POST",
|
|
1278
1282
|
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
@@ -1286,11 +1290,11 @@ var createAgentWebhook = async (id, createAgentWebhookBody, options) => {
|
|
|
1286
1290
|
headers: res.headers
|
|
1287
1291
|
};
|
|
1288
1292
|
};
|
|
1289
|
-
var getListAgentWebhooksUrl = (
|
|
1290
|
-
return `/v1/agents/${
|
|
1293
|
+
var getListAgentWebhooksUrl = (voiceAgentId) => {
|
|
1294
|
+
return `/v1/voice-agents/${voiceAgentId}/webhooks`;
|
|
1291
1295
|
};
|
|
1292
|
-
var listAgentWebhooks = async (
|
|
1293
|
-
const res = await fetch(getListAgentWebhooksUrl(
|
|
1296
|
+
var listAgentWebhooks = async (voiceAgentId, options) => {
|
|
1297
|
+
const res = await fetch(getListAgentWebhooksUrl(voiceAgentId), {
|
|
1294
1298
|
...options,
|
|
1295
1299
|
method: "GET"
|
|
1296
1300
|
});
|
|
@@ -1320,22 +1324,6 @@ var createEmailAgentWebhook = async (id, createEmailAgentWebhookBody, options) =
|
|
|
1320
1324
|
headers: res.headers
|
|
1321
1325
|
};
|
|
1322
1326
|
};
|
|
1323
|
-
var getListEmailAgentWebhooksUrl = (id) => {
|
|
1324
|
-
return `/v1/email-agents/${id}/webhooks`;
|
|
1325
|
-
};
|
|
1326
|
-
var listEmailAgentWebhooks = async (id, options) => {
|
|
1327
|
-
const res = await fetch(getListEmailAgentWebhooksUrl(id), {
|
|
1328
|
-
...options,
|
|
1329
|
-
method: "GET"
|
|
1330
|
-
});
|
|
1331
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1332
|
-
const data = body ? JSON.parse(body) : {};
|
|
1333
|
-
return {
|
|
1334
|
-
data,
|
|
1335
|
-
status: res.status,
|
|
1336
|
-
headers: res.headers
|
|
1337
|
-
};
|
|
1338
|
-
};
|
|
1339
1327
|
var getCreateExtractorWebhookUrl = (id) => {
|
|
1340
1328
|
return `/v1/extractors/${id}/webhooks`;
|
|
1341
1329
|
};
|
|
@@ -1402,6 +1390,22 @@ var getWebhook = async (id, options) => {
|
|
|
1402
1390
|
headers: res.headers
|
|
1403
1391
|
};
|
|
1404
1392
|
};
|
|
1393
|
+
var getListInboxWebhooksUrl = (inboxId) => {
|
|
1394
|
+
return `/v1/inboxes/${inboxId}/webhooks`;
|
|
1395
|
+
};
|
|
1396
|
+
var listInboxWebhooks = async (inboxId, options) => {
|
|
1397
|
+
const res = await fetch(getListInboxWebhooksUrl(inboxId), {
|
|
1398
|
+
...options,
|
|
1399
|
+
method: "GET"
|
|
1400
|
+
});
|
|
1401
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1402
|
+
const data = body ? JSON.parse(body) : {};
|
|
1403
|
+
return {
|
|
1404
|
+
data,
|
|
1405
|
+
status: res.status,
|
|
1406
|
+
headers: res.headers
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1405
1409
|
var getListWebhookDeliveriesUrl = (id, params) => {
|
|
1406
1410
|
const normalizedParams = new URLSearchParams();
|
|
1407
1411
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1449,8 +1453,8 @@ var testWebhook = async (id, options) => {
|
|
|
1449
1453
|
};
|
|
1450
1454
|
|
|
1451
1455
|
// src/generated/handlers.ts
|
|
1452
|
-
var
|
|
1453
|
-
const res = await
|
|
1456
|
+
var listVoiceAgentsHandler = async (args) => {
|
|
1457
|
+
const res = await listVoiceAgents(args.queryParams);
|
|
1454
1458
|
return {
|
|
1455
1459
|
content: [
|
|
1456
1460
|
{
|
|
@@ -1460,8 +1464,8 @@ var listAgentsHandler = async (args) => {
|
|
|
1460
1464
|
]
|
|
1461
1465
|
};
|
|
1462
1466
|
};
|
|
1463
|
-
var
|
|
1464
|
-
const res = await
|
|
1467
|
+
var createVoiceAgentHandler = async (args) => {
|
|
1468
|
+
const res = await createVoiceAgent(args.bodyParams);
|
|
1465
1469
|
return {
|
|
1466
1470
|
content: [
|
|
1467
1471
|
{
|
|
@@ -1471,8 +1475,8 @@ var createAgentHandler = async (args) => {
|
|
|
1471
1475
|
]
|
|
1472
1476
|
};
|
|
1473
1477
|
};
|
|
1474
|
-
var
|
|
1475
|
-
const res = await
|
|
1478
|
+
var getVoiceAgentHandler = async (args) => {
|
|
1479
|
+
const res = await getVoiceAgent(args.pathParams.voiceAgentId);
|
|
1476
1480
|
return {
|
|
1477
1481
|
content: [
|
|
1478
1482
|
{
|
|
@@ -1482,8 +1486,11 @@ var getAgentHandler = async (args) => {
|
|
|
1482
1486
|
]
|
|
1483
1487
|
};
|
|
1484
1488
|
};
|
|
1485
|
-
var
|
|
1486
|
-
const res = await
|
|
1489
|
+
var addToolsToVoiceAgentHandler = async (args) => {
|
|
1490
|
+
const res = await addToolsToVoiceAgent(
|
|
1491
|
+
args.pathParams.voiceAgentId,
|
|
1492
|
+
args.bodyParams
|
|
1493
|
+
);
|
|
1487
1494
|
return {
|
|
1488
1495
|
content: [
|
|
1489
1496
|
{
|
|
@@ -1493,8 +1500,11 @@ var addToolsToAgentHandler = async (args) => {
|
|
|
1493
1500
|
]
|
|
1494
1501
|
};
|
|
1495
1502
|
};
|
|
1496
|
-
var
|
|
1497
|
-
const res = await
|
|
1503
|
+
var deleteToolsFromVoiceAgentHandler = async (args) => {
|
|
1504
|
+
const res = await deleteToolsFromVoiceAgent(
|
|
1505
|
+
args.pathParams.voiceAgentId,
|
|
1506
|
+
args.bodyParams
|
|
1507
|
+
);
|
|
1498
1508
|
return {
|
|
1499
1509
|
content: [
|
|
1500
1510
|
{
|
|
@@ -1504,8 +1514,8 @@ var deleteToolsFromAgentHandler = async (args) => {
|
|
|
1504
1514
|
]
|
|
1505
1515
|
};
|
|
1506
1516
|
};
|
|
1507
|
-
var
|
|
1508
|
-
const res = await
|
|
1517
|
+
var getVoiceAgentPromptHandler = async (args) => {
|
|
1518
|
+
const res = await getVoiceAgentPrompt(args.pathParams.voiceAgentId);
|
|
1509
1519
|
return {
|
|
1510
1520
|
content: [
|
|
1511
1521
|
{
|
|
@@ -1515,8 +1525,11 @@ var getAgentPromptHandler = async (args) => {
|
|
|
1515
1525
|
]
|
|
1516
1526
|
};
|
|
1517
1527
|
};
|
|
1518
|
-
var
|
|
1519
|
-
const res = await
|
|
1528
|
+
var updateVoiceAgentModelsHandler = async (args) => {
|
|
1529
|
+
const res = await updateVoiceAgentModels(
|
|
1530
|
+
args.pathParams.voiceAgentId,
|
|
1531
|
+
args.bodyParams
|
|
1532
|
+
);
|
|
1520
1533
|
return {
|
|
1521
1534
|
content: [
|
|
1522
1535
|
{
|
|
@@ -1527,7 +1540,10 @@ var updateAgentModelsHandler = async (args) => {
|
|
|
1527
1540
|
};
|
|
1528
1541
|
};
|
|
1529
1542
|
var updateCallControlsHandler = async (args) => {
|
|
1530
|
-
const res = await updateCallControls(
|
|
1543
|
+
const res = await updateCallControls(
|
|
1544
|
+
args.pathParams.voiceAgentId,
|
|
1545
|
+
args.bodyParams
|
|
1546
|
+
);
|
|
1531
1547
|
return {
|
|
1532
1548
|
content: [
|
|
1533
1549
|
{
|
|
@@ -1538,7 +1554,7 @@ var updateCallControlsHandler = async (args) => {
|
|
|
1538
1554
|
};
|
|
1539
1555
|
};
|
|
1540
1556
|
var scheduleJobHandler = async (args) => {
|
|
1541
|
-
const res = await scheduleJob(args.pathParams.
|
|
1557
|
+
const res = await scheduleJob(args.pathParams.voiceAgentId, args.bodyParams);
|
|
1542
1558
|
return {
|
|
1543
1559
|
content: [
|
|
1544
1560
|
{
|
|
@@ -1560,7 +1576,7 @@ var listJobsHandler = async (args) => {
|
|
|
1560
1576
|
};
|
|
1561
1577
|
};
|
|
1562
1578
|
var cancelJobHandler = async (args) => {
|
|
1563
|
-
const res = await cancelJob(args.pathParams.
|
|
1579
|
+
const res = await cancelJob(args.pathParams.jobId);
|
|
1564
1580
|
return {
|
|
1565
1581
|
content: [
|
|
1566
1582
|
{
|
|
@@ -1837,8 +1853,8 @@ var getClaimDetailHandler = async (args) => {
|
|
|
1837
1853
|
]
|
|
1838
1854
|
};
|
|
1839
1855
|
};
|
|
1840
|
-
var
|
|
1841
|
-
const res = await
|
|
1856
|
+
var checkInboxAvailabilityHandler = async (args) => {
|
|
1857
|
+
const res = await checkInboxAvailability(args.queryParams);
|
|
1842
1858
|
return {
|
|
1843
1859
|
content: [
|
|
1844
1860
|
{
|
|
@@ -1848,8 +1864,8 @@ var checkEmailUsernameAvailabilityHandler = async (args) => {
|
|
|
1848
1864
|
]
|
|
1849
1865
|
};
|
|
1850
1866
|
};
|
|
1851
|
-
var
|
|
1852
|
-
const res = await
|
|
1867
|
+
var createInboxHandler = async (args) => {
|
|
1868
|
+
const res = await createInbox(args.bodyParams);
|
|
1853
1869
|
return {
|
|
1854
1870
|
content: [
|
|
1855
1871
|
{
|
|
@@ -1859,8 +1875,8 @@ var createEmailAgentHandler = async (args) => {
|
|
|
1859
1875
|
]
|
|
1860
1876
|
};
|
|
1861
1877
|
};
|
|
1862
|
-
var
|
|
1863
|
-
const res = await
|
|
1878
|
+
var listInboxesHandler = async (args) => {
|
|
1879
|
+
const res = await listInboxes(args.queryParams);
|
|
1864
1880
|
return {
|
|
1865
1881
|
content: [
|
|
1866
1882
|
{
|
|
@@ -1870,8 +1886,8 @@ var listEmailAgentsHandler = async (args) => {
|
|
|
1870
1886
|
]
|
|
1871
1887
|
};
|
|
1872
1888
|
};
|
|
1873
|
-
var
|
|
1874
|
-
const res = await
|
|
1889
|
+
var updateInboxHandler = async (args) => {
|
|
1890
|
+
const res = await updateInbox(args.pathParams.inboxId, args.bodyParams);
|
|
1875
1891
|
return {
|
|
1876
1892
|
content: [
|
|
1877
1893
|
{
|
|
@@ -2141,7 +2157,10 @@ var uploadFileHandler = async (args) => {
|
|
|
2141
2157
|
};
|
|
2142
2158
|
};
|
|
2143
2159
|
var createAgentWebhookHandler = async (args) => {
|
|
2144
|
-
const res = await createAgentWebhook(
|
|
2160
|
+
const res = await createAgentWebhook(
|
|
2161
|
+
args.pathParams.voiceAgentId,
|
|
2162
|
+
args.bodyParams
|
|
2163
|
+
);
|
|
2145
2164
|
return {
|
|
2146
2165
|
content: [
|
|
2147
2166
|
{
|
|
@@ -2152,7 +2171,7 @@ var createAgentWebhookHandler = async (args) => {
|
|
|
2152
2171
|
};
|
|
2153
2172
|
};
|
|
2154
2173
|
var listAgentWebhooksHandler = async (args) => {
|
|
2155
|
-
const res = await listAgentWebhooks(args.pathParams.
|
|
2174
|
+
const res = await listAgentWebhooks(args.pathParams.voiceAgentId);
|
|
2156
2175
|
return {
|
|
2157
2176
|
content: [
|
|
2158
2177
|
{
|
|
@@ -2176,8 +2195,8 @@ var createEmailAgentWebhookHandler = async (args) => {
|
|
|
2176
2195
|
]
|
|
2177
2196
|
};
|
|
2178
2197
|
};
|
|
2179
|
-
var
|
|
2180
|
-
const res = await
|
|
2198
|
+
var createExtractorWebhookHandler = async (args) => {
|
|
2199
|
+
const res = await createExtractorWebhook(args.pathParams.id, args.bodyParams);
|
|
2181
2200
|
return {
|
|
2182
2201
|
content: [
|
|
2183
2202
|
{
|
|
@@ -2187,8 +2206,8 @@ var listEmailAgentWebhooksHandler = async (args) => {
|
|
|
2187
2206
|
]
|
|
2188
2207
|
};
|
|
2189
2208
|
};
|
|
2190
|
-
var
|
|
2191
|
-
const res = await
|
|
2209
|
+
var listWebhooksHandler = async (args) => {
|
|
2210
|
+
const res = await listWebhooks(args.pathParams.id);
|
|
2192
2211
|
return {
|
|
2193
2212
|
content: [
|
|
2194
2213
|
{
|
|
@@ -2198,8 +2217,8 @@ var createExtractorWebhookHandler = async (args) => {
|
|
|
2198
2217
|
]
|
|
2199
2218
|
};
|
|
2200
2219
|
};
|
|
2201
|
-
var
|
|
2202
|
-
const res = await
|
|
2220
|
+
var deleteWebhookHandler = async (args) => {
|
|
2221
|
+
const res = await deleteWebhook(args.pathParams.id);
|
|
2203
2222
|
return {
|
|
2204
2223
|
content: [
|
|
2205
2224
|
{
|
|
@@ -2209,8 +2228,8 @@ var listWebhooksHandler = async (args) => {
|
|
|
2209
2228
|
]
|
|
2210
2229
|
};
|
|
2211
2230
|
};
|
|
2212
|
-
var
|
|
2213
|
-
const res = await
|
|
2231
|
+
var getWebhookHandler = async (args) => {
|
|
2232
|
+
const res = await getWebhook(args.pathParams.id);
|
|
2214
2233
|
return {
|
|
2215
2234
|
content: [
|
|
2216
2235
|
{
|
|
@@ -2220,8 +2239,8 @@ var deleteWebhookHandler = async (args) => {
|
|
|
2220
2239
|
]
|
|
2221
2240
|
};
|
|
2222
2241
|
};
|
|
2223
|
-
var
|
|
2224
|
-
const res = await
|
|
2242
|
+
var listInboxWebhooksHandler = async (args) => {
|
|
2243
|
+
const res = await listInboxWebhooks(args.pathParams.inboxId);
|
|
2225
2244
|
return {
|
|
2226
2245
|
content: [
|
|
2227
2246
|
{
|
|
@@ -2256,12 +2275,12 @@ var testWebhookHandler = async (args) => {
|
|
|
2256
2275
|
|
|
2257
2276
|
// src/generated/tool-schemas.zod.ts
|
|
2258
2277
|
import { z as zod } from "zod";
|
|
2259
|
-
var
|
|
2278
|
+
var ListVoiceAgentsQueryParams = zod.object({
|
|
2260
2279
|
agent_name: zod.string().optional().describe("Filter by exact agent name")
|
|
2261
2280
|
});
|
|
2262
|
-
var
|
|
2263
|
-
var
|
|
2264
|
-
var
|
|
2281
|
+
var listVoiceAgentsResponseTotalMin = -9007199254740991;
|
|
2282
|
+
var listVoiceAgentsResponseTotalMax = 9007199254740991;
|
|
2283
|
+
var ListVoiceAgentsResponse = zod.object({
|
|
2265
2284
|
agents: zod.array(
|
|
2266
2285
|
zod.object({
|
|
2267
2286
|
id: zod.string(),
|
|
@@ -2310,9 +2329,9 @@ var ListAgentsResponse = zod.object({
|
|
|
2310
2329
|
end_call: zod.boolean()
|
|
2311
2330
|
})
|
|
2312
2331
|
),
|
|
2313
|
-
total: zod.number().min(
|
|
2332
|
+
total: zod.number().min(listVoiceAgentsResponseTotalMin).max(listVoiceAgentsResponseTotalMax).describe("Total number of agents")
|
|
2314
2333
|
});
|
|
2315
|
-
var
|
|
2334
|
+
var CreateVoiceAgentBody = zod.object({
|
|
2316
2335
|
agent_name: zod.string().min(1).describe("Name for the agent"),
|
|
2317
2336
|
direction: zod.enum(["OUTBOUND", "INBOUND"]).describe("Call direction the agent handles"),
|
|
2318
2337
|
llm_model: zod.enum([
|
|
@@ -2370,10 +2389,10 @@ var CreateAgentBody = zod.object({
|
|
|
2370
2389
|
dial_pad: zod.boolean().optional().describe("Whether the agent supports DTMF dial pad input"),
|
|
2371
2390
|
end_call: zod.boolean().optional().describe("Whether the agent can end the call")
|
|
2372
2391
|
});
|
|
2373
|
-
var
|
|
2374
|
-
|
|
2392
|
+
var GetVoiceAgentParams = zod.object({
|
|
2393
|
+
voiceAgentId: zod.string().min(1).describe("Voice Agent ID")
|
|
2375
2394
|
});
|
|
2376
|
-
var
|
|
2395
|
+
var GetVoiceAgentResponse = zod.object({
|
|
2377
2396
|
agent: zod.object({
|
|
2378
2397
|
id: zod.string(),
|
|
2379
2398
|
tenant_id: zod.string(),
|
|
@@ -2421,21 +2440,13 @@ var GetAgentResponse = zod.object({
|
|
|
2421
2440
|
end_call: zod.boolean()
|
|
2422
2441
|
})
|
|
2423
2442
|
});
|
|
2424
|
-
var
|
|
2425
|
-
|
|
2426
|
-
);
|
|
2427
|
-
var AddToolsToAgentParams = zod.object({
|
|
2428
|
-
id: zod.string().uuid().regex(addToolsToAgentPathIdRegExp)
|
|
2443
|
+
var AddToolsToVoiceAgentParams = zod.object({
|
|
2444
|
+
voiceAgentId: zod.string().uuid()
|
|
2429
2445
|
});
|
|
2430
|
-
var
|
|
2431
|
-
|
|
2432
|
-
);
|
|
2433
|
-
var AddToolsToAgentBody = zod.object({
|
|
2434
|
-
tool_ids: zod.array(
|
|
2435
|
-
zod.string().uuid().regex(addToolsToAgentBodyToolIdsItemRegExp)
|
|
2436
|
-
)
|
|
2446
|
+
var AddToolsToVoiceAgentBody = zod.object({
|
|
2447
|
+
tool_ids: zod.array(zod.string().uuid())
|
|
2437
2448
|
});
|
|
2438
|
-
var
|
|
2449
|
+
var AddToolsToVoiceAgentResponse = zod.object({
|
|
2439
2450
|
agent: zod.object({
|
|
2440
2451
|
id: zod.string(),
|
|
2441
2452
|
tenant_id: zod.string(),
|
|
@@ -2483,21 +2494,13 @@ var AddToolsToAgentResponse = zod.object({
|
|
|
2483
2494
|
end_call: zod.boolean()
|
|
2484
2495
|
})
|
|
2485
2496
|
});
|
|
2486
|
-
var
|
|
2487
|
-
|
|
2488
|
-
);
|
|
2489
|
-
var DeleteToolsFromAgentParams = zod.object({
|
|
2490
|
-
id: zod.string().uuid().regex(deleteToolsFromAgentPathIdRegExp)
|
|
2497
|
+
var DeleteToolsFromVoiceAgentParams = zod.object({
|
|
2498
|
+
voiceAgentId: zod.string().uuid()
|
|
2491
2499
|
});
|
|
2492
|
-
var
|
|
2493
|
-
|
|
2494
|
-
);
|
|
2495
|
-
var DeleteToolsFromAgentBody = zod.object({
|
|
2496
|
-
tool_ids: zod.array(
|
|
2497
|
-
zod.string().uuid().regex(deleteToolsFromAgentBodyToolIdsItemRegExp)
|
|
2498
|
-
)
|
|
2500
|
+
var DeleteToolsFromVoiceAgentBody = zod.object({
|
|
2501
|
+
tool_ids: zod.array(zod.string().uuid())
|
|
2499
2502
|
});
|
|
2500
|
-
var
|
|
2503
|
+
var DeleteToolsFromVoiceAgentResponse = zod.object({
|
|
2501
2504
|
agent: zod.object({
|
|
2502
2505
|
id: zod.string(),
|
|
2503
2506
|
tenant_id: zod.string(),
|
|
@@ -2545,16 +2548,16 @@ var DeleteToolsFromAgentResponse = zod.object({
|
|
|
2545
2548
|
end_call: zod.boolean()
|
|
2546
2549
|
})
|
|
2547
2550
|
});
|
|
2548
|
-
var
|
|
2549
|
-
|
|
2551
|
+
var GetVoiceAgentPromptParams = zod.object({
|
|
2552
|
+
voiceAgentId: zod.string().min(1)
|
|
2550
2553
|
});
|
|
2551
|
-
var
|
|
2554
|
+
var GetVoiceAgentPromptResponse = zod.object({
|
|
2552
2555
|
placeholders: zod.array(zod.string()).describe("Available placeholder variables")
|
|
2553
2556
|
});
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2557
|
+
var UpdateVoiceAgentModelsParams = zod.object({
|
|
2558
|
+
voiceAgentId: zod.string().min(1)
|
|
2556
2559
|
});
|
|
2557
|
-
var
|
|
2560
|
+
var UpdateVoiceAgentModelsBody = zod.object({
|
|
2558
2561
|
llm_model: zod.enum([
|
|
2559
2562
|
"GPT4.1",
|
|
2560
2563
|
"AZURE-GPT4o",
|
|
@@ -2606,7 +2609,7 @@ var UpdateAgentModelsBody = zod.object({
|
|
|
2606
2609
|
]),
|
|
2607
2610
|
language: zod.enum(["en-US", "de-DE"])
|
|
2608
2611
|
});
|
|
2609
|
-
var
|
|
2612
|
+
var UpdateVoiceAgentModelsResponse = zod.object({
|
|
2610
2613
|
agent: zod.object({
|
|
2611
2614
|
id: zod.string(),
|
|
2612
2615
|
tenant_id: zod.string(),
|
|
@@ -2654,11 +2657,8 @@ var UpdateAgentModelsResponse = zod.object({
|
|
|
2654
2657
|
end_call: zod.boolean()
|
|
2655
2658
|
})
|
|
2656
2659
|
});
|
|
2657
|
-
var updateCallControlsPathIdRegExp = new RegExp(
|
|
2658
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
2659
|
-
);
|
|
2660
2660
|
var UpdateCallControlsParams = zod.object({
|
|
2661
|
-
|
|
2661
|
+
voiceAgentId: zod.string().uuid()
|
|
2662
2662
|
});
|
|
2663
2663
|
var UpdateCallControlsBody = zod.object({
|
|
2664
2664
|
dial_pad: zod.boolean().optional(),
|
|
@@ -2713,11 +2713,8 @@ var UpdateCallControlsResponse = zod.object({
|
|
|
2713
2713
|
end_call: zod.boolean()
|
|
2714
2714
|
})
|
|
2715
2715
|
});
|
|
2716
|
-
var scheduleJobPathIdRegExp = new RegExp(
|
|
2717
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
2718
|
-
);
|
|
2719
2716
|
var ScheduleJobParams = zod.object({
|
|
2720
|
-
|
|
2717
|
+
voiceAgentId: zod.string().uuid()
|
|
2721
2718
|
});
|
|
2722
2719
|
var scheduleJobBodyScheduleWindowMinutesDefault = 60;
|
|
2723
2720
|
var scheduleJobBodyScheduleWindowMinutesMin = 10;
|
|
@@ -2750,16 +2747,13 @@ var ScheduleJobResponse = zod.object({
|
|
|
2750
2747
|
]),
|
|
2751
2748
|
created_at: zod.string().datetime({})
|
|
2752
2749
|
});
|
|
2753
|
-
var listJobsQueryAgentRegExp = new RegExp(
|
|
2754
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
2755
|
-
);
|
|
2756
2750
|
var listJobsQueryCountDefault = 50;
|
|
2757
2751
|
var listJobsQueryCountMax = 100;
|
|
2758
2752
|
var listJobsQueryOffsetDefault = 0;
|
|
2759
2753
|
var listJobsQueryOffsetMin = 0;
|
|
2760
2754
|
var listJobsQueryOffsetMax = 9007199254740991;
|
|
2761
2755
|
var ListJobsQueryParams = zod.object({
|
|
2762
|
-
agent: zod.string().uuid().
|
|
2756
|
+
agent: zod.string().uuid().optional(),
|
|
2763
2757
|
count: zod.number().min(1).max(listJobsQueryCountMax).default(listJobsQueryCountDefault),
|
|
2764
2758
|
offset: zod.number().min(listJobsQueryOffsetMin).max(listJobsQueryOffsetMax).default(listJobsQueryOffsetDefault),
|
|
2765
2759
|
status: zod.array(
|
|
@@ -2788,7 +2782,7 @@ var ListJobsResponseItem = zod.object({
|
|
|
2788
2782
|
});
|
|
2789
2783
|
var ListJobsResponse = zod.array(ListJobsResponseItem);
|
|
2790
2784
|
var CancelJobParams = zod.object({
|
|
2791
|
-
|
|
2785
|
+
jobId: zod.string().min(1)
|
|
2792
2786
|
});
|
|
2793
2787
|
var CancelJobResponse = zod.object({
|
|
2794
2788
|
id: zod.string(),
|
|
@@ -2833,11 +2827,8 @@ var CreateApiKeyBody = zod.object({
|
|
|
2833
2827
|
expires_at: zod.string().datetime({}).optional().describe("Optional expiration date (ISO 8601)"),
|
|
2834
2828
|
environment: zod.enum(["test", "live"]).default(createApiKeyBodyEnvironmentDefault).describe("Target environment for the key")
|
|
2835
2829
|
});
|
|
2836
|
-
var revokeApiKeyPathIdRegExp = new RegExp(
|
|
2837
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
2838
|
-
);
|
|
2839
2830
|
var RevokeApiKeyParams = zod.object({
|
|
2840
|
-
id: zod.string().uuid().
|
|
2831
|
+
id: zod.string().uuid().describe("The API key ID to revoke")
|
|
2841
2832
|
});
|
|
2842
2833
|
var RevokeApiKeyResponse = zod.object({
|
|
2843
2834
|
message: zod.string().describe("Confirmation message")
|
|
@@ -2887,11 +2878,8 @@ var ListArtifactsResponseItem = zod.object({
|
|
|
2887
2878
|
has_content: zod.boolean()
|
|
2888
2879
|
});
|
|
2889
2880
|
var ListArtifactsResponse = zod.array(ListArtifactsResponseItem);
|
|
2890
|
-
var getArtifactPathIdRegExp = new RegExp(
|
|
2891
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
2892
|
-
);
|
|
2893
2881
|
var GetArtifactParams = zod.object({
|
|
2894
|
-
id: zod.string().uuid()
|
|
2882
|
+
id: zod.string().uuid()
|
|
2895
2883
|
});
|
|
2896
2884
|
var GetArtifactResponse = zod.object({
|
|
2897
2885
|
data: zod.object({
|
|
@@ -2924,11 +2912,8 @@ var GetArtifactUploadUrlResponse = zod.object({
|
|
|
2924
2912
|
file_url: zod.string(),
|
|
2925
2913
|
expires_at: zod.string()
|
|
2926
2914
|
});
|
|
2927
|
-
var updateArtifactMetadataPathIdRegExp = new RegExp(
|
|
2928
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
2929
|
-
);
|
|
2930
2915
|
var UpdateArtifactMetadataParams = zod.object({
|
|
2931
|
-
id: zod.string().uuid()
|
|
2916
|
+
id: zod.string().uuid()
|
|
2932
2917
|
});
|
|
2933
2918
|
var UpdateArtifactMetadataBody = zod.object({
|
|
2934
2919
|
metadata: zod.record(zod.string(), zod.unknown())
|
|
@@ -2945,17 +2930,11 @@ var UpdateArtifactMetadataResponse = zod.object({
|
|
|
2945
2930
|
content_md: zod.union([zod.string(), zod.null()])
|
|
2946
2931
|
})
|
|
2947
2932
|
});
|
|
2948
|
-
var signUpBodyEmailRegExp = new RegExp(
|
|
2949
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
2950
|
-
);
|
|
2951
2933
|
var SignUpBody = zod.object({
|
|
2952
|
-
email: zod.string().email()
|
|
2934
|
+
email: zod.string().email(),
|
|
2953
2935
|
password: zod.string()
|
|
2954
2936
|
});
|
|
2955
2937
|
var SignUpResponse = zod.object({});
|
|
2956
|
-
var signInBodyThreeEmailRegExp = new RegExp(
|
|
2957
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
2958
|
-
);
|
|
2959
2938
|
var SignInBody = zod.union([
|
|
2960
2939
|
zod.object({
|
|
2961
2940
|
type: zod.literal("password"),
|
|
@@ -2969,7 +2948,7 @@ var SignInBody = zod.union([
|
|
|
2969
2948
|
}),
|
|
2970
2949
|
zod.object({
|
|
2971
2950
|
type: zod.literal("email_otp"),
|
|
2972
|
-
email: zod.string().email()
|
|
2951
|
+
email: zod.string().email(),
|
|
2973
2952
|
token: zod.string().min(1)
|
|
2974
2953
|
})
|
|
2975
2954
|
]);
|
|
@@ -2996,11 +2975,8 @@ var GetOAuthUrlQueryParams = zod.object({
|
|
|
2996
2975
|
var GetOAuthUrlResponse = zod.object({
|
|
2997
2976
|
url: zod.string().url()
|
|
2998
2977
|
});
|
|
2999
|
-
var getSessionTokenBodyTenantIdRegExp = new RegExp(
|
|
3000
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3001
|
-
);
|
|
3002
2978
|
var GetSessionTokenBody = zod.object({
|
|
3003
|
-
tenant_id: zod.string().uuid().
|
|
2979
|
+
tenant_id: zod.string().uuid().optional()
|
|
3004
2980
|
});
|
|
3005
2981
|
var GetSessionTokenResponse = zod.object({
|
|
3006
2982
|
access_token: zod.string(),
|
|
@@ -3013,24 +2989,15 @@ var listCallsQueryOffsetDefault = 0;
|
|
|
3013
2989
|
var listCallsQueryOffsetMin = 0;
|
|
3014
2990
|
var listCallsQuerySortByDefault = `started_at`;
|
|
3015
2991
|
var listCallsQuerySortOrderDefault = `desc`;
|
|
3016
|
-
var listCallsQueryCallIdRegExp = new RegExp(
|
|
3017
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3018
|
-
);
|
|
3019
|
-
var listCallsQueryAgentIdRegExp = new RegExp(
|
|
3020
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3021
|
-
);
|
|
3022
|
-
var listCallsQueryJobIdRegExp = new RegExp(
|
|
3023
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3024
|
-
);
|
|
3025
2992
|
var ListCallsQueryParams = zod.object({
|
|
3026
2993
|
count: zod.number().min(1).max(listCallsQueryCountMax).default(listCallsQueryCountDefault),
|
|
3027
2994
|
offset: zod.number().min(listCallsQueryOffsetMin).default(listCallsQueryOffsetDefault),
|
|
3028
2995
|
sort_by: zod.enum(["started_at", "ended_at", "created_at"]).default(listCallsQuerySortByDefault),
|
|
3029
2996
|
sort_order: zod.enum(["asc", "desc"]).default(listCallsQuerySortOrderDefault),
|
|
3030
|
-
call_id: zod.string().uuid().
|
|
3031
|
-
agent_id: zod.string().uuid().
|
|
2997
|
+
call_id: zod.string().uuid().optional(),
|
|
2998
|
+
agent_id: zod.string().uuid().optional(),
|
|
3032
2999
|
agent_name: zod.string().min(1).optional(),
|
|
3033
|
-
job_id: zod.string().uuid().
|
|
3000
|
+
job_id: zod.string().uuid().optional(),
|
|
3034
3001
|
direction: zod.enum(["INBOUND", "OUTBOUND"]).optional(),
|
|
3035
3002
|
status: zod.enum(["COMPLETED", "TRANSFERRED", "DISCONNECTED", "UNEXPECTED_SHUTDOWN"]).optional(),
|
|
3036
3003
|
started_after: zod.string().datetime({}).optional(),
|
|
@@ -3067,11 +3034,8 @@ var ListCallsResponseItem = zod.object({
|
|
|
3067
3034
|
created_at: zod.string().datetime({})
|
|
3068
3035
|
});
|
|
3069
3036
|
var ListCallsResponse = zod.array(ListCallsResponseItem);
|
|
3070
|
-
var getCallPathIdRegExp = new RegExp(
|
|
3071
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3072
|
-
);
|
|
3073
3037
|
var GetCallParams = zod.object({
|
|
3074
|
-
id: zod.string().uuid()
|
|
3038
|
+
id: zod.string().uuid()
|
|
3075
3039
|
});
|
|
3076
3040
|
var GetCallQueryParams = zod.object({
|
|
3077
3041
|
include_messages: zod.string().optional()
|
|
@@ -3134,11 +3098,8 @@ var GetCallResponse = zod.object({
|
|
|
3134
3098
|
zod.null()
|
|
3135
3099
|
])
|
|
3136
3100
|
});
|
|
3137
|
-
var getCallEvaluationPathIdRegExp = new RegExp(
|
|
3138
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3139
|
-
);
|
|
3140
3101
|
var GetCallEvaluationParams = zod.object({
|
|
3141
|
-
id: zod.string().uuid()
|
|
3102
|
+
id: zod.string().uuid()
|
|
3142
3103
|
});
|
|
3143
3104
|
var GetCallEvaluationResponse = zod.object({
|
|
3144
3105
|
id: zod.string(),
|
|
@@ -3206,25 +3167,16 @@ var GetCallAnalyticsResponse = zod.object({
|
|
|
3206
3167
|
})
|
|
3207
3168
|
)
|
|
3208
3169
|
});
|
|
3209
|
-
var createCallFeedbackPathIdRegExp = new RegExp(
|
|
3210
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3211
|
-
);
|
|
3212
3170
|
var CreateCallFeedbackParams = zod.object({
|
|
3213
|
-
id: zod.string().uuid().
|
|
3171
|
+
id: zod.string().uuid().describe("The call ID")
|
|
3214
3172
|
});
|
|
3215
|
-
var createCallFeedbackBodyMessageIdRegExp = new RegExp(
|
|
3216
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3217
|
-
);
|
|
3218
3173
|
var createCallFeedbackBodyTextMax = 1e4;
|
|
3219
3174
|
var CreateCallFeedbackBody = zod.object({
|
|
3220
|
-
message_id: zod.string().uuid().
|
|
3175
|
+
message_id: zod.string().uuid().describe("The message ID to attach feedback to"),
|
|
3221
3176
|
text: zod.string().min(1).max(createCallFeedbackBodyTextMax).describe("Feedback content")
|
|
3222
3177
|
});
|
|
3223
|
-
var listCallFeedbackPathIdRegExp = new RegExp(
|
|
3224
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3225
|
-
);
|
|
3226
3178
|
var ListCallFeedbackParams = zod.object({
|
|
3227
|
-
id: zod.string().uuid().
|
|
3179
|
+
id: zod.string().uuid().describe("The call ID")
|
|
3228
3180
|
});
|
|
3229
3181
|
var listCallFeedbackQueryCountDefault = 50;
|
|
3230
3182
|
var listCallFeedbackQueryCountMax = 100;
|
|
@@ -3238,34 +3190,19 @@ var ListCallFeedbackQueryParams = zod.object({
|
|
|
3238
3190
|
sort_by: zod.enum(["created_at"]).default(listCallFeedbackQuerySortByDefault),
|
|
3239
3191
|
sort_order: zod.enum(["asc", "desc"]).default(listCallFeedbackQuerySortOrderDefault)
|
|
3240
3192
|
});
|
|
3241
|
-
var listCallFeedbackResponseIdRegExp = new RegExp(
|
|
3242
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3243
|
-
);
|
|
3244
|
-
var listCallFeedbackResponseCallIdRegExp = new RegExp(
|
|
3245
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3246
|
-
);
|
|
3247
|
-
var listCallFeedbackResponseMessageIdRegExp = new RegExp(
|
|
3248
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3249
|
-
);
|
|
3250
3193
|
var ListCallFeedbackResponseItem = zod.object({
|
|
3251
|
-
id: zod.string().uuid()
|
|
3252
|
-
call_id: zod.string().uuid()
|
|
3253
|
-
message_id: zod.string().uuid()
|
|
3194
|
+
id: zod.string().uuid(),
|
|
3195
|
+
call_id: zod.string().uuid(),
|
|
3196
|
+
message_id: zod.string().uuid(),
|
|
3254
3197
|
author_email: zod.string(),
|
|
3255
3198
|
text: zod.string(),
|
|
3256
3199
|
created_at: zod.string().datetime({}),
|
|
3257
3200
|
updated_at: zod.string().datetime({})
|
|
3258
3201
|
});
|
|
3259
3202
|
var ListCallFeedbackResponse = zod.array(ListCallFeedbackResponseItem);
|
|
3260
|
-
var deleteCallFeedbackPathIdRegExp = new RegExp(
|
|
3261
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3262
|
-
);
|
|
3263
|
-
var deleteCallFeedbackPathFeedbackIdRegExp = new RegExp(
|
|
3264
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3265
|
-
);
|
|
3266
3203
|
var DeleteCallFeedbackParams = zod.object({
|
|
3267
|
-
id: zod.string().uuid().
|
|
3268
|
-
feedbackId: zod.string().uuid().
|
|
3204
|
+
id: zod.string().uuid().describe("The call ID"),
|
|
3205
|
+
feedbackId: zod.string().uuid().describe("The feedback ID to delete")
|
|
3269
3206
|
});
|
|
3270
3207
|
var DeleteCallFeedbackResponse = zod.null();
|
|
3271
3208
|
var CreateClaimResponse = zod.object({
|
|
@@ -3336,28 +3273,25 @@ var GetClaimDetailResponse = zod.object({
|
|
|
3336
3273
|
]),
|
|
3337
3274
|
extract: zod.union([zod.unknown(), zod.null()])
|
|
3338
3275
|
});
|
|
3339
|
-
var
|
|
3276
|
+
var CheckInboxAvailabilityQueryParams = zod.object({
|
|
3340
3277
|
username: zod.string().describe("Email username")
|
|
3341
3278
|
});
|
|
3342
|
-
var
|
|
3279
|
+
var CheckInboxAvailabilityResponse = zod.object({
|
|
3343
3280
|
available: zod.boolean().describe("Whether the username is available")
|
|
3344
3281
|
});
|
|
3345
|
-
var
|
|
3346
|
-
var
|
|
3347
|
-
|
|
3348
|
-
)
|
|
3349
|
-
|
|
3350
|
-
var CreateEmailAgentBody = zod.object({
|
|
3351
|
-
name: zod.string().min(1).max(createEmailAgentBodyNameMax),
|
|
3352
|
-
extractor_id: zod.string().uuid().regex(createEmailAgentBodyExtractorIdRegExp),
|
|
3282
|
+
var createInboxBodyNameMax = 256;
|
|
3283
|
+
var createInboxBodyAttachmentPasswordOneMax = 2048;
|
|
3284
|
+
var CreateInboxBody = zod.object({
|
|
3285
|
+
name: zod.string().min(1).max(createInboxBodyNameMax),
|
|
3286
|
+
extractor_id: zod.string().uuid(),
|
|
3353
3287
|
attachment_password: zod.union([
|
|
3354
|
-
zod.string().max(
|
|
3288
|
+
zod.string().max(createInboxBodyAttachmentPasswordOneMax),
|
|
3355
3289
|
zod.null()
|
|
3356
3290
|
]).optional(),
|
|
3357
3291
|
pdf_splitting_enabled: zod.boolean().optional(),
|
|
3358
3292
|
username: zod.string().optional().describe("Email username")
|
|
3359
3293
|
});
|
|
3360
|
-
var
|
|
3294
|
+
var CreateInboxResponse = zod.object({
|
|
3361
3295
|
id: zod.string(),
|
|
3362
3296
|
name: zod.string(),
|
|
3363
3297
|
email_address: zod.string(),
|
|
@@ -3367,19 +3301,19 @@ var CreateEmailAgentResponse = zod.object({
|
|
|
3367
3301
|
created_at: zod.string().datetime({}),
|
|
3368
3302
|
updated_at: zod.string().datetime({})
|
|
3369
3303
|
});
|
|
3370
|
-
var
|
|
3371
|
-
var
|
|
3372
|
-
var
|
|
3373
|
-
var
|
|
3374
|
-
var
|
|
3375
|
-
var
|
|
3376
|
-
var
|
|
3377
|
-
count: zod.number().min(1).max(
|
|
3378
|
-
offset: zod.number().min(
|
|
3379
|
-
sort_by: zod.enum(["created_at"]).default(
|
|
3380
|
-
sort_order: zod.enum(["asc", "desc"]).default(
|
|
3381
|
-
});
|
|
3382
|
-
var
|
|
3304
|
+
var listInboxesQueryCountDefault = 50;
|
|
3305
|
+
var listInboxesQueryCountMax = 100;
|
|
3306
|
+
var listInboxesQueryOffsetDefault = 0;
|
|
3307
|
+
var listInboxesQueryOffsetMin = 0;
|
|
3308
|
+
var listInboxesQuerySortByDefault = `created_at`;
|
|
3309
|
+
var listInboxesQuerySortOrderDefault = `desc`;
|
|
3310
|
+
var ListInboxesQueryParams = zod.object({
|
|
3311
|
+
count: zod.number().min(1).max(listInboxesQueryCountMax).default(listInboxesQueryCountDefault),
|
|
3312
|
+
offset: zod.number().min(listInboxesQueryOffsetMin).default(listInboxesQueryOffsetDefault),
|
|
3313
|
+
sort_by: zod.enum(["created_at"]).default(listInboxesQuerySortByDefault),
|
|
3314
|
+
sort_order: zod.enum(["asc", "desc"]).default(listInboxesQuerySortOrderDefault)
|
|
3315
|
+
});
|
|
3316
|
+
var ListInboxesResponseItem = zod.object({
|
|
3383
3317
|
id: zod.string(),
|
|
3384
3318
|
name: zod.string(),
|
|
3385
3319
|
email_address: zod.string(),
|
|
@@ -3389,17 +3323,14 @@ var ListEmailAgentsResponseItem = zod.object({
|
|
|
3389
3323
|
created_at: zod.string().datetime({}),
|
|
3390
3324
|
updated_at: zod.string().datetime({})
|
|
3391
3325
|
});
|
|
3392
|
-
var
|
|
3393
|
-
var
|
|
3394
|
-
|
|
3395
|
-
);
|
|
3396
|
-
var UpdateEmailAgentParams = zod.object({
|
|
3397
|
-
id: zod.string().uuid().regex(updateEmailAgentPathIdRegExp)
|
|
3326
|
+
var ListInboxesResponse = zod.array(ListInboxesResponseItem);
|
|
3327
|
+
var UpdateInboxParams = zod.object({
|
|
3328
|
+
inboxId: zod.string().uuid()
|
|
3398
3329
|
});
|
|
3399
|
-
var
|
|
3330
|
+
var UpdateInboxBody = zod.object({
|
|
3400
3331
|
pdf_splitting_enabled: zod.boolean().optional()
|
|
3401
3332
|
});
|
|
3402
|
-
var
|
|
3333
|
+
var UpdateInboxResponse = zod.object({
|
|
3403
3334
|
id: zod.string(),
|
|
3404
3335
|
name: zod.string(),
|
|
3405
3336
|
email_address: zod.string(),
|
|
@@ -3409,28 +3340,13 @@ var UpdateEmailAgentResponse = zod.object({
|
|
|
3409
3340
|
created_at: zod.string().datetime({}),
|
|
3410
3341
|
updated_at: zod.string().datetime({})
|
|
3411
3342
|
});
|
|
3412
|
-
var createEmailBodyClaimIdRegExp = new RegExp(
|
|
3413
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3414
|
-
);
|
|
3415
|
-
var createEmailBodyFromRegExp = new RegExp(
|
|
3416
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
3417
|
-
);
|
|
3418
|
-
var createEmailBodyToItemRegExp = new RegExp(
|
|
3419
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
3420
|
-
);
|
|
3421
|
-
var createEmailBodyCcItemRegExp = new RegExp(
|
|
3422
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
3423
|
-
);
|
|
3424
|
-
var createEmailBodyBccItemRegExp = new RegExp(
|
|
3425
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
3426
|
-
);
|
|
3427
3343
|
var CreateEmailBody = zod.object({
|
|
3428
|
-
claim_id: zod.string().uuid().
|
|
3344
|
+
claim_id: zod.string().uuid().optional(),
|
|
3429
3345
|
direction: zod.enum(["inbound", "outbound"]),
|
|
3430
|
-
from: zod.string().email()
|
|
3431
|
-
to: zod.array(zod.string().email()
|
|
3432
|
-
cc: zod.array(zod.string().email()
|
|
3433
|
-
bcc: zod.array(zod.string().email()
|
|
3346
|
+
from: zod.string().email(),
|
|
3347
|
+
to: zod.array(zod.string().email()).min(1),
|
|
3348
|
+
cc: zod.array(zod.string().email()).optional(),
|
|
3349
|
+
bcc: zod.array(zod.string().email()).optional(),
|
|
3434
3350
|
subject: zod.string().optional(),
|
|
3435
3351
|
body_text: zod.string().optional(),
|
|
3436
3352
|
body_html: zod.string().optional(),
|
|
@@ -3446,15 +3362,6 @@ var CreateEmailResponse = zod.object({
|
|
|
3446
3362
|
received_at: zod.string(),
|
|
3447
3363
|
created_at: zod.string().datetime({})
|
|
3448
3364
|
});
|
|
3449
|
-
var listEmailsQueryAgentIdRegExp = new RegExp(
|
|
3450
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3451
|
-
);
|
|
3452
|
-
var listEmailsQuerySenderRegExp = new RegExp(
|
|
3453
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
3454
|
-
);
|
|
3455
|
-
var listEmailsQueryRecipientRegExp = new RegExp(
|
|
3456
|
-
"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
3457
|
-
);
|
|
3458
3365
|
var listEmailsQueryContentMax = 500;
|
|
3459
3366
|
var listEmailsQueryCountDefault = 50;
|
|
3460
3367
|
var listEmailsQueryCountMax = 100;
|
|
@@ -3463,9 +3370,9 @@ var listEmailsQueryOffsetMin = 0;
|
|
|
3463
3370
|
var listEmailsQuerySortByDefault = `created_at`;
|
|
3464
3371
|
var listEmailsQuerySortOrderDefault = `desc`;
|
|
3465
3372
|
var ListEmailsQueryParams = zod.object({
|
|
3466
|
-
agent_id: zod.string().uuid().
|
|
3467
|
-
sender: zod.string().email().
|
|
3468
|
-
recipient: zod.string().email().
|
|
3373
|
+
agent_id: zod.string().uuid().optional(),
|
|
3374
|
+
sender: zod.string().email().optional(),
|
|
3375
|
+
recipient: zod.string().email().optional(),
|
|
3469
3376
|
content: zod.string().min(1).max(listEmailsQueryContentMax).optional(),
|
|
3470
3377
|
count: zod.number().min(1).max(listEmailsQueryCountMax).default(listEmailsQueryCountDefault),
|
|
3471
3378
|
offset: zod.number().min(listEmailsQueryOffsetMin).default(listEmailsQueryOffsetDefault),
|
|
@@ -3508,9 +3415,6 @@ var listExtractorJobsQueryOffsetDefault = 0;
|
|
|
3508
3415
|
var listExtractorJobsQueryOffsetMin = 0;
|
|
3509
3416
|
var listExtractorJobsQuerySortByDefault = `created_at`;
|
|
3510
3417
|
var listExtractorJobsQuerySortOrderDefault = `desc`;
|
|
3511
|
-
var listExtractorJobsQueryExtractorIdRegExp = new RegExp(
|
|
3512
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3513
|
-
);
|
|
3514
3418
|
var ListExtractorJobsQueryParams = zod.object({
|
|
3515
3419
|
count: zod.number().min(1).max(listExtractorJobsQueryCountMax).default(listExtractorJobsQueryCountDefault).describe("Number of results to return"),
|
|
3516
3420
|
offset: zod.number().min(listExtractorJobsQueryOffsetMin).default(listExtractorJobsQueryOffsetDefault).describe("Number of results to skip for pagination"),
|
|
@@ -3518,7 +3422,7 @@ var ListExtractorJobsQueryParams = zod.object({
|
|
|
3518
3422
|
sort_order: zod.enum(["asc", "desc"]).default(listExtractorJobsQuerySortOrderDefault).describe("Sort direction"),
|
|
3519
3423
|
status: zod.enum(["queued", "in_progress", "completed", "failed", "canceled"]).optional().describe("Filter by job status"),
|
|
3520
3424
|
extractor_type: zod.enum(["basic", "agentic"]).optional().describe("Filter by extractor type"),
|
|
3521
|
-
extractor_id: zod.string().uuid().
|
|
3425
|
+
extractor_id: zod.string().uuid().optional().describe("Filter by extractor ID"),
|
|
3522
3426
|
created_after: zod.string().datetime({}).optional().describe("Filter jobs created after this date (ISO 8601)"),
|
|
3523
3427
|
created_before: zod.string().datetime({}).optional().describe("Filter jobs created before this date (ISO 8601)"),
|
|
3524
3428
|
scope: zod.record(zod.string(), zod.string()).optional().describe(
|
|
@@ -3545,12 +3449,9 @@ var ListExtractorJobsResponseItem = zod.object({
|
|
|
3545
3449
|
var ListExtractorJobsResponse = zod.array(
|
|
3546
3450
|
ListExtractorJobsResponseItem
|
|
3547
3451
|
);
|
|
3548
|
-
var createExtractorJobBodyExtractorIdRegExp = new RegExp(
|
|
3549
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3550
|
-
);
|
|
3551
3452
|
var createExtractorJobBodyExtractorTypeDefault = `basic`;
|
|
3552
3453
|
var CreateExtractorJobBody = zod.object({
|
|
3553
|
-
extractor_id: zod.string().uuid()
|
|
3454
|
+
extractor_id: zod.string().uuid(),
|
|
3554
3455
|
extractor_type: zod.enum(["basic", "agentic"]).default(createExtractorJobBodyExtractorTypeDefault),
|
|
3555
3456
|
scope: zod.record(
|
|
3556
3457
|
zod.string(),
|
|
@@ -3565,11 +3466,8 @@ var CreateExtractorJobResponse = zod.object({
|
|
|
3565
3466
|
status: zod.string(),
|
|
3566
3467
|
created_at: zod.string().datetime({})
|
|
3567
3468
|
});
|
|
3568
|
-
var getExtractorJobPathIdRegExp = new RegExp(
|
|
3569
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3570
|
-
);
|
|
3571
3469
|
var GetExtractorJobParams = zod.object({
|
|
3572
|
-
id: zod.string().uuid()
|
|
3470
|
+
id: zod.string().uuid()
|
|
3573
3471
|
});
|
|
3574
3472
|
var GetExtractorJobResponse = zod.object({
|
|
3575
3473
|
data: zod.object({
|
|
@@ -3587,11 +3485,8 @@ var GetExtractorJobResponse = zod.object({
|
|
|
3587
3485
|
error: zod.union([zod.string(), zod.null()])
|
|
3588
3486
|
})
|
|
3589
3487
|
});
|
|
3590
|
-
var cancelExtractorJobPathIdRegExp = new RegExp(
|
|
3591
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3592
|
-
);
|
|
3593
3488
|
var CancelExtractorJobParams = zod.object({
|
|
3594
|
-
id: zod.string().uuid()
|
|
3489
|
+
id: zod.string().uuid()
|
|
3595
3490
|
});
|
|
3596
3491
|
var CancelExtractorJobResponse = zod.object({
|
|
3597
3492
|
id: zod.string(),
|
|
@@ -3607,11 +3502,8 @@ var CancelExtractorJobResponse = zod.object({
|
|
|
3607
3502
|
extract_id: zod.union([zod.string(), zod.null()]),
|
|
3608
3503
|
error: zod.union([zod.string(), zod.null()])
|
|
3609
3504
|
});
|
|
3610
|
-
var listAgenticJobMessagesPathIdRegExp = new RegExp(
|
|
3611
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3612
|
-
);
|
|
3613
3505
|
var ListAgenticJobMessagesParams = zod.object({
|
|
3614
|
-
id: zod.string().uuid()
|
|
3506
|
+
id: zod.string().uuid()
|
|
3615
3507
|
});
|
|
3616
3508
|
var listAgenticJobMessagesQueryCountDefault = 100;
|
|
3617
3509
|
var listAgenticJobMessagesQueryCountMax = 500;
|
|
@@ -3629,11 +3521,8 @@ var ListAgenticJobMessagesResponseItem = zod.object({
|
|
|
3629
3521
|
var ListAgenticJobMessagesResponse = zod.array(
|
|
3630
3522
|
ListAgenticJobMessagesResponseItem
|
|
3631
3523
|
);
|
|
3632
|
-
var updateExtractorJobScopePathIdRegExp = new RegExp(
|
|
3633
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3634
|
-
);
|
|
3635
3524
|
var UpdateExtractorJobScopeParams = zod.object({
|
|
3636
|
-
id: zod.string().uuid()
|
|
3525
|
+
id: zod.string().uuid()
|
|
3637
3526
|
});
|
|
3638
3527
|
var UpdateExtractorJobScopeBody = zod.object({
|
|
3639
3528
|
scope: zod.record(zod.string(), zod.unknown())
|
|
@@ -3710,11 +3599,8 @@ var UpdateExtractorResponse = zod.object({
|
|
|
3710
3599
|
schema: zod.record(zod.string(), zod.unknown()),
|
|
3711
3600
|
created_at: zod.string().datetime({})
|
|
3712
3601
|
});
|
|
3713
|
-
var getExtractPathIdRegExp = new RegExp(
|
|
3714
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3715
|
-
);
|
|
3716
3602
|
var GetExtractParams = zod.object({
|
|
3717
|
-
id: zod.string().uuid()
|
|
3603
|
+
id: zod.string().uuid()
|
|
3718
3604
|
});
|
|
3719
3605
|
var GetExtractResponse = zod.object({
|
|
3720
3606
|
id: zod.string(),
|
|
@@ -3726,11 +3612,8 @@ var GetExtractResponse = zod.object({
|
|
|
3726
3612
|
citations: zod.union([zod.unknown(), zod.null()]),
|
|
3727
3613
|
created_at: zod.string().datetime({})
|
|
3728
3614
|
});
|
|
3729
|
-
var getExtractCitationsPathIdRegExp = new RegExp(
|
|
3730
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3731
|
-
);
|
|
3732
3615
|
var GetExtractCitationsParams = zod.object({
|
|
3733
|
-
id: zod.string().uuid()
|
|
3616
|
+
id: zod.string().uuid()
|
|
3734
3617
|
});
|
|
3735
3618
|
var GetExtractCitationsResponse = zod.object({
|
|
3736
3619
|
citations: zod.unknown(),
|
|
@@ -3759,19 +3642,13 @@ var listExtractsQueryOffsetDefault = 0;
|
|
|
3759
3642
|
var listExtractsQueryOffsetMin = 0;
|
|
3760
3643
|
var listExtractsQuerySortByDefault = `created_at`;
|
|
3761
3644
|
var listExtractsQuerySortOrderDefault = `desc`;
|
|
3762
|
-
var listExtractsQueryJobIdRegExp = new RegExp(
|
|
3763
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3764
|
-
);
|
|
3765
|
-
var listExtractsQueryExtractorIdRegExp = new RegExp(
|
|
3766
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3767
|
-
);
|
|
3768
3645
|
var ListExtractsQueryParams = zod.object({
|
|
3769
3646
|
count: zod.number().min(1).max(listExtractsQueryCountMax).default(listExtractsQueryCountDefault),
|
|
3770
3647
|
offset: zod.number().min(listExtractsQueryOffsetMin).default(listExtractsQueryOffsetDefault),
|
|
3771
3648
|
sort_by: zod.enum(["created_at"]).default(listExtractsQuerySortByDefault),
|
|
3772
3649
|
sort_order: zod.enum(["asc", "desc"]).default(listExtractsQuerySortOrderDefault),
|
|
3773
|
-
job_id: zod.string().uuid().
|
|
3774
|
-
extractor_id: zod.string().uuid().
|
|
3650
|
+
job_id: zod.string().uuid().optional(),
|
|
3651
|
+
extractor_id: zod.string().uuid().optional(),
|
|
3775
3652
|
created_after: zod.string().optional(),
|
|
3776
3653
|
created_before: zod.string().optional(),
|
|
3777
3654
|
scope: zod.record(zod.string(), zod.string()).optional().describe(
|
|
@@ -3826,13 +3703,10 @@ var CreateToolResponse = zod.object({
|
|
|
3826
3703
|
});
|
|
3827
3704
|
var listToolsQuerySortByDefault = `created_at`;
|
|
3828
3705
|
var listToolsQuerySortOrderDefault = `desc`;
|
|
3829
|
-
var listToolsQueryCallAgentIdRegExp = new RegExp(
|
|
3830
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3831
|
-
);
|
|
3832
3706
|
var ListToolsQueryParams = zod.object({
|
|
3833
3707
|
sort_by: zod.enum(["created_at", "updated_at", "name"]).default(listToolsQuerySortByDefault),
|
|
3834
3708
|
sort_order: zod.enum(["asc", "desc"]).default(listToolsQuerySortOrderDefault),
|
|
3835
|
-
call_agent_id: zod.string().uuid().
|
|
3709
|
+
call_agent_id: zod.string().uuid().optional()
|
|
3836
3710
|
});
|
|
3837
3711
|
var ListToolsResponse = zod.object({
|
|
3838
3712
|
tools: zod.array(
|
|
@@ -3843,11 +3717,8 @@ var ListToolsResponse = zod.object({
|
|
|
3843
3717
|
})
|
|
3844
3718
|
)
|
|
3845
3719
|
});
|
|
3846
|
-
var executeCodePathIdRegExp = new RegExp(
|
|
3847
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3848
|
-
);
|
|
3849
3720
|
var ExecuteCodeParams = zod.object({
|
|
3850
|
-
id: zod.string().uuid()
|
|
3721
|
+
id: zod.string().uuid()
|
|
3851
3722
|
});
|
|
3852
3723
|
var executeCodeBodyParamsDefault = {};
|
|
3853
3724
|
var ExecuteCodeBody = zod.object({
|
|
@@ -3879,11 +3750,8 @@ var GetToolResponse = zod.object({
|
|
|
3879
3750
|
has_api_key: zod.boolean()
|
|
3880
3751
|
})
|
|
3881
3752
|
});
|
|
3882
|
-
var updateToolPathIdRegExp = new RegExp(
|
|
3883
|
-
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3884
|
-
);
|
|
3885
3753
|
var UpdateToolParams = zod.object({
|
|
3886
|
-
id: zod.string().uuid()
|
|
3754
|
+
id: zod.string().uuid()
|
|
3887
3755
|
});
|
|
3888
3756
|
var UpdateToolBody = zod.object({
|
|
3889
3757
|
name: zod.string().min(1).optional(),
|
|
@@ -3914,7 +3782,7 @@ var UploadFileBody = zod.object({
|
|
|
3914
3782
|
metadata: zod.record(zod.string(), zod.unknown()).optional()
|
|
3915
3783
|
});
|
|
3916
3784
|
var CreateAgentWebhookParams = zod.object({
|
|
3917
|
-
|
|
3785
|
+
voiceAgentId: zod.string().min(1)
|
|
3918
3786
|
});
|
|
3919
3787
|
var createAgentWebhookBodyNameMax = 256;
|
|
3920
3788
|
var createAgentWebhookBodyUrlMax = 2048;
|
|
@@ -3955,7 +3823,7 @@ var CreateAgentWebhookResponse = zod.object({
|
|
|
3955
3823
|
updated_at: zod.string().datetime({})
|
|
3956
3824
|
});
|
|
3957
3825
|
var ListAgentWebhooksParams = zod.object({
|
|
3958
|
-
|
|
3826
|
+
voiceAgentId: zod.string().min(1)
|
|
3959
3827
|
});
|
|
3960
3828
|
var ListAgentWebhooksResponseItem = zod.object({
|
|
3961
3829
|
id: zod.string(),
|
|
@@ -4022,33 +3890,6 @@ var CreateEmailAgentWebhookResponse = zod.object({
|
|
|
4022
3890
|
created_at: zod.string().datetime({}),
|
|
4023
3891
|
updated_at: zod.string().datetime({})
|
|
4024
3892
|
});
|
|
4025
|
-
var ListEmailAgentWebhooksParams = zod.object({
|
|
4026
|
-
id: zod.string().min(1)
|
|
4027
|
-
});
|
|
4028
|
-
var ListEmailAgentWebhooksResponseItem = zod.object({
|
|
4029
|
-
id: zod.string(),
|
|
4030
|
-
scope: zod.union([
|
|
4031
|
-
zod.object({
|
|
4032
|
-
extractor_id: zod.string()
|
|
4033
|
-
}),
|
|
4034
|
-
zod.object({
|
|
4035
|
-
call_agent_id: zod.string()
|
|
4036
|
-
}),
|
|
4037
|
-
zod.object({
|
|
4038
|
-
email_agent_id: zod.string()
|
|
4039
|
-
})
|
|
4040
|
-
]),
|
|
4041
|
-
name: zod.string(),
|
|
4042
|
-
url: zod.string(),
|
|
4043
|
-
auth_header_name: zod.union([zod.string(), zod.null()]),
|
|
4044
|
-
has_auth: zod.boolean(),
|
|
4045
|
-
enabled: zod.boolean(),
|
|
4046
|
-
created_at: zod.string().datetime({}),
|
|
4047
|
-
updated_at: zod.string().datetime({})
|
|
4048
|
-
});
|
|
4049
|
-
var ListEmailAgentWebhooksResponse = zod.array(
|
|
4050
|
-
ListEmailAgentWebhooksResponseItem
|
|
4051
|
-
);
|
|
4052
3893
|
var CreateExtractorWebhookParams = zod.object({
|
|
4053
3894
|
id: zod.string().min(1)
|
|
4054
3895
|
});
|
|
@@ -4143,6 +3984,33 @@ var GetWebhookResponse = zod.object({
|
|
|
4143
3984
|
created_at: zod.string().datetime({}),
|
|
4144
3985
|
updated_at: zod.string().datetime({})
|
|
4145
3986
|
});
|
|
3987
|
+
var ListInboxWebhooksParams = zod.object({
|
|
3988
|
+
inboxId: zod.string().min(1)
|
|
3989
|
+
});
|
|
3990
|
+
var ListInboxWebhooksResponseItem = zod.object({
|
|
3991
|
+
id: zod.string(),
|
|
3992
|
+
scope: zod.union([
|
|
3993
|
+
zod.object({
|
|
3994
|
+
extractor_id: zod.string()
|
|
3995
|
+
}),
|
|
3996
|
+
zod.object({
|
|
3997
|
+
call_agent_id: zod.string()
|
|
3998
|
+
}),
|
|
3999
|
+
zod.object({
|
|
4000
|
+
email_agent_id: zod.string()
|
|
4001
|
+
})
|
|
4002
|
+
]),
|
|
4003
|
+
name: zod.string(),
|
|
4004
|
+
url: zod.string(),
|
|
4005
|
+
auth_header_name: zod.union([zod.string(), zod.null()]),
|
|
4006
|
+
has_auth: zod.boolean(),
|
|
4007
|
+
enabled: zod.boolean(),
|
|
4008
|
+
created_at: zod.string().datetime({}),
|
|
4009
|
+
updated_at: zod.string().datetime({})
|
|
4010
|
+
});
|
|
4011
|
+
var ListInboxWebhooksResponse = zod.array(
|
|
4012
|
+
ListInboxWebhooksResponseItem
|
|
4013
|
+
);
|
|
4146
4014
|
var ListWebhookDeliveriesParams = zod.object({
|
|
4147
4015
|
id: zod.string().min(1)
|
|
4148
4016
|
});
|
|
@@ -4185,67 +4053,67 @@ var server = new McpServer({
|
|
|
4185
4053
|
version: "1.0.0"
|
|
4186
4054
|
});
|
|
4187
4055
|
server.tool(
|
|
4188
|
-
"
|
|
4189
|
-
"List agents",
|
|
4056
|
+
"listVoiceAgents",
|
|
4057
|
+
"List voice agents",
|
|
4190
4058
|
{
|
|
4191
|
-
queryParams:
|
|
4059
|
+
queryParams: ListVoiceAgentsQueryParams
|
|
4192
4060
|
},
|
|
4193
|
-
|
|
4061
|
+
listVoiceAgentsHandler
|
|
4194
4062
|
);
|
|
4195
4063
|
server.tool(
|
|
4196
|
-
"
|
|
4197
|
-
"Create agent",
|
|
4064
|
+
"createVoiceAgent",
|
|
4065
|
+
"Create voice agent",
|
|
4198
4066
|
{
|
|
4199
|
-
bodyParams:
|
|
4067
|
+
bodyParams: CreateVoiceAgentBody
|
|
4200
4068
|
},
|
|
4201
|
-
|
|
4069
|
+
createVoiceAgentHandler
|
|
4202
4070
|
);
|
|
4203
4071
|
server.tool(
|
|
4204
|
-
"
|
|
4205
|
-
"Get agent",
|
|
4072
|
+
"getVoiceAgent",
|
|
4073
|
+
"Get voice agent",
|
|
4206
4074
|
{
|
|
4207
|
-
pathParams:
|
|
4075
|
+
pathParams: GetVoiceAgentParams
|
|
4208
4076
|
},
|
|
4209
|
-
|
|
4077
|
+
getVoiceAgentHandler
|
|
4210
4078
|
);
|
|
4211
4079
|
server.tool(
|
|
4212
|
-
"
|
|
4213
|
-
"Add tools to agent",
|
|
4080
|
+
"addToolsToVoiceAgent",
|
|
4081
|
+
"Add tools to voice agent",
|
|
4214
4082
|
{
|
|
4215
|
-
pathParams:
|
|
4216
|
-
bodyParams:
|
|
4083
|
+
pathParams: AddToolsToVoiceAgentParams,
|
|
4084
|
+
bodyParams: AddToolsToVoiceAgentBody
|
|
4217
4085
|
},
|
|
4218
|
-
|
|
4086
|
+
addToolsToVoiceAgentHandler
|
|
4219
4087
|
);
|
|
4220
4088
|
server.tool(
|
|
4221
|
-
"
|
|
4222
|
-
"Remove tools from agent",
|
|
4089
|
+
"deleteToolsFromVoiceAgent",
|
|
4090
|
+
"Remove tools from voice agent",
|
|
4223
4091
|
{
|
|
4224
|
-
pathParams:
|
|
4225
|
-
bodyParams:
|
|
4092
|
+
pathParams: DeleteToolsFromVoiceAgentParams,
|
|
4093
|
+
bodyParams: DeleteToolsFromVoiceAgentBody
|
|
4226
4094
|
},
|
|
4227
|
-
|
|
4095
|
+
deleteToolsFromVoiceAgentHandler
|
|
4228
4096
|
);
|
|
4229
4097
|
server.tool(
|
|
4230
|
-
"
|
|
4231
|
-
"Get agent prompt",
|
|
4098
|
+
"getVoiceAgentPrompt",
|
|
4099
|
+
"Get voice agent prompt",
|
|
4232
4100
|
{
|
|
4233
|
-
pathParams:
|
|
4101
|
+
pathParams: GetVoiceAgentPromptParams
|
|
4234
4102
|
},
|
|
4235
|
-
|
|
4103
|
+
getVoiceAgentPromptHandler
|
|
4236
4104
|
);
|
|
4237
4105
|
server.tool(
|
|
4238
|
-
"
|
|
4239
|
-
"Update agent models",
|
|
4106
|
+
"updateVoiceAgentModels",
|
|
4107
|
+
"Update voice agent models",
|
|
4240
4108
|
{
|
|
4241
|
-
pathParams:
|
|
4242
|
-
bodyParams:
|
|
4109
|
+
pathParams: UpdateVoiceAgentModelsParams,
|
|
4110
|
+
bodyParams: UpdateVoiceAgentModelsBody
|
|
4243
4111
|
},
|
|
4244
|
-
|
|
4112
|
+
updateVoiceAgentModelsHandler
|
|
4245
4113
|
);
|
|
4246
4114
|
server.tool(
|
|
4247
4115
|
"updateCallControls",
|
|
4248
|
-
"Update agent call controls",
|
|
4116
|
+
"Update voice agent call controls",
|
|
4249
4117
|
{
|
|
4250
4118
|
pathParams: UpdateCallControlsParams,
|
|
4251
4119
|
bodyParams: UpdateCallControlsBody
|
|
@@ -4467,37 +4335,37 @@ server.tool(
|
|
|
4467
4335
|
getClaimDetailHandler
|
|
4468
4336
|
);
|
|
4469
4337
|
server.tool(
|
|
4470
|
-
"
|
|
4338
|
+
"checkInboxAvailability",
|
|
4471
4339
|
"Check email username availability",
|
|
4472
4340
|
{
|
|
4473
|
-
queryParams:
|
|
4341
|
+
queryParams: CheckInboxAvailabilityQueryParams
|
|
4474
4342
|
},
|
|
4475
|
-
|
|
4343
|
+
checkInboxAvailabilityHandler
|
|
4476
4344
|
);
|
|
4477
4345
|
server.tool(
|
|
4478
|
-
"
|
|
4479
|
-
"Create
|
|
4346
|
+
"createInbox",
|
|
4347
|
+
"Create inbox",
|
|
4480
4348
|
{
|
|
4481
|
-
bodyParams:
|
|
4349
|
+
bodyParams: CreateInboxBody
|
|
4482
4350
|
},
|
|
4483
|
-
|
|
4351
|
+
createInboxHandler
|
|
4484
4352
|
);
|
|
4485
4353
|
server.tool(
|
|
4486
|
-
"
|
|
4487
|
-
"List
|
|
4354
|
+
"listInboxes",
|
|
4355
|
+
"List inboxes",
|
|
4488
4356
|
{
|
|
4489
|
-
queryParams:
|
|
4357
|
+
queryParams: ListInboxesQueryParams
|
|
4490
4358
|
},
|
|
4491
|
-
|
|
4359
|
+
listInboxesHandler
|
|
4492
4360
|
);
|
|
4493
4361
|
server.tool(
|
|
4494
|
-
"
|
|
4495
|
-
"Update
|
|
4362
|
+
"updateInbox",
|
|
4363
|
+
"Update inbox",
|
|
4496
4364
|
{
|
|
4497
|
-
pathParams:
|
|
4498
|
-
bodyParams:
|
|
4365
|
+
pathParams: UpdateInboxParams,
|
|
4366
|
+
bodyParams: UpdateInboxBody
|
|
4499
4367
|
},
|
|
4500
|
-
|
|
4368
|
+
updateInboxHandler
|
|
4501
4369
|
);
|
|
4502
4370
|
server.tool(
|
|
4503
4371
|
"createEmail",
|
|
@@ -4683,7 +4551,7 @@ server.tool(
|
|
|
4683
4551
|
);
|
|
4684
4552
|
server.tool(
|
|
4685
4553
|
"createAgentWebhook",
|
|
4686
|
-
"Create agent webhook",
|
|
4554
|
+
"Create voice agent webhook",
|
|
4687
4555
|
{
|
|
4688
4556
|
pathParams: CreateAgentWebhookParams,
|
|
4689
4557
|
bodyParams: CreateAgentWebhookBody
|
|
@@ -4692,7 +4560,7 @@ server.tool(
|
|
|
4692
4560
|
);
|
|
4693
4561
|
server.tool(
|
|
4694
4562
|
"listAgentWebhooks",
|
|
4695
|
-
"List agent webhooks",
|
|
4563
|
+
"List voice agent webhooks",
|
|
4696
4564
|
{
|
|
4697
4565
|
pathParams: ListAgentWebhooksParams
|
|
4698
4566
|
},
|
|
@@ -4707,14 +4575,6 @@ server.tool(
|
|
|
4707
4575
|
},
|
|
4708
4576
|
createEmailAgentWebhookHandler
|
|
4709
4577
|
);
|
|
4710
|
-
server.tool(
|
|
4711
|
-
"listEmailAgentWebhooks",
|
|
4712
|
-
"List email agent webhooks",
|
|
4713
|
-
{
|
|
4714
|
-
pathParams: ListEmailAgentWebhooksParams
|
|
4715
|
-
},
|
|
4716
|
-
listEmailAgentWebhooksHandler
|
|
4717
|
-
);
|
|
4718
4578
|
server.tool(
|
|
4719
4579
|
"createExtractorWebhook",
|
|
4720
4580
|
"Create extractor webhook",
|
|
@@ -4748,6 +4608,14 @@ server.tool(
|
|
|
4748
4608
|
},
|
|
4749
4609
|
getWebhookHandler
|
|
4750
4610
|
);
|
|
4611
|
+
server.tool(
|
|
4612
|
+
"listInboxWebhooks",
|
|
4613
|
+
"List inbox webhooks",
|
|
4614
|
+
{
|
|
4615
|
+
pathParams: ListInboxWebhooksParams
|
|
4616
|
+
},
|
|
4617
|
+
listInboxWebhooksHandler
|
|
4618
|
+
);
|
|
4751
4619
|
server.tool(
|
|
4752
4620
|
"listWebhookDeliveries",
|
|
4753
4621
|
"List webhook deliveries",
|
|
@@ -4769,4 +4637,4 @@ var transport = new StdioServerTransport();
|
|
|
4769
4637
|
server.connect(transport).then(() => {
|
|
4770
4638
|
console.error("MCP server running on stdio");
|
|
4771
4639
|
}).catch(console.error);
|
|
4772
|
-
//# sourceMappingURL=server-
|
|
4640
|
+
//# sourceMappingURL=server-AKPXEANM.js.map
|