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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -68,10 +68,12 @@ type components = {
68
68
  CreateAgentRequest: {
69
69
  name: string;
70
70
  description?: string | null;
71
- agentType: 'chat' | 'voice';
71
+ agentType: 'voice' | 'chat';
72
72
  status?: 'inactive' | 'training' | 'active';
73
73
  avatarUrl?: string | null;
74
74
  debounceDelayMs?: number | null;
75
+ brief?: string | null;
76
+ researchUrl?: string | null;
75
77
  metadata?: {
76
78
  [key: string]: unknown;
77
79
  };
@@ -561,6 +563,25 @@ type components = {
561
563
  [key: string]: unknown;
562
564
  };
563
565
  };
566
+ DocumentFileItem: {
567
+ filename: string;
568
+ contentType: string;
569
+ };
570
+ CreateDocumentSlotsRequest: {
571
+ files: components['schemas']['DocumentFileItem'][];
572
+ };
573
+ DocumentSlot: {
574
+ key: string;
575
+ uploadUrl: string;
576
+ filename: string;
577
+ };
578
+ CreateDocumentSlotsResponse: {
579
+ documents: components['schemas']['DocumentSlot'][];
580
+ };
581
+ DocumentRef: {
582
+ key: string;
583
+ description: string;
584
+ };
564
585
  WebhookSummary: {
565
586
  id: string;
566
587
  url: string;
@@ -702,6 +723,38 @@ type components = {
702
723
  data: components['schemas']['Call'][];
703
724
  meta: components['schemas']['CallsStreamMeta'];
704
725
  };
726
+ SipTrunk: {
727
+ id: string;
728
+ workspaceId: string;
729
+ name: string;
730
+ username: string;
731
+ domain: string;
732
+ carrierAddress: string;
733
+ carrierPort: number;
734
+ carrierTransport: 'udp' | 'tcp' | 'tls';
735
+ phoneNumbers: string[];
736
+ status: 'active' | 'inactive';
737
+ createdAt: string;
738
+ updatedAt: string;
739
+ };
740
+ SipTrunkWithPassword: components['schemas']['SipTrunk'] & {
741
+ password: string;
742
+ };
743
+ CreateSipTrunkRequest: {
744
+ name: string;
745
+ carrierAddress: string;
746
+ carrierPort?: number;
747
+ carrierTransport?: 'udp' | 'tcp' | 'tls';
748
+ phoneNumbers?: string[];
749
+ };
750
+ UpdateSipTrunkRequest: {
751
+ name?: string;
752
+ carrierAddress?: string;
753
+ carrierPort?: number;
754
+ carrierTransport?: 'udp' | 'tcp' | 'tls';
755
+ phoneNumbers?: string[];
756
+ status?: 'active' | 'inactive';
757
+ };
705
758
  ResourceProjection: {
706
759
  estimatedAtClose: number;
707
760
  dailyBurnRate: number;
@@ -742,6 +795,11 @@ type components = {
742
795
  limit: number;
743
796
  hasNext: boolean;
744
797
  hasPrevious: boolean;
798
+ aggregations: components['schemas']['UsageAgentsAggregations'];
799
+ };
800
+ UsageAgentsAggregations: {
801
+ totalUsage: number;
802
+ planLimit: number | null;
745
803
  };
746
804
  UsageAgentsResponse: {
747
805
  data: components['schemas']['UsageAgentRow'][];
@@ -754,6 +812,8 @@ type components = {
754
812
  description?: string | null;
755
813
  status?: 'inactive' | 'training' | 'active';
756
814
  debounceDelayMs?: number | null;
815
+ brief?: string | null;
816
+ researchUrl?: string | null;
757
817
  };
758
818
  CloneAgentRequest: {
759
819
  name: string;
@@ -985,6 +1045,7 @@ type components = {
985
1045
  WebhookId: string;
986
1046
  SubscriptionId: string;
987
1047
  CallId: string;
1048
+ SipTrunkId: string;
988
1049
  AgentBatchIdQuery?: string;
989
1050
  AgentIdQuery?: string;
990
1051
  ExecutionIdQuery?: string;
@@ -1056,15 +1117,72 @@ type ClientConfig = {
1056
1117
  type AgentDetail = components['schemas']['AgentDetail'];
1057
1118
  type AgentSummary = components['schemas']['AgentSummary'];
1058
1119
  type AgentListResponse = components['schemas']['AgentListResponse'];
1059
- type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
1120
+ type CreateAgentRequest = components['schemas']['CreateAgentRequest'] & {
1121
+ documentRefs?: DocumentRef[];
1122
+ };
1060
1123
  type CloneAgentRequest = components['schemas']['CloneAgentRequest'];
1061
1124
  type CloneAgentComponent = CloneAgentRequest['clone'][number];
1062
1125
  type CloneAgentSelection = CloneAgentComponent[] | Partial<Record<CloneAgentComponent, boolean>>;
1063
1126
  type CloneAgentPayload = Omit<CloneAgentRequest, 'clone'> & {
1064
1127
  clone?: CloneAgentSelection;
1065
1128
  };
1066
- type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
1129
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'] & {
1130
+ documentRefs?: DocumentRef[];
1131
+ };
1067
1132
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
1133
+ type RuntimeUsage = {
1134
+ totalCostUsd: number;
1135
+ inputTokens: number;
1136
+ outputTokens: number;
1137
+ cacheReadInputTokens: number;
1138
+ cacheCreationInputTokens: number;
1139
+ peakMemoryMb: number;
1140
+ };
1141
+ type PresignDocumentItem = {
1142
+ filename: string;
1143
+ contentType: string;
1144
+ };
1145
+ type PresignDocumentsRequest = {
1146
+ files: PresignDocumentItem[];
1147
+ };
1148
+ type PresignedDocument = {
1149
+ key: string;
1150
+ uploadUrl: string;
1151
+ filename: string;
1152
+ };
1153
+ type PresignDocumentsResponse = {
1154
+ documents: PresignedDocument[];
1155
+ };
1156
+ type DocumentRef = {
1157
+ key: string;
1158
+ description: string;
1159
+ };
1160
+ type RuntimeProgressEvent = {
1161
+ messageType: string;
1162
+ summary: string;
1163
+ };
1164
+ type RuntimeCompleteEvent = {
1165
+ success: boolean;
1166
+ durationMs: number;
1167
+ usage?: RuntimeUsage;
1168
+ };
1169
+ type RuntimeErrorEvent = {
1170
+ error: string;
1171
+ code?: number | null;
1172
+ };
1173
+ type RuntimeSseEvent = {
1174
+ event: 'agent-created';
1175
+ data: AgentDetail;
1176
+ } | {
1177
+ event: 'runtime-progress';
1178
+ data: RuntimeProgressEvent;
1179
+ } | {
1180
+ event: 'runtime-complete';
1181
+ data: RuntimeCompleteEvent;
1182
+ } | {
1183
+ event: 'runtime-error';
1184
+ data: RuntimeErrorEvent;
1185
+ };
1068
1186
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
1069
1187
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
1070
1188
  type Instruction = components['schemas']['Instruction'];
@@ -1298,8 +1416,13 @@ type ResourceBalance = components['schemas']['ResourceBalance'];
1298
1416
  type SubscriptionInfo = components['schemas']['SubscriptionInfo'];
1299
1417
  type BillingBalanceResponse = components['schemas']['BillingBalanceResponse'];
1300
1418
  type UsageAgentRow = components['schemas']['UsageAgentRow'];
1419
+ type UsageAgentsAggregations = components['schemas']['UsageAgentsAggregations'];
1301
1420
  type UsageAgentsMeta = components['schemas']['UsageAgentsMeta'];
1302
1421
  type UsageAgentsResponse = components['schemas']['UsageAgentsResponse'];
1422
+ type SipTrunk = components['schemas']['SipTrunk'];
1423
+ type SipTrunkWithPassword = components['schemas']['SipTrunkWithPassword'];
1424
+ type CreateSipTrunkRequest = components['schemas']['CreateSipTrunkRequest'];
1425
+ type UpdateSipTrunkRequest = components['schemas']['UpdateSipTrunkRequest'];
1303
1426
  type CampaignStatus = components['schemas']['CampaignStatus'];
1304
1427
  type Campaign = components['schemas']['Campaign'];
1305
1428
  type CampaignListResponse = components['schemas']['CampaignListResponse'];
@@ -1863,13 +1986,20 @@ type AgentEntityDependencies = {
1863
1986
  stageTriggersApi: ReturnType<typeof createAgentStageTriggersApi>;
1864
1987
  };
1865
1988
  type ListAgentsOptions = Pick<ListQueryOptions, 'page' | 'limit' | 'filter'>;
1989
+ type SseCallbacks = {
1990
+ onAgentCreated?: (agent: AgentDetail) => void;
1991
+ onProgress?: (data: RuntimeProgressEvent) => void;
1992
+ onComplete?: (data: RuntimeCompleteEvent) => void;
1993
+ onError?: (data: RuntimeErrorEvent) => void;
1994
+ };
1866
1995
  type AgentsApi = {
1867
1996
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1868
1997
  get(agentId: string): Promise<AgentDetail>;
1869
- create(payload: CreateAgentRequest): Promise<AgentDetail>;
1998
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1870
1999
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentDetail>;
1871
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
2000
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1872
2001
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
2002
+ presignDocuments(files: PresignDocumentItem[]): Promise<PresignDocumentsResponse>;
1873
2003
  delete(agent: string | AgentEntity): Promise<void>;
1874
2004
  };
1875
2005
  type AgentListResponseWithEntities = {
@@ -1879,9 +2009,9 @@ type AgentListResponseWithEntities = {
1879
2009
  type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'clone' | 'update' | 'list' | 'forkFromTemplate'> & {
1880
2010
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1881
2011
  get(agentId: string): Promise<AgentEntity>;
1882
- create(payload: CreateAgentRequest): Promise<AgentEntity>;
2012
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1883
2013
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1884
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2014
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1885
2015
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1886
2016
  };
1887
2017
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -1969,6 +2099,16 @@ declare function createCatalogsApi(cfg: ClientConfig & {
1969
2099
  remove(itemId: string): Promise<void>;
1970
2100
  };
1971
2101
 
2102
+ declare function createSipTrunksApi(cfg: ClientConfig & {
2103
+ retry?: RetryPolicy;
2104
+ }): {
2105
+ list(): Promise<SipTrunk[]>;
2106
+ get(trunkId: string): Promise<SipTrunk>;
2107
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2108
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2109
+ delete(trunkId: string): Promise<void>;
2110
+ };
2111
+
1972
2112
  type IdempotentRequestOptions = {
1973
2113
  idempotencyKey?: string;
1974
2114
  };
@@ -2142,14 +2282,15 @@ declare function createClient(initialCfg: ClientConfig & {
2142
2282
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2143
2283
  };
2144
2284
  delete: (agent: string | AgentEntity) => Promise<void>;
2285
+ presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2145
2286
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2146
2287
  data: AgentEntity[];
2147
2288
  meta: AgentListResponse["meta"];
2148
2289
  }, ListAgentsOptions>>;
2149
2290
  get(agentId: string): Promise<AgentEntity>;
2150
- create(payload: CreateAgentRequest): Promise<AgentEntity>;
2291
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2151
2292
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2152
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2293
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2153
2294
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2154
2295
  };
2155
2296
  workspaces: {
@@ -2235,6 +2376,13 @@ declare function createClient(initialCfg: ClientConfig & {
2235
2376
  usage: {
2236
2377
  agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2237
2378
  };
2379
+ sip: {
2380
+ list(): Promise<SipTrunk[]>;
2381
+ get(trunkId: string): Promise<SipTrunk>;
2382
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2383
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2384
+ delete(trunkId: string): Promise<void>;
2385
+ };
2238
2386
  webhooks: {
2239
2387
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
2240
2388
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -2295,14 +2443,15 @@ declare function createClient(initialCfg: ClientConfig & {
2295
2443
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2296
2444
  };
2297
2445
  delete: (agent: string | AgentEntity) => Promise<void>;
2446
+ presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2298
2447
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2299
2448
  data: AgentEntity[];
2300
2449
  meta: AgentListResponse["meta"];
2301
2450
  }, ListAgentsOptions>>;
2302
2451
  get(agentId: string): Promise<AgentEntity>;
2303
- create(payload: CreateAgentRequest): Promise<AgentEntity>;
2452
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2304
2453
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2305
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2454
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2306
2455
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2307
2456
  };
2308
2457
  workspaces: {
@@ -2388,6 +2537,13 @@ declare function createClient(initialCfg: ClientConfig & {
2388
2537
  usage: {
2389
2538
  agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2390
2539
  };
2540
+ sip: {
2541
+ list(): Promise<SipTrunk[]>;
2542
+ get(trunkId: string): Promise<SipTrunk>;
2543
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2544
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2545
+ delete(trunkId: string): Promise<void>;
2546
+ };
2391
2547
  webhooks: {
2392
2548
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
2393
2549
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -2427,4 +2583,4 @@ declare function createHttp(cfg: ClientConfig & {
2427
2583
  resolveAccessToken: () => string;
2428
2584
  };
2429
2585
 
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 };
2586
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, type AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, type Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, bindAgentBlueprints, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
package/dist/index.d.ts CHANGED
@@ -68,10 +68,12 @@ type components = {
68
68
  CreateAgentRequest: {
69
69
  name: string;
70
70
  description?: string | null;
71
- agentType: 'chat' | 'voice';
71
+ agentType: 'voice' | 'chat';
72
72
  status?: 'inactive' | 'training' | 'active';
73
73
  avatarUrl?: string | null;
74
74
  debounceDelayMs?: number | null;
75
+ brief?: string | null;
76
+ researchUrl?: string | null;
75
77
  metadata?: {
76
78
  [key: string]: unknown;
77
79
  };
@@ -561,6 +563,25 @@ type components = {
561
563
  [key: string]: unknown;
562
564
  };
563
565
  };
566
+ DocumentFileItem: {
567
+ filename: string;
568
+ contentType: string;
569
+ };
570
+ CreateDocumentSlotsRequest: {
571
+ files: components['schemas']['DocumentFileItem'][];
572
+ };
573
+ DocumentSlot: {
574
+ key: string;
575
+ uploadUrl: string;
576
+ filename: string;
577
+ };
578
+ CreateDocumentSlotsResponse: {
579
+ documents: components['schemas']['DocumentSlot'][];
580
+ };
581
+ DocumentRef: {
582
+ key: string;
583
+ description: string;
584
+ };
564
585
  WebhookSummary: {
565
586
  id: string;
566
587
  url: string;
@@ -702,6 +723,38 @@ type components = {
702
723
  data: components['schemas']['Call'][];
703
724
  meta: components['schemas']['CallsStreamMeta'];
704
725
  };
726
+ SipTrunk: {
727
+ id: string;
728
+ workspaceId: string;
729
+ name: string;
730
+ username: string;
731
+ domain: string;
732
+ carrierAddress: string;
733
+ carrierPort: number;
734
+ carrierTransport: 'udp' | 'tcp' | 'tls';
735
+ phoneNumbers: string[];
736
+ status: 'active' | 'inactive';
737
+ createdAt: string;
738
+ updatedAt: string;
739
+ };
740
+ SipTrunkWithPassword: components['schemas']['SipTrunk'] & {
741
+ password: string;
742
+ };
743
+ CreateSipTrunkRequest: {
744
+ name: string;
745
+ carrierAddress: string;
746
+ carrierPort?: number;
747
+ carrierTransport?: 'udp' | 'tcp' | 'tls';
748
+ phoneNumbers?: string[];
749
+ };
750
+ UpdateSipTrunkRequest: {
751
+ name?: string;
752
+ carrierAddress?: string;
753
+ carrierPort?: number;
754
+ carrierTransport?: 'udp' | 'tcp' | 'tls';
755
+ phoneNumbers?: string[];
756
+ status?: 'active' | 'inactive';
757
+ };
705
758
  ResourceProjection: {
706
759
  estimatedAtClose: number;
707
760
  dailyBurnRate: number;
@@ -742,6 +795,11 @@ type components = {
742
795
  limit: number;
743
796
  hasNext: boolean;
744
797
  hasPrevious: boolean;
798
+ aggregations: components['schemas']['UsageAgentsAggregations'];
799
+ };
800
+ UsageAgentsAggregations: {
801
+ totalUsage: number;
802
+ planLimit: number | null;
745
803
  };
746
804
  UsageAgentsResponse: {
747
805
  data: components['schemas']['UsageAgentRow'][];
@@ -754,6 +812,8 @@ type components = {
754
812
  description?: string | null;
755
813
  status?: 'inactive' | 'training' | 'active';
756
814
  debounceDelayMs?: number | null;
815
+ brief?: string | null;
816
+ researchUrl?: string | null;
757
817
  };
758
818
  CloneAgentRequest: {
759
819
  name: string;
@@ -985,6 +1045,7 @@ type components = {
985
1045
  WebhookId: string;
986
1046
  SubscriptionId: string;
987
1047
  CallId: string;
1048
+ SipTrunkId: string;
988
1049
  AgentBatchIdQuery?: string;
989
1050
  AgentIdQuery?: string;
990
1051
  ExecutionIdQuery?: string;
@@ -1056,15 +1117,72 @@ type ClientConfig = {
1056
1117
  type AgentDetail = components['schemas']['AgentDetail'];
1057
1118
  type AgentSummary = components['schemas']['AgentSummary'];
1058
1119
  type AgentListResponse = components['schemas']['AgentListResponse'];
1059
- type CreateAgentRequest = components['schemas']['CreateAgentRequest'];
1120
+ type CreateAgentRequest = components['schemas']['CreateAgentRequest'] & {
1121
+ documentRefs?: DocumentRef[];
1122
+ };
1060
1123
  type CloneAgentRequest = components['schemas']['CloneAgentRequest'];
1061
1124
  type CloneAgentComponent = CloneAgentRequest['clone'][number];
1062
1125
  type CloneAgentSelection = CloneAgentComponent[] | Partial<Record<CloneAgentComponent, boolean>>;
1063
1126
  type CloneAgentPayload = Omit<CloneAgentRequest, 'clone'> & {
1064
1127
  clone?: CloneAgentSelection;
1065
1128
  };
1066
- type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'];
1129
+ type ForkAgentFromTemplateRequest = components['schemas']['ForkAgentFromTemplateRequest'] & {
1130
+ documentRefs?: DocumentRef[];
1131
+ };
1067
1132
  type UpdateAgentRequest = components['schemas']['UpdateAgentRequest'];
1133
+ type RuntimeUsage = {
1134
+ totalCostUsd: number;
1135
+ inputTokens: number;
1136
+ outputTokens: number;
1137
+ cacheReadInputTokens: number;
1138
+ cacheCreationInputTokens: number;
1139
+ peakMemoryMb: number;
1140
+ };
1141
+ type PresignDocumentItem = {
1142
+ filename: string;
1143
+ contentType: string;
1144
+ };
1145
+ type PresignDocumentsRequest = {
1146
+ files: PresignDocumentItem[];
1147
+ };
1148
+ type PresignedDocument = {
1149
+ key: string;
1150
+ uploadUrl: string;
1151
+ filename: string;
1152
+ };
1153
+ type PresignDocumentsResponse = {
1154
+ documents: PresignedDocument[];
1155
+ };
1156
+ type DocumentRef = {
1157
+ key: string;
1158
+ description: string;
1159
+ };
1160
+ type RuntimeProgressEvent = {
1161
+ messageType: string;
1162
+ summary: string;
1163
+ };
1164
+ type RuntimeCompleteEvent = {
1165
+ success: boolean;
1166
+ durationMs: number;
1167
+ usage?: RuntimeUsage;
1168
+ };
1169
+ type RuntimeErrorEvent = {
1170
+ error: string;
1171
+ code?: number | null;
1172
+ };
1173
+ type RuntimeSseEvent = {
1174
+ event: 'agent-created';
1175
+ data: AgentDetail;
1176
+ } | {
1177
+ event: 'runtime-progress';
1178
+ data: RuntimeProgressEvent;
1179
+ } | {
1180
+ event: 'runtime-complete';
1181
+ data: RuntimeCompleteEvent;
1182
+ } | {
1183
+ event: 'runtime-error';
1184
+ data: RuntimeErrorEvent;
1185
+ };
1068
1186
  type AgentTagRequest = components['schemas']['AgentTagRequest'];
1069
1187
  type AgentTagsResponse = components['schemas']['AgentTagsResponse'];
1070
1188
  type Instruction = components['schemas']['Instruction'];
@@ -1298,8 +1416,13 @@ type ResourceBalance = components['schemas']['ResourceBalance'];
1298
1416
  type SubscriptionInfo = components['schemas']['SubscriptionInfo'];
1299
1417
  type BillingBalanceResponse = components['schemas']['BillingBalanceResponse'];
1300
1418
  type UsageAgentRow = components['schemas']['UsageAgentRow'];
1419
+ type UsageAgentsAggregations = components['schemas']['UsageAgentsAggregations'];
1301
1420
  type UsageAgentsMeta = components['schemas']['UsageAgentsMeta'];
1302
1421
  type UsageAgentsResponse = components['schemas']['UsageAgentsResponse'];
1422
+ type SipTrunk = components['schemas']['SipTrunk'];
1423
+ type SipTrunkWithPassword = components['schemas']['SipTrunkWithPassword'];
1424
+ type CreateSipTrunkRequest = components['schemas']['CreateSipTrunkRequest'];
1425
+ type UpdateSipTrunkRequest = components['schemas']['UpdateSipTrunkRequest'];
1303
1426
  type CampaignStatus = components['schemas']['CampaignStatus'];
1304
1427
  type Campaign = components['schemas']['Campaign'];
1305
1428
  type CampaignListResponse = components['schemas']['CampaignListResponse'];
@@ -1863,13 +1986,20 @@ type AgentEntityDependencies = {
1863
1986
  stageTriggersApi: ReturnType<typeof createAgentStageTriggersApi>;
1864
1987
  };
1865
1988
  type ListAgentsOptions = Pick<ListQueryOptions, 'page' | 'limit' | 'filter'>;
1989
+ type SseCallbacks = {
1990
+ onAgentCreated?: (agent: AgentDetail) => void;
1991
+ onProgress?: (data: RuntimeProgressEvent) => void;
1992
+ onComplete?: (data: RuntimeCompleteEvent) => void;
1993
+ onError?: (data: RuntimeErrorEvent) => void;
1994
+ };
1866
1995
  type AgentsApi = {
1867
1996
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1868
1997
  get(agentId: string): Promise<AgentDetail>;
1869
- create(payload: CreateAgentRequest): Promise<AgentDetail>;
1998
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1870
1999
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentDetail>;
1871
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentDetail>;
2000
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentDetail>;
1872
2001
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
2002
+ presignDocuments(files: PresignDocumentItem[]): Promise<PresignDocumentsResponse>;
1873
2003
  delete(agent: string | AgentEntity): Promise<void>;
1874
2004
  };
1875
2005
  type AgentListResponseWithEntities = {
@@ -1879,9 +2009,9 @@ type AgentListResponseWithEntities = {
1879
2009
  type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'clone' | 'update' | 'list' | 'forkFromTemplate'> & {
1880
2010
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1881
2011
  get(agentId: string): Promise<AgentEntity>;
1882
- create(payload: CreateAgentRequest): Promise<AgentEntity>;
2012
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1883
2013
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
1884
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2014
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
1885
2015
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1886
2016
  };
1887
2017
  declare function createAgentsApi(cfg: ClientConfig & {
@@ -1969,6 +2099,16 @@ declare function createCatalogsApi(cfg: ClientConfig & {
1969
2099
  remove(itemId: string): Promise<void>;
1970
2100
  };
1971
2101
 
2102
+ declare function createSipTrunksApi(cfg: ClientConfig & {
2103
+ retry?: RetryPolicy;
2104
+ }): {
2105
+ list(): Promise<SipTrunk[]>;
2106
+ get(trunkId: string): Promise<SipTrunk>;
2107
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2108
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2109
+ delete(trunkId: string): Promise<void>;
2110
+ };
2111
+
1972
2112
  type IdempotentRequestOptions = {
1973
2113
  idempotencyKey?: string;
1974
2114
  };
@@ -2142,14 +2282,15 @@ declare function createClient(initialCfg: ClientConfig & {
2142
2282
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2143
2283
  };
2144
2284
  delete: (agent: string | AgentEntity) => Promise<void>;
2285
+ presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2145
2286
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2146
2287
  data: AgentEntity[];
2147
2288
  meta: AgentListResponse["meta"];
2148
2289
  }, ListAgentsOptions>>;
2149
2290
  get(agentId: string): Promise<AgentEntity>;
2150
- create(payload: CreateAgentRequest): Promise<AgentEntity>;
2291
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2151
2292
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2152
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2293
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2153
2294
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2154
2295
  };
2155
2296
  workspaces: {
@@ -2235,6 +2376,13 @@ declare function createClient(initialCfg: ClientConfig & {
2235
2376
  usage: {
2236
2377
  agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2237
2378
  };
2379
+ sip: {
2380
+ list(): Promise<SipTrunk[]>;
2381
+ get(trunkId: string): Promise<SipTrunk>;
2382
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2383
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2384
+ delete(trunkId: string): Promise<void>;
2385
+ };
2238
2386
  webhooks: {
2239
2387
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
2240
2388
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -2295,14 +2443,15 @@ declare function createClient(initialCfg: ClientConfig & {
2295
2443
  triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
2296
2444
  };
2297
2445
  delete: (agent: string | AgentEntity) => Promise<void>;
2446
+ presignDocuments: (files: PresignDocumentItem[]) => Promise<PresignDocumentsResponse>;
2298
2447
  list(options?: ListAgentsOptions): Promise<PaginatedResult<{
2299
2448
  data: AgentEntity[];
2300
2449
  meta: AgentListResponse["meta"];
2301
2450
  }, ListAgentsOptions>>;
2302
2451
  get(agentId: string): Promise<AgentEntity>;
2303
- create(payload: CreateAgentRequest): Promise<AgentEntity>;
2452
+ create(payload: CreateAgentRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2304
2453
  clone(agentId: string, payload: CloneAgentPayload): Promise<AgentEntity>;
2305
- forkFromTemplate(payload: ForkAgentFromTemplateRequest): Promise<AgentEntity>;
2454
+ forkFromTemplate(payload: ForkAgentFromTemplateRequest, callbacks?: SseCallbacks): Promise<AgentEntity>;
2306
2455
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
2307
2456
  };
2308
2457
  workspaces: {
@@ -2388,6 +2537,13 @@ declare function createClient(initialCfg: ClientConfig & {
2388
2537
  usage: {
2389
2538
  agents(options?: ListUsageAgentsOptions): Promise<PaginatedResult<UsageAgentsResponse, ListUsageAgentsOptions>>;
2390
2539
  };
2540
+ sip: {
2541
+ list(): Promise<SipTrunk[]>;
2542
+ get(trunkId: string): Promise<SipTrunk>;
2543
+ create(body: CreateSipTrunkRequest): Promise<SipTrunkWithPassword>;
2544
+ update(trunkId: string, body: UpdateSipTrunkRequest): Promise<SipTrunk>;
2545
+ delete(trunkId: string): Promise<void>;
2546
+ };
2391
2547
  webhooks: {
2392
2548
  list(options?: ListWebhooksOptions): Promise<PaginatedResult<WebhookListResponse, ListWebhooksOptions>>;
2393
2549
  create(payload: CreateWebhookRequest): Promise<WebhookDetail>;
@@ -2427,4 +2583,4 @@ declare function createHttp(cfg: ClientConfig & {
2427
2583
  resolveAccessToken: () => string;
2428
2584
  };
2429
2585
 
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 };
2586
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, type AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, type Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, bindAgentBlueprints, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };