@getsupervisor/agents-studio-sdk 1.27.0 → 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
@@ -602,6 +602,14 @@ type components = {
602
602
  UpdateEventSubscriptionRequest: {
603
603
  isActive?: boolean;
604
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
+ };
605
613
  BlueprintStageTriggerCondition: {
606
614
  type: 'intent' | 'rule' | 'expression';
607
615
  value: string;
@@ -762,6 +770,7 @@ type AgentDetail = components['schemas']['AgentDetail'];
762
770
  type AgentSummary = components['schemas']['AgentSummary'];
763
771
  type AgentListResponse = components['schemas']['AgentListResponse'];
764
772
  type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
773
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
765
774
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
766
775
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
767
776
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
@@ -1469,6 +1478,7 @@ type AgentsApi = {
1469
1478
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1470
1479
  get(agentId: string): Promise<AgentDetail>;
1471
1480
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1481
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
1472
1482
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1473
1483
  delete(agent: string | AgentEntity): Promise<void>;
1474
1484
  };
@@ -1476,10 +1486,11 @@ type AgentListResponseWithEntities = {
1476
1486
  data: AgentEntity[];
1477
1487
  meta: AgentListResponse['meta'];
1478
1488
  };
1479
- type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list'> & {
1489
+ type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list' | 'forkFromTemplate'> & {
1480
1490
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1481
1491
  get(agentId: string): Promise<AgentEntity>;
1482
1492
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1493
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1483
1494
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1484
1495
  };
1485
1496
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -1657,6 +1668,7 @@ declare function createClient(initialCfg: ClientConfig & {
1657
1668
  }, ListAgentsOptions>>;
1658
1669
  get(agentId: string): Promise<AgentEntity>;
1659
1670
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1671
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1660
1672
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1661
1673
  };
1662
1674
  workspaces: {
@@ -1760,6 +1772,7 @@ declare function createClient(initialCfg: ClientConfig & {
1760
1772
  }, ListAgentsOptions>>;
1761
1773
  get(agentId: string): Promise<AgentEntity>;
1762
1774
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1775
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1763
1776
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1764
1777
  };
1765
1778
  workspaces: {
@@ -1835,4 +1848,4 @@ declare function createHttp(cfg: ClientConfig & {
1835
1848
  resolveAccessToken: () => string;
1836
1849
  };
1837
1850
 
1838
- 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
@@ -602,6 +602,14 @@ type components = {
602
602
  UpdateEventSubscriptionRequest: {
603
603
  isActive?: boolean;
604
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
+ };
605
613
  BlueprintStageTriggerCondition: {
606
614
  type: 'intent' | 'rule' | 'expression';
607
615
  value: string;
@@ -762,6 +770,7 @@ type AgentDetail = components['schemas']['AgentDetail'];
762
770
  type AgentSummary = components['schemas']['AgentSummary'];
763
771
  type AgentListResponse = components['schemas']['AgentListResponse'];
764
772
  type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
773
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
765
774
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
766
775
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
767
776
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
@@ -1469,6 +1478,7 @@ type AgentsApi = {
1469
1478
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1470
1479
  get(agentId: string): Promise<AgentDetail>;
1471
1480
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1481
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
1472
1482
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1473
1483
  delete(agent: string | AgentEntity): Promise<void>;
1474
1484
  };
@@ -1476,10 +1486,11 @@ type AgentListResponseWithEntities = {
1476
1486
  data: AgentEntity[];
1477
1487
  meta: AgentListResponse['meta'];
1478
1488
  };
1479
- type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list'> & {
1489
+ type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list' | 'forkFromTemplate'> & {
1480
1490
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1481
1491
  get(agentId: string): Promise<AgentEntity>;
1482
1492
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1493
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1483
1494
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1484
1495
  };
1485
1496
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -1657,6 +1668,7 @@ declare function createClient(initialCfg: ClientConfig & {
1657
1668
  }, ListAgentsOptions>>;
1658
1669
  get(agentId: string): Promise<AgentEntity>;
1659
1670
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1671
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1660
1672
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1661
1673
  };
1662
1674
  workspaces: {
@@ -1760,6 +1772,7 @@ declare function createClient(initialCfg: ClientConfig & {
1760
1772
  }, ListAgentsOptions>>;
1761
1773
  get(agentId: string): Promise<AgentEntity>;
1762
1774
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1775
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1763
1776
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1764
1777
  };
1765
1778
  workspaces: {
@@ -1835,4 +1848,4 @@ declare function createHttp(cfg: ClientConfig & {
1835
1848
  resolveAccessToken: () => string;
1836
1849
  };
1837
1850
 
1838
- 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);