@getsupervisor/agents-studio-sdk 1.39.0-patch.1 → 1.40.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
@@ -245,7 +245,7 @@ type components = {
245
245
  criticalRules?: string[];
246
246
  topicsAllowed?: string[];
247
247
  topicsForbidden?: string[];
248
- contentHash: string | null;
248
+ contentHash?: string | null;
249
249
  contentVariables: string[];
250
250
  variablesCache: string[];
251
251
  createdAt: string;
@@ -306,7 +306,7 @@ type components = {
306
306
  metadata?: {
307
307
  [key: string]: unknown;
308
308
  } | null;
309
- contentHash: string | null;
309
+ contentHash?: string | null;
310
310
  variables: string[];
311
311
  createdAt: string;
312
312
  updatedAt: string;
@@ -609,45 +609,6 @@ type components = {
609
609
  UpdateEventSubscriptionRequest: {
610
610
  isActive?: boolean;
611
611
  };
612
- Campaign: {
613
- campaignId: string;
614
- workspaceId: string;
615
- agentId: string;
616
- agentVersionId: string;
617
- name: string;
618
- objective?: string | null;
619
- status: components['schemas']['CampaignStatus'];
620
- inputFileKey: string;
621
- totalRecords: number;
622
- processedRecords: number;
623
- successfulRecords: number;
624
- failedRecords: number;
625
- createdAt: string;
626
- updatedAt: string;
627
- startedAt?: string | null;
628
- completedAt?: string | null;
629
- };
630
- CampaignListResponse: {
631
- data: components['schemas']['Campaign'][];
632
- meta: components['schemas']['PaginationMeta'];
633
- };
634
- CampaignExecution: {
635
- campaignExecutionId: string;
636
- campaignId: string;
637
- rowNumber: number;
638
- status: 'PENDING' | 'SUCCESS' | 'ERROR';
639
- agentExecutionId?: string | null;
640
- inputData: {
641
- [key: string]: unknown;
642
- };
643
- errorMessage?: string | null;
644
- createdAt: string;
645
- };
646
- CampaignExecutionListResponse: {
647
- data: components['schemas']['CampaignExecution'][];
648
- meta: components['schemas']['PaginationMeta'];
649
- };
650
- CampaignStatus: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PARTIALLY_COMPLETED';
651
612
  ForkAgentFromTemplateRequest: {
652
613
  templateId: string;
653
614
  templateVersionId?: string;
@@ -751,7 +712,6 @@ type components = {
751
712
  TagId: string;
752
713
  StageId: string;
753
714
  TriggerId: string;
754
- CampaignId: string;
755
715
  WorkspaceId: string;
756
716
  ToolId: string;
757
717
  ResourceId: string;
@@ -1026,11 +986,6 @@ type ToolConnectionAuth = components['schemas']['ToolConnectionAuth'];
1026
986
  type ToolConnectionRequest = components['schemas']['ToolConnectionRequest'];
1027
987
  type ToolConnectionResponse = components['schemas']['ToolConnectionResponse'];
1028
988
  type ErrorResponse = components['schemas']['ErrorResponse'];
1029
- type CampaignStatus = components['schemas']['CampaignStatus'];
1030
- type Campaign = components['schemas']['Campaign'];
1031
- type CampaignListResponse = components['schemas']['CampaignListResponse'];
1032
- type CampaignExecution = components['schemas']['CampaignExecution'];
1033
- type CampaignExecutionListResponse = components['schemas']['CampaignExecutionListResponse'];
1034
989
  type WebhookSummary = components['schemas']['WebhookSummary'];
1035
990
  type WebhookDetail = components['schemas']['WebhookDetail'];
1036
991
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
@@ -1084,17 +1039,6 @@ declare function createAgentPhonesApi(cfg: ClientConfig & {
1084
1039
  disconnect(agentId: string, phoneId: string): Promise<void>;
1085
1040
  };
1086
1041
 
1087
- type ListAgentSchedulesOptions = ListQueryOptions;
1088
- type AgentScheduleApi = {
1089
- list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
1090
- get(agentId: string, scheduleId: string): Promise<AgentSchedule>;
1091
- create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1092
- update(agentId: string, scheduleId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1093
- };
1094
- declare function createAgentScheduleApi(cfg: ClientConfig & {
1095
- retry?: RetryPolicy;
1096
- }): AgentScheduleApi;
1097
-
1098
1042
  type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1099
1043
  declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1100
1044
  retry?: RetryPolicy;
@@ -1106,6 +1050,17 @@ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1106
1050
  delete(agentId: string, exceptionId: string): Promise<void>;
1107
1051
  };
1108
1052
 
1053
+ type ListAgentSchedulesOptions = ListQueryOptions;
1054
+ type AgentScheduleApi = {
1055
+ list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
1056
+ get(agentId: string, scheduleId: string): Promise<AgentSchedule>;
1057
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1058
+ update(agentId: string, scheduleId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1059
+ };
1060
+ declare function createAgentScheduleApi(cfg: ClientConfig & {
1061
+ retry?: RetryPolicy;
1062
+ }): AgentScheduleApi;
1063
+
1109
1064
  type ListAgentStageTriggersOptions = ListQueryOptions;
1110
1065
  type AgentStageTriggersApi$1 = {
1111
1066
  list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
@@ -1605,22 +1560,6 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1605
1560
  retry?: RetryPolicy;
1606
1561
  }): ApiKeysApi;
1607
1562
 
1608
- type ListCampaignsOptions = ListQueryOptions;
1609
- type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1610
- type CreateCampaignPayload = {
1611
- name: string;
1612
- file: unknown;
1613
- objective?: string | null;
1614
- } | FormData;
1615
- declare function createCampaignsApi(cfg: ClientConfig & {
1616
- retry?: RetryPolicy;
1617
- }): {
1618
- list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1619
- get(campaignId: string): Promise<Campaign>;
1620
- create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1621
- listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1622
- };
1623
-
1624
1563
  type ListCatalogTemplatesOptions = {
1625
1564
  visibility?: CatalogTemplateVisibility;
1626
1565
  tags?: string[];
@@ -1831,12 +1770,6 @@ declare function createClient(initialCfg: ClientConfig & {
1831
1770
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1832
1771
  remove(itemId: string): Promise<void>;
1833
1772
  };
1834
- campaigns: {
1835
- list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1836
- get(campaignId: string): Promise<Campaign>;
1837
- create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1838
- listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1839
- };
1840
1773
  voices: {
1841
1774
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1842
1775
  };
@@ -1944,12 +1877,6 @@ declare function createClient(initialCfg: ClientConfig & {
1944
1877
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1945
1878
  remove(itemId: string): Promise<void>;
1946
1879
  };
1947
- campaigns: {
1948
- list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1949
- get(campaignId: string): Promise<Campaign>;
1950
- create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1951
- listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1952
- };
1953
1880
  voices: {
1954
1881
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1955
1882
  };
@@ -1991,4 +1918,4 @@ declare function createHttp(cfg: ClientConfig & {
1991
1918
  resolveAccessToken: () => string;
1992
1919
  };
1993
1920
 
1994
- export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, 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 ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, 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, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
1921
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, 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 ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, 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, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
package/dist/index.d.ts CHANGED
@@ -245,7 +245,7 @@ type components = {
245
245
  criticalRules?: string[];
246
246
  topicsAllowed?: string[];
247
247
  topicsForbidden?: string[];
248
- contentHash: string | null;
248
+ contentHash?: string | null;
249
249
  contentVariables: string[];
250
250
  variablesCache: string[];
251
251
  createdAt: string;
@@ -306,7 +306,7 @@ type components = {
306
306
  metadata?: {
307
307
  [key: string]: unknown;
308
308
  } | null;
309
- contentHash: string | null;
309
+ contentHash?: string | null;
310
310
  variables: string[];
311
311
  createdAt: string;
312
312
  updatedAt: string;
@@ -609,45 +609,6 @@ type components = {
609
609
  UpdateEventSubscriptionRequest: {
610
610
  isActive?: boolean;
611
611
  };
612
- Campaign: {
613
- campaignId: string;
614
- workspaceId: string;
615
- agentId: string;
616
- agentVersionId: string;
617
- name: string;
618
- objective?: string | null;
619
- status: components['schemas']['CampaignStatus'];
620
- inputFileKey: string;
621
- totalRecords: number;
622
- processedRecords: number;
623
- successfulRecords: number;
624
- failedRecords: number;
625
- createdAt: string;
626
- updatedAt: string;
627
- startedAt?: string | null;
628
- completedAt?: string | null;
629
- };
630
- CampaignListResponse: {
631
- data: components['schemas']['Campaign'][];
632
- meta: components['schemas']['PaginationMeta'];
633
- };
634
- CampaignExecution: {
635
- campaignExecutionId: string;
636
- campaignId: string;
637
- rowNumber: number;
638
- status: 'PENDING' | 'SUCCESS' | 'ERROR';
639
- agentExecutionId?: string | null;
640
- inputData: {
641
- [key: string]: unknown;
642
- };
643
- errorMessage?: string | null;
644
- createdAt: string;
645
- };
646
- CampaignExecutionListResponse: {
647
- data: components['schemas']['CampaignExecution'][];
648
- meta: components['schemas']['PaginationMeta'];
649
- };
650
- CampaignStatus: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PARTIALLY_COMPLETED';
651
612
  ForkAgentFromTemplateRequest: {
652
613
  templateId: string;
653
614
  templateVersionId?: string;
@@ -751,7 +712,6 @@ type components = {
751
712
  TagId: string;
752
713
  StageId: string;
753
714
  TriggerId: string;
754
- CampaignId: string;
755
715
  WorkspaceId: string;
756
716
  ToolId: string;
757
717
  ResourceId: string;
@@ -1026,11 +986,6 @@ type ToolConnectionAuth = components['schemas']['ToolConnectionAuth'];
1026
986
  type ToolConnectionRequest = components['schemas']['ToolConnectionRequest'];
1027
987
  type ToolConnectionResponse = components['schemas']['ToolConnectionResponse'];
1028
988
  type ErrorResponse = components['schemas']['ErrorResponse'];
1029
- type CampaignStatus = components['schemas']['CampaignStatus'];
1030
- type Campaign = components['schemas']['Campaign'];
1031
- type CampaignListResponse = components['schemas']['CampaignListResponse'];
1032
- type CampaignExecution = components['schemas']['CampaignExecution'];
1033
- type CampaignExecutionListResponse = components['schemas']['CampaignExecutionListResponse'];
1034
989
  type WebhookSummary = components['schemas']['WebhookSummary'];
1035
990
  type WebhookDetail = components['schemas']['WebhookDetail'];
1036
991
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
@@ -1084,17 +1039,6 @@ declare function createAgentPhonesApi(cfg: ClientConfig & {
1084
1039
  disconnect(agentId: string, phoneId: string): Promise<void>;
1085
1040
  };
1086
1041
 
1087
- type ListAgentSchedulesOptions = ListQueryOptions;
1088
- type AgentScheduleApi = {
1089
- list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
1090
- get(agentId: string, scheduleId: string): Promise<AgentSchedule>;
1091
- create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1092
- update(agentId: string, scheduleId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1093
- };
1094
- declare function createAgentScheduleApi(cfg: ClientConfig & {
1095
- retry?: RetryPolicy;
1096
- }): AgentScheduleApi;
1097
-
1098
1042
  type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1099
1043
  declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1100
1044
  retry?: RetryPolicy;
@@ -1106,6 +1050,17 @@ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1106
1050
  delete(agentId: string, exceptionId: string): Promise<void>;
1107
1051
  };
1108
1052
 
1053
+ type ListAgentSchedulesOptions = ListQueryOptions;
1054
+ type AgentScheduleApi = {
1055
+ list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
1056
+ get(agentId: string, scheduleId: string): Promise<AgentSchedule>;
1057
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1058
+ update(agentId: string, scheduleId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1059
+ };
1060
+ declare function createAgentScheduleApi(cfg: ClientConfig & {
1061
+ retry?: RetryPolicy;
1062
+ }): AgentScheduleApi;
1063
+
1109
1064
  type ListAgentStageTriggersOptions = ListQueryOptions;
1110
1065
  type AgentStageTriggersApi$1 = {
1111
1066
  list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
@@ -1605,22 +1560,6 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1605
1560
  retry?: RetryPolicy;
1606
1561
  }): ApiKeysApi;
1607
1562
 
1608
- type ListCampaignsOptions = ListQueryOptions;
1609
- type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1610
- type CreateCampaignPayload = {
1611
- name: string;
1612
- file: unknown;
1613
- objective?: string | null;
1614
- } | FormData;
1615
- declare function createCampaignsApi(cfg: ClientConfig & {
1616
- retry?: RetryPolicy;
1617
- }): {
1618
- list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1619
- get(campaignId: string): Promise<Campaign>;
1620
- create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1621
- listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1622
- };
1623
-
1624
1563
  type ListCatalogTemplatesOptions = {
1625
1564
  visibility?: CatalogTemplateVisibility;
1626
1565
  tags?: string[];
@@ -1831,12 +1770,6 @@ declare function createClient(initialCfg: ClientConfig & {
1831
1770
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1832
1771
  remove(itemId: string): Promise<void>;
1833
1772
  };
1834
- campaigns: {
1835
- list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1836
- get(campaignId: string): Promise<Campaign>;
1837
- create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1838
- listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1839
- };
1840
1773
  voices: {
1841
1774
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1842
1775
  };
@@ -1944,12 +1877,6 @@ declare function createClient(initialCfg: ClientConfig & {
1944
1877
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1945
1878
  remove(itemId: string): Promise<void>;
1946
1879
  };
1947
- campaigns: {
1948
- list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1949
- get(campaignId: string): Promise<Campaign>;
1950
- create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1951
- listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1952
- };
1953
1880
  voices: {
1954
1881
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1955
1882
  };
@@ -1991,4 +1918,4 @@ declare function createHttp(cfg: ClientConfig & {
1991
1918
  resolveAccessToken: () => string;
1992
1919
  };
1993
1920
 
1994
- export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, 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 ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, 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, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
1921
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, 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 ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, 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, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
package/dist/index.js CHANGED
@@ -460,56 +460,6 @@ function attachPaginator(response, fetchPage, options) {
460
460
  });
461
461
  }
462
462
 
463
- // src/api/agent-schedule.ts
464
- function createAgentScheduleApi(cfg) {
465
- const { base, doFetch } = createHttp(cfg);
466
- const jsonHeaders = { "content-type": "application/json" };
467
- const fetchSchedulesPage = async (agentId, options = {}) => {
468
- const query = serializeListOptions({ ...options ?? {} });
469
- const res = await doFetch(`${base}/agents/${agentId}/schedules`, {
470
- method: "GET",
471
- query
472
- });
473
- return res.json();
474
- };
475
- return {
476
- async list(agentId, options = {}) {
477
- const normalized = { ...options ?? {} };
478
- const fetchPage = (pageOptions) => fetchSchedulesPage(agentId, pageOptions);
479
- const response = await fetchPage(normalized);
480
- return attachPaginator(response, fetchPage, normalized);
481
- },
482
- async get(agentId, scheduleId) {
483
- const res = await doFetch(
484
- `${base}/agents/${agentId}/schedules/${scheduleId}`,
485
- {
486
- method: "GET"
487
- }
488
- );
489
- return res.json();
490
- },
491
- async create(agentId, payload) {
492
- const res = await doFetch(`${base}/agents/${agentId}/schedules`, {
493
- method: "POST",
494
- headers: jsonHeaders,
495
- body: JSON.stringify(payload)
496
- });
497
- return res.json();
498
- },
499
- async update(agentId, scheduleId, payload) {
500
- const res = await doFetch(
501
- `${base}/agents/${agentId}/schedules/${scheduleId}`,
502
- {
503
- method: "PUT",
504
- headers: jsonHeaders,
505
- body: JSON.stringify(payload)
506
- }
507
- );
508
- return res.json();
509
- }
510
- };
511
- }
512
-
513
463
  // src/api/agent-schedule-exceptions.ts
514
464
  function createAgentScheduleExceptionsApi(cfg) {
515
465
  const { base, doFetch } = createHttp(cfg);
@@ -576,6 +526,56 @@ function createAgentScheduleExceptionsApi(cfg) {
576
526
  };
577
527
  }
578
528
 
529
+ // src/api/agent-schedule.ts
530
+ function createAgentScheduleApi(cfg) {
531
+ const { base, doFetch } = createHttp(cfg);
532
+ const jsonHeaders = { "content-type": "application/json" };
533
+ const fetchSchedulesPage = async (agentId, options = {}) => {
534
+ const query = serializeListOptions({ ...options ?? {} });
535
+ const res = await doFetch(`${base}/agents/${agentId}/schedules`, {
536
+ method: "GET",
537
+ query
538
+ });
539
+ return res.json();
540
+ };
541
+ return {
542
+ async list(agentId, options = {}) {
543
+ const normalized = { ...options ?? {} };
544
+ const fetchPage = (pageOptions) => fetchSchedulesPage(agentId, pageOptions);
545
+ const response = await fetchPage(normalized);
546
+ return attachPaginator(response, fetchPage, normalized);
547
+ },
548
+ async get(agentId, scheduleId) {
549
+ const res = await doFetch(
550
+ `${base}/agents/${agentId}/schedules/${scheduleId}`,
551
+ {
552
+ method: "GET"
553
+ }
554
+ );
555
+ return res.json();
556
+ },
557
+ async create(agentId, payload) {
558
+ const res = await doFetch(`${base}/agents/${agentId}/schedules`, {
559
+ method: "POST",
560
+ headers: jsonHeaders,
561
+ body: JSON.stringify(payload)
562
+ });
563
+ return res.json();
564
+ },
565
+ async update(agentId, scheduleId, payload) {
566
+ const res = await doFetch(
567
+ `${base}/agents/${agentId}/schedules/${scheduleId}`,
568
+ {
569
+ method: "PUT",
570
+ headers: jsonHeaders,
571
+ body: JSON.stringify(payload)
572
+ }
573
+ );
574
+ return res.json();
575
+ }
576
+ };
577
+ }
578
+
579
579
  // src/api/agent-stage-triggers.ts
580
580
  function createAgentStageTriggersApi(cfg) {
581
581
  const { base, doFetch } = createHttp(cfg);
@@ -1244,82 +1244,6 @@ function createApiKeysApi(cfg) {
1244
1244
  };
1245
1245
  }
1246
1246
 
1247
- // src/api/campaigns.ts
1248
- function createCampaignsApi(cfg) {
1249
- const { base, doFetch } = createHttp(cfg);
1250
- const isFormData2 = (value) => {
1251
- return typeof FormData !== "undefined" && value instanceof FormData;
1252
- };
1253
- const fetchCampaignsPage = async (options = {}) => {
1254
- const query = serializeListOptions(options ?? {});
1255
- const res = await doFetch(`${base}/campaigns`, {
1256
- method: "GET",
1257
- query
1258
- });
1259
- return res.json();
1260
- };
1261
- const fetchExecutionsPage = async (campaignId, options = {}) => {
1262
- const query = serializeListOptions({
1263
- page: options.page,
1264
- limit: options.limit
1265
- });
1266
- const res = await doFetch(`${base}/campaigns/${campaignId}/executions`, {
1267
- method: "GET",
1268
- query
1269
- });
1270
- return res.json();
1271
- };
1272
- const buildMultipart = (payload) => {
1273
- if (isFormData2(payload)) {
1274
- return payload;
1275
- }
1276
- if (typeof FormData === "undefined") {
1277
- throw new TypeError(
1278
- "FormData is not available in this environment. Pass a FormData instance instead."
1279
- );
1280
- }
1281
- const form = new FormData();
1282
- form.append("name", payload.name);
1283
- if (payload.objective !== void 0 && payload.objective !== null) {
1284
- form.append("objective", payload.objective);
1285
- }
1286
- form.append("file", payload.file);
1287
- return form;
1288
- };
1289
- return {
1290
- async list(options = {}) {
1291
- const normalizedOptions = { ...options ?? {} };
1292
- const response = await fetchCampaignsPage(normalizedOptions);
1293
- return attachPaginator(response, fetchCampaignsPage, normalizedOptions);
1294
- },
1295
- async get(campaignId) {
1296
- const res = await doFetch(`${base}/campaigns/${campaignId}`, {
1297
- method: "GET"
1298
- });
1299
- return res.json();
1300
- },
1301
- async create(agentId, versionId, payload) {
1302
- const body = buildMultipart(payload);
1303
- const res = await doFetch(
1304
- `${base}/agents/${agentId}/versions/${versionId}/campaigns`,
1305
- {
1306
- method: "POST",
1307
- body
1308
- }
1309
- );
1310
- return res.json();
1311
- },
1312
- async listExecutions(campaignId, options = {}) {
1313
- const normalizedOptions = {
1314
- ...options ?? {}
1315
- };
1316
- const response = await fetchExecutionsPage(campaignId, normalizedOptions);
1317
- const fetchPage = (opts) => fetchExecutionsPage(campaignId, opts);
1318
- return attachPaginator(response, fetchPage, normalizedOptions);
1319
- }
1320
- };
1321
- }
1322
-
1323
1247
  // src/api/catalog-templates.ts
1324
1248
  function createCatalogTemplatesApi(cfg) {
1325
1249
  const { base, doFetch } = createHttp(cfg);
@@ -1976,7 +1900,6 @@ function createClient(initialCfg) {
1976
1900
  ...catalogsApi,
1977
1901
  templates: catalogTemplatesApi
1978
1902
  },
1979
- campaigns: createCampaignsApi(runtimeCfg),
1980
1903
  voices: voicesApi,
1981
1904
  apiKeys: apiKeysApi,
1982
1905
  webhooks: webhooksApi
@@ -2060,7 +1983,6 @@ export {
2060
1983
  createAgentVersionsApi,
2061
1984
  createAgentsApi,
2062
1985
  createApiKeysApi,
2063
- createCampaignsApi,
2064
1986
  createCatalogTemplatesApi,
2065
1987
  createCatalogsApi,
2066
1988
  createClient,