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

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
@@ -1,11 +1,3 @@
1
- type WithRequired<T, K extends keyof T> = T & {
2
- [P in K]-?: T[P];
3
- };
4
- type Without<T, U> = {
5
- [P in Exclude<keyof T, keyof U>]?: never;
6
- };
7
- type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
8
- type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...Rest]> : never;
9
1
  type components = {
10
2
  schemas: {
11
3
  AgentDetail: {
@@ -51,6 +43,7 @@ type components = {
51
43
  AgentSummary: {
52
44
  agentId: string;
53
45
  name: string;
46
+ description?: string | null;
54
47
  agentType: 'chat' | 'voice';
55
48
  status: 'inactive' | 'training' | 'active' | 'archived';
56
49
  workspaceId: string;
@@ -65,7 +58,7 @@ type components = {
65
58
  name: string;
66
59
  description?: string | null;
67
60
  agentType: 'chat' | 'voice';
68
- status?: 'inactive' | 'training' | 'active';
61
+ status?: 'inactive' | 'training' | 'active' | null;
69
62
  avatarUrl?: string | null;
70
63
  debounceDelayMs?: number | null;
71
64
  metadata?: {
@@ -242,9 +235,9 @@ type components = {
242
235
  voiceId?: string | null;
243
236
  startSpeaker: 'user' | 'agent';
244
237
  requiredData: string[];
245
- criticalRules?: string[];
246
- topicsAllowed?: string[];
247
- topicsForbidden?: string[];
238
+ criticalRules: string[];
239
+ topicsAllowed: string[];
240
+ topicsForbidden: string[];
248
241
  contentHash: string | null;
249
242
  contentVariables: string[];
250
243
  variablesCache: string[];
@@ -319,7 +312,7 @@ type components = {
319
312
  name: string;
320
313
  title?: string | null;
321
314
  goalPrompt: string;
322
- promptInstructions?: string[];
315
+ promptInstructions: string[];
323
316
  order?: number | null;
324
317
  triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
325
318
  metadata?: {
@@ -330,7 +323,7 @@ type components = {
330
323
  name?: string;
331
324
  title?: string | null;
332
325
  goalPrompt?: string;
333
- promptInstructions?: string[];
326
+ promptInstructions: string[];
334
327
  order?: number | null;
335
328
  metadata?: {
336
329
  [key: string]: unknown;
@@ -366,9 +359,9 @@ type components = {
366
359
  name: string;
367
360
  title?: string | null;
368
361
  goalPrompt: string;
369
- promptInstructions?: string[];
362
+ promptInstructions: string[];
370
363
  order?: number | null;
371
- triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
364
+ triggers: components['schemas']['BlueprintStageTriggerInput'][] | null;
372
365
  metadata?: {
373
366
  [key: string]: unknown;
374
367
  } | null;
@@ -377,7 +370,7 @@ type components = {
377
370
  agent_id: string;
378
371
  phone_id: string;
379
372
  test_phones?: string[];
380
- allow_all?: boolean;
373
+ allow_all: boolean;
381
374
  };
382
375
  PhoneAssignmentResponse: {
383
376
  agent_id: string;
@@ -390,7 +383,7 @@ type components = {
390
383
  WorkspacePhone: {
391
384
  id: string;
392
385
  external_id: string;
393
- channel?: 'voice';
386
+ channel?: 'voice' | null;
394
387
  supports_outbound?: boolean | null;
395
388
  assigned_to?: string | null;
396
389
  last_used_at?: string | null;
@@ -405,6 +398,7 @@ type components = {
405
398
  identifier: string;
406
399
  description?: string | null;
407
400
  enabled: boolean;
401
+ visible: boolean;
408
402
  category?: string | null;
409
403
  auth: 'none' | 'oauth2' | 'api_key' | 'custom';
410
404
  requiresUserAuth: boolean;
@@ -458,6 +452,8 @@ type components = {
458
452
  metadata?: {
459
453
  [key: string]: unknown;
460
454
  };
455
+ descriptionUsage?: string;
456
+ usageExample?: string;
461
457
  auth?: components['schemas']['ToolConnectionAuth'];
462
458
  };
463
459
  ToolConnectionResponse: {
@@ -472,6 +468,8 @@ type components = {
472
468
  metadata?: {
473
469
  [key: string]: unknown;
474
470
  };
471
+ descriptionUsage?: string | null;
472
+ usageExample?: string | null;
475
473
  };
476
474
  ToolConnectionAuth: {
477
475
  type: 'none' | 'oauth2' | 'api_key' | 'custom';
@@ -504,7 +502,7 @@ type components = {
504
502
  self: string;
505
503
  catalog: string;
506
504
  };
507
- CatalogItemSummary: WithRequired<{
505
+ CatalogItemSummary: {
508
506
  id: string;
509
507
  type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
510
508
  systemIdentifier: string;
@@ -517,13 +515,13 @@ type components = {
517
515
  createdAt: string;
518
516
  updatedAt: string;
519
517
  links: components['schemas']['CatalogItemLinks'];
520
- }, 'id' | 'type' | 'systemIdentifier' | 'scope' | 'name' | 'description' | 'isActive' | 'metadata' | 'createdAt' | 'updatedAt' | 'links'>;
518
+ } & (unknown & unknown & unknown & unknown & unknown);
521
519
  CatalogItemDetail: components['schemas']['CatalogItemSummary'];
522
520
  CatalogItemListResponse: {
523
521
  data: components['schemas']['CatalogItemSummary'][];
524
522
  meta: components['schemas']['PaginationMeta'];
525
523
  };
526
- CatalogItemCreateRequest: WithRequired<{
524
+ CatalogItemCreateRequest: {
527
525
  type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
528
526
  scope: 'global' | 'workspace';
529
527
  workspaceId?: string;
@@ -531,13 +529,12 @@ type components = {
531
529
  description: string;
532
530
  systemIdentifier?: string;
533
531
  metadata: Record<string, never>;
534
- isActive?: boolean;
535
- }, 'type' | 'scope' | 'name' | 'description' | 'metadata'>;
532
+ isActive: boolean;
533
+ } & (unknown & unknown & unknown & unknown & unknown & unknown);
536
534
  WorkspaceEnableRequest: {
537
535
  apiKey: string;
538
- metadata?: {
539
- [key: string]: unknown;
540
- };
536
+ phone: string;
537
+ speechAnalyticsAgentId: string;
541
538
  };
542
539
  WorkspaceEnableResponse: {
543
540
  status: 'enabled';
@@ -550,6 +547,7 @@ type components = {
550
547
  details?: {
551
548
  subcode?: string;
552
549
  workspaceId?: string;
550
+ } & {
553
551
  [key: string]: unknown;
554
552
  };
555
553
  };
@@ -558,6 +556,7 @@ type components = {
558
556
  url: string;
559
557
  agentId?: string | null;
560
558
  description?: string | null;
559
+ method: 'GET' | 'POST';
561
560
  isActive: boolean;
562
561
  secretPreview?: string | null;
563
562
  createdAt: string;
@@ -579,11 +578,12 @@ type components = {
579
578
  url: string;
580
579
  agentId?: string | null;
581
580
  description?: string | null;
582
- isActive?: boolean;
581
+ isActive: boolean;
583
582
  headers?: {
584
583
  [key: string]: string;
585
584
  };
586
585
  secret?: string;
586
+ method: 'GET' | 'POST';
587
587
  };
588
588
  UpdateWebhookRequest: {
589
589
  url?: string;
@@ -593,6 +593,7 @@ type components = {
593
593
  headers?: {
594
594
  [key: string]: string;
595
595
  };
596
+ method?: 'GET' | 'POST';
596
597
  };
597
598
  EventSubscriptionSummary: {
598
599
  id: string;
@@ -609,7 +610,7 @@ type components = {
609
610
  };
610
611
  CreateEventSubscriptionRequest: {
611
612
  eventKey: string;
612
- isActive?: boolean;
613
+ isActive: boolean;
613
614
  };
614
615
  UpdateEventSubscriptionRequest: {
615
616
  isActive?: boolean;
@@ -653,14 +654,59 @@ type components = {
653
654
  meta: components['schemas']['PaginationMeta'];
654
655
  };
655
656
  CampaignStatus: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PARTIALLY_COMPLETED';
657
+ Call: {
658
+ id: string;
659
+ title: string;
660
+ customerPhone: string | null;
661
+ durationSeconds: number | null;
662
+ supervisors: components['schemas']['CallSupervisors'];
663
+ goal: components['schemas']['CallGoal'];
664
+ startedAt: string;
665
+ recordingUrl: string | null;
666
+ agentBatchId: string | null;
667
+ agentId: string | null;
668
+ executionId: string | null;
669
+ };
670
+ CallGoal: {
671
+ achieved: boolean;
672
+ reason: string | null;
673
+ };
674
+ CallSupervisors: {
675
+ evaluations: number | null;
676
+ discoveries: number | null;
677
+ risks: number | null;
678
+ };
679
+ CallsListMeta: components['schemas']['PaginationMeta'] & {
680
+ sort: string[];
681
+ appliedFilters: string[];
682
+ };
683
+ CallsListResponse: {
684
+ data: components['schemas']['Call'][];
685
+ meta: components['schemas']['CallsListMeta'];
686
+ };
687
+ CallsStreamMeta: {
688
+ limit: number;
689
+ nextAfter: string | null;
690
+ };
691
+ CallsStreamResponse: {
692
+ data: components['schemas']['Call'][];
693
+ meta: components['schemas']['CallsStreamMeta'];
694
+ };
656
695
  ForkAgentFromTemplateRequest: {
657
696
  templateId: string;
658
697
  templateVersionId?: string;
659
698
  name?: string | null;
660
699
  description?: string | null;
661
- status?: 'inactive' | 'training' | 'active';
700
+ status?: 'inactive' | 'training' | 'active' | null;
662
701
  debounceDelayMs?: number | null;
663
702
  };
703
+ CloneAgentRequest: {
704
+ name: string;
705
+ description?: string | null;
706
+ status?: 'inactive' | 'training' | 'active' | null;
707
+ versionId: string;
708
+ clone: ('instructions' | 'tools' | 'webhooks' | 'stages' | 'triggers' | 'businessHours' | 'businessHourExceptions')[];
709
+ };
664
710
  AgentScheduleListResponse: {
665
711
  data: components['schemas']['AgentSchedule'][];
666
712
  meta: components['schemas']['PaginationMeta'];
@@ -715,12 +761,9 @@ type components = {
715
761
  description?: string;
716
762
  notes?: string[];
717
763
  prompts?: components['schemas']['ToolConfigSchemaActionPrompts'];
718
- schema: OneOf<[
719
- {
720
- [key: string]: unknown;
721
- },
722
- boolean
723
- ]>;
764
+ schema: {
765
+ [key: string]: unknown;
766
+ } | boolean;
724
767
  };
725
768
  ToolConfigSchema: {
726
769
  schemaVersion: 'json-schema/2020-12';
@@ -793,6 +836,8 @@ type components = {
793
836
  metadata?: {
794
837
  [key: string]: unknown;
795
838
  };
839
+ descriptionUsage?: string;
840
+ usageExample?: string;
796
841
  auth?: components['schemas']['ToolConnectionAuth'];
797
842
  };
798
843
  ExecuteToolConnectionRequest: {
@@ -808,11 +853,13 @@ type components = {
808
853
  CatalogItemMessageStyleMetadata: {
809
854
  register?: string | null;
810
855
  sample?: string | null;
856
+ } & {
811
857
  [key: string]: unknown;
812
858
  };
813
859
  CatalogItemToneStyleMetadata: {
814
860
  mood?: string | null;
815
861
  intensity?: string | null;
862
+ } & {
816
863
  [key: string]: unknown;
817
864
  };
818
865
  CatalogItemTagMetadata: {
@@ -825,6 +872,34 @@ type components = {
825
872
  provider?: string | null;
826
873
  previewUrl?: string | null;
827
874
  };
875
+ WebhookDeliveryStatus: 'queued' | 'sending' | 'success' | 'failed';
876
+ WebhookDeliverySummary: {
877
+ id: string;
878
+ webhookId: string;
879
+ subscriptionId: string;
880
+ eventKey: string;
881
+ status: components['schemas']['WebhookDeliveryStatus'];
882
+ attempts: number;
883
+ nextAttemptAt?: string | null;
884
+ lastError?: string | null;
885
+ requestMethod: 'GET' | 'POST';
886
+ responseStatus?: number | null;
887
+ createdAt: string;
888
+ updatedAt: string;
889
+ };
890
+ WebhookDeliveryListResponse: {
891
+ data: components['schemas']['WebhookDeliverySummary'][];
892
+ meta: components['schemas']['PaginationMeta'];
893
+ };
894
+ WebhookDeliveryDetail: components['schemas']['WebhookDeliverySummary'] & {
895
+ requestHeaders?: {
896
+ [key: string]: string;
897
+ };
898
+ requestBody?: {
899
+ [key: string]: unknown;
900
+ } | null;
901
+ responseBody?: string | null;
902
+ };
828
903
  };
829
904
  responses: never;
830
905
  parameters: {
@@ -842,23 +917,35 @@ type components = {
842
917
  ToolId: string;
843
918
  ResourceId: string;
844
919
  CatalogItemId: string;
845
- PageParam?: number;
846
- LimitParam?: number;
847
- Page?: number;
848
- Limit?: number;
849
- SortParam?: string;
850
- FieldsParam?: string;
851
- IncludeParam?: string;
852
- SearchParam?: string;
853
- FilterParam?: components['schemas']['QueryFilters'];
920
+ PageParam: number;
921
+ LimitParam: number;
922
+ Page: number;
923
+ Limit: number;
924
+ SortParam: string;
925
+ FieldsParam: string;
926
+ IncludeParam: string;
927
+ SearchParam: string;
928
+ FilterParam: components['schemas']['QueryFilters'];
854
929
  WebhookId: string;
855
930
  SubscriptionId: string;
856
- OrParam?: components['schemas']['QueryOrGroups'];
931
+ CallId: string;
932
+ AgentBatchIdQuery: string;
933
+ AgentIdQuery: string;
934
+ ExecutionIdQuery: string;
935
+ RecordedAfterParam: string;
936
+ RecordedBeforeParam: string;
937
+ CallsAfterParam: string;
938
+ CallsStreamLimitParam: number;
939
+ OrParam: components['schemas']['QueryOrGroups'];
857
940
  ScheduleId: string;
858
941
  ApiKeyId: string;
859
- XCacheRefresh?: boolean;
942
+ XCacheRefresh: boolean;
860
943
  IdempotencyKey: string;
861
- XApiKey?: string;
944
+ XApiKey: string;
945
+ DurationBucketQuery: 'short' | 'medium' | 'long';
946
+ GoalStatusQuery: 'achieved' | 'not_achieved';
947
+ SearchQuery: string;
948
+ DeliveryId: string;
862
949
  };
863
950
  requestBodies: never;
864
951
  headers: never;
@@ -911,6 +998,12 @@ type AgentDetail = components['schemas']['AgentDetail'];
911
998
  type AgentSummary = components['schemas']['AgentSummary'];
912
999
  type AgentListResponse = components['schemas']['AgentListResponse'];
913
1000
  type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
1001
+ type CloneAgentRequest = components['schemas']['CloneAgentRequest'];
1002
+ type CloneAgentComponent = CloneAgentRequest['clone'][number];
1003
+ type CloneAgentSelection = CloneAgentComponent[] | Partial<Record<CloneAgentComponent, boolean>>;
1004
+ type CloneAgentPayload = Omit<CloneAgentRequest, 'clone'> & {
1005
+ clone?: CloneAgentSelection;
1006
+ };
914
1007
  type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
915
1008
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
916
1009
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
@@ -1125,9 +1218,17 @@ type Campaign = components['schemas']['Campaign'];
1125
1218
  type CampaignListResponse = components['schemas']['CampaignListResponse'];
1126
1219
  type CampaignExecution = components['schemas']['CampaignExecution'];
1127
1220
  type CampaignExecutionListResponse = components['schemas']['CampaignExecutionListResponse'];
1221
+ type Call = components['schemas']['Call'];
1222
+ type CallsListMeta = components['schemas']['CallsListMeta'];
1223
+ type CallsListResponse = components['schemas']['CallsListResponse'];
1224
+ type CallsStreamMeta = components['schemas']['CallsStreamMeta'];
1225
+ type CallsStreamResponse = components['schemas']['CallsStreamResponse'];
1128
1226
  type WebhookSummary = components['schemas']['WebhookSummary'];
1129
1227
  type WebhookDetail = components['schemas']['WebhookDetail'];
1130
1228
  type WebhookListResponse = components['schemas']['WebhookListResponse'];
1229
+ type WebhookDeliverySummary = components['schemas']['WebhookDeliverySummary'];
1230
+ type WebhookDeliveryDetail = components['schemas']['WebhookDeliveryDetail'];
1231
+ type WebhookDeliveryListResponse = components['schemas']['WebhookDeliveryListResponse'];
1131
1232
  type CreateWebhookRequest = components['schemas']['CreateWebhookRequest'];
1132
1233
  type UpdateWebhookRequest = components['schemas']['UpdateWebhookRequest'];
1133
1234
  type EventSubscriptionSummary = components['schemas']['EventSubscriptionSummary'];
@@ -1224,7 +1325,7 @@ type AgentStagesApi$1 = {
1224
1325
  list(agentId: string, blueprintId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
1225
1326
  get(agentId: string, blueprintId: string, stageId: string): Promise<BlueprintStage>;
1226
1327
  create(agentId: string, blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
1227
- update(agentId: string, blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
1328
+ update(agentId: string, blueprintId: string, stageId: string, payload: Partial<UpdateBlueprintStageRequest>): Promise<BlueprintStage>;
1228
1329
  delete(agentId: string, blueprintId: string, stageId: string): Promise<void>;
1229
1330
  reorder(agentId: string, blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
1230
1331
  };
@@ -1282,6 +1383,7 @@ interface AgentEntity extends AgentBase {
1282
1383
  blueprints: AgentBlueprintsHelper;
1283
1384
  stages: AgentStagesHelper;
1284
1385
  save(patch: UpdateAgentRequest): Promise<AgentEntity>;
1386
+ clone(payload: CloneAgentPayload): Promise<AgentEntity>;
1285
1387
  delete(): Promise<void>;
1286
1388
  refresh(): Promise<AgentEntity>;
1287
1389
  }
@@ -1297,6 +1399,7 @@ type AgentEntityFactoryOptions = {
1297
1399
  reload(agentId: string): Promise<AgentEntity>;
1298
1400
  updateAgent(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1299
1401
  deleteAgent(agentId: string): Promise<void>;
1402
+ cloneAgent(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1300
1403
  };
1301
1404
  declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, blueprintId: string, stageId: string) => {
1302
1405
  list(opts?: ListAgentStageTriggersOptions): Promise<PaginatedResult<{
@@ -1677,6 +1780,7 @@ type AgentsApi = {
1677
1780
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1678
1781
  get(agentId: string): Promise<AgentDetail>;
1679
1782
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1783
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentDetail>;
1680
1784
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
1681
1785
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1682
1786
  delete(agent: string | AgentEntity): Promise<void>;
@@ -1685,10 +1789,11 @@ type AgentListResponseWithEntities = {
1685
1789
  data: AgentEntity[];
1686
1790
  meta: AgentListResponse['meta'];
1687
1791
  };
1688
- type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list' | 'forkFromTemplate'> & {
1792
+ type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'clone' | 'update' | 'list' | 'forkFromTemplate'> & {
1689
1793
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1690
1794
  get(agentId: string): Promise<AgentEntity>;
1691
1795
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1796
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1692
1797
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1693
1798
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1694
1799
  };
@@ -1706,6 +1811,34 @@ declare function createApiKeysApi(cfg: ClientConfig & {
1706
1811
  retry?: RetryPolicy;
1707
1812
  }): ApiKeysApi;
1708
1813
 
1814
+ type ListCallsOptions = ListQueryOptions & Partial<{
1815
+ agentBatchId: string;
1816
+ agentId: string;
1817
+ executionId: string;
1818
+ recordedAfter: string | Date;
1819
+ recordedBefore: string | Date;
1820
+ durationBucket: 'short' | 'medium' | 'long';
1821
+ goalStatus: 'achieved' | 'not_achieved';
1822
+ query: string;
1823
+ }>;
1824
+ type StreamCallsOptions = {
1825
+ after: string | Date;
1826
+ limit?: number;
1827
+ agentBatchId?: string;
1828
+ agentId?: string;
1829
+ executionId?: string;
1830
+ durationBucket?: 'short' | 'medium' | 'long';
1831
+ goalStatus?: 'achieved' | 'not_achieved';
1832
+ query?: string;
1833
+ };
1834
+ declare function createCallsApi(cfg: ClientConfig & {
1835
+ retry?: RetryPolicy;
1836
+ }): {
1837
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
1838
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
1839
+ get(callId: string): Promise<Call>;
1840
+ };
1841
+
1709
1842
  type ListCampaignsOptions = ListQueryOptions;
1710
1843
  type ListCampaignExecutionsOptions = Pick<ListQueryOptions, 'page' | 'limit'>;
1711
1844
  type CreateCampaignPayload = {
@@ -1807,6 +1940,8 @@ declare function createWebhooksApi(cfg: ClientConfig & {
1807
1940
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
1808
1941
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
1809
1942
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
1943
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
1944
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
1810
1945
  };
1811
1946
 
1812
1947
  type ListWorkspacePhonesOptions = ListQueryOptions & {
@@ -1820,7 +1955,7 @@ declare function createWorkspacesApi(cfg: ClientConfig & {
1820
1955
  }): {
1821
1956
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1822
1957
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1823
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1958
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1824
1959
  };
1825
1960
 
1826
1961
  declare function createClient(initialCfg: ClientConfig & {
@@ -1909,13 +2044,14 @@ declare function createClient(initialCfg: ClientConfig & {
1909
2044
  }, ListAgentsOptions>>;
1910
2045
  get(agentId: string): Promise<AgentEntity>;
1911
2046
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
2047
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1912
2048
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
1913
2049
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1914
2050
  };
1915
2051
  workspaces: {
1916
2052
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
1917
2053
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1918
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2054
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1919
2055
  };
1920
2056
  tools: {
1921
2057
  connections: {
@@ -1984,6 +2120,11 @@ declare function createClient(initialCfg: ClientConfig & {
1984
2120
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1985
2121
  };
1986
2122
  apiKeys: ApiKeysApi;
2123
+ calls: {
2124
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
2125
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
2126
+ get(callId: string): Promise<Call>;
2127
+ };
1987
2128
  webhooks: {
1988
2129
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
1989
2130
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -1995,6 +2136,8 @@ declare function createClient(initialCfg: ClientConfig & {
1995
2136
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
1996
2137
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
1997
2138
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2139
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2140
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
1998
2141
  };
1999
2142
  };
2000
2143
  };
@@ -2048,13 +2191,14 @@ declare function createClient(initialCfg: ClientConfig & {
2048
2191
  }, ListAgentsOptions>>;
2049
2192
  get(agentId: string): Promise<AgentEntity>;
2050
2193
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
2194
+ clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2051
2195
  forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2052
2196
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2053
2197
  };
2054
2198
  workspaces: {
2055
2199
  list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
2056
2200
  listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
2057
- enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2201
+ enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
2058
2202
  };
2059
2203
  tools: {
2060
2204
  connections: {
@@ -2123,6 +2267,11 @@ declare function createClient(initialCfg: ClientConfig & {
2123
2267
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
2124
2268
  };
2125
2269
  apiKeys: ApiKeysApi;
2270
+ calls: {
2271
+ list(options?: ListCallsOptions): Promise<PaginatedResult<CallsListResponse, ListCallsOptions>>;
2272
+ stream(options: StreamCallsOptions): Promise<CallsStreamResponse>;
2273
+ get(callId: string): Promise<Call>;
2274
+ };
2126
2275
  webhooks: {
2127
2276
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
2128
2277
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -2134,6 +2283,8 @@ declare function createClient(initialCfg: ClientConfig & {
2134
2283
  getSubscription(webhookId: string, subscriptionId: string): Promise<EventSubscriptionDetail>;
2135
2284
  updateSubscription(webhookId: string, subscriptionId: string, payload: UpdateEventSubscriptionRequest): Promise<EventSubscriptionDetail>;
2136
2285
  deleteSubscription(webhookId: string, subscriptionId: string): Promise<void>;
2286
+ listDeliveries(webhookId: string, options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookDeliveryListResponse, ListWebhooksOptions>>;
2287
+ getDelivery(webhookId: string, deliveryId: string): Promise<WebhookDeliveryDetail>;
2137
2288
  };
2138
2289
  };
2139
2290
 
@@ -2160,4 +2311,4 @@ declare function createHttp(cfg: ClientConfig & {
2160
2311
  resolveAccessToken: () => string;
2161
2312
  };
2162
2313
 
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 };
2314
+ 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 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 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, type StreamCallsOptions, 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 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, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };