@gravity-rail/sdk 2.0.0 → 3.1.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 (38) hide show
  1. package/README.md +18 -9
  2. package/dist/{chat-interaction-CGDgA4K_.d.cts → chat-interaction-ClNfn1UV.d.cts} +1997 -850
  3. package/dist/{chat-interaction-DjV6mYaY.d.ts → chat-interaction-DwH4z1qk.d.ts} +1997 -850
  4. package/dist/{chunk-SVRE6KIM.js → chunk-ANVLMZLD.js} +496 -104
  5. package/dist/chunk-ANVLMZLD.js.map +1 -0
  6. package/dist/{chunk-GCN4OMYU.js → chunk-RLFS7O2L.js} +4 -1
  7. package/dist/{chunk-GCN4OMYU.js.map → chunk-RLFS7O2L.js.map} +1 -1
  8. package/dist/helpers.cjs.map +1 -1
  9. package/dist/helpers.d.cts +6 -4
  10. package/dist/helpers.d.ts +6 -4
  11. package/dist/helpers.js +1 -1
  12. package/dist/helpers.js.map +1 -1
  13. package/dist/index.cjs +535 -125
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +26 -10
  16. package/dist/index.d.ts +26 -10
  17. package/dist/index.js +39 -25
  18. package/dist/index.js.map +1 -1
  19. package/dist/internal.cjs +497 -102
  20. package/dist/internal.cjs.map +1 -1
  21. package/dist/internal.d.cts +99 -6
  22. package/dist/internal.d.ts +99 -6
  23. package/dist/internal.js +2 -2
  24. package/dist/internal.js.map +1 -1
  25. package/dist/{member-import-DVHDjWwi.d.ts → member-import-D-_eJBE7.d.ts} +1 -1
  26. package/dist/{member-import-C1IsFkQm.d.cts → member-import-IN06xJrR.d.cts} +1 -1
  27. package/dist/{path-Bd99SxC1.d.cts → path-D4S8xYyo.d.ts} +18 -3
  28. package/dist/{path-CZxFBfjw.d.ts → path-D_KPlBIr.d.cts} +18 -3
  29. package/dist/schemas.cjs +57 -6
  30. package/dist/schemas.cjs.map +1 -1
  31. package/dist/schemas.d.cts +111 -43
  32. package/dist/schemas.d.ts +111 -43
  33. package/dist/schemas.js +53 -6
  34. package/dist/schemas.js.map +1 -1
  35. package/dist/{tasks-C8TrcAV8.d.cts → tasks-C8sHnwH5.d.cts} +52 -11
  36. package/dist/{tasks-C8TrcAV8.d.ts → tasks-C8sHnwH5.d.ts} +52 -11
  37. package/package.json +4 -3
  38. package/dist/chunk-SVRE6KIM.js.map +0 -1
package/dist/internal.cjs CHANGED
@@ -438,6 +438,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
438
438
  Scope2["CHATS_READ"] = "chats:read";
439
439
  Scope2["CHATS_WRITE"] = "chats:write";
440
440
  Scope2["CHATS_ADMIN"] = "chats:admin";
441
+ Scope2["DEMOS_RUN"] = "demos:run";
441
442
  Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
442
443
  Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
443
444
  Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
@@ -688,6 +689,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
688
689
  EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
689
690
  EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
690
691
  EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
692
+ EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
691
693
  EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
692
694
  EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
693
695
  EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
@@ -733,6 +735,7 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
733
735
  EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
734
736
  EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
735
737
  EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
738
+ EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
736
739
  EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
737
740
  EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
738
741
  EventRuleActionType2["SMS_SEND"] = "sms:send";
@@ -779,9 +782,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
779
782
  WorkspaceFeature2["BROWSER"] = "browser";
780
783
  WorkspaceFeature2["WEB_SEARCH"] = "web_search";
781
784
  WorkspaceFeature2["CALENDAR"] = "calendar";
782
- WorkspaceFeature2["JOURNEY_V2_EDITOR"] = "journey_v2_editor";
783
- WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
784
- WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
785
785
  WorkspaceFeature2["GMAIL"] = "gmail";
786
786
  WorkspaceFeature2["GCALENDAR"] = "gcalendar";
787
787
  WorkspaceFeature2["GDRIVE"] = "gdrive";
@@ -801,6 +801,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
801
801
  WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
802
802
  WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
803
803
  WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
804
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
805
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
806
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
807
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
808
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
804
809
  return WorkspaceFeature2;
805
810
  })(WorkspaceFeature || {});
806
811
  var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
@@ -1525,6 +1530,7 @@ var AbilityTypeSlugs = {
1525
1530
  // Tools
1526
1531
  TOOLKITS: "tools:toolkits",
1527
1532
  WEB_SEARCH: "tools:web_search",
1533
+ WEB_BROWSER: "tools:web_browser",
1528
1534
  CONVERSATION_HISTORY: "tools:conversation_history",
1529
1535
  MEMBER_MEMORY: "memory:member_memory",
1530
1536
  IMAGE_GENERATION: "tools:image_generation",
@@ -2487,6 +2493,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
2487
2493
  ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
2488
2494
  ScopeCategory2["MEMBER_ROLES"] = "member_roles";
2489
2495
  ScopeCategory2["CHATS"] = "chats";
2496
+ ScopeCategory2["DEMOS"] = "demos";
2490
2497
  ScopeCategory2["DM"] = "dm";
2491
2498
  ScopeCategory2["WORKFLOWS"] = "workflows";
2492
2499
  ScopeCategory2["ASSIGNMENTS"] = "assignments";
@@ -2603,6 +2610,11 @@ var SCOPES = {
2603
2610
  category: "chats" /* CHATS */,
2604
2611
  description: "View all conversations"
2605
2612
  },
2613
+ "demos:run": {
2614
+ name: "demos:run",
2615
+ category: "demos" /* DEMOS */,
2616
+ description: "Start and interact with your own synthetic patient demos"
2617
+ },
2606
2618
  "chats:write": {
2607
2619
  name: "chats:write",
2608
2620
  category: "chats" /* CHATS */,
@@ -3492,6 +3504,9 @@ ${formattedErrors}`, response.status);
3492
3504
  const headers = new Headers({
3493
3505
  ...options?.headers || {}
3494
3506
  });
3507
+ if (typeof options?.body === "string" && !headers.has("Content-Type")) {
3508
+ headers.set("Content-Type", "application/json");
3509
+ }
3495
3510
  if (this.apiKey) {
3496
3511
  headers.set("Authorization", `Bearer ${this.apiKey}`);
3497
3512
  }
@@ -4506,6 +4521,18 @@ var AuthApi = class extends BaseApiClient {
4506
4521
  async getUserAccount() {
4507
4522
  return this.fetch("account");
4508
4523
  }
4524
+ /** Active, undismissed product notices for this account across workspaces. */
4525
+ async getAccountNotices() {
4526
+ return this.fetch("account/notices");
4527
+ }
4528
+ async viewAccountNotice(id) {
4529
+ return this.fetch(`account/notices/${encodeURIComponent(id)}/view`, { method: "PUT" });
4530
+ }
4531
+ async dismissAccountNotice(id) {
4532
+ return this.fetch(`account/notices/${encodeURIComponent(id)}/dismiss`, {
4533
+ method: "PUT"
4534
+ });
4535
+ }
4509
4536
  /** Update the authenticated user's account information. */
4510
4537
  async updateUserAccount(info) {
4511
4538
  return this.fetch("account", {
@@ -5607,24 +5634,6 @@ var ChatsApi = class extends BaseApiClient {
5607
5634
  `w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
5608
5635
  );
5609
5636
  }
