@getsupervisor/agents-studio-sdk 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1099,6 +1099,12 @@ type ListQueryOptions = Partial<{
1099
1099
  filter: QueryFilters | QueryBuilderInput;
1100
1100
  or: QueryOrGroups | QueryBuilderInput;
1101
1101
  }>;
1102
+ type PaginatedResult<TResponse, TOptions extends ListQueryOptions> = TResponse & {
1103
+ next(): Promise<PaginatedResult<TResponse, TOptions> | null>;
1104
+ prev(): Promise<PaginatedResult<TResponse, TOptions> | null>;
1105
+ page(page: number): Promise<PaginatedResult<TResponse, TOptions>>;
1106
+ reload(): Promise<PaginatedResult<TResponse, TOptions>>;
1107
+ };
1102
1108
  type ClientConfig = {
1103
1109
  baseUrl: string;
1104
1110
  headers?: Record<string, string>;
@@ -1178,7 +1184,7 @@ type ListAgentInstructionsOptions = ListQueryOptions & {
1178
1184
  declare function createAgentInstructionsApi(cfg: ClientConfig & {
1179
1185
  retry?: RetryPolicy;
1180
1186
  }): {
1181
- list(agentId: string, opts?: ListAgentInstructionsOptions): Promise<AgentInstructionsResponse>;
1187
+ list(agentId: string, opts?: ListAgentInstructionsOptions): Promise<PaginatedResult<AgentInstructionsResponse, ListAgentInstructionsOptions>>;
1182
1188
  create(agentId: string, payload: CreateInstructionRequest): Promise<InstructionCreatedResponse>;
1183
1189
  update(agentId: string, instructionId: string, payload: UpdateInstructionRequest): Promise<Instruction>;
1184
1190
  delete(agentId: string, instructionId: string): Promise<void>;
@@ -1189,8 +1195,8 @@ declare function createAgentKnowledgeApi(cfg: ClientConfig & {
1189
1195
  retry?: RetryPolicy;
1190
1196
  }): {
1191
1197
  upload(agentId: string, payload: KnowledgeUploadRequest): Promise<KnowledgeUploadResponse>;
1192
- listBases(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<AgentKnowledgeBasesResponse>;
1193
- listUploads(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<AgentKnowledgeUploadsResponse>;
1198
+ listBases(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<AgentKnowledgeBasesResponse, ListAgentKnowledgeOptions>>;
1199
+ listUploads(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<AgentKnowledgeUploadsResponse, ListAgentKnowledgeOptions>>;
1194
1200
  };
1195
1201
 
1196
1202
  declare function createAgentPhonesApi(cfg: ClientConfig & {
@@ -1213,7 +1219,7 @@ type ListAgentVersionsOptions = {
1213
1219
  declare function createAgentVersionsApi(cfg: ClientConfig & {
1214
1220
  retry?: RetryPolicy;
1215
1221
  }): {
1216
- list(agentId: string, opts?: ListAgentVersionsOptions): Promise<AgentVersionListResponse>;
1222
+ list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
1217
1223
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
1218
1224
  create(agentId: string, payload: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
1219
1225
  update(agentId: string, versionId: string, payload: UpdateAgentVersionRequest): Promise<AgentVersionDetail>;
@@ -1236,6 +1242,8 @@ interface AgentEntity extends AgentBase {
1236
1242
  phones: AgentPhonesHelper;
1237
1243
  schedule: AgentScheduleHelper;
1238
1244
  versions: AgentVersionsHelper;
1245
+ save(patch: UpdateAgentRequest): Promise<AgentEntity>;
1246
+ delete(): Promise<void>;
1239
1247
  refresh(): Promise<AgentEntity>;
1240
1248
  }
1241
1249
  type AgentEntityFactoryOptions = {
@@ -1245,12 +1253,14 @@ type AgentEntityFactoryOptions = {
1245
1253
  scheduleApi: AgentScheduleApi;
1246
1254
  versionsApi: AgentVersionsApi;
1247
1255
  reload(agentId: string): Promise<AgentEntity>;
1256
+ updateAgent(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1257
+ deleteAgent(agentId: string): Promise<void>;
1248
1258
  };
1249
1259
  declare const bindAgentInstructions: (api: AgentInstructionsApi, agentId: string) => {
1250
- list(opts?: ListAgentInstructionsOptions): Promise<{
1260
+ list(opts?: ListAgentInstructionsOptions): Promise<PaginatedResult<{
1251
1261
  data: components["schemas"]["Instruction"][];
1252
1262
  versionId?: string;
1253
- }>;
1263
+ }, ListAgentInstructionsOptions>>;
1254
1264
  create(payload: CreateInstructionRequest): Promise<{
1255
1265
  id: string;
1256
1266
  versionId: string;
@@ -1277,11 +1287,20 @@ declare const bindAgentKnowledge: (api: AgentKnowledgeApi, agentId: string) => {
1277
1287
  user_id: string;
1278
1288
  status: "queued" | "processing" | "completed" | "failed";
1279
1289
  }>;
1280
- listBases(opts?: ListAgentKnowledgeOptions): Promise<{
1290
+ listBases(opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<{
1281
1291
  data?: components["schemas"]["KnowledgeBaseSummary"][];
1282
1292
  agent_id?: string;
1283
- }>;
1284
- listUploads(opts?: ListAgentKnowledgeOptions): Promise<{
1293
+ }, Partial<{
1294
+ page: number;
1295
+ limit: number;
1296
+ sort: string | string[];
1297
+ fields: string | string[];
1298
+ include: string | string[];
1299
+ search: string;
1300
+ filter: QueryFilters | QueryBuilderInput;
1301
+ or: QueryOrGroups | QueryBuilderInput;
1302
+ }>>>;
1303
+ listUploads(opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<{
1285
1304
  data: ({
1286
1305
  document_id: string;
1287
1306
  file_path: string;
@@ -1291,7 +1310,16 @@ declare const bindAgentKnowledge: (api: AgentKnowledgeApi, agentId: string) => {
1291
1310
  user_id: string;
1292
1311
  status: "queued" | "processing" | "completed" | "failed";
1293
1312
  })[];
1294
- }>;
1313
+ }, Partial<{
1314
+ page: number;
1315
+ limit: number;
1316
+ sort: string | string[];
1317
+ fields: string | string[];
1318
+ include: string | string[];
1319
+ search: string;
1320
+ filter: QueryFilters | QueryBuilderInput;
1321
+ or: QueryOrGroups | QueryBuilderInput;
1322
+ }>>>;
1295
1323
  };
1296
1324
  declare const bindAgentPhones: (api: AgentPhonesApi, agentId: string) => {
1297
1325
  connect(payload: ConnectPhoneRequest): Promise<{
@@ -1323,10 +1351,10 @@ declare const bindAgentSchedule: (api: AgentScheduleApi, agentId: string) => {
1323
1351
  }>;
1324
1352
  };
1325
1353
  declare const bindAgentVersions: (api: AgentVersionsApi, agentId: string) => {
1326
- list(opts?: ListAgentVersionsOptions): Promise<{
1354
+ list(opts?: ListAgentVersionsOptions): Promise<PaginatedResult<{
1327
1355
  data: components["schemas"]["AgentVersionSummary"][];
1328
1356
  meta?: components["schemas"]["PaginationMeta"];
1329
- }>;
1357
+ }, ListAgentVersionsOptions>>;
1330
1358
  get(versionId: string): Promise<{
1331
1359
  versionId: string;
1332
1360
  agentId: string;
@@ -1388,17 +1416,17 @@ type AgentEntityDependencies = {
1388
1416
  };
1389
1417
  type ListAgentsOptions = ListQueryOptions;
1390
1418
  type AgentsApi = {
1391
- list(options?: ListAgentsOptions): Promise<AgentListResponse>;
1419
+ list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponse, ListAgentsOptions>>;
1392
1420
  get(agentId: string): Promise<AgentDetail>;
1393
1421
  create(payload: CreateAgentRequest): Promise<AgentDetail>;
1394
1422
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
1395
- delete(agentId: string): Promise<void>;
1423
+ delete(agent: string | AgentEntity): Promise<void>;
1396
1424
  };
1397
1425
  type AgentListResponseWithEntities = Omit<AgentListResponse, 'data'> & {
1398
1426
  data: AgentEntity[];
1399
1427
  };
1400
1428
  type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list'> & {
1401
- list(options?: ListAgentsOptions): Promise<AgentListResponseWithEntities>;
1429
+ list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
1402
1430
  get(agentId: string): Promise<AgentEntity>;
1403
1431
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1404
1432
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
@@ -1411,7 +1439,7 @@ type ListToolsOptions = ListQueryOptions;
1411
1439
  declare function createToolsApi(cfg: ClientConfig & {
1412
1440
  retry?: RetryPolicy;
1413
1441
  }): {
1414
- list(options?: ListToolsOptions): Promise<ToolsCatalogResponse>;
1442
+ list(options?: ListToolsOptions): Promise<PaginatedResult<ToolsCatalogResponse, ListToolsOptions>>;
1415
1443
  execute(toolId: string, payload: ExecuteToolRequest): Promise<ExecuteToolResponse>;
1416
1444
  };
1417
1445
 
@@ -1426,7 +1454,7 @@ type ListVoicesOptions = ListQueryOptions & {
1426
1454
  declare function createVoicesApi(cfg: ClientConfig & {
1427
1455
  retry?: RetryPolicy;
1428
1456
  }): {
1429
- list(options?: ListVoicesOptions): Promise<VoiceListResponse>;
1457
+ list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1430
1458
  };
1431
1459
 
1432
1460
  type ListWorkspacePhonesOptions = ListQueryOptions & {
@@ -1435,7 +1463,7 @@ type ListWorkspacePhonesOptions = ListQueryOptions & {
1435
1463
  declare function createWorkspacesApi(cfg: ClientConfig & {
1436
1464
  retry?: RetryPolicy;
1437
1465
  }): {
1438
- listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<WorkspacePhonesResponse>;
1466
+ listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1439
1467
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1440
1468
  };
1441
1469
 
@@ -1458,11 +1486,11 @@ declare function createClient(initialCfg: ClientConfig & {
1458
1486
  agents: {
1459
1487
  knowledge: {
1460
1488
  upload(agentId: string, payload: KnowledgeUploadRequest): Promise<KnowledgeUploadResponse>;
1461
- listBases(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<AgentKnowledgeBasesResponse>;
1462
- listUploads(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<AgentKnowledgeUploadsResponse>;
1489
+ listBases(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<AgentKnowledgeBasesResponse, ListAgentKnowledgeOptions>>;
1490
+ listUploads(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<AgentKnowledgeUploadsResponse, ListAgentKnowledgeOptions>>;
1463
1491
  };
1464
1492
  instructions: {
1465
- list(agentId: string, opts?: ListAgentInstructionsOptions): Promise<AgentInstructionsResponse>;
1493
+ list(agentId: string, opts?: ListAgentInstructionsOptions): Promise<PaginatedResult<AgentInstructionsResponse, ListAgentInstructionsOptions>>;
1466
1494
  create(agentId: string, payload: CreateInstructionRequest): Promise<InstructionCreatedResponse>;
1467
1495
  update(agentId: string, instructionId: string, payload: UpdateInstructionRequest): Promise<Instruction>;
1468
1496
  delete(agentId: string, instructionId: string): Promise<void>;
@@ -1476,43 +1504,43 @@ declare function createClient(initialCfg: ClientConfig & {
1476
1504
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1477
1505
  };
1478
1506
  versions: {
1479
- list(agentId: string, opts?: ListAgentVersionsOptions): Promise<AgentVersionListResponse>;
1507
+ list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
1480
1508
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
1481
1509
  create(agentId: string, payload: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
1482
1510
  update(agentId: string, versionId: string, payload: UpdateAgentVersionRequest): Promise<AgentVersionDetail>;
1483
1511
  };
1484
- delete: (agentId: string) => Promise<void>;
1485
- list(options?: ListAgentsOptions): Promise<Omit<{
1512
+ delete: (agent: string | AgentEntity) => Promise<void>;
1513
+ list(options?: ListAgentsOptions): Promise<PaginatedResult<Omit<{
1486
1514
  data: components["schemas"]["AgentSummary"][];
1487
1515
  meta: components["schemas"]["PaginationMeta"];
1488
1516
  }, "data"> & {
1489
1517
  data: AgentEntity[];
1490
- }>;
1518
+ }, ListAgentsOptions>>;
1491
1519
  get(agentId: string): Promise<AgentEntity>;
1492
1520
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1493
1521
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1494
1522
  };
1495
1523
  workspaces: {
1496
- listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<WorkspacePhonesResponse>;
1524
+ listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1497
1525
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1498
1526
  };
1499
1527
  tools: {
1500
- list(options?: ListToolsOptions): Promise<ToolsCatalogResponse>;
1528
+ list(options?: ListToolsOptions): Promise<PaginatedResult<ToolsCatalogResponse, ListToolsOptions>>;
1501
1529
  execute(toolId: string, payload: ExecuteToolRequest): Promise<ExecuteToolResponse>;
1502
1530
  };
1503
1531
  voices: {
1504
- list(options?: ListVoicesOptions): Promise<VoiceListResponse>;
1532
+ list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1505
1533
  };
1506
1534
  };
1507
1535
  };
1508
1536
  agents: {
1509
1537
  knowledge: {
1510
1538
  upload(agentId: string, payload: KnowledgeUploadRequest): Promise<KnowledgeUploadResponse>;
1511
- listBases(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<AgentKnowledgeBasesResponse>;
1512
- listUploads(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<AgentKnowledgeUploadsResponse>;
1539
+ listBases(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<AgentKnowledgeBasesResponse, ListAgentKnowledgeOptions>>;
1540
+ listUploads(agentId: string, opts?: ListAgentKnowledgeOptions): Promise<PaginatedResult<AgentKnowledgeUploadsResponse, ListAgentKnowledgeOptions>>;
1513
1541
  };
1514
1542
  instructions: {
1515
- list(agentId: string, opts?: ListAgentInstructionsOptions): Promise<AgentInstructionsResponse>;
1543
+ list(agentId: string, opts?: ListAgentInstructionsOptions): Promise<PaginatedResult<AgentInstructionsResponse, ListAgentInstructionsOptions>>;
1516
1544
  create(agentId: string, payload: CreateInstructionRequest): Promise<InstructionCreatedResponse>;
1517
1545
  update(agentId: string, instructionId: string, payload: UpdateInstructionRequest): Promise<Instruction>;
1518
1546
  delete(agentId: string, instructionId: string): Promise<void>;
@@ -1526,32 +1554,32 @@ declare function createClient(initialCfg: ClientConfig & {
1526
1554
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
1527
1555
  };
1528
1556
  versions: {
1529
- list(agentId: string, opts?: ListAgentVersionsOptions): Promise<AgentVersionListResponse>;
1557
+ list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
1530
1558
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
1531
1559
  create(agentId: string, payload: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
1532
1560
  update(agentId: string, versionId: string, payload: UpdateAgentVersionRequest): Promise<AgentVersionDetail>;
1533
1561
  };
1534
- delete: (agentId: string) => Promise<void>;
1535
- list(options?: ListAgentsOptions): Promise<Omit<{
1562
+ delete: (agent: string | AgentEntity) => Promise<void>;
1563
+ list(options?: ListAgentsOptions): Promise<PaginatedResult<Omit<{
1536
1564
  data: components["schemas"]["AgentSummary"][];
1537
1565
  meta: components["schemas"]["PaginationMeta"];
1538
1566
  }, "data"> & {
1539
1567
  data: AgentEntity[];
1540
- }>;
1568
+ }, ListAgentsOptions>>;
1541
1569
  get(agentId: string): Promise<AgentEntity>;
1542
1570
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
1543
1571
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentEntity>;
1544
1572
  };
1545
1573
  workspaces: {
1546
- listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<WorkspacePhonesResponse>;
1574
+ listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
1547
1575
  enable(workspaceId: string, payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
1548
1576
  };
1549
1577
  tools: {
1550
- list(options?: ListToolsOptions): Promise<ToolsCatalogResponse>;
1578
+ list(options?: ListToolsOptions): Promise<PaginatedResult<ToolsCatalogResponse, ListToolsOptions>>;
1551
1579
  execute(toolId: string, payload: ExecuteToolRequest): Promise<ExecuteToolResponse>;
1552
1580
  };
1553
1581
  voices: {
1554
- list(options?: ListVoicesOptions): Promise<VoiceListResponse>;
1582
+ list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
1555
1583
  };
1556
1584
  };
1557
1585
 
@@ -1576,4 +1604,4 @@ declare function createHttp(cfg: ClientConfig & {
1576
1604
  resolveWorkspaceId: () => string;
1577
1605
  };
1578
1606
 
1579
- export { type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentInstructionsResponse, type AgentKnowledgeBasesResponse, type AgentKnowledgeUploadsResponse, type AgentListResponse, type AgentSchedule, type AgentSummary, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ClientConfig, type ConnectPhoneRequest, type CreateAgentRequest, type CreateAgentVersionRequest, type CreateInstructionRequest, type ErrorResponse, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type KnowledgeUploadListResponse, type KnowledgeUploadRequest, type KnowledgeUploadResponse, type ListAgentInstructionsOptions, type ListAgentKnowledgeOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListQueryOptions, type ListToolsOptions, type ListVoicesOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginationMeta, type PhoneAssignmentResponse, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolSummary, type ToolsCatalogResponse, type UpdateAgentRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionRequest, type UpdateInstructionRequest, type VoiceListResponse, type VoiceSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentInstructions, bindAgentKnowledge, bindAgentPhones, bindAgentSchedule, bindAgentVersions, createAgentEntity, createAgentInstructionsApi, createAgentKnowledgeApi, createAgentPhonesApi, createAgentScheduleApi, createAgentVersionsApi, createAgentsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWorkspacesApi };
1607
+ export { type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentInstructionsResponse, type AgentKnowledgeBasesResponse, type AgentKnowledgeUploadsResponse, type AgentListResponse, type AgentSchedule, type AgentSummary, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ClientConfig, type ConnectPhoneRequest, type CreateAgentRequest, type CreateAgentVersionRequest, type CreateInstructionRequest, type ErrorResponse, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type KnowledgeUploadListResponse, type KnowledgeUploadRequest, type KnowledgeUploadResponse, type ListAgentInstructionsOptions, type ListAgentKnowledgeOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListQueryOptions, type ListToolsOptions, type ListVoicesOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolSummary, type ToolsCatalogResponse, type UpdateAgentRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionRequest, type UpdateInstructionRequest, type VoiceListResponse, type VoiceSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentInstructions, bindAgentKnowledge, bindAgentPhones, bindAgentSchedule, bindAgentVersions, createAgentEntity, createAgentInstructionsApi, createAgentKnowledgeApi, createAgentPhonesApi, createAgentScheduleApi, createAgentVersionsApi, createAgentsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWorkspacesApi };