@getsupervisor/agents-studio-sdk 1.41.2-patch.1 → 1.41.2-patch.11

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.ts 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;
@@ -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;
@@ -653,6 +664,89 @@ type components = {
653
664
  meta: components['schemas']['PaginationMeta'];
654
665
  };
655
666
  CampaignStatus: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PARTIALLY_COMPLETED';
667
+ Call: {
668
+ id: string;
669
+ title: string;
670
+ customerPhone: string | null;
671
+ durationSeconds: number | null;
672
+ supervisors: components['schemas']['CallSupervisors'];
673
+ goal: components['schemas']['CallGoal'];
674
+ startedAt: string;
675
+ recordingUrl: string | null;
676
+ agentBatchId: string | null;
677
+ agentId: string | null;
678
+ executionId: string | null;
679
+ };
680
+ CallGoal: {
681
+ achieved: boolean;
682
+ reason: string | null;
683
+ };
684
+ CallSupervisors: {
685
+ evaluations: number | null;
686
+ discoveries: number | null;
687
+ risks: number | null;
688
+ };
689
+ CallsListMeta: components['schemas']['PaginationMeta'] & {
690
+ sort: string[];
691
+ appliedFilters: string[];
692
+ };
693
+ CallsListResponse: {
694
+ data: components['schemas']['Call'][];
695
+ meta: components['schemas']['CallsListMeta'];
696
+ };
697
+ CallsStreamMeta: {
698
+ limit: number;
699
+ nextAfter: string | null;
700
+ };
701
+ CallsStreamResponse: {
702
+ data: components['schemas']['Call'][];
703
+ meta: components['schemas']['CallsStreamMeta'];
704
+ };
705
+ ResourceProjection: {
706
+ estimatedAtClose: number;
707
+ dailyBurnRate: number;
708
+ daysRemaining: number | null;
709
+ willExceed: boolean;
710
+ };
711
+ ResourceBalance: {
712
+ resource: string;
713
+ limit: number;
714
+ used: number;
715
+ remaining: number;
716
+ unit: string;
717
+ projection: components['schemas']['ResourceProjection'];
718
+ };
719
+ SubscriptionInfo: {
720
+ id: string;
721
+ status: 'active' | 'paused';
722
+ billingCycle: 'monthly' | 'yearly';
723
+ currentPeriodStart: string;
724
+ currentPeriodEnd: string;
725
+ };
726
+ BillingBalanceResponse: {
727
+ subscription: components['schemas']['SubscriptionInfo'];
728
+ resources: components['schemas']['ResourceBalance'][];
729
+ };
730
+ UsageAgentRow: {
731
+ agentId: string;
732
+ agentName: string | null;
733
+ status: 'inactive' | 'training' | 'active' | 'archived' | null;
734
+ totalQuantity: number;
735
+ totalEvents: number;
736
+ percentOfTotal: number;
737
+ lastActivity: string;
738
+ };
739
+ UsageAgentsMeta: {
740
+ total: number;
741
+ page: number;
742
+ limit: number;
743
+ hasNext: boolean;
744
+ hasPrevious: boolean;
745
+ };
746
+ UsageAgentsResponse: {
747
+ data: components['schemas']['UsageAgentRow'][];
748
+ meta: components['schemas']['UsageAgentsMeta'];
749
+ };
656
750
  ForkAgentFromTemplateRequest: {
657
751
  templateId: string;
658
752
  templateVersionId?: string;
@@ -661,6 +755,13 @@ type components = {
661
755
  status?: 'inactive' | 'training' | 'active';
662
756
  debounceDelayMs?: number | null;
663
757
  };
758
+ CloneAgentRequest: {
759
+ name: string;
760
+ description?: string | null;
761
+ status?: 'inactive' | 'training' | 'active';
762
+ versionId: string;
763
+ clone: ('instructions' | 'tools' | 'webhooks' | 'stages' | 'triggers' | 'businessHours' | 'businessHourExceptions')[];
764
+ };
664
765
  AgentScheduleListResponse: {
665
766
  data: components['schemas']['AgentSchedule'][];
666
767
  meta: components['schemas']['PaginationMeta'];
@@ -793,6 +894,8 @@ type components = {
793
894
  metadata?: {
794
895
  [key: string]: unknown;
795
896
  };
897
+ descriptionUsage?: string;
898
+ usageExample?: string;
796
899
  auth?: components['schemas']['ToolConnectionAuth'];
797
900
  };
798
901
  ExecuteToolConnectionRequest: {
@@ -825,6 +928,34 @@ type components = {
825
928
  provider?: string | null;
826
929
  previewUrl?: string | null;
827
930
  };
931
+ WebhookDeliveryStatus: 'queued' | 'sending' | 'success' | 'failed';
932
+ WebhookDeliverySummary: {
933
+ id: string;
934
+ webhookId: string;
935
+ subscriptionId: string;
936
+ eventKey: string;
937
+ status: components['schemas']['WebhookDeliveryStatus'];
938
+ attempts: number;
939
+ nextAttemptAt?: string | null;
940
+ lastError?: string | null;
941
+ requestMethod: 'GET' | 'POST';
942
+ responseStatus?: number | null;
943
+ createdAt: string;
944
+ updatedAt: string;
945
+ };
946
+ WebhookDeliveryListResponse: {
947
+ data: components['schemas']['WebhookDeliverySummary'][];
948
+ meta: components['schemas']['PaginationMeta'];
949
+ };
950
+ WebhookDeliveryDetail: components['schemas']['WebhookDeliverySummary'] & {
951
+ requestHeaders?: {
952
+ [key: string]: string;
953
+ };
954
+ requestBody?: {
955
+ [key: string]: unknown;
956
+ } | null;
957
+ responseBody?: string | null;
958
+ };
828
959
  };
829
960
  responses: never;
830
961
  parameters: {
@@ -853,12 +984,27 @@ type components = {
853
984
  FilterParam?: components['schemas']['QueryFilters'];
854
985
  WebhookId: string;
855
986
  SubscriptionId: string;
987
+ CallId: string;
988
+ AgentBatchIdQuery?: string;
989
+ AgentIdQuery?: string;
990
+ ExecutionIdQuery?: string;
991
+ RecordedAfterParam?: string;
992
+ RecordedBeforeParam?: string;
993
+ CallsAfterParam: string;
994
+ CallsStreamLimitParam?: number;
995
+ UsageResourceQuery?: string;
996
+ UsageFromQuery?: string;
997
+ UsageToQuery?: string;
856
998
  OrParam?: components['schemas']['QueryOrGroups'];
857
999
  ScheduleId: string;
858
1000
  ApiKeyId: string;
859
1001
  XCacheRefresh?: boolean;
860
1002
  IdempotencyKey: string;
861
1003
  XApiKey?: string;
1004
+ DurationBucketQuery?: 'short' | 'medium' | 'long';
1005
+ GoalStatusQuery?: 'achieved' | 'not_achieved';
1006
+ SearchQuery?: string;
1007
+ DeliveryId: string;
862
1008
  };
863
1009
  requestBodies: never;
864
1010
  headers: never;
@@ -911,6 +1057,12 @@ type AgentDetail = components['schemas']['AgentDetail'];
911
1057
  type AgentSummary = components['schemas']['AgentSummary'];
912
1058
  type AgentListResponse = components['schemas']['AgentListResponse'];
913
1059
  type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
1060
+ type CloneAgentRequest = components['schemas']['CloneAgentRequest'];
1061
+ type CloneAgentComponent = CloneAgentRequest['clone'][number];
1062
+ type CloneAgentSelection = CloneAgentComponent[] | Partial<Record<CloneAgentComponent, boolean>>;
1063
+ type CloneAgentPayload = Omit<CloneAgentRequest, 'clone'> & {
1064
+ clone?: CloneAgentSelection;
1065
+ };
914
1066
  type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
915
1067
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
916
1068
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
@@ -1034,6 +1186,13 @@ type AgentBlueprint = {
1034
1186
  contentHash: string | null;
1035
1187
  contentVariables: string[];
1036
1188
  variablesCache: string[];
1189
+ outputVariables: Array<{
1190
+ type: 'string' | 'enum' | 'boolean' | 'number';
1191
+ name: string;
1192
+ description: string;
1193
+ required: boolean;
1194
+ choices?: string[];
1195
+ }>;
1037
1196
  createdAt: string;
1038
1197
  updatedAt: string;
1039
1198
  };
@@ -1061,6 +1220,13 @@ type CreateAgentBlueprintRequest = {
1061
1220
  criticalRules?: string[];
1062
1221
  topicsAllowed?: string[];
1063
1222
  topicsForbidden?: string[];
1223
+ outputVariables?: Array<{
1224
+ type: 'string' | 'text' | 'enum' | 'boolean' | 'number';
1225
+ name: string;
1226
+ description: string;
1227
+ required?: boolean;
1228
+ choices?: string[];
1229
+ }>;
1064
1230
  };
1065
1231
  type UpdateAgentBlueprintRequest = {
1066
1232
  languageId?: string;
@@ -1076,6 +1242,13 @@ type UpdateAgentBlueprintRequest = {
1076
1242
  criticalRules?: string[];
1077
1243
  topicsAllowed?: string[];
1078
1244
  topicsForbidden?: string[];
1245
+ outputVariables?: Array<{
1246
+ type: 'string' | 'text' | 'enum' | 'boolean' | 'number';
1247
+ name: string;
1248
+ description: string;
1249
+ required?: boolean;
1250
+ choices?: string[];
1251
+ }>;
1079
1252
  };
1080
1253
  type BlueprintStageSchema = components['schemas']['BlueprintStage'];
1081
1254
  type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'> & {
@@ -1120,14 +1293,29 @@ type ToolConnectionListItem = components['schemas']['ToolConnectionListItem'];
1120
1293
  type ToolConnectionListResponse = components['schemas']['ToolConnectionListResponse'];
1121
1294
  type ExecuteToolConnectionRequest = components['schemas']['ExecuteToolConnectionRequest'];
1122
1295
  type ErrorResponse = components['schemas']['ErrorResponse'];
1296
+ type ResourceProjection = components['schemas']['ResourceProjection'];
1297
+ type ResourceBalance = components['schemas']['ResourceBalance'];
1298
+ type SubscriptionInfo = components['schemas']['SubscriptionInfo'];
1299
+ type BillingBalanceResponse = components['schemas']['BillingBalanceResponse'];
1300
+ type UsageAgentRow = components['schemas']['UsageAgentRow'];
1301
+ type UsageAgentsMeta = components['schemas']['UsageAgentsMeta'];
1302
+ type UsageAgentsResponse = components['schemas']['UsageAgentsResponse'];
1123
1303
  type CampaignStatus = components['schemas']['CampaignStatus'];
1124
1304
  type Campaign = components['schemas']['Campaign'];
1125
1305
  type CampaignListResponse = components['schemas']['CampaignListResponse'];
1126
1306
  type CampaignExecution = components['schemas']['CampaignExecution'];
1127
1307
  type CampaignExecutionListResponse = components['schemas']['CampaignExecutionListResponse'];
1308
+ type Call = components['schemas']['Call'];
1309
+ type CallsListMeta = components['schemas']['CallsListMeta'];
1310
+ type CallsListResponse = components['schemas']['CallsListResponse'];
1311
+ type CallsStreamMeta = components['schemas']['CallsStreamMeta'];
1312
+ type CallsStreamResponse = components['schemas']['CallsStreamResponse'];
1128
1313
  type WebhookSummary = components['schemas']['WebhookSummary'];
1129
1314
  type WebhookDetail = components['schemas']['WebhookDetail'];
1130
1315
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
1316
+ type WebhookDeliverySummary = components['schemas']['WebhookDeliverySummary'];
1317
+ type WebhookDeliveryDetail = components['schemas']['WebhookDeliveryDetail'];
1318
+ type WebhookDeliveryListResponse = components['schemas']['WebhookDeliveryListResponse'];
1131
1319
  type CreateWebhookRequest = components['schemas']['CreateWebhookRequest'];
1132
1320
  type UpdateWebhookRequest = components['schemas']['UpdateWebhookRequest'];
1133
1321
  type EventSubscriptionSummary = components['schemas']['EventSubscriptionSummary'];
@@ -1224,7 +1412,7 @@ type AgentStagesApi$1 = {
1224
1412
  list(agentId: string, blueprintId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
1225
1413
  get(agentId: string, blueprintId: string, stageId: string): Promise<BlueprintStage>;
1226
1414
  create(agentId: string, blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
1227
- update(agentId: string, blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
1415
+ update(agentId: string, blueprintId: string, stageId: string, payload: Partial<UpdateBlueprintStageRequest>): Promise<BlueprintStage>;
1228
1416
  delete(agentId: string, blueprintId: string, stageId: string): Promise<void>;
1229
1417
  reorder(agentId: string, blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
1230
1418
  };
@@ -1282,6 +1470,7 @@ interface AgentEntity extends AgentBase {
1282
1470
  blueprints: AgentBlueprintsHelper;
1283
1471
  stages: AgentStagesHelper;
1284
1472
  save(patch: UpdateAgentRequest): Promise<AgentEntity>;
1473
+ clone(payload: CloneAgentPayload): Promise<AgentEntity>;
1285
1474
  delete(): Promise<void>;
1286
1475
  refresh(): Promise<AgentEntity>;
1287
1476
  }
@@ -1297,6 +1486,7 @@ type AgentEntityFactoryOptions = {
1297
1486
  reload(agentId: string): Promise<AgentEntity>;
1298
1487
  updateAgent(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1299
1488
  deleteAgent(agentId: string): Promise<void>;
1489
+ cloneAgent(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1300
1490
  };
1301
1491
  declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, blueprintId: string, stageId: string) => {
1302
1492
  list(opts?: ListAgentStageTriggersOptions): Promise<PaginatedResult<{
@@ -1677,6 +1867,7 @@ type AgentsApi = {
1677
1867
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1678
1868
  get(agentId: string): Promise<AgentDetail>;
1679
1869
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1870
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentDetail>;
1680
1871
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
1681
1872
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1682
1873
  delete(agent: string | AgentEntity): Promise<void>;
@@ -1685,10 +1876,11 @@ type AgentListResponseWithEntities = {
1685
1876
  data: AgentEntity[];
1686
1877
  meta: AgentListResponse['meta'];
1687
1878
  };
1688
- type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list' | 'forkFromTemplate'> & {
1879
+ type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'clone' | 'update' | 'list' | 'forkFromTemplate'> & {
1689
1880
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1690
1881
  get(agentId: string): Promise<AgentEntity>;
1691
1882
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1883
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1692
1884
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1693
1885
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1694
1886
  };
@@ -1706,6 +1898,40 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1706
1898
  retry?: RetryPolicy;
1707
1899
  }): ApiKeysApi;
1708
1900
 
1901
+ declare function createBillingApi(cfg: ClientConfig & {
1902
+ retry?: RetryPolicy;
1903
+ }): {
1904
+ getBalance(): Promise<BillingBalanceResponse>;
1905
+ };
1906
+
1907
+ type ListCallsOptions = ListQueryOptions & Partial<{
1908
+ agentBatchId: string;
1909
+ agentId: string;
1910
+ executionId: string;
1911
+ recordedAfter: string | Date;
1912
+ recordedBefore: string | Date;
1913
+ durationBucket: 'short' | 'medium' | 'long';
1914
+ goalStatus: 'achieved' | 'not_achieved';
1915
+ query: string;
1916
+ }>;
1917
+ type StreamCallsOptions = {
1918
+ after: string | Date;
1919
+ limit?: number;
1920
+ agentBatchId?: string;
1921
+ agentId?: string;
1922
+ executionId?: string;
1923
+ durationBucket?: 'short' | 'medium' | 'long';
1924
+ goalStatus?: 'achieved' | 'not_achieved';
1925
+ query?: string;
1926
+ };
1927
+ declare function createCallsApi(cfg: ClientConfig & {
1928
+ retry?: RetryPolicy;
1929
+ }): {
1930
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
1931
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
1932
+ get(callId: string): Promise<Call>;
1933
+ };
1934
+
1709
1935
  type ListCampaignsOptions = ListQueryOptions;
1710
1936
  type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1711
1937
  type CreateCampaignPayload = {
@@ -1779,6 +2005,17 @@ declare function createToolsApi(cfg: ClientConfig & {
1779
2005
  executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
1780
2006
  };
1781
2007
 
2008
+ type ListUsageAgentsOptions = ListQueryOptions & Partial<{
2009
+ resource: string;
2010
+ from: string;
2011
+ to: string;
2012
+ }>;
2013
+ declare function createUsageApi(cfg: ClientConfig & {
2014
+ retry?: RetryPolicy;
2015
+ }): {
2016
+ agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2017
+ };
2018
+
1782
2019
  type ListVoicesOptions = ListQueryOptions & {
1783
2020
  agentId?: string;
1784
2021
  agentVersionId?: string;
@@ -1807,6 +2044,8 @@ declare function createWebhooksApi(cfg: ClientConfig & {
1807
2044
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
1808
2045
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
1809
2046
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2047
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2048
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
1810
2049
  };
1811
2050
 
1812
2051
  type ListWorkspacePhonesOptions = ListQueryOptions & {
@@ -1820,7 +2059,7 @@ declare function createWorkspacesApi(cfg: ClientConfig & {
1820
2059
  }): {
1821
2060
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1822
2061
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1823
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2062
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1824
2063
  };
1825
2064
 
1826
2065
  declare function createClient(initialCfg: ClientConfig & {
@@ -1909,13 +2148,14 @@ declare function createClient(initialCfg: ClientConfig & {
1909
2148
  }, ListAgentsOptions>>;
1910
2149
  get(agentId: string): Promise<AgentEntity>;
1911
2150
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
2151
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1912
2152
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1913
2153
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1914
2154
  };
1915
2155
  workspaces: {
1916
2156
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1917
2157
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1918
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2158
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1919
2159
  };
1920
2160
  tools: {
1921
2161
  connections: {
@@ -1984,6 +2224,17 @@ declare function createClient(initialCfg: ClientConfig & {
1984
2224
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1985
2225
  };
1986
2226
  apiKeys: ApiKeysApi;
2227
+ billing: {
2228
+ getBalance(): Promise<BillingBalanceResponse>;
2229
+ };
2230
+ calls: {
2231
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
2232
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
2233
+ get(callId: string): Promise<Call>;
2234
+ };
2235
+ usage: {
2236
+ agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2237
+ };
1987
2238
  webhooks: {
1988
2239
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
1989
2240
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -1995,6 +2246,8 @@ declare function createClient(initialCfg: ClientConfig & {
1995
2246
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
1996
2247
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
1997
2248
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2249
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2250
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
1998
2251
  };
1999
2252
  };
2000
2253
  };
@@ -2048,13 +2301,14 @@ declare function createClient(initialCfg: ClientConfig & {
2048
2301
  }, ListAgentsOptions>>;
2049
2302
  get(agentId: string): Promise<AgentEntity>;
2050
2303
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
2304
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2051
2305
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2052
2306
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2053
2307
  };
2054
2308
  workspaces: {
2055
2309
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
2056
2310
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
2057
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2311
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2058
2312
  };
2059
2313
  tools: {
2060
2314
  connections: {
@@ -2123,6 +2377,17 @@ declare function createClient(initialCfg: ClientConfig & {
2123
2377
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
2124
2378
  };
2125
2379
  apiKeys: ApiKeysApi;
2380
+ billing: {
2381
+ getBalance(): Promise<BillingBalanceResponse>;
2382
+ };
2383
+ calls: {
2384
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
2385
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
2386
+ get(callId: string): Promise<Call>;
2387
+ };
2388
+ usage: {
2389
+ agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2390
+ };
2126
2391
  webhooks: {
2127
2392
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
2128
2393
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -2134,6 +2399,8 @@ declare function createClient(initialCfg: ClientConfig & {
2134
2399
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
2135
2400
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
2136
2401
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2402
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2403
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
2137
2404
  };
2138
2405
  };
2139
2406
 
@@ -2160,4 +2427,4 @@ declare function createHttp(cfg: ClientConfig & {
2160
2427
  resolveAccessToken: () => string;
2161
2428
  };
2162
2429
 
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 };
2430
+ 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 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 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 UpdateWebhookRequest, type UsageAgentRow, 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, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };