@getsupervisor/agents-studio-sdk 1.40.0 → 1.41.0-patch.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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,6 +609,45 @@ 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';
612
651
  ForkAgentFromTemplateRequest: {
613
652
  templateId: string;
614
653
  templateVersionId?: string;
@@ -653,6 +692,14 @@ type components = {
653
692
  CreateApiKeyResponse: components['schemas']['ApiKeySummary'] & {
654
693
  key: string;
655
694
  };
695
+ WorkspaceSummary: {
696
+ id: string;
697
+ name: string;
698
+ };
699
+ WorkspaceListResponse: {
700
+ data: components['schemas']['WorkspaceSummary'][];
701
+ meta: components['schemas']['PaginationMeta'];
702
+ };
656
703
  ToolConfigSchemaActionPrompts: {
657
704
  assistant?: string;
658
705
  user?: string;
@@ -712,6 +759,7 @@ type components = {
712
759
  TagId: string;
713
760
  StageId: string;
714
761
  TriggerId: string;
762
+ CampaignId: string;
715
763
  WorkspaceId: string;
716
764
  ToolId: string;
717
765
  ResourceId: string;
@@ -730,6 +778,7 @@ type components = {
730
778
  OrParam?: components['schemas']['QueryOrGroups'];
731
779
  ScheduleId: string;
732
780
  ApiKeyId: string;
781
+ XCacheRefresh?: boolean;
733
782
  IdempotencyKey: string;
734
783
  };
735
784
  requestBodies: never;
@@ -799,6 +848,8 @@ type WorkspacePhonesResponse = components['schemas']['WorkspacePhonesResponse'];
799
848
  type WorkspacePhoneChannel = 'voice';
800
849
  type WorkspaceEnableRequest = components['schemas']['WorkspaceEnableRequest'];
801
850
  type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
851
+ type WorkspaceSummary = components['schemas']['WorkspaceSummary'];
852
+ type WorkspaceListResponse = components['schemas']['WorkspaceListResponse'];
802
853
  type VoiceSummary = components['schemas']['VoiceSummary'];
803
854
  type VoiceListResponse = components['schemas']['VoiceListResponse'];
804
855
  type CatalogItemLinks = components['schemas']['CatalogItemLinks'];
@@ -986,6 +1037,11 @@ type ToolConnectionAuth = components['schemas']['ToolConnectionAuth'];
986
1037
  type ToolConnectionRequest = components['schemas']['ToolConnectionRequest'];
987
1038
  type ToolConnectionResponse = components['schemas']['ToolConnectionResponse'];
988
1039
  type ErrorResponse = components['schemas']['ErrorResponse'];
1040
+ type CampaignStatus = components['schemas']['CampaignStatus'];
1041
+ type Campaign = components['schemas']['Campaign'];
1042
+ type CampaignListResponse = components['schemas']['CampaignListResponse'];
1043
+ type CampaignExecution = components['schemas']['CampaignExecution'];
1044
+ type CampaignExecutionListResponse = components['schemas']['CampaignExecutionListResponse'];
989
1045
  type WebhookSummary = components['schemas']['WebhookSummary'];
990
1046
  type WebhookDetail = components['schemas']['WebhookDetail'];
991
1047
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
@@ -1039,17 +1095,6 @@ declare function createAgentPhonesApi(cfg: ClientConfig & {
1039
1095
  disconnect(agentId: string, phoneId: string): Promise<void>;
1040
1096
  };
1041
1097
 
1042
- type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1043
- declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1044
- retry?: RetryPolicy;
1045
- }): {
1046
- list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1047
- get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1048
- create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1049
- update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1050
- delete(agentId: string, exceptionId: string): Promise<void>;
1051
- };
1052
-
1053
1098
  type ListAgentSchedulesOptions = ListQueryOptions;
1054
1099
  type AgentScheduleApi = {
1055
1100
  list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
@@ -1061,6 +1106,17 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
1061
1106
  retry?: RetryPolicy;
1062
1107
  }): AgentScheduleApi;
1063
1108
 
1109
+ type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1110
+ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1111
+ retry?: RetryPolicy;
1112
+ }): {
1113
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1114
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1115
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1116
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1117
+ delete(agentId: string, exceptionId: string): Promise<void>;
1118
+ };
1119
+
1064
1120
  type ListAgentStageTriggersOptions = ListQueryOptions;
1065
1121
  type AgentStageTriggersApi$1 = {
1066
1122
  list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
@@ -1560,6 +1616,22 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1560
1616
  retry?: RetryPolicy;
1561
1617
  }): ApiKeysApi;
1562
1618
 
