@getsupervisor/agents-studio-sdk 1.41.2-patch.3 → 1.41.2-patch.5
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 +63 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -6
- package/dist/index.d.ts +89 -6
- package/dist/index.js +62 -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,60 @@ 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
|
+
...listOptions
|
|
1354
|
+
} = options ?? {};
|
|
1355
|
+
const query = serializeListOptions(listOptions, {
|
|
1356
|
+
agentBatchId,
|
|
1357
|
+
agentId,
|
|
1358
|
+
executionId,
|
|
1359
|
+
recordedAfter,
|
|
1360
|
+
recordedBefore
|
|
1361
|
+
});
|
|
1362
|
+
const res = await doFetch(`${base}/calls`, {
|
|
1363
|
+
method: "GET",
|
|
1364
|
+
query
|
|
1365
|
+
});
|
|
1366
|
+
return res.json();
|
|
1367
|
+
};
|
|
1368
|
+
return {
|
|
1369
|
+
async list(options = {}) {
|
|
1370
|
+
const normalizedOptions = { ...options ?? {} };
|
|
1371
|
+
const response = await fetchCallsPage(normalizedOptions);
|
|
1372
|
+
return attachPaginator(response, fetchCallsPage, normalizedOptions);
|
|
1373
|
+
},
|
|
1374
|
+
async stream(options) {
|
|
1375
|
+
const query = buildSearchParams([
|
|
1376
|
+
["after", options.after],
|
|
1377
|
+
["limit", options.limit],
|
|
1378
|
+
["agentBatchId", options.agentBatchId],
|
|
1379
|
+
["agentId", options.agentId],
|
|
1380
|
+
["executionId", options.executionId]
|
|
1381
|
+
]);
|
|
1382
|
+
const res = await doFetch(`${base}/calls/stream`, {
|
|
1383
|
+
method: "GET",
|
|
1384
|
+
query
|
|
1385
|
+
});
|
|
1386
|
+
return res.json();
|
|
1387
|
+
},
|
|
1388
|
+
async get(callId) {
|
|
1389
|
+
const res = await doFetch(`${base}/calls/${callId}`, {
|
|
1390
|
+
method: "GET"
|
|
1391
|
+
});
|
|
1392
|
+
return res.json();
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1337
1397
|
// src/api/campaigns.ts
|
|
1338
1398
|
function createCampaignsApi(cfg) {
|
|
1339
1399
|
const { base, doFetch } = createHttp(cfg);
|
|
@@ -2081,6 +2141,7 @@ function createClient(initialCfg) {
|
|
|
2081
2141
|
const stagesApi = createAgentStagesApi(runtimeCfg);
|
|
2082
2142
|
const voicesApi = createVoicesApi(runtimeCfg);
|
|
2083
2143
|
const apiKeysApi = createApiKeysApi(runtimeCfg);
|
|
2144
|
+
const callsApi = createCallsApi(runtimeCfg);
|
|
2084
2145
|
const catalogsApi = createCatalogsApi(runtimeCfg);
|
|
2085
2146
|
const catalogTemplatesApi = createCatalogTemplatesApi(runtimeCfg);
|
|
2086
2147
|
const webhooksApi = createWebhooksApi(runtimeCfg);
|
|
@@ -2152,6 +2213,7 @@ function createClient(initialCfg) {
|
|
|
2152
2213
|
campaigns: createCampaignsApi(runtimeCfg),
|
|
2153
2214
|
voices: voicesApi,
|
|
2154
2215
|
apiKeys: apiKeysApi,
|
|
2216
|
+
calls: callsApi,
|
|
2155
2217
|
webhooks: webhooksApi
|
|
2156
2218
|
};
|
|
2157
2219
|
return {
|
|
@@ -2235,6 +2297,7 @@ function createClient(initialCfg) {
|
|
|
2235
2297
|
createAgentVersionsApi,
|
|
2236
2298
|
createAgentsApi,
|
|
2237
2299
|
createApiKeysApi,
|
|
2300
|
+
createCallsApi,
|
|
2238
2301
|
createCampaignsApi,
|
|
2239
2302
|
createCatalogTemplatesApi,
|
|
2240
2303
|
createCatalogsApi,
|