@getsupervisor/agents-studio-sdk 1.26.0 → 1.27.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## v1.26.0
2
+
3
+ ## [1.26.0](https://github.com/julio-supervisor/agents-studio-be/compare/v1.25.1...v1.26.0) (2025-11-06)
4
+
5
+ ### Features
6
+
7
+ * enhance agent stages API to include blueprintId in all relevant methods ([0de45da](https://github.com/julio-supervisor/agents-studio-be/commit/0de45da137e1fa4d79bc5aabe86d068dbe8465e1))
8
+
9
+
1
10
  ## v1.25.0
2
11
 
3
12
  ## [1.25.0](https://github.com/julio-supervisor/agents-studio-be/compare/v1.24.0...v1.25.0) (2025-11-06)
package/README.md CHANGED
@@ -43,7 +43,7 @@ await blueprints.version('version-1').create({
43
43
  personalityInitialGreeting: '¡Hola! Soy tu asistente de onboarding.',
44
44
  personalityMessageStyleId: 'style-uuid',
45
45
  personalityToneStyleId: 'tone-uuid',
46
- requiredData: [{ key: 'industry', label: 'Industria' }],
46
+ requiredData: ['industry'],
47
47
  criticalRules: ['Nunca compartas precios internos'],
48
48
  topicsAllowed: ['onboarding', 'soporte'],
49
49
  topicsForbidden: ['facturación'],
@@ -169,7 +169,7 @@ Modela el flujo conversacional de cada agente con los helpers `client.agents.sta
169
169
  ```ts
170
170
  const stages = client.agents.stages(agent.agentId);
171
171
  const activeBlueprint = await client.agents.blueprints(agent.agentId).list();
172
- const blueprintId = activeBlueprint.data[0].blueprint.id;
172
+ const blueprintId = activeBlueprint.data[0].blueprint.blueprintId;
173
173
 
174
174
  // Paginar stages existentes
175
175
  const page = await stages.list(blueprintId, { limit: 10, search: 'greeting' });
package/dist/index.d.cts CHANGED
@@ -221,10 +221,15 @@ type components = {
221
221
  notes?: string;
222
222
  };
223
223
  AgentBlueprint: {
224
- id: string;
224
+ version: {
225
+ id: string;
226
+ number: number;
227
+ status: 'draft' | 'active' | 'archived';
228
+ hash: string;
229
+ createdAt: string;
230
+ };
231
+ blueprintId: string;
225
232
  agentId: string;
226
- versionId: string;
227
- versionStatus: 'draft' | 'active' | 'archived';
228
233
  languageId: string;
229
234
  personalityName: string;
230
235
  personalityRole: string;
@@ -233,9 +238,8 @@ type components = {
233
238
  personalityInitialGreeting: string;
234
239
  personalityMessageStyleId: string;
235
240
  personalityToneStyleId: string;
236
- requiredData?: {
237
- [key: string]: unknown;
238
- }[];
241
+ startSpeaker: 'user' | 'agent';
242
+ requiredData: string[];
239
243
  criticalRules?: string[];
240
244
  topicsAllowed?: string[];
241
245
  topicsForbidden?: string[];
@@ -261,9 +265,8 @@ type components = {
261
265
  personalityInitialGreeting: string;
262
266
  personalityMessageStyleId: string;
263
267
  personalityToneStyleId: string;
264
- requiredData?: {
265
- [key: string]: unknown;
266
- }[];
268
+ startSpeaker: 'user' | 'agent';
269
+ requiredData?: string[];
267
270
  criticalRules?: string[];
268
271
  topicsAllowed?: string[];
269
272
  topicsForbidden?: string[];
@@ -277,9 +280,8 @@ type components = {
277
280
  personalityInitialGreeting?: string;
278
281
  personalityMessageStyleId?: string;
279
282
  personalityToneStyleId?: string;
280
- requiredData?: {
281
- [key: string]: unknown;
282
- }[];
283
+ startSpeaker?: 'user' | 'agent';
284
+ requiredData?: string[];
283
285
  criticalRules?: string[];
284
286
  topicsAllowed?: string[];
285
287
  topicsForbidden?: string[];
@@ -290,7 +292,8 @@ type components = {
290
292
  blueprintId: string;
291
293
  name: string;
292
294
  title?: string | null;
293
- prompt: string;
295
+ goalPrompt: string;
296
+ promptInstructions: string[];
294
297
  order: number;
295
298
  triggers: components['schemas']['BlueprintStageTrigger'][];
296
299
  metadata?: {
@@ -306,7 +309,8 @@ type components = {
306
309
  CreateBlueprintStageRequest: {
307
310
  name: string;
308
311
  title?: string | null;
309
- prompt: string;
312
+ goalPrompt: string;
313
+ promptInstructions?: string[];
310
314
  order?: number | null;
311
315
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
312
316
  metadata?: {
@@ -316,7 +320,8 @@ type components = {
316
320
  UpdateBlueprintStageRequest: {
317
321
  name?: string;
318
322
  title?: string | null;
319
- prompt?: string;
323
+ goalPrompt?: string;
324
+ promptInstructions?: string[];
320
325
  order?: number | null;
321
326
  metadata?: {
322
327
  [key: string]: unknown;
@@ -351,7 +356,8 @@ type components = {
351
356
  BlueprintStageDraft: {
352
357
  name: string;
353
358
  title?: string | null;
354
- prompt: string;
359
+ goalPrompt: string;
360
+ promptInstructions?: string[];
355
361
  order?: number | null;
356
362
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
357
363
  metadata?: {
@@ -825,10 +831,15 @@ type CreateAgentVersionRequest = components['schemas']['CreateAgentVersionReques
825
831
  type PublishAgentVersionRequest = components['schemas']['PublishAgentVersionRequest'];
826
832
  type UpdateAgentVersionNotesRequest = components['schemas']['UpdateAgentVersionNotesRequest'];
827
833
  type AgentBlueprint = {
828
- id: string;
834
+ version: {
835
+ id: string;
836
+ number: number;
837
+ status: 'draft' | 'active' | 'archived';
838
+ hash: string;
839
+ createdAt: string;
840
+ };
841
+ blueprintId: string;
829
842
  agentId: string;
830
- versionId: string;
831
- versionStatus: 'draft' | 'active' | 'archived';
832
843
  languageId: string;
833
844
  personalityName: string;
834
845
  personalityRole: string;
@@ -837,7 +848,8 @@ type AgentBlueprint = {
837
848
  personalityInitialGreeting: string;
838
849
  personalityMessageStyleId: string;
839
850
  personalityToneStyleId: string;
840
- requiredData: Record<string, unknown>[];
851
+ startSpeaker: 'user' | 'agent';
852
+ requiredData: string[];
841
853
  criticalRules: string[];
842
854
  topicsAllowed: string[];
843
855
  topicsForbidden: string[];
@@ -863,7 +875,8 @@ type CreateAgentBlueprintRequest = {
863
875
  personalityInitialGreeting: string;
864
876
  personalityMessageStyleId: string;
865
877
  personalityToneStyleId: string;
866
- requiredData?: Record<string, unknown>[];
878
+ startSpeaker: 'user' | 'agent';
879
+ requiredData?: string[];
867
880
  criticalRules?: string[];
868
881
  topicsAllowed?: string[];
869
882
  topicsForbidden?: string[];
@@ -877,7 +890,8 @@ type UpdateAgentBlueprintRequest = {
877
890
  personalityInitialGreeting?: string;
878
891
  personalityMessageStyleId?: string;
879
892
  personalityToneStyleId?: string;
880
- requiredData?: Record<string, unknown>[];
893
+ startSpeaker?: 'user' | 'agent';
894
+ requiredData?: string[];
881
895
  criticalRules?: string[];
882
896
  topicsAllowed?: string[];
883
897
  topicsForbidden?: string[];
package/dist/index.d.ts CHANGED
@@ -221,10 +221,15 @@ type components = {
221
221
  notes?: string;
222
222
  };
223
223
  AgentBlueprint: {
224
- id: string;
224
+ version: {
225
+ id: string;
226
+ number: number;
227
+ status: 'draft' | 'active' | 'archived';
228
+ hash: string;
229
+ createdAt: string;
230
+ };
231
+ blueprintId: string;
225
232
  agentId: string;
226
- versionId: string;
227
- versionStatus: 'draft' | 'active' | 'archived';
228
233
  languageId: string;
229
234
  personalityName: string;
230
235
  personalityRole: string;
@@ -233,9 +238,8 @@ type components = {
233
238
  personalityInitialGreeting: string;
234
239
  personalityMessageStyleId: string;
235
240
  personalityToneStyleId: string;
236
- requiredData?: {
237
- [key: string]: unknown;
238
- }[];
241
+ startSpeaker: 'user' | 'agent';
242
+ requiredData: string[];
239
243
  criticalRules?: string[];
240
244
  topicsAllowed?: string[];
241
245
  topicsForbidden?: string[];
@@ -261,9 +265,8 @@ type components = {
261
265
  personalityInitialGreeting: string;
262
266
  personalityMessageStyleId: string;
263
267
  personalityToneStyleId: string;
264
- requiredData?: {
265
- [key: string]: unknown;
266
- }[];
268
+ startSpeaker: 'user' | 'agent';
269
+ requiredData?: string[];
267
270
  criticalRules?: string[];
268
271
  topicsAllowed?: string[];
269
272
  topicsForbidden?: string[];
@@ -277,9 +280,8 @@ type components = {
277
280
  personalityInitialGreeting?: string;
278
281
  personalityMessageStyleId?: string;
279
282
  personalityToneStyleId?: string;
280
- requiredData?: {
281
- [key: string]: unknown;
282
- }[];
283
+ startSpeaker?: 'user' | 'agent';
284
+ requiredData?: string[];
283
285
  criticalRules?: string[];
284
286
  topicsAllowed?: string[];
285
287
  topicsForbidden?: string[];
@@ -290,7 +292,8 @@ type components = {
290
292
  blueprintId: string;
291
293
  name: string;
292
294
  title?: string | null;
293
- prompt: string;
295
+ goalPrompt: string;
296
+ promptInstructions: string[];
294
297
  order: number;
295
298
  triggers: components['schemas']['BlueprintStageTrigger'][];
296
299
  metadata?: {
@@ -306,7 +309,8 @@ type components = {
306
309
  CreateBlueprintStageRequest: {
307
310
  name: string;
308
311
  title?: string | null;
309
- prompt: string;
312
+ goalPrompt: string;
313
+ promptInstructions?: string[];
310
314
  order?: number | null;
311
315
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
312
316
  metadata?: {
@@ -316,7 +320,8 @@ type components = {
316
320
  UpdateBlueprintStageRequest: {
317
321
  name?: string;
318
322
  title?: string | null;
319
- prompt?: string;
323
+ goalPrompt?: string;
324
+ promptInstructions?: string[];
320
325
  order?: number | null;
321
326
  metadata?: {
322
327
  [key: string]: unknown;
@@ -351,7 +356,8 @@ type components = {
351
356
  BlueprintStageDraft: {
352
357
  name: string;
353
358
  title?: string | null;
354
- prompt: string;
359
+ goalPrompt: string;
360
+ promptInstructions?: string[];
355
361
  order?: number | null;
356
362
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
357
363
  metadata?: {
@@ -825,10 +831,15 @@ type CreateAgentVersionRequest = components['schemas']['CreateAgentVersionReques
825
831
  type PublishAgentVersionRequest = components['schemas']['PublishAgentVersionRequest'];
826
832
  type UpdateAgentVersionNotesRequest = components['schemas']['UpdateAgentVersionNotesRequest'];
827
833
  type AgentBlueprint = {
828
- id: string;
834
+ version: {
835
+ id: string;
836
+ number: number;
837
+ status: 'draft' | 'active' | 'archived';
838
+ hash: string;
839
+ createdAt: string;
840
+ };
841
+ blueprintId: string;
829
842
  agentId: string;
830
- versionId: string;
831
- versionStatus: 'draft' | 'active' | 'archived';
832
843
  languageId: string;
833
844
  personalityName: string;
834
845
  personalityRole: string;
@@ -837,7 +848,8 @@ type AgentBlueprint = {
837
848
  personalityInitialGreeting: string;
838
849
  personalityMessageStyleId: string;
839
850
  personalityToneStyleId: string;
840
- requiredData: Record<string, unknown>[];
851
+ startSpeaker: 'user' | 'agent';
852
+ requiredData: string[];
841
853
  criticalRules: string[];
842
854
  topicsAllowed: string[];
843
855
  topicsForbidden: string[];
@@ -863,7 +875,8 @@ type CreateAgentBlueprintRequest = {
863
875
  personalityInitialGreeting: string;
864
876
  personalityMessageStyleId: string;
865
877
  personalityToneStyleId: string;
866
- requiredData?: Record<string, unknown>[];
878
+ startSpeaker: 'user' | 'agent';
879
+ requiredData?: string[];
867
880
  criticalRules?: string[];
868
881
  topicsAllowed?: string[];
869
882
  topicsForbidden?: string[];
@@ -877,7 +890,8 @@ type UpdateAgentBlueprintRequest = {
877
890
  personalityInitialGreeting?: string;
878
891
  personalityMessageStyleId?: string;
879
892
  personalityToneStyleId?: string;
880
- requiredData?: Record<string, unknown>[];
893
+ startSpeaker?: 'user' | 'agent';
894
+ requiredData?: string[];
881
895
  criticalRules?: string[];
882
896
  topicsAllowed?: string[];
883
897
  topicsForbidden?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getsupervisor/agents-studio-sdk",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",