@gtmi/ramp-agent-client 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.d.mts +935 -101
- package/dist/es/index.mjs +215 -11
- package/package.json +1 -1
- package/src/generated/index.ts +51 -0
- package/src/generated/sdk.gen.ts +11 -1
- package/src/generated/types.gen.ts +572 -77
- package/src/generated/zod.gen.ts +231 -8
package/dist/es/index.mjs
CHANGED
|
@@ -904,6 +904,8 @@ const client = createClient(createConfig());
|
|
|
904
904
|
});
|
|
905
905
|
/**
|
|
906
906
|
* POST /export-logs
|
|
907
|
+
*
|
|
908
|
+
* Manually triggers export of pending phone logs to Snowflake
|
|
907
909
|
*/ const postExportLogs = (options)=>(options?.client ?? client).post({
|
|
908
910
|
security: [
|
|
909
911
|
{
|
|
@@ -1005,6 +1007,8 @@ const client = createClient(createConfig());
|
|
|
1005
1007
|
});
|
|
1006
1008
|
/**
|
|
1007
1009
|
* POST /active-conversations/agent/claim
|
|
1010
|
+
*
|
|
1011
|
+
* Claims an unassigned campaign conversation so the requesting frontend owns it
|
|
1008
1012
|
*/ const postActiveConversationsAgentClaim = (options)=>(options.client ?? client).post({
|
|
1009
1013
|
security: [
|
|
1010
1014
|
{
|
|
@@ -1021,6 +1025,8 @@ const client = createClient(createConfig());
|
|
|
1021
1025
|
});
|
|
1022
1026
|
/**
|
|
1023
1027
|
* GET /active-conversations/agent/:agentNumber
|
|
1028
|
+
*
|
|
1029
|
+
* Finds an unassigned campaign conversation for the given agent number (campaign polling)
|
|
1024
1030
|
*/ const getActiveConversationsAgentByAgentNumber = (options)=>(options.client ?? client).get({
|
|
1025
1031
|
security: [
|
|
1026
1032
|
{
|
|
@@ -1100,7 +1106,7 @@ const client = createClient(createConfig());
|
|
|
1100
1106
|
/**
|
|
1101
1107
|
* POST /stress-test-sms
|
|
1102
1108
|
*
|
|
1103
|
-
* Twilio webhook endpoint for stress
|
|
1109
|
+
* Twilio webhook endpoint for SMS messages during stress test calls
|
|
1104
1110
|
*/ const postStressTestSms = (options)=>(options.client ?? client).post({
|
|
1105
1111
|
url: '/stress-test-sms',
|
|
1106
1112
|
...options,
|
|
@@ -1135,6 +1141,8 @@ const client = createClient(createConfig());
|
|
|
1135
1141
|
});
|
|
1136
1142
|
/**
|
|
1137
1143
|
* POST /flex-transcription
|
|
1144
|
+
*
|
|
1145
|
+
* Twilio real-time transcription webhook for Flex calls
|
|
1138
1146
|
*/ const postFlexTranscription = (options)=>(options.client ?? client).post({
|
|
1139
1147
|
url: '/flex-transcription',
|
|
1140
1148
|
...options,
|
|
@@ -1145,6 +1153,8 @@ const client = createClient(createConfig());
|
|
|
1145
1153
|
});
|
|
1146
1154
|
/**
|
|
1147
1155
|
* POST /taskrouter-webhook
|
|
1156
|
+
*
|
|
1157
|
+
* Twilio TaskRouter event webhook
|
|
1148
1158
|
*/ const postTaskrouterWebhook = (options)=>(options.client ?? client).post({
|
|
1149
1159
|
url: '/taskrouter-webhook',
|
|
1150
1160
|
...options,
|
|
@@ -1194,46 +1204,183 @@ const client = createClient(createConfig());
|
|
|
1194
1204
|
});
|
|
1195
1205
|
|
|
1196
1206
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
1207
|
+
const zErrorResponse = z.object({
|
|
1208
|
+
error: z.string().optional(),
|
|
1209
|
+
details: z.string().optional()
|
|
1210
|
+
});
|
|
1211
|
+
/**
|
|
1212
|
+
* Success
|
|
1213
|
+
*/ const zGetCountryConfigsResponse = z.object({
|
|
1214
|
+
configs: z.array(z.record(z.unknown()))
|
|
1215
|
+
});
|
|
1216
|
+
/**
|
|
1217
|
+
* Success
|
|
1218
|
+
*/ const zGetRecentlyActiveNumbersResponse = z.object({
|
|
1219
|
+
numbers: z.array(z.record(z.unknown()))
|
|
1220
|
+
});
|
|
1221
|
+
/**
|
|
1222
|
+
* Success
|
|
1223
|
+
*/ const zGetStatsResponse = z.object({
|
|
1224
|
+
activeCalls: z.number(),
|
|
1225
|
+
deployedAt: z.string()
|
|
1226
|
+
});
|
|
1197
1227
|
const zGetPhoneLogsByPhoneNumberPath = z.object({
|
|
1198
1228
|
phoneNumber: z.string()
|
|
1199
1229
|
});
|
|
1230
|
+
/**
|
|
1231
|
+
* Success
|
|
1232
|
+
*/ const zGetPhoneLogsByPhoneNumberResponse = z.object({
|
|
1233
|
+
success: z.boolean(),
|
|
1234
|
+
phoneNumber: z.string(),
|
|
1235
|
+
calls: z.array(z.record(z.unknown())),
|
|
1236
|
+
logs: z.array(z.record(z.unknown()))
|
|
1237
|
+
});
|
|
1200
1238
|
const zPostOutboundCallBody = z.object({
|
|
1201
1239
|
to: z.string(),
|
|
1202
1240
|
from: z.string()
|
|
1203
1241
|
});
|
|
1242
|
+
/**
|
|
1243
|
+
* Success
|
|
1244
|
+
*/ const zPostOutboundCallResponse = z.object({
|
|
1245
|
+
success: z.boolean(),
|
|
1246
|
+
callSid: z.string(),
|
|
1247
|
+
status: z.string(),
|
|
1248
|
+
message: z.string()
|
|
1249
|
+
});
|
|
1204
1250
|
const zGetOutboundCallByCallSidPath = z.object({
|
|
1205
1251
|
callSid: z.string()
|
|
1206
1252
|
});
|
|
1253
|
+
/**
|
|
1254
|
+
* Success
|
|
1255
|
+
*/ const zGetOutboundCallByCallSidResponse = z.object({
|
|
1256
|
+
callSid: z.string(),
|
|
1257
|
+
status: z.string(),
|
|
1258
|
+
duration: z.number(),
|
|
1259
|
+
startTime: z.string(),
|
|
1260
|
+
endTime: z.string(),
|
|
1261
|
+
from: z.string(),
|
|
1262
|
+
to: z.string()
|
|
1263
|
+
});
|
|
1207
1264
|
const zPostOutboundCommunicationTextBody = z.record(z.unknown());
|
|
1265
|
+
/**
|
|
1266
|
+
* Success
|
|
1267
|
+
*/ const zPostOutboundCommunicationTextResponse = z.object({
|
|
1268
|
+
channel: z.string(),
|
|
1269
|
+
from: z.string(),
|
|
1270
|
+
outboundMessage: z.string(),
|
|
1271
|
+
to: z.string()
|
|
1272
|
+
});
|
|
1273
|
+
/**
|
|
1274
|
+
* Success
|
|
1275
|
+
*/ const zPostExportLogsResponse = z.object({
|
|
1276
|
+
success: z.boolean(),
|
|
1277
|
+
exported: z.number(),
|
|
1278
|
+
failed: z.number(),
|
|
1279
|
+
skipped: z.number(),
|
|
1280
|
+
details: z.array(z.record(z.unknown()))
|
|
1281
|
+
});
|
|
1282
|
+
/**
|
|
1283
|
+
* Success
|
|
1284
|
+
*/ const zDeleteLiveNumbersResponse = z.object({
|
|
1285
|
+
clearedCount: z.number(),
|
|
1286
|
+
clearedNumbers: z.array(z.string()),
|
|
1287
|
+
message: z.string(),
|
|
1288
|
+
terminatedCalls: z.array(z.string())
|
|
1289
|
+
});
|
|
1290
|
+
/**
|
|
1291
|
+
* Success
|
|
1292
|
+
*/ const zGetLiveNumbersResponse = z.object({
|
|
1293
|
+
liveNumbers: z.array(z.record(z.unknown())),
|
|
1294
|
+
count: z.number()
|
|
1295
|
+
});
|
|
1208
1296
|
const zDeleteLiveNumbersByPhoneNumberPath = z.object({
|
|
1209
1297
|
phoneNumber: z.string()
|
|
1210
1298
|
});
|
|
1299
|
+
/**
|
|
1300
|
+
* Success
|
|
1301
|
+
*/ const zDeleteLiveNumbersByPhoneNumberResponse = z.object({
|
|
1302
|
+
message: z.string(),
|
|
1303
|
+
phoneNumber: z.string(),
|
|
1304
|
+
terminatedCall: z.string()
|
|
1305
|
+
});
|
|
1211
1306
|
const zDeleteKillConversationByPhoneNumberPath = z.object({
|
|
1212
1307
|
phoneNumber: z.string()
|
|
1213
1308
|
});
|
|
1309
|
+
/**
|
|
1310
|
+
* Success
|
|
1311
|
+
*/ const zDeleteKillConversationByPhoneNumberResponse = z.object({
|
|
1312
|
+
message: z.string(),
|
|
1313
|
+
conversationsDeleted: z.array(z.string()),
|
|
1314
|
+
conversationsFailed: z.array(z.record(z.unknown())),
|
|
1315
|
+
callTerminated: z.string(),
|
|
1316
|
+
activeConversationCleared: z.boolean()
|
|
1317
|
+
});
|
|
1214
1318
|
const zPostSendEmailBody = z.object({
|
|
1215
1319
|
to: z.string(),
|
|
1216
1320
|
subject: z.string(),
|
|
1217
1321
|
text: z.string()
|
|
1218
1322
|
});
|
|
1323
|
+
/**
|
|
1324
|
+
* Success
|
|
1325
|
+
*/ const zPostSendEmailResponse = z.object({
|
|
1326
|
+
success: z.boolean()
|
|
1327
|
+
});
|
|
1219
1328
|
const zPostAddMessageBody = z.object({
|
|
1220
1329
|
to: z.string(),
|
|
1221
1330
|
content: z.string()
|
|
1222
1331
|
});
|
|
1332
|
+
/**
|
|
1333
|
+
* Success
|
|
1334
|
+
*/ const zPostAddMessageResponse = z.object({
|
|
1335
|
+
message: z.string(),
|
|
1336
|
+
success: z.boolean()
|
|
1337
|
+
});
|
|
1223
1338
|
const zPostActiveConversationsAgentClaimBody = z.record(z.unknown());
|
|
1339
|
+
/**
|
|
1340
|
+
* Success
|
|
1341
|
+
*/ const zPostActiveConversationsAgentClaimResponse = z.object({
|
|
1342
|
+
success: z.boolean()
|
|
1343
|
+
});
|
|
1224
1344
|
const zGetActiveConversationsAgentByAgentNumberPath = z.object({
|
|
1225
1345
|
agentNumber: z.string()
|
|
1226
1346
|
});
|
|
1347
|
+
/**
|
|
1348
|
+
* Success
|
|
1349
|
+
*/ const zGetActiveConversationsAgentByAgentNumberResponse = z.object({
|
|
1350
|
+
activeConversation: z.record(z.unknown())
|
|
1351
|
+
});
|
|
1227
1352
|
const zGetActiveConversationsByCustomerNumberPath = z.object({
|
|
1228
1353
|
customerNumber: z.string()
|
|
1229
1354
|
});
|
|
1355
|
+
/**
|
|
1356
|
+
* Success
|
|
1357
|
+
*/ const zGetActiveConversationsByCustomerNumberResponse = z.object({
|
|
1358
|
+
activeConversation: z.record(z.unknown())
|
|
1359
|
+
});
|
|
1360
|
+
/**
|
|
1361
|
+
* Success
|
|
1362
|
+
*/ const zGetHealthResponse = z.object({
|
|
1363
|
+
status: z.string()
|
|
1364
|
+
});
|
|
1230
1365
|
const zPostCallBody = z.record(z.unknown());
|
|
1366
|
+
/**
|
|
1367
|
+
* TwiML XML response connecting the call to ConversationRelay (or a Say if setup failed)
|
|
1368
|
+
*/ const zPostCallResponse = z.string();
|
|
1231
1369
|
const zPostLiveAgentBody = z.object({
|
|
1232
1370
|
From: z.string(),
|
|
1233
1371
|
To: z.string(),
|
|
1234
1372
|
Direction: z.string()
|
|
1235
1373
|
});
|
|
1374
|
+
/**
|
|
1375
|
+
* TwiML XML response (Dial, Enqueue, or external Flex handoff) — TwiML
|
|
1376
|
+
*/ const zPostLiveAgentResponse = z.string();
|
|
1236
1377
|
const zPostRedirectToLiveAgentBody = z.record(z.unknown());
|
|
1378
|
+
/**
|
|
1379
|
+
* Success
|
|
1380
|
+
*/ const zPostRedirectToLiveAgentResponse = z.object({
|
|
1381
|
+
callSid: z.string(),
|
|
1382
|
+
success: z.boolean()
|
|
1383
|
+
});
|
|
1237
1384
|
const zGetStressTestQuery = z.object({
|
|
1238
1385
|
From: z.string().optional(),
|
|
1239
1386
|
To: z.string().optional(),
|
|
@@ -1242,47 +1389,104 @@ const zGetStressTestQuery = z.object({
|
|
|
1242
1389
|
Confidence: z.string().optional(),
|
|
1243
1390
|
CallStatus: z.string().optional()
|
|
1244
1391
|
});
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
CallStatus: z.string().optional()
|
|
1392
|
+
/**
|
|
1393
|
+
* TwiML XML response with a Say/Gather/Redirect (or Hangup if the call closes) — TwiML
|
|
1394
|
+
*/ const zGetStressTestResponse = z.string();
|
|
1395
|
+
const zPostStressTestSmsBody = z.object({
|
|
1396
|
+
From: z.string(),
|
|
1397
|
+
To: z.string(),
|
|
1398
|
+
Body: z.string()
|
|
1253
1399
|
});
|
|
1400
|
+
/**
|
|
1401
|
+
* TwiML XML response that reads the SMS body aloud, then gathers speech — TwiML
|
|
1402
|
+
*/ const zPostStressTestSmsResponse = z.string();
|
|
1254
1403
|
const zPostWebchatSendBody = z.record(z.unknown());
|
|
1404
|
+
/**
|
|
1405
|
+
* Success
|
|
1406
|
+
*/ const zPostWebchatSendResponse = z.object({
|
|
1407
|
+
agentNumber: z.string(),
|
|
1408
|
+
conversationId: z.string(),
|
|
1409
|
+
identity: z.string(),
|
|
1410
|
+
response: z.string(),
|
|
1411
|
+
status: z.string()
|
|
1412
|
+
});
|
|
1255
1413
|
const zPostCintelOperatorsBody = z.record(z.unknown());
|
|
1414
|
+
/**
|
|
1415
|
+
* Success
|
|
1416
|
+
*/ const zPostCintelOperatorsResponse = z.object({
|
|
1417
|
+
success: z.boolean()
|
|
1418
|
+
});
|
|
1256
1419
|
const zPostFlexTranscriptionBody = z.record(z.unknown());
|
|
1420
|
+
/**
|
|
1421
|
+
* "OK" (Express default sendStatus body, no JSON payload)
|
|
1422
|
+
*/ const zPostFlexTranscriptionResponse = z.string();
|
|
1257
1423
|
const zPostTaskrouterWebhookBody = z.record(z.unknown());
|
|
1424
|
+
/**
|
|
1425
|
+
* "OK" (Express default sendStatus body, no JSON payload)
|
|
1426
|
+
*/ const zPostTaskrouterWebhookResponse = z.string();
|
|
1258
1427
|
const zPostResolvePhoneBody = z.record(z.unknown());
|
|
1259
1428
|
const zPostCommunicationTextBody = z.record(z.unknown());
|
|
1429
|
+
/**
|
|
1430
|
+
* TwiML XML response, optionally containing the LLM's reply message
|
|
1431
|
+
*/ const zPostCommunicationTextResponse = z.string();
|
|
1432
|
+
/**
|
|
1433
|
+
* The OpenAPI 3.1 spec document
|
|
1434
|
+
*/ const zGetDocsOpenapiJsonResponse = z.record(z.unknown());
|
|
1260
1435
|
|
|
1261
1436
|
var zod_gen = {
|
|
1262
1437
|
__proto__: null,
|
|
1263
1438
|
zDeleteKillConversationByPhoneNumberPath: zDeleteKillConversationByPhoneNumberPath,
|
|
1439
|
+
zDeleteKillConversationByPhoneNumberResponse: zDeleteKillConversationByPhoneNumberResponse,
|
|
1264
1440
|
zDeleteLiveNumbersByPhoneNumberPath: zDeleteLiveNumbersByPhoneNumberPath,
|
|
1441
|
+
zDeleteLiveNumbersByPhoneNumberResponse: zDeleteLiveNumbersByPhoneNumberResponse,
|
|
1442
|
+
zDeleteLiveNumbersResponse: zDeleteLiveNumbersResponse,
|
|
1443
|
+
zErrorResponse: zErrorResponse,
|
|
1265
1444
|
zGetActiveConversationsAgentByAgentNumberPath: zGetActiveConversationsAgentByAgentNumberPath,
|
|
1445
|
+
zGetActiveConversationsAgentByAgentNumberResponse: zGetActiveConversationsAgentByAgentNumberResponse,
|
|
1266
1446
|
zGetActiveConversationsByCustomerNumberPath: zGetActiveConversationsByCustomerNumberPath,
|
|
1447
|
+
zGetActiveConversationsByCustomerNumberResponse: zGetActiveConversationsByCustomerNumberResponse,
|
|
1448
|
+
zGetCountryConfigsResponse: zGetCountryConfigsResponse,
|
|
1449
|
+
zGetDocsOpenapiJsonResponse: zGetDocsOpenapiJsonResponse,
|
|
1450
|
+
zGetHealthResponse: zGetHealthResponse,
|
|
1451
|
+
zGetLiveNumbersResponse: zGetLiveNumbersResponse,
|
|
1267
1452
|
zGetOutboundCallByCallSidPath: zGetOutboundCallByCallSidPath,
|
|
1453
|
+
zGetOutboundCallByCallSidResponse: zGetOutboundCallByCallSidResponse,
|
|
1268
1454
|
zGetPhoneLogsByPhoneNumberPath: zGetPhoneLogsByPhoneNumberPath,
|
|
1455
|
+
zGetPhoneLogsByPhoneNumberResponse: zGetPhoneLogsByPhoneNumberResponse,
|
|
1456
|
+
zGetRecentlyActiveNumbersResponse: zGetRecentlyActiveNumbersResponse,
|
|
1457
|
+
zGetStatsResponse: zGetStatsResponse,
|
|
1269
1458
|
zGetStressTestQuery: zGetStressTestQuery,
|
|
1459
|
+
zGetStressTestResponse: zGetStressTestResponse,
|
|
1270
1460
|
zPostActiveConversationsAgentClaimBody: zPostActiveConversationsAgentClaimBody,
|
|
1461
|
+
zPostActiveConversationsAgentClaimResponse: zPostActiveConversationsAgentClaimResponse,
|
|
1271
1462
|
zPostAddMessageBody: zPostAddMessageBody,
|
|
1463
|
+
zPostAddMessageResponse: zPostAddMessageResponse,
|
|
1272
1464
|
zPostCallBody: zPostCallBody,
|
|
1465
|
+
zPostCallResponse: zPostCallResponse,
|
|
1273
1466
|
zPostCintelOperatorsBody: zPostCintelOperatorsBody,
|
|
1467
|
+
zPostCintelOperatorsResponse: zPostCintelOperatorsResponse,
|
|
1274
1468
|
zPostCommunicationTextBody: zPostCommunicationTextBody,
|
|
1469
|
+
zPostCommunicationTextResponse: zPostCommunicationTextResponse,
|
|
1470
|
+
zPostExportLogsResponse: zPostExportLogsResponse,
|
|
1275
1471
|
zPostFlexTranscriptionBody: zPostFlexTranscriptionBody,
|
|
1472
|
+
zPostFlexTranscriptionResponse: zPostFlexTranscriptionResponse,
|
|
1276
1473
|
zPostLiveAgentBody: zPostLiveAgentBody,
|
|
1474
|
+
zPostLiveAgentResponse: zPostLiveAgentResponse,
|
|
1277
1475
|
zPostOutboundCallBody: zPostOutboundCallBody,
|
|
1476
|
+
zPostOutboundCallResponse: zPostOutboundCallResponse,
|
|
1278
1477
|
zPostOutboundCommunicationTextBody: zPostOutboundCommunicationTextBody,
|
|
1478
|
+
zPostOutboundCommunicationTextResponse: zPostOutboundCommunicationTextResponse,
|
|
1279
1479
|
zPostRedirectToLiveAgentBody: zPostRedirectToLiveAgentBody,
|
|
1480
|
+
zPostRedirectToLiveAgentResponse: zPostRedirectToLiveAgentResponse,
|
|
1280
1481
|
zPostResolvePhoneBody: zPostResolvePhoneBody,
|
|
1281
1482
|
zPostSendEmailBody: zPostSendEmailBody,
|
|
1483
|
+
zPostSendEmailResponse: zPostSendEmailResponse,
|
|
1282
1484
|
zPostStressTestSmsBody: zPostStressTestSmsBody,
|
|
1283
|
-
|
|
1485
|
+
zPostStressTestSmsResponse: zPostStressTestSmsResponse,
|
|
1284
1486
|
zPostTaskrouterWebhookBody: zPostTaskrouterWebhookBody,
|
|
1285
|
-
|
|
1487
|
+
zPostTaskrouterWebhookResponse: zPostTaskrouterWebhookResponse,
|
|
1488
|
+
zPostWebchatSendBody: zPostWebchatSendBody,
|
|
1489
|
+
zPostWebchatSendResponse: zPostWebchatSendResponse
|
|
1286
1490
|
};
|
|
1287
1491
|
|
|
1288
1492
|
export { createRampAgentClient, deleteKillConversationByPhoneNumber, deleteLiveNumbers, deleteLiveNumbersByPhoneNumber, getActiveConversationsAgentByAgentNumber, getActiveConversationsByCustomerNumber, getCountryConfigs, getDocsOpenapiJson, getHealth, getLiveNumbers, getOutboundCallByCallSid, getPhoneLogsByPhoneNumber, getRecentlyActiveNumbers, getStats, getStressTest, postActiveConversationsAgentClaim, postAddMessage, postCall, postCintelOperators, postCommunicationText, postExportLogs, postFlexTranscription, postLiveAgent, postOutboundCall, postOutboundCommunicationText, postRedirectToLiveAgent, postResolvePhone, postSendEmail, postStressTestSms, postTaskrouterWebhook, postWebchatSend, zod_gen as schemas };
|
package/package.json
CHANGED
package/src/generated/index.ts
CHANGED
|
@@ -36,93 +36,144 @@ export {
|
|
|
36
36
|
export type {
|
|
37
37
|
ClientOptions,
|
|
38
38
|
DeleteKillConversationByPhoneNumberData,
|
|
39
|
+
DeleteKillConversationByPhoneNumberError,
|
|
39
40
|
DeleteKillConversationByPhoneNumberErrors,
|
|
41
|
+
DeleteKillConversationByPhoneNumberResponse,
|
|
40
42
|
DeleteKillConversationByPhoneNumberResponses,
|
|
41
43
|
DeleteLiveNumbersByPhoneNumberData,
|
|
44
|
+
DeleteLiveNumbersByPhoneNumberError,
|
|
42
45
|
DeleteLiveNumbersByPhoneNumberErrors,
|
|
46
|
+
DeleteLiveNumbersByPhoneNumberResponse,
|
|
43
47
|
DeleteLiveNumbersByPhoneNumberResponses,
|
|
44
48
|
DeleteLiveNumbersData,
|
|
49
|
+
DeleteLiveNumbersError,
|
|
45
50
|
DeleteLiveNumbersErrors,
|
|
51
|
+
DeleteLiveNumbersResponse,
|
|
46
52
|
DeleteLiveNumbersResponses,
|
|
53
|
+
ErrorResponse,
|
|
47
54
|
GetActiveConversationsAgentByAgentNumberData,
|
|
55
|
+
GetActiveConversationsAgentByAgentNumberError,
|
|
48
56
|
GetActiveConversationsAgentByAgentNumberErrors,
|
|
57
|
+
GetActiveConversationsAgentByAgentNumberResponse,
|
|
49
58
|
GetActiveConversationsAgentByAgentNumberResponses,
|
|
50
59
|
GetActiveConversationsByCustomerNumberData,
|
|
60
|
+
GetActiveConversationsByCustomerNumberError,
|
|
51
61
|
GetActiveConversationsByCustomerNumberErrors,
|
|
62
|
+
GetActiveConversationsByCustomerNumberResponse,
|
|
52
63
|
GetActiveConversationsByCustomerNumberResponses,
|
|
53
64
|
GetCountryConfigsData,
|
|
65
|
+
GetCountryConfigsError,
|
|
54
66
|
GetCountryConfigsErrors,
|
|
67
|
+
GetCountryConfigsResponse,
|
|
55
68
|
GetCountryConfigsResponses,
|
|
56
69
|
GetDocsOpenapiJsonData,
|
|
70
|
+
GetDocsOpenapiJsonError,
|
|
57
71
|
GetDocsOpenapiJsonErrors,
|
|
72
|
+
GetDocsOpenapiJsonResponse,
|
|
58
73
|
GetDocsOpenapiJsonResponses,
|
|
59
74
|
GetHealthData,
|
|
60
75
|
GetHealthErrors,
|
|
76
|
+
GetHealthResponse,
|
|
61
77
|
GetHealthResponses,
|
|
62
78
|
GetLiveNumbersData,
|
|
79
|
+
GetLiveNumbersError,
|
|
63
80
|
GetLiveNumbersErrors,
|
|
81
|
+
GetLiveNumbersResponse,
|
|
64
82
|
GetLiveNumbersResponses,
|
|
65
83
|
GetOutboundCallByCallSidData,
|
|
84
|
+
GetOutboundCallByCallSidError,
|
|
66
85
|
GetOutboundCallByCallSidErrors,
|
|
86
|
+
GetOutboundCallByCallSidResponse,
|
|
67
87
|
GetOutboundCallByCallSidResponses,
|
|
68
88
|
GetPhoneLogsByPhoneNumberData,
|
|
89
|
+
GetPhoneLogsByPhoneNumberError,
|
|
69
90
|
GetPhoneLogsByPhoneNumberErrors,
|
|
91
|
+
GetPhoneLogsByPhoneNumberResponse,
|
|
70
92
|
GetPhoneLogsByPhoneNumberResponses,
|
|
71
93
|
GetRecentlyActiveNumbersData,
|
|
94
|
+
GetRecentlyActiveNumbersError,
|
|
72
95
|
GetRecentlyActiveNumbersErrors,
|
|
96
|
+
GetRecentlyActiveNumbersResponse,
|
|
73
97
|
GetRecentlyActiveNumbersResponses,
|
|
74
98
|
GetStatsData,
|
|
99
|
+
GetStatsError,
|
|
75
100
|
GetStatsErrors,
|
|
101
|
+
GetStatsResponse,
|
|
76
102
|
GetStatsResponses,
|
|
77
103
|
GetStressTestData,
|
|
78
104
|
GetStressTestErrors,
|
|
105
|
+
GetStressTestResponse,
|
|
79
106
|
GetStressTestResponses,
|
|
80
107
|
PostActiveConversationsAgentClaimData,
|
|
108
|
+
PostActiveConversationsAgentClaimError,
|
|
81
109
|
PostActiveConversationsAgentClaimErrors,
|
|
110
|
+
PostActiveConversationsAgentClaimResponse,
|
|
82
111
|
PostActiveConversationsAgentClaimResponses,
|
|
83
112
|
PostAddMessageData,
|
|
113
|
+
PostAddMessageError,
|
|
84
114
|
PostAddMessageErrors,
|
|
115
|
+
PostAddMessageResponse,
|
|
85
116
|
PostAddMessageResponses,
|
|
86
117
|
PostCallData,
|
|
87
118
|
PostCallErrors,
|
|
119
|
+
PostCallResponse,
|
|
88
120
|
PostCallResponses,
|
|
89
121
|
PostCintelOperatorsData,
|
|
122
|
+
PostCintelOperatorsError,
|
|
90
123
|
PostCintelOperatorsErrors,
|
|
124
|
+
PostCintelOperatorsResponse,
|
|
91
125
|
PostCintelOperatorsResponses,
|
|
92
126
|
PostCommunicationTextData,
|
|
93
127
|
PostCommunicationTextErrors,
|
|
128
|
+
PostCommunicationTextResponse,
|
|
94
129
|
PostCommunicationTextResponses,
|
|
95
130
|
PostExportLogsData,
|
|
131
|
+
PostExportLogsError,
|
|
96
132
|
PostExportLogsErrors,
|
|
133
|
+
PostExportLogsResponse,
|
|
97
134
|
PostExportLogsResponses,
|
|
98
135
|
PostFlexTranscriptionData,
|
|
99
136
|
PostFlexTranscriptionErrors,
|
|
137
|
+
PostFlexTranscriptionResponse,
|
|
100
138
|
PostFlexTranscriptionResponses,
|
|
101
139
|
PostLiveAgentData,
|
|
102
140
|
PostLiveAgentErrors,
|
|
141
|
+
PostLiveAgentResponse,
|
|
103
142
|
PostLiveAgentResponses,
|
|
104
143
|
PostOutboundCallData,
|
|
144
|
+
PostOutboundCallError,
|
|
105
145
|
PostOutboundCallErrors,
|
|
146
|
+
PostOutboundCallResponse,
|
|
106
147
|
PostOutboundCallResponses,
|
|
107
148
|
PostOutboundCommunicationTextData,
|
|
149
|
+
PostOutboundCommunicationTextError,
|
|
108
150
|
PostOutboundCommunicationTextErrors,
|
|
151
|
+
PostOutboundCommunicationTextResponse,
|
|
109
152
|
PostOutboundCommunicationTextResponses,
|
|
110
153
|
PostRedirectToLiveAgentData,
|
|
154
|
+
PostRedirectToLiveAgentError,
|
|
111
155
|
PostRedirectToLiveAgentErrors,
|
|
156
|
+
PostRedirectToLiveAgentResponse,
|
|
112
157
|
PostRedirectToLiveAgentResponses,
|
|
113
158
|
PostResolvePhoneData,
|
|
114
159
|
PostResolvePhoneErrors,
|
|
115
160
|
PostResolvePhoneResponses,
|
|
116
161
|
PostSendEmailData,
|
|
162
|
+
PostSendEmailError,
|
|
117
163
|
PostSendEmailErrors,
|
|
164
|
+
PostSendEmailResponse,
|
|
118
165
|
PostSendEmailResponses,
|
|
119
166
|
PostStressTestSmsData,
|
|
120
167
|
PostStressTestSmsErrors,
|
|
168
|
+
PostStressTestSmsResponse,
|
|
121
169
|
PostStressTestSmsResponses,
|
|
122
170
|
PostTaskrouterWebhookData,
|
|
123
171
|
PostTaskrouterWebhookErrors,
|
|
172
|
+
PostTaskrouterWebhookResponse,
|
|
124
173
|
PostTaskrouterWebhookResponses,
|
|
125
174
|
PostWebchatSendData,
|
|
175
|
+
PostWebchatSendError,
|
|
126
176
|
PostWebchatSendErrors,
|
|
177
|
+
PostWebchatSendResponse,
|
|
127
178
|
PostWebchatSendResponses,
|
|
128
179
|
} from './types.gen';
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -250,6 +250,8 @@ export const postOutboundCommunicationText = <ThrowOnError extends boolean = fal
|
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
252
|
* POST /export-logs
|
|
253
|
+
*
|
|
254
|
+
* Manually triggers export of pending phone logs to Snowflake
|
|
253
255
|
*/
|
|
254
256
|
export const postExportLogs = <ThrowOnError extends boolean = false>(
|
|
255
257
|
options?: Options<PostExportLogsData, ThrowOnError>,
|
|
@@ -373,6 +375,8 @@ export const postAddMessage = <ThrowOnError extends boolean = false>(
|
|
|
373
375
|
|
|
374
376
|
/**
|
|
375
377
|
* POST /active-conversations/agent/claim
|
|
378
|
+
*
|
|
379
|
+
* Claims an unassigned campaign conversation so the requesting frontend owns it
|
|
376
380
|
*/
|
|
377
381
|
export const postActiveConversationsAgentClaim = <ThrowOnError extends boolean = false>(
|
|
378
382
|
options: Options<PostActiveConversationsAgentClaimData, ThrowOnError>,
|
|
@@ -397,6 +401,8 @@ export const postActiveConversationsAgentClaim = <ThrowOnError extends boolean =
|
|
|
397
401
|
|
|
398
402
|
/**
|
|
399
403
|
* GET /active-conversations/agent/:agentNumber
|
|
404
|
+
*
|
|
405
|
+
* Finds an unassigned campaign conversation for the given agent number (campaign polling)
|
|
400
406
|
*/
|
|
401
407
|
export const getActiveConversationsAgentByAgentNumber = <ThrowOnError extends boolean = false>(
|
|
402
408
|
options: Options<GetActiveConversationsAgentByAgentNumberData, ThrowOnError>,
|
|
@@ -521,7 +527,7 @@ export const getStressTest = <ThrowOnError extends boolean = false>(
|
|
|
521
527
|
/**
|
|
522
528
|
* POST /stress-test-sms
|
|
523
529
|
*
|
|
524
|
-
* Twilio webhook endpoint for stress
|
|
530
|
+
* Twilio webhook endpoint for SMS messages during stress test calls
|
|
525
531
|
*/
|
|
526
532
|
export const postStressTestSms = <ThrowOnError extends boolean = false>(
|
|
527
533
|
options: Options<PostStressTestSmsData, ThrowOnError>,
|
|
@@ -579,6 +585,8 @@ export const postCintelOperators = <ThrowOnError extends boolean = false>(
|
|
|
579
585
|
|
|
580
586
|
/**
|
|
581
587
|
* POST /flex-transcription
|
|
588
|
+
*
|
|
589
|
+
* Twilio real-time transcription webhook for Flex calls
|
|
582
590
|
*/
|
|
583
591
|
export const postFlexTranscription = <ThrowOnError extends boolean = false>(
|
|
584
592
|
options: Options<PostFlexTranscriptionData, ThrowOnError>,
|
|
@@ -598,6 +606,8 @@ export const postFlexTranscription = <ThrowOnError extends boolean = false>(
|
|
|
598
606
|
|
|
599
607
|
/**
|
|
600
608
|
* POST /taskrouter-webhook
|
|
609
|
+
*
|
|
610
|
+
* Twilio TaskRouter event webhook
|
|
601
611
|
*/
|
|
602
612
|
export const postTaskrouterWebhook = <ThrowOnError extends boolean = false>(
|
|
603
613
|
options: Options<PostTaskrouterWebhookData, ThrowOnError>,
|