@getsupervisor/agents-studio-sdk 1.37.0 → 1.39.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
@@ -142,6 +142,7 @@ type components = {
142
142
  slot?: components['schemas']['AgentScheduleSlot'] | null;
143
143
  };
144
144
  AgentSchedule: {
145
+ id: string;
145
146
  agentId: string;
146
147
  isEnabled: boolean;
147
148
  timezone: string;
@@ -238,11 +239,15 @@ type components = {
238
239
  personalityInitialGreeting: string;
239
240
  personalityMessageStyleId: string;
240
241
  personalityToneStyleId: string;
242
+ voiceId?: string | null;
241
243
  startSpeaker: 'user' | 'agent';
242
244
  requiredData: string[];
243
245
  criticalRules?: string[];
244
246
  topicsAllowed?: string[];
245
247
  topicsForbidden?: string[];
248
+ contentHash: string | null;
249
+ contentVariables: string[];
250
+ variablesCache: string[];
246
251
  createdAt: string;
247
252
  updatedAt: string;
248
253
  };
@@ -265,6 +270,7 @@ type components = {
265
270
  personalityInitialGreeting: string;
266
271
  personalityMessageStyleId: string;
267
272
  personalityToneStyleId: string;
273
+ voiceId?: string | null;
268
274
  startSpeaker: 'user' | 'agent';
269
275
  requiredData?: string[];
270
276
  criticalRules?: string[];
@@ -280,6 +286,7 @@ type components = {
280
286
  personalityInitialGreeting?: string;
281
287
  personalityMessageStyleId?: string;
282
288
  personalityToneStyleId?: string;
289
+ voiceId?: string | null;
283
290
  startSpeaker?: 'user' | 'agent';
284
291
  requiredData?: string[];
285
292
  criticalRules?: string[];
@@ -299,6 +306,8 @@ type components = {
299
306
  metadata?: {
300
307
  [key: string]: unknown;
301
308
  } | null;
309
+ contentHash: string | null;
310
+ variables: string[];
302
311
  createdAt: string;
303
312
  updatedAt: string;
304
313
  };
@@ -600,6 +609,45 @@ type components = {
600
609
  UpdateEventSubscriptionRequest: {
601
610
  isActive?: boolean;
602
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';
603
651
  ForkAgentFromTemplateRequest: {
604
652
  templateId: string;
605
653
  templateVersionId?: string;
@@ -608,6 +656,10 @@ type components = {
608
656
  status?: 'inactive' | 'training' | 'active';
609
657
  debounceDelayMs?: number | null;
610
658
  };
659
+ AgentScheduleListResponse: {
660
+ data: components['schemas']['AgentSchedule'][];
661
+ meta: components['schemas']['PaginationMeta'];
662
+ };
611
663
  BlueprintStageTriggerCondition: {
612
664
  type: 'intent' | 'rule' | 'expression';
613
665
  value: string;
@@ -699,6 +751,7 @@ type components = {
699
751
  TagId: string;
700
752
  StageId: string;
701
753
  TriggerId: string;
754
+ CampaignId: string;
702
755
  WorkspaceId: string;
703
756
  ToolId: string;
704
757
  ResourceId: string;
@@ -714,6 +767,8 @@ type components = {
714
767
  FilterParam?: components['schemas']['QueryFilters'];
715
768
  WebhookId: string;
716
769
  SubscriptionId: string;
770
+ OrParam?: components['schemas']['QueryOrGroups'];
771
+ ScheduleId: string;
717
772
  ApiKeyId: string;
718
773
  IdempotencyKey: string;
719
774
  };
@@ -880,11 +935,15 @@ type AgentBlueprint = {
880
935
  personalityInitialGreeting: string;
881
936
  personalityMessageStyleId: string;
882
937
  personalityToneStyleId: string;
938
+ voiceId: string | null;
883
939
  startSpeaker: 'user' | 'agent';
884
940
  requiredData: string[];
885
941
  criticalRules: string[];
886
942
  topicsAllowed: string[];
887
943
  topicsForbidden: string[];
944
+ contentHash: string | null;
945
+ contentVariables: string[];
946
+ variablesCache: string[];
888
947
  createdAt: string;
889
948
  updatedAt: string;
890
949
  };
@@ -932,6 +991,8 @@ type BlueprintStageSchema = components['schemas']['BlueprintStage'];
932
991
  type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'> & {
933
992
  goalPrompt: string;
934
993
  promptInstructions: string[];
994
+ contentHash: string | null;
995
+ variables: string[];
935
996
  };
936
997
  type BlueprintStageListResponseSchema = components['schemas']['BlueprintStageListResponse'];
937
998
  type BlueprintStageListResponse = Omit<BlueprintStageListResponseSchema, 'data'> & {
@@ -965,6 +1026,11 @@ type ToolConnectionAuth = components['schemas']['ToolConnectionAuth'];
965
1026
  type ToolConnectionRequest = components['schemas']['ToolConnectionRequest'];
966
1027
  type ToolConnectionResponse = components['schemas']['ToolConnectionResponse'];
967
1028
  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'];
968
1034
  type WebhookSummary = components['schemas']['WebhookSummary'];
969
1035
  type WebhookDetail = components['schemas']['WebhookDetail'];
970
1036
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
@@ -1018,17 +1084,6 @@ declare function createAgentPhonesApi(cfg: ClientConfig & {
1018
1084
  disconnect(agentId: string, phoneId: string): Promise<void>;
1019
1085
  };
1020
1086
 
1021
- type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1022
- declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1023
- retry?: RetryPolicy;
1024
- }): {
1025
- list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1026
- get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1027
- create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1028
- update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1029
- delete(agentId: string, exceptionId: string): Promise<void>;
1030
- };
1031
-
1032
1087
  type ListAgentSchedulesOptions = ListQueryOptions;
1033
1088
  type AgentScheduleApi = {
1034
1089
  list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
@@ -1040,6 +1095,17 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
1040
1095
  retry?: RetryPolicy;
1041
1096
  }): AgentScheduleApi;
1042
1097
 
1098
+ type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1099
+ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1100
+ retry?: RetryPolicy;
1101
+ }): {
1102
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1103
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1104
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1105
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1106
+ delete(agentId: string, exceptionId: string): Promise<void>;
1107
+ };
1108
+
1043
1109
  type ListAgentStageTriggersOptions = ListQueryOptions;
1044
1110
  type AgentStageTriggersApi$1 = {
1045
1111
  list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
@@ -1539,6 +1605,22 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1539
1605
  retry?: RetryPolicy;
1540
1606
  }): ApiKeysApi;
1541
1607
 
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
+
1542
1624
  type ListCatalogTemplatesOptions = {
1543
1625
  visibility?: CatalogTemplateVisibility;
1544
1626
  tags?: string[];
@@ -1749,6 +1831,12 @@ declare function createClient(initialCfg: ClientConfig & {
1749
1831
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1750
1832
  remove(itemId: string): Promise<void>;
1751
1833
  };
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
+ };
1752
1840
  voices: {
1753
1841
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1754
1842
  };
@@ -1856,6 +1944,12 @@ declare function createClient(initialCfg: ClientConfig & {
1856
1944
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1857
1945
  remove(itemId: string): Promise<void>;
1858
1946
  };
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
+ };
1859
1953
  voices: {
1860
1954
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1861
1955
  };
@@ -1897,4 +1991,4 @@ declare function createHttp(cfg: ClientConfig & {
1897
1991
  resolveAccessToken: () => string;
1898
1992
  };
1899
1993
 
1900
- 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -142,6 +142,7 @@ type components = {
142
142
  slot?: components['schemas']['AgentScheduleSlot'] | null;
143
143
  };
144
144
  AgentSchedule: {
145
+ id: string;
145
146
  agentId: string;
146
147
  isEnabled: boolean;
147
148
  timezone: string;
@@ -238,11 +239,15 @@ type components = {
238
239
  personalityInitialGreeting: string;
239
240
  personalityMessageStyleId: string;
240
241
  personalityToneStyleId: string;
242
+ voiceId?: string | null;
241
243
  startSpeaker: 'user' | 'agent';
242
244
  requiredData: string[];
243
245
  criticalRules?: string[];
244
246
  topicsAllowed?: string[];
245
247
  topicsForbidden?: string[];
248
+ contentHash: string | null;
249
+ contentVariables: string[];
250
+ variablesCache: string[];
246
251
  createdAt: string;
247
252
  updatedAt: string;
248
253
  };
@@ -265,6 +270,7 @@ type components = {
265
270
  personalityInitialGreeting: string;
266
271
  personalityMessageStyleId: string;
267
272
  personalityToneStyleId: string;
273
+ voiceId?: string | null;
268
274
  startSpeaker: 'user' | 'agent';
269
275
  requiredData?: string[];
270
276
  criticalRules?: string[];
@@ -280,6 +286,7 @@ type components = {
280
286
  personalityInitialGreeting?: string;
281
287
  personalityMessageStyleId?: string;
282
288
  personalityToneStyleId?: string;
289
+ voiceId?: string | null;
283
290
  startSpeaker?: 'user' | 'agent';
284
291
  requiredData?: string[];
285
292
  criticalRules?: string[];
@@ -299,6 +306,8 @@ type components = {
299
306
  metadata?: {
300
307
  [key: string]: unknown;
301
308
  } | null;
309
+ contentHash: string | null;
310
+ variables: string[];
302
311
  createdAt: string;
303
312
  updatedAt: string;
304
313
  };
@@ -600,6 +609,45 @@ type components = {
600
609
  UpdateEventSubscriptionRequest: {
601
610
  isActive?: boolean;
602
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';
603
651
  ForkAgentFromTemplateRequest: {
604
652
  templateId: string;
605
653
  templateVersionId?: string;
@@ -608,6 +656,10 @@ type components = {
608
656
  status?: 'inactive' | 'training' | 'active';
609
657
  debounceDelayMs?: number | null;
610
658
  };
659
+ AgentScheduleListResponse: {
660
+ data: components['schemas']['AgentSchedule'][];
661
+ meta: components['schemas']['PaginationMeta'];
662
+ };
611
663
  BlueprintStageTriggerCondition: {
612
664
  type: 'intent' | 'rule' | 'expression';
613
665
  value: string;
@@ -699,6 +751,7 @@ type components = {
699
751
  TagId: string;
700
752
  StageId: string;
701
753
  TriggerId: string;
754
+ CampaignId: string;
702
755
  WorkspaceId: string;
703
756
  ToolId: string;
704
757
  ResourceId: string;
@@ -714,6 +767,8 @@ type components = {
714
767
  FilterParam?: components['schemas']['QueryFilters'];
715
768
  WebhookId: string;
716
769
  SubscriptionId: string;
770
+ OrParam?: components['schemas']['QueryOrGroups'];
771
+ ScheduleId: string;
717
772
  ApiKeyId: string;
718
773
  IdempotencyKey: string;
719
774
  };
@@ -880,11 +935,15 @@ type AgentBlueprint = {
880
935
  personalityInitialGreeting: string;
881
936
  personalityMessageStyleId: string;
882
937
  personalityToneStyleId: string;
938
+ voiceId: string | null;
883
939
  startSpeaker: 'user' | 'agent';
884
940
  requiredData: string[];
885
941
  criticalRules: string[];
886
942
  topicsAllowed: string[];
887
943
  topicsForbidden: string[];
944
+ contentHash: string | null;
945
+ contentVariables: string[];
946
+ variablesCache: string[];
888
947
  createdAt: string;
889
948
  updatedAt: string;
890
949
  };
@@ -932,6 +991,8 @@ type BlueprintStageSchema = components['schemas']['BlueprintStage'];
932
991
  type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'> & {
933
992
  goalPrompt: string;
934
993
  promptInstructions: string[];
994
+ contentHash: string | null;
995
+ variables: string[];
935
996
  };
936
997
  type BlueprintStageListResponseSchema = components['schemas']['BlueprintStageListResponse'];
937
998
  type BlueprintStageListResponse = Omit<BlueprintStageListResponseSchema, 'data'> & {
@@ -965,6 +1026,11 @@ type ToolConnectionAuth = components['schemas']['ToolConnectionAuth'];
965
1026
  type ToolConnectionRequest = components['schemas']['ToolConnectionRequest'];
966
1027
  type ToolConnectionResponse = components['schemas']['ToolConnectionResponse'];
967
1028
  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'];
968
1034
  type WebhookSummary = components['schemas']['WebhookSummary'];
969
1035
  type WebhookDetail = components['schemas']['WebhookDetail'];
970
1036
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
@@ -1018,17 +1084,6 @@ declare function createAgentPhonesApi(cfg: ClientConfig & {
1018
1084
  disconnect(agentId: string, phoneId: string): Promise<void>;
1019
1085
  };
1020
1086
 
1021
- type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1022
- declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1023
- retry?: RetryPolicy;
1024
- }): {
1025
- list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1026
- get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1027
- create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1028
- update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1029
- delete(agentId: string, exceptionId: string): Promise<void>;
1030
- };
1031
-
1032
1087
  type ListAgentSchedulesOptions = ListQueryOptions;
1033
1088
  type AgentScheduleApi = {
1034
1089
  list(agentId: string, options?: ListAgentSchedulesOptions): Promise<PaginatedResult<AgentScheduleListResponse, ListAgentSchedulesOptions>>;
@@ -1040,6 +1095,17 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
1040
1095
  retry?: RetryPolicy;
1041
1096
  }): AgentScheduleApi;
1042
1097
 
1098
+ type ListAgentScheduleExceptionsOptions = ListQueryOptions;
1099
+ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
1100
+ retry?: RetryPolicy;
1101
+ }): {
1102
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
1103
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
1104
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1105
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
1106
+ delete(agentId: string, exceptionId: string): Promise<void>;
1107
+ };
1108
+
1043
1109
  type ListAgentStageTriggersOptions = ListQueryOptions;
1044
1110
  type AgentStageTriggersApi$1 = {
1045
1111
  list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
@@ -1539,6 +1605,22 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1539
1605
  retry?: RetryPolicy;
1540
1606
  }): ApiKeysApi;
1541
1607
 
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
+
1542
1624
  type ListCatalogTemplatesOptions = {
1543
1625
  visibility?: CatalogTemplateVisibility;
1544
1626
  tags?: string[];
@@ -1749,6 +1831,12 @@ declare function createClient(initialCfg: ClientConfig & {
1749
1831
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1750
1832
  remove(itemId: string): Promise<void>;
1751
1833
  };
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
+ };
1752
1840
  voices: {
1753
1841
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1754
1842
  };
@@ -1856,6 +1944,12 @@ declare function createClient(initialCfg: ClientConfig & {
1856
1944
  create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
1857
1945
  remove(itemId: string): Promise<void>;
1858
1946
  };
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
+ };
1859
1953
  voices: {
1860
1954
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1861
1955
  };
@@ -1897,4 +1991,4 @@ declare function createHttp(cfg: ClientConfig & {
1897
1991
  resolveAccessToken: () => string;
1898
1992
  };
1899
1993
 
1900
- 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 };
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 };