@getsupervisor/agents-studio-sdk 1.26.1 → 1.29.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/dist/index.d.cts CHANGED
@@ -238,6 +238,7 @@ type components = {
238
238
  personalityInitialGreeting: string;
239
239
  personalityMessageStyleId: string;
240
240
  personalityToneStyleId: string;
241
+ startSpeaker: 'user' | 'agent';
241
242
  requiredData: string[];
242
243
  criticalRules?: string[];
243
244
  topicsAllowed?: string[];
@@ -264,6 +265,7 @@ type components = {
264
265
  personalityInitialGreeting: string;
265
266
  personalityMessageStyleId: string;
266
267
  personalityToneStyleId: string;
268
+ startSpeaker: 'user' | 'agent';
267
269
  requiredData?: string[];
268
270
  criticalRules?: string[];
269
271
  topicsAllowed?: string[];
@@ -278,6 +280,7 @@ type components = {
278
280
  personalityInitialGreeting?: string;
279
281
  personalityMessageStyleId?: string;
280
282
  personalityToneStyleId?: string;
283
+ startSpeaker?: 'user' | 'agent';
281
284
  requiredData?: string[];
282
285
  criticalRules?: string[];
283
286
  topicsAllowed?: string[];
@@ -599,6 +602,14 @@ type components = {
599
602
  UpdateEventSubscriptionRequest: {
600
603
  isActive?: boolean;
601
604
  };
605
+ ForkAgentFromTemplateRequest: {
606
+ templateId: string;
607
+ templateVersionId?: string;
608
+ name?: string | null;
609
+ description?: string | null;
610
+ status?: 'inactive' | 'training' | 'active';
611
+ debounceDelayMs?: number | null;
612
+ };
602
613
  BlueprintStageTriggerCondition: {
603
614
  type: 'intent' | 'rule' | 'expression';
604
615
  value: string;
@@ -759,6 +770,7 @@ type AgentDetail = components['schemas']['AgentDetail'];
759
770
  type AgentSummary = components['schemas']['AgentSummary'];
760
771
  type AgentListResponse = components['schemas']['AgentListResponse'];
761
772
  type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
773
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
762
774
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
763
775
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
764
776
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
@@ -845,6 +857,7 @@ type AgentBlueprint = {
845
857
  personalityInitialGreeting: string;
846
858
  personalityMessageStyleId: string;
847
859
  personalityToneStyleId: string;
860
+ startSpeaker: 'user' | 'agent';
848
861
  requiredData: string[];
849
862
  criticalRules: string[];
850
863
  topicsAllowed: string[];
@@ -871,6 +884,7 @@ type CreateAgentBlueprintRequest = {
871
884
  personalityInitialGreeting: string;
872
885
  personalityMessageStyleId: string;
873
886
  personalityToneStyleId: string;
887
+ startSpeaker: 'user' | 'agent';
874
888
  requiredData?: string[];
875
889
  criticalRules?: string[];
876
890
  topicsAllowed?: string[];
@@ -885,6 +899,7 @@ type UpdateAgentBlueprintRequest = {
885
899
  personalityInitialGreeting?: string;
886
900
  personalityMessageStyleId?: string;
887
901
  personalityToneStyleId?: string;
902
+ startSpeaker?: 'user' | 'agent';
888
903
  requiredData?: string[];
889
904
  criticalRules?: string[];
890
905
  topicsAllowed?: string[];
@@ -1463,6 +1478,7 @@ type AgentsApi = {
1463
1478
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1464
1479
  get(agentId: string): Promise<AgentDetail>;
1465
1480
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1481
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
1466
1482
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1467
1483
  delete(agent: string | AgentEntity): Promise<void>;
1468
1484
  };
@@ -1470,10 +1486,11 @@ type AgentListResponseWithEntities = {
1470
1486
  data: AgentEntity[];
1471
1487
  meta: AgentListResponse['meta'];
1472
1488
  };
1473
- type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list'> & {
1489
+ type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list' | 'forkFromTemplate'> & {
1474
1490
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1475
1491
  get(agentId: string): Promise<AgentEntity>;
1476
1492
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1493
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1477
1494
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1478
1495
  };
1479
1496
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -1651,6 +1668,7 @@ declare function createClient(initialCfg: ClientConfig & {
1651
1668
  }, ListAgentsOptions>>;
1652
1669
  get(agentId: string): Promise<AgentEntity>;
1653
1670
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1671
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1654
1672
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1655
1673
  };
1656
1674
  workspaces: {
@@ -1754,6 +1772,7 @@ declare function createClient(initialCfg: ClientConfig & {
1754
1772
  }, ListAgentsOptions>>;
1755
1773
  get(agentId: string): Promise<AgentEntity>;
1756
1774
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1775
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1757
1776
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1758
1777
  };
1759
1778
  workspaces: {
@@ -1829,4 +1848,4 @@ declare function createHttp(cfg: ClientConfig & {
1829
1848
  resolveAccessToken: () => string;
1830
1849
  };
1831
1850
 
1832
- export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionAuth, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
1851
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionAuth, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
package/dist/index.d.ts CHANGED
@@ -238,6 +238,7 @@ type components = {
238
238
  personalityInitialGreeting: string;
239
239
  personalityMessageStyleId: string;
240
240
  personalityToneStyleId: string;
241
+ startSpeaker: 'user' | 'agent';
241
242
  requiredData: string[];
242
243
  criticalRules?: string[];
243
244
  topicsAllowed?: string[];
@@ -264,6 +265,7 @@ type components = {
264
265
  personalityInitialGreeting: string;
265
266
  personalityMessageStyleId: string;
266
267
  personalityToneStyleId: string;
268
+ startSpeaker: 'user' | 'agent';
267
269
  requiredData?: string[];
268
270
  criticalRules?: string[];
269
271
  topicsAllowed?: string[];
@@ -278,6 +280,7 @@ type components = {
278
280
  personalityInitialGreeting?: string;
279
281
  personalityMessageStyleId?: string;
280
282
  personalityToneStyleId?: string;
283
+ startSpeaker?: 'user' | 'agent';
281
284
  requiredData?: string[];
282
285
  criticalRules?: string[];
283
286
  topicsAllowed?: string[];
@@ -599,6 +602,14 @@ type components = {
599
602
  UpdateEventSubscriptionRequest: {
600
603
  isActive?: boolean;
601
604
  };
605
+ ForkAgentFromTemplateRequest: {
606
+ templateId: string;
607
+ templateVersionId?: string;
608
+ name?: string | null;
609
+ description?: string | null;
610
+ status?: 'inactive' | 'training' | 'active';
611
+ debounceDelayMs?: number | null;
612
+ };
602
613
  BlueprintStageTriggerCondition: {
603
614
  type: 'intent' | 'rule' | 'expression';
604
615
  value: string;
@@ -759,6 +770,7 @@ type AgentDetail = components['schemas']['AgentDetail'];
759
770
  type AgentSummary = components['schemas']['AgentSummary'];
760
771
  type AgentListResponse = components['schemas']['AgentListResponse'];
761
772
  type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
773
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
762
774
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
763
775
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
764
776
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
@@ -845,6 +857,7 @@ type AgentBlueprint = {
845
857
  personalityInitialGreeting: string;
846
858
  personalityMessageStyleId: string;
847
859
  personalityToneStyleId: string;
860
+ startSpeaker: 'user' | 'agent';
848
861
  requiredData: string[];
849
862
  criticalRules: string[];
850
863
  topicsAllowed: string[];
@@ -871,6 +884,7 @@ type CreateAgentBlueprintRequest = {
871
884
  personalityInitialGreeting: string;
872
885
  personalityMessageStyleId: string;
873
886
  personalityToneStyleId: string;
887
+ startSpeaker: 'user' | 'agent';
874
888
  requiredData?: string[];
875
889
  criticalRules?: string[];
876
890
  topicsAllowed?: string[];
@@ -885,6 +899,7 @@ type UpdateAgentBlueprintRequest = {
885
899
  personalityInitialGreeting?: string;
886
900
  personalityMessageStyleId?: string;
887
901
  personalityToneStyleId?: string;
902
+ startSpeaker?: 'user' | 'agent';
888
903
  requiredData?: string[];
889
904
  criticalRules?: string[];
890
905
  topicsAllowed?: string[];
@@ -1463,6 +1478,7 @@ type AgentsApi = {
1463
1478
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1464
1479
  get(agentId: string): Promise<AgentDetail>;
1465
1480
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1481
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
1466
1482
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1467
1483
  delete(agent: string | AgentEntity): Promise<void>;
1468
1484
  };
@@ -1470,10 +1486,11 @@ type AgentListResponseWithEntities = {
1470
1486
  data: AgentEntity[];
1471
1487
  meta: AgentListResponse['meta'];
1472
1488
  };
1473
- type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list'> & {
1489
+ type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list' | 'forkFromTemplate'> & {
1474
1490
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1475
1491
  get(agentId: string): Promise<AgentEntity>;
1476
1492
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1493
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1477
1494
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1478
1495
  };
1479
1496
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -1651,6 +1668,7 @@ declare function createClient(initialCfg: ClientConfig & {
1651
1668
  }, ListAgentsOptions>>;
1652
1669
  get(agentId: string): Promise<AgentEntity>;
1653
1670
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1671
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1654
1672
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1655
1673
  };
1656
1674
  workspaces: {
@@ -1754,6 +1772,7 @@ declare function createClient(initialCfg: ClientConfig & {
1754
1772
  }, ListAgentsOptions>>;
1755
1773
  get(agentId: string): Promise<AgentEntity>;
1756
1774
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1775
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1757
1776
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1758
1777
  };
1759
1778
  workspaces: {
@@ -1829,4 +1848,4 @@ declare function createHttp(cfg: ClientConfig & {
1829
1848
  resolveAccessToken: () => string;
1830
1849
  };
1831
1850
 
1832
- export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionAuth, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
1851
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionAuth, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
package/dist/index.js CHANGED
@@ -1158,6 +1158,14 @@ function createAgentsApi(cfg, relatedApis) {
1158
1158
  });
1159
1159
  return res.json();
1160
1160
  };
1161
+ const forkAgentFromTemplate = async (payload) => {
1162
+ const res = await doFetch(`${base}/agents:from-template`, {
1163
+ method: "POST",
1164
+ body: JSON.stringify(payload),
1165
+ headers: jsonHeaders
1166
+ });
1167
+ return res.json();
1168
+ };
1161
1169
  const updateAgent = async (agentId, payload) => {
1162
1170
  const res = await doFetch(`${base}/agents/${agentId}`, {
1163
1171
  method: "PATCH",
@@ -1179,6 +1187,7 @@ function createAgentsApi(cfg, relatedApis) {
1179
1187
  list: listAgents,
1180
1188
  get: getAgentDetail,
1181
1189
  create: createAgent,
1190
+ forkFromTemplate: forkAgentFromTemplate,
1182
1191
  update: updateAgent,
1183
1192
  delete: deleteAgent
1184
1193
  };
@@ -1230,6 +1239,10 @@ function createAgentsApi(cfg, relatedApis) {
1230
1239
  const detail = await createAgent(payload);
1231
1240
  return wrapAgent(detail);
1232
1241
  },
1242
+ async forkFromTemplate(payload) {
1243
+ const detail = await forkAgentFromTemplate(payload);
1244
+ return wrapAgent(detail);
1245
+ },
1233
1246
  async update(agentId, payload) {
1234
1247
  const detail = await updateAgent(agentId, payload);
1235
1248
  return wrapAgent(detail);