5610
- /** List the background-work thread hanging off a message.
5611
- *
5612
- * When a tool trajectory outgrows its turn it detaches and runs in the
5613
- * background (ADR-11 / forked trajectories), writing its messages as a
5614
- * child thread parented at the fork point. Main-history reads exclude
5615
- * them, so this is how the "show work" affordance fetches them — lazily,
5616
- * only when a message with a non-zero `childMessageCount` is expanded.
5617
- * Returns the thread in chronological order, empty when there is none.
5618
- *
5619
- * `messageUuid` is the fork point's `ChatMessage.id`. */
5620
- async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
5621
- const params = new URLSearchParams();
5622
- params.append("limit", limit.toString());
5623
- params.append("offset", offset.toString());
5624
- return this.fetch(
5625
- `w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
5626
- );
5627
- }
5628
5637
  /** List messages associated with a specific tool call in a chat. */
5629
5638
  async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
5630
5639
  const params = new URLSearchParams();
@@ -6407,12 +6416,6 @@ var DiscordBotsApi = class extends BaseApiClient {
6407
6416
  async getDiscordBot(wid, botId) {
6408
6417
  return this.fetch(`w/${wid}/app-connections/discord/bots/${botId}`);
6409
6418
  }
6410
- /**
6411
- * Get a Discord bot by UUID.
6412
- */
6413
- async getDiscordBotByUuid(wid, uuid) {
6414
- return this.fetch(`w/${wid}/app-connections/discord/bots/uuid/${uuid}`);
6415
- }
6416
6419
  /**
6417
6420
  * Create a new Discord bot configuration.
6418
6421
  */
@@ -6730,6 +6733,7 @@ var EventsApi = class extends BaseApiClient {
6730
6733
  /** List event rules in the workspace, paginated. */
6731
6734
  async getEventRules(wid, params) {
6732
6735
  const query2 = new URLSearchParams();
6736
+ if (params?.search) query2.set("search", params.search);
6733
6737
  if (params?.page !== void 0) query2.set("page", String(params.page));
6734
6738
  if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
6735
6739
  const qs = query2.toString() ? `?${query2.toString()}` : "";
@@ -6947,7 +6951,7 @@ var ExperimentsApi = class extends BaseApiClient {
6947
6951
  const query2 = new URLSearchParams();
6948
6952
  if (params?.page !== void 0) query2.set("page", String(params.page));
6949
6953
  if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
6950
- if (params?.includeArchived) query2.set("includeArchived", "true");
6954
+ if (params?.archived !== void 0) query2.set("archived", String(params.archived));
6951
6955
  const qs = query2.toString() ? `?${query2.toString()}` : "";
6952
6956
  return this.fetch(`w/${wid}/experiments${qs}`);
6953
6957
  }
@@ -7086,6 +7090,22 @@ var FhirConnectionsApi = class extends BaseApiClient {
7086
7090
  async getFhirConnectionByUuid(wid, uuid) {
7087
7091
  return this.fetch(`w/${wid}/app-connections/fhir/connections/uuid/${uuid}`);
7088
7092
  }
7093
+ /**
7094
+ * The connection's sync configuration, with the eCW encounter-sync runtime
7095
+ * state (`connectionParams.ecwEncounterSyncState`) typed.
7096
+ *
7097
+ * This is the generic connector sync-config route (the same one
7098
+ * `ConnectionSyncApi.getConnectionSyncConfig` wraps), not a FHIR-only
7099
+ * path. It is the one read that still returns the encounter
7100
+ * watermark for a workspace whose eCW feature flag is off: the
7101
+ * encounter-sync status route is flag-gated, while this route requires
7102
+ * only `apps:read`.
7103
+ */
7104
+ async getFhirConnectionSyncConfig(wid, connectionId) {
7105
+ return this.fetch(
7106
+ `w/${wid}/app-connections/${connectionId}/sync-config`
7107
+ );
7108
+ }
7089
7109
  /**
7090
7110
  * Create a new FHIR connection configuration.
7091
7111
  */
@@ -7760,6 +7780,21 @@ var FilesApi = class extends BaseApiClient {
7760
7780
  method: "DELETE"
7761
7781
  });
7762
7782
  }
7783
+ /** Queue indexing of an individual File, including a File without a folder. */
7784
+ async reindexFile(wid, id) {
7785
+ return this.fetch(`w/${wid}/files/${id}/reindex`, {
7786
+ method: "POST",
7787
+ body: JSON.stringify({})
7788
+ });
7789
+ }
7790
+ /** Search the current indexed version of an individual File. */
7791
+ async searchFile(wid, id, params) {
7792
+ const searchParams = new URLSearchParams({ query: params.query });
7793
+ if (params.topK !== void 0) searchParams.append("top_k", params.topK.toString());
7794
+ return this.fetch(
7795
+ `w/${wid}/files/${id}/search?${searchParams.toString()}`
7796
+ );
7797
+ }
7763
7798
  /** Trigger reindexing of a folder's contents for search. */
7764
7799
  async reindexFolder(wid, id) {
7765
7800
  return this.fetch(`w/${wid}/folders/${id}/reindex`, {
@@ -7920,9 +7955,20 @@ function bytesToBase64(bytes) {
7920
7955
 
7921
7956
  // src/api/inboxes.ts
7922
7957
  var InboxesApi = class extends BaseApiClient {
7923
- /** List all inboxes in a workspace. */
7924
- async getInboxes(wid) {
7925
- return this.fetch(`w/${wid}/inboxes`);
7958
+ /**
7959
+ * List inboxes in a workspace.
7960
+ *
7961
+ * `isArchived` picks the half of the archive switch: omitted (or `false`) is
7962
+ * the Active list, `true` the Archived one. The server defaults to active,
7963
+ * so a caller that never passes it sees usable inboxes only.
7964
+ */
7965
+ async getInboxes(wid, options) {
7966
+ const params = new URLSearchParams();
7967
+ if (options?.isArchived !== void 0) {
7968
+ params.set("is_archived", String(options.isArchived));
7969
+ }
7970
+ const query2 = params.toString();
7971
+ return this.fetch(`w/${wid}/inboxes${query2 ? `?${query2}` : ""}`);
7926
7972
  }
7927
7973
  /**
7928
7974
  * Get an inbox by ID or UUID.
@@ -7949,17 +7995,45 @@ var InboxesApi = class extends BaseApiClient {
7949
7995
  body: JSON.stringify(inbox)
7950
7996
  });
7951
7997
  }
7952
- /** Delete an inbox. */
7998
+ /** Delete an inbox and its emails. Prefer {@link archiveInbox}. */
7953
7999
  async deleteInbox(wid, id) {
7954
8000
  return this.fetch(`w/${wid}/inboxes/${id}`, {
7955
8001
  method: "DELETE"
7956
8002
  });
7957
8003
  }
7958
- /** List emails in an inbox with pagination and optional attachment inclusion. */
8004
+ /**
8005
+ * Archive an inbox: it leaves the Active list, refuses new mail and new
8006
+ * sends, and keeps every email it already holds. One-way.
8007
+ *
8008
+ * Refused with a 400 while a Workflow uses the inbox as its default or an
8009
+ * EventRule sends from it — read {@link getInboxArchiveBlockers} first to
8010
+ * explain that before committing.
8011
+ */
8012
+ async archiveInbox(wid, id) {
8013
+ return this.fetch(`w/${wid}/inboxes/${id}/archive`, {
8014
+ method: "POST",
8015
+ // The route requires a JSON body as a CSRF barrier; `{}` is enough.
8016
+ body: JSON.stringify({})
8017
+ });
8018
+ }
8019
+ /**
8020
+ * What still points at this inbox: Workflows whose default inbox it is, and
8021
+ * EventRules that send from it. `canArchive` is the authoritative answer.
8022
+ */
8023
+ async getInboxArchiveBlockers(wid, id) {
8024
+ return this.fetch(`w/${wid}/inboxes/${id}/archive-blockers`);
8025
+ }
8026
+ /**
8027
+ * List emails in an inbox with pagination, optional attachment inclusion,
8028
+ * a `search` term (sender or subject) and a sort.
8029
+ */
7959
8030
  async getInboxEmails(wid, inboxId, options = {}) {
7960
8031
  const params = new URLSearchParams();
7961
8032
  if (options.page) params.append("page", options.page.toString());
7962
8033
  if (options.pageSize) params.append("pageSize", options.pageSize.toString());
8034
+ if (options.search) params.append("search", options.search);
8035
+ if (options.sortBy) params.append("sortBy", options.sortBy);
8036
+ if (options.sortOrder) params.append("sortOrder", options.sortOrder);
7963
8037
  if (options.includeAttachments)
7964
8038
  params.append("include_attachments", options.includeAttachments.toString());
7965
8039
  return this.fetch(
@@ -8073,9 +8147,15 @@ var InboxesApi = class extends BaseApiClient {
8073
8147
  `w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
8074
8148
  );
8075
8149
  }
8076
- /** List email threads in an inbox. */
8077
- async getInboxThreads(wid, inboxId) {
8078
- return this.fetch(`w/${wid}/inboxes/${inboxId}/threads`);
8150
+ /** List email threads in an inbox, `limit` threads from `offset`. */
8151
+ async getInboxThreads(wid, inboxId, options = {}) {
8152
+ const params = new URLSearchParams();
8153
+ if (options.limit !== void 0) params.append("limit", options.limit.toString());
8154
+ if (options.offset) params.append("offset", options.offset.toString());
8155
+ const query2 = params.toString();
8156
+ return this.fetch(
8157
+ `w/${wid}/inboxes/${inboxId}/threads${query2 ? `?${query2}` : ""}`
8158
+ );
8079
8159
  }
8080
8160
  /** List emails in a thread by assignment ID with pagination. */
8081
8161
  async getThreadEmails(wid, inboxId, assignmentId, options = {}) {
@@ -9629,6 +9709,47 @@ var OperatorApi = class extends BaseApiClient {
9629
9709
 
9630
9710
  // src/api/org.ts
9631
9711
  var OrgApi = class extends BaseApiClient {
9712
+ async getOrgManagerChats(org, cursor) {
9713
+ return this.fetch(
9714
+ `o/${encodeURIComponent(org)}/manager/chats${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`
9715
+ );
9716
+ }
9717
+ async createOrgManagerChat(org, title) {
9718
+ return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
9719
+ method: "POST",
9720
+ body: JSON.stringify({ title })
9721
+ });
9722
+ }
9723
+ async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
9724
+ return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
9725
+ method: "POST",
9726
+ body: JSON.stringify({ orgUuid, chatId, callId }),
9727
+ cache: "no-store"
9728
+ });
9729
+ }
9730
+ async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
9731
+ return this.fetch(
9732
+ `o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
9733
+ { cache: "no-store" }
9734
+ );
9735
+ }
9736
+ async getOrgManagerMessages(org, chatId, before) {
9737
+ return this.fetch(
9738
+ `o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
9739
+ );
9740
+ }
9741
+ async stopOrgManagerTurn(org, chatId) {
9742
+ return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/stop`, {
9743
+ method: "POST",
9744
+ body: JSON.stringify({})
9745
+ });
9746
+ }
9747
+ async startOrgManagerTurn(org, chatId, body) {
9748
+ return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/turns`, {
9749
+ method: "POST",
9750
+ body: JSON.stringify(body)
9751
+ });
9752
+ }
9632
9753
  /**
9633
9754
  * Get organization by ID or UUID.
9634
9755
  * Returns different response based on user's role:
@@ -9878,6 +9999,7 @@ var OrgApi = class extends BaseApiClient {
9878
9999
  if (options?.page) params.set("page", String(options.page));
9879
10000
  if (options?.pageSize) params.set("pageSize", String(options.pageSize));
9880
10001
  if (options?.search) params.set("search", options.search);
10002
+ if (options?.label) params.set("label", options.label);
9881
10003
  return this.fetch(
9882
10004
  `o/${orgIdOrUuid}/workspaces/summary?${params}`
9883
10005
  );
@@ -9945,7 +10067,8 @@ var OrgApi = class extends BaseApiClient {
9945
10067
  });
9946
10068
  }
9947
10069
  /**
9948
- * Search for available phone numbers to purchase from Twilio.
10070
+ * Search available numbers. Use `mobile` for AU and `local` or `toll_free`
10071
+ * for US; the server defaults to US local when the type is omitted.
9949
10072
  */
9950
10073
  async searchPhoneNumbers(orgUuid, params) {
9951
10074
  const query2 = new URLSearchParams();
@@ -9962,8 +10085,9 @@ var OrgApi = class extends BaseApiClient {
9962
10085
  /**
9963
10086
  * Purchase a phone number from Twilio for this org inventory (org admin only).
9964
10087
  *
9965
- * Numbers in regulated countries (e.g. Australia) require a Twilio regulatory
9966
- * bundle and an address — pass `bundleSid` and `addressSid` for those.
10088
+ * Australian mobile numbers require an approved business registration. Pass
10089
+ * `legalEntityUuid`; the server resolves its bundle and address. Do not pass
10090
+ * `bundleSid` or `addressSid` for Australian purchases.
9967
10091
  */
9968
10092
  async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
9969
10093
  return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
@@ -9972,11 +10096,31 @@ var OrgApi = class extends BaseApiClient {
9972
10096
  phoneNumber,
9973
10097
  numberType,
9974
10098
  country: opts?.country,
10099
+ legalEntityUuid: opts?.legalEntityUuid,
9975
10100
  bundleSid: opts?.bundleSid,
9976
10101
  addressSid: opts?.addressSid
9977
10102
  })
9978
10103
  });
9979
10104
  }
