@getsupervisor/agents-studio-sdk 1.41.2-patch.4 → 1.41.2-patch.6
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/CHANGELOG.md +4 -4
- package/README.md +30 -20
- package/dist/index.cjs +69 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +92 -6
- package/dist/index.d.ts +92 -6
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
|
|
94
94
|
### Features
|
|
95
95
|
|
|
96
|
-
- add default language constant and update
|
|
96
|
+
- add default language constant and update blueprint mapper to use it ([85d2d8c](https://github.com/julio-supervisor/agents-studio-be/commit/85d2d8ccc908254d351855158ecc09f14dbf6c6f))
|
|
97
97
|
- implement delete instruction functionality with command handler and controller ([af983f5](https://github.com/julio-supervisor/agents-studio-be/commit/af983f5254055d35d3972d0bcbdb12a52b48c785))
|
|
98
98
|
|
|
99
99
|
## v1.34.0
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
|
|
103
103
|
### Features
|
|
104
104
|
|
|
105
|
-
- enhance instruction management by adding active and non-deleted filtering, and integrate instructions into the
|
|
106
|
-
- implement VoiceBlueprintSyncService for
|
|
105
|
+
- enhance instruction management by adding active and non-deleted filtering, and integrate instructions into the agent blueprint mapping ([baadb5f](https://github.com/julio-supervisor/agents-studio-be/commit/baadb5f561749d441c4757435fb920bb48556d7d))
|
|
106
|
+
- implement VoiceBlueprintSyncService for blueprint synchronization ([6b8f03f](https://github.com/julio-supervisor/agents-studio-be/commit/6b8f03f77ca1d2b91a9628db055e2799aa039f53))
|
|
107
107
|
- introduce buildClientMock helper for consistent workspaceId handling in tests ([ae6eb30](https://github.com/julio-supervisor/agents-studio-be/commit/ae6eb305b16f677dea03a21bdfc8559c13cc641a))
|
|
108
108
|
|
|
109
109
|
## v1.33.0
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
|
|
278
278
|
### Features
|
|
279
279
|
|
|
280
|
-
- Agrega `
|
|
280
|
+
- Agrega `ToolGuidelinesService` y lineamientos de uso para voice calls dentro del SDK, permitiendo mostrar requisitos y recomendaciones antes de ejecutar herramientas de voz ([db0e013](https://github.com/julio-supervisor/agents-studio-be/commit/db0e013d8f09d2a0a794efccb7700729ad752fd4)).
|
|
281
281
|
|
|
282
282
|
## [1.19.0](https://github.com/julio-supervisor/agents-studio-be/compare/v1.18.0...v1.19.0) (2025-10-29)
|
|
283
283
|
|
package/README.md
CHANGED
|
@@ -524,26 +524,36 @@ const { key, ...metadata } = await http
|
|
|
524
524
|
|
|
525
525
|
### Scopes disponibles (octubre 2025)
|
|
526
526
|
|
|
527
|
-
| Scope | Permiso principal
|
|
528
|
-
| -------------------------- |
|
|
529
|
-
| `agents:read` |
|
|
530
|
-
| `agents:write` | Crear
|
|
531
|
-
| `agent-
|
|
532
|
-
| `agent-
|
|
533
|
-
| `agent-
|
|
534
|
-
| `agent-
|
|
535
|
-
| `agent-
|
|
536
|
-
| `agent-
|
|
537
|
-
| `
|
|
538
|
-
| `
|
|
539
|
-
| `
|
|
540
|
-
| `
|
|
541
|
-
| `
|
|
542
|
-
| `
|
|
543
|
-
| `
|
|
544
|
-
| `
|
|
545
|
-
| `
|
|
546
|
-
| `
|
|
527
|
+
| Scope | Permiso principal |
|
|
528
|
+
| -------------------------- | ------------------------------------------------------------------------- |
|
|
529
|
+
| `agents:read` | Listar y consultar agentes del workspace. |
|
|
530
|
+
| `agents:write` | Crear/actualizar/eliminar agentes y gestionar su configuración operativa. |
|
|
531
|
+
| `agent-versions:read` | Listar y consultar versiones de un agente. |
|
|
532
|
+
| `agent-versions:write` | Crear, clonar, restaurar y publicar versiones de un agente. |
|
|
533
|
+
| `agent-instructions:read` | Leer instrucciones (a nivel agente y por versión). |
|
|
534
|
+
| `agent-instructions:write` | Crear, actualizar o borrar instrucciones personalizadas. |
|
|
535
|
+
| `agent-blueprints:read` | Consultar el blueprint (personalidad) de una versión de agente. |
|
|
536
|
+
| `agent-blueprints:write` | Editar blueprint: personalidad, reglas, audiencia, objetivos, etc. |
|
|
537
|
+
| `blueprint-stages:read` | Listar y consultar stages del blueprint. |
|
|
538
|
+
| `blueprint-stages:write` | Crear, actualizar o reordenar stages del blueprint. |
|
|
539
|
+
| `stage-triggers:read` | Consultar triggers que conectan stages y sus condiciones. |
|
|
540
|
+
| `stage-triggers:write` | Crear, actualizar o eliminar triggers entre stages. |
|
|
541
|
+
| `agent-schedules:read` | Consultar horario semanal y excepciones vigentes. |
|
|
542
|
+
| `agent-schedules:write` | Crear o modificar horarios y excepciones. |
|
|
543
|
+
| `campaigns:read` | Consultar campañas y sus ejecuciones. |
|
|
544
|
+
| `campaigns:write` | Crear y disparar campañas batch. |
|
|
545
|
+
| `calls:read` | Consultar llamadas (Speech Analytics) del workspace. |
|
|
546
|
+
| `catalogs:read` | Navegar catálogos globales y por workspace (idiomas, tonos, voces, etc.). |
|
|
547
|
+
| `catalogs:write` | Registrar o ajustar ítems de catálogo. |
|
|
548
|
+
| `tools:read` | Descubrir tools disponibles, recursos y capacidades declaradas. |
|
|
549
|
+
| `tools:connections:read` | Listar conexiones configuradas entre agentes y tools. |
|
|
550
|
+
| `tools:connections:write` | Crear o actualizar conexiones entre agentes y tools. |
|
|
551
|
+
| `tools:execute` | Ejecutar acciones de una tool. |
|
|
552
|
+
| `webhooks:read` | Listar webhooks y sus suscripciones activas. |
|
|
553
|
+
| `webhooks:write` | Crear, actualizar o eliminar webhooks y suscripciones. |
|
|
554
|
+
| `api-keys:read` | Listar credenciales existentes y revelar su valor. |
|
|
555
|
+
| `api-keys:write` | Emitir o revocar API Keys. |
|
|
556
|
+
| `workspaces:read` | Consultar workspaces disponibles y sus metadatos. |
|
|
547
557
|
|
|
548
558
|
Consulta el OpenAPI (`docs/api-spec/openapi.yaml`) para validar scopes adicionales (por ejemplo, específicos de conocimientos o teléfonos) y su mapeo exacto por operación.
|
|
549
559
|
|
package/dist/index.cjs
CHANGED
|
@@ -43,6 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
createAgentVersionsApi: () => createAgentVersionsApi,
|
|
44
44
|
createAgentsApi: () => createAgentsApi,
|
|
45
45
|
createApiKeysApi: () => createApiKeysApi,
|
|
46
|
+
createCallsApi: () => createCallsApi,
|
|
46
47
|
createCampaignsApi: () => createCampaignsApi,
|
|
47
48
|
createCatalogTemplatesApi: () => createCatalogTemplatesApi,
|
|
48
49
|
createCatalogsApi: () => createCatalogsApi,
|
|
@@ -259,6 +260,11 @@ function createHttp(cfg) {
|
|
|
259
260
|
}
|
|
260
261
|
|
|
261
262
|
// src/utils/query.ts
|
|
263
|
+
function buildSearchParams(entries) {
|
|
264
|
+
const searchParams = new URLSearchParams();
|
|
265
|
+
entries.forEach(([key, value]) => appendParam(searchParams, key, value));
|
|
266
|
+
return searchParams;
|
|
267
|
+
}
|
|
262
268
|
function serializeListOptions(options = {}, extra = {}) {
|
|
263
269
|
const params = new URLSearchParams();
|
|
264
270
|
appendParam(params, "page", options.page);
|
|
@@ -1334,6 +1340,66 @@ function createApiKeysApi(cfg) {
|
|
|
1334
1340
|
};
|
|
1335
1341
|
}
|
|
1336
1342
|
|
|
1343
|
+
// src/api/calls.ts
|
|
1344
|
+
function createCallsApi(cfg) {
|
|
1345
|
+
const { base, doFetch } = createHttp(cfg);
|
|
1346
|
+
const fetchCallsPage = async (options = {}) => {
|
|
1347
|
+
const {
|
|
1348
|
+
agentBatchId,
|
|
1349
|
+
agentId,
|
|
1350
|
+
executionId,
|
|
1351
|
+
recordedAfter,
|
|
1352
|
+
recordedBefore,
|
|
1353
|
+
durationBucket,
|
|
1354
|
+
goalStatus,
|
|
1355
|
+
query: searchQuery,
|
|
1356
|
+
...listOptions
|
|
1357
|
+
} = options ?? {};
|
|
1358
|
+
const query = serializeListOptions(listOptions, {
|
|
1359
|
+
agentBatchId,
|
|
1360
|
+
agentId,
|
|
1361
|
+
executionId,
|
|
1362
|
+
recordedAfter,
|
|
1363
|
+
recordedBefore,
|
|
1364
|
+
durationBucket,
|
|
1365
|
+
goalStatus,
|
|
1366
|
+
query: searchQuery
|
|
1367
|
+
});
|
|
1368
|
+
const res = await doFetch(`${base}/calls`, {
|
|
1369
|
+
method: "GET",
|
|
1370
|
+
query
|
|
1371
|
+
});
|
|
1372
|
+
return res.json();
|
|
1373
|
+
};
|
|
1374
|
+
return {
|
|
1375
|
+
async list(options = {}) {
|
|
1376
|
+
const normalizedOptions = { ...options ?? {} };
|
|
1377
|
+
const response = await fetchCallsPage(normalizedOptions);
|
|
1378
|
+
return attachPaginator(response, fetchCallsPage, normalizedOptions);
|
|
1379
|
+
},
|
|
1380
|
+
async stream(options) {
|
|
1381
|
+
const query = buildSearchParams([
|
|
1382
|
+
["after", options.after],
|
|
1383
|
+
["limit", options.limit],
|
|
1384
|
+
["agentBatchId", options.agentBatchId],
|
|
1385
|
+
["agentId", options.agentId],
|
|
1386
|
+
["executionId", options.executionId]
|
|
1387
|
+
]);
|
|
1388
|
+
const res = await doFetch(`${base}/calls/stream`, {
|
|
1389
|
+
method: "GET",
|
|
1390
|
+
query
|
|
1391
|
+
});
|
|
1392
|
+
return res.json();
|
|
1393
|
+
},
|
|
1394
|
+
async get(callId) {
|
|
1395
|
+
const res = await doFetch(`${base}/calls/${callId}`, {
|
|
1396
|
+
method: "GET"
|
|
1397
|
+
});
|
|
1398
|
+
return res.json();
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1337
1403
|
// src/api/campaigns.ts
|
|
1338
1404
|
function createCampaignsApi(cfg) {
|
|
1339
1405
|
const { base, doFetch } = createHttp(cfg);
|
|
@@ -2081,6 +2147,7 @@ function createClient(initialCfg) {
|
|
|
2081
2147
|
const stagesApi = createAgentStagesApi(runtimeCfg);
|
|
2082
2148
|
const voicesApi = createVoicesApi(runtimeCfg);
|
|
2083
2149
|
const apiKeysApi = createApiKeysApi(runtimeCfg);
|
|
2150
|
+
const callsApi = createCallsApi(runtimeCfg);
|
|
2084
2151
|
const catalogsApi = createCatalogsApi(runtimeCfg);
|
|
2085
2152
|
const catalogTemplatesApi = createCatalogTemplatesApi(runtimeCfg);
|
|
2086
2153
|
const webhooksApi = createWebhooksApi(runtimeCfg);
|
|
@@ -2152,6 +2219,7 @@ function createClient(initialCfg) {
|
|
|
2152
2219
|
campaigns: createCampaignsApi(runtimeCfg),
|
|
2153
2220
|
voices: voicesApi,
|
|
2154
2221
|
apiKeys: apiKeysApi,
|
|
2222
|
+
calls: callsApi,
|
|
2155
2223
|
webhooks: webhooksApi
|
|
2156
2224
|
};
|
|
2157
2225
|
return {
|
|
@@ -2235,6 +2303,7 @@ function createClient(initialCfg) {
|
|
|
2235
2303
|
createAgentVersionsApi,
|
|
2236
2304
|
createAgentsApi,
|
|
2237
2305
|
createApiKeysApi,
|
|
2306
|
+
createCallsApi,
|
|
2238
2307
|
createCampaignsApi,
|
|
2239
2308
|
createCatalogTemplatesApi,
|
|
2240
2309
|
createCatalogsApi,
|