@getsupervisor/agents-studio-sdk 1.26.0 → 1.26.1

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/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,7 @@ type components = {
233
238
  personalityInitialGreeting: string;
234
239
  personalityMessageStyleId: string;
235
240
  personalityToneStyleId: string;
236
- requiredData?: {
237
- [key: string]: unknown;
238
- }[];
241
+ requiredData: string[];
239
242
  criticalRules?: string[];
240
243
  topicsAllowed?: string[];
241
244
  topicsForbidden?: string[];
@@ -261,9 +264,7 @@ type components = {
261
264
  personalityInitialGreeting: string;
262
265
  personalityMessageStyleId: string;
263
266
  personalityToneStyleId: string;
264
- requiredData?: {
265
- [key: string]: unknown;
266
- }[];
267
+ requiredData?: string[];
267
268
  criticalRules?: string[];
268
269
  topicsAllowed?: string[];
269
270
  topicsForbidden?: string[];
@@ -277,9 +278,7 @@ type components = {
277
278
  personalityInitialGreeting?: string;
278
279
  personalityMessageStyleId?: string;
279
280
  personalityToneStyleId?: string;
280
- requiredData?: {
281
- [key: string]: unknown;
282
- }[];
281
+ requiredData?: string[];
283
282
  criticalRules?: string[];
284
283
  topicsAllowed?: string[];
285
284
  topicsForbidden?: string[];
@@ -290,7 +289,8 @@ type components = {
290
289
  blueprintId: string;
291
290
  name: string;
292
291
  title?: string | null;
293
- prompt: string;
292
+ goalPrompt: string;
293
+ promptInstructions: string[];
294
294
  order: number;
295
295
  triggers: components['schemas']['BlueprintStageTrigger'][];
296
296
  metadata?: {
@@ -306,7 +306,8 @@ type components = {
306
306
  CreateBlueprintStageRequest: {
307
307
  name: string;
308
308
  title?: string | null;
309
- prompt: string;
309
+ goalPrompt: string;
310
+ promptInstructions?: string[];
310
311
  order?: number | null;
311
312
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
312
313
  metadata?: {
@@ -316,7 +317,8 @@ type components = {
316
317
  UpdateBlueprintStageRequest: {
317
318
  name?: string;
318
319
  title?: string | null;
319
- prompt?: string;
320
+ goalPrompt?: string;
321
+ promptInstructions?: string[];
320
322
  order?: number | null;
321
323
  metadata?: {
322
324
  [key: string]: unknown;
@@ -351,7 +353,8 @@ type components = {
351
353
  BlueprintStageDraft: {
352
354
  name: string;
353
355
  title?: string | null;
354
- prompt: string;
356
+ goalPrompt: string;
357
+ promptInstructions?: string[];
355
358
  order?: number | null;
356
359
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
357
360
  metadata?: {
@@ -825,10 +828,15 @@ type CreateAgentVersionRequest = components['schemas']['CreateAgentVersionReques
825
828
  type PublishAgentVersionRequest = components['schemas']['PublishAgentVersionRequest'];
826
829
  type UpdateAgentVersionNotesRequest = components['schemas']['UpdateAgentVersionNotesRequest'];
827
830
  type AgentBlueprint = {
828
- id: string;
831
+ version: {
832
+ id: string;
833
+ number: number;
834
+ status: 'draft' | 'active' | 'archived';
835
+ hash: string;
836
+ createdAt: string;
837
+ };
838
+ blueprintId: string;
829
839
  agentId: string;
830
- versionId: string;
831
- versionStatus: 'draft' | 'active' | 'archived';
832
840
  languageId: string;
833
841
  personalityName: string;
834
842
  personalityRole: string;
@@ -837,7 +845,7 @@ type AgentBlueprint = {
837
845
  personalityInitialGreeting: string;
838
846
  personalityMessageStyleId: string;
839
847
  personalityToneStyleId: string;
840
- requiredData: Record<string, unknown>[];
848
+ requiredData: string[];
841
849
  criticalRules: string[];
842
850
  topicsAllowed: string[];
843
851
  topicsForbidden: string[];
@@ -863,7 +871,7 @@ type CreateAgentBlueprintRequest = {
863
871
  personalityInitialGreeting: string;
864
872
  personalityMessageStyleId: string;
865
873
  personalityToneStyleId: string;
866
- requiredData?: Record<string, unknown>[];
874
+ requiredData?: string[];
867
875
  criticalRules?: string[];
868
876
  topicsAllowed?: string[];
869
877
  topicsForbidden?: string[];
@@ -877,7 +885,7 @@ type UpdateAgentBlueprintRequest = {
877
885
  personalityInitialGreeting?: string;
878
886
  personalityMessageStyleId?: string;
879
887
  personalityToneStyleId?: string;
880
- requiredData?: Record<string, unknown>[];
888
+ requiredData?: string[];
881
889
  criticalRules?: string[];
882
890
  topicsAllowed?: string[];
883
891
  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,7 @@ type components = {
233
238
  personalityInitialGreeting: string;
234
239
  personalityMessageStyleId: string;
235
240
  personalityToneStyleId: string;
236
- requiredData?: {
237
- [key: string]: unknown;
238
- }[];
241
+ requiredData: string[];
239
242
  criticalRules?: string[];
240
243
  topicsAllowed?: string[];
241
244
  topicsForbidden?: string[];
@@ -261,9 +264,7 @@ type components = {
261
264
  personalityInitialGreeting: string;
262
265
  personalityMessageStyleId: string;
263
266
  personalityToneStyleId: string;
264
- requiredData?: {
265
- [key: string]: unknown;
266
- }[];
267
+ requiredData?: string[];
267
268
  criticalRules?: string[];
268
269
  topicsAllowed?: string[];
269
270
  topicsForbidden?: string[];
@@ -277,9 +278,7 @@ type components = {
277
278
  personalityInitialGreeting?: string;
278
279
  personalityMessageStyleId?: string;
279
280
  personalityToneStyleId?: string;
280
- requiredData?: {
281
- [key: string]: unknown;
282
- }[];
281
+ requiredData?: string[];
283
282
  criticalRules?: string[];
284
283
  topicsAllowed?: string[];
285
284
  topicsForbidden?: string[];
@@ -290,7 +289,8 @@ type components = {
290
289
  blueprintId: string;
291
290
  name: string;
292
291
  title?: string | null;
293
- prompt: string;
292
+ goalPrompt: string;
293
+ promptInstructions: string[];
294
294
  order: number;
295
295
  triggers: components['schemas']['BlueprintStageTrigger'][];
296
296
  metadata?: {
@@ -306,7 +306,8 @@ type components = {
306
306
  CreateBlueprintStageRequest: {
307
307
  name: string;
308
308
  title?: string | null;
309
- prompt: string;
309
+ goalPrompt: string;
310
+ promptInstructions?: string[];
310
311
  order?: number | null;
311
312
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
312
313
  metadata?: {
@@ -316,7 +317,8 @@ type components = {
316
317
  UpdateBlueprintStageRequest: {
317
318
  name?: string;
318
319
  title?: string | null;
319
- prompt?: string;
320
+ goalPrompt?: string;
321
+ promptInstructions?: string[];
320
322
  order?: number | null;
321
323
  metadata?: {
322
324
  [key: string]: unknown;
@@ -351,7 +353,8 @@ type components = {
351
353
  BlueprintStageDraft: {
352
354
  name: string;
353
355
  title?: string | null;
354
- prompt: string;
356
+ goalPrompt: string;
357
+ promptInstructions?: string[];
355
358
  order?: number | null;
356
359
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
357
360
  metadata?: {
@@ -825,10 +828,15 @@ type CreateAgentVersionRequest = components['schemas']['CreateAgentVersionReques
825
828
  type PublishAgentVersionRequest = components['schemas']['PublishAgentVersionRequest'];
826
829
  type UpdateAgentVersionNotesRequest = components['schemas']['UpdateAgentVersionNotesRequest'];
827
830
  type AgentBlueprint = {
828
- id: string;
831
+ version: {
832
+ id: string;
833
+ number: number;
834
+ status: 'draft' | 'active' | 'archived';
835
+ hash: string;
836
+ createdAt: string;
837
+ };
838
+ blueprintId: string;
829
839
  agentId: string;
830
- versionId: string;
831
- versionStatus: 'draft' | 'active' | 'archived';
832
840
  languageId: string;
833
841
  personalityName: string;
834
842
  personalityRole: string;
@@ -837,7 +845,7 @@ type AgentBlueprint = {
837
845
  personalityInitialGreeting: string;
838
846
  personalityMessageStyleId: string;
839
847
  personalityToneStyleId: string;
840
- requiredData: Record<string, unknown>[];
848
+ requiredData: string[];
841
849
  criticalRules: string[];
842
850
  topicsAllowed: string[];
843
851
  topicsForbidden: string[];
@@ -863,7 +871,7 @@ type CreateAgentBlueprintRequest = {
863
871
  personalityInitialGreeting: string;
864
872
  personalityMessageStyleId: string;
865
873
  personalityToneStyleId: string;
866
- requiredData?: Record<string, unknown>[];
874
+ requiredData?: string[];
867
875
  criticalRules?: string[];
868
876
  topicsAllowed?: string[];
869
877
  topicsForbidden?: string[];
@@ -877,7 +885,7 @@ type UpdateAgentBlueprintRequest = {
877
885
  personalityInitialGreeting?: string;
878
886
  personalityMessageStyleId?: string;
879
887
  personalityToneStyleId?: string;
880
- requiredData?: Record<string, unknown>[];
888
+ requiredData?: string[];
881
889
  criticalRules?: string[];
882
890
  topicsAllowed?: string[];
883
891
  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.26.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",