@getsupervisor/agents-studio-sdk 1.41.2-patch.5 → 1.41.2-patch.7
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/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -57
- package/dist/index.d.ts +63 -57
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1350,6 +1350,9 @@ function createCallsApi(cfg) {
|
|
|
1350
1350
|
executionId,
|
|
1351
1351
|
recordedAfter,
|
|
1352
1352
|
recordedBefore,
|
|
1353
|
+
durationBucket,
|
|
1354
|
+
goalStatus,
|
|
1355
|
+
query: searchQuery,
|
|
1353
1356
|
...listOptions
|
|
1354
1357
|
} = options ?? {};
|
|
1355
1358
|
const query = serializeListOptions(listOptions, {
|
|
@@ -1357,7 +1360,10 @@ function createCallsApi(cfg) {
|
|
|
1357
1360
|
agentId,
|
|
1358
1361
|
executionId,
|
|
1359
1362
|
recordedAfter,
|
|
1360
|
-
recordedBefore
|
|
1363
|
+
recordedBefore,
|
|
1364
|
+
durationBucket,
|
|
1365
|
+
goalStatus,
|
|
1366
|
+
query: searchQuery
|
|
1361
1367
|
});
|
|
1362
1368
|
const res = await doFetch(`${base}/calls`, {
|
|
1363
1369
|
method: "GET",
|
|
@@ -1377,7 +1383,10 @@ function createCallsApi(cfg) {
|
|
|
1377
1383
|
["limit", options.limit],
|
|
1378
1384
|
["agentBatchId", options.agentBatchId],
|
|
1379
1385
|
["agentId", options.agentId],
|
|
1380
|
-
["executionId", options.executionId]
|
|
1386
|
+
["executionId", options.executionId],
|
|
1387
|
+
["durationBucket", options.durationBucket],
|
|
1388
|
+
["goalStatus", options.goalStatus],
|
|
1389
|
+
["query", options.query]
|
|
1381
1390
|
]);
|
|
1382
1391
|
const res = await doFetch(`${base}/calls/stream`, {
|
|
1383
1392
|
method: "GET",
|
|
@@ -2094,8 +2103,8 @@ function createWorkspacesApi(cfg) {
|
|
|
2094
2103
|
const fetchPage = (options) => fetchPhonesPage(workspaceId, options);
|
|
2095
2104
|
return attachPaginator(response, fetchPage, normalizedOptions);
|
|
2096
2105
|
},
|
|
2097
|
-
async enable(
|
|
2098
|
-
const res = await doFetch(`${base}/workspaces
|
|
2106
|
+
async enable(payload) {
|
|
2107
|
+
const res = await doFetch(`${base}/workspaces/enable`, {
|
|
2099
2108
|
method: "POST",
|
|
2100
2109
|
headers: jsonHeaders,
|
|
2101
2110
|
body: JSON.stringify(payload)
|