@getsupervisor/agents-studio-sdk 1.41.2 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -35,6 +35,9 @@ type components = {
35
35
  } | null;
36
36
  createdAt: string;
37
37
  updatedAt: string;
38
+ totalCalls: number;
39
+ totalOperationalDays: number;
40
+ goalAchievedPercentage: number;
38
41
  metadata?: {
39
42
  [key: string]: unknown;
40
43
  };
@@ -51,6 +54,7 @@ type components = {
51
54
  AgentSummary: {
52
55
  agentId: string;
53
56
  name: string;
57
+ description?: string | null;
54
58
  agentType: 'chat' | 'voice';
55
59
  status: 'inactive' | 'training' | 'active' | 'archived';
56
60
  workspaceId: string;
@@ -64,7 +68,7 @@ type components = {
64
68
  CreateAgentRequest: {
65
69
  name: string;
66
70
  description?: string | null;
67
- agentType: 'chat' | 'voice';
71
+ agentType: 'voice';
68
72
  status?: 'inactive' | 'training' | 'active';
69
73
  avatarUrl?: string | null;
70
74
  debounceDelayMs?: number | null;
@@ -405,6 +409,7 @@ type components = {
405
409
  identifier: string;
406
410
  description?: string | null;
407
411
  enabled: boolean;
412
+ visible: boolean;
408
413
  category?: string | null;
409
414
  auth: 'none' | 'oauth2' | 'api_key' | 'custom';
410
415
  requiresUserAuth: boolean;
@@ -458,6 +463,8 @@ type components = {
458
463
  metadata?: {
459
464
  [key: string]: unknown;
460
465
  };
466
+ descriptionUsage?: string;
467
+ usageExample?: string;
461
468
  auth?: components['schemas']['ToolConnectionAuth'];
462
469
  };
463
470
  ToolConnectionResponse: {
@@ -472,6 +479,8 @@ type components = {
472
479
  metadata?: {
473
480
  [key: string]: unknown;
474
481
  };
482
+ descriptionUsage?: string | null;
483
+ usageExample?: string | null;
475
484
  };
476
485
  ToolConnectionAuth: {
477
486
  type: 'none' | 'oauth2' | 'api_key' | 'custom';
@@ -535,9 +544,8 @@ type components = {
535
544
  }, 'type' | 'scope' | 'name' | 'description' | 'metadata'>;
536
545
  WorkspaceEnableRequest: {
537
546
  apiKey: string;
538
- metadata?: {
539
- [key: string]: unknown;
540
- };
547
+ phone: string;
548
+ speechAnalyticsAgentId: string;
541
549
  };
542
550
  WorkspaceEnableResponse: {
543
551
  status: 'enabled';
@@ -558,6 +566,7 @@ type components = {
558
566
  url: string;
559
567
  agentId?: string | null;
560
568
  description?: string | null;
569
+ method?: 'GET' | 'POST';
561
570
  isActive: boolean;
562
571
  secretPreview?: string | null;
563
572
  createdAt: string;
@@ -584,6 +593,7 @@ type components = {
584
593
  [key: string]: string;
585
594
  };
586
595
  secret?: string;
596
+ method?: 'GET' | 'POST';
587
597
  };
588
598
  UpdateWebhookRequest: {
589
599
  url?: string;
@@ -593,6 +603,7 @@ type components = {
593
603
  headers?: {
594
604
  [key: string]: string;
595
605
  };
606
+ method?: 'GET' | 'POST';
596
607
  };
597
608
  EventSubscriptionSummary: {
598
609
  id: string;
@@ -627,10 +638,19 @@ type components = {
627
638
  processedRecords: number;
628
639
  successfulRecords: number;
629
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;
630
648
  createdAt: string;
631
649
  updatedAt: string;
632
650
  startedAt?: string | null;
633
651
  completedAt?: string | null;
652
+ pausedAt?: string | null;
653
+ cancelledAt?: string | null;
634
654
  };
635
655
  CampaignListResponse: {
636
656
  data: components['schemas']['Campaign'][];
@@ -639,20 +659,148 @@ type components = {
639
659
  CampaignExecution: {
640
660
  campaignExecutionId: string;
641
661
  campaignId: string;
662
+ workspaceId: string;
642
663
  rowNumber: number;
643
664
  status: 'PENDING' | 'SUCCESS' | 'ERROR';
644
665
  agentExecutionId?: string | null;
645
- inputData: {
666
+ input: {
646
667
  [key: string]: unknown;
647
668
  };
648
- 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;
649
677
  createdAt: string;
650
678
  };
651
679
  CampaignExecutionListResponse: {
652
680
  data: components['schemas']['CampaignExecution'][];
653
681
  meta: components['schemas']['PaginationMeta'];
654
682
  };
655
- CampaignStatus: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PARTIALLY_COMPLETED';
683
+ CampaignStatus: 'PENDING' | 'PROCESSING' | 'RETRYING' | 'COMPLETED' | 'PARTIALLY_COMPLETED' | 'FAILED' | 'PAUSED' | 'CANCELLED';
684
+ Call: {
685
+ id: string;
686
+ title: string;
687
+ customerPhone: string | null;
688
+ durationSeconds: number | null;
689
+ supervisors: components['schemas']['CallSupervisors'];
690
+ goal: components['schemas']['CallGoal'];
691
+ startedAt: string;
692
+ recordingUrl: string | null;
693
+ agentBatchId: string | null;
694
+ agentId: string | null;
695
+ executionId: string | null;
696
+ };
697
+ CallGoal: {
698
+ achieved: boolean;
699
+ reason: string | null;
700
+ };
701
+ CallSupervisors: {
702
+ evaluations: number | null;
703
+ discoveries: number | null;
704
+ risks: number | null;
705
+ };
706
+ CallsListMeta: components['schemas']['PaginationMeta'] & {
707
+ sort: string[];
708
+ appliedFilters: string[];
709
+ };
710
+ CallsListResponse: {
711
+ data: components['schemas']['Call'][];
712
+ meta: components['schemas']['CallsListMeta'];
713
+ };
714
+ CallsStreamMeta: {
715
+ limit: number;
716
+ nextAfter: string | null;
717
+ };
718
+ CallsStreamResponse: {
719
+ data: components['schemas']['Call'][];
720
+ meta: components['schemas']['CallsStreamMeta'];
721
+ };
722
+ SipTrunk: {
723
+ id: string;
724
+ workspaceId: string;
725
+ name: string;
726
+ username: string;
727
+ domain: string;
728
+ carrierAddress: string;
729
+ carrierPort: number;
730
+ carrierTransport: 'udp' | 'tcp' | 'tls';
731
+ phoneNumbers: string[];
732
+ status: 'active' | 'inactive';
733
+ createdAt: string;
734
+ updatedAt: string;
735
+ };
736
+ SipTrunkWithPassword: components['schemas']['SipTrunk'] & {
737
+ password: string;
738
+ };
739
+ CreateSipTrunkRequest: {
740
+ name: string;
741
+ carrierAddress: string;
742
+ carrierPort?: number;
743
+ carrierTransport?: 'udp' | 'tcp' | 'tls';
744
+ phoneNumbers?: string[];
745
+ };
746
+ UpdateSipTrunkRequest: {
747
+ name?: string;
748
+ carrierAddress?: string;
749
+ carrierPort?: number;
750
+ carrierTransport?: 'udp' | 'tcp' | 'tls';
751
+ phoneNumbers?: string[];
752
+ status?: 'active' | 'inactive';
753
+ };
754
+ ResourceProjection: {
755
+ estimatedAtClose: number;
756
+ dailyBurnRate: number;
757
+ daysRemaining: number | null;
758
+ willExceed: boolean;
759
+ };
760
+ ResourceBalance: {
761
+ resource: string;
762
+ limit: number;
763
+ used: number;
764
+ remaining: number;
765
+ unit: string;
766
+ projection: components['schemas']['ResourceProjection'];
767
+ };
768
+ SubscriptionInfo: {
769
+ id: string;
770
+ status: 'active' | 'paused';
771
+ billingCycle: 'monthly' | 'yearly';
772
+ currentPeriodStart: string;
773
+ currentPeriodEnd: string;
774
+ };
775
+ BillingBalanceResponse: {
776
+ subscription: components['schemas']['SubscriptionInfo'];
777
+ resources: components['schemas']['ResourceBalance'][];
778
+ };
779
+ UsageAgentRow: {
780
+ agentId: string;
781
+ agentName: string | null;
782
+ status: 'inactive' | 'training' | 'active' | 'archived' | null;
783
+ totalQuantity: number;
784
+ totalEvents: number;
785
+ percentOfTotal: number;
786
+ lastActivity: string;
787
+ };
788
+ UsageAgentsMeta: {
789
+ total: number;
790
+ page: number;
791
+ limit: number;
792
+ hasNext: boolean;
793
+ hasPrevious: boolean;
794
+ aggregations: components['schemas']['UsageAgentsAggregations'];
795
+ };
796
+ UsageAgentsAggregations: {
797
+ totalUsage: number;
798
+ planLimit: number | null;
799
+ };
800
+ UsageAgentsResponse: {
801
+ data: components['schemas']['UsageAgentRow'][];
802
+ meta: components['schemas']['UsageAgentsMeta'];
803
+ };
656
804
  ForkAgentFromTemplateRequest: {
657
805
  templateId: string;
658
806
  templateVersionId?: string;
@@ -661,6 +809,13 @@ type components = {
661
809
  status?: 'inactive' | 'training' | 'active';
662
810
  debounceDelayMs?: number | null;
663
811
  };
812
+ CloneAgentRequest: {
813
+ name: string;
814
+ description?: string | null;
815
+ status?: 'inactive' | 'training' | 'active';
816
+ versionId: string;
817
+ clone: ('instructions' | 'tools' | 'webhooks' | 'stages' | 'triggers' | 'businessHours' | 'businessHourExceptions')[];
818
+ };
664
819
  AgentScheduleListResponse: {
665
820
  data: components['schemas']['AgentSchedule'][];
666
821
  meta: components['schemas']['PaginationMeta'];
@@ -793,6 +948,8 @@ type components = {
793
948
  metadata?: {
794
949
  [key: string]: unknown;
795
950
  };
951
+ descriptionUsage?: string;
952
+ usageExample?: string;
796
953
  auth?: components['schemas']['ToolConnectionAuth'];
797
954
  };
798
955
  ExecuteToolConnectionRequest: {
@@ -825,6 +982,34 @@ type components = {
825
982
  provider?: string | null;
826
983
  previewUrl?: string | null;
827
984
  };
985
+ WebhookDeliveryStatus: 'queued' | 'sending' | 'success' | 'failed';
986
+ WebhookDeliverySummary: {
987
+ id: string;
988
+ webhookId: string;
989
+ subscriptionId: string;
990
+ eventKey: string;
991
+ status: components['schemas']['WebhookDeliveryStatus'];
992
+ attempts: number;
993
+ nextAttemptAt?: string | null;
994
+ lastError?: string | null;
995
+ requestMethod: 'GET' | 'POST';
996
+ responseStatus?: number | null;
997
+ createdAt: string;
998
+ updatedAt: string;
999
+ };
1000
+ WebhookDeliveryListResponse: {
1001
+ data: components['schemas']['WebhookDeliverySummary'][];
1002
+ meta: components['schemas']['PaginationMeta'];
1003
+ };
1004
+ WebhookDeliveryDetail: components['schemas']['WebhookDeliverySummary'] & {
1005
+ requestHeaders?: {
1006
+ [key: string]: string;
1007
+ };
1008
+ requestBody?: {
1009
+ [key: string]: unknown;
1010
+ } | null;
1011
+ responseBody?: string | null;
1012
+ };
828
1013
  };
829
1014
  responses: never;
830
1015
  parameters: {
@@ -853,12 +1038,28 @@ type components = {
853
1038
  FilterParam?: components['schemas']['QueryFilters'];
854
1039
  WebhookId: string;
855
1040
  SubscriptionId: string;
1041
+ CallId: string;
1042
+ SipTrunkId: string;
1043
+ AgentBatchIdQuery?: string;
1044
+ AgentIdQuery?: string;
1045
+ ExecutionIdQuery?: string;
1046
+ RecordedAfterParam?: string;
1047
+ RecordedBeforeParam?: string;
1048
+ CallsAfterParam: string;
1049
+ CallsStreamLimitParam?: number;
1050
+ UsageResourceQuery?: string;
1051
+ UsageFromQuery?: string;
1052
+ UsageToQuery?: string;
856
1053
  OrParam?: components['schemas']['QueryOrGroups'];
857
1054
  ScheduleId: string;
858
1055
  ApiKeyId: string;
859
1056
  XCacheRefresh?: boolean;
860
1057
  IdempotencyKey: string;
861
1058
  XApiKey?: string;
1059
+ DurationBucketQuery?: 'short' | 'medium' | 'long';
1060
+ GoalStatusQuery?: 'achieved' | 'not_achieved';
1061
+ SearchQuery?: string;
1062
+ DeliveryId: string;
862
1063
  };
863
1064
  requestBodies: never;
864
1065
  headers: never;
@@ -897,8 +1098,8 @@ type ClientConfig = {
897
1098
  timeoutMs?: number;
898
1099
  fetchImpl?: typeof fetch;
899
1100
  logger?: {
900
- debug?: (...a: any[]) => void;
901
- error?: (...a: any[]) => void;
1101
+ debug?: (...a: unknown[]) => void;
1102
+ error?: (...a: unknown[]) => void;
902
1103
  };
903
1104
  workspaceId?: string;
904
1105
  getWorkspaceId?: () => string | undefined;
@@ -911,6 +1112,12 @@ type AgentDetail = components['schemas']['AgentDetail'];
911
1112
  type AgentSummary = components['schemas']['AgentSummary'];
912
1113
  type AgentListResponse = components['schemas']['AgentListResponse'];
913
1114
  type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
1115
+ type CloneAgentRequest = components['schemas']['CloneAgentRequest'];
1116
+ type CloneAgentComponent = CloneAgentRequest['clone'][number];
1117
+ type CloneAgentSelection = CloneAgentComponent[] | Partial<Record<CloneAgentComponent, boolean>>;
1118
+ type CloneAgentPayload = Omit<CloneAgentRequest, 'clone'> & {
1119
+ clone?: CloneAgentSelection;
1120
+ };
914
1121
  type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
915
1122
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
916
1123
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
@@ -1034,6 +1241,13 @@ type AgentBlueprint = {
1034
1241
  contentHash: string | null;
1035
1242
  contentVariables: string[];
1036
1243
  variablesCache: string[];
1244
+ outputVariables: Array<{
1245
+ type: 'string' | 'enum' | 'boolean' | 'number';
1246
+ name: string;
1247
+ description: string;
1248
+ required: boolean;
1249
+ choices?: string[];
1250
+ }>;
1037
1251
  createdAt: string;
1038
1252
  updatedAt: string;
1039
1253
  };
@@ -1061,6 +1275,13 @@ type CreateAgentBlueprintRequest = {
1061
1275
  criticalRules?: string[];
1062
1276
  topicsAllowed?: string[];
1063
1277
  topicsForbidden?: string[];
1278
+ outputVariables?: Array<{
1279
+ type: 'string' | 'text' | 'enum' | 'boolean' | 'number';
1280
+ name: string;
1281
+ description: string;
1282
+ required?: boolean;
1283
+ choices?: string[];
1284
+ }>;
1064
1285
  };
1065
1286
  type UpdateAgentBlueprintRequest = {
1066
1287
  languageId?: string;
@@ -1076,6 +1297,13 @@ type UpdateAgentBlueprintRequest = {
1076
1297
  criticalRules?: string[];
1077
1298
  topicsAllowed?: string[];
1078
1299
  topicsForbidden?: string[];
1300
+ outputVariables?: Array<{
1301
+ type: 'string' | 'text' | 'enum' | 'boolean' | 'number';
1302
+ name: string;
1303
+ description: string;
1304
+ required?: boolean;
1305
+ choices?: string[];
1306
+ }>;
1079
1307
  };
1080
1308
  type BlueprintStageSchema = components['schemas']['BlueprintStage'];
1081
1309
  type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'> & {
@@ -1120,14 +1348,34 @@ type ToolConnectionListItem = components['schemas']['ToolConnectionListItem'];
1120
1348
  type ToolConnectionListResponse = components['schemas']['ToolConnectionListResponse'];
1121
1349
  type ExecuteToolConnectionRequest = components['schemas']['ExecuteToolConnectionRequest'];
1122
1350
  type ErrorResponse = components['schemas']['ErrorResponse'];
1351
+ type ResourceProjection = components['schemas']['ResourceProjection'];
1352
+ type ResourceBalance = components['schemas']['ResourceBalance'];
1353
+ type SubscriptionInfo = components['schemas']['SubscriptionInfo'];
1354
+ type BillingBalanceResponse = components['schemas']['BillingBalanceResponse'];
1355
+ type UsageAgentRow = components['schemas']['UsageAgentRow'];
1356
+ type UsageAgentsAggregations = components['schemas']['UsageAgentsAggregations'];
1357
+ type UsageAgentsMeta = components['schemas']['UsageAgentsMeta'];
1358
+ type UsageAgentsResponse = components['schemas']['UsageAgentsResponse'];
1359
+ type SipTrunk = components['schemas']['SipTrunk'];
1360
+ type SipTrunkWithPassword = components['schemas']['SipTrunkWithPassword'];
1361
+ type CreateSipTrunkRequest = components['schemas']['CreateSipTrunkRequest'];
1362
+ type UpdateSipTrunkRequest = components['schemas']['UpdateSipTrunkRequest'];
1123
1363
  type CampaignStatus = components['schemas']['CampaignStatus'];
1124
1364
  type Campaign = components['schemas']['Campaign'];
1125
1365
  type CampaignListResponse = components['schemas']['CampaignListResponse'];
1126
1366
  type CampaignExecution = components['schemas']['CampaignExecution'];
1127
1367
  type CampaignExecutionListResponse = components['schemas']['CampaignExecutionListResponse'];
1368
+ type Call = components['schemas']['Call'];
1369
+ type CallsListMeta = components['schemas']['CallsListMeta'];
1370
+ type CallsListResponse = components['schemas']['CallsListResponse'];
1371
+ type CallsStreamMeta = components['schemas']['CallsStreamMeta'];
1372
+ type CallsStreamResponse = components['schemas']['CallsStreamResponse'];
1128
1373
  type WebhookSummary = components['schemas']['WebhookSummary'];
1129
1374
  type WebhookDetail = components['schemas']['WebhookDetail'];
1130
1375
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
1376
+ type WebhookDeliverySummary = components['schemas']['WebhookDeliverySummary'];
1377
+ type WebhookDeliveryDetail = components['schemas']['WebhookDeliveryDetail'];
1378
+ type WebhookDeliveryListResponse = components['schemas']['WebhookDeliveryListResponse'];
1131
1379
  type CreateWebhookRequest = components['schemas']['CreateWebhookRequest'];
1132
1380
  type UpdateWebhookRequest = components['schemas']['UpdateWebhookRequest'];
1133
1381
  type EventSubscriptionSummary = components['schemas']['EventSubscriptionSummary'];
@@ -1224,7 +1472,7 @@ type AgentStagesApi$1 = {
1224
1472
  list(agentId: string, blueprintId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
1225
1473
  get(agentId: string, blueprintId: string, stageId: string): Promise<BlueprintStage>;
1226
1474
  create(agentId: string, blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
1227
- update(agentId: string, blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
1475
+ update(agentId: string, blueprintId: string, stageId: string, payload: Partial<UpdateBlueprintStageRequest>): Promise<BlueprintStage>;
1228
1476
  delete(agentId: string, blueprintId: string, stageId: string): Promise<void>;
1229
1477
  reorder(agentId: string, blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
1230
1478
  };
@@ -1282,6 +1530,7 @@ interface AgentEntity extends AgentBase {
1282
1530
  blueprints: AgentBlueprintsHelper;
1283
1531
  stages: AgentStagesHelper;
1284
1532
  save(patch: UpdateAgentRequest): Promise<AgentEntity>;
1533
+ clone(payload: CloneAgentPayload): Promise<AgentEntity>;
1285
1534
  delete(): Promise<void>;
1286
1535
  refresh(): Promise<AgentEntity>;
1287
1536
  }
@@ -1297,6 +1546,7 @@ type AgentEntityFactoryOptions = {
1297
1546
  reload(agentId: string): Promise<AgentEntity>;
1298
1547
  updateAgent(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1299
1548
  deleteAgent(agentId: string): Promise<void>;
1549
+ cloneAgent(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1300
1550
  };
1301
1551
  declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, blueprintId: string, stageId: string) => {
1302
1552
  list(opts?: ListAgentStageTriggersOptions): Promise<PaginatedResult<{
@@ -1677,6 +1927,7 @@ type AgentsApi = {
1677
1927
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1678
1928
  get(agentId: string): Promise<AgentDetail>;
1679
1929
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1930
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentDetail>;
1680
1931
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
1681
1932
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1682
1933
  delete(agent: string | AgentEntity): Promise<void>;
@@ -1685,10 +1936,11 @@ type AgentListResponseWithEntities = {
1685
1936
  data: AgentEntity[];
1686
1937
  meta: AgentListResponse['meta'];
1687
1938
  };
1688
- type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list' | 'forkFromTemplate'> & {
1939
+ type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'clone' | 'update' | 'list' | 'forkFromTemplate'> & {
1689
1940
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1690
1941
  get(agentId: string): Promise<AgentEntity>;
1691
1942
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1943
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1692
1944
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1693
1945
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1694
1946
  };
@@ -1706,8 +1958,42 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1706
1958
  retry?: RetryPolicy;
1707
1959
  }): ApiKeysApi;
1708
1960
 
1961
+ declare function createBillingApi(cfg: ClientConfig & {
1962
+ retry?: RetryPolicy;
1963
+ }): {
1964
+ getBalance(): Promise<BillingBalanceResponse>;
1965
+ };
1966
+
1967
+ type ListCallsOptions = ListQueryOptions & Partial<{
1968
+ agentBatchId: string;
1969
+ agentId: string;
1970
+ executionId: string;
1971
+ recordedAfter: string | Date;
1972
+ recordedBefore: string | Date;
1973
+ durationBucket: 'short' | 'medium' | 'long';
1974
+ goalStatus: 'achieved' | 'not_achieved';
1975
+ query: string;
1976
+ }>;
1977
+ type StreamCallsOptions = {
1978
+ after: string | Date;
1979
+ limit?: number;
1980
+ agentBatchId?: string;
1981
+ agentId?: string;
1982
+ executionId?: string;
1983
+ durationBucket?: 'short' | 'medium' | 'long';
1984
+ goalStatus?: 'achieved' | 'not_achieved';
1985
+ query?: string;
1986
+ };
1987
+ declare function createCallsApi(cfg: ClientConfig & {
1988
+ retry?: RetryPolicy;
1989
+ }): {
1990
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
1991
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
1992
+ get(callId: string): Promise<Call>;
1993
+ };
1994
+
1709
1995
  type ListCampaignsOptions = ListQueryOptions;
1710
- type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1996
+ type ListCampaignExecutionsOptions = ListQueryOptions;
1711
1997
  type CreateCampaignPayload = {
1712
1998
  name: string;
1713
1999
  file: unknown;
@@ -1720,6 +2006,16 @@ declare function createCampaignsApi(cfg: ClientConfig & {
1720
2006
  get(campaignId: string): Promise<Campaign>;
1721
2007
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1722
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>;
1723
2019
  };
1724
2020
 
1725
2021
  type ListCatalogTemplatesOptions = {
@@ -1743,6 +2039,16 @@ declare function createCatalogsApi(cfg: ClientConfig & {
1743
2039
  remove(itemId: string): Promise<void>;
1744
2040
  };
1745
2041
 
2042
+ declare function createSipTrunksApi(cfg: ClientConfig & {
2043
+ retry?: RetryPolicy;
2044
+ }): {
2045
+ list(): Promise<SipTrunk[]>;
2046
+ get(trunkId: string): Promise<SipTrunk>;
2047
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2048
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2049
+ delete(trunkId: string): Promise<void>;
2050
+ };
2051
+
1746
2052
  type IdempotentRequestOptions = {
1747
2053
  idempotencyKey?: string;
1748
2054
  };
@@ -1779,6 +2085,17 @@ declare function createToolsApi(cfg: ClientConfig & {
1779
2085
  executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
1780
2086
  };
1781
2087
 
2088
+ type ListUsageAgentsOptions = ListQueryOptions & Partial<{
2089
+ resource: string;
2090
+ from: string;
2091
+ to: string;
2092
+ }>;
2093
+ declare function createUsageApi(cfg: ClientConfig & {
2094
+ retry?: RetryPolicy;
2095
+ }): {
2096
+ agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2097
+ };
2098
+
1782
2099
  type ListVoicesOptions = ListQueryOptions & {
1783
2100
  agentId?: string;
1784
2101
  agentVersionId?: string;
@@ -1807,6 +2124,8 @@ declare function createWebhooksApi(cfg: ClientConfig & {
1807
2124
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
1808
2125
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
1809
2126
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2127
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2128
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
1810
2129
  };
1811
2130
 
1812
2131
  type ListWorkspacePhonesOptions = ListQueryOptions & {
@@ -1820,7 +2139,7 @@ declare function createWorkspacesApi(cfg: ClientConfig & {
1820
2139
  }): {
1821
2140
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1822
2141
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1823
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2142
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1824
2143
  };
1825
2144
 
1826
2145
  declare function createClient(initialCfg: ClientConfig & {
@@ -1909,13 +2228,14 @@ declare function createClient(initialCfg: ClientConfig & {
1909
2228
  }, ListAgentsOptions>>;
1910
2229
  get(agentId: string): Promise<AgentEntity>;
1911
2230
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
2231
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1912
2232
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1913
2233
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1914
2234
  };
1915
2235
  workspaces: {
1916
2236
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1917
2237
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1918
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2238
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1919
2239
  };
1920
2240
  tools: {
1921
2241
  connections: {
@@ -1979,11 +2299,39 @@ declare function createClient(initialCfg: ClientConfig & {
1979
2299
  get(campaignId: string): Promise<Campaign>;
1980
2300
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
1981
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>;
1982
2312
  };
1983
2313
  voices: {
1984
2314
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1985
2315
  };
1986
2316
  apiKeys: ApiKeysApi;
2317
+ billing: {
2318
+ getBalance(): Promise<BillingBalanceResponse>;
2319
+ };
2320
+ calls: {
2321
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
2322
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
2323
+ get(callId: string): Promise<Call>;
2324
+ };
2325
+ usage: {
2326
+ agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2327
+ };
2328
+ sip: {
2329
+ list(): Promise<SipTrunk[]>;
2330
+ get(trunkId: string): Promise<SipTrunk>;
2331
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2332
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2333
+ delete(trunkId: string): Promise<void>;
2334
+ };
1987
2335
  webhooks: {
1988
2336
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
1989
2337
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -1995,6 +2343,8 @@ declare function createClient(initialCfg: ClientConfig & {
1995
2343
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
1996
2344
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
1997
2345
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2346
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2347
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
1998
2348
  };
1999
2349
  };
2000
2350
  };
@@ -2048,13 +2398,14 @@ declare function createClient(initialCfg: ClientConfig & {
2048
2398
  }, ListAgentsOptions>>;
2049
2399
  get(agentId: string): Promise<AgentEntity>;
2050
2400
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
2401
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2051
2402
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2052
2403
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2053
2404
  };
2054
2405
  workspaces: {
2055
2406
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
2056
2407
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
2057
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2408
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2058
2409
  };
2059
2410
  tools: {
2060
2411
  connections: {
@@ -2118,11 +2469,39 @@ declare function createClient(initialCfg: ClientConfig & {
2118
2469
  get(campaignId: string): Promise<Campaign>;
2119
2470
  create(agentId: string, versionId: string, payload: CreateCampaignPayload): Promise<Campaign>;
2120
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>;
2121
2482
  };
2122
2483
  voices: {
2123
2484
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
2124
2485
  };
2125
2486
  apiKeys: ApiKeysApi;
2487
+ billing: {
2488
+ getBalance(): Promise<BillingBalanceResponse>;
2489
+ };
2490
+ calls: {
2491
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
2492
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
2493
+ get(callId: string): Promise<Call>;
2494
+ };
2495
+ usage: {
2496
+ agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2497
+ };
2498
+ sip: {
2499
+ list(): Promise<SipTrunk[]>;
2500
+ get(trunkId: string): Promise<SipTrunk>;
2501
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2502
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2503
+ delete(trunkId: string): Promise<void>;
2504
+ };
2126
2505
  webhooks: {
2127
2506
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
2128
2507
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -2134,6 +2513,8 @@ declare function createClient(initialCfg: ClientConfig & {
2134
2513
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
2135
2514
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
2136
2515
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2516
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2517
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
2137
2518
  };
2138
2519
  };
2139
2520
 
@@ -2149,8 +2530,8 @@ declare function createHttp(cfg: ClientConfig & {
2149
2530
  base: string;
2150
2531
  timeout: number;
2151
2532
  log: {
2152
- debug?: (...a: any[]) => void;
2153
- error?: (...a: any[]) => void;
2533
+ debug?: (...a: unknown[]) => void;
2534
+ error?: (...a: unknown[]) => void;
2154
2535
  };
2155
2536
  retry: RetryPolicy;
2156
2537
  doFetch: (url: string, init?: FetchOptions) => Promise<Response>;
@@ -2160,4 +2541,4 @@ declare function createHttp(cfg: ClientConfig & {
2160
2541
  resolveAccessToken: () => string;
2161
2542
  };
2162
2543
 
2163
- 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 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 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 ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, 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 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 UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, 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, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, 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 };