10105
+ async getNumberRegistration(orgUuid, entityUuid) {
10106
+ return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration`);
10107
+ }
10108
+ async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
10109
+ const body = new FormData();
10110
+ body.append("file", file);
10111
+ body.append("documentType", documentType);
10112
+ body.append("requirementName", requirementName);
10113
+ return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents`, {
10114
+ method: "POST",
10115
+ body
10116
+ });
10117
+ }
10118
+ async submitNumberRegistration(orgUuid, entityUuid) {
10119
+ return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit`, {
10120
+ method: "POST",
10121
+ body: JSON.stringify({})
10122
+ });
10123
+ }
9980
10124
  /**
9981
10125
  * Delete a phone number from the org (releases from Twilio).
9982
10126
  */
@@ -10023,7 +10167,9 @@ var OrgApi = class extends BaseApiClient {
10023
10167
  * Delete a registered organization domain.
10024
10168
  */
10025
10169
  async deleteOrgDomain(orgIdOrUuid, domainUuid) {
10026
- await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, { method: "DELETE" });
10170
+ await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
10171
+ method: "DELETE"
10172
+ });
10027
10173
  }
10028
10174
  /**
10029
10175
  * Enable email DNS provisioning for a verified org domain.
@@ -10197,17 +10343,20 @@ var OrgApi = class extends BaseApiClient {
10197
10343
  });
10198
10344
  }
10199
10345
  /**
10200
- * Activate SMS on a workspace-assigned number: attach it to the given
10201
- * brand's Messaging Service (A2P 10DLC). Preconditions (412 otherwise):
10202
- * campaign VERIFIED, brand has a Messaging Service, phone assigned to a
10203
- * workspace with a Twilio SID.
10346
+ * Enable sending on a workspace-assigned number: attach it to the
10347
+ * Messaging Service of the given brand's campaign (A2P 10DLC).
10348
+ *
10349
+ * `campaignUuid` names the campaign to attach the number to, including the
10350
+ * brand's first; omit it to target the brand's first campaign. Preconditions
10351
+ * (412 otherwise): campaign VERIFIED, brand has a Messaging Service, phone
10352
+ * assigned to a workspace with a Twilio SID.
10204
10353
  */
10205
- async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
10354
+ async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid, campaignUuid) {
10206
10355
  return this.fetch(
10207
10356
  `o/${orgUuid}/phone-numbers/a2p/activate-number`,
10208
10357
  {
10209
10358
  method: "POST",
10210
- body: JSON.stringify({ providerPhoneUuid, brandUuid })
10359
+ body: JSON.stringify({ providerPhoneUuid, brandUuid, campaignUuid })
10211
10360
  }
10212
10361
  );
10213
10362
  }
@@ -10224,7 +10373,10 @@ var OrgApi = class extends BaseApiClient {
10224
10373
  * entity's business profile must be approved (400 otherwise).
10225
10374
  */
10226
10375
  async attachPhoneVoiceTrust(orgUuid, providerPhoneUuid, legalEntityUuid) {
10227
- const body = { providerPhoneUuid, legalEntityUuid };
10376
+ const body = {
10377
+ providerPhoneUuid,
10378
+ legalEntityUuid
10379
+ };
10228
10380
  return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/attach`, {
10229
10381
  method: "POST",
10230
10382
  body: JSON.stringify(body)
@@ -10388,23 +10540,53 @@ var OrgApi = class extends BaseApiClient {
10388
10540
  `o/${orgUuid}/a2p-brands/${brandUuid}/use-cases`
10389
10541
  );
10390
10542
  }
10543
+ /**
10544
+ * Add a draft campaign to a brand. `sourceCampaignUuid` goes in an optional
10545
+ * JSON body; omitting it copies the brand's first campaign. The draft
10546
+ * reaches no provider until it is submitted. A sole-proprietor brand is
10547
+ * refused.
10548
+ */
10549
+ async createA2PCampaign(orgUuid, brandUuid, data = {}) {
10550
+ return this.fetch(`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns`, {
10551
+ method: "POST",
10552
+ body: JSON.stringify(data)
10553
+ });
10554
+ }
10555
+ /**
10556
+ * Submit a later campaign that has never been submitted. The caller must be
10557
+ * an org admin with recent 2FA, and the billing owner on subscription
10558
+ * billing (the submission buys the campaign's vetting). The brand's first
10559
+ * campaign is submitted by approving its sample messages during registration;
10560
+ * an ineligible campaign comes back as a structured 409 with a `code`. A brand
10561
+ * that no longer reads approved at the carrier, or a use case it no longer
10562
+ * allows, is a 400 with no `code`.
10563
+ */
10564
+ async submitA2PCampaign(orgUuid, brandUuid, campaignUuid) {
10565
+ return this.fetch(
10566
+ `o/${orgUuid}/a2p-brands/${brandUuid}/campaigns/${encodeURIComponent(campaignUuid)}/submit`,
10567
+ { method: "POST" }
10568
+ );
10569
+ }
10391
10570
  /**
10392
10571
  * Fetch a brand's resolved A2P campaign config. The response carries both the
10393
10572
  * raw `overrides` and the `resolved` payload (defaults + overrides) the editor
10394
- * previews — including the canonical SMS consent text.
10573
+ * previews — including the canonical SMS consent text. `campaignUuid` names
10574
+ * one of the brand's campaigns; without it the brand's first is read.
10395
10575
  */
10396
- async getA2PCampaignConfig(orgUuid, brandUuid) {
10576
+ async getA2PCampaignConfig(orgUuid, brandUuid, options) {
10397
10577
  return this.fetch(
10398
- `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`
10578
+ `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`
10399
10579
  );
10400
10580
  }
10401
10581
  /**
10402
10582
  * Partial-update a brand's A2P campaign config. Returns the freshly resolved
10403
10583
  * config so the editor's live preview updates without a second round-trip.
10584
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
10585
+ * first is updated.
10404
10586
  */
10405
- async updateA2PCampaignConfig(orgUuid, brandUuid, data) {
10587
+ async updateA2PCampaignConfig(orgUuid, brandUuid, data, options) {
10406
10588
  return this.fetch(
10407
- `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`,
10589
+ `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`,
10408
10590
  {
10409
10591
  method: "PUT",
10410
10592
  body: JSON.stringify(data)
@@ -10414,10 +10596,12 @@ var OrgApi = class extends BaseApiClient {
10414
10596
  /**
10415
10597
  * Resubmit a campaign the carrier rejected, with the brand's current
10416
10598
  * campaign copy. Edits the campaign in place, so no second vetting fee.
10599
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
10600
+ * first is resubmitted.
10417
10601
  */
10418
- async resubmitA2PCampaign(orgUuid, brandUuid) {
10602
+ async resubmitA2PCampaign(orgUuid, brandUuid, options) {
10419
10603
  return this.fetch(
10420
- `o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign`,
10604
+ `o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign${campaignQuery(options)}`,
10421
10605
  { method: "POST" }
10422
10606
  );
10423
10607
  }
@@ -10433,11 +10617,13 @@ var OrgApi = class extends BaseApiClient {
10433
10617
  }
10434
10618
  /**
10435
10619
  * Link the brand to a published enrollment Site (sets `site_uuid`). Returns
10436
- * the refreshed campaign config.
10620
+ * the refreshed campaign config. `campaignUuid` names one of the brand's
10621
+ * campaigns; without it the brand's first campaign is written. Only a first
10622
+ * campaign may link a site.
10437
10623
  */
10438
- async linkA2PEnrollmentSite(orgUuid, brandUuid, data) {
10624
+ async linkA2PEnrollmentSite(orgUuid, brandUuid, data, options) {
10439
10625
  return this.fetch(
10440
- `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
10626
+ `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
10441
10627
  {
10442
10628
  method: "PUT",
10443
10629
  body: JSON.stringify(data)
@@ -10449,20 +10635,25 @@ var OrgApi = class extends BaseApiClient {
10449
10635
  * the explicit counterpart to the automatic provisioning at brand
10450
10636
  * registration. `workspaceUuid` is required only when the org has multiple
10451
10637
  * workspaces. Returns the refreshed campaign config. Idempotent.
10638
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
10639
+ * first campaign is written. Only a first campaign may link a site.
10452
10640
  */
10453
- async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}) {
10641
+ async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}, options) {
10454
10642
  return this.fetch(
10455
- `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision`,
10643
+ `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision${campaignQuery(options)}`,
10456
10644
  {
10457
10645
  method: "POST",
10458
10646
  body: JSON.stringify(data)
10459
10647
  }
10460
10648
  );
10461
10649
  }
10462
- /** Clear the brand's enrollment-site link. */
10463
- async unlinkA2PEnrollmentSite(orgUuid, brandUuid) {
10650
+ /**
10651
+ * Clear the brand's enrollment-site link. `campaignUuid` names one of the
10652
+ * brand's campaigns; without it the brand's first campaign is cleared.
10653
+ */
10654
+ async unlinkA2PEnrollmentSite(orgUuid, brandUuid, options) {
10464
10655
  return this.fetch(
10465
- `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
10656
+ `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
10466
10657
  { method: "DELETE" }
10467
10658
  );
10468
10659
  }
@@ -10470,10 +10661,12 @@ var OrgApi = class extends BaseApiClient {
10470
10661
  * Stage one A2P opt-in evidence file: get a presigned POST to send the bytes
10471
10662
  * straight to storage. Nothing is recorded on the brand until
10472
10663
  * {@link registerA2PEvidenceUpload} reads the object back and normalizes it.
10664
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
10665
+ * first campaign is written.
10473
10666
  */
10474
- async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data) {
10667
+ async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data, options) {
10475
10668
  return this.fetch(
10476
- `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url`,
10669
+ `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url${campaignQuery(options)}`,
10477
10670
  {
10478
10671
  method: "POST",
10479
10672
  body: JSON.stringify(data)
@@ -10481,25 +10674,29 @@ var OrgApi = class extends BaseApiClient {
10481
10674
  );
10482
10675
  }
10483
10676
  /**
10484
- * Normalize a staged evidence upload and record it on the brand. Returns the
10485
- * refreshed campaign config, so the editor's evidence list updates without a
10486
- * second round trip.
10677
+ * Normalize a staged evidence upload and record it on the campaign. Returns
10678
+ * the refreshed campaign config, so the editor's evidence list updates
10679
+ * without a second round trip. `campaignUuid` names one of the brand's
10680
+ * campaigns; without it the brand's first campaign is written.
10487
10681
  */
10488
- async registerA2PEvidenceUpload(orgUuid, brandUuid, data) {
10682
+ async registerA2PEvidenceUpload(orgUuid, brandUuid, data, options) {
10489
10683
  return this.fetch(
10490
- `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments`,
10684
+ `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments${campaignQuery(options)}`,
10491
10685
  {
10492
10686
  method: "POST",
10493
10687
  body: JSON.stringify(data)
10494
10688
  }
10495
10689
  );
10496
10690
  }
10497
- /** Remove one uploaded evidence artifact. */
10498
- async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid) {
10691
+ /**
10692
+ * Remove one uploaded evidence artifact. `campaignUuid` names one of the
10693
+ * brand's campaigns; without it the brand's first campaign is written.
10694
+ */
10695
+ async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid, options) {
10499
10696
  return this.fetch(
10500
10697
  `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/${encodeURIComponent(
10501
10698
  attachmentUuid
10502
- )}`,
10699
+ )}${campaignQuery(options)}`,
10503
10700
  { method: "DELETE" }
10504
10701
  );
10505
10702
  }
@@ -10555,9 +10752,13 @@ var OrgApi = class extends BaseApiClient {
10555
10752
  method: "DELETE"
10556
10753
  });
10557
10754
  }
10558
- async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
10755
+ async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0, filters = {}) {
10756
+ const params = new URLSearchParams({ limit: String(limit), offset: String(offset) });
10757
+ if (filters.status) params.set("status", filters.status);
10758
+ if (filters.occurredAfter) params.set("occurredAfter", filters.occurredAfter);
10759
+ if (filters.occurredBefore) params.set("occurredBefore", filters.occurredBefore);
10559
10760
  return this.fetch(
10560
- `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
10761
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?${params}`
10561
10762
  );
10562
10763
  }
10563
10764
  async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
@@ -10724,6 +10925,9 @@ var OrgApi = class extends BaseApiClient {
10724
10925
  function businessProfilePath(orgUuid, legalEntityUuid) {
10725
10926
  return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
10726
10927
  }
10928
+ function campaignQuery(options) {
10929
+ return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
10930
+ }
10727
10931
 
10728
10932
  // src/api/oauth.ts
10729
10933
  function getOAuthPath(providerSlug, action) {
@@ -10840,6 +11044,13 @@ function appendAnalyticsFilters(params, filters) {
10840
11044
  filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
10841
11045
  filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
10842
11046
  }
11047
+ function appendPhoneLogFilters(params, filters) {
11048
+ if (!filters) return;
11049
+ if (filters.inbound !== void 0) params.set("inbound", String(filters.inbound));
11050
+ if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
11051
+ if (filters.dateTo) params.set("dateTo", filters.dateTo);
11052
+ if (filters.otherNumber) params.set("otherNumber", filters.otherNumber);
11053
+ }
10843
11054
  var PhoneNumbersApi = class extends BaseApiClient {
10844
11055
  /** List phone numbers in a workspace, optionally including archived. */
10845
11056
  async getPhoneNumbers(wid, options) {
@@ -10914,16 +11125,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
10914
11125
  if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
10915
11126
  if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
10916
11127
  if (filters?.dateTo) params.set("dateTo", filters.dateTo);
11128
+ if (filters?.otherNumber) params.set("otherNumber", filters.otherNumber);
10917
11129
  if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
10918
11130
  return this.fetch(`w/${wid}/calls?${params}`);
10919
11131
  }
11132
+ /**
11133
+ * One time-ordered page over a number's calls, texts and voicemails.
11134
+ *
11135
+ * Paged by keyset: pass the previous page's `nextCursor` as `cursor` to get
11136
+ * the entries after it. A new entry at the head cannot repeat or skip one.
11137
+ * `modalities` limits the feed to some of the logs.
11138
+ */
11139
+ async getPhoneNumberActivity(wid, id, options = {}) {
11140
+ const params = new URLSearchParams({ pageSize: String(options.pageSize ?? 25) });
11141
+ if (options.cursor) params.set("cursor", options.cursor);
11142
+ options.modalities?.forEach((modality) => params.append("modality", modality));
11143
+ appendPhoneLogFilters(params, options);
11144
+ return this.fetch(`w/${wid}/phone-numbers/${id}/activity?${params}`);
11145
+ }
10920
11146
  /** List paginated voicemails for a phone number. */
10921
- async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status) {
11147
+ async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status, filters) {
10922
11148
  const params = new URLSearchParams({
10923
11149
  page: String(page),
10924
11150
  page_size: String(pageSize)
10925
11151
  });
10926
11152
  if (status) params.set("status", status);
11153
+ appendPhoneLogFilters(params, filters);
10927
11154
  return this.fetch(
10928
11155
  `w/${wid}/phone-numbers/${id}/voicemails?${params}`
10929
11156
  );
@@ -10949,9 +11176,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
10949
11176
  pageSize: String(pageSize)
10950
11177
  });
10951
11178
  if (filters?.status) params.set("status", filters.status);
10952
- if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
10953
- if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
10954
- if (filters?.dateTo) params.set("dateTo", filters.dateTo);
11179
+ appendPhoneLogFilters(params, filters);
10955
11180
  return this.fetch(
10956
11181
  `w/${wid}/phone-numbers/${id}/messages?${params}`
10957
11182
  );
@@ -11216,6 +11441,7 @@ var PersonasApi = class extends BaseApiClient {
11216
11441
  body: JSON.stringify(data)
11217
11442
  });
11218
11443
  }
11444
+ /** Archives the Persona and its current test Member. Returns 409 while a test chat is open. */
11219
11445
  async archivePersona(wid, id) {
11220
11446
  return this.fetch(`w/${wid}/personas/${id}/archive`, {
11221
11447
  method: "POST",
@@ -11240,8 +11466,7 @@ var MetricsApi = class extends BaseApiClient {
11240
11466
  const q = new URLSearchParams();
11241
11467
  if (params?.page !== void 0) q.set("page", String(params.page));
11242
11468
  if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
11243
- if (params?.includeArchived !== void 0)
11244
- q.set("includeArchived", String(params.includeArchived));
11469
+ if (params?.archived !== void 0) q.set("archived", String(params.archived));
11245
11470
  if (params?.source) q.set("source", params.source);
11246
11471
  const qs = q.toString() ? `?${q.toString()}` : "";
11247
11472
  return this.fetch(`w/${wid}/metrics${qs}`);
@@ -11285,6 +11510,18 @@ var MetricsApi = class extends BaseApiClient {
11285
11510
  `w/${wid}/metrics/${metricId}/series?${q.toString()}`
11286
11511
  );
11287
11512
  }
11513
+ /**
11514
+ * Series for several metrics in one request, each with its default
11515
+ * aggregation. Items come back in the order the ids were given.
11516
+ */
11517
+ async getMetricSeriesBatch(wid, params) {
11518
+ const q = new URLSearchParams();
11519
+ for (const id of params.metricIds) q.append("metricIds", String(id));
11520
+ q.set("start", params.start);
11521
+ q.set("end", params.end);
11522
+ if (params.bucket) q.set("bucket", params.bucket);
11523
+ return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
11524
+ }
11288
11525
  /** On-demand compute of enabled chat-source metrics for one chat. */
11289
11526
  async computeChatMetrics(wid, data) {
11290
11527
  return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
@@ -11560,9 +11797,12 @@ var QualificationsApi = class extends BaseApiClient {
11560
11797
  );
11561
11798
  }
11562
11799
  async evaluateTestChatRun(wid, runId) {
11563
- await this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`, {
11564
- method: "POST"
11565
- });
11800
+ return this.fetch(
11801
+ `w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`,
11802
+ {
11803
+ method: "POST"
11804
+ }
11805
+ );
11566
11806
  }
11567
11807
  /** Manually end a test chat run (for human-driven runs, which have no
11568
11808
  * simulator workflow to mark them completed). */
@@ -11973,11 +12213,29 @@ var ConnectionSyncApi = class extends BaseApiClient {
11973
12213
  `w/${wid}/app-connections/${connectionId}/sync/member-summary`
11974
12214
  );
11975
12215
  }
11976
- async getSyncRunItems(wid, connectionId, runId, limit = 500) {
12216
+ /**
12217
+ * One page of a run's items. ``cursor`` is the previous page's
12218
+ * ``nextCursor`` and continues in the requested direction; exhaustion comes
12219
+ * from ``hasMore``, never from the returned row count.
12220
+ */
12221
+ async getSyncRunItemsPage(wid, connectionId, runId, options) {
12222
+ const params = new URLSearchParams();
12223
+ if (options?.limit != null) params.set("limit", String(options.limit));
12224
+ if (options?.newestFirst) params.set("newest_first", "true");
12225
+ if (options?.cursor) params.set("cursor", options.cursor);
12226
+ const qs = params.toString() ? `?${params.toString()}` : "";
11977
12227
  return this.fetch(
11978
- `w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items?limit=${limit}`
12228
+ `w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items${qs}`
11979
12229
  );
11980
12230
  }
12231
+ /**
12232
+ * The run's items as a flat list. Kept for the published CLI surface; the
12233
+ * server returns the canonical cursor page, and this unwraps its ``items``.
12234
+ */
12235
+ async getSyncRunItems(wid, connectionId, runId, limit = 500) {
12236
+ const page = await this.getSyncRunItemsPage(wid, connectionId, runId, { limit });
12237
+ return page.items;
12238
+ }
11981
12239
  /**
11982
12240
  * Clear a manual-unlink exclusion for a member on a connection so
11983
12241
  * subsequent outbound syncs stop silently skipping them. Idempotent:
@@ -12097,6 +12355,20 @@ var ConnectionSyncApi = class extends BaseApiClient {
12097
12355
 
12098
12356
  // src/api/hubspot.ts
12099
12357
  var HubspotApi = class extends BaseApiClient {
12358
+ async getHubspotBookingReceipt(wid, meetingId) {
12359
+ return this.fetch(
12360
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/receipt`
12361
+ );
12362
+ }
12363
+ async releaseHubspotBookingAttempt(wid, meetingId, data) {
12364
+ return this.fetch(
12365
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/release`,
12366
+ {
12367
+ method: "POST",
12368
+ body: JSON.stringify(data)
12369
+ }
12370
+ );
12371
+ }
12100
12372
  /**
12101
12373
  * Create the HubSpot connection shell (no credentials yet).
12102
12374
  *
@@ -12253,6 +12525,37 @@ var HubspotApi = class extends BaseApiClient {
12253
12525
 
12254
12526
  // src/api/sites.ts
12255
12527
  var SitesApi = class extends BaseApiClient {
12528
+ /** Start a fresh synthetic patient session on the Site's configured Workflow. */
12529
+ async startPublicDemo(wid, siteUuid, request) {
12530
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
12531
+ method: "POST",
12532
+ body: JSON.stringify(request)
12533
+ });
12534
+ }
12535
+ /** Read only a demo the acting Member drives. */
12536
+ async getPublicDemo(wid, siteUuid, runId) {
12537
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
12538
+ }
12539
+ /** End this visitor's run and release its test resources. */
12540
+ async endPublicDemo(wid, siteUuid, runId) {
12541
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
12542
+ method: "POST",
12543
+ keepalive: true,
12544
+ body: JSON.stringify({})
12545
+ });
12546
+ }
12547
+ async sendPublicDemoMessage(wid, siteUuid, runId, request) {
12548
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
12549
+ method: "POST",
12550
+ body: JSON.stringify(request)
12551
+ });
12552
+ }
12553
+ async submitPublicDemoForm(wid, siteUuid, runId, request) {
12554
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
12555
+ method: "PUT",
12556
+ body: JSON.stringify(request)
12557
+ });
12558
+ }
12256
12559
  /** List all sites in a workspace. */
12257
12560
  async getSites(wid) {
12258
12561
  return this.fetch(`w/${wid}/sites`);
@@ -12292,6 +12595,15 @@ var SitesApi = class extends BaseApiClient {
12292
12595
  async getSiteSource(wid, siteId) {
12293
12596
  return this.fetch(`w/${wid}/sites/${siteId}/source`);
12294
12597
  }
12598
+ /** List source release revisions from newest to oldest. */
12599
+ async getSiteSourceReleases(wid, siteId, options = {}) {
12600
+ const params = new URLSearchParams();
12601
+ if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
12602
+ if (options.limit != null) params.set("limit", String(options.limit));
12603
+ return this.fetch(
12604
+ `w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
12605
+ );
12606
+ }
12295
12607
  /** Starter templates the caller may seed (superuser-only ones filtered server-side). */
12296
12608
  async getSiteSourceTemplates(wid, siteId) {
12297
12609
  return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
@@ -13304,6 +13616,8 @@ var JourneysApi = class extends BaseApiClient {
13304
13616
  async getJourneys(wid, includeArchived = false, pageOpts) {
13305
13617
  const query2 = new URLSearchParams();
13306
13618
  if (includeArchived) query2.set("include_archived", "true");
13619
+ if (pageOpts?.search) query2.set("search", pageOpts.search);
13620
+ if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
13307
13621
  if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
13308
13622
  if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
13309
13623
  const qs = query2.toString() ? `?${query2.toString()}` : "";
@@ -13660,6 +13974,12 @@ var JourneysApi = class extends BaseApiClient {
13660
13974
 
13661
13975
  // src/api/workflows.ts
13662
13976
  var WorkflowsApi = class extends BaseApiClient {
13977
+ async uploadWorkflowKnowledge(wid, id, file, relativePath) {
13978
+ const body = new FormData();
13979
+ body.append("file", file, relativePath.split("/").pop());
13980
+ body.append("relativePath", relativePath);
13981
+ return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
13982
+ }
13663
13983
  /** List all workflows in a workspace, optionally including archived ones. */
13664
13984
  async getWorkflows(wid, options = {}) {
13665
13985
  const params = new URLSearchParams();
@@ -14220,6 +14540,12 @@ var WorkspacesApi = class extends BaseApiClient {
14220
14540
  async getWorkspaces(options) {
14221
14541
  return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
14222
14542
  }
14543
+ /** One organization page reached through organization or workspace membership. */
14544
+ async getWorkspaceOrganizationDirectory(options) {
14545
+ return this.fetch(
14546
+ `w/organizations?${workspaceDirectoryParams(options)}`
14547
+ );
14548
+ }
14223
14549
  /**
14224
14550
  * Page 1 of each organization's workspace directory, in one request.
14225
14551
  * Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
@@ -14321,6 +14647,18 @@ var WorkspacesApi = class extends BaseApiClient {
14321
14647
  const url = `w/${wid}/notifications${queryString ? `?${queryString}` : ""}`;
14322
14648
  return this.fetch(url);
14323
14649
  }
14650
+ async getNotificationSubscriptions(wid) {
14651
+ return this.fetch(`w/${wid}/notifications/subscriptions`);
14652
+ }
14653
+ async updateNotificationSubscription(wid, id, enabled) {
14654
+ return this.fetch(`w/${wid}/notifications/subscriptions/${id}`, {
14655
+ method: "PATCH",
14656
+ body: JSON.stringify({ enabled })
14657
+ });
14658
+ }
14659
+ async getNotificationAudience(wid, id) {
14660
+ return this.fetch(`w/${wid}/notifications/audiences/${id}`);
14661
+ }
14324
14662
  /** Get a single notification by ID. */
14325
14663
  async getNotification(wid, id) {
14326
14664
  return this.fetch(`w/${wid}/notifications/${id}`);
@@ -14426,13 +14764,6 @@ var WorkspacesApi = class extends BaseApiClient {
14426
14764
  const qs = query2.toString() ? `?${query2.toString()}` : "";
14427
14765
  return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
14428
14766
  }
14429
- /** Create a new client workspace under a reseller workspace. */
14430
- async createClientWorkspace(wid, data) {
14431
- return this.fetch(`w/${wid}/reseller/workspaces`, {
14432
- method: "POST",
14433
- body: JSON.stringify(data)
14434
- });
14435
- }
14436
14767
  /** Get a single client workspace by ID. */
14437
14768
  async getClientWorkspace(wid, workspaceId) {
14438
14769
  return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
@@ -14542,7 +14873,9 @@ var WorkspacesApi = class extends BaseApiClient {
14542
14873
  searchParams.set("revision_mode", "active");
14543
14874
  }
14544
14875
  const qs = searchParams.toString();
14545
- const data = await this.fetch(`w/${wid}/export${qs ? `?${qs}` : ""}`);
14876
+ const data = await this.fetch(
14877
+ `w/${wid}/export${qs ? `?${qs}` : ""}`
14878
+ );
14546
14879
  this.verifyExportSelection(data, workflowId, options);
14547
14880
  return data;
14548
14881
  }
@@ -15009,6 +15342,7 @@ var WORKSPACE_METHOD_NAMES = [
15009
15342
  "archiveMemberByExternalId",
15010
15343
  "archiveMemberRelationship",
15011
15344
  "archivePersona",
15345
+ "archiveInbox",
15012
15346
  "archivePhoneNumber",
15013
15347
  "archiveStep",
15014
15348
  "archiveTask",
@@ -15082,7 +15416,6 @@ var WORKSPACE_METHOD_NAMES = [
15082
15416
  "createChatCompletion",
15083
15417
  "createChatFilter",
15084
15418
  "createChatLabel",
15085
- "createClientWorkspace",
15086
15419
  "createConnection",
15087
15420
  "createContactPermission",
15088
15421
  "createCustomTool",
@@ -15290,6 +15623,7 @@ var WORKSPACE_METHOD_NAMES = [
15290
15623
  "getApiKeys",
15291
15624
  "getArchiveBlockers",
15292
15625
  "getAthenaPlatformApp",
15626
+ "getFhirConnectionSyncConfig",
15293
15627
  "getAssignment",
15294
15628
  "getAssignmentCelContext",
15295
15629
  "getAssignmentMessages",
@@ -15348,7 +15682,6 @@ var WORKSPACE_METHOD_NAMES = [
15348
15682
  "getChats",
15349
15683
  "getChatsDailyCreationStats",
15350
15684
  "getChatsNeedsResponse",
15351
- "getChildThreadMessages",
15352
15685
  "getClientWorkspace",
15353
15686
  "getConfigurationHealth",
15354
15687
  "getConfluenceStatus",
@@ -15390,7 +15723,6 @@ var WORKSPACE_METHOD_NAMES = [
15390
15723
  "getDevices",
15391
15724
  "getDiscordBot",
15392
15725
  "getDiscordBotAccounts",
15393
- "getDiscordBotByUuid",
15394
15726
  "getDiscordBots",
15395
15727
  "getDiscordGuilds",
15396
15728
  "getDiscordThreads",
@@ -15437,6 +15769,7 @@ var WORKSPACE_METHOD_NAMES = [
15437
15769
  "getQueryFields",
15438
15770
  "getSiteSharing",
15439
15771
  "getSiteSource",
15772
+ "getSiteSourceReleases",
15440
15773
  "getSiteSourceTemplates",
15441
15774
  "getThemeSettings",
15442
15775
  "importSiteSourceZip",
@@ -15484,6 +15817,8 @@ var WORKSPACE_METHOD_NAMES = [
15484
15817
  "getHubspotObjectProperties",
15485
15818
  "getHubspotReconciliationMatches",
15486
15819
  "getHubspotStatus",
15820
+ "getHubspotBookingReceipt",
15821
+ "releaseHubspotBookingAttempt",
15487
15822
  "getHubspotSyncLogs",
15488
15823
  "getHubspotTransformPresets",
15489
15824
  "getICalFeedUrl",
@@ -15493,6 +15828,7 @@ var WORKSPACE_METHOD_NAMES = [
15493
15828
  "getInbox",
15494
15829
  "getInboxEmail",
15495
15830
  "getInboxEmails",
15831
+ "getInboxArchiveBlockers",
15496
15832
  "getInboxOutboundEmailStats",
15497
15833
  "getInboxThreads",
15498
15834
  "getInboxes",
@@ -15568,6 +15904,7 @@ var WORKSPACE_METHOD_NAMES = [
15568
15904
  "getPhoneCalls",
15569
15905
  "getPhoneCallByUuid",
15570
15906
  "getPhoneNumber",
15907
+ "getPhoneNumberActivity",
15571
15908
  "getPhoneNumberCalls",
15572
15909
  "getPhoneNumberFaxes",
15573
15910
  "getPhoneNumberMessages",
@@ -15621,6 +15958,7 @@ var WORKSPACE_METHOD_NAMES = [
15621
15958
  "getSupervisor",
15622
15959
  "getSupervisors",
15623
15960
  "getSyncRunItems",
15961
+ "getSyncRunItemsPage",
15624
15962
  "getSyncRuns",
15625
15963
  "getTask",
15626
15964
  "getTaskChats",
@@ -15743,6 +16081,7 @@ var WORKSPACE_METHOD_NAMES = [
15743
16081
  "deleteMetric",
15744
16082
  "listMetricObservations",
15745
16083
  "getMetricSeries",
16084
+ "getMetricSeriesBatch",
15746
16085
  "computeChatMetrics",
15747
16086
  "listPushSubscriptions",
15748
16087
  "listResourceWorkflows",
@@ -16073,7 +16412,6 @@ function bindChatsMethods(target, chats) {
16073
16412
  target.summarizeChat = chats.summarizeChat.bind(chats);
16074
16413
  target.getChatMessages = chats.getChatMessages.bind(chats);
16075
16414
  target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
16076
- target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
16077
16415
  target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
16078
16416
  target.getChatTools = chats.getChatTools.bind(chats);
16079
16417
  target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
@@ -16291,6 +16629,7 @@ function bindMembersMethods(target, members) {
16291
16629
  // src/client/bindings/workspaces.ts
16292
16630
  function bindWorkspacesMethods(target, workspaces, signupRequests) {
16293
16631
  target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
16632
+ target.getWorkspaceOrganizationDirectory = workspaces.getWorkspaceOrganizationDirectory.bind(workspaces);
16294
16633
  target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
16295
16634
  target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
16296
16635
  target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
@@ -16307,6 +16646,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
16307
16646
  target.getBusinessHoursStatus = workspaces.getBusinessHoursStatus.bind(workspaces);
16308
16647
  target.getAvailableWorkspaceFeatures = workspaces.getAvailableWorkspaceFeatures.bind(workspaces);
16309
16648
  target.getWorkspaceNotices = workspaces.getWorkspaceNotices.bind(workspaces);
16649
+ target.getNotificationSubscriptions = workspaces.getNotificationSubscriptions.bind(workspaces);
16650
+ target.updateNotificationSubscription = workspaces.updateNotificationSubscription.bind(workspaces);
16651
+ target.getNotificationAudience = workspaces.getNotificationAudience.bind(workspaces);
16310
16652
  target.getNotifications = workspaces.getNotifications.bind(workspaces);
16311
16653
  target.getNotification = workspaces.getNotification.bind(workspaces);
16312
16654
  target.getUnreadNotificationCount = workspaces.getUnreadNotificationCount.bind(workspaces);
@@ -16314,7 +16656,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
16314
16656
  target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
16315
16657
  target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
16316
16658
  target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
16317
- target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
16318
16659
  target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
16319
16660
  target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
16320
16661
  target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
@@ -16371,6 +16712,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
16371
16712
 
16372
16713
  // src/client/bindings/auth.ts
16373
16714
  function bindAuthMethods(target, auth, assignments) {
16715
+ target.getAccountNotices = auth.getAccountNotices.bind(auth);
16716
+ target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
16717
+ target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
16374
16718
  target.getUserAccount = auth.getUserAccount.bind(auth);
16375
16719
  target.updateUserAccount = auth.updateUserAccount.bind(auth);
16376
16720
  target.recordAcquisition = auth.recordAcquisition.bind(auth);
@@ -16432,6 +16776,11 @@ function bindAuthMethods(target, auth, assignments) {
16432
16776
 
16433
16777
  // src/client/bindings/sites.ts
16434
16778
  function bindSitesMethods(target, sites) {
16779
+ target.endPublicDemo = sites.endPublicDemo.bind(sites);
16780
+ target.startPublicDemo = sites.startPublicDemo.bind(sites);
16781
+ target.getPublicDemo = sites.getPublicDemo.bind(sites);
16782
+ target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
16783
+ target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
16435
16784
  target.getSites = sites.getSites.bind(sites);
16436
16785
  target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
16437
16786
  target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
@@ -16439,6 +16788,7 @@ function bindSitesMethods(target, sites) {
16439
16788
  target.getSiteSharing = sites.getSiteSharing.bind(sites);
16440
16789
  target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
16441
16790
  target.getSiteSource = sites.getSiteSource.bind(sites);
16791
+ target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
16442
16792
  target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
16443
16793
  target.createSiteSource = sites.createSiteSource.bind(sites);
16444
16794
  target.buildSiteSource = sites.buildSiteSource.bind(sites);
@@ -16499,6 +16849,8 @@ function bindFilesMethods(target, files) {
16499
16849
  target.createFolder = files.createFolder.bind(files);
16500
16850
  target.updateFolder = files.updateFolder.bind(files);
16501
16851
  target.deleteFolder = files.deleteFolder.bind(files);
16852
+ target.reindexFile = files.reindexFile.bind(files);
16853
+ target.searchFile = files.searchFile.bind(files);
16502
16854
  target.reindexFolder = files.reindexFolder.bind(files);
16503
16855
  target.searchFolder = files.searchFolder.bind(files);
16504
16856
  target.getFileLabels = files.getFileLabels.bind(files);
@@ -16586,6 +16938,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
16586
16938
  target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
16587
16939
  target.createWorkflow = workflows.createWorkflow.bind(workflows);
16588
16940
  target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
16941
+ target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
16589
16942
  target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
16590
16943
  target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
16591
16944
  target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
@@ -16677,6 +17030,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
16677
17030
  target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
16678
17031
  target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
16679
17032
  target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
17033
+ target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
16680
17034
  target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
16681
17035
  target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
16682
17036
  target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
@@ -16690,6 +17044,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
16690
17044
  target.createInbox = inboxes.createInbox.bind(inboxes);
16691
17045
  target.updateInbox = inboxes.updateInbox.bind(inboxes);
16692
17046
  target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
17047
+ target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
17048
+ target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
16693
17049
  target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
16694
17050
  target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
16695
17051
  target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
@@ -16851,7 +17207,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
16851
17207
  target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
16852
17208
  target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
16853
17209
  target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
16854
- target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
16855
17210
  target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
16856
17211
  target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
16857
17212
  target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
@@ -16916,6 +17271,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
16916
17271
  target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
16917
17272
  target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
16918
17273
  target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
17274
+ target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
16919
17275
  target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
16920
17276
  target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
16921
17277
  target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
@@ -16980,6 +17336,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
16980
17336
  target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
16981
17337
  target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
16982
17338
  target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
17339
+ target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
17340
+ target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
16983
17341
  target.installHubspot = hubspot.installHubspot.bind(hubspot);
16984
17342
  target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
16985
17343
  target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
@@ -17010,6 +17368,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
17010
17368
  target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
17011
17369
  target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
17012
17370
  target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
17371
+ target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
17013
17372
  target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
17014
17373
  target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
17015
17374
  target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
@@ -17056,6 +17415,13 @@ function bindOperatorMethods(target, operatorGroups) {
17056
17415
 
17057
17416
  // src/client/bindings/org.ts
17058
17417
  function bindOrgMethods(target, org) {
17418
+ target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
17419
+ target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
17420
+ target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
17421
+ target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
17422
+ target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
17423
+ target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
17424
+ target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
17059
17425
  target.listOrgDomains = org.listOrgDomains.bind(org);
17060
17426
  target.registerOrgDomain = org.registerOrgDomain.bind(org);
17061
17427
  target.getOrgDomain = org.getOrgDomain.bind(org);
@@ -17269,6 +17635,7 @@ function bindMetricsMethods(target, metrics) {
17269
17635
  target.deleteMetric = metrics.deleteMetric.bind(metrics);
17270
17636
  target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
17271
17637
  target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
17638
+ target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
17272
17639
  target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
17273
17640
  }
17274
17641
 
@@ -17418,7 +17785,6 @@ var GravityRailClient = class {
17418
17785
  summarizeChat;
17419
17786
  getChatMessages;
17420
17787
  getChatTaskTransitions;
17421
- getChildThreadMessages;
17422
17788
  getChatToolCallMessages;
17423
17789
  getChatTools;
17424
17790
  initiateOutboundCall;
@@ -17626,6 +17992,7 @@ var GravityRailClient = class {
17626
17992
  deleteMetric;
17627
17993
  listMetricObservations;
17628
17994
  getMetricSeries;
17995
+ getMetricSeriesBatch;
17629
17996
  computeChatMetrics;
17630
17997
  // Dashboards API
17631
17998
  getDashboards;
@@ -17796,6 +18163,7 @@ var GravityRailClient = class {
17796
18163
  inspectPrompt;
17797
18164
  // Workspaces API
17798
18165
  getWorkspaces;
18166
+ getWorkspaceOrganizationDirectory;
17799
18167
  getOrganizationWorkspacePages;
17800
18168
  getDeviceAdmissibleWorkspaces;
17801
18169
  getPublicWorkspaces;
@@ -17812,6 +18180,9 @@ var GravityRailClient = class {
17812
18180
  getBusinessHoursStatus;
17813
18181
  getAvailableWorkspaceFeatures;
17814
18182
  getWorkspaceNotices;
18183
+ getNotificationSubscriptions;
18184
+ updateNotificationSubscription;
18185
+ getNotificationAudience;
17815
18186
  getNotifications;
17816
18187
  getNotification;
17817
18188
  getUnreadNotificationCount;
@@ -17819,7 +18190,6 @@ var GravityRailClient = class {
17819
18190
  dismissNotification;
17820
18191
  dismissAllNotifications;
17821
18192
  getResellerWorkspaces;
17822
- createClientWorkspace;
17823
18193
  getClientWorkspace;
17824
18194
  updateClientWorkspace;
17825
18195
  deleteClientWorkspace;
@@ -17855,6 +18225,13 @@ var GravityRailClient = class {
17855
18225
  upsertWidgetDomain;
17856
18226
  deleteWidgetDomain;
17857
18227
  // Org API
18228
+ getOrgManagerCredentialResponse;
18229
+ authorizeOrgManagerDelegation;
18230
+ getOrgManagerChats;
18231
+ createOrgManagerChat;
18232
+ getOrgManagerMessages;
18233
+ startOrgManagerTurn;
18234
+ stopOrgManagerTurn;
17858
18235
  listOrgDomains;
17859
18236
  registerOrgDomain;
17860
18237
  getOrgDomain;
@@ -17929,6 +18306,9 @@ var GravityRailClient = class {
17929
18306
  declineInvitation;
17930
18307
  // Auth API
17931
18308
  getUserAccount;
18309
+ getAccountNotices;
18310
+ viewAccountNotice;
18311
+ dismissAccountNotice;
17932
18312
  updateUserAccount;
17933
18313
  recordAcquisition;
17934
18314
  login;
@@ -17986,6 +18366,11 @@ var GravityRailClient = class {
17986
18366
  getAssignmentTools;
17987
18367
  executeAssignmentTool;
17988
18368
  // Sites API
18369
+ startPublicDemo;
18370
+ endPublicDemo;
18371
+ getPublicDemo;
18372
+ sendPublicDemoMessage;
18373
+ submitPublicDemoForm;
17989
18374
  getSites;
17990
18375
  checkSiteSlugAvailability;
17991
18376
  checkSiteDomainAvailability;
@@ -17993,6 +18378,7 @@ var GravityRailClient = class {
17993
18378
  getSiteSharing;
17994
18379
  updateSiteSharing;
17995
18380
  getSiteSource;
18381
+ getSiteSourceReleases;
17996
18382
  getSiteSourceTemplates;
17997
18383
  createSiteSource;
17998
18384
  buildSiteSource;
@@ -18055,6 +18441,8 @@ var GravityRailClient = class {
18055
18441
  createFolder;
18056
18442
  updateFolder;
18057
18443
  deleteFolder;
18444
+ reindexFile;
18445
+ searchFile;
18058
18446
  reindexFolder;
18059
18447
  searchFolder;
18060
18448
  getFileLabels;
@@ -18111,6 +18499,7 @@ var GravityRailClient = class {
18111
18499
  getWorkflowsOutlineBatch;
18112
18500
  createWorkflow;
18113
18501
  updateWorkflow;
18502
+ uploadWorkflowKnowledge;
18114
18503
  getWorkflowDeletionPreview;
18115
18504
  deleteWorkflow;
18116
18505
  archiveWorkflow;
@@ -18196,6 +18585,7 @@ var GravityRailClient = class {
18196
18585
  getPhoneNumberOutboundAnalyticsSummary;
18197
18586
  getPhoneNumberOutboundAnalyticsCalls;
18198
18587
  exportPhoneNumberOutboundAnalyticsCsv;
18588
+ getPhoneNumberActivity;
18199
18589
  getPhoneNumberMessages;
18200
18590
  getPhoneNumberFaxes;
18201
18591
  getPhoneNumberVoicemails;
@@ -18209,6 +18599,8 @@ var GravityRailClient = class {
18209
18599
  createInbox;
18210
18600
  updateInbox;
18211
18601
  deleteInbox;
18602
+ archiveInbox;
18603
+ getInboxArchiveBlockers;
18212
18604
  getInboxEmails;
18213
18605
  getInboxEmail;
18214
18606
  markEmailAsRead;
@@ -18367,7 +18759,6 @@ var GravityRailClient = class {
18367
18759
  // Discord Bots API
18368
18760
  getDiscordBots;
18369
18761
  getDiscordBot;
18370
- getDiscordBotByUuid;
18371
18762
  createDiscordBot;
18372
18763
  updateDiscordBot;
18373
18764
  deleteDiscordBot;
@@ -18435,6 +18826,7 @@ var GravityRailClient = class {
18435
18826
  fhirGetEncounterSyncRuns;
18436
18827
  fhirRefreshEncounterPatient;
18437
18828
  fhirBackfillEncounterSync;
18829
+ getFhirConnectionSyncConfig;
18438
18830
  getAthenaPlatformApp;
18439
18831
  verifyAthenaAccess;
18440
18832
  connectAthena;
@@ -18503,6 +18895,8 @@ var GravityRailClient = class {
18503
18895
  searchSalesforceRecords;
18504
18896
  importSalesforceMembers;
18505
18897
  // HubSpot API
18898
+ getHubspotBookingReceipt;
18899
+ releaseHubspotBookingAttempt;
18506
18900
  installHubspot;
18507
18901
  configureHubspot;
18508
18902
  startHubspotOAuth;
@@ -18534,6 +18928,7 @@ var GravityRailClient = class {
18534
18928
  startSyncRun;
18535
18929
  getSyncRuns;
18536
18930
  getSyncRunItems;
18931
+ getSyncRunItemsPage;
18537
18932
  getMemberSyncSummary;
18538
18933
  getConnectionFieldHomes;
18539
18934
  getInboundRecordStatus;