@gravity-rail/sdk 8.2.0 → 9.0.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-CeErHy0t.d.ts} +846 -110
  3. package/dist/{agent_standing_job-DfjwGfg_.d.cts → agent_team-J0TyZPkg.d.cts} +846 -110
  4. package/dist/{chunk-U2U5X3LY.js → chunk-AMJ2MMBM.js} +238 -226
  5. package/dist/chunk-AMJ2MMBM.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-BGGgZhKg.d.cts → client-CO1hYs43.d.cts} +2238 -1099
  11. package/dist/{client-Bd-zXY42.d.ts → client-xtsG-YOi.d.ts} +2238 -1099
  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 +283 -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 +245 -230
  25. package/dist/internal.cjs.map +1 -1
  26. package/dist/internal.d.cts +775 -927
  27. package/dist/internal.d.ts +775 -927
  28. package/dist/internal.js +12 -9
  29. package/dist/internal.js.map +1 -1
  30. package/dist/member-import-CzGVMtgv.d.cts +92 -0
  31. package/dist/member-import-q5-fCvfV.d.ts +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 +62 -48
  41. package/dist/schemas.d.ts +62 -48
  42. package/dist/schemas.js +24 -7
  43. package/dist/schemas.js.map +1 -1
  44. package/dist/{tasks-BTURuIlD.d.cts → tasks-BM3pb5W6.d.cts} +67 -904
  45. package/dist/{tasks-2LhXIwL8.d.ts → tasks-Dc89D2Gu.d.ts} +67 -904
  46. package/package.json +3 -3
  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`);
@@ -13875,6 +13876,12 @@ var HubspotApi = class extends BaseApiClient {
13875
13876
  `w/${wid}/app-connections/hubspot/sync-settings/hs-properties?objectType=deals`
13876
13877
  );
13877
13878
  }
13879
+ /** The portal's active deal pipelines with their active stages. */
13880
+ async getHubspotDealPipelines(wid) {
13881
+ return this.fetch(
13882
+ `w/${wid}/app-connections/hubspot/sync-settings/deal-pipelines`
13883
+ );
13884
+ }
13878
13885
  /** The portal's Meetings booking links, or `missing_scope` without the scheduler scope. */
13879
13886
  async getHubspotMeetingLinks(wid) {
13880
13887
  return this.fetch(
@@ -14091,15 +14098,21 @@ var SitesApi = class extends BaseApiClient {
14091
14098
  /**
14092
14099
  * Get a theme's settings schema, the site's saved values, and capabilities.
14093
14100
  * 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).
14101
+ * (e.g. one the builder has selected but not yet saved). Pass `resolved: true` to
14102
+ * also receive `resolvedValues`, the saved theme's values as its render resolves them.
14095
14103
  */
14096
- async getThemeSettings(wid, siteId, theme) {
14097
- const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
14104
+ async getThemeSettings(wid, siteId, theme, options) {
14105
+ const params = new URLSearchParams();
14106
+ if (theme) params.set("theme", theme);
14107
+ if (options?.resolved) params.set("resolved", "true");
14108
+ const search = params.toString();
14109
+ const query2 = search ? `?${search}` : "";
14098
14110
  return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
14099
14111
  }
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`, {
14112
+ /** Save values for the active theme's settings (validated against the schema). Pass `resolved: true` to also receive `resolvedValues`. */
14113
+ async updateThemeSettings(wid, siteId, values, options) {
14114
+ const query2 = options?.resolved ? "?resolved=true" : "";
14115
+ return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`, {
14103
14116
  method: "PUT",
14104
14117
  body: JSON.stringify({ values })
14105
14118
  });
@@ -16775,7 +16788,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
16775
16788
  abilities: new AbilitiesApi(apiKey, baseUrl, customFetch),
16776
16789
  accessGrants: new AccessGrantsApi(apiKey, baseUrl, customFetch),
16777
16790
  agentTasks: new AgentTasksApi(apiKey, baseUrl, customFetch),
16778
- agents: new AgentsApi(apiKey, baseUrl, customFetch),
16791
+ botJobs: new BotJobsApi(apiKey, baseUrl, customFetch),
16779
16792
  aiModels: new AIModelsApi(apiKey, baseUrl, customFetch),
16780
16793
  apiKeys: new ApiKeysApi(apiKey, baseUrl, customFetch),
16781
16794
  appLinks: new AppLinksApi(apiKey, baseUrl, customFetch),
@@ -16864,7 +16877,6 @@ var WORKSPACE_METHOD_NAMES = [
16864
16877
  "addWorkspaceSupportRequestParticipants",
16865
16878
  "advanceStep",
16866
16879
  "approveWorkspaceInvitation",
16867
- "archiveAgent",
16868
16880
  "archiveChat",
16869
16881
  "archiveDataType",
16870
16882
  "archiveJourney",
@@ -16920,7 +16932,6 @@ var WORKSPACE_METHOD_NAMES = [
16920
16932
  "convertFile",
16921
16933
  "createAbility",
16922
16934
  "createAccessGrant",
16923
- "createAgent",
16924
16935
  "createApiKey",
16925
16936
  "createAssignment",
16926
16937
  "bindInstallationSlots",
@@ -17003,7 +17014,6 @@ var WORKSPACE_METHOD_NAMES = [
17003
17014
  "createWorkspaceRealtimeLoginToken",
17004
17015
  "createWorkspaceSupportRequest",
17005
17016
  "deleteAbility",
17006
- "deleteAgent",
17007
17017
  "deleteAssignment",
17008
17018
  "deleteCalendar",
17009
17019
  "deleteCalendarEvent",
@@ -17142,12 +17152,10 @@ var WORKSPACE_METHOD_NAMES = [
17142
17152
  "getAbilityTypes",
17143
17153
  "getAccessGrant",
17144
17154
  "getAccessGrants",
17145
- "getAgent",
17146
17155
  "getAgentModeAttention",
17147
17156
  "getAgentTask",
17148
17157
  "getAgentTaskMessages",
17149
17158
  "getAgentTasks",
17150
- "getAgents",
17151
17159
  "getAnonymousResolution",
17152
17160
  "getAnonymousFormSubmission",
17153
17161
  "getAnonymousFormSchema",
@@ -17347,6 +17355,7 @@ var WORKSPACE_METHOD_NAMES = [
17347
17355
  "getPatientSyncStatus",
17348
17356
  "getHubspotContactProperties",
17349
17357
  "getHubspotDealProperties",
17358
+ "getHubspotDealPipelines",
17350
17359
  "getHubspotForms",
17351
17360
  "getHubspotMeetingLinks",
17352
17361
  "getHubspotCrmObjects",
@@ -17366,6 +17375,7 @@ var WORKSPACE_METHOD_NAMES = [
17366
17375
  "getImportReadiness",
17367
17376
  "rebuildImportSkippedRules",
17368
17377
  "getInbox",
17378
+ "getChatSenderInboxes",
17369
17379
  "getInboxEmail",
17370
17380
  "getInboxEmails",
17371
17381
  "getInboxArchiveBlockers",
@@ -17430,6 +17440,7 @@ var WORKSPACE_METHOD_NAMES = [
17430
17440
  "getMyGivenGrants",
17431
17441
  "getMyReceivedGrants",
17432
17442
  "getNotification",
17443
+ "getNotificationDelivery",
17433
17444
  "getNotificationDestinations",
17434
17445
  "getNotificationRules",
17435
17446
  "getNotifications",
@@ -17514,7 +17525,6 @@ var WORKSPACE_METHOD_NAMES = [
17514
17525
  "getTeamsApps",
17515
17526
  "getTeamsConversations",
17516
17527
  "getTeamsInstallations",
17517
- "getTeamsNotificationDelivery",
17518
17528
  "getTemplateContext",
17519
17529
  "getChatTestRun",
17520
17530
  "getTestChatRun",
@@ -17743,7 +17753,6 @@ var WORKSPACE_METHOD_NAMES = [
17743
17753
  "simulateJourney",
17744
17754
  "testRunJourney",
17745
17755
  "toggleFieldIndex",
17746
- "unarchiveAgent",
17747
17756
  "unarchiveChat",
17748
17757
  "unarchiveDataType",
17749
17758
  "unarchiveMember",
@@ -17762,7 +17771,6 @@ var WORKSPACE_METHOD_NAMES = [
17762
17771
  "unlinkMemberFromSalesforce",
17763
17772
  "unregisterPushSubscription",
17764
17773
  "updateAbility",
17765
- "updateAgent",
17766
17774
  "updateAssignment",
17767
17775
  "updateCalendar",
17768
17776
  "updateCalendarEvent",
@@ -17910,17 +17918,10 @@ function bindAgentTasksMethods(target, api) {
17910
17918
  target.getAgentTaskMessages = api.getAgentTaskMessages.bind(api);
17911
17919
  }
17912
17920
 
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);
17921
+ // src/client/bindings/bot-jobs.ts
17922
+ function bindBotJobsMethods(target, botJobs) {
17923
+ target.getBotJobs = botJobs.getBotJobs.bind(botJobs);
17924
+ target.stopBotJob = botJobs.stopBotJob.bind(botJobs);
17924
17925
  }
17925
17926
 
17926
17927
  // src/client/bindings/tasks.ts
@@ -17949,6 +17950,8 @@ function bindChatsMethods(target, chats) {
17949
17950
  target.createChatInteractionSession = chats.createChatInteractionSession.bind(chats);
17950
17951
  target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
17951
17952
  target.getChats = chats.getChats.bind(chats);
17953
+ target.queryOrgChats = chats.queryOrgChats.bind(chats);
17954
+ target.countOrgChats = chats.countOrgChats.bind(chats);
17952
17955
  target.getChat = chats.getChat.bind(chats);
17953
17956
  target.getChatAttention = chats.getChatAttention.bind(chats);
17954
17957
  target.getChatByUuid = chats.getChatByUuid.bind(chats);
@@ -18052,6 +18055,7 @@ function bindActivityMethods(target, activity) {
18052
18055
  target.queryOrgActivityOneView = activity.queryOrgActivityOneView.bind(activity);
18053
18056
  target.queryOrgActivityDigest = activity.queryOrgActivityDigest.bind(activity);
18054
18057
  target.getOrgActivityCounts = activity.getOrgActivityCounts.bind(activity);
18058
+ target.listOrgWidgetWorkspaces = activity.listOrgWidgetWorkspaces.bind(activity);
18055
18059
  target.queryWorkspaceActivity = activity.queryWorkspaceActivity.bind(activity);
18056
18060
  target.queryWorkspaceActivityLatestSubjects = activity.queryWorkspaceActivityLatestSubjects.bind(activity);
18057
18061
  target.queryWorkspaceActivityOpenItems = activity.queryWorkspaceActivityOpenItems.bind(activity);
@@ -18146,6 +18150,7 @@ function bindMembersMethods(target, members) {
18146
18150
  target.getMemberSmsSenders = members.getMemberSmsSenders.bind(members);
18147
18151
  target.getMemberByUuid = members.getMemberByUuid.bind(members);
18148
18152
  target.getOrgWorkspaceMember = members.getOrgWorkspaceMember.bind(members);
18153
+ target.searchOrgWorkspaceMembers = members.searchOrgWorkspaceMembers.bind(members);
18149
18154
  target.createWorkspaceMember = members.createWorkspaceMember.bind(members);
18150
18155
  target.updateMember = members.updateMember.bind(members);
18151
18156
  target.deleteMember = members.deleteMember.bind(members);
@@ -18625,6 +18630,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
18625
18630
  target.linkPhoneNumber = phoneNumbers.linkPhoneNumber.bind(phoneNumbers);
18626
18631
  target.getInboxes = inboxes.getInboxes.bind(inboxes);
18627
18632
  target.getInbox = inboxes.getInbox.bind(inboxes);
18633
+ target.getChatSenderInboxes = inboxes.getChatSenderInboxes.bind(inboxes);
18628
18634
  target.createInbox = inboxes.createInbox.bind(inboxes);
18629
18635
  target.updateInbox = inboxes.updateInbox.bind(inboxes);
18630
18636
  target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
@@ -18650,6 +18656,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
18650
18656
  target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
18651
18657
  target.deleteNotificationRule = notificationRules.deleteNotificationRule.bind(notificationRules);
18652
18658
  target.getNotificationDestinations = notificationRules.getNotificationDestinations.bind(notificationRules);
18659
+ target.getNotificationDelivery = notificationRules.getNotificationDelivery.bind(notificationRules);
18653
18660
  }
18654
18661
 
18655
18662
  // src/client/bindings/toolkits.ts
@@ -18839,8 +18846,7 @@ function createIntegrationsBindings(apis) {
18839
18846
  "deleteTeamsApp",
18840
18847
  "getTeamsConversations",
18841
18848
  "getTeamsInstallations",
18842
- "getTeamsAppAccounts",
18843
- "getTeamsNotificationDelivery"
18849
+ "getTeamsAppAccounts"
18844
18850
  ]),
18845
18851
  ...bindMethods(apis.fhirConnections, [
18846
18852
  "getFhirConnections",
@@ -18977,6 +18983,7 @@ function createIntegrationsBindings(apis) {
18977
18983
  "importHubspotMembers",
18978
18984
  "getHubspotContactProperties",
18979
18985
  "getHubspotDealProperties",
18986
+ "getHubspotDealPipelines",
18980
18987
  "getHubspotForms",
18981
18988
  "getHubspotMeetingLinks",
18982
18989
  "getHubspotCrmObjects",
@@ -19071,6 +19078,10 @@ function bindOrgMethods(target, org) {
19071
19078
  target.listLegalEntities = org.listLegalEntities.bind(org);
19072
19079
  target.getLegalEntity = org.getLegalEntity.bind(org);
19073
19080
  target.createLegalEntity = org.createLegalEntity.bind(org);
19081
+ target.getBusinessImportColumns = org.getBusinessImportColumns.bind(org);
19082
+ target.getBusinessImportTemplate = org.getBusinessImportTemplate.bind(org);
19083
+ target.previewBusinessImport = org.previewBusinessImport.bind(org);
19084
+ target.importBusinesses = org.importBusinesses.bind(org);
19074
19085
  target.getRegistrationDraft = org.getRegistrationDraft.bind(org);
19075
19086
  target.saveRegistrationDraft = org.saveRegistrationDraft.bind(org);
19076
19087
  target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
@@ -19397,6 +19408,8 @@ var GravityRailClient = class {
19397
19408
  // Chats API
19398
19409
  chat;
19399
19410
  getChats;
19411
+ queryOrgChats;
19412
+ countOrgChats;
19400
19413
  getChat;
19401
19414
  getChatAttention;
19402
19415
  getChatByUuid;
@@ -19521,6 +19534,7 @@ var GravityRailClient = class {
19521
19534
  // Org-scoped, so deliberately absent from WORKSPACE_METHOD_NAMES: that proxy
19522
19535
  // passes a workspace uuid as the first argument.
19523
19536
  getOrgWorkspaceMember;
19537
+ searchOrgWorkspaceMembers;
19524
19538
  createWorkspaceMember;
19525
19539
  updateMember;
19526
19540
  deleteMember;
@@ -19587,16 +19601,9 @@ var GravityRailClient = class {
19587
19601
  getAgentTask;
19588
19602
  cancelAgentTask;
19589
19603
  getAgentTaskMessages;
19590
- // Agents API
19591
- getAgents;
19592
- getAgent;
19593
- createAgent;
19594
- updateAgent;
19595
- deleteAgent;
19596
- archiveAgent;
19597
- unarchiveAgent;
19598
- getOrgAgentJobs;
19599
- stopOrgAgentJob;
19604
+ // Org Agent Jobs API
19605
+ getBotJobs;
19606
+ stopBotJob;
19600
19607
  // Qualifications API
19601
19608
  getQualifications;
19602
19609
  getQualification;
@@ -19676,6 +19683,7 @@ var GravityRailClient = class {
19676
19683
  queryOrgActivityOneView;
19677
19684
  queryOrgActivityDigest;
19678
19685
  getOrgActivityCounts;
19686
+ listOrgWidgetWorkspaces;
19679
19687
  queryWorkspaceActivity;
19680
19688
  queryWorkspaceActivityLatestSubjects;
19681
19689
  queryWorkspaceActivityOpenItems;
@@ -19918,6 +19926,10 @@ var GravityRailClient = class {
19918
19926
  listLegalEntities;
19919
19927
  getLegalEntity;
19920
19928
  createLegalEntity;
19929
+ getBusinessImportColumns;
19930
+ getBusinessImportTemplate;
19931
+ previewBusinessImport;
19932
+ importBusinesses;
19921
19933
  getRegistrationDraft;
19922
19934
  saveRegistrationDraft;
19923
19935
  getVoiceTrustProducts;
@@ -20266,6 +20278,7 @@ var GravityRailClient = class {
20266
20278
  linkPhoneNumber;
20267
20279
  getInboxes;
20268
20280
  getInbox;
20281
+ getChatSenderInboxes;
20269
20282
  createInbox;
20270
20283
  updateInbox;
20271
20284
  deleteInbox;
@@ -20291,6 +20304,7 @@ var GravityRailClient = class {
20291
20304
  updateNotificationRule;
20292
20305
  deleteNotificationRule;
20293
20306
  getNotificationDestinations;
20307
+ getNotificationDelivery;
20294
20308
  // Toolkits API
20295
20309
  getToolkits;
20296
20310
  getTool;
@@ -20467,7 +20481,6 @@ var GravityRailClient = class {
20467
20481
  getTeamsConversations;
20468
20482
  getTeamsInstallations;
20469
20483
  getTeamsAppAccounts;
20470
- getTeamsNotificationDelivery;
20471
20484
  // FHIR Connections API
20472
20485
  getFhirConnections;
20473
20486
  getFhirConnection;
@@ -20594,6 +20607,7 @@ var GravityRailClient = class {
20594
20607
  importHubspotMembers;
20595
20608
  getHubspotContactProperties;
20596
20609
  getHubspotDealProperties;
20610
+ getHubspotDealPipelines;
20597
20611
  getHubspotForms;
20598
20612
  getHubspotMeetingLinks;
20599
20613
  getHubspotCrmObjects;
@@ -20751,7 +20765,7 @@ var GravityRailClient = class {
20751
20765
  bindDevicesMethods(this, apis.devices);
20752
20766
  bindMembersMethods(this, apis.members);
20753
20767
  bindAgentTasksMethods(this, apis.agentTasks);
20754
- bindAgentsMethods(this, apis.agents);
20768
+ bindBotJobsMethods(this, apis.botJobs);
20755
20769
  bindQualificationsMethods(this, apis.qualifications);
20756
20770
  bindPersonasMethods(this, apis.personas);
20757
20771
  bindMetricsMethods(this, apis.metrics);
@@ -21001,11 +21015,12 @@ function pathDraftToStorage(draft, original) {
21001
21015
  };
21002
21016
  }
21003
21017
 
21004
- // src/types/generated/agent_admin_chat.ts
21018
+ // src/types/generated/bot_admin_chat.ts
21005
21019
  var AdminRoomMessageDeliveryReason = {
21006
21020
  authority_refused: "authority_refused",
21007
21021
  payload_invalid: "payload_invalid",
21008
21022
  unsupported_provider: "unsupported_provider",
21023
+ identity_ambiguous: "identity_ambiguous",
21009
21024
  identity_unlinked: "identity_unlinked",
21010
21025
  already_linked: "already_linked",
21011
21026
  scope_refused: "scope_refused",
@@ -21042,7 +21057,6 @@ var AdminRoomMessageDeliveryReason = {
21042
21057
  ActivityWindowBasis,
21043
21058
  AdminRoomMessageDeliveryReason,
21044
21059
  AgentTasksApi,
21045
- AgentsApi,
21046
21060
  AiConnectorPolicy,
21047
21061
  AiDisclosure,
21048
21062
  ApiError,
@@ -21056,6 +21070,7 @@ var AdminRoomMessageDeliveryReason = {
21056
21070
  AuthApi,
21057
21071
  BUILTIN_ASSISTANT_CHAT_TYPES,
21058
21072
  BaseApiClient,
21073
+ BotJobsApi,
21059
21074
  BuildersApi,
21060
21075
  BulkMemberResultStatus,
21061
21076
  BusinessIndustry,
@@ -21332,11 +21347,11 @@ var AdminRoomMessageDeliveryReason = {
21332
21347
  bindAccessGrantsMethods,
21333
21348
  bindActivityMethods,
21334
21349
  bindAgentTasksMethods,
21335
- bindAgentsMethods,
21336
21350
  bindAppLinksMethods,
21337
21351
  bindAppsMethods,
21338
21352
  bindAuthMethods,
21339
21353
  bindBillingMethods,
21354
+ bindBotJobsMethods,
21340
21355
  bindBundlesMethods,
21341
21356
  bindCalendarsMethods,
21342
21357
  bindCallsMethods,