1619
+ type ListCampaignsOptions = ListQueryOptions;
1620
+ type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1621
+ type CreateCampaignPayload = {
1622
+ name: string;
1623
+ file: unknown;
1624
+ objective?: string | null;
1625
+ } | FormData;
1626
+ declare function createCampaignsApi(cfg: ClientConfig & {
1627
+ retry?: RetryPolicy;
1628
+ }): {
1629
+ list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1630
+ get(campaignId: string): Promise<Campaign>;
1631
+ create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1632
+ listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1633
+ };
1634
+
1563
1635
  type ListCatalogTemplatesOptions = {
1564
1636
  visibility?: CatalogTemplateVisibility;
1565
1637
  tags?: string[];
@@ -1638,9 +1710,13 @@ declare function createWebhooksApi(cfg: ClientConfig & {
1638
1710
  type ListWorkspacePhonesOptions = ListQueryOptions & {
1639
1711
  channel?: WorkspacePhoneChannel;
1640
1712
  };
1713
+ type ListWorkspacesOptions = ListQueryOptions & {
1714
+ refreshCache?: boolean;
1715
+ };
1641
1716
  declare function createWorkspacesApi(cfg: ClientConfig & {
1642
1717
  retry?: RetryPolicy;
1643
1718
  }): {
1719
+ list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1644
1720
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1645
1721
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1646
1722
  };
@@ -1735,6 +1811,7 @@ declare function createClient(initialCfg: ClientConfig & {
1735
1811
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1736
1812
  };
1737
1813
  workspaces: {
1814
+ list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1738
1815
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1739
1816
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1740
1817
  };
@@ -1770,6 +1847,12 @@ declare function createClient(initialCfg: ClientConfig & {
1770
1847
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1771
1848
  remove(itemId: string): Promise<void>;
1772
1849
  };
1850
+ campaigns: {
1851
+ list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1852
+ get(campaignId: string): Promise<Campaign>;
1853
+ create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1854
+ listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1855
+ };
1773
1856
  voices: {
1774
1857
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1775
1858
  };
@@ -1842,6 +1925,7 @@ declare function createClient(initialCfg: ClientConfig & {
1842
1925
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1843
1926
  };
1844
1927
  workspaces: {
1928
+ list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1845
1929
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1846
1930
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1847
1931
  };
@@ -1877,6 +1961,12 @@ declare function createClient(initialCfg: ClientConfig & {
1877
1961
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1878
1962
  remove(itemId: string): Promise<void>;
1879
1963
  };
1964
+ campaigns: {
1965
+ list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1966
+ get(campaignId: string): Promise<Campaign>;
1967
+ create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1968
+ listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1969
+ };
1880
1970
  voices: {
1881
1971
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1882
1972
  };
@@ -1918,4 +2008,4 @@ declare function createHttp(cfg: ClientConfig & {
1918
2008
  resolveAccessToken: () => string;
1919
2009
  };
1920
2010
 
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 };
2011
+ 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, type ListWorkspacesOptions, 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 WorkspaceListResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, 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 };
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,6 +609,45 @@ 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';
612
651
  ForkAgentFromTemplateRequest: {
613
652
  templateId: string;
614
653
  templateVersionId?: string;
@@ -653,6 +692,14 @@ type components = {
653
692
  CreateApiKeyResponse: components['schemas']['ApiKeySummary'] & {
654
693
  key: string;
655
694
  };
695
+ WorkspaceSummary: {
696
+ id: string;
697
+ name: string;
698
+ };
699
+ WorkspaceListResponse: {
700
+ data: components['schemas']['WorkspaceSummary'][];
701
+ meta: components['schemas']['PaginationMeta'];
702
+ };
656
703
  ToolConfigSchemaActionPrompts: {
657
704
  assistant?: string;
658
705
  user?: string;
@@ -712,6 +759,7 @@ type components = {
712
759
  TagId: string;
713
760
  StageId: string;
714
761
  TriggerId: string;
762
+ CampaignId: string;
715
763
  WorkspaceId: string;
716
764
  ToolId: string;
717
765
  ResourceId: string;
@@ -730,6 +778,7 @@ type components = {
730
778
  OrParam?: components['schemas']['QueryOrGroups'];
731
779
  ScheduleId: string;
732
780
  ApiKeyId: string;
781
+ XCacheRefresh?: boolean;
733
782
  IdempotencyKey: string;
734
783
  };
735
784
  requestBodies: never;
@@ -799,6 +848,8 @@ type WorkspacePhonesResponse = components['schemas']['WorkspacePhonesResponse'];
799
848
  type WorkspacePhoneChannel = 'voice';
800
849
  type WorkspaceEnableRequest = components['schemas']['WorkspaceEnableRequest'];
801
850
  type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
851
+ type WorkspaceSummary = components['schemas']['WorkspaceSummary'];
852
+ type WorkspaceListResponse = components['schemas']['WorkspaceListResponse'];
802
853
  type VoiceSummary = components['schemas']['VoiceSummary'];
803
854
  type VoiceListResponse = components['schemas']['VoiceListResponse'];
804
855
  type CatalogItemLinks = components['schemas']['CatalogItemLinks'];
@@ -986,6 +1037,11 @@ type ToolConnectionAuth = components['schemas']['ToolConnectionAuth'];
986
1037
  type ToolConnectionRequest = components['schemas']['ToolConnectionRequest'];
987
1038
  type ToolConnectionResponse = components['schemas']['ToolConnectionResponse'];
988
1039
  type ErrorResponse = components['schemas']['ErrorResponse'];
1040
+ type CampaignStatus = components['schemas']['CampaignStatus'];
1041
+ type Campaign = components['schemas']['Campaign'];
1042
+ type CampaignListResponse = components['schemas']['CampaignListResponse'];
1043
+ type CampaignExecution = components['schemas']['CampaignExecution'];
1044
+ type CampaignExecutionListResponse = components['schemas']['CampaignExecutionListResponse'];
989
1045
  type WebhookSummary = components['schemas']['WebhookSummary'];
990
1046
  type WebhookDetail = components['schemas']['WebhookDetail'];
991
1047
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
@@ -1039,17 +1095,6 @@ declare function createAgentPhonesApi(cfg: ClientConfig & {
1039
1095
  disconnect(agentId: string, phoneId: string): Promise<void>;
1040
1096
  };
1041
1097
 
1042
- type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1043
- declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1044
- retry?: RetryPolicy;
1045
- }): {
1046
- list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1047
- get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1048
- create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1049
- update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1050
- delete(agentId: string, exceptionId: string): Promise<void>;
1051
- };
1052
-
1053
1098
  type ListAgentSchedulesOptions = ListQueryOptions;
1054
1099
  type AgentScheduleApi = {
1055
1100
  list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
@@ -1061,6 +1106,17 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
1061
1106
  retry?: RetryPolicy;
1062
1107
  }): AgentScheduleApi;
1063
1108
 
1109
+ type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1110
+ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1111
+ retry?: RetryPolicy;
1112
+ }): {
1113
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1114
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1115
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1116
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1117
+ delete(agentId: string, exceptionId: string): Promise<void>;
1118
+ };
1119
+
1064
1120
  type ListAgentStageTriggersOptions = ListQueryOptions;
1065
1121
  type AgentStageTriggersApi$1 = {
1066
1122
  list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
@@ -1560,6 +1616,22 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1560
1616
  retry?: RetryPolicy;
1561
1617
  }): ApiKeysApi;
1562
1618
 
1619
+ type ListCampaignsOptions = ListQueryOptions;
1620
+ type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1621
+ type CreateCampaignPayload = {
1622
+ name: string;
1623
+ file: unknown;
1624
+ objective?: string | null;
1625
+ } | FormData;
1626
+ declare function createCampaignsApi(cfg: ClientConfig & {
1627
+ retry?: RetryPolicy;
1628
+ }): {
1629
+ list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1630
+ get(campaignId: string): Promise<Campaign>;
1631
+ create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1632
+ listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1633
+ };
1634
+
1563
1635
  type ListCatalogTemplatesOptions = {
1564
1636
  visibility?: CatalogTemplateVisibility;
1565
1637
  tags?: string[];
@@ -1638,9 +1710,13 @@ declare function createWebhooksApi(cfg: ClientConfig & {
1638
1710
  type ListWorkspacePhonesOptions = ListQueryOptions & {
1639
1711
  channel?: WorkspacePhoneChannel;
1640
1712
  };
1713
+ type ListWorkspacesOptions = ListQueryOptions & {
1714
+ refreshCache?: boolean;
1715
+ };
1641
1716
  declare function createWorkspacesApi(cfg: ClientConfig & {
1642
1717
  retry?: RetryPolicy;
1643
1718
  }): {
1719
+ list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1644
1720
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1645
1721
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1646
1722
  };
@@ -1735,6 +1811,7 @@ declare function createClient(initialCfg: ClientConfig & {
1735
1811
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1736
1812
  };
1737
1813
  workspaces: {
1814
+ list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1738
1815
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1739
1816
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1740
1817
  };
@@ -1770,6 +1847,12 @@ declare function createClient(initialCfg: ClientConfig & {
1770
1847
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1771
1848
  remove(itemId: string): Promise<void>;
1772
1849
  };
1850
+ campaigns: {
1851
+ list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1852
+ get(campaignId: string): Promise<Campaign>;
1853
+ create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1854
+ listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1855
+ };
1773
1856
  voices: {
1774
1857
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1775
1858
  };
@@ -1842,6 +1925,7 @@ declare function createClient(initialCfg: ClientConfig & {
1842
1925
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1843
1926
  };
1844
1927
  workspaces: {
1928
+ list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1845
1929
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1846
1930
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1847
1931
  };
@@ -1877,6 +1961,12 @@ declare function createClient(initialCfg: ClientConfig & {
1877
1961
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1878
1962
  remove(itemId: string): Promise<void>;
1879
1963
  };
1964
+ campaigns: {
1965
+ list(options?: ListCampaignsOptions): Promise<PaginatedResult<CampaignListResponse, ListCampaignsOptions>>;
1966
+ get(campaignId: string): Promise<Campaign>;
1967
+ create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1968
+ listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
1969
+ };
1880
1970
  voices: {
1881
1971
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1882
1972
  };
@@ -1918,4 +2008,4 @@ declare function createHttp(cfg: ClientConfig & {
1918
2008
  resolveAccessToken: () => string;
1919
2009
  };
1920
2010
 
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 };
2011
+ 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, type ListWorkspacesOptions, 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 WorkspaceListResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, 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 };