@gravity-rail/sdk 8.1.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-CaD7wjGr.d.cts → agent_team-CeErHy0t.d.ts} +846 -110
  3. package/dist/{agent_standing_job-DMLbDOjP.d.ts → agent_team-J0TyZPkg.d.cts} +846 -110
  4. package/dist/{chunk-MVWCWWRQ.js → chunk-AMJ2MMBM.js} +504 -477
  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/{chat-interaction-_mKOHRYc.d.cts → client-CO1hYs43.d.cts} +2732 -1354
  11. package/dist/{chat-interaction-exmrd2jl.d.ts → client-xtsG-YOi.d.ts} +2732 -1354
  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 +548 -555
  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 +512 -482
  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 +14 -11
  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 +54 -40
  41. package/dist/schemas.d.ts +54 -40
  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-MVWCWWRQ.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/index.cjs CHANGED
@@ -38,7 +38,6 @@ __export(src_exports, {
38
38
  ActivityVisibility: () => ActivityVisibility,
39
39
  ActivityWindowBasis: () => ActivityWindowBasis,
40
40
  ActorKind: () => ActorKind,
41
- AgentBuilder: () => AgentBuilder,
42
41
  AiConnectorPolicy: () => AiConnectorPolicy,
43
42
  AiDisclosure: () => AiDisclosure,
44
43
  ApiError: () => ApiError,
@@ -296,6 +295,8 @@ __export(src_exports, {
296
295
  pathDraftToStorage: () => pathDraftToStorage,
297
296
  requiresAssistantParticipant: () => requiresAssistantParticipant,
298
297
  runWorkspaceScript: () => runWorkspaceScript,
298
+ toSafeBusinessImportPreview: () => toSafeBusinessImportPreview,
299
+ toSafeBusinessImportResult: () => toSafeBusinessImportResult,
299
300
  toSafeMemberImportPreview: () => toSafeMemberImportPreview,
300
301
  toSafeMemberImportSummary: () => toSafeMemberImportSummary,
301
302
  usesBuiltinAssistant: () => usesBuiltinAssistant,
@@ -1375,8 +1376,6 @@ var AgentTasksApi = class extends BaseApiClient {
1375
1376
  async getAgentTasks(wid, params) {
1376
1377
  const searchParams = new URLSearchParams();
1377
1378
  if (params?.status) searchParams.set("status", params.status);
1378
- if (params?.agentMemberId != null)
1379
- searchParams.set("agent_member_id", String(params.agentMemberId));
1380
1379
  if (params?.parentTaskId != null)
1381
1380
  searchParams.set("parent_task_id", String(params.parentTaskId));
1382
1381
  if (params?.limit != null) searchParams.set("limit", String(params.limit));
@@ -1401,82 +1400,6 @@ var AgentTasksApi = class extends BaseApiClient {
1401
1400
  }
1402
1401
  };
1403
1402
 
1404
- // src/api/agents.ts
1405
- var AgentsApi = class extends BaseApiClient {
1406
- orgAgentJobsPath(orgUuid, agentUuid) {
1407
- return `o/${encodeURIComponent(orgUuid)}/agents/${encodeURIComponent(agentUuid)}/jobs`;
1408
- }
1409
- /** List the current organization's teammate's operational Agent Jobs. */
1410
- async getOrgAgentJobs(orgUuid, agentUuid, options = {}) {
1411
- const params = new URLSearchParams();
1412
- if (options.before) params.set("before", options.before);
1413
- if (options.limit !== void 0) params.set("limit", String(options.limit));
1414
- if (options.status) params.set("status", options.status);
1415
- const search = params.toString();
1416
- return this.fetch(
1417
- `${this.orgAgentJobsPath(orgUuid, agentUuid)}${search ? `?${search}` : ""}`
1418
- );
1419
- }
1420
- /** Stop one of the current teammate's Jobs and its active descendants. */
1421
- async stopOrgAgentJob(orgUuid, agentUuid, jobUuid) {
1422
- return this.fetch(
1423
- `${this.orgAgentJobsPath(orgUuid, agentUuid)}/${encodeURIComponent(jobUuid)}/stop`,
1424
- { method: "POST", body: JSON.stringify({}) }
1425
- );
1426
- }
1427
- /** List agents in a workspace with optional pagination, sorting, and search. */
1428
- async getAgents(wid, options = {}) {
1429
- const params = new URLSearchParams();
1430
- if (options.page) params.append("page", options.page.toString());
1431
- if (options.pageSize) params.append("pageSize", options.pageSize.toString());
1432
- if (options.sortBy) params.append("sortBy", options.sortBy);
1433
- if (options.sortOrder) params.append("sortOrder", options.sortOrder);
1434
- if (options.search) params.append("search", options.search);
1435
- if (options.includeArchived)
1436
- params.append("includeArchived", options.includeArchived.toString());
1437
- return this.fetch(
1438
- `w/${wid}/agents${params.toString() ? `?${params.toString()}` : ""}`
1439
- );
1440
- }
1441
- /** Get a single agent by ID. */
1442
- async getAgent(wid, id) {
1443
- return this.fetch(`w/${wid}/agents/${id}`);
1444
- }
1445
- /** Create a new agent in a workspace. */
1446
- async createAgent(wid, agent) {
1447
- return this.fetch(`w/${wid}/agents`, {
1448
- method: "POST",
1449
- body: JSON.stringify(agent)
1450
- });
1451
- }
1452
- /** Update an existing agent. */
1453
- async updateAgent(wid, id, agent) {
1454
- return this.fetch(`w/${wid}/agents/${id}`, {
1455
- method: "PUT",
1456
- body: JSON.stringify(agent)
1457
- });
1458
- }
1459
- /** Delete an agent by ID, optionally forcing deletion of agents with active references. */
1460
- async deleteAgent(wid, id, force) {
1461
- const params = force ? "?force=true" : "";
1462
- return this.fetch(`w/${wid}/agents/${id}${params}`, {
1463
- method: "DELETE"
1464
- });
1465
- }
1466
- /** Archive an agent, hiding it from default listings. */
1467
- async archiveAgent(wid, id) {
1468
- return this.fetch(`w/${wid}/agents/${id}/archive`, {
1469
- method: "POST"
1470
- });
1471
- }
1472
- /** Restore an archived agent back to active status. */
1473
- async unarchiveAgent(wid, id) {
1474
- return this.fetch(`w/${wid}/agents/${id}/unarchive`, {
1475
- method: "POST"
1476
- });
1477
- }
1478
- };
1479
-
1480
1403
  // src/api/ai-models.ts
1481
1404
  var AIModelsApi = class extends BaseApiClient {
1482
1405
  /**
@@ -1794,7 +1717,7 @@ var AssignmentsApi = class extends BaseApiClient {
1794
1717
  var VoiceApi = class extends BaseApiClient {
1795
1718
  /** Generate a text-to-speech audio preview for a given voice model. */
1796
1719
  async previewTTS(wid, request) {
1797
- const response = await this.fetchRaw(`w/${wid}/agents/tts-preview`, {
1720
+ const response = await this.fetchRaw(`w/${wid}/voice/tts-preview`, {
1798
1721
  method: "POST",
1799
1722
  headers: {
1800
1723
  "Content-Type": "application/json"
@@ -1805,7 +1728,7 @@ var VoiceApi = class extends BaseApiClient {
1805
1728
  }
1806
1729
  /** Generate a thinking sound audio preview. */
1807
1730
  async previewThinkingSound(wid, request) {
1808
- const response = await this.fetchRaw(`w/${wid}/agents/thinking-sound-preview`, {
1731
+ const response = await this.fetchRaw(`w/${wid}/voice/thinking-sound-preview`, {
1809
1732
  method: "POST",
1810
1733
  headers: {
1811
1734
  "Content-Type": "application/json"
@@ -2745,6 +2668,29 @@ var ChatsApi = class extends BaseApiClient {
2745
2668
  `w/${wid}/chats${queryString ? `?${queryString}` : ""}`
2746
2669
  );
2747
2670
  }
2671
+ /**
2672
+ * Chats across the Workspaces an Operator Tools widget session signed in
2673
+ * for this organization shows, in queue order: waiting Chats first, longest
2674
+ * wait first, then the rest by most recent message. Each row names its
2675
+ * Workspace. `requiredScopes` leaves out every Workspace where the caller
2676
+ * lacks one of the view's scopes. Answers only to a widget session.
2677
+ */
2678
+ async queryOrgChats(orgUuid, request) {
2679
+ return this.fetch(`o/${orgUuid}/chats/query`, {
2680
+ method: "POST",
2681
+ body: JSON.stringify({ ...request, countOnly: false })
2682
+ });
2683
+ }
2684
+ /**
2685
+ * How many Chats match the same organization read, without returning any
2686
+ * Chat, Workspace or Member. Answers only to a widget session.
2687
+ */
2688
+ async countOrgChats(orgUuid, request) {
2689
+ return this.fetch(`o/${orgUuid}/chats/query`, {
2690
+ method: "POST",
2691
+ body: JSON.stringify({ ...request, countOnly: true })
2692
+ });
2693
+ }
2748
2694
  /** Export multiple chats as a downloadable blob. */
2749
2695
  async exportChats(wid, options = {}) {
2750
2696
  const params = this.buildChatsQueryParams(options, false);
@@ -2963,11 +2909,9 @@ var ChatsApi = class extends BaseApiClient {
2963
2909
  }
2964
2910
  /** Create a new chat. */
2965
2911
  async createChat(wid, chat) {
2966
- const { agentMemberId, ...rest } = chat;
2967
- const payload = agentMemberId !== void 0 && rest.assistantMemberId === void 0 ? { ...rest, assistantMemberId: agentMemberId } : rest;
2968
2912
  return this.fetch(`w/${wid}/chats`, {
2969
2913
  method: "POST",
2970
- body: JSON.stringify(payload)
2914
+ body: JSON.stringify(chat)
2971
2915
  });
2972
2916
  }
2973
2917
  /**
@@ -4024,7 +3968,6 @@ var SlackAppsApi = class extends BaseApiClient {
4024
3968
  if (options.sortBy) params.append("sortBy", options.sortBy);
4025
3969
  if (options.sortOrder) params.append("sortOrder", options.sortOrder);
4026
3970
  if (options.search) params.append("search", options.search);
4027
- if (options.agentId !== void 0) params.set("agentId", String(options.agentId));
4028
3971
  if (options.workflowId !== void 0) params.set("workflowId", String(options.workflowId));
4029
3972
  if (options.managed !== void 0) params.set("managed", String(options.managed));
4030
3973
  return this.fetch(
@@ -4154,14 +4097,6 @@ var TeamsAppsApi = class extends BaseApiClient {
4154
4097
  `w/${wid}/app-connections/teams/apps/${appId}/installations${params.toString() ? `?${params.toString()}` : ""}`
4155
4098
  );
4156
4099
  }
4157
- /**
4158
- * The organization Bot Teams connection that delivers this workspace's
4159
- * notifications, the connections it may choose, and the caller's own
4160
- * readiness. Reads only; nothing is sent to Microsoft.
4161
- */
4162
- async getTeamsNotificationDelivery(wid) {
4163
- return this.fetch(`w/${wid}/notification-delivery/teams`);
4164
- }
4165
4100
  async getTeamsAppAccounts(wid, appId, options = {}) {
4166
4101
  const params = new URLSearchParams();
4167
4102
  if (options.page) params.append("page", options.page.toString());
@@ -4291,8 +4226,6 @@ var EventsApi = class extends BaseApiClient {
4291
4226
  if (options.sortOrder) params.append("sortOrder", options.sortOrder);
4292
4227
  if (options.owner) params.append("owner", options.owner);
4293
4228
  if (options.ownerId) params.append("ownerId", options.ownerId.toString());
4294
- if (options.agentId) params.append("agentId", options.agentId.toString());
4295
- if (options.agentOnly) params.append("agentOnly", "true");
4296
4229
  return this.fetch(
4297
4230
  `w/${wid}/routines${params.toString() ? `?${params.toString()}` : ""}`
4298
4231
  );
@@ -5435,6 +5368,16 @@ var InboxesApi = class extends BaseApiClient {
5435
5368
  async getInbox(wid, id) {
5436
5369
  return this.fetch(`w/${wid}/inboxes/${id}`);
5437
5370
  }
5371
+ /**
5372
+ * List the Inboxes a new email Chat can be sent from (`chats:write`).
5373
+ *
5374
+ * Only Inboxes the Member can see that can send now, as `id`, `name` and
5375
+ * `emailAddress`. `POST /chats` refuses an `inboxId` this list would not
5376
+ * offer.
5377
+ */
5378
+ async getChatSenderInboxes(wid) {
5379
+ return this.fetch(`w/${wid}/inboxes/chat-senders`);
5380
+ }
5438
5381
  /** Create a new inbox. */
5439
5382
  async createInbox(wid, inbox) {
5440
5383
  return this.fetch(`w/${wid}/inboxes`, {
@@ -6102,6 +6045,17 @@ var MembersApi = class extends BaseApiClient {
6102
6045
  `o/${orgUuid}/activity/workspaces/${workspaceUuid}/members/${memberId}`
6103
6046
  );
6104
6047
  }
6048
+ /**
6049
+ * Members across the Workspaces an Operator Tools widget session signed in
6050
+ * for this organization shows, up to 20, each naming its Workspace. The
6051
+ * search text travels in the body. Answers only to a widget session.
6052
+ */
6053
+ async searchOrgWorkspaceMembers(orgUuid, request) {
6054
+ return this.fetch(
6055
+ `o/${orgUuid}/workspace-members/search`,
6056
+ { method: "POST", body: JSON.stringify(request) }
6057
+ );
6058
+ }
6105
6059
  /** Create a new workspace member. */
6106
6060
  async createWorkspaceMember(wid, data) {
6107
6061
  return this.fetch(`w/${wid}/members`, {
@@ -6901,6 +6855,14 @@ var ActivityApi = class extends BaseApiClient {
6901
6855
  body: JSON.stringify(request)
6902
6856
  });
6903
6857
  }
6858
+ /**
6859
+ * The Workspaces an Operator Tools widget session signed in for this
6860
+ * organization reaches, as `{uuid, name}` pairs for its Workspace labels.
6861
+ * Answers only to a widget session; `[]` when it reaches none.
6862
+ */
6863
+ async listOrgWidgetWorkspaces(orgUuid) {
6864
+ return this.fetch(`o/${orgUuid}/widget-workspaces`, { method: "GET" });
6865
+ }
6904
6866
  /** The org mount's badge numbers. */
6905
6867
  async getOrgActivityCounts(orgUuid, request = {}) {
6906
6868
  return this.fetch(`o/${orgUuid}/activity/counts`, {
@@ -7324,14 +7286,25 @@ var NotificationRulesApi = class extends BaseApiClient {
7324
7286
  });
7325
7287
  }
7326
7288
  /**
7327
- * Approved, available shared destinations (Teams channels) a notification
7328
- * rule or Action may name. Choosing one never grants approval.
7289
+ * Approved, available shared destinations (Teams and Slack channels) a
7290
+ * notification rule or Action may name. Choosing one never grants approval.
7329
7291
  */
7330
7292
  async getNotificationDestinations(wid) {
7331
7293
  return this.fetch(
7332
7294
  `w/${wid}/notification-destinations`
7333
7295
  );
7334
7296
  }
7297
+ /**
7298
+ * The organization Bot connection that delivers this workspace's
7299
+ * notifications on one provider (`teams` or `slack`), the connections it
7300
+ * may choose, and the caller's own readiness. Reads only; nothing is sent
7301
+ * to the provider.
7302
+ */
7303
+ async getNotificationDelivery(wid, provider) {
7304
+ return this.fetch(
7305
+ `w/${wid}/notification-delivery/${provider}`
7306
+ );
7307
+ }
7335
7308
  /** Delete a notification rule. */
7336
7309
  async deleteNotificationRule(wid, ruleId) {
7337
7310
  return this.fetch(`w/${wid}/notification-rules/${ruleId}`, {
@@ -7398,11 +7371,16 @@ var OperatorApi = class extends BaseApiClient {
7398
7371
  `w/${wid}/operator/chats/${chatId}/messages?limit=${limit}&offset=${offset}`
7399
7372
  );
7400
7373
  }
7401
- /** Send a message in an operator chat. */
7402
- async sendOperatorMessage(wid, chatId, content) {
7374
+ /**
7375
+ * Send a message in an operator chat.
7376
+ *
7377
+ * `subject` applies to an email Chat only: required while the Chat holds no
7378
+ * linked Email (`operatorReplyNeedsSubject`), refused once it holds one.
7379
+ */
7380
+ async sendOperatorMessage(wid, chatId, content, subject) {
7403
7381
  return this.fetch(`w/${wid}/operator/chats/${chatId}/messages`, {
7404
7382
  method: "POST",
7405
- body: JSON.stringify({ content })
7383
+ body: JSON.stringify(subject === void 0 ? { content } : { content, subject })
7406
7384
  });
7407
7385
  }
7408
7386
  };
@@ -8213,6 +8191,35 @@ var OrgApi = class extends BaseApiClient {
8213
8191
  async getLegalEntity(orgUuid, legalEntityUuid) {
8214
8192
  return this.fetch(`o/${orgUuid}/legal-entities/${legalEntityUuid}`);
8215
8193
  }
8194
+ /** The columns a business CSV import reads, and the row and size limits on its file. */
8195
+ async getBusinessImportColumns(orgUuid) {
8196
+ return this.fetch(
8197
+ `o/${orgUuid}/legal-entities/import/columns`
8198
+ );
8199
+ }
8200
+ /** The business import template: CSV text whose only row is the header. */
8201
+ async getBusinessImportTemplate(orgUuid) {
8202
+ const response = await this.fetchRaw(`o/${orgUuid}/legal-entities/import/template`);
8203
+ return response.text();
8204
+ }
8205
+ /** Classify each row of a business CSV without writing; returns the token its import needs. */
8206
+ async previewBusinessImport(orgUuid, file) {
8207
+ return this.fetch(
8208
+ `o/${orgUuid}/legal-entities/import/preview`,
8209
+ { method: "POST", body: businessImportUpload(file) }
8210
+ );
8211
+ }
8212
+ /** Import a business CSV; without a `previewPlanToken` it previews the file first. */
8213
+ async importBusinesses(orgUuid, file, previewPlanToken) {
8214
+ const token = previewPlanToken ?? (await this.previewBusinessImport(orgUuid, file)).previewPlanToken;
8215
+ if (!token) throw new Error("The business import preview returned no plan token");
8216
+ const body = businessImportUpload(file);
8217
+ body.append("previewPlanToken", token);
8218
+ return this.fetch(`o/${orgUuid}/legal-entities/import`, {
8219
+ method: "POST",
8220
+ body
8221
+ });
8222
+ }
8216
8223
  /**
8217
8224
  * Read one registration draft for a legal entity.
8218
8225
  *
@@ -8760,10 +8767,41 @@ var OrgApi = class extends BaseApiClient {
8760
8767
  function businessProfilePath(orgUuid, legalEntityUuid) {
8761
8768
  return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
8762
8769
  }
8770
+ function businessImportUpload(file) {
8771
+ const body = new FormData();
8772
+ const name = "name" in file && typeof file.name === "string" ? file.name : "businesses.csv";
8773
+ body.append("file", file, name);
8774
+ return body;
8775
+ }
8763
8776
  function campaignQuery(options) {
8764
8777
  return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
8765
8778
  }
8766
8779
 
8780
+ // src/api/bot-jobs.ts
8781
+ var BotJobsApi = class extends BaseApiClient {
8782
+ botJobsPath(orgUuid, agentUuid) {
8783
+ return `o/${encodeURIComponent(orgUuid)}/agents/${encodeURIComponent(agentUuid)}/jobs`;
8784
+ }
8785
+ /** List the organization Bot's operational Jobs. */
8786
+ async getBotJobs(orgUuid, agentUuid, options = {}) {
8787
+ const params = new URLSearchParams();
8788
+ if (options.before) params.set("before", options.before);
8789
+ if (options.limit !== void 0) params.set("limit", String(options.limit));
8790
+ if (options.status) params.set("status", options.status);
8791
+ const search = params.toString();
8792
+ return this.fetch(
8793
+ `${this.botJobsPath(orgUuid, agentUuid)}${search ? `?${search}` : ""}`
8794
+ );
8795
+ }
8796
+ /** Stop one of the organization Bot's Jobs and its active descendants. */
8797
+ async stopBotJob(orgUuid, agentUuid, jobUuid) {
8798
+ return this.fetch(
8799
+ `${this.botJobsPath(orgUuid, agentUuid)}/${encodeURIComponent(jobUuid)}/stop`,
8800
+ { method: "POST", body: JSON.stringify({}) }
8801
+ );
8802
+ }
8803
+ };
8804
+
8767
8805
  // src/api/oauth.ts
8768
8806
  function getOAuthPath(providerSlug, action) {
8769
8807
  if (providerSlug === "google_calendar") {
@@ -8909,9 +8947,10 @@ var PhoneNumbersApi = class extends BaseApiClient {
8909
8947
  * The numbers a Chat can be started from, for a Member with `chats:write`.
8910
8948
  *
8911
8949
  * Every non-archived workspace number in a slim shape (`id`, `number`,
8912
- * `name`, `isMapped`, `enableWhatsApp`) — no phone administration data, so
8913
- * it needs no `phones:read`. A row describes configuration, not permission
8914
- * to send.
8950
+ * `name`, `isMapped`, `enableWhatsApp`, `isWorkspaceDefault`, and whether
8951
+ * it can send SMS now, `canSendSms`, or place a call now, `canPlaceCall`)
8952
+ * — no phone administration data, so it needs no `phones:read`. A row
8953
+ * describes the number, not permission to send.
8915
8954
  */
8916
8955
  async getChatPhoneNumbers(wid) {
8917
8956
  return this.fetch(`w/${wid}/phone-numbers/chat-senders`);
@@ -10468,6 +10507,12 @@ var HubspotApi = class extends BaseApiClient {
10468
10507
  `w/${wid}/app-connections/hubspot/sync-settings/hs-properties?objectType=deals`
10469
10508
  );
10470
10509
  }
10510
+ /** The portal's active deal pipelines with their active stages. */
10511
+ async getHubspotDealPipelines(wid) {
10512
+ return this.fetch(
10513
+ `w/${wid}/app-connections/hubspot/sync-settings/deal-pipelines`
10514
+ );
10515
+ }
10471
10516
  /** The portal's Meetings booking links, or `missing_scope` without the scheduler scope. */
10472
10517
  async getHubspotMeetingLinks(wid) {
10473
10518
  return this.fetch(
@@ -10684,15 +10729,21 @@ var SitesApi = class extends BaseApiClient {
10684
10729
  /**
10685
10730
  * Get a theme's settings schema, the site's saved values, and capabilities.
10686
10731
  * Pass `theme` to resolve the schema for a theme other than the saved one
10687
- * (e.g. one the builder has selected but not yet saved).
10732
+ * (e.g. one the builder has selected but not yet saved). Pass `resolved: true` to
10733
+ * also receive `resolvedValues`, the saved theme's values as its render resolves them.
10688
10734
  */
10689
- async getThemeSettings(wid, siteId, theme) {
10690
- const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
10735
+ async getThemeSettings(wid, siteId, theme, options) {
10736
+ const params = new URLSearchParams();
10737
+ if (theme) params.set("theme", theme);
10738
+ if (options?.resolved) params.set("resolved", "true");
10739
+ const search = params.toString();
10740
+ const query2 = search ? `?${search}` : "";
10691
10741
  return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
10692
10742
  }
10693
- /** Save values for the active theme's settings (validated against the schema). */
10694
- async updateThemeSettings(wid, siteId, values) {
10695
- return this.fetch(`w/${wid}/sites/${siteId}/theme-settings`, {
10743
+ /** Save values for the active theme's settings (validated against the schema). Pass `resolved: true` to also receive `resolvedValues`. */
10744
+ async updateThemeSettings(wid, siteId, values, options) {
10745
+ const query2 = options?.resolved ? "?resolved=true" : "";
10746
+ return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`, {
10696
10747
  method: "PUT",
10697
10748
  body: JSON.stringify({ values })
10698
10749
  });
@@ -12685,7 +12736,6 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
12685
12736
  MemberType2["ANONYMOUS"] = "anonymous";
12686
12737
  MemberType2["TEST"] = "test";
12687
12738
  MemberType2["MEMBER"] = "member";
12688
- MemberType2["AGENT"] = "agent";
12689
12739
  MemberType2["BUSINESS"] = "business";
12690
12740
  return MemberType2;
12691
12741
  })(MemberType || {});
@@ -12814,6 +12864,8 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
12814
12864
  EventRuleActionType2["EMAIL_SEND"] = "email:send";
12815
12865
  EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
12816
12866
  EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
12867
+ EventRuleActionType2["HUBSPOT_UPDATE_CONTACT_DEALS"] = "hubspot:update_contact_deals";
12868
+ EventRuleActionType2["HUBSPOT_UPDATE_CONTACT_PROPERTIES"] = "hubspot:update_contact_properties";
12817
12869
  EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
12818
12870
  EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
12819
12871
  EventRuleActionType2["SMS_SEND"] = "sms:send";
@@ -13401,14 +13453,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13401
13453
  "viewedMemberTypes": [
13402
13454
  "anonymous",
13403
13455
  "test",
13404
- "member",
13405
- "agent"
13456
+ "member"
13406
13457
  ],
13407
13458
  "relatedMemberTypes": [
13408
13459
  "anonymous",
13409
13460
  "test",
13410
- "member",
13411
- "agent"
13461
+ "member"
13412
13462
  ]
13413
13463
  },
13414
13464
  {
@@ -13419,14 +13469,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13419
13469
  "viewedMemberTypes": [
13420
13470
  "anonymous",
13421
13471
  "test",
13422
- "member",
13423
- "agent"
13472
+ "member"
13424
13473
  ],
13425
13474
  "relatedMemberTypes": [
13426
13475
  "anonymous",
13427
13476
  "test",
13428
- "member",
13429
- "agent"
13477
+ "member"
13430
13478
  ]
13431
13479
  }
13432
13480
  ]
@@ -13445,14 +13493,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13445
13493
  "viewedMemberTypes": [
13446
13494
  "anonymous",
13447
13495
  "test",
13448
- "member",
13449
- "agent"
13496
+ "member"
13450
13497
  ],
13451
13498
  "relatedMemberTypes": [
13452
13499
  "anonymous",
13453
13500
  "test",
13454
- "member",
13455
- "agent"
13501
+ "member"
13456
13502
  ]
13457
13503
  }
13458
13504
  ]
@@ -13471,14 +13517,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13471
13517
  "viewedMemberTypes": [
13472
13518
  "anonymous",
13473
13519
  "test",
13474
- "member",
13475
- "agent"
13520
+ "member"
13476
13521
  ],
13477
13522
  "relatedMemberTypes": [
13478
13523
  "anonymous",
13479
13524
  "test",
13480
- "member",
13481
- "agent"
13525
+ "member"
13482
13526
  ]
13483
13527
  }
13484
13528
  ]
@@ -13497,14 +13541,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13497
13541
  "viewedMemberTypes": [
13498
13542
  "anonymous",
13499
13543
  "test",
13500
- "member",
13501
- "agent"
13544
+ "member"
13502
13545
  ],
13503
13546
  "relatedMemberTypes": [
13504
13547
  "anonymous",
13505
13548
  "test",
13506
- "member",
13507
- "agent"
13549
+ "member"
13508
13550
  ]
13509
13551
  },
13510
13552
  {
@@ -13515,14 +13557,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13515
13557
  "viewedMemberTypes": [
13516
13558
  "anonymous",
13517
13559
  "test",
13518
- "member",
13519
- "agent"
13560
+ "member"
13520
13561
  ],
13521
13562
  "relatedMemberTypes": [
13522
13563
  "anonymous",
13523
13564
  "test",
13524
- "member",
13525
- "agent"
13565
+ "member"
13526
13566
  ]
13527
13567
  }
13528
13568
  ]
@@ -13541,14 +13581,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13541
13581
  "viewedMemberTypes": [
13542
13582
  "anonymous",
13543
13583
  "test",
13544
- "member",
13545
- "agent"
13584
+ "member"
13546
13585
  ],
13547
13586
  "relatedMemberTypes": [
13548
13587
  "anonymous",
13549
13588
  "test",
13550
- "member",
13551
- "agent"
13589
+ "member"
13552
13590
  ]
13553
13591
  },
13554
13592
  {
@@ -13559,14 +13597,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13559
13597
  "viewedMemberTypes": [
13560
13598
  "anonymous",
13561
13599
  "test",
13562
- "member",
13563
- "agent"
13600
+ "member"
13564
13601
  ],
13565
13602
  "relatedMemberTypes": [
13566
13603
  "anonymous",
13567
13604
  "test",
13568
- "member",
13569
- "agent"
13605
+ "member"
13570
13606
  ]
13571
13607
  }
13572
13608
  ]
@@ -13585,14 +13621,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13585
13621
  "viewedMemberTypes": [
13586
13622
  "anonymous",
13587
13623
  "test",
13588
- "member",
13589
- "agent"
13624
+ "member"
13590
13625
  ],
13591
13626
  "relatedMemberTypes": [
13592
13627
  "anonymous",
13593
13628
  "test",
13594
- "member",
13595
- "agent"
13629
+ "member"
13596
13630
  ]
13597
13631
  },
13598
13632
  {
@@ -13603,14 +13637,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13603
13637
  "viewedMemberTypes": [
13604
13638
  "anonymous",
13605
13639
  "test",
13606
- "member",
13607
- "agent"
13640
+ "member"
13608
13641
  ],
13609
13642
  "relatedMemberTypes": [
13610
13643
  "anonymous",
13611
13644
  "test",
13612
- "member",
13613
- "agent"
13645
+ "member"
13614
13646
  ]
13615
13647
  }
13616
13648
  ]
@@ -13629,14 +13661,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13629
13661
  "viewedMemberTypes": [
13630
13662
  "anonymous",
13631
13663
  "test",
13632
- "member",
13633
- "agent"
13664
+ "member"
13634
13665
  ],
13635
13666
  "relatedMemberTypes": [
13636
13667
  "anonymous",
13637
13668
  "test",
13638
- "member",
13639
- "agent"
13669
+ "member"
13640
13670
  ]
13641
13671
  },
13642
13672
  {
@@ -13647,14 +13677,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13647
13677
  "viewedMemberTypes": [
13648
13678
  "anonymous",
13649
13679
  "test",
13650
- "member",
13651
- "agent"
13680
+ "member"
13652
13681
  ],
13653
13682
  "relatedMemberTypes": [
13654
13683
  "anonymous",
13655
13684
  "test",
13656
- "member",
13657
- "agent"
13685
+ "member"
13658
13686
  ]
13659
13687
  }
13660
13688
  ]
@@ -13673,14 +13701,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13673
13701
  "viewedMemberTypes": [
13674
13702
  "anonymous",
13675
13703
  "test",
13676
- "member",
13677
- "agent"
13704
+ "member"
13678
13705
  ],
13679
13706
  "relatedMemberTypes": [
13680
13707
  "anonymous",
13681
13708
  "test",
13682
- "member",
13683
- "agent"
13709
+ "member"
13684
13710
  ]
13685
13711
  },
13686
13712
  {
@@ -13691,14 +13717,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13691
13717
  "viewedMemberTypes": [
13692
13718
  "anonymous",
13693
13719
  "test",
13694
- "member",
13695
- "agent"
13720
+ "member"
13696
13721
  ],
13697
13722
  "relatedMemberTypes": [
13698
13723
  "anonymous",
13699
13724
  "test",
13700
- "member",
13701
- "agent"
13725
+ "member"
13702
13726
  ]
13703
13727
  }
13704
13728
  ]
@@ -13717,14 +13741,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13717
13741
  "viewedMemberTypes": [
13718
13742
  "anonymous",
13719
13743
  "test",
13720
- "member",
13721
- "agent"
13744
+ "member"
13722
13745
  ],
13723
13746
  "relatedMemberTypes": [
13724
13747
  "anonymous",
13725
13748
  "test",
13726
- "member",
13727
- "agent"
13749
+ "member"
13728
13750
  ]
13729
13751
  },
13730
13752
  {
@@ -13735,14 +13757,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13735
13757
  "viewedMemberTypes": [
13736
13758
  "anonymous",
13737
13759
  "test",
13738
- "member",
13739
- "agent"
13760
+ "member"
13740
13761
  ],
13741
13762
  "relatedMemberTypes": [
13742
13763
  "anonymous",
13743
13764
  "test",
13744
- "member",
13745
- "agent"
13765
+ "member"
13746
13766
  ]
13747
13767
  }
13748
13768
  ]
@@ -13761,14 +13781,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13761
13781
  "viewedMemberTypes": [
13762
13782
  "anonymous",
13763
13783
  "test",
13764
- "member",
13765
- "agent"
13784
+ "member"
13766
13785
  ],
13767
13786
  "relatedMemberTypes": [
13768
13787
  "anonymous",
13769
13788
  "test",
13770
- "member",
13771
- "agent"
13789
+ "member"
13772
13790
  ]
13773
13791
  },
13774
13792
  {
@@ -13779,14 +13797,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13779
13797
  "viewedMemberTypes": [
13780
13798
  "anonymous",
13781
13799
  "test",
13782
- "member",
13783
- "agent"
13800
+ "member"
13784
13801
  ],
13785
13802
  "relatedMemberTypes": [
13786
13803
  "anonymous",
13787
13804
  "test",
13788
- "member",
13789
- "agent"
13805
+ "member"
13790
13806
  ]
13791
13807
  }
13792
13808
  ]
@@ -13805,14 +13821,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13805
13821
  "viewedMemberTypes": [
13806
13822
  "anonymous",
13807
13823
  "test",
13808
- "member",
13809
- "agent"
13824
+ "member"
13810
13825
  ],
13811
13826
  "relatedMemberTypes": [
13812
13827
  "anonymous",
13813
13828
  "test",
13814
- "member",
13815
- "agent"
13829
+ "member"
13816
13830
  ]
13817
13831
  },
13818
13832
  {
@@ -13823,14 +13837,12 @@ var MEMBER_RELATIONSHIP_KINDS = [
13823
13837
  "viewedMemberTypes": [
13824
13838
  "anonymous",
13825
13839
  "test",
13826
- "member",
13827
- "agent"
13840
+ "member"
13828
13841
  ],
13829
13842
  "relatedMemberTypes": [
13830
13843
  "anonymous",
13831
13844
  "test",
13832
- "member",
13833
- "agent"
13845
+ "member"
13834
13846
  ]
13835
13847
  }
13836
13848
  ]
@@ -14976,7 +14988,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
14976
14988
  abilities: new AbilitiesApi(apiKey, baseUrl, customFetch),
14977
14989
  accessGrants: new AccessGrantsApi(apiKey, baseUrl, customFetch),
14978
14990
  agentTasks: new AgentTasksApi(apiKey, baseUrl, customFetch),
14979
- agents: new AgentsApi(apiKey, baseUrl, customFetch),
14991
+ botJobs: new BotJobsApi(apiKey, baseUrl, customFetch),
14980
14992
  aiModels: new AIModelsApi(apiKey, baseUrl, customFetch),
14981
14993
  apiKeys: new ApiKeysApi(apiKey, baseUrl, customFetch),
14982
14994
  appLinks: new AppLinksApi(apiKey, baseUrl, customFetch),
@@ -15065,7 +15077,6 @@ var WORKSPACE_METHOD_NAMES = [
15065
15077
  "addWorkspaceSupportRequestParticipants",
15066
15078
  "advanceStep",
15067
15079
  "approveWorkspaceInvitation",
15068
- "archiveAgent",
15069
15080
  "archiveChat",
15070
15081
  "archiveDataType",
15071
15082
  "archiveJourney",
@@ -15121,7 +15132,6 @@ var WORKSPACE_METHOD_NAMES = [
15121
15132
  "convertFile",
15122
15133
  "createAbility",
15123
15134
  "createAccessGrant",
15124
- "createAgent",
15125
15135
  "createApiKey",
15126
15136
  "createAssignment",
15127
15137
  "bindInstallationSlots",
@@ -15204,7 +15214,6 @@ var WORKSPACE_METHOD_NAMES = [
15204
15214
  "createWorkspaceRealtimeLoginToken",
15205
15215
  "createWorkspaceSupportRequest",
15206
15216
  "deleteAbility",
15207
- "deleteAgent",
15208
15217
  "deleteAssignment",
15209
15218
  "deleteCalendar",
15210
15219
  "deleteCalendarEvent",
@@ -15343,12 +15352,10 @@ var WORKSPACE_METHOD_NAMES = [
15343
15352
  "getAbilityTypes",
15344
15353
  "getAccessGrant",
15345
15354
  "getAccessGrants",
15346
- "getAgent",
15347
15355
  "getAgentModeAttention",
15348
15356
  "getAgentTask",
15349
15357
  "getAgentTaskMessages",
15350
15358
  "getAgentTasks",
15351
- "getAgents",
15352
15359
  "getAnonymousResolution",
15353
15360
  "getAnonymousFormSubmission",
15354
15361
  "getAnonymousFormSchema",
@@ -15548,6 +15555,7 @@ var WORKSPACE_METHOD_NAMES = [
15548
15555
  "getPatientSyncStatus",
15549
15556
  "getHubspotContactProperties",
15550
15557
  "getHubspotDealProperties",
15558
+ "getHubspotDealPipelines",
15551
15559
  "getHubspotForms",
15552
15560
  "getHubspotMeetingLinks",
15553
15561
  "getHubspotCrmObjects",
@@ -15567,6 +15575,7 @@ var WORKSPACE_METHOD_NAMES = [
15567
15575
  "getImportReadiness",
15568
15576
  "rebuildImportSkippedRules",
15569
15577
  "getInbox",
15578
+ "getChatSenderInboxes",
15570
15579
  "getInboxEmail",
15571
15580
  "getInboxEmails",
15572
15581
  "getInboxArchiveBlockers",
@@ -15631,6 +15640,7 @@ var WORKSPACE_METHOD_NAMES = [
15631
15640
  "getMyGivenGrants",
15632
15641
  "getMyReceivedGrants",
15633
15642
  "getNotification",
15643
+ "getNotificationDelivery",
15634
15644
  "getNotificationDestinations",
15635
15645
  "getNotificationRules",
15636
15646
  "getNotifications",
@@ -15715,7 +15725,6 @@ var WORKSPACE_METHOD_NAMES = [
15715
15725
  "getTeamsApps",
15716
15726
  "getTeamsConversations",
15717
15727
  "getTeamsInstallations",
15718
- "getTeamsNotificationDelivery",
15719
15728
  "getTemplateContext",
15720
15729
  "getChatTestRun",
15721
15730
  "getTestChatRun",
@@ -15779,7 +15788,6 @@ var WORKSPACE_METHOD_NAMES = [
15779
15788
  "initiateOutboundCall",
15780
15789
  "inspectPrompt",
15781
15790
  "installHubspot",
15782
- "installDocumoFax",
15783
15791
  "installMondayConnection",
15784
15792
  "installSalesforce",
15785
15793
  "inviteMemberCredentialUpdate",
@@ -15896,7 +15904,6 @@ var WORKSPACE_METHOD_NAMES = [
15896
15904
  "upgradeInstallation",
15897
15905
  "replaceBundleDraft",
15898
15906
  "replyToEmail",
15899
- "rotateDocumoFaxCredentials",
15900
15907
  "requestPhoneNumber",
15901
15908
  "requestWorkspaceMembership",
15902
15909
  "resetRoutineRuns",
@@ -15946,7 +15953,6 @@ var WORKSPACE_METHOD_NAMES = [
15946
15953
  "simulateJourney",
15947
15954
  "testRunJourney",
15948
15955
  "toggleFieldIndex",
15949
- "unarchiveAgent",
15950
15956
  "unarchiveChat",
15951
15957
  "unarchiveDataType",
15952
15958
  "unarchiveMember",
@@ -15965,7 +15971,6 @@ var WORKSPACE_METHOD_NAMES = [
15965
15971
  "unlinkMemberFromSalesforce",
15966
15972
  "unregisterPushSubscription",
15967
15973
  "updateAbility",
15968
- "updateAgent",
15969
15974
  "updateAssignment",
15970
15975
  "updateCalendar",
15971
15976
  "updateCalendarEvent",
@@ -16113,17 +16118,10 @@ function bindAgentTasksMethods(target, api) {
16113
16118
  target.getAgentTaskMessages = api.getAgentTaskMessages.bind(api);
16114
16119
  }
16115
16120
 
16116
- // src/client/bindings/agents.ts
16117
- function bindAgentsMethods(target, agents) {
16118
- target.getAgents = agents.getAgents.bind(agents);
16119
- target.getAgent = agents.getAgent.bind(agents);
16120
- target.createAgent = agents.createAgent.bind(agents);
16121
- target.updateAgent = agents.updateAgent.bind(agents);
16122
- target.deleteAgent = agents.deleteAgent.bind(agents);
16123
- target.archiveAgent = agents.archiveAgent.bind(agents);
16124
- target.unarchiveAgent = agents.unarchiveAgent.bind(agents);
16125
- target.getOrgAgentJobs = agents.getOrgAgentJobs.bind(agents);
16126
- target.stopOrgAgentJob = agents.stopOrgAgentJob.bind(agents);
16121
+ // src/client/bindings/bot-jobs.ts
16122
+ function bindBotJobsMethods(target, botJobs) {
16123
+ target.getBotJobs = botJobs.getBotJobs.bind(botJobs);
16124
+ target.stopBotJob = botJobs.stopBotJob.bind(botJobs);
16127
16125
  }
16128
16126
 
16129
16127
  // src/client/bindings/tasks.ts
@@ -16152,6 +16150,8 @@ function bindChatsMethods(target, chats) {
16152
16150
  target.createChatInteractionSession = chats.createChatInteractionSession.bind(chats);
16153
16151
  target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
16154
16152
  target.getChats = chats.getChats.bind(chats);
16153
+ target.queryOrgChats = chats.queryOrgChats.bind(chats);
16154
+ target.countOrgChats = chats.countOrgChats.bind(chats);
16155
16155
  target.getChat = chats.getChat.bind(chats);
16156
16156
  target.getChatAttention = chats.getChatAttention.bind(chats);
16157
16157
  target.getChatByUuid = chats.getChatByUuid.bind(chats);
@@ -16255,6 +16255,7 @@ function bindActivityMethods(target, activity) {
16255
16255
  target.queryOrgActivityOneView = activity.queryOrgActivityOneView.bind(activity);
16256
16256
  target.queryOrgActivityDigest = activity.queryOrgActivityDigest.bind(activity);
16257
16257
  target.getOrgActivityCounts = activity.getOrgActivityCounts.bind(activity);
16258
+ target.listOrgWidgetWorkspaces = activity.listOrgWidgetWorkspaces.bind(activity);
16258
16259
  target.queryWorkspaceActivity = activity.queryWorkspaceActivity.bind(activity);
16259
16260
  target.queryWorkspaceActivityLatestSubjects = activity.queryWorkspaceActivityLatestSubjects.bind(activity);
16260
16261
  target.queryWorkspaceActivityOpenItems = activity.queryWorkspaceActivityOpenItems.bind(activity);
@@ -16349,6 +16350,7 @@ function bindMembersMethods(target, members) {
16349
16350
  target.getMemberSmsSenders = members.getMemberSmsSenders.bind(members);
16350
16351
  target.getMemberByUuid = members.getMemberByUuid.bind(members);
16351
16352
  target.getOrgWorkspaceMember = members.getOrgWorkspaceMember.bind(members);
16353
+ target.searchOrgWorkspaceMembers = members.searchOrgWorkspaceMembers.bind(members);
16352
16354
  target.createWorkspaceMember = members.createWorkspaceMember.bind(members);
16353
16355
  target.updateMember = members.updateMember.bind(members);
16354
16356
  target.deleteMember = members.deleteMember.bind(members);
@@ -16828,6 +16830,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
16828
16830
  target.linkPhoneNumber = phoneNumbers.linkPhoneNumber.bind(phoneNumbers);
16829
16831
  target.getInboxes = inboxes.getInboxes.bind(inboxes);
16830
16832
  target.getInbox = inboxes.getInbox.bind(inboxes);
16833
+ target.getChatSenderInboxes = inboxes.getChatSenderInboxes.bind(inboxes);
16831
16834
  target.createInbox = inboxes.createInbox.bind(inboxes);
16832
16835
  target.updateInbox = inboxes.updateInbox.bind(inboxes);
16833
16836
  target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
@@ -16853,6 +16856,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
16853
16856
  target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
16854
16857
  target.deleteNotificationRule = notificationRules.deleteNotificationRule.bind(notificationRules);
16855
16858
  target.getNotificationDestinations = notificationRules.getNotificationDestinations.bind(notificationRules);
16859
+ target.getNotificationDelivery = notificationRules.getNotificationDelivery.bind(notificationRules);
16856
16860
  }
16857
16861
 
16858
16862
  // src/client/bindings/toolkits.ts
@@ -16966,238 +16970,272 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
16966
16970
  }
16967
16971
 
16968
16972
  // src/client/bindings/integrations.ts
16969
- function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, stedi, salesforce, hubspot, appConnections, connectionSync, confluence) {
16970
- target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
16971
- target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
16972
- target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
16973
- target.getMondayCurrentUserInfo = mondayIntegration.getCurrentUserInfo.bind(mondayIntegration);
16974
- target.installMondayConnection = mondayIntegration.installMondayConnection.bind(mondayIntegration);
16975
- target.configureMondayConnection = mondayIntegration.configureMondayConnection.bind(mondayIntegration);
16976
- target.getMondayConnectionStatus = mondayIntegration.getMondayConnectionStatus.bind(mondayIntegration);
16977
- target.authorizeMondayConnection = mondayIntegration.authorizeMondayConnection.bind(mondayIntegration);
16978
- target.testMondayConnection = mondayIntegration.testMondayConnection.bind(mondayIntegration);
16979
- target.disconnectMondayConnection = mondayIntegration.disconnectMondayConnection.bind(mondayIntegration);
16980
- target.disableMondayConnection = mondayIntegration.disableMondayConnection.bind(mondayIntegration);
16981
- target.enableMondayConnection = mondayIntegration.enableMondayConnection.bind(mondayIntegration);
16982
- target.deleteMondayConnection = mondayIntegration.deleteMondayConnection.bind(mondayIntegration);
16983
- target.getMondayConnectionBoards = mondayIntegration.getMondayConnectionBoards.bind(mondayIntegration);
16984
- target.getMondayConnectionBoardColumns = mondayIntegration.getMondayConnectionBoardColumns.bind(mondayIntegration);
16985
- target.getMondayConnectionBoardGroups = mondayIntegration.getMondayConnectionBoardGroups.bind(mondayIntegration);
16986
- target.getMondaySyncConfig = mondayIntegration.getMondaySyncConfig.bind(mondayIntegration);
16987
- target.getMondaySyncLogs = mondayIntegration.getMondaySyncLogs.bind(mondayIntegration);
16988
- target.updateMondaySyncConfig = mondayIntegration.updateMondaySyncConfig.bind(mondayIntegration);
16989
- target.validateMondaySyncConfig = mondayIntegration.validateMondaySyncConfig.bind(mondayIntegration);
16990
- target.getLinkedMondayMembers = mondayIntegration.getLinkedMondayMembers.bind(mondayIntegration);
16991
- target.getMondayReconciliationMatches = mondayIntegration.getMondayReconciliationMatches.bind(mondayIntegration);
16992
- target.linkMemberToMonday = mondayIntegration.linkMemberToMonday.bind(mondayIntegration);
16993
- target.bulkLinkMembersToMonday = mondayIntegration.bulkLinkMembersToMonday.bind(mondayIntegration);
16994
- target.unlinkMemberFromMonday = mondayIntegration.unlinkMemberFromMonday.bind(mondayIntegration);
16995
- target.getLinkedRecords = mondayIntegration.getLinkedRecords.bind(mondayIntegration);
16996
- target.importFromBoard = mondayIntegration.importFromBoard.bind(mondayIntegration);
16997
- target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
16998
- target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
16999
- target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
17000
- target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
17001
- target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
17002
- target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
17003
- target.registerDiscordSlashCommands = discordBots.registerSlashCommands.bind(discordBots);
17004
- target.registerLinkedRolesMetadata = discordBots.registerLinkedRolesMetadata.bind(discordBots);
17005
- target.getDiscordThreads = discordBots.getDiscordThreads.bind(discordBots);
17006
- target.getDiscordGuilds = discordBots.getDiscordGuilds.bind(discordBots);
17007
- target.getDiscordBotAccounts = discordBots.getDiscordBotAccounts.bind(discordBots);
17008
- target.getMyCredentials = discordBots.getMyCredentials.bind(discordBots);
17009
- target.unlinkCredential = discordBots.unlinkCredential.bind(discordBots);
17010
- target.completeDiscordLink = discordBots.completeDiscordLink.bind(discordBots);
17011
- target.discordLinkPreflight = discordBots.discordLinkPreflight.bind(discordBots);
17012
- target.getSlackApps = slackApps.getSlackApps.bind(slackApps);
17013
- target.getSlackApp = slackApps.getSlackApp.bind(slackApps);
17014
- target.createSlackApp = slackApps.createSlackApp.bind(slackApps);
17015
- target.updateSlackApp = slackApps.updateSlackApp.bind(slackApps);
17016
- target.deleteSlackApp = slackApps.deleteSlackApp.bind(slackApps);
17017
- target.getSlackThreads = slackApps.getSlackThreads.bind(slackApps);
17018
- target.getSlackInstallations = slackApps.getSlackInstallations.bind(slackApps);
17019
- target.removeSlackAccount = slackApps.removeSlackAccount.bind(slackApps);
17020
- target.removeSlackInstallation = slackApps.removeSlackInstallation.bind(slackApps);
17021
- target.getSlackChannelChoices = slackApps.getSlackChannelChoices.bind(slackApps);
17022
- target.getSlackEntryPoints = slackApps.getSlackEntryPoints.bind(slackApps);
17023
- target.connectSlackEntryPoint = slackApps.connectSlackEntryPoint.bind(slackApps);
17024
- target.getSlackAppAccounts = slackApps.getSlackAppAccounts.bind(slackApps);
17025
- target.getTeamsApps = teamsApps.getTeamsApps.bind(teamsApps);
17026
- target.getTeamsApp = teamsApps.getTeamsApp.bind(teamsApps);
17027
- target.createTeamsApp = teamsApps.createTeamsApp.bind(teamsApps);
17028
- target.updateTeamsApp = teamsApps.updateTeamsApp.bind(teamsApps);
17029
- target.deleteTeamsApp = teamsApps.deleteTeamsApp.bind(teamsApps);
17030
- target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
17031
- target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
17032
- target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
17033
- target.getTeamsNotificationDelivery = teamsApps.getTeamsNotificationDelivery.bind(teamsApps);
17034
- target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
17035
- target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
17036
- target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
17037
- target.createFhirConnection = fhirConnections.createFhirConnection.bind(fhirConnections);
17038
- target.updateFhirConnection = fhirConnections.updateFhirConnection.bind(fhirConnections);
17039
- target.deleteFhirConnection = fhirConnections.deleteFhirConnection.bind(fhirConnections);
17040
- target.testFhirConnection = fhirConnections.testFhirConnection.bind(fhirConnections);
17041
- target.fhirSearchPatients = fhirConnections.fhirSearchPatients.bind(fhirConnections);
17042
- target.fhirSearchPractitioners = fhirConnections.fhirSearchPractitioners.bind(fhirConnections);
17043
- target.fhirSearchLocations = fhirConnections.fhirSearchLocations.bind(fhirConnections);
17044
- target.fhirFetchCareTeam = fhirConnections.fhirFetchCareTeam.bind(fhirConnections);
17045
- target.fhirFetchEncounters = fhirConnections.fhirFetchEncounters.bind(fhirConnections);
17046
- target.fhirCreateEncounter = fhirConnections.fhirCreateEncounter.bind(fhirConnections);
17047
- target.fhirListLinkedMembers = fhirConnections.fhirListLinkedMembers.bind(fhirConnections);
17048
- target.fhirCheckPatientLinks = fhirConnections.fhirCheckPatientLinks.bind(fhirConnections);
17049
- target.fhirLinkMember = fhirConnections.fhirLinkMember.bind(fhirConnections);
17050
- target.fhirUnlinkMember = fhirConnections.fhirUnlinkMember.bind(fhirConnections);
17051
- target.fhirSyncMember = fhirConnections.fhirSyncMember.bind(fhirConnections);
17052
- target.fhirImportPatient = fhirConnections.fhirImportPatient.bind(fhirConnections);
17053
- target.fhirCsvImportInspect = fhirConnections.fhirCsvImportInspect.bind(fhirConnections);
17054
- target.fhirGetCsvImportSettings = fhirConnections.fhirGetCsvImportSettings.bind(fhirConnections);
17055
- target.fhirUpdateCsvImportSettings = fhirConnections.fhirUpdateCsvImportSettings.bind(fhirConnections);
17056
- target.fhirCsvImportApply = fhirConnections.fhirCsvImportApply.bind(fhirConnections);
17057
- target.fhirGetCsvImportRuns = fhirConnections.fhirGetCsvImportRuns.bind(fhirConnections);
17058
- target.fhirGetCsvImportRunItems = fhirConnections.fhirGetCsvImportRunItems.bind(fhirConnections);
17059
- target.fhirGetEncounterSyncStatus = fhirConnections.fhirGetEncounterSyncStatus.bind(fhirConnections);
17060
- target.fhirUpdateEncounterSync = fhirConnections.fhirUpdateEncounterSync.bind(fhirConnections);
17061
- target.fhirRunEncounterSync = fhirConnections.fhirRunEncounterSync.bind(fhirConnections);
17062
- target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
17063
- target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
17064
- target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
17065
- target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
17066
- target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
17067
- target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
17068
- target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
17069
- target.configurePatientSync = patientSyncConnections.configurePatientSync.bind(patientSyncConnections);
17070
- target.getPatientSyncStatus = patientSyncConnections.getPatientSyncStatus.bind(patientSyncConnections);
17071
- target.deletePatientSyncConnection = patientSyncConnections.deletePatientSyncConnection.bind(patientSyncConnections);
17072
- target.getDocumoFaxStatus = documoFax.getDocumoFaxStatus.bind(documoFax);
17073
- target.getDocumoFaxSetup = documoFax.getDocumoFaxSetup.bind(documoFax);
17074
- target.listDocumoFaxes = documoFax.listDocumoFaxes.bind(documoFax);
17075
- target.installDocumoFax = documoFax.installDocumoFax.bind(documoFax);
17076
- target.configureDocumoFax = documoFax.configureDocumoFax.bind(documoFax);
17077
- target.verifyDocumoFax = documoFax.verifyDocumoFax.bind(documoFax);
17078
- target.rotateDocumoFaxCredentials = documoFax.rotateDocumoFaxCredentials.bind(documoFax);
17079
- target.getClaimMdStatus = claimMd.getClaimMdStatus.bind(claimMd);
17080
- target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
17081
- target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
17082
- target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
17083
- target.getStediConnections = stedi.getStediConnections.bind(stedi);
17084
- target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
17085
- target.configureHealthie = healthie.configureHealthie.bind(healthie);
17086
- target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
17087
- target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
17088
- target.linkCalendarToHealthie = healthie.linkCalendarToHealthie.bind(healthie);
17089
- target.unlinkCalendarFromHealthie = healthie.unlinkCalendarFromHealthie.bind(healthie);
17090
- target.syncCalendarWithHealthie = healthie.syncCalendarWithHealthie.bind(healthie);
17091
- target.getLinkedHealthieMembers = healthie.getLinkedHealthieMembers.bind(healthie);
17092
- target.getHealthieReconciliationMatches = healthie.getHealthieReconciliationMatches.bind(healthie);
17093
- target.getHealthieAppointmentPatientMatches = healthie.getHealthieAppointmentPatientMatches.bind(healthie);
17094
- target.linkMemberToHealthie = healthie.linkMemberToHealthie.bind(healthie);
17095
- target.unlinkMemberFromHealthie = healthie.unlinkMemberFromHealthie.bind(healthie);
17096
- target.listHealthieAppointmentTypes = healthie.listHealthieAppointmentTypes.bind(healthie);
17097
- target.listHealthiePatients = healthie.listHealthiePatients.bind(healthie);
17098
- target.getHealthieAvailableSlots = healthie.getHealthieAvailableSlots.bind(healthie);
17099
- target.bookHealthieAppointment = healthie.bookHealthieAppointment.bind(healthie);
17100
- target.configureConfluence = confluence.configureConfluence.bind(confluence);
17101
- target.startConfluenceOAuth = confluence.startConfluenceOAuth.bind(confluence);
17102
- target.getConfluenceStatus = confluence.getConfluenceStatus.bind(confluence);
17103
- target.disconnectConfluence = confluence.disconnectConfluence.bind(confluence);
17104
- target.disableConfluence = confluence.disableConfluence.bind(confluence);
17105
- target.enableConfluence = confluence.enableConfluence.bind(confluence);
17106
- target.deleteConfluence = confluence.deleteConfluence.bind(confluence);
17107
- target.listConfluenceSpaces = confluence.listConfluenceSpaces.bind(confluence);
17108
- target.listConfluencePages = confluence.listConfluencePages.bind(confluence);
17109
- target.installSalesforce = salesforce.installSalesforce.bind(salesforce);
17110
- target.configureSalesforce = salesforce.configureSalesforce.bind(salesforce);
17111
- target.startSalesforceOAuth = salesforce.startSalesforceOAuth.bind(salesforce);
17112
- target.getSalesforceStatus = salesforce.getSalesforceStatus.bind(salesforce);
17113
- target.disconnectSalesforce = salesforce.disconnectSalesforce.bind(salesforce);
17114
- target.disableSalesforce = salesforce.disableSalesforce.bind(salesforce);
17115
- target.enableSalesforce = salesforce.enableSalesforce.bind(salesforce);
17116
- target.deleteSalesforce = salesforce.deleteSalesforce.bind(salesforce);
17117
- target.getSalesforceReconciliationMatches = salesforce.getSalesforceReconciliationMatches.bind(salesforce);
17118
- target.linkMemberToSalesforce = salesforce.linkMemberToSalesforce.bind(salesforce);
17119
- target.linkUnlinkedSalesforceMembersByIdentity = salesforce.linkUnlinkedSalesforceMembersByIdentity.bind(salesforce);
17120
- target.bulkLinkMembersToSalesforce = salesforce.bulkLinkMembersToSalesforce.bind(salesforce);
17121
- target.unlinkMemberFromSalesforce = salesforce.unlinkMemberFromSalesforce.bind(salesforce);
17122
- target.getLinkedSalesforceMembers = salesforce.getLinkedSalesforceMembers.bind(salesforce);
17123
- target.getSalesforceSyncConfig = salesforce.getSalesforceSyncConfig.bind(salesforce);
17124
- target.getSalesforceSyncLogs = salesforce.getSalesforceSyncLogs.bind(salesforce);
17125
- target.updateSalesforceSyncConfig = salesforce.updateSalesforceSyncConfig.bind(salesforce);
17126
- target.validateSalesforceSyncConfig = salesforce.validateSalesforceSyncConfig.bind(salesforce);
17127
- target.resyncSalesforceLinkedMembers = salesforce.resyncSalesforceLinkedMembers.bind(salesforce);
17128
- target.listSalesforceObjects = salesforce.listSalesforceObjects.bind(salesforce);
17129
- target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
17130
- target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
17131
- target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
17132
- target.bindHubspotCalendar = hubspot.bindHubspotCalendar.bind(hubspot);
17133
- target.unlinkHubspotCalendar = hubspot.unlinkHubspotCalendar.bind(hubspot);
17134
- target.importHubspotCalendarEvents = hubspot.importHubspotCalendarEvents.bind(hubspot);
17135
- target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
17136
- target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
17137
- target.installHubspot = hubspot.installHubspot.bind(hubspot);
17138
- target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
17139
- target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
17140
- target.getHubspotStatus = hubspot.getHubspotStatus.bind(hubspot);
17141
- target.disconnectHubspot = hubspot.disconnectHubspot.bind(hubspot);
17142
- target.switchHubspotToPlatformApp = hubspot.switchHubspotToPlatformApp.bind(hubspot);
17143
- target.disableHubspot = hubspot.disableHubspot.bind(hubspot);
17144
- target.enableHubspot = hubspot.enableHubspot.bind(hubspot);
17145
- target.deleteHubspot = hubspot.deleteHubspot.bind(hubspot);
17146
- target.getHubspotReconciliationMatches = hubspot.getHubspotReconciliationMatches.bind(hubspot);
17147
- target.linkMemberToHubspot = hubspot.linkMemberToHubspot.bind(hubspot);
17148
- target.bulkLinkMembersToHubspot = hubspot.bulkLinkMembersToHubspot.bind(hubspot);
17149
- target.unlinkMemberFromHubspot = hubspot.unlinkMemberFromHubspot.bind(hubspot);
17150
- target.getLinkedHubspotMembers = hubspot.getLinkedHubspotMembers.bind(hubspot);
17151
- target.searchHubspotRecords = hubspot.searchHubspotRecords.bind(hubspot);
17152
- target.importHubspotMembers = hubspot.importHubspotMembers.bind(hubspot);
17153
- target.getHubspotContactProperties = hubspot.getHubspotContactProperties.bind(hubspot);
17154
- target.getHubspotDealProperties = hubspot.getHubspotDealProperties.bind(hubspot);
17155
- target.getHubspotForms = hubspot.getHubspotForms.bind(hubspot);
17156
- target.getHubspotMeetingLinks = hubspot.getHubspotMeetingLinks.bind(hubspot);
17157
- target.getHubspotCrmObjects = hubspot.getHubspotCrmObjects.bind(hubspot);
17158
- target.getHubspotObjectProperties = hubspot.getHubspotObjectProperties.bind(hubspot);
17159
- target.getHubspotManagedRules = hubspot.getHubspotManagedRules.bind(hubspot);
17160
- target.getHubspotSyncLogs = hubspot.getHubspotSyncLogs.bind(hubspot);
17161
- target.getHubspotTransformPresets = hubspot.getHubspotTransformPresets.bind(hubspot);
17162
- target.getConnectionSyncCapabilities = connectionSync.getConnectionSyncCapabilities.bind(connectionSync);
17163
- target.getConnectionSyncConfig = connectionSync.getConnectionSyncConfig.bind(connectionSync);
17164
- target.updateConnectionSyncConfig = connectionSync.updateConnectionSyncConfig.bind(connectionSync);
17165
- target.validateConnectionSyncConfig = connectionSync.validateConnectionSyncConfig.bind(connectionSync);
17166
- target.getConnectionSyncCheckpoint = connectionSync.getConnectionSyncCheckpoint.bind(connectionSync);
17167
- target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
17168
- target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
17169
- target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
17170
- target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
17171
- target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
17172
- target.getSyncFailureSummary = connectionSync.getSyncFailureSummary.bind(connectionSync);
17173
- target.getSyncFailures = connectionSync.getSyncFailures.bind(connectionSync);
17174
- target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
17175
- target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
17176
- target.getOwnerMemberStatus = connectionSync.getOwnerMemberStatus.bind(connectionSync);
17177
- target.getConnectionWritePreview = connectionSync.getConnectionWritePreview.bind(connectionSync);
17178
- target.clearConnectionMemberExclusion = connectionSync.clearConnectionMemberExclusion.bind(connectionSync);
17179
- target.linkUnlinkedMembersByIdentity = connectionSync.linkUnlinkedMembersByIdentity.bind(connectionSync);
17180
- target.listSubsetImports = connectionSync.listSubsetImports.bind(connectionSync);
17181
- target.getSubsetImport = connectionSync.getSubsetImport.bind(connectionSync);
17182
- target.createSubsetImport = connectionSync.createSubsetImport.bind(connectionSync);
17183
- target.updateSubsetImport = connectionSync.updateSubsetImport.bind(connectionSync);
17184
- target.deleteSubsetImport = connectionSync.deleteSubsetImport.bind(connectionSync);
17185
- target.previewSubsetImportSelection = connectionSync.previewSubsetImportSelection.bind(connectionSync);
17186
- target.previewSubsetImport = connectionSync.previewSubsetImport.bind(connectionSync);
17187
- target.runSubsetImport = connectionSync.runSubsetImport.bind(connectionSync);
17188
- target.cancelSubsetImport = connectionSync.cancelSubsetImport.bind(connectionSync);
17189
- target.listSubsetImportRuns = connectionSync.listSubsetImportRuns.bind(connectionSync);
17190
- target.listSubsetImportVendorLists = connectionSync.listSubsetImportVendorLists.bind(connectionSync);
17191
- target.listSubsetImportFilterFields = connectionSync.listSubsetImportFilterFields.bind(connectionSync);
17192
- target.listAvailableAppConnections = appConnections.listAvailableAppConnections.bind(appConnections);
17193
- target.listAppConnections = appConnections.listAppConnections.bind(appConnections);
17194
- target.enablePlatformApp = appConnections.enablePlatformApp.bind(appConnections);
17195
- target.configureZendeskConnection = appConnections.configureZendeskConnection.bind(appConnections);
17196
- target.getPlatformApp = appConnections.getPlatformApp.bind(appConnections);
17197
- target.updatePlatformApp = appConnections.updatePlatformApp.bind(appConnections);
17198
- target.deletePlatformApp = appConnections.deletePlatformApp.bind(appConnections);
17199
- target.listConnectionMemberFieldKeys = appConnections.listConnectionMemberFieldKeys.bind(appConnections);
17200
- target.setDefaultGooglePlatformAccount = appConnections.setDefaultGooglePlatformAccount.bind(appConnections);
16973
+ function bindMethods(api, keys) {
16974
+ return Object.fromEntries(keys.map((key) => [key, api[key].bind(api)]));
16975
+ }
16976
+ function createIntegrationsBindings(apis) {
16977
+ return {
16978
+ getMondayBoards: apis.mondayIntegration.getBoards.bind(apis.mondayIntegration),
16979
+ getMondayBoardColumns: apis.mondayIntegration.getBoardColumns.bind(apis.mondayIntegration),
16980
+ getMondayBoardGroups: apis.mondayIntegration.getBoardGroups.bind(apis.mondayIntegration),
16981
+ getMondayCurrentUserInfo: apis.mondayIntegration.getCurrentUserInfo.bind(
16982
+ apis.mondayIntegration
16983
+ ),
16984
+ ...bindMethods(apis.mondayIntegration, [
16985
+ "installMondayConnection",
16986
+ "configureMondayConnection",
16987
+ "getMondayConnectionStatus",
16988
+ "authorizeMondayConnection",
16989
+ "testMondayConnection",
16990
+ "disconnectMondayConnection",
16991
+ "disableMondayConnection",
16992
+ "enableMondayConnection",
16993
+ "deleteMondayConnection",
16994
+ "getMondayConnectionBoards",
16995
+ "getMondayConnectionBoardColumns",
16996
+ "getMondayConnectionBoardGroups",
16997
+ "getMondaySyncConfig",
16998
+ "getMondaySyncLogs",
16999
+ "updateMondaySyncConfig",
17000
+ "validateMondaySyncConfig",
17001
+ "getLinkedMondayMembers",
17002
+ "getMondayReconciliationMatches",
17003
+ "linkMemberToMonday",
17004
+ "bulkLinkMembersToMonday",
17005
+ "unlinkMemberFromMonday",
17006
+ "getLinkedRecords",
17007
+ "importFromBoard",
17008
+ "autoCreateDataTypeFromBoard"
17009
+ ]),
17010
+ registerDiscordSlashCommands: apis.discordBots.registerSlashCommands.bind(apis.discordBots),
17011
+ ...bindMethods(apis.discordBots, [
17012
+ "getDiscordBots",
17013
+ "getDiscordBot",
17014
+ "createDiscordBot",
17015
+ "updateDiscordBot",
17016
+ "deleteDiscordBot",
17017
+ "registerLinkedRolesMetadata",
17018
+ "getDiscordThreads",
17019
+ "getDiscordGuilds",
17020
+ "getDiscordBotAccounts",
17021
+ "getMyCredentials",
17022
+ "unlinkCredential",
17023
+ "completeDiscordLink",
17024
+ "discordLinkPreflight"
17025
+ ]),
17026
+ ...bindMethods(apis.slackApps, [
17027
+ "getSlackApps",
17028
+ "getSlackApp",
17029
+ "createSlackApp",
17030
+ "updateSlackApp",
17031
+ "deleteSlackApp",
17032
+ "getSlackThreads",
17033
+ "getSlackInstallations",
17034
+ "removeSlackAccount",
17035
+ "removeSlackInstallation",
17036
+ "getSlackChannelChoices",
17037
+ "getSlackEntryPoints",
17038
+ "connectSlackEntryPoint",
17039
+ "getSlackAppAccounts"
17040
+ ]),
17041
+ ...bindMethods(apis.teamsApps, [
17042
+ "getTeamsApps",
17043
+ "getTeamsApp",
17044
+ "createTeamsApp",
17045
+ "updateTeamsApp",
17046
+ "deleteTeamsApp",
17047
+ "getTeamsConversations",
17048
+ "getTeamsInstallations",
17049
+ "getTeamsAppAccounts"
17050
+ ]),
17051
+ ...bindMethods(apis.fhirConnections, [
17052
+ "getFhirConnections",
17053
+ "getFhirConnection",
17054
+ "getFhirConnectionByUuid",
17055
+ "createFhirConnection",
17056
+ "updateFhirConnection",
17057
+ "deleteFhirConnection",
17058
+ "testFhirConnection",
17059
+ "fhirSearchPatients",
17060
+ "fhirSearchPractitioners",
17061
+ "fhirSearchLocations",
17062
+ "fhirFetchCareTeam",
17063
+ "fhirFetchEncounters",
17064
+ "fhirCreateEncounter",
17065
+ "fhirListLinkedMembers",
17066
+ "fhirCheckPatientLinks",
17067
+ "fhirLinkMember",
17068
+ "fhirUnlinkMember",
17069
+ "fhirSyncMember",
17070
+ "fhirImportPatient",
17071
+ "fhirCsvImportInspect",
17072
+ "fhirGetCsvImportSettings",
17073
+ "fhirUpdateCsvImportSettings",
17074
+ "fhirCsvImportApply",
17075
+ "fhirGetCsvImportRuns",
17076
+ "fhirGetCsvImportRunItems",
17077
+ "fhirGetEncounterSyncStatus",
17078
+ "fhirUpdateEncounterSync",
17079
+ "fhirRunEncounterSync",
17080
+ "fhirGetEncounterSyncRuns",
17081
+ "fhirRefreshEncounterPatient",
17082
+ "fhirBackfillEncounterSync",
17083
+ "getFhirConnectionSyncConfig",
17084
+ "getAthenaPlatformApp",
17085
+ "verifyAthenaAccess",
17086
+ "connectAthena"
17087
+ ]),
17088
+ ...bindMethods(apis.patientSyncConnections, [
17089
+ "configurePatientSync",
17090
+ "getPatientSyncStatus",
17091
+ "deletePatientSyncConnection"
17092
+ ]),
17093
+ ...bindMethods(apis.documoFax, [
17094
+ "getDocumoFaxStatus",
17095
+ "getDocumoFaxSetup",
17096
+ "listDocumoFaxes",
17097
+ "installDocumoFax",
17098
+ "configureDocumoFax",
17099
+ "verifyDocumoFax",
17100
+ "rotateDocumoFaxCredentials"
17101
+ ]),
17102
+ ...bindMethods(apis.claimMd, [
17103
+ "getClaimMdStatus",
17104
+ "installClaimMd",
17105
+ "configureClaimMd",
17106
+ "verifyClaimMdKey"
17107
+ ]),
17108
+ ...bindMethods(apis.stedi, ["getStediConnections", "getStediConnectionStatus"]),
17109
+ ...bindMethods(apis.healthie, [
17110
+ "configureHealthie",
17111
+ "getHealthieStatus",
17112
+ "listHealthieProviders",
17113
+ "linkCalendarToHealthie",
17114
+ "unlinkCalendarFromHealthie",
17115
+ "syncCalendarWithHealthie",
17116
+ "getLinkedHealthieMembers",
17117
+ "getHealthieReconciliationMatches",
17118
+ "getHealthieAppointmentPatientMatches",
17119
+ "linkMemberToHealthie",
17120
+ "unlinkMemberFromHealthie",
17121
+ "listHealthieAppointmentTypes",
17122
+ "listHealthiePatients",
17123
+ "getHealthieAvailableSlots",
17124
+ "bookHealthieAppointment"
17125
+ ]),
17126
+ ...bindMethods(apis.confluence, [
17127
+ "configureConfluence",
17128
+ "startConfluenceOAuth",
17129
+ "getConfluenceStatus",
17130
+ "disconnectConfluence",
17131
+ "disableConfluence",
17132
+ "enableConfluence",
17133
+ "deleteConfluence",
17134
+ "listConfluenceSpaces",
17135
+ "listConfluencePages"
17136
+ ]),
17137
+ ...bindMethods(apis.salesforce, [
17138
+ "installSalesforce",
17139
+ "configureSalesforce",
17140
+ "startSalesforceOAuth",
17141
+ "getSalesforceStatus",
17142
+ "disconnectSalesforce",
17143
+ "disableSalesforce",
17144
+ "enableSalesforce",
17145
+ "deleteSalesforce",
17146
+ "getSalesforceReconciliationMatches",
17147
+ "linkMemberToSalesforce",
17148
+ "linkUnlinkedSalesforceMembersByIdentity",
17149
+ "bulkLinkMembersToSalesforce",
17150
+ "unlinkMemberFromSalesforce",
17151
+ "getLinkedSalesforceMembers",
17152
+ "getSalesforceSyncConfig",
17153
+ "getSalesforceSyncLogs",
17154
+ "updateSalesforceSyncConfig",
17155
+ "validateSalesforceSyncConfig",
17156
+ "resyncSalesforceLinkedMembers",
17157
+ "listSalesforceObjects",
17158
+ "describeSalesforceObject",
17159
+ "searchSalesforceRecords",
17160
+ "importSalesforceMembers"
17161
+ ]),
17162
+ ...bindMethods(apis.hubspot, [
17163
+ "bindHubspotCalendar",
17164
+ "unlinkHubspotCalendar",
17165
+ "importHubspotCalendarEvents",
17166
+ "getHubspotBookingReceipt",
17167
+ "releaseHubspotBookingAttempt",
17168
+ "installHubspot",
17169
+ "configureHubspot",
17170
+ "startHubspotOAuth",
17171
+ "getHubspotStatus",
17172
+ "disconnectHubspot",
17173
+ "switchHubspotToPlatformApp",
17174
+ "disableHubspot",
17175
+ "enableHubspot",
17176
+ "deleteHubspot",
17177
+ "getHubspotReconciliationMatches",
17178
+ "linkMemberToHubspot",
17179
+ "bulkLinkMembersToHubspot",
17180
+ "unlinkMemberFromHubspot",
17181
+ "getLinkedHubspotMembers",
17182
+ "searchHubspotRecords",
17183
+ "importHubspotMembers",
17184
+ "getHubspotContactProperties",
17185
+ "getHubspotDealProperties",
17186
+ "getHubspotDealPipelines",
17187
+ "getHubspotForms",
17188
+ "getHubspotMeetingLinks",
17189
+ "getHubspotCrmObjects",
17190
+ "getHubspotObjectProperties",
17191
+ "getHubspotManagedRules",
17192
+ "getHubspotSyncLogs",
17193
+ "getHubspotTransformPresets"
17194
+ ]),
17195
+ ...bindMethods(apis.connectionSync, [
17196
+ "getConnectionSyncCapabilities",
17197
+ "getConnectionSyncConfig",
17198
+ "updateConnectionSyncConfig",
17199
+ "validateConnectionSyncConfig",
17200
+ "getConnectionSyncCheckpoint",
17201
+ "startSyncRun",
17202
+ "getSyncRuns",
17203
+ "getSyncRunItems",
17204
+ "getSyncRunItemsPage",
17205
+ "getMemberSyncSummary",
17206
+ "getSyncFailureSummary",
17207
+ "getSyncFailures",
17208
+ "getConnectionFieldHomes",
17209
+ "getInboundRecordStatus",
17210
+ "getOwnerMemberStatus",
17211
+ "getConnectionWritePreview",
17212
+ "clearConnectionMemberExclusion",
17213
+ "linkUnlinkedMembersByIdentity",
17214
+ "listSubsetImports",
17215
+ "getSubsetImport",
17216
+ "createSubsetImport",
17217
+ "updateSubsetImport",
17218
+ "deleteSubsetImport",
17219
+ "previewSubsetImportSelection",
17220
+ "previewSubsetImport",
17221
+ "runSubsetImport",
17222
+ "cancelSubsetImport",
17223
+ "listSubsetImportRuns",
17224
+ "listSubsetImportVendorLists",
17225
+ "listSubsetImportFilterFields"
17226
+ ]),
17227
+ ...bindMethods(apis.appConnections, [
17228
+ "listAvailableAppConnections",
17229
+ "listAppConnections",
17230
+ "enablePlatformApp",
17231
+ "configureZendeskConnection",
17232
+ "getPlatformApp",
17233
+ "updatePlatformApp",
17234
+ "deletePlatformApp",
17235
+ "listConnectionMemberFieldKeys",
17236
+ "setDefaultGooglePlatformAccount"
17237
+ ])
17238
+ };
17201
17239
  }
17202
17240
 
17203
17241
  // src/client/bindings/operator-groups.ts
@@ -17240,6 +17278,10 @@ function bindOrgMethods(target, org) {
17240
17278
  target.listLegalEntities = org.listLegalEntities.bind(org);
17241
17279
  target.getLegalEntity = org.getLegalEntity.bind(org);
17242
17280
  target.createLegalEntity = org.createLegalEntity.bind(org);
17281
+ target.getBusinessImportColumns = org.getBusinessImportColumns.bind(org);
17282
+ target.getBusinessImportTemplate = org.getBusinessImportTemplate.bind(org);
17283
+ target.previewBusinessImport = org.previewBusinessImport.bind(org);
17284
+ target.importBusinesses = org.importBusinesses.bind(org);
17243
17285
  target.getRegistrationDraft = org.getRegistrationDraft.bind(org);
17244
17286
  target.saveRegistrationDraft = org.saveRegistrationDraft.bind(org);
17245
17287
  target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
@@ -17566,6 +17608,8 @@ var GravityRailClient = class {
17566
17608
  // Chats API
17567
17609
  chat;
17568
17610
  getChats;
17611
+ queryOrgChats;
17612
+ countOrgChats;
17569
17613
  getChat;
17570
17614
  getChatAttention;
17571
17615
  getChatByUuid;
@@ -17690,6 +17734,7 @@ var GravityRailClient = class {
17690
17734
  // Org-scoped, so deliberately absent from WORKSPACE_METHOD_NAMES: that proxy
17691
17735
  // passes a workspace uuid as the first argument.
17692
17736
  getOrgWorkspaceMember;
17737
+ searchOrgWorkspaceMembers;
17693
17738
  createWorkspaceMember;
17694
17739
  updateMember;
17695
17740
  deleteMember;
@@ -17756,16 +17801,9 @@ var GravityRailClient = class {
17756
17801
  getAgentTask;
17757
17802
  cancelAgentTask;
17758
17803
  getAgentTaskMessages;
17759
- // Agents API
17760
- getAgents;
17761
- getAgent;
17762
- createAgent;
17763
- updateAgent;
17764
- deleteAgent;
17765
- archiveAgent;
17766
- unarchiveAgent;
17767
- getOrgAgentJobs;
17768
- stopOrgAgentJob;
17804
+ // Org Agent Jobs API
17805
+ getBotJobs;
17806
+ stopBotJob;
17769
17807
  // Qualifications API
17770
17808
  getQualifications;
17771
17809
  getQualification;
@@ -17845,6 +17883,7 @@ var GravityRailClient = class {
17845
17883
  queryOrgActivityOneView;
17846
17884
  queryOrgActivityDigest;
17847
17885
  getOrgActivityCounts;
17886
+ listOrgWidgetWorkspaces;
17848
17887
  queryWorkspaceActivity;
17849
17888
  queryWorkspaceActivityLatestSubjects;
17850
17889
  queryWorkspaceActivityOpenItems;
@@ -18087,6 +18126,10 @@ var GravityRailClient = class {
18087
18126
  listLegalEntities;
18088
18127
  getLegalEntity;
18089
18128
  createLegalEntity;
18129
+ getBusinessImportColumns;
18130
+ getBusinessImportTemplate;
18131
+ previewBusinessImport;
18132
+ importBusinesses;
18090
18133
  getRegistrationDraft;
18091
18134
  saveRegistrationDraft;
18092
18135
  getVoiceTrustProducts;
@@ -18435,6 +18478,7 @@ var GravityRailClient = class {
18435
18478
  linkPhoneNumber;
18436
18479
  getInboxes;
18437
18480
  getInbox;
18481
+ getChatSenderInboxes;
18438
18482
  createInbox;
18439
18483
  updateInbox;
18440
18484
  deleteInbox;
@@ -18460,6 +18504,7 @@ var GravityRailClient = class {
18460
18504
  updateNotificationRule;
18461
18505
  deleteNotificationRule;
18462
18506
  getNotificationDestinations;
18507
+ getNotificationDelivery;
18463
18508
  // Toolkits API
18464
18509
  getToolkits;
18465
18510
  getTool;
@@ -18636,7 +18681,6 @@ var GravityRailClient = class {
18636
18681
  getTeamsConversations;
18637
18682
  getTeamsInstallations;
18638
18683
  getTeamsAppAccounts;
18639
- getTeamsNotificationDelivery;
18640
18684
  // FHIR Connections API
18641
18685
  getFhirConnections;
18642
18686
  getFhirConnection;
@@ -18763,6 +18807,7 @@ var GravityRailClient = class {
18763
18807
  importHubspotMembers;
18764
18808
  getHubspotContactProperties;
18765
18809
  getHubspotDealProperties;
18810
+ getHubspotDealPipelines;
18766
18811
  getHubspotForms;
18767
18812
  getHubspotMeetingLinks;
18768
18813
  getHubspotCrmObjects;
@@ -18920,7 +18965,7 @@ var GravityRailClient = class {
18920
18965
  bindDevicesMethods(this, apis.devices);
18921
18966
  bindMembersMethods(this, apis.members);
18922
18967
  bindAgentTasksMethods(this, apis.agentTasks);
18923
- bindAgentsMethods(this, apis.agents);
18968
+ bindBotJobsMethods(this, apis.botJobs);
18924
18969
  bindQualificationsMethods(this, apis.qualifications);
18925
18970
  bindPersonasMethods(this, apis.personas);
18926
18971
  bindMetricsMethods(this, apis.metrics);
@@ -18967,24 +19012,7 @@ var GravityRailClient = class {
18967
19012
  apis.oauth,
18968
19013
  apis.oauthConnections
18969
19014
  );
18970
- bindIntegrationsMethods(
18971
- this,
18972
- apis.mondayIntegration,
18973
- apis.discordBots,
18974
- apis.slackApps,
18975
- apis.teamsApps,
18976
- apis.fhirConnections,
18977
- apis.patientSyncConnections,
18978
- apis.healthie,
18979
- apis.documoFax,
18980
- apis.claimMd,
18981
- apis.stedi,
18982
- apis.salesforce,
18983
- apis.hubspot,
18984
- apis.appConnections,
18985
- apis.connectionSync,
18986
- apis.confluence
18987
- );
19015
+ Object.assign(this, createIntegrationsBindings(apis));
18988
19016
  bindPronunciationsMethods(this, apis.pronunciations);
18989
19017
  bindOrganizationBillingMethods(this, apis.customers);
18990
19018
  bindResellersMethods(this, apis.resellers);
@@ -19264,7 +19292,6 @@ var NotificationRuleBuilder = class extends WorkspaceBuilderResource {
19264
19292
  this.prompt = options.prompt ?? options.message;
19265
19293
  this.notifySms = Boolean(options.notifySms ?? options.notify_sms);
19266
19294
  this.notifyEmail = Boolean(options.notifyEmail ?? options.notify_email);
19267
- this.notifyVoice = Boolean(options.notifyVoice ?? options.notify_voice);
19268
19295
  }
19269
19296
  name;
19270
19297
  noticeType;
@@ -19273,7 +19300,6 @@ var NotificationRuleBuilder = class extends WorkspaceBuilderResource {
19273
19300
  prompt;
19274
19301
  notifySms;
19275
19302
  notifyEmail;
19276
- notifyVoice;
19277
19303
  planLine() {
19278
19304
  const parts = [];
19279
19305
  if (this.memberId !== void 0) parts.push(`memberId=${this.memberId}`);
@@ -19291,8 +19317,7 @@ var NotificationRuleBuilder = class extends WorkspaceBuilderResource {
19291
19317
  workflowId: this.workflow?._id,
19292
19318
  prompt: this.prompt ?? null,
19293
19319
  notifySms: this.notifySms,
19294
- notifyEmail: this.notifyEmail,
19295
- notifyVoice: this.notifyVoice
19320
+ notifyEmail: this.notifyEmail
19296
19321
  };
19297
19322
  const result = await client.createNotificationRule(payload);
19298
19323
  this._id = result.id;
@@ -19462,7 +19487,7 @@ var MemberLabelBuilder = class extends WorkspaceBuilderResource {
19462
19487
  this.description = description;
19463
19488
  }
19464
19489
  matchKey() {
19465
- return this.slug;
19490
+ return this.name;
19466
19491
  }
19467
19492
  planLine() {
19468
19493
  return `Label: ${this.name} (slug=${this.slug})`;
@@ -20360,12 +20385,10 @@ var WorkflowBuilder = class extends WorkspaceBuilderResource {
20360
20385
  this.name = name;
20361
20386
  this.description = options.description ?? "";
20362
20387
  this.prompt = options.prompt;
20363
- this.copyFromAgentId = options.copyFromAgentId;
20364
20388
  }
20365
20389
  name;
20366
20390
  description;
20367
20391
  prompt;
20368
- copyFromAgentId;
20369
20392
  tasks = [];
20370
20393
  abilities = [];
20371
20394
  /** The DRAFT revision's id — where tasks and graph edits attach.
@@ -20418,7 +20441,6 @@ var WorkflowBuilder = class extends WorkspaceBuilderResource {
20418
20441
  description: this.description,
20419
20442
  createMode: "taskless",
20420
20443
  ...this.prompt ? { prompt: this.prompt } : {},
20421
- ...this.copyFromAgentId ? { copyFromAgentId: this.copyFromAgentId } : {},
20422
20444
  ...this.abilities.length ? { abilities: this.abilities.map((ability) => ability.toAbility()) } : {}
20423
20445
  };
20424
20446
  const result = await client.createWorkflow(payload);
@@ -20428,59 +20450,11 @@ var WorkflowBuilder = class extends WorkspaceBuilderResource {
20428
20450
  this._created = true;
20429
20451
  }
20430
20452
  };
20431
- var AgentBuilder = class extends WorkspaceBuilderResource {
20432
- constructor(name, options = {}) {
20433
- super();
20434
- this.name = name;
20435
- this.chatModelId = options.chatModelId ?? options.chat_model_id ?? "";
20436
- this.systemPrompt = options.systemPrompt ?? options.system_prompt ?? "";
20437
- this.memberRoleId = options.roleId ?? options.role_id;
20438
- this.tools = options.tools ?? [];
20439
- this.codeInterpreterEnabled = options.codeInterpreterEnabled ?? options.code_interpreter_enabled ?? false;
20440
- this.webBrowserEnabled = options.webBrowserEnabled ?? options.web_browser_enabled ?? false;
20441
- }
20442
- name;
20443
- chatModelId;
20444
- systemPrompt;
20445
- memberRoleId;
20446
- tools;
20447
- codeInterpreterEnabled;
20448
- webBrowserEnabled;
20449
- planLine() {
20450
- const parts = [];
20451
- if (this.chatModelId) parts.push(`model=${this.chatModelId}`);
20452
- if (this.tools.length) parts.push(`${this.tools.length} tools`);
20453
- return `Agent: ${this.name}${parts.length ? ` (${parts.join(", ")})` : ""}`;
20454
- }
20455
- async apply(client) {
20456
- if (this._existed) return;
20457
- if (this.memberRoleId === void 0) {
20458
- throw new Error(`Agent '${this.name}' requires memberRoleId`);
20459
- }
20460
- if (!this.chatModelId) {
20461
- throw new Error(`Agent '${this.name}' requires chatModelId`);
20462
- }
20463
- const payload = {
20464
- name: this.name,
20465
- memberRoleId: this.memberRoleId,
20466
- chatModelId: this.chatModelId,
20467
- systemPrompt: this.systemPrompt,
20468
- ...this.tools.length ? { tools: this.tools } : {},
20469
- ...this.codeInterpreterEnabled ? { codeInterpreterEnabled: true } : {},
20470
- ...this.webBrowserEnabled ? { webBrowserEnabled: true } : {}
20471
- };
20472
- const result = await client.createAgent(payload);
20473
- this._id = result.id;
20474
- this._uuid = result.uuid;
20475
- this._created = true;
20476
- }
20477
- };
20478
20453
 
20479
20454
  // src/workspace-builder/orchestrator.ts
20480
20455
  var PHASES = /* @__PURE__ */ new Map([
20481
20456
  [FormBuilder, 0],
20482
20457
  [MemberLabelBuilder, 0],
20483
- [AgentBuilder, 1],
20484
20458
  [WorkflowBuilder, 2],
20485
20459
  [TaskBuilder, 3],
20486
20460
  [MemberFilterBuilder, 5],
@@ -20552,11 +20526,6 @@ var WorkspaceBuilder = class {
20552
20526
  this.resources.push(journey);
20553
20527
  return journey;
20554
20528
  }
20555
- agent(name, options = {}) {
20556
- const agent = new AgentBuilder(name, options);
20557
- this.resources.push(agent);
20558
- return agent;
20559
- }
20560
20529
  routine(name, cronSchedule = "", options = {}) {
20561
20530
  const routine = new RoutineBuilder(name, cronSchedule, options);
20562
20531
  this.resources.push(routine);
@@ -20739,10 +20708,10 @@ Done! Created ${count} resources.`);
20739
20708
  const formSlugs = new Map(
20740
20709
  resources.filter((resource) => resource instanceof FormBuilder).map((resource) => [resource.slug, resource])
20741
20710
  );
20742
- const labelSlugs = new Map(
20711
+ const labelNames = new Map(
20743
20712
  resources.filter(
20744
20713
  (resource) => resource instanceof MemberLabelBuilder
20745
- ).map((resource) => [resource.slug, resource])
20714
+ ).map((resource) => [resource.name, resource])
20746
20715
  );
20747
20716
  const workflowNames = new Map(
20748
20717
  resources.filter((resource) => resource instanceof WorkflowBuilder).map((resource) => [resource.name, resource])
@@ -20754,10 +20723,10 @@ Done! Created ${count} resources.`);
20754
20723
  }
20755
20724
  }
20756
20725
  }
20757
- if (labelSlugs.size) {
20726
+ if (labelNames.size) {
20758
20727
  for (const existing of await this.client.getMemberLabels()) {
20759
- if (existing.slug && labelSlugs.has(existing.slug)) {
20760
- labelSlugs.get(existing.slug).adopt(existing);
20728
+ if (existing.name && labelNames.has(existing.name)) {
20729
+ labelNames.get(existing.name).adopt(existing);
20761
20730
  }
20762
20731
  }
20763
20732
  }
@@ -20800,18 +20769,6 @@ Done! Created ${count} resources.`);
20800
20769
  builder.adopt(await this.client.getJourneyAuthoring(existing.id));
20801
20770
  }
20802
20771
  }
20803
- const agentNames = new Map(
20804
- resources.filter((resource) => resource instanceof AgentBuilder).map((resource) => [resource.name, resource])
20805
- );
20806
- if (agentNames.size) {
20807
- for (const existing of await collectPages(
20808
- (page) => this.client.getAgents({ page, pageSize: LIST_PAGE_SIZE })
20809
- )) {
20810
- if (existing.name && agentNames.has(existing.name)) {
20811
- agentNames.get(existing.name).adopt(existing);
20812
- }
20813
- }
20814
- }
20815
20772
  const routineNames = new Map(
20816
20773
  resources.filter((resource) => resource instanceof RoutineBuilder).map((resource) => [resource.name, resource])
20817
20774
  );
@@ -21082,7 +21039,6 @@ function resourceKey(resource) {
21082
21039
  if (resource instanceof RoutineBuilder) return "routines";
21083
21040
  if (resource instanceof NotificationRuleBuilder) return "notificationRules";
21084
21041
  if (resource instanceof JourneyBuilder) return "journeys";
21085
- if (resource instanceof AgentBuilder) return "agents";
21086
21042
  return "resources";
21087
21043
  }
21088
21044
  var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS = [
@@ -21184,7 +21140,6 @@ function writeScopeForResource(resource) {
21184
21140
  if (resource instanceof WorkflowBuilder || resource instanceof TaskBuilder) {
21185
21141
  return "workflows:write";
21186
21142
  }
21187
- if (resource instanceof AgentBuilder) return "agents:write";
21188
21143
  if (resource instanceof MemberLabelBuilder || resource instanceof MemberFilterBuilder) {
21189
21144
  return "members:write";
21190
21145
  }
@@ -22818,6 +22773,43 @@ var ChatInteractionController = class {
22818
22773
  }
22819
22774
  };
22820
22775
 
22776
+ // src/helpers/business-import.ts
22777
+ function toSafeRow(row, legalEntityUuid) {
22778
+ return {
22779
+ row: row.row,
22780
+ action: row.action,
22781
+ legalEntityUuid: legalEntityUuid ?? void 0,
22782
+ proposedChanges: row.proposedChanges,
22783
+ reason: row.reason ?? void 0,
22784
+ error: row.error ?? void 0
22785
+ };
22786
+ }
22787
+ function toSafeIssue({ row, column, columnPosition, code }) {
22788
+ return { row, column, columnPosition, code };
22789
+ }
22790
+ function toSafeBusinessImportPreview(preview) {
22791
+ return {
22792
+ previewPlanToken: preview.previewPlanToken,
22793
+ totalRows: preview.totalRows,
22794
+ summary: preview.summary,
22795
+ rows: preview.rows.map((row) => toSafeRow(row, row.match?.legalEntityUuid)),
22796
+ ignoredColumnPositions: preview.ignoredColumnPositions,
22797
+ issues: preview.issues?.map(toSafeIssue),
22798
+ issueCount: preview.issueCount
22799
+ };
22800
+ }
22801
+ function toSafeBusinessImportResult(result) {
22802
+ return {
22803
+ importId: result.importId,
22804
+ totalRows: result.totalRows,
22805
+ summary: result.summary,
22806
+ rows: result.rows.map((row) => toSafeRow(row, row.legalEntityUuid)),
22807
+ ignoredColumnPositions: result.ignoredColumnPositions,
22808
+ issues: result.issues?.map(toSafeIssue),
22809
+ issueCount: result.issueCount
22810
+ };
22811
+ }
22812
+
22821
22813
  // src/helpers/member-import.ts
22822
22814
  function toSafeMemberImportPreview(preview) {
22823
22815
  return {
@@ -22960,7 +22952,6 @@ function pathDraftToStorage(draft, original) {
22960
22952
  ActivityVisibility,
22961
22953
  ActivityWindowBasis,
22962
22954
  ActorKind,
22963
- AgentBuilder,
22964
22955
  AiConnectorPolicy,
22965
22956
  AiDisclosure,
22966
22957
  ApiError,
@@ -23218,6 +23209,8 @@ function pathDraftToStorage(draft, original) {
23218
23209
  pathDraftToStorage,
23219
23210
  requiresAssistantParticipant,
23220
23211
  runWorkspaceScript,
23212
+ toSafeBusinessImportPreview,
23213
+ toSafeBusinessImportResult,
23221
23214
  toSafeMemberImportPreview,
23222
23215
  toSafeMemberImportSummary,
23223
23216
  usesBuiltinAssistant,