@getsupervisor/agents-studio-sdk 1.41.2-patch.15 → 1.41.2-patch.17

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
@@ -68,12 +68,10 @@ type components = {
68
68
  CreateAgentRequest: {
69
69
  name: string;
70
70
  description?: string | null;
71
- agentType: 'voice' | 'chat';
71
+ agentType: 'voice';
72
72
  status?: 'inactive' | 'training' | 'active';
73
73
  avatarUrl?: string | null;
74
74
  debounceDelayMs?: number | null;
75
- brief?: string | null;
76
- researchUrl?: string | null;
77
75
  metadata?: {
78
76
  [key: string]: unknown;
79
77
  };
@@ -563,25 +561,6 @@ type components = {
563
561
  [key: string]: unknown;
564
562
  };
565
563
  };
566
- DocumentFileItem: {
567
- filename: string;
568
- contentType: string;
569
- };
570
- CreateDocumentSlotsRequest: {
571
- files: components['schemas']['DocumentFileItem'][];
572
- };
573
- DocumentSlot: {
574
- key: string;
575
- uploadUrl: string;
576
- filename: string;
577
- };
578
- CreateDocumentSlotsResponse: {
579
- documents: components['schemas']['DocumentSlot'][];
580
- };
581
- DocumentRef: {
582
- key: string;
583
- description: string;
584
- };
585
564
  WebhookSummary: {
586
565
  id: string;
587
566
  url: string;
@@ -659,10 +638,19 @@ type components = {
659
638
  processedRecords: number;
660
639
  successfulRecords: number;
661
640
  failedRecords: number;
641
+ connectedRecords: number;
642
+ goalAchievedRecords: number;
643
+ pendingRetriesCount: number;
644
+ terminalFailures: number;
645
+ pausedFromStatus?: components['schemas']['CampaignStatus'] | null;
646
+ nextRetryAt?: string | null;
647
+ createdBy: string;
662
648
  createdAt: string;
663
649
  updatedAt: string;
664
650
  startedAt?: string | null;
665
651
  completedAt?: string | null;
652
+ pausedAt?: string | null;
653
+ cancelledAt?: string | null;
666
654
  };
667
655
  CampaignListResponse: {
668
656
  data: components['schemas']['Campaign'][];
@@ -671,20 +659,28 @@ type components = {
671
659
  CampaignExecution: {
672
660
  campaignExecutionId: string;
673
661
  campaignId: string;
662
+ workspaceId: string;
674
663
  rowNumber: number;
675
664
  status: 'PENDING' | 'SUCCESS' | 'ERROR';
676
665
  agentExecutionId?: string | null;
677
- inputData: {
666
+ input: {
678
667
  [key: string]: unknown;
679
668
  };
680
- errorMessage?: string | null;
669
+ error?: string | null;
670
+ lastDisconnectionReason?: string | null;
671
+ callDurationMs?: number | null;
672
+ lastCallId?: string | null;
673
+ callGoalAchieved?: boolean | null;
674
+ reasonRetryCount: number;
675
+ capacityRetryCount: number;
676
+ nextRetryAt?: string | null;
681
677
  createdAt: string;
682
678
  };
683
679
  CampaignExecutionListResponse: {
684
680
  data: components['schemas']['CampaignExecution'][];
685
681
  meta: components['schemas']['PaginationMeta'];
686
682
  };
687
- CampaignStatus: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PARTIALLY_COMPLETED';
683
+ CampaignStatus: 'PENDING' | 'PROCESSING' | 'RETRYING' | 'COMPLETED' | 'PARTIALLY_COMPLETED' | 'FAILED' | 'PAUSED' | 'CANCELLED';
688
684
  Call: {
689
685
  id: string;
690
686
  title: string;
@@ -812,8 +808,6 @@ type components = {
812
808
  description?: string | null;
813
809
  status?: 'inactive' | 'training' | 'active';
814
810
  debounceDelayMs?: number | null;
815
- brief?: string | null;
816
- researchUrl?: string | null;
817
811
  };
818
812
  CloneAgentRequest: {
819
813
  name: string;
@@ -1117,72 +1111,15 @@ type ClientConfig = {
1117
1111
  type AgentDetail = components['schemas']['AgentDetail'];
1118
1112
  type AgentSummary = components['schemas']['AgentSummary'];
1119
1113
  type AgentListResponse = components['schemas']['AgentListResponse'];
1120
- type CreateAgentRequest = components['schemas']['CreateAgentRequest'] & {
1121
- documentRefs?: DocumentRef[];
1122
- };
1114
+ type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
1123
1115
  type CloneAgentRequest = components['schemas']['CloneAgentRequest'];
1124
1116
  type CloneAgentComponent = CloneAgentRequest['clone'][number];
1125
1117
  type CloneAgentSelection = CloneAgentComponent[] | Partial<Record<CloneAgentComponent, boolean>>;
1126
1118
  type CloneAgentPayload = Omit<CloneAgentRequest, 'clone'> & {
1127
1119
  clone?: CloneAgentSelection;
1128
1120
  };
1129
- type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'] & {
1130
- documentRefs?: DocumentRef[];
1131
- };
1121
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
1132
1122
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
1133
- type RuntimeUsage = {
1134
- totalCostUsd: number;
1135
- inputTokens: number;
1136
- outputTokens: number;
1137
- cacheReadInputTokens: number;
1138
- cacheCreationInputTokens: number;
1139
- peakMemoryMb: number;
1140
- };
1141
- type PresignDocumentItem = {
1142
- filename: string;
1143
- contentType: string;
1144
- };
1145
- type PresignDocumentsRequest = {
1146
- files: PresignDocumentItem[];
1147
- };
1148
- type PresignedDocument = {
1149
- key: string;
1150
- uploadUrl: string;
1151
- filename: string;
1152
- };
1153
- type PresignDocumentsResponse = {
1154
- documents: PresignedDocument[];
1155
- };
1156
- type DocumentRef = {
1157
- key: string;
1158
- description: string;
1159
- };
1160
- type RuntimeProgressEvent = {
1161
- messageType: string;
1162
- summary: string;
1163
- };
1164
- type RuntimeCompleteEvent = {
1165
- success: boolean;
1166
- durationMs: number;
1167
- usage?: RuntimeUsage;
1168
- };
1169
- type RuntimeErrorEvent = {
1170
- error: string;
1171
- code?: number | null;
1172
- };
1173
- type RuntimeSseEvent = {
1174
- event: 'agent-created';
1175
- data: AgentDetail;
1176
- } | {
1177
- event: 'runtime-progress';
1178
- data: RuntimeProgressEvent;
1179
- } | {
1180
- event: 'runtime-complete';
1181
- data: RuntimeCompleteEvent;
1182
- } | {
1183
- event: 'runtime-error';
1184
- data: RuntimeErrorEvent;
1185
- };
1186
1123
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
1187
1124
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
1188
1125
  type Instruction = components['schemas']['Instruction'];
@@ -1986,20 +1923,13 @@ type AgentEntityDependencies = {
1986
1923
  stageTriggersApi: ReturnType<typeof createAgentStageTriggersApi>;
1987
1924
  };
1988
1925
  type ListAgentsOptions = Pick<ListQueryOptions, 'page' | 'limit' | 'filter'>;
1989
- type SseCallbacks = {
1990
- onAgentCreated?: (agent: AgentDetail) => void;
1991
- onProgress?: (data: RuntimeProgressEvent) => void;
1992
- onComplete?: (data: RuntimeCompleteEvent) => void;
1993
- onError?: (data: RuntimeErrorEvent) => void;
1994
- };
1995
1926
  type AgentsApi = {
1996
1927
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1997
1928
  get(agentId: string): Promise<AgentDetail>;
1998
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1929
+ create(payload: CreateAgentRequest): Promise<AgentDetail>;
1999
1930
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentDetail>;
2000
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1931
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
2001
1932
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
2002
- presignDocuments(files: PresignDocumentItem[]): Promise<PresignDocumentsResponse>;
2003
1933
  delete(agent: string | AgentEntity): Promise<void>;
2004
1934
  };
2005
1935
  type AgentListResponseWithEntities = {
@@ -2009,9 +1939,9 @@ type AgentListResponseWithEntities = {
2009
1939
  type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'clone' | 'update' | 'list' | 'forkFromTemplate'> & {
2010
1940
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
2011
1941
  get(agentId: string): Promise<AgentEntity>;
2012
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1942
+ create(payload: CreateAgentRequest): Promise<AgentEntity>;
2013
1943
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2014
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1944
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2015
1945
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2016
1946
  };
2017
1947
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -2063,7 +1993,7 @@ declare function createCallsApi(cfg: ClientConfig & {
2063
1993
  };
2064
1994
 
2065
1995
  type ListCampaignsOptions = ListQueryOptions;
2066
- type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1996
+ type ListCampaignExecutionsOptions = ListQueryOptions;
2067
1997
  type CreateCampaignPayload = {
2068
1998
  name: string;
2069
1999
  file: unknown;
@@ -2076,6 +2006,16 @@ declare function createCampaignsApi(cfg: ClientConfig & {
2076
2006
  get(campaignId: string): Promise<Campaign>;
2077
2007
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
2078
2008
  listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
2009
+ pause(campaignId: string): Promise<{
2010
+ status: "paused";
2011
+ }>;
2012
+ resume(campaignId: string): Promise<{
2013
+ status: "resumed";
2014
+ }>;
2015
+ cancel(campaignId: string): Promise<{
2016
+ status: "cancelled";
2017
+ }>;
2018
+ exportExecutions(campaignId: string): Promise<Blob>;
2079
2019
  };
2080
2020
 
2081
2021
  type ListCatalogTemplatesOptions = {
@@ -2282,15 +2222,14 @@ declare function createClient(initialCfg: ClientConfig & {
2282
2222
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2283
2223
  };
2284
2224
  delete: (agent: string | AgentEntity) => Promise<void>;
2285
- presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2286
2225
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2287
2226
  data: AgentEntity[];
2288
2227
  meta: AgentListResponse["meta"];
2289
2228
  }, ListAgentsOptions>>;
2290
2229
  get(agentId: string): Promise<AgentEntity>;
2291
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2230
+ create(payload: CreateAgentRequest): Promise<AgentEntity>;
2292
2231
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2293
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2232
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2294
2233
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2295
2234
  };
2296
2235
  workspaces: {
@@ -2360,6 +2299,16 @@ declare function createClient(initialCfg: ClientConfig & {
2360
2299
  get(campaignId: string): Promise<Campaign>;
2361
2300
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
2362
2301
  listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
2302
+ pause(campaignId: string): Promise<{
2303
+ status: "paused";
2304
+ }>;
2305
+ resume(campaignId: string): Promise<{
2306
+ status: "resumed";
2307
+ }>;
2308
+ cancel(campaignId: string): Promise<{
2309
+ status: "cancelled";
2310
+ }>;
2311
+ exportExecutions(campaignId: string): Promise<Blob>;
2363
2312
  };
2364
2313
  voices: {
2365
2314
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
@@ -2443,15 +2392,14 @@ declare function createClient(initialCfg: ClientConfig & {
2443
2392
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2444
2393
  };
2445
2394
  delete: (agent: string | AgentEntity) => Promise<void>;
2446
- presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2447
2395
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2448
2396
  data: AgentEntity[];
2449
2397
  meta: AgentListResponse["meta"];
2450
2398
  }, ListAgentsOptions>>;
2451
2399
  get(agentId: string): Promise<AgentEntity>;
2452
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2400
+ create(payload: CreateAgentRequest): Promise<AgentEntity>;
2453
2401
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2454
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2402
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2455
2403
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2456
2404
  };
2457
2405
  workspaces: {
@@ -2521,6 +2469,16 @@ declare function createClient(initialCfg: ClientConfig & {
2521
2469
  get(campaignId: string): Promise<Campaign>;
2522
2470
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
2523
2471
  listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
2472
+ pause(campaignId: string): Promise<{
2473
+ status: "paused";
2474
+ }>;
2475
+ resume(campaignId: string): Promise<{
2476
+ status: "resumed";
2477
+ }>;
2478
+ cancel(campaignId: string): Promise<{
2479
+ status: "cancelled";
2480
+ }>;
2481
+ exportExecutions(campaignId: string): Promise<Blob>;
2524
2482
  };
2525
2483
  voices: {
2526
2484
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
@@ -2583,4 +2541,4 @@ declare function createHttp(cfg: ClientConfig & {
2583
2541
  resolveAccessToken: () => string;
2584
2542
  };
2585
2543
 
2586
- 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, 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 CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, 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 CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, 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 ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, 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, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
2544
+ 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, 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 CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, 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 CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, 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 ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, 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 ResourceBalance, type ResourceProjection, type RetryPolicy, type SipTrunk, type SipTrunkWithPassword, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, 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, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
package/dist/index.d.ts CHANGED
@@ -68,12 +68,10 @@ type components = {
68
68
  CreateAgentRequest: {
69
69
  name: string;
70
70
  description?: string | null;
71
- agentType: 'voice' | 'chat';
71
+ agentType: 'voice';
72
72
  status?: 'inactive' | 'training' | 'active';
73
73
  avatarUrl?: string | null;
74
74
  debounceDelayMs?: number | null;
75
- brief?: string | null;
76
- researchUrl?: string | null;
77
75
  metadata?: {
78
76
  [key: string]: unknown;
79
77
  };
@@ -563,25 +561,6 @@ type components = {
563
561
  [key: string]: unknown;
564
562
  };
565
563
  };
566
- DocumentFileItem: {
567
- filename: string;
568
- contentType: string;
569
- };
570
- CreateDocumentSlotsRequest: {
571
- files: components['schemas']['DocumentFileItem'][];
572
- };
573
- DocumentSlot: {
574
- key: string;
575
- uploadUrl: string;
576
- filename: string;
577
- };
578
- CreateDocumentSlotsResponse: {
579
- documents: components['schemas']['DocumentSlot'][];
580
- };
581
- DocumentRef: {
582
- key: string;
583
- description: string;
584
- };
585
564
  WebhookSummary: {
586
565
  id: string;
587
566
  url: string;
@@ -659,10 +638,19 @@ type components = {
659
638
  processedRecords: number;
660
639
  successfulRecords: number;
661
640
  failedRecords: number;
641
+ connectedRecords: number;
642
+ goalAchievedRecords: number;
643
+ pendingRetriesCount: number;
644
+ terminalFailures: number;
645
+ pausedFromStatus?: components['schemas']['CampaignStatus'] | null;
646
+ nextRetryAt?: string | null;
647
+ createdBy: string;
662
648
  createdAt: string;
663
649
  updatedAt: string;
664
650
  startedAt?: string | null;
665
651
  completedAt?: string | null;
652
+ pausedAt?: string | null;
653
+ cancelledAt?: string | null;
666
654
  };
667
655
  CampaignListResponse: {
668
656
  data: components['schemas']['Campaign'][];
@@ -671,20 +659,28 @@ type components = {
671
659
  CampaignExecution: {
672
660
  campaignExecutionId: string;
673
661
  campaignId: string;
662
+ workspaceId: string;
674
663
  rowNumber: number;
675
664
  status: 'PENDING' | 'SUCCESS' | 'ERROR';
676
665
  agentExecutionId?: string | null;
677
- inputData: {
666
+ input: {
678
667
  [key: string]: unknown;
679
668
  };
680
- errorMessage?: string | null;
669
+ error?: string | null;
670
+ lastDisconnectionReason?: string | null;
671
+ callDurationMs?: number | null;
672
+ lastCallId?: string | null;
673
+ callGoalAchieved?: boolean | null;
674
+ reasonRetryCount: number;
675
+ capacityRetryCount: number;
676
+ nextRetryAt?: string | null;
681
677
  createdAt: string;
682
678
  };
683
679
  CampaignExecutionListResponse: {
684
680
  data: components['schemas']['CampaignExecution'][];
685
681
  meta: components['schemas']['PaginationMeta'];
686
682
  };
687
- CampaignStatus: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PARTIALLY_COMPLETED';
683
+ CampaignStatus: 'PENDING' | 'PROCESSING' | 'RETRYING' | 'COMPLETED' | 'PARTIALLY_COMPLETED' | 'FAILED' | 'PAUSED' | 'CANCELLED';
688
684
  Call: {
689
685
  id: string;
690
686
  title: string;
@@ -812,8 +808,6 @@ type components = {
812
808
  description?: string | null;
813
809
  status?: 'inactive' | 'training' | 'active';
814
810
  debounceDelayMs?: number | null;
815
- brief?: string | null;
816
- researchUrl?: string | null;
817
811
  };
818
812
  CloneAgentRequest: {
819
813
  name: string;
@@ -1117,72 +1111,15 @@ type ClientConfig = {
1117
1111
  type AgentDetail = components['schemas']['AgentDetail'];
1118
1112
  type AgentSummary = components['schemas']['AgentSummary'];
1119
1113
  type AgentListResponse = components['schemas']['AgentListResponse'];
1120
- type CreateAgentRequest = components['schemas']['CreateAgentRequest'] & {
1121
- documentRefs?: DocumentRef[];
1122
- };
1114
+ type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
1123
1115
  type CloneAgentRequest = components['schemas']['CloneAgentRequest'];
1124
1116
  type CloneAgentComponent = CloneAgentRequest['clone'][number];
1125
1117
  type CloneAgentSelection = CloneAgentComponent[] | Partial<Record<CloneAgentComponent, boolean>>;
1126
1118
  type CloneAgentPayload = Omit<CloneAgentRequest, 'clone'> & {
1127
1119
  clone?: CloneAgentSelection;
1128
1120
  };
1129
- type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'] & {
1130
- documentRefs?: DocumentRef[];
1131
- };
1121
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
1132
1122
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
1133
- type RuntimeUsage = {
1134
- totalCostUsd: number;
1135
- inputTokens: number;
1136
- outputTokens: number;
1137
- cacheReadInputTokens: number;
1138
- cacheCreationInputTokens: number;
1139
- peakMemoryMb: number;
1140
- };
1141
- type PresignDocumentItem = {
1142
- filename: string;
1143
- contentType: string;
1144
- };
1145
- type PresignDocumentsRequest = {
1146
- files: PresignDocumentItem[];
1147
- };
1148
- type PresignedDocument = {
1149
- key: string;
1150
- uploadUrl: string;
1151
- filename: string;
1152
- };
1153
- type PresignDocumentsResponse = {
1154
- documents: PresignedDocument[];
1155
- };
1156
- type DocumentRef = {
1157
- key: string;
1158
- description: string;
1159
- };
1160
- type RuntimeProgressEvent = {
1161
- messageType: string;
1162
- summary: string;
1163
- };
1164
- type RuntimeCompleteEvent = {
1165
- success: boolean;
1166
- durationMs: number;
1167
- usage?: RuntimeUsage;
1168
- };
1169
- type RuntimeErrorEvent = {
1170
- error: string;
1171
- code?: number | null;
1172
- };
1173
- type RuntimeSseEvent = {
1174
- event: 'agent-created';
1175
- data: AgentDetail;
1176
- } | {
1177
- event: 'runtime-progress';
1178
- data: RuntimeProgressEvent;
1179
- } | {
1180
- event: 'runtime-complete';
1181
- data: RuntimeCompleteEvent;
1182
- } | {
1183
- event: 'runtime-error';
1184
- data: RuntimeErrorEvent;
1185
- };
1186
1123
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
1187
1124
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
1188
1125
  type Instruction = components['schemas']['Instruction'];
@@ -1986,20 +1923,13 @@ type AgentEntityDependencies = {
1986
1923
  stageTriggersApi: ReturnType<typeof createAgentStageTriggersApi>;
1987
1924
  };
1988
1925
  type ListAgentsOptions = Pick<ListQueryOptions, 'page' | 'limit' | 'filter'>;
1989
- type SseCallbacks = {
1990
- onAgentCreated?: (agent: AgentDetail) => void;
1991
- onProgress?: (data: RuntimeProgressEvent) => void;
1992
- onComplete?: (data: RuntimeCompleteEvent) => void;
1993
- onError?: (data: RuntimeErrorEvent) => void;
1994
- };
1995
1926
  type AgentsApi = {
1996
1927
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1997
1928
  get(agentId: string): Promise<AgentDetail>;
1998
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1929
+ create(payload: CreateAgentRequest): Promise<AgentDetail>;
1999
1930
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentDetail>;
2000
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1931
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
2001
1932
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
2002
- presignDocuments(files: PresignDocumentItem[]): Promise<PresignDocumentsResponse>;
2003
1933
  delete(agent: string | AgentEntity): Promise<void>;
2004
1934
  };
2005
1935
  type AgentListResponseWithEntities = {
@@ -2009,9 +1939,9 @@ type AgentListResponseWithEntities = {
2009
1939
  type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'clone' | 'update' | 'list' | 'forkFromTemplate'> & {
2010
1940
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
2011
1941
  get(agentId: string): Promise<AgentEntity>;
2012
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1942
+ create(payload: CreateAgentRequest): Promise<AgentEntity>;
2013
1943
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2014
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1944
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2015
1945
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2016
1946
  };
2017
1947
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -2063,7 +1993,7 @@ declare function createCallsApi(cfg: ClientConfig & {
2063
1993
  };
2064
1994
 
2065
1995
  type ListCampaignsOptions = ListQueryOptions;
2066
- type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1996
+ type ListCampaignExecutionsOptions = ListQueryOptions;
2067
1997
  type CreateCampaignPayload = {
2068
1998
  name: string;
2069
1999
  file: unknown;
@@ -2076,6 +2006,16 @@ declare function createCampaignsApi(cfg: ClientConfig & {
2076
2006
  get(campaignId: string): Promise<Campaign>;
2077
2007
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
2078
2008
  listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
2009
+ pause(campaignId: string): Promise<{
2010
+ status: "paused";
2011
+ }>;
2012
+ resume(campaignId: string): Promise<{
2013
+ status: "resumed";
2014
+ }>;
2015
+ cancel(campaignId: string): Promise<{
2016
+ status: "cancelled";
2017
+ }>;
2018
+ exportExecutions(campaignId: string): Promise<Blob>;
2079
2019
  };
2080
2020
 
2081
2021
  type ListCatalogTemplatesOptions = {
@@ -2282,15 +2222,14 @@ declare function createClient(initialCfg: ClientConfig & {
2282
2222
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2283
2223
  };
2284
2224
  delete: (agent: string | AgentEntity) => Promise<void>;
2285
- presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2286
2225
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2287
2226
  data: AgentEntity[];
2288
2227
  meta: AgentListResponse["meta"];
2289
2228
  }, ListAgentsOptions>>;
2290
2229
  get(agentId: string): Promise<AgentEntity>;
2291
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2230
+ create(payload: CreateAgentRequest): Promise<AgentEntity>;
2292
2231
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2293
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2232
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2294
2233
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2295
2234
  };
2296
2235
  workspaces: {
@@ -2360,6 +2299,16 @@ declare function createClient(initialCfg: ClientConfig & {
2360
2299
  get(campaignId: string): Promise<Campaign>;
2361
2300
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
2362
2301
  listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
2302
+ pause(campaignId: string): Promise<{
2303
+ status: "paused";
2304
+ }>;
2305
+ resume(campaignId: string): Promise<{
2306
+ status: "resumed";
2307
+ }>;
2308
+ cancel(campaignId: string): Promise<{
2309
+ status: "cancelled";
2310
+ }>;
2311
+ exportExecutions(campaignId: string): Promise<Blob>;
2363
2312
  };
2364
2313
  voices: {
2365
2314
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
@@ -2443,15 +2392,14 @@ declare function createClient(initialCfg: ClientConfig & {
2443
2392
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2444
2393
  };
2445
2394
  delete: (agent: string | AgentEntity) => Promise<void>;
2446
- presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2447
2395
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2448
2396
  data: AgentEntity[];
2449
2397
  meta: AgentListResponse["meta"];
2450
2398
  }, ListAgentsOptions>>;
2451
2399
  get(agentId: string): Promise<AgentEntity>;
2452
- create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2400
+ create(payload: CreateAgentRequest): Promise<AgentEntity>;
2453
2401
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2454
- forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2402
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2455
2403
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2456
2404
  };
2457
2405
  workspaces: {
@@ -2521,6 +2469,16 @@ declare function createClient(initialCfg: ClientConfig & {
2521
2469
  get(campaignId: string): Promise<Campaign>;
2522
2470
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
2523
2471
  listExecutions(campaignId: string, options?: ListCampaignExecutionsOptions): Promise<PaginatedResult<CampaignExecutionListResponse, ListCampaignExecutionsOptions>>;
2472
+ pause(campaignId: string): Promise<{
2473
+ status: "paused";
2474
+ }>;
2475
+ resume(campaignId: string): Promise<{
2476
+ status: "resumed";
2477
+ }>;
2478
+ cancel(campaignId: string): Promise<{
2479
+ status: "cancelled";
2480
+ }>;
2481
+ exportExecutions(campaignId: string): Promise<Blob>;
2524
2482
  };
2525
2483
  voices: {
2526
2484
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
@@ -2583,4 +2541,4 @@ declare function createHttp(cfg: ClientConfig & {
2583
2541
  resolveAccessToken: () => string;
2584
2542
  };
2585
2543
 
2586
- 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, 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 CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, 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 CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, 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 ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, 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, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
2544
+ 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, 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 CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, 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 CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, 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 ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, 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 ResourceBalance, type ResourceProjection, type RetryPolicy, type SipTrunk, type SipTrunkWithPassword, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, 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, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };