@gravity-rail/sdk 8.2.0 → 9.2.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.
Files changed (51) hide show
  1. package/README.md +2 -3
  2. package/dist/{agent_standing_job-CQqd8LDQ.d.ts → agent_team-C4ZYR_m1.d.ts} +731 -354
  3. package/dist/{agent_standing_job-DfjwGfg_.d.cts → agent_team-C6FdNgYH.d.cts} +731 -354
  4. package/dist/{chunk-U2U5X3LY.js → chunk-7LQYEV5Y.js} +245 -226
  5. package/dist/chunk-7LQYEV5Y.js.map +1 -0
  6. package/dist/{chunk-IIIRXFKG.js → chunk-MWTQXZGB.js} +1 -1
  7. package/dist/chunk-MWTQXZGB.js.map +1 -0
  8. package/dist/{chunk-6KPGCPGW.js → chunk-ZJJDZUAK.js} +40 -1
  9. package/dist/chunk-ZJJDZUAK.js.map +1 -0
  10. package/dist/{client-Bd-zXY42.d.ts → client-DVF3qwNq.d.ts} +2380 -1113
  11. package/dist/{client-BGGgZhKg.d.cts → client-DwslF70Y.d.cts} +2380 -1113
  12. package/dist/helpers.cjs +41 -0
  13. package/dist/helpers.cjs.map +1 -1
  14. package/dist/helpers.d.cts +2 -2
  15. package/dist/helpers.d.ts +2 -2
  16. package/dist/helpers.js +5 -1
  17. package/dist/helpers.js.map +1 -1
  18. package/dist/index.cjs +290 -305
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +7 -23
  21. package/dist/index.d.ts +7 -23
  22. package/dist/index.js +14 -84
  23. package/dist/index.js.map +1 -1
  24. package/dist/internal.cjs +252 -230
  25. package/dist/internal.cjs.map +1 -1
  26. package/dist/internal.d.cts +775 -999
  27. package/dist/internal.d.ts +775 -999
  28. package/dist/internal.js +12 -9
  29. package/dist/internal.js.map +1 -1
  30. package/dist/member-import-BpcX-swC.d.ts +92 -0
  31. package/dist/member-import-CA9YWv3Y.d.cts +92 -0
  32. package/dist/realtime.cjs +109 -54
  33. package/dist/realtime.cjs.map +1 -1
  34. package/dist/realtime.d.cts +7 -2
  35. package/dist/realtime.d.ts +7 -2
  36. package/dist/realtime.js +109 -54
  37. package/dist/realtime.js.map +1 -1
  38. package/dist/schemas.cjs +24 -6
  39. package/dist/schemas.cjs.map +1 -1
  40. package/dist/schemas.d.cts +53 -39
  41. package/dist/schemas.d.ts +53 -39
  42. package/dist/schemas.js +24 -7
  43. package/dist/schemas.js.map +1 -1
  44. package/dist/{tasks-2LhXIwL8.d.ts → tasks-BGLfmf5y.d.ts} +69 -904
  45. package/dist/{tasks-BTURuIlD.d.cts → tasks-BZb3rt5m.d.cts} +69 -904
  46. package/package.json +10 -9
  47. package/dist/chunk-6KPGCPGW.js.map +0 -1
  48. package/dist/chunk-IIIRXFKG.js.map +0 -1
  49. package/dist/chunk-U2U5X3LY.js.map +0 -1
  50. package/dist/member-import-4VSE3yYo.d.cts +0 -46
  51. package/dist/member-import-BQDFoSyf.d.ts +0 -46
package/dist/internal.cjs CHANGED
@@ -39,7 +39,6 @@ __export(internal_exports, {
39
39
  ActivityWindowBasis: () => ActivityWindowBasis,
40
40
  AdminRoomMessageDeliveryReason: () => AdminRoomMessageDeliveryReason,
41
41
  AgentTasksApi: () => AgentTasksApi,
42
- AgentsApi: () => AgentsApi,
43
42
  AiConnectorPolicy: () => AiConnectorPolicy,
44
43
  AiDisclosure: () => AiDisclosure,
45
44
  ApiError: () => ApiError,
@@ -53,6 +52,7 @@ __export(internal_exports, {
53
52
  AuthApi: () => AuthApi,
54
53
  BUILTIN_ASSISTANT_CHAT_TYPES: () => BUILTIN_ASSISTANT_CHAT_TYPES,
55
54
  BaseApiClient: () => BaseApiClient,
55
+ BotJobsApi: () => BotJobsApi,
56
56
  BuildersApi: () => BuildersApi,
57
57
  BulkMemberResultStatus: () => BulkMemberResultStatus,
58
58
  BusinessIndustry: () => BusinessIndustry,
@@ -329,11 +329,11 @@ __export(internal_exports, {
329
329
  bindAccessGrantsMethods: () => bindAccessGrantsMethods,
330
330
  bindActivityMethods: () => bindActivityMethods,
331
331
  bindAgentTasksMethods: () => bindAgentTasksMethods,
332
- bindAgentsMethods: () => bindAgentsMethods,
333
332
  bindAppLinksMethods: () => bindAppLinksMethods,
334
333
  bindAppsMethods: () => bindAppsMethods,
335
334
  bindAuthMethods: () => bindAuthMethods,
336
335
  bindBillingMethods: () => bindBillingMethods,
336
+ bindBotJobsMethods: () => bindBotJobsMethods,
337
337
  bindBundlesMethods: () => bindBundlesMethods,
338
338
  bindCalendarsMethods: () => bindCalendarsMethods,
339
339
  bindCallsMethods: () => bindCallsMethods,
@@ -638,7 +638,6 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
638
638
  MemberType2["ANONYMOUS"] = "anonymous";
639
639
  MemberType2["TEST"] = "test";
640
640
  MemberType2["MEMBER"] = "member";
641
- MemberType2["AGENT"] = "agent";
642
641
  MemberType2["BUSINESS"] = "business";
643
642
  return MemberType2;
644
643
  })(MemberType || {});
@@ -767,6 +766,8 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
767
766
  EventRuleActionType2["EMAIL_SEND"] = "email:send";
768
767
  EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
769
768
  EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
769
+ EventRuleActionType2["HUBSPOT_UPDATE_CONTACT_DEALS"] = "hubspot:update_contact_deals";
770
+ EventRuleActionType2["HUBSPOT_UPDATE_CONTACT_PROPERTIES"] = "hubspot:update_contact_properties";
770
771
  EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
771
772
  EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
772
773
  EventRuleActionType2["SMS_SEND"] = "sms:send";
@@ -1413,14 +1414,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1413
1414
  "viewedMemberTypes": [
1414
1415
  "anonymous",
1415
1416
  "test",
1416
- "member",
1417
- "agent"
1417
+ "member"
1418
1418
  ],
1419
1419
  "relatedMemberTypes": [
1420
1420
  "anonymous",
1421
1421
  "test",
1422
- "member",
1423
- "agent"
1422
+ "member"
1424
1423
  ]
1425
1424
  },
1426
1425
  {
@@ -1431,14 +1430,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1431
1430
  "viewedMemberTypes": [
1432
1431
  "anonymous",
1433
1432
  "test",
1434
- "member",
1435
- "agent"
1433
+ "member"
1436
1434
  ],
1437
1435
  "relatedMemberTypes": [
1438
1436
  "anonymous",
1439
1437
  "test",
1440
- "member",
1441
- "agent"
1438
+ "member"
1442
1439
  ]
1443
1440
  }
1444
1441
  ]
@@ -1457,14 +1454,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1457
1454
  "viewedMemberTypes": [
1458
1455
  "anonymous",
1459
1456
  "test",
1460
- "member",
1461
- "agent"
1457
+ "member"
1462
1458
  ],
1463
1459
  "relatedMemberTypes": [
1464
1460
  "anonymous",
1465
1461
  "test",
1466
- "member",
1467
- "agent"
1462
+ "member"
1468
1463
  ]
1469
1464
  }
1470
1465
  ]
@@ -1483,14 +1478,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1483
1478
  "viewedMemberTypes": [
1484
1479
  "anonymous",
1485
1480
  "test",
1486
- "member",
1487
- "agent"
1481
+ "member"
1488
1482
  ],
1489
1483
  "relatedMemberTypes": [
1490
1484
  "anonymous",
1491
1485
  "test",
1492
- "member",
1493
- "agent"
1486
+ "member"
1494
1487
  ]
1495
1488
  }
1496
1489
  ]
@@ -1509,14 +1502,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1509
1502
  "viewedMemberTypes": [
1510
1503
  "anonymous",
1511
1504
  "test",
1512
- "member",
1513
- "agent"
1505
+ "member"
1514
1506
  ],
1515
1507
  "relatedMemberTypes": [
1516
1508
  "anonymous",
1517
1509
  "test",
1518
- "member",
1519
- "agent"
1510
+ "member"
1520
1511
  ]
1521
1512
  },
1522
1513
  {
@@ -1527,14 +1518,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1527
1518
  "viewedMemberTypes": [
1528
1519
  "anonymous",
1529
1520
  "test",
1530
- "member",
1531
- "agent"
1521
+ "member"
1532
1522
  ],
1533
1523
  "relatedMemberTypes": [
1534
1524
  "anonymous",
1535
1525
  "test",
1536
- "member",
1537
- "agent"
1526
+ "member"
1538
1527
  ]
1539
1528
  }
1540
1529
  ]
@@ -1553,14 +1542,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1553
1542
  "viewedMemberTypes": [
1554
1543
  "anonymous",
1555
1544
  "test",
1556
- "member",
1557
- "agent"
1545
+ "member"
1558
1546
  ],
1559
1547
  "relatedMemberTypes": [
1560
1548
  "anonymous",
1561
1549
  "test",
1562
- "member",
1563
- "agent"
1550
+ "member"
1564
1551
  ]
1565
1552
  },
1566
1553
  {
@@ -1571,14 +1558,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1571
1558
  "viewedMemberTypes": [
1572
1559
  "anonymous",
1573
1560
  "test",
1574
- "member",
1575
- "agent"
1561
+ "member"
1576
1562
  ],
1577
1563
  "relatedMemberTypes": [
1578
1564
  "anonymous",
1579
1565
  "test",
1580
- "member",
1581
- "agent"
1566
+ "member"
1582
1567
  ]
1583
1568
  }
1584
1569
  ]
@@ -1597,14 +1582,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1597
1582
  "viewedMemberTypes": [
1598
1583
  "anonymous",
1599
1584
  "test",
1600
- "member",
1601
- "agent"
1585
+ "member"
1602
1586
  ],
1603
1587
  "relatedMemberTypes": [
1604
1588
  "anonymous",
1605
1589
  "test",
1606
- "member",
1607
- "agent"
1590
+ "member"
1608
1591
  ]
1609
1592
  },
1610
1593
  {
@@ -1615,14 +1598,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1615
1598
  "viewedMemberTypes": [
1616
1599
  "anonymous",
1617
1600
  "test",
1618
- "member",
1619
- "agent"
1601
+ "member"
1620
1602
  ],
1621
1603
  "relatedMemberTypes": [
1622
1604
  "anonymous",
1623
1605
  "test",
1624
- "member",
1625
- "agent"
1606
+ "member"
1626
1607
  ]
1627
1608
  }
1628
1609
  ]
@@ -1641,14 +1622,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1641
1622
  "viewedMemberTypes": [
1642
1623
  "anonymous",
1643
1624
  "test",
1644
- "member",
1645
- "agent"
1625
+ "member"
1646
1626
  ],
1647
1627
  "relatedMemberTypes": [
1648
1628
  "anonymous",
1649
1629
  "test",
1650
- "member",
1651
- "agent"
1630
+ "member"
1652
1631
  ]
1653
1632
  },
1654
1633
  {
@@ -1659,14 +1638,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1659
1638
  "viewedMemberTypes": [
1660
1639
  "anonymous",
1661
1640
  "test",
1662
- "member",
1663
- "agent"
1641
+ "member"
1664
1642
  ],
1665
1643
  "relatedMemberTypes": [
1666
1644
  "anonymous",
1667
1645
  "test",
1668
- "member",
1669
- "agent"
1646
+ "member"
1670
1647
  ]
1671
1648
  }
1672
1649
  ]
@@ -1685,14 +1662,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1685
1662
  "viewedMemberTypes": [
1686
1663
  "anonymous",
1687
1664
  "test",
1688
- "member",
1689
- "agent"
1665
+ "member"
1690
1666
  ],
1691
1667
  "relatedMemberTypes": [
1692
1668
  "anonymous",
1693
1669
  "test",
1694
- "member",
1695
- "agent"
1670
+ "member"
1696
1671
  ]
1697
1672
  },
1698
1673
  {
@@ -1703,14 +1678,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1703
1678
  "viewedMemberTypes": [
1704
1679
  "anonymous",
1705
1680
  "test",
1706
- "member",
1707
- "agent"
1681
+ "member"
1708
1682
  ],
1709
1683
  "relatedMemberTypes": [
1710
1684
  "anonymous",
1711
1685
  "test",
1712
- "member",
1713
- "agent"
1686
+ "member"
1714
1687
  ]
1715
1688
  }
1716
1689
  ]
@@ -1729,14 +1702,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1729
1702
  "viewedMemberTypes": [
1730
1703
  "anonymous",
1731
1704
  "test",
1732
- "member",
1733
- "agent"
1705
+ "member"
1734
1706
  ],
1735
1707
  "relatedMemberTypes": [
1736
1708
  "anonymous",
1737
1709
  "test",
1738
- "member",
1739
- "agent"
1710
+ "member"
1740
1711
  ]
1741
1712
  },
1742
1713
  {
@@ -1747,14 +1718,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1747
1718
  "viewedMemberTypes": [
1748
1719
  "anonymous",
1749
1720
  "test",
1750
- "member",
1751
- "agent"
1721
+ "member"
1752
1722
  ],
1753
1723
  "relatedMemberTypes": [
1754
1724
  "anonymous",
1755
1725
  "test",
1756
- "member",
1757
- "agent"
1726
+ "member"
1758
1727
  ]
1759
1728
  }
1760
1729
  ]
@@ -1773,14 +1742,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1773
1742
  "viewedMemberTypes": [
1774
1743
  "anonymous",
1775
1744
  "test",
1776
- "member",
1777
- "agent"
1745
+ "member"
1778
1746
  ],
1779
1747
  "relatedMemberTypes": [
1780
1748
  "anonymous",
1781
1749
  "test",
1782
- "member",
1783
- "agent"
1750
+ "member"
1784
1751
  ]
1785
1752
  },
1786
1753
  {
@@ -1791,14 +1758,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1791
1758
  "viewedMemberTypes": [
1792
1759
  "anonymous",
1793
1760
  "test",
1794
- "member",
1795
- "agent"
1761
+ "member"
1796
1762
  ],
1797
1763
  "relatedMemberTypes": [
1798
1764
  "anonymous",
1799
1765
  "test",
1800
- "member",
1801
- "agent"
1766
+ "member"
1802
1767
  ]
1803
1768
  }
1804
1769
  ]
@@ -1817,14 +1782,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1817
1782
  "viewedMemberTypes": [
1818
1783
  "anonymous",
1819
1784
  "test",
1820
- "member",
1821
- "agent"
1785
+ "member"
1822
1786
  ],
1823
1787
  "relatedMemberTypes": [
1824
1788
  "anonymous",
1825
1789
  "test",
1826
- "member",
1827
- "agent"
1790
+ "member"
1828
1791
  ]
1829
1792
  },
1830
1793
  {
@@ -1835,14 +1798,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
1835
1798
  "viewedMemberTypes": [
1836
1799
  "anonymous",
1837
1800
  "test",
1838
- "member",
1839
- "agent"
1801
+ "member"
1840
1802
  ],
1841
1803
  "relatedMemberTypes": [
1842
1804
  "anonymous",
1843
1805
  "test",
1844
- "member",
1845
- "agent"
1806
+ "member"
1846
1807
  ]
1847
1808
  }
1848
1809
  ]
@@ -2539,7 +2500,6 @@ var FileAuthorKind = {
2539
2500
  };
2540
2501
  var FileKind = {
2541
2502
  FILE: "FILE",
2542
- MEMORY: "MEMORY",
2543
2503
  SKILL: "SKILL"
2544
2504
  };
2545
2505
  var FileOrder = {
@@ -2574,7 +2534,10 @@ var FolderRoot = {
2574
2534
  HOME: "HOME",
2575
2535
  MEMORY: "MEMORY",
2576
2536
  SITE: "SITE",
2577
- WORKFLOW: "WORKFLOW"
2537
+ WORKFLOW: "WORKFLOW",
2538
+ BOT: "BOT",
2539
+ ME: "ME",
2540
+ AUDIENCE: "AUDIENCE"
2578
2541
  };
2579
2542
  var FolderView = {
2580
2543
  BASIC: "BASIC",
@@ -4831,8 +4794,6 @@ var AgentTasksApi = class extends BaseApiClient {
4831
4794
  async getAgentTasks(wid, params) {
4832
4795
  const searchParams = new URLSearchParams();
4833
4796
  if (params?.status) searchParams.set("status", params.status);
4834
- if (params?.agentMemberId != null)
4835
- searchParams.set("agent_member_id", String(params.agentMemberId));
4836
4797
  if (params?.parentTaskId != null)
4837
4798
  searchParams.set("parent_task_id", String(params.parentTaskId));
4838
4799
  if (params?.limit != null) searchParams.set("limit", String(params.limit));
@@ -4857,82 +4818,6 @@ var AgentTasksApi = class extends BaseApiClient {
4857
4818
  }
4858
4819
  };
4859
4820
 
4860
- // src/api/agents.ts
4861
- var AgentsApi = class extends BaseApiClient {
4862
- orgAgentJobsPath(orgUuid, agentUuid) {
4863
- return `o/${encodeURIComponent(orgUuid)}/agents/${encodeURIComponent(agentUuid)}/jobs`;
4864
- }
4865
- /** List the current organization's teammate's operational Agent Jobs. */
4866
- async getOrgAgentJobs(orgUuid, agentUuid, options = {}) {
4867
- const params = new URLSearchParams();
4868
- if (options.before) params.set("before", options.before);
4869
- if (options.limit !== void 0) params.set("limit", String(options.limit));
4870
- if (options.status) params.set("status", options.status);
4871
- const search = params.toString();
4872
- return this.fetch(
4873
- `${this.orgAgentJobsPath(orgUuid, agentUuid)}${search ? `?${search}` : ""}`
4874
- );
4875
- }
4876
- /** Stop one of the current teammate's Jobs and its active descendants. */
4877
- async stopOrgAgentJob(orgUuid, agentUuid, jobUuid) {
4878
- return this.fetch(
4879
- `${this.orgAgentJobsPath(orgUuid, agentUuid)}/${encodeURIComponent(jobUuid)}/stop`,
4880
- { method: "POST", body: JSON.stringify({}) }
4881
- );
4882
- }
4883
- /** List agents in a workspace with optional pagination, sorting, and search. */
4884
- async getAgents(wid, options = {}) {
4885
- const params = new URLSearchParams();
4886
- if (options.page) params.append("page", options.page.toString());
4887
- if (options.pageSize) params.append("pageSize", options.pageSize.toString());
4888
- if (options.sortBy) params.append("sortBy", options.sortBy);
4889
- if (options.sortOrder) params.append("sortOrder", options.sortOrder);
4890
- if (options.search) params.append("search", options.search);
4891
- if (options.includeArchived)
4892
- params.append("includeArchived", options.includeArchived.toString());
4893
- return this.fetch(
4894
- `w/${wid}/agents${params.toString() ? `?${params.toString()}` : ""}`
4895
- );
4896
- }
4897
- /** Get a single agent by ID. */
4898
- async getAgent(wid, id) {
4899
- return this.fetch(`w/${wid}/agents/${id}`);
4900
- }
4901
- /** Create a new agent in a workspace. */
4902
- async createAgent(wid, agent) {
4903
- return this.fetch(`w/${wid}/agents`, {
4904
- method: "POST",
4905
- body: JSON.stringify(agent)
4906
- });
4907
- }
4908
- /** Update an existing agent. */
4909
- async updateAgent(wid, id, agent) {
4910
- return this.fetch(`w/${wid}/agents/${id}`, {
4911
- method: "PUT",
4912
- body: JSON.stringify(agent)
4913
- });
4914
- }
4915
- /** Delete an agent by ID, optionally forcing deletion of agents with active references. */
4916
- async deleteAgent(wid, id, force) {
4917
- const params = force ? "?force=true" : "";
4918
- return this.fetch(`w/${wid}/agents/${id}${params}`, {
4919
- method: "DELETE"
4920
- });
4921
- }
4922
- /** Archive an agent, hiding it from default listings. */
4923
- async archiveAgent(wid, id) {
4924
- return this.fetch(`w/${wid}/agents/${id}/archive`, {
4925
- method: "POST"
4926
- });
4927
- }
4928
- /** Restore an archived agent back to active status. */
4929
- async unarchiveAgent(wid, id) {
4930
- return this.fetch(`w/${wid}/agents/${id}/unarchive`, {
4931
- method: "POST"
4932
- });
4933
- }
4934
- };
4935
-
4936
4821
  // src/api/ai-models.ts
4937
4822
  var AIModelsApi = class extends BaseApiClient {
4938
4823
  /**
@@ -5250,7 +5135,7 @@ var AssignmentsApi = class extends BaseApiClient {
5250
5135
  var VoiceApi = class extends BaseApiClient {
5251
5136
  /** Generate a text-to-speech audio preview for a given voice model. */
5252
5137
  async previewTTS(wid, request) {
5253
- const response = await this.fetchRaw(`w/${wid}/agents/tts-preview`, {
5138
+ const response = await this.fetchRaw(`w/${wid}/voice/tts-preview`, {
5254
5139
  method: "POST",
5255
5140
  headers: {
5256
5141
  "Content-Type": "application/json"
@@ -5261,7 +5146,7 @@ var VoiceApi = class extends BaseApiClient {
5261
5146
  }
5262
5147
  /** Generate a thinking sound audio preview. */
5263
5148
  async previewThinkingSound(wid, request) {
5264
- const response = await this.fetchRaw(`w/${wid}/agents/thinking-sound-preview`, {
5149
+ const response = await this.fetchRaw(`w/${wid}/voice/thinking-sound-preview`, {
5265
5150
  method: "POST",
5266
5151
  headers: {
5267
5152
  "Content-Type": "application/json"
@@ -6201,6 +6086,29 @@ var ChatsApi = class extends BaseApiClient {
6201
6086
  `w/${wid}/chats${queryString ? `?${queryString}` : ""}`
6202
6087
  );
6203
6088
  }
6089
+ /**
6090
+ * Chats across the Workspaces an Operator Tools widget session signed in
6091
+ * for this organization shows, in queue order: waiting Chats first, longest
6092
+ * wait first, then the rest by most recent message. Each row names its
6093
+ * Workspace. `requiredScopes` leaves out every Workspace where the caller
6094
+ * lacks one of the view's scopes. Answers only to a widget session.
6095
+ */
6096
+ async queryOrgChats(orgUuid, request) {
6097
+ return this.fetch(`o/${orgUuid}/chats/query`, {
6098
+ method: "POST",
6099
+ body: JSON.stringify({ ...request, countOnly: false })
6100
+ });
6101
+ }
6102
+ /**
6103
+ * How many Chats match the same organization read, without returning any
6104
+ * Chat, Workspace or Member. Answers only to a widget session.
6105
+ */
6106
+ async countOrgChats(orgUuid, request) {
6107
+ return this.fetch(`o/${orgUuid}/chats/query`, {
6108
+ method: "POST",
6109
+ body: JSON.stringify({ ...request, countOnly: true })
6110
+ });
6111
+ }
6204
6112
  /** Export multiple chats as a downloadable blob. */
6205
6113
  async exportChats(wid, options = {}) {
6206
6114
  const params = this.buildChatsQueryParams(options, false);
@@ -6419,11 +6327,9 @@ var ChatsApi = class extends BaseApiClient {
6419
6327
  }
6420
6328
  /** Create a new chat. */
6421
6329
  async createChat(wid, chat) {
6422
- const { agentMemberId, ...rest } = chat;
6423
- const payload = agentMemberId !== void 0 && rest.assistantMemberId === void 0 ? { ...rest, assistantMemberId: agentMemberId } : rest;
6424
6330
  return this.fetch(`w/${wid}/chats`, {
6425
6331
  method: "POST",
6426
- body: JSON.stringify(payload)
6332
+ body: JSON.stringify(chat)
6427
6333
  });
6428
6334
  }
6429
6335
  /**
@@ -7480,7 +7386,6 @@ var SlackAppsApi = class extends BaseApiClient {
7480
7386
  if (options.sortBy) params.append("sortBy", options.sortBy);
7481
7387
  if (options.sortOrder) params.append("sortOrder", options.sortOrder);
7482
7388
  if (options.search) params.append("search", options.search);
7483
- if (options.agentId !== void 0) params.set("agentId", String(options.agentId));
7484
7389
  if (options.workflowId !== void 0) params.set("workflowId", String(options.workflowId));
7485
7390
  if (options.managed !== void 0) params.set("managed", String(options.managed));
7486
7391
  return this.fetch(
@@ -7610,14 +7515,6 @@ var TeamsAppsApi = class extends BaseApiClient {
7610
7515
  `w/${wid}/app-connections/teams/apps/${appId}/installations${params.toString() ? `?${params.toString()}` : ""}`
7611
7516
  );
7612
7517
  }
7613
- /**
7614
- * The organization Bot Teams connection that delivers this workspace's
7615
- * notifications, the connections it may choose, and the caller's own
7616
- * readiness. Reads only; nothing is sent to Microsoft.
7617
- */
7618
- async getTeamsNotificationDelivery(wid) {
7619
- return this.fetch(`w/${wid}/notification-delivery/teams`);
7620
- }
7621
7518
  async getTeamsAppAccounts(wid, appId, options = {}) {
7622
7519
  const params = new URLSearchParams();
7623
7520
  if (options.page) params.append("page", options.page.toString());
@@ -7747,8 +7644,6 @@ var EventsApi = class extends BaseApiClient {
7747
7644
  if (options.sortOrder) params.append("sortOrder", options.sortOrder);
7748
7645
  if (options.owner) params.append("owner", options.owner);
7749
7646
  if (options.ownerId) params.append("ownerId", options.ownerId.toString());
7750
- if (options.agentId) params.append("agentId", options.agentId.toString());
7751
- if (options.agentOnly) params.append("agentOnly", "true");
7752
7647
  return this.fetch(
7753
7648
  `w/${wid}/routines${params.toString() ? `?${params.toString()}` : ""}`
7754
7649
  );
@@ -8884,6 +8779,16 @@ var InboxesApi = class extends BaseApiClient {
8884
8779
  async getInbox(wid, id) {
8885
8780
  return this.fetch(`w/${wid}/inboxes/${id}`);
8886
8781
  }
8782
+ /**
8783
+ * List the Inboxes a new email Chat can be sent from (`chats:write`).
8784
+ *
8785
+ * Only Inboxes the Member can see that can send now, as `id`, `name` and
8786
+ * `emailAddress`. `POST /chats` refuses an `inboxId` this list would not
8787
+ * offer.
8788
+ */
8789
+ async getChatSenderInboxes(wid) {
8790
+ return this.fetch(`w/${wid}/inboxes/chat-senders`);
8791
+ }
8887
8792
  /** Create a new inbox. */
8888
8793
  async createInbox(wid, inbox) {
8889
8794
  return this.fetch(`w/${wid}/inboxes`, {
@@ -9551,6 +9456,17 @@ var MembersApi = class extends BaseApiClient {
9551
9456
  `o/${orgUuid}/activity/workspaces/${workspaceUuid}/members/${memberId}`
9552
9457
  );
9553
9458
  }
9459
+ /**
9460
+ * Members across the Workspaces an Operator Tools widget session signed in
9461
+ * for this organization shows, up to 20, each naming its Workspace. The
9462
+ * search text travels in the body. Answers only to a widget session.
9463
+ */
9464
+ async searchOrgWorkspaceMembers(orgUuid, request) {
9465
+ return this.fetch(
9466
+ `o/${orgUuid}/workspace-members/search`,
9467
+ { method: "POST", body: JSON.stringify(request) }
9468
+ );
9469
+ }
9554
9470
  /** Create a new workspace member. */
9555
9471
  async createWorkspaceMember(wid, data) {
9556
9472
  return this.fetch(`w/${wid}/members`, {
@@ -10335,6 +10251,14 @@ var ActivityApi = class extends BaseApiClient {
10335
10251
  body: JSON.stringify(request)
10336
10252
  });
10337
10253
  }
10254
+ /**
10255
+ * The Workspaces an Operator Tools widget session signed in for this
10256
+ * organization reaches, as `{uuid, name}` pairs for its Workspace labels.
10257
+ * Answers only to a widget session; `[]` when it reaches none.
10258
+ */
10259
+ async listOrgWidgetWorkspaces(orgUuid) {
10260
+ return this.fetch(`o/${orgUuid}/widget-workspaces`, { method: "GET" });
10261
+ }
10338
10262
  /** The org mount's badge numbers. */
10339
10263
  async getOrgActivityCounts(orgUuid, request = {}) {
10340
10264
  return this.fetch(`o/${orgUuid}/activity/counts`, {
@@ -10758,14 +10682,25 @@ var NotificationRulesApi = class extends BaseApiClient {
10758
10682
  });
10759
10683
  }
10760
10684
  /**
10761
- * Approved, available shared destinations (Teams channels) a notification
10762
- * rule or Action may name. Choosing one never grants approval.
10685
+ * Approved, available shared destinations (Teams and Slack channels) a
10686
+ * notification rule or Action may name. Choosing one never grants approval.
10763
10687
  */
10764
10688
  async getNotificationDestinations(wid) {
10765
10689
  return this.fetch(
10766
10690
  `w/${wid}/notification-destinations`
10767
10691
  );
10768
10692
  }
10693
+ /**
10694
+ * The organization Bot connection that delivers this workspace's
10695
+ * notifications on one provider (`teams` or `slack`), the connections it
10696
+ * may choose, and the caller's own readiness. Reads only; nothing is sent
10697
+ * to the provider.
10698
+ */
10699
+ async getNotificationDelivery(wid, provider) {
10700
+ return this.fetch(
10701
+ `w/${wid}/notification-delivery/${provider}`
10702
+ );
10703
+ }
10769
10704
  /** Delete a notification rule. */
10770
10705
  async deleteNotificationRule(wid, ruleId) {
10771
10706
  return this.fetch(`w/${wid}/notification-rules/${ruleId}`, {
@@ -10832,11 +10767,16 @@ var OperatorApi = class extends BaseApiClient {
10832
10767
  `w/${wid}/operator/chats/${chatId}/messages?limit=${limit}&offset=${offset}`
10833
10768
  );
10834
10769
  }
10835
- /** Send a message in an operator chat. */
10836
- async sendOperatorMessage(wid, chatId, content) {
10770
+ /**
10771
+ * Send a message in an operator chat.
10772
+ *
10773
+ * `subject` applies to an email Chat only: required while the Chat holds no
10774
+ * linked Email (`operatorReplyNeedsSubject`), refused once it holds one.
10775
+ */
10776
+ async sendOperatorMessage(wid, chatId, content, subject) {
10837
10777
  return this.fetch(`w/${wid}/operator/chats/${chatId}/messages`, {
10838
10778
  method: "POST",
10839
- body: JSON.stringify({ content })
10779
+ body: JSON.stringify(subject === void 0 ? { content } : { content, subject })
10840
10780
  });
10841
10781
  }
10842
10782
  };
@@ -11647,6 +11587,35 @@ var OrgApi = class extends BaseApiClient {
11647
11587
  async getLegalEntity(orgUuid, legalEntityUuid) {
11648
11588
  return this.fetch(`o/${orgUuid}/legal-entities/${legalEntityUuid}`);
11649
11589
  }
11590
+ /** The columns a business CSV import reads, and the row and size limits on its file. */
11591
+ async getBusinessImportColumns(orgUuid) {
11592
+ return this.fetch(
11593
+ `o/${orgUuid}/legal-entities/import/columns`
11594
+ );
11595
+ }
11596
+ /** The business import template: CSV text whose only row is the header. */
11597
+ async getBusinessImportTemplate(orgUuid) {
11598
+ const response = await this.fetchRaw(`o/${orgUuid}/legal-entities/import/template`);
11599
+ return response.text();
11600
+ }
11601
+ /** Classify each row of a business CSV without writing; returns the token its import needs. */
11602
+ async previewBusinessImport(orgUuid, file) {
11603
+ return this.fetch(
11604
+ `o/${orgUuid}/legal-entities/import/preview`,
11605
+ { method: "POST", body: businessImportUpload(file) }
11606
+ );
11607
+ }
11608
+ /** Import a business CSV; without a `previewPlanToken` it previews the file first. */
11609
+ async importBusinesses(orgUuid, file, previewPlanToken) {
11610
+ const token = previewPlanToken ?? (await this.previewBusinessImport(orgUuid, file)).previewPlanToken;
11611
+ if (!token) throw new Error("The business import preview returned no plan token");
11612
+ const body = businessImportUpload(file);
11613
+ body.append("previewPlanToken", token);
11614
+ return this.fetch(`o/${orgUuid}/legal-entities/import`, {
11615
+ method: "POST",
11616
+ body
11617
+ });
11618
+ }
11650
11619
  /**
11651
11620
  * Read one registration draft for a legal entity.
11652
11621
  *
@@ -12194,10 +12163,41 @@ var OrgApi = class extends BaseApiClient {
12194
12163
  function businessProfilePath(orgUuid, legalEntityUuid) {
12195
12164
  return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
12196
12165
  }
12166
+ function businessImportUpload(file) {
12167
+ const body = new FormData();
12168
+ const name = "name" in file && typeof file.name === "string" ? file.name : "businesses.csv";
12169
+ body.append("file", file, name);
12170
+ return body;
12171
+ }
12197
12172
  function campaignQuery(options) {
12198
12173
  return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
12199
12174
  }
12200
12175
 
12176
+ // src/api/bot-jobs.ts
12177
+ var BotJobsApi = class extends BaseApiClient {
12178
+ botJobsPath(orgUuid, agentUuid) {
12179
+ return `o/${encodeURIComponent(orgUuid)}/agents/${encodeURIComponent(agentUuid)}/jobs`;
12180
+ }
12181
+ /** List the organization Bot's operational Jobs. */
12182
+ async getBotJobs(orgUuid, agentUuid, options = {}) {
12183
+ const params = new URLSearchParams();
12184
+ if (options.before) params.set("before", options.before);
12185
+ if (options.limit !== void 0) params.set("limit", String(options.limit));
12186
+ if (options.status) params.set("status", options.status);
12187
+ const search = params.toString();
12188
+ return this.fetch(
12189
+ `${this.botJobsPath(orgUuid, agentUuid)}${search ? `?${search}` : ""}`
12190
+ );
12191
+ }
12192
+ /** Stop one of the organization Bot's Jobs and its active descendants. */
12193
+ async stopBotJob(orgUuid, agentUuid, jobUuid) {
12194
+ return this.fetch(
12195
+ `${this.botJobsPath(orgUuid, agentUuid)}/${encodeURIComponent(jobUuid)}/stop`,
12196
+ { method: "POST", body: JSON.stringify({}) }
12197
+ );
12198
+ }
12199
+ };
12200
+
12201
12201
  // src/api/oauth.ts
12202
12202
  function getOAuthPath(providerSlug, action) {
12203
12203
  if (providerSlug === "google_calendar") {
@@ -12343,9 +12343,10 @@ var PhoneNumbersApi = class extends BaseApiClient {
12343
12343
  * The numbers a Chat can be started from, for a Member with `chats:write`.
12344
12344
  *
12345
12345
  * Every non-archived workspace number in a slim shape (`id`, `number`,
12346
- * `name`, `isMapped`, `enableWhatsApp`) — no phone administration data, so
12347
- * it needs no `phones:read`. A row describes configuration, not permission
12348
- * to send.
12346
+ * `name`, `isMapped`, `enableWhatsApp`, `isWorkspaceDefault`, and whether
12347
+ * it can send SMS now, `canSendSms`, or place a call now, `canPlaceCall`)
12348
+ * — no phone administration data, so it needs no `phones:read`. A row
12349
+ * describes the number, not permission to send.
12349
12350
  */
12350
12351
  async getChatPhoneNumbers(wid) {
12351
12352
  return this.fetch(`w/${wid}/phone-numbers/chat-senders`);
@@ -12444,6 +12445,10 @@ var PhoneNumbersApi = class extends BaseApiClient {
12444
12445
  `w/${wid}/phone-numbers/${id}/voicemails?${params}`
12445
12446
  );
12446
12447
  }
12448
+ /** Fetch one authorized voicemail by uuid. */
12449
+ async getVoicemailByUuid(wid, uuid) {
12450
+ return this.fetch(`w/${wid}/voicemails/by-uuid/${encodeURIComponent(uuid)}`);
12451
+ }
12447
12452
  /** Fetch voicemail audio through the authenticated client path. */
12448
12453
  async fetchVoicemailAudio(wid, phoneNumberId, voicemailId) {
12449
12454
  const response = await this.fetchRaw(
@@ -13875,6 +13880,12 @@ var HubspotApi = class extends BaseApiClient {
13875
13880
  `w/${wid}/app-connections/hubspot/sync-settings/hs-properties?objectType=deals`
13876
13881
  );
13877
13882
  }
13883
+ /** The portal's active deal pipelines with their active stages. */
13884
+ async getHubspotDealPipelines(wid) {
13885
+ return this.fetch(
13886
+ `w/${wid}/app-connections/hubspot/sync-settings/deal-pipelines`
13887
+ );
13888
+ }
13878
13889
  /** The portal's Meetings booking links, or `missing_scope` without the scheduler scope. */
13879
13890
  async getHubspotMeetingLinks(wid) {
13880
13891
  return this.fetch(
@@ -14091,15 +14102,21 @@ var SitesApi = class extends BaseApiClient {
14091
14102
  /**
14092
14103
  * Get a theme's settings schema, the site's saved values, and capabilities.
14093
14104
  * Pass `theme` to resolve the schema for a theme other than the saved one
14094
- * (e.g. one the builder has selected but not yet saved).
14105
+ * (e.g. one the builder has selected but not yet saved). Pass `resolved: true` to
14106
+ * also receive `resolvedValues`, the saved theme's values as its render resolves them.
14095
14107
  */
14096
- async getThemeSettings(wid, siteId, theme) {
14097
- const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
14108
+ async getThemeSettings(wid, siteId, theme, options) {
14109
+ const params = new URLSearchParams();
14110
+ if (theme) params.set("theme", theme);
14111
+ if (options?.resolved) params.set("resolved", "true");
14112
+ const search = params.toString();
14113
+ const query2 = search ? `?${search}` : "";
14098
14114
  return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
14099
14115
  }
14100
- /** Save values for the active theme's settings (validated against the schema). */
14101
- async updateThemeSettings(wid, siteId, values) {
14102
- return this.fetch(`w/${wid}/sites/${siteId}/theme-settings`, {
14116
+ /** Save values for the active theme's settings (validated against the schema). Pass `resolved: true` to also receive `resolvedValues`. */
14117
+ async updateThemeSettings(wid, siteId, values, options) {
14118
+ const query2 = options?.resolved ? "?resolved=true" : "";
14119
+ return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`, {
14103
14120
  method: "PUT",
14104
14121
  body: JSON.stringify({ values })
14105
14122
  });
@@ -16775,7 +16792,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
16775
16792
  abilities: new AbilitiesApi(apiKey, baseUrl, customFetch),
16776
16793
  accessGrants: new AccessGrantsApi(apiKey, baseUrl, customFetch),
16777
16794
  agentTasks: new AgentTasksApi(apiKey, baseUrl, customFetch),
16778
- agents: new AgentsApi(apiKey, baseUrl, customFetch),
16795
+ botJobs: new BotJobsApi(apiKey, baseUrl, customFetch),
16779
16796
  aiModels: new AIModelsApi(apiKey, baseUrl, customFetch),
16780
16797
  apiKeys: new ApiKeysApi(apiKey, baseUrl, customFetch),
16781
16798
  appLinks: new AppLinksApi(apiKey, baseUrl, customFetch),
@@ -16864,7 +16881,6 @@ var WORKSPACE_METHOD_NAMES = [
16864
16881
  "addWorkspaceSupportRequestParticipants",
16865
16882
  "advanceStep",
16866
16883
  "approveWorkspaceInvitation",
16867
- "archiveAgent",
16868
16884
  "archiveChat",
16869
16885
  "archiveDataType",
16870
16886
  "archiveJourney",
@@ -16920,7 +16936,6 @@ var WORKSPACE_METHOD_NAMES = [
16920
16936
  "convertFile",
16921
16937
  "createAbility",
16922
16938
  "createAccessGrant",
16923
- "createAgent",
16924
16939
  "createApiKey",
16925
16940
  "createAssignment",
16926
16941
  "bindInstallationSlots",
@@ -17003,7 +17018,6 @@ var WORKSPACE_METHOD_NAMES = [
17003
17018
  "createWorkspaceRealtimeLoginToken",
17004
17019
  "createWorkspaceSupportRequest",
17005
17020
  "deleteAbility",
17006
- "deleteAgent",
17007
17021
  "deleteAssignment",
17008
17022
  "deleteCalendar",
17009
17023
  "deleteCalendarEvent",
@@ -17109,6 +17123,7 @@ var WORKSPACE_METHOD_NAMES = [
17109
17123
  "exportWorkspace",
17110
17124
  "exportWorkspaceZip",
17111
17125
  "fetchVoicemailAudio",
17126
+ "getVoicemailByUuid",
17112
17127
  "fhirBackfillEncounterSync",
17113
17128
  "fhirCheckPatientLinks",
17114
17129
  "fhirCreateEncounter",
@@ -17142,12 +17157,10 @@ var WORKSPACE_METHOD_NAMES = [
17142
17157
  "getAbilityTypes",
17143
17158
  "getAccessGrant",
17144
17159
  "getAccessGrants",
17145
- "getAgent",
17146
17160
  "getAgentModeAttention",
17147
17161
  "getAgentTask",
17148
17162
  "getAgentTaskMessages",
17149
17163
  "getAgentTasks",
17150
- "getAgents",
17151
17164
  "getAnonymousResolution",
17152
17165
  "getAnonymousFormSubmission",
17153
17166
  "getAnonymousFormSchema",
@@ -17347,6 +17360,7 @@ var WORKSPACE_METHOD_NAMES = [
17347
17360
  "getPatientSyncStatus",
17348
17361
  "getHubspotContactProperties",
17349
17362
  "getHubspotDealProperties",
17363
+ "getHubspotDealPipelines",
17350
17364
  "getHubspotForms",
17351
17365
  "getHubspotMeetingLinks",
17352
17366
  "getHubspotCrmObjects",
@@ -17366,6 +17380,7 @@ var WORKSPACE_METHOD_NAMES = [
17366
17380
  "getImportReadiness",
17367
17381
  "rebuildImportSkippedRules",
17368
17382
  "getInbox",
17383
+ "getChatSenderInboxes",
17369
17384
  "getInboxEmail",
17370
17385
  "getInboxEmails",
17371
17386
  "getInboxArchiveBlockers",
@@ -17430,6 +17445,7 @@ var WORKSPACE_METHOD_NAMES = [
17430
17445
  "getMyGivenGrants",
17431
17446
  "getMyReceivedGrants",
17432
17447
  "getNotification",
17448
+ "getNotificationDelivery",
17433
17449
  "getNotificationDestinations",
17434
17450
  "getNotificationRules",
17435
17451
  "getNotifications",
@@ -17514,7 +17530,6 @@ var WORKSPACE_METHOD_NAMES = [
17514
17530
  "getTeamsApps",
17515
17531
  "getTeamsConversations",
17516
17532
  "getTeamsInstallations",
17517
- "getTeamsNotificationDelivery",
17518
17533
  "getTemplateContext",
17519
17534
  "getChatTestRun",
17520
17535
  "getTestChatRun",
@@ -17743,7 +17758,6 @@ var WORKSPACE_METHOD_NAMES = [
17743
17758
  "simulateJourney",
17744
17759
  "testRunJourney",
17745
17760
  "toggleFieldIndex",
17746
- "unarchiveAgent",
17747
17761
  "unarchiveChat",
17748
17762
  "unarchiveDataType",
17749
17763
  "unarchiveMember",
@@ -17762,7 +17776,6 @@ var WORKSPACE_METHOD_NAMES = [
17762
17776
  "unlinkMemberFromSalesforce",
17763
17777
  "unregisterPushSubscription",
17764
17778
  "updateAbility",
17765
- "updateAgent",
17766
17779
  "updateAssignment",
17767
17780
  "updateCalendar",
17768
17781
  "updateCalendarEvent",
@@ -17910,17 +17923,10 @@ function bindAgentTasksMethods(target, api) {
17910
17923
  target.getAgentTaskMessages = api.getAgentTaskMessages.bind(api);
17911
17924
  }
17912
17925
 
17913
- // src/client/bindings/agents.ts
17914
- function bindAgentsMethods(target, agents) {
17915
- target.getAgents = agents.getAgents.bind(agents);
17916
- target.getAgent = agents.getAgent.bind(agents);
17917
- target.createAgent = agents.createAgent.bind(agents);
17918
- target.updateAgent = agents.updateAgent.bind(agents);
17919
- target.deleteAgent = agents.deleteAgent.bind(agents);
17920
- target.archiveAgent = agents.archiveAgent.bind(agents);
17921
- target.unarchiveAgent = agents.unarchiveAgent.bind(agents);
17922
- target.getOrgAgentJobs = agents.getOrgAgentJobs.bind(agents);
17923
- target.stopOrgAgentJob = agents.stopOrgAgentJob.bind(agents);
17926
+ // src/client/bindings/bot-jobs.ts
17927
+ function bindBotJobsMethods(target, botJobs) {
17928
+ target.getBotJobs = botJobs.getBotJobs.bind(botJobs);
17929
+ target.stopBotJob = botJobs.stopBotJob.bind(botJobs);
17924
17930
  }
17925
17931
 
17926
17932
  // src/client/bindings/tasks.ts
@@ -17949,6 +17955,8 @@ function bindChatsMethods(target, chats) {
17949
17955
  target.createChatInteractionSession = chats.createChatInteractionSession.bind(chats);
17950
17956
  target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
17951
17957
  target.getChats = chats.getChats.bind(chats);
17958
+ target.queryOrgChats = chats.queryOrgChats.bind(chats);
17959
+ target.countOrgChats = chats.countOrgChats.bind(chats);
17952
17960
  target.getChat = chats.getChat.bind(chats);
17953
17961
  target.getChatAttention = chats.getChatAttention.bind(chats);
17954
17962
  target.getChatByUuid = chats.getChatByUuid.bind(chats);
@@ -18052,6 +18060,7 @@ function bindActivityMethods(target, activity) {
18052
18060
  target.queryOrgActivityOneView = activity.queryOrgActivityOneView.bind(activity);
18053
18061
  target.queryOrgActivityDigest = activity.queryOrgActivityDigest.bind(activity);
18054
18062
  target.getOrgActivityCounts = activity.getOrgActivityCounts.bind(activity);
18063
+ target.listOrgWidgetWorkspaces = activity.listOrgWidgetWorkspaces.bind(activity);
18055
18064
  target.queryWorkspaceActivity = activity.queryWorkspaceActivity.bind(activity);
18056
18065
  target.queryWorkspaceActivityLatestSubjects = activity.queryWorkspaceActivityLatestSubjects.bind(activity);
18057
18066
  target.queryWorkspaceActivityOpenItems = activity.queryWorkspaceActivityOpenItems.bind(activity);
@@ -18146,6 +18155,7 @@ function bindMembersMethods(target, members) {
18146
18155
  target.getMemberSmsSenders = members.getMemberSmsSenders.bind(members);
18147
18156
  target.getMemberByUuid = members.getMemberByUuid.bind(members);
18148
18157
  target.getOrgWorkspaceMember = members.getOrgWorkspaceMember.bind(members);
18158
+ target.searchOrgWorkspaceMembers = members.searchOrgWorkspaceMembers.bind(members);
18149
18159
  target.createWorkspaceMember = members.createWorkspaceMember.bind(members);
18150
18160
  target.updateMember = members.updateMember.bind(members);
18151
18161
  target.deleteMember = members.deleteMember.bind(members);
@@ -18618,6 +18628,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
18618
18628
  target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
18619
18629
  target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
18620
18630
  target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
18631
+ target.getVoicemailByUuid = phoneNumbers.getVoicemailByUuid.bind(phoneNumbers);
18621
18632
  target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
18622
18633
  target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
18623
18634
  target.releasePhoneNumber = phoneNumbers.releasePhoneNumber.bind(phoneNumbers);
@@ -18625,6 +18636,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
18625
18636
  target.linkPhoneNumber = phoneNumbers.linkPhoneNumber.bind(phoneNumbers);
18626
18637
  target.getInboxes = inboxes.getInboxes.bind(inboxes);
18627
18638
  target.getInbox = inboxes.getInbox.bind(inboxes);
18639
+ target.getChatSenderInboxes = inboxes.getChatSenderInboxes.bind(inboxes);
18628
18640
  target.createInbox = inboxes.createInbox.bind(inboxes);
18629
18641
  target.updateInbox = inboxes.updateInbox.bind(inboxes);
18630
18642
  target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
@@ -18650,6 +18662,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
18650
18662
  target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
18651
18663
  target.deleteNotificationRule = notificationRules.deleteNotificationRule.bind(notificationRules);
18652
18664
  target.getNotificationDestinations = notificationRules.getNotificationDestinations.bind(notificationRules);
18665
+ target.getNotificationDelivery = notificationRules.getNotificationDelivery.bind(notificationRules);
18653
18666
  }
18654
18667
 
18655
18668
  // src/client/bindings/toolkits.ts
@@ -18839,8 +18852,7 @@ function createIntegrationsBindings(apis) {
18839
18852
  "deleteTeamsApp",
18840
18853
  "getTeamsConversations",
18841
18854
  "getTeamsInstallations",
18842
- "getTeamsAppAccounts",
18843
- "getTeamsNotificationDelivery"
18855
+ "getTeamsAppAccounts"
18844
18856
  ]),
18845
18857
  ...bindMethods(apis.fhirConnections, [
18846
18858
  "getFhirConnections",
@@ -18977,6 +18989,7 @@ function createIntegrationsBindings(apis) {
18977
18989
  "importHubspotMembers",
18978
18990
  "getHubspotContactProperties",
18979
18991
  "getHubspotDealProperties",
18992
+ "getHubspotDealPipelines",
18980
18993
  "getHubspotForms",
18981
18994
  "getHubspotMeetingLinks",
18982
18995
  "getHubspotCrmObjects",
@@ -19071,6 +19084,10 @@ function bindOrgMethods(target, org) {
19071
19084
  target.listLegalEntities = org.listLegalEntities.bind(org);
19072
19085
  target.getLegalEntity = org.getLegalEntity.bind(org);
19073
19086
  target.createLegalEntity = org.createLegalEntity.bind(org);
19087
+ target.getBusinessImportColumns = org.getBusinessImportColumns.bind(org);
19088
+ target.getBusinessImportTemplate = org.getBusinessImportTemplate.bind(org);
19089
+ target.previewBusinessImport = org.previewBusinessImport.bind(org);
19090
+ target.importBusinesses = org.importBusinesses.bind(org);
19074
19091
  target.getRegistrationDraft = org.getRegistrationDraft.bind(org);
19075
19092
  target.saveRegistrationDraft = org.saveRegistrationDraft.bind(org);
19076
19093
  target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
@@ -19397,6 +19414,8 @@ var GravityRailClient = class {
19397
19414
  // Chats API
19398
19415
  chat;
19399
19416
  getChats;
19417
+ queryOrgChats;
19418
+ countOrgChats;
19400
19419
  getChat;
19401
19420
  getChatAttention;
19402
19421
  getChatByUuid;
@@ -19521,6 +19540,7 @@ var GravityRailClient = class {
19521
19540
  // Org-scoped, so deliberately absent from WORKSPACE_METHOD_NAMES: that proxy
19522
19541
  // passes a workspace uuid as the first argument.
19523
19542
  getOrgWorkspaceMember;
19543
+ searchOrgWorkspaceMembers;
19524
19544
  createWorkspaceMember;
19525
19545
  updateMember;
19526
19546
  deleteMember;
@@ -19587,16 +19607,9 @@ var GravityRailClient = class {
19587
19607
  getAgentTask;
19588
19608
  cancelAgentTask;
19589
19609
  getAgentTaskMessages;
19590
- // Agents API
19591
- getAgents;
19592
- getAgent;
19593
- createAgent;
19594
- updateAgent;
19595
- deleteAgent;
19596
- archiveAgent;
19597
- unarchiveAgent;
19598
- getOrgAgentJobs;
19599
- stopOrgAgentJob;
19610
+ // Org Agent Jobs API
19611
+ getBotJobs;
19612
+ stopBotJob;
19600
19613
  // Qualifications API
19601
19614
  getQualifications;
19602
19615
  getQualification;
@@ -19676,6 +19689,7 @@ var GravityRailClient = class {
19676
19689
  queryOrgActivityOneView;
19677
19690
  queryOrgActivityDigest;
19678
19691
  getOrgActivityCounts;
19692
+ listOrgWidgetWorkspaces;
19679
19693
  queryWorkspaceActivity;
19680
19694
  queryWorkspaceActivityLatestSubjects;
19681
19695
  queryWorkspaceActivityOpenItems;
@@ -19918,6 +19932,10 @@ var GravityRailClient = class {
19918
19932
  listLegalEntities;
19919
19933
  getLegalEntity;
19920
19934
  createLegalEntity;
19935
+ getBusinessImportColumns;
19936
+ getBusinessImportTemplate;
19937
+ previewBusinessImport;
19938
+ importBusinesses;
19921
19939
  getRegistrationDraft;
19922
19940
  saveRegistrationDraft;
19923
19941
  getVoiceTrustProducts;
@@ -20259,6 +20277,7 @@ var GravityRailClient = class {
20259
20277
  getPhoneNumberMessages;
20260
20278
  getPhoneNumberFaxes;
20261
20279
  getPhoneNumberVoicemails;
20280
+ getVoicemailByUuid;
20262
20281
  fetchVoicemailAudio;
20263
20282
  updateVoicemailStatus;
20264
20283
  releasePhoneNumber;
@@ -20266,6 +20285,7 @@ var GravityRailClient = class {
20266
20285
  linkPhoneNumber;
20267
20286
  getInboxes;
20268
20287
  getInbox;
20288
+ getChatSenderInboxes;
20269
20289
  createInbox;
20270
20290
  updateInbox;
20271
20291
  deleteInbox;
@@ -20291,6 +20311,7 @@ var GravityRailClient = class {
20291
20311
  updateNotificationRule;
20292
20312
  deleteNotificationRule;
20293
20313
  getNotificationDestinations;
20314
+ getNotificationDelivery;
20294
20315
  // Toolkits API
20295
20316
  getToolkits;
20296
20317
  getTool;
@@ -20467,7 +20488,6 @@ var GravityRailClient = class {
20467
20488
  getTeamsConversations;
20468
20489
  getTeamsInstallations;
20469
20490
  getTeamsAppAccounts;
20470
- getTeamsNotificationDelivery;
20471
20491
  // FHIR Connections API
20472
20492
  getFhirConnections;
20473
20493
  getFhirConnection;
@@ -20594,6 +20614,7 @@ var GravityRailClient = class {
20594
20614
  importHubspotMembers;
20595
20615
  getHubspotContactProperties;
20596
20616
  getHubspotDealProperties;
20617
+ getHubspotDealPipelines;
20597
20618
  getHubspotForms;
20598
20619
  getHubspotMeetingLinks;
20599
20620
  getHubspotCrmObjects;
@@ -20751,7 +20772,7 @@ var GravityRailClient = class {
20751
20772
  bindDevicesMethods(this, apis.devices);
20752
20773
  bindMembersMethods(this, apis.members);
20753
20774
  bindAgentTasksMethods(this, apis.agentTasks);
20754
- bindAgentsMethods(this, apis.agents);
20775
+ bindBotJobsMethods(this, apis.botJobs);
20755
20776
  bindQualificationsMethods(this, apis.qualifications);
20756
20777
  bindPersonasMethods(this, apis.personas);
20757
20778
  bindMetricsMethods(this, apis.metrics);
@@ -21001,11 +21022,12 @@ function pathDraftToStorage(draft, original) {
21001
21022
  };
21002
21023
  }
21003
21024
 
21004
- // src/types/generated/agent_admin_chat.ts
21025
+ // src/types/generated/bot_admin_chat.ts
21005
21026
  var AdminRoomMessageDeliveryReason = {
21006
21027
  authority_refused: "authority_refused",
21007
21028
  payload_invalid: "payload_invalid",
21008
21029
  unsupported_provider: "unsupported_provider",
21030
+ identity_ambiguous: "identity_ambiguous",
21009
21031
  identity_unlinked: "identity_unlinked",
21010
21032
  already_linked: "already_linked",
21011
21033
  scope_refused: "scope_refused",
@@ -21042,7 +21064,6 @@ var AdminRoomMessageDeliveryReason = {
21042
21064
  ActivityWindowBasis,
21043
21065
  AdminRoomMessageDeliveryReason,
21044
21066
  AgentTasksApi,
21045
- AgentsApi,
21046
21067
  AiConnectorPolicy,
21047
21068
  AiDisclosure,
21048
21069
  ApiError,
@@ -21056,6 +21077,7 @@ var AdminRoomMessageDeliveryReason = {
21056
21077
  AuthApi,
21057
21078
  BUILTIN_ASSISTANT_CHAT_TYPES,
21058
21079
  BaseApiClient,
21080
+ BotJobsApi,
21059
21081
  BuildersApi,
21060
21082
  BulkMemberResultStatus,
21061
21083
  BusinessIndustry,
@@ -21332,11 +21354,11 @@ var AdminRoomMessageDeliveryReason = {
21332
21354
  bindAccessGrantsMethods,
21333
21355
  bindActivityMethods,
21334
21356
  bindAgentTasksMethods,
21335
- bindAgentsMethods,
21336
21357
  bindAppLinksMethods,
21337
21358
  bindAppsMethods,
21338
21359
  bindAuthMethods,
21339
21360
  bindBillingMethods,
21361
+ bindBotJobsMethods,
21340
21362
  bindBundlesMethods,
21341
21363
  bindCalendarsMethods,
21342
21364
  bindCallsMethods,