@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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ApiError,
3
3
  BaseApiClient
4
- } from "./chunk-GCN4OMYU.js";
4
+ } from "./chunk-RLFS7O2L.js";
5
5
 
6
6
  // src/api/abilities.ts
7
7
  var AbilitiesApi = class extends BaseApiClient {
@@ -917,6 +917,18 @@ var AuthApi = class extends BaseApiClient {
917
917
  async getUserAccount() {
918
918
  return this.fetch("account");
919
919
  }
920
+ /** Active, undismissed product notices for this account across workspaces. */
921
+ async getAccountNotices() {
922
+ return this.fetch("account/notices");
923
+ }
924
+ async viewAccountNotice(id) {
925
+ return this.fetch(`account/notices/${encodeURIComponent(id)}/view`, { method: "PUT" });
926
+ }
927
+ async dismissAccountNotice(id) {
928
+ return this.fetch(`account/notices/${encodeURIComponent(id)}/dismiss`, {
929
+ method: "PUT"
930
+ });
931
+ }
920
932
  /** Update the authenticated user's account information. */
921
933
  async updateUserAccount(info) {
922
934
  return this.fetch("account", {
@@ -2018,24 +2030,6 @@ var ChatsApi = class extends BaseApiClient {
2018
2030
  `w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
2019
2031
  );
2020
2032
  }
2021
- /** List the background-work thread hanging off a message.
2022
- *
2023
- * When a tool trajectory outgrows its turn it detaches and runs in the
2024
- * background (ADR-11 / forked trajectories), writing its messages as a
2025
- * child thread parented at the fork point. Main-history reads exclude
2026
- * them, so this is how the "show work" affordance fetches them — lazily,
2027
- * only when a message with a non-zero `childMessageCount` is expanded.
2028
- * Returns the thread in chronological order, empty when there is none.
2029
- *
2030
- * `messageUuid` is the fork point's `ChatMessage.id`. */
2031
- async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
2032
- const params = new URLSearchParams();
2033
- params.append("limit", limit.toString());
2034
- params.append("offset", offset.toString());
2035
- return this.fetch(
2036
- `w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
2037
- );
2038
- }
2039
2033
  /** List messages associated with a specific tool call in a chat. */
2040
2034
  async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
2041
2035
  const params = new URLSearchParams();
@@ -2702,12 +2696,6 @@ var DiscordBotsApi = class extends BaseApiClient {
2702
2696
  async getDiscordBot(wid, botId) {
2703
2697
  return this.fetch(`w/${wid}/app-connections/discord/bots/${botId}`);
2704
2698
  }
2705
- /**
2706
- * Get a Discord bot by UUID.
2707
- */
2708
- async getDiscordBotByUuid(wid, uuid) {
2709
- return this.fetch(`w/${wid}/app-connections/discord/bots/uuid/${uuid}`);
2710
- }
2711
2699
  /**
2712
2700
  * Create a new Discord bot configuration.
2713
2701
  */
@@ -2963,6 +2951,7 @@ var EventsApi = class extends BaseApiClient {
2963
2951
  /** List event rules in the workspace, paginated. */
2964
2952
  async getEventRules(wid, params) {
2965
2953
  const query2 = new URLSearchParams();
2954
+ if (params?.search) query2.set("search", params.search);
2966
2955
  if (params?.page !== void 0) query2.set("page", String(params.page));
2967
2956
  if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
2968
2957
  const qs = query2.toString() ? `?${query2.toString()}` : "";
@@ -3226,6 +3215,22 @@ var FhirConnectionsApi = class extends BaseApiClient {
3226
3215
  async getFhirConnectionByUuid(wid, uuid) {
3227
3216
  return this.fetch(`w/${wid}/app-connections/fhir/connections/uuid/${uuid}`);
3228
3217
  }
3218
+ /**
3219
+ * The connection's sync configuration, with the eCW encounter-sync runtime
3220
+ * state (`connectionParams.ecwEncounterSyncState`) typed.
3221
+ *
3222
+ * This is the generic connector sync-config route (the same one
3223
+ * `ConnectionSyncApi.getConnectionSyncConfig` wraps), not a FHIR-only
3224
+ * path. It is the one read that still returns the encounter
3225
+ * watermark for a workspace whose eCW feature flag is off: the
3226
+ * encounter-sync status route is flag-gated, while this route requires
3227
+ * only `apps:read`.
3228
+ */
3229
+ async getFhirConnectionSyncConfig(wid, connectionId) {
3230
+ return this.fetch(
3231
+ `w/${wid}/app-connections/${connectionId}/sync-config`
3232
+ );
3233
+ }
3229
3234
  /**
3230
3235
  * Create a new FHIR connection configuration.
3231
3236
  */
@@ -3861,6 +3866,21 @@ var FilesApi = class extends BaseApiClient {
3861
3866
  method: "DELETE"
3862
3867
  });
3863
3868
  }
3869
+ /** Queue indexing of an individual File, including a File without a folder. */
3870
+ async reindexFile(wid, id) {
3871
+ return this.fetch(`w/${wid}/files/${id}/reindex`, {
3872
+ method: "POST",
3873
+ body: JSON.stringify({})
3874
+ });
3875
+ }
3876
+ /** Search the current indexed version of an individual File. */
3877
+ async searchFile(wid, id, params) {
3878
+ const searchParams = new URLSearchParams({ query: params.query });
3879
+ if (params.topK !== void 0) searchParams.append("top_k", params.topK.toString());
3880
+ return this.fetch(
3881
+ `w/${wid}/files/${id}/search?${searchParams.toString()}`
3882
+ );
3883
+ }
3864
3884
  /** Trigger reindexing of a folder's contents for search. */
3865
3885
  async reindexFolder(wid, id) {
3866
3886
  return this.fetch(`w/${wid}/folders/${id}/reindex`, {
@@ -4021,9 +4041,20 @@ function bytesToBase64(bytes) {
4021
4041
 
4022
4042
  // src/api/inboxes.ts
4023
4043
  var InboxesApi = class extends BaseApiClient {
4024
- /** List all inboxes in a workspace. */
4025
- async getInboxes(wid) {
4026
- return this.fetch(`w/${wid}/inboxes`);
4044
+ /**
4045
+ * List inboxes in a workspace.
4046
+ *
4047
+ * `isArchived` picks the half of the archive switch: omitted (or `false`) is
4048
+ * the Active list, `true` the Archived one. The server defaults to active,
4049
+ * so a caller that never passes it sees usable inboxes only.
4050
+ */
4051
+ async getInboxes(wid, options) {
4052
+ const params = new URLSearchParams();
4053
+ if (options?.isArchived !== void 0) {
4054
+ params.set("is_archived", String(options.isArchived));
4055
+ }
4056
+ const query2 = params.toString();
4057
+ return this.fetch(`w/${wid}/inboxes${query2 ? `?${query2}` : ""}`);
4027
4058
  }
4028
4059
  /**
4029
4060
  * Get an inbox by ID or UUID.
@@ -4050,17 +4081,45 @@ var InboxesApi = class extends BaseApiClient {
4050
4081
  body: JSON.stringify(inbox)
4051
4082
  });
4052
4083
  }
4053
- /** Delete an inbox. */
4084
+ /** Delete an inbox and its emails. Prefer {@link archiveInbox}. */
4054
4085
  async deleteInbox(wid, id) {
4055
4086
  return this.fetch(`w/${wid}/inboxes/${id}`, {
4056
4087
  method: "DELETE"
4057
4088
  });
4058
4089
  }
4059
- /** List emails in an inbox with pagination and optional attachment inclusion. */
4090
+ /**
4091
+ * Archive an inbox: it leaves the Active list, refuses new mail and new
4092
+ * sends, and keeps every email it already holds. One-way.
4093
+ *
4094
+ * Refused with a 400 while a Workflow uses the inbox as its default or an
4095
+ * EventRule sends from it — read {@link getInboxArchiveBlockers} first to
4096
+ * explain that before committing.
4097
+ */
4098
+ async archiveInbox(wid, id) {
4099
+ return this.fetch(`w/${wid}/inboxes/${id}/archive`, {
4100
+ method: "POST",
4101
+ // The route requires a JSON body as a CSRF barrier; `{}` is enough.
4102
+ body: JSON.stringify({})
4103
+ });
4104
+ }
4105
+ /**
4106
+ * What still points at this inbox: Workflows whose default inbox it is, and
4107
+ * EventRules that send from it. `canArchive` is the authoritative answer.
4108
+ */
4109
+ async getInboxArchiveBlockers(wid, id) {
4110
+ return this.fetch(`w/${wid}/inboxes/${id}/archive-blockers`);
4111
+ }
4112
+ /**
4113
+ * List emails in an inbox with pagination, optional attachment inclusion,
4114
+ * a `search` term (sender or subject) and a sort.
4115
+ */
4060
4116
  async getInboxEmails(wid, inboxId, options = {}) {
4061
4117
  const params = new URLSearchParams();
4062
4118
  if (options.page) params.append("page", options.page.toString());
4063
4119
  if (options.pageSize) params.append("pageSize", options.pageSize.toString());
4120
+ if (options.search) params.append("search", options.search);
4121
+ if (options.sortBy) params.append("sortBy", options.sortBy);
4122
+ if (options.sortOrder) params.append("sortOrder", options.sortOrder);
4064
4123
  if (options.includeAttachments)
4065
4124
  params.append("include_attachments", options.includeAttachments.toString());
4066
4125
  return this.fetch(
@@ -4174,9 +4233,15 @@ var InboxesApi = class extends BaseApiClient {
4174
4233
  `w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
4175
4234
  );
4176
4235
  }
4177
- /** List email threads in an inbox. */
4178
- async getInboxThreads(wid, inboxId) {
4179
- return this.fetch(`w/${wid}/inboxes/${inboxId}/threads`);
4236
+ /** List email threads in an inbox, `limit` threads from `offset`. */
4237
+ async getInboxThreads(wid, inboxId, options = {}) {
4238
+ const params = new URLSearchParams();
4239
+ if (options.limit !== void 0) params.append("limit", options.limit.toString());
4240
+ if (options.offset) params.append("offset", options.offset.toString());
4241
+ const query2 = params.toString();
4242
+ return this.fetch(
4243
+ `w/${wid}/inboxes/${inboxId}/threads${query2 ? `?${query2}` : ""}`
4244
+ );
4180
4245
  }
4181
4246
  /** List emails in a thread by assignment ID with pagination. */
4182
4247
  async getThreadEmails(wid, inboxId, assignmentId, options = {}) {
@@ -5442,6 +5507,47 @@ var OperatorApi = class extends BaseApiClient {
5442
5507
 
5443
5508
  // src/api/org.ts
5444
5509
  var OrgApi = class extends BaseApiClient {
5510
+ async getOrgManagerChats(org, cursor) {
5511
+ return this.fetch(
5512
+ `o/${encodeURIComponent(org)}/manager/chats${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`
5513
+ );
5514
+ }
5515
+ async createOrgManagerChat(org, title) {
5516
+ return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
5517
+ method: "POST",
5518
+ body: JSON.stringify({ title })
5519
+ });
5520
+ }
5521
+ async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
5522
+ return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
5523
+ method: "POST",
5524
+ body: JSON.stringify({ orgUuid, chatId, callId }),
5525
+ cache: "no-store"
5526
+ });
5527
+ }
5528
+ async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
5529
+ return this.fetch(
5530
+ `o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
5531
+ { cache: "no-store" }
5532
+ );
5533
+ }
5534
+ async getOrgManagerMessages(org, chatId, before) {
5535
+ return this.fetch(
5536
+ `o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
5537
+ );
5538
+ }
5539
+ async stopOrgManagerTurn(org, chatId) {
5540
+ return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/stop`, {
5541
+ method: "POST",
5542
+ body: JSON.stringify({})
5543
+ });
5544
+ }
5545
+ async startOrgManagerTurn(org, chatId, body) {
5546
+ return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/turns`, {
5547
+ method: "POST",
5548
+ body: JSON.stringify(body)
5549
+ });
5550
+ }
5445
5551
  /**
5446
5552
  * Get organization by ID or UUID.
5447
5553
  * Returns different response based on user's role:
@@ -5691,6 +5797,7 @@ var OrgApi = class extends BaseApiClient {
5691
5797
  if (options?.page) params.set("page", String(options.page));
5692
5798
  if (options?.pageSize) params.set("pageSize", String(options.pageSize));
5693
5799
  if (options?.search) params.set("search", options.search);
5800
+ if (options?.label) params.set("label", options.label);
5694
5801
  return this.fetch(
5695
5802
  `o/${orgIdOrUuid}/workspaces/summary?${params}`
5696
5803
  );
@@ -5758,7 +5865,8 @@ var OrgApi = class extends BaseApiClient {
5758
5865
  });
5759
5866
  }
5760
5867
  /**
5761
- * Search for available phone numbers to purchase from Twilio.
5868
+ * Search available numbers. Use `mobile` for AU and `local` or `toll_free`
5869
+ * for US; the server defaults to US local when the type is omitted.
5762
5870
  */
5763
5871
  async searchPhoneNumbers(orgUuid, params) {
5764
5872
  const query2 = new URLSearchParams();
@@ -5775,8 +5883,9 @@ var OrgApi = class extends BaseApiClient {
5775
5883
  /**
5776
5884
  * Purchase a phone number from Twilio for this org inventory (org admin only).
5777
5885
  *
5778
- * Numbers in regulated countries (e.g. Australia) require a Twilio regulatory
5779
- * bundle and an address — pass `bundleSid` and `addressSid` for those.
5886
+ * Australian mobile numbers require an approved business registration. Pass
5887
+ * `legalEntityUuid`; the server resolves its bundle and address. Do not pass
5888
+ * `bundleSid` or `addressSid` for Australian purchases.
5780
5889
  */
5781
5890
  async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
5782
5891
  return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
@@ -5785,11 +5894,31 @@ var OrgApi = class extends BaseApiClient {
5785
5894
  phoneNumber,
5786
5895
  numberType,
5787
5896
  country: opts?.country,
5897
+ legalEntityUuid: opts?.legalEntityUuid,
5788
5898
  bundleSid: opts?.bundleSid,
5789
5899
  addressSid: opts?.addressSid
5790
5900
  })
5791
5901
  });
5792
5902
  }
5903
+ async getNumberRegistration(orgUuid, entityUuid) {
5904
+ return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration`);
5905
+ }
5906
+ async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
5907
+ const body = new FormData();
5908
+ body.append("file", file);
5909
+ body.append("documentType", documentType);
5910
+ body.append("requirementName", requirementName);
5911
+ return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents`, {
5912
+ method: "POST",
5913
+ body
5914
+ });
5915
+ }
5916
+ async submitNumberRegistration(orgUuid, entityUuid) {
5917
+ return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit`, {
5918
+ method: "POST",
5919
+ body: JSON.stringify({})
5920
+ });
5921
+ }
5793
5922
  /**
5794
5923
  * Delete a phone number from the org (releases from Twilio).
5795
5924
  */
@@ -5836,7 +5965,9 @@ var OrgApi = class extends BaseApiClient {
5836
5965
  * Delete a registered organization domain.
5837
5966
  */
5838
5967
  async deleteOrgDomain(orgIdOrUuid, domainUuid) {
5839
- await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, { method: "DELETE" });
5968
+ await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
5969
+ method: "DELETE"
5970
+ });
5840
5971
  }
5841
5972
  /**
5842
5973
  * Enable email DNS provisioning for a verified org domain.
@@ -6010,17 +6141,20 @@ var OrgApi = class extends BaseApiClient {
6010
6141
  });
6011
6142
  }
6012
6143
  /**
6013
- * Activate SMS on a workspace-assigned number: attach it to the given
6014
- * brand's Messaging Service (A2P 10DLC). Preconditions (412 otherwise):
6015
- * campaign VERIFIED, brand has a Messaging Service, phone assigned to a
6016
- * workspace with a Twilio SID.
6144
+ * Enable sending on a workspace-assigned number: attach it to the
6145
+ * Messaging Service of the given brand's campaign (A2P 10DLC).
6146
+ *
6147
+ * `campaignUuid` names the campaign to attach the number to, including the
6148
+ * brand's first; omit it to target the brand's first campaign. Preconditions
6149
+ * (412 otherwise): campaign VERIFIED, brand has a Messaging Service, phone
6150
+ * assigned to a workspace with a Twilio SID.
6017
6151
  */
6018
- async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
6152
+ async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid, campaignUuid) {
6019
6153
  return this.fetch(
6020
6154
  `o/${orgUuid}/phone-numbers/a2p/activate-number`,
6021
6155
  {
6022
6156
  method: "POST",
6023
- body: JSON.stringify({ providerPhoneUuid, brandUuid })
6157
+ body: JSON.stringify({ providerPhoneUuid, brandUuid, campaignUuid })
6024
6158
  }
6025
6159
  );
6026
6160
  }
@@ -6037,7 +6171,10 @@ var OrgApi = class extends BaseApiClient {
6037
6171
  * entity's business profile must be approved (400 otherwise).
6038
6172
  */
6039
6173
  async attachPhoneVoiceTrust(orgUuid, providerPhoneUuid, legalEntityUuid) {
6040
- const body = { providerPhoneUuid, legalEntityUuid };
6174
+ const body = {
6175
+ providerPhoneUuid,
6176
+ legalEntityUuid
6177
+ };
6041
6178
  return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/attach`, {
6042
6179
  method: "POST",
6043
6180
  body: JSON.stringify(body)
@@ -6201,23 +6338,53 @@ var OrgApi = class extends BaseApiClient {
6201
6338
  `o/${orgUuid}/a2p-brands/${brandUuid}/use-cases`
6202
6339
  );
6203
6340
  }
6341
+ /**
6342
+ * Add a draft campaign to a brand. `sourceCampaignUuid` goes in an optional
6343
+ * JSON body; omitting it copies the brand's first campaign. The draft
6344
+ * reaches no provider until it is submitted. A sole-proprietor brand is
6345
+ * refused.
6346
+ */
6347
+ async createA2PCampaign(orgUuid, brandUuid, data = {}) {
6348
+ return this.fetch(`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns`, {
6349
+ method: "POST",
6350
+ body: JSON.stringify(data)
6351
+ });
6352
+ }
6353
+ /**
6354
+ * Submit a later campaign that has never been submitted. The caller must be
6355
+ * an org admin with recent 2FA, and the billing owner on subscription
6356
+ * billing (the submission buys the campaign's vetting). The brand's first
6357
+ * campaign is submitted by approving its sample messages during registration;
6358
+ * an ineligible campaign comes back as a structured 409 with a `code`. A brand
6359
+ * that no longer reads approved at the carrier, or a use case it no longer
6360
+ * allows, is a 400 with no `code`.
6361
+ */
6362
+ async submitA2PCampaign(orgUuid, brandUuid, campaignUuid) {
6363
+ return this.fetch(
6364
+ `o/${orgUuid}/a2p-brands/${brandUuid}/campaigns/${encodeURIComponent(campaignUuid)}/submit`,
6365
+ { method: "POST" }
6366
+ );
6367
+ }
6204
6368
  /**
6205
6369
  * Fetch a brand's resolved A2P campaign config. The response carries both the
6206
6370
  * raw `overrides` and the `resolved` payload (defaults + overrides) the editor
6207
- * previews — including the canonical SMS consent text.
6371
+ * previews — including the canonical SMS consent text. `campaignUuid` names
6372
+ * one of the brand's campaigns; without it the brand's first is read.
6208
6373
  */
6209
- async getA2PCampaignConfig(orgUuid, brandUuid) {
6374
+ async getA2PCampaignConfig(orgUuid, brandUuid, options) {
6210
6375
  return this.fetch(
6211
- `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`
6376
+ `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`
6212
6377
  );
6213
6378
  }
6214
6379
  /**
6215
6380
  * Partial-update a brand's A2P campaign config. Returns the freshly resolved
6216
6381
  * config so the editor's live preview updates without a second round-trip.
6382
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
6383
+ * first is updated.
6217
6384
  */
6218
- async updateA2PCampaignConfig(orgUuid, brandUuid, data) {
6385
+ async updateA2PCampaignConfig(orgUuid, brandUuid, data, options) {
6219
6386
  return this.fetch(
6220
- `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`,
6387
+ `o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`,
6221
6388
  {
6222
6389
  method: "PUT",
6223
6390
  body: JSON.stringify(data)
@@ -6227,10 +6394,12 @@ var OrgApi = class extends BaseApiClient {
6227
6394
  /**
6228
6395
  * Resubmit a campaign the carrier rejected, with the brand's current
6229
6396
  * campaign copy. Edits the campaign in place, so no second vetting fee.
6397
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
6398
+ * first is resubmitted.
6230
6399
  */
6231
- async resubmitA2PCampaign(orgUuid, brandUuid) {
6400
+ async resubmitA2PCampaign(orgUuid, brandUuid, options) {
6232
6401
  return this.fetch(
6233
- `o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign`,
6402
+ `o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign${campaignQuery(options)}`,
6234
6403
  { method: "POST" }
6235
6404
  );
6236
6405
  }
@@ -6246,11 +6415,13 @@ var OrgApi = class extends BaseApiClient {
6246
6415
  }
6247
6416
  /**
6248
6417
  * Link the brand to a published enrollment Site (sets `site_uuid`). Returns
6249
- * the refreshed campaign config.
6418
+ * the refreshed campaign config. `campaignUuid` names one of the brand's
6419
+ * campaigns; without it the brand's first campaign is written. Only a first
6420
+ * campaign may link a site.
6250
6421
  */
6251
- async linkA2PEnrollmentSite(orgUuid, brandUuid, data) {
6422
+ async linkA2PEnrollmentSite(orgUuid, brandUuid, data, options) {
6252
6423
  return this.fetch(
6253
- `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
6424
+ `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
6254
6425
  {
6255
6426
  method: "PUT",
6256
6427
  body: JSON.stringify(data)
@@ -6262,20 +6433,25 @@ var OrgApi = class extends BaseApiClient {
6262
6433
  * the explicit counterpart to the automatic provisioning at brand
6263
6434
  * registration. `workspaceUuid` is required only when the org has multiple
6264
6435
  * workspaces. Returns the refreshed campaign config. Idempotent.
6436
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
6437
+ * first campaign is written. Only a first campaign may link a site.
6265
6438
  */
6266
- async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}) {
6439
+ async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}, options) {
6267
6440
  return this.fetch(
6268
- `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision`,
6441
+ `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision${campaignQuery(options)}`,
6269
6442
  {
6270
6443
  method: "POST",
6271
6444
  body: JSON.stringify(data)
6272
6445
  }
6273
6446
  );
6274
6447
  }
6275
- /** Clear the brand's enrollment-site link. */
6276
- async unlinkA2PEnrollmentSite(orgUuid, brandUuid) {
6448
+ /**
6449
+ * Clear the brand's enrollment-site link. `campaignUuid` names one of the
6450
+ * brand's campaigns; without it the brand's first campaign is cleared.
6451
+ */
6452
+ async unlinkA2PEnrollmentSite(orgUuid, brandUuid, options) {
6277
6453
  return this.fetch(
6278
- `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
6454
+ `o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
6279
6455
  { method: "DELETE" }
6280
6456
  );
6281
6457
  }
@@ -6283,10 +6459,12 @@ var OrgApi = class extends BaseApiClient {
6283
6459
  * Stage one A2P opt-in evidence file: get a presigned POST to send the bytes
6284
6460
  * straight to storage. Nothing is recorded on the brand until
6285
6461
  * {@link registerA2PEvidenceUpload} reads the object back and normalizes it.
6462
+ * `campaignUuid` names one of the brand's campaigns; without it the brand's
6463
+ * first campaign is written.
6286
6464
  */
6287
- async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data) {
6465
+ async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data, options) {
6288
6466
  return this.fetch(
6289
- `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url`,
6467
+ `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url${campaignQuery(options)}`,
6290
6468
  {
6291
6469
  method: "POST",
6292
6470
  body: JSON.stringify(data)
@@ -6294,25 +6472,29 @@ var OrgApi = class extends BaseApiClient {
6294
6472
  );
6295
6473
  }
6296
6474
  /**
6297
- * Normalize a staged evidence upload and record it on the brand. Returns the
6298
- * refreshed campaign config, so the editor's evidence list updates without a
6299
- * second round trip.
6475
+ * Normalize a staged evidence upload and record it on the campaign. Returns
6476
+ * the refreshed campaign config, so the editor's evidence list updates
6477
+ * without a second round trip. `campaignUuid` names one of the brand's
6478
+ * campaigns; without it the brand's first campaign is written.
6300
6479
  */
6301
- async registerA2PEvidenceUpload(orgUuid, brandUuid, data) {
6480
+ async registerA2PEvidenceUpload(orgUuid, brandUuid, data, options) {
6302
6481
  return this.fetch(
6303
- `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments`,
6482
+ `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments${campaignQuery(options)}`,
6304
6483
  {
6305
6484
  method: "POST",
6306
6485
  body: JSON.stringify(data)
6307
6486
  }
6308
6487
  );
6309
6488
  }
6310
- /** Remove one uploaded evidence artifact. */
6311
- async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid) {
6489
+ /**
6490
+ * Remove one uploaded evidence artifact. `campaignUuid` names one of the
6491
+ * brand's campaigns; without it the brand's first campaign is written.
6492
+ */
6493
+ async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid, options) {
6312
6494
  return this.fetch(
6313
6495
  `o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/${encodeURIComponent(
6314
6496
  attachmentUuid
6315
- )}`,
6497
+ )}${campaignQuery(options)}`,
6316
6498
  { method: "DELETE" }
6317
6499
  );
6318
6500
  }
@@ -6368,9 +6550,13 @@ var OrgApi = class extends BaseApiClient {
6368
6550
  method: "DELETE"
6369
6551
  });
6370
6552
  }
6371
- async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
6553
+ async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0, filters = {}) {
6554
+ const params = new URLSearchParams({ limit: String(limit), offset: String(offset) });
6555
+ if (filters.status) params.set("status", filters.status);
6556
+ if (filters.occurredAfter) params.set("occurredAfter", filters.occurredAfter);
6557
+ if (filters.occurredBefore) params.set("occurredBefore", filters.occurredBefore);
6372
6558
  return this.fetch(
6373
- `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
6559
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?${params}`
6374
6560
  );
6375
6561
  }
6376
6562
  async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
@@ -6537,6 +6723,9 @@ var OrgApi = class extends BaseApiClient {
6537
6723
  function businessProfilePath(orgUuid, legalEntityUuid) {
6538
6724
  return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
6539
6725
  }
6726
+ function campaignQuery(options) {
6727
+ return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
6728
+ }
6540
6729
 
6541
6730
  // src/api/oauth.ts
6542
6731
  function getOAuthPath(providerSlug, action) {
@@ -6653,6 +6842,13 @@ function appendAnalyticsFilters(params, filters) {
6653
6842
  filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
6654
6843
  filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
6655
6844
  }
6845
+ function appendPhoneLogFilters(params, filters) {
6846
+ if (!filters) return;
6847
+ if (filters.inbound !== void 0) params.set("inbound", String(filters.inbound));
6848
+ if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
6849
+ if (filters.dateTo) params.set("dateTo", filters.dateTo);
6850
+ if (filters.otherNumber) params.set("otherNumber", filters.otherNumber);
6851
+ }
6656
6852
  var PhoneNumbersApi = class extends BaseApiClient {
6657
6853
  /** List phone numbers in a workspace, optionally including archived. */
6658
6854
  async getPhoneNumbers(wid, options) {
@@ -6727,16 +6923,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
6727
6923
  if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
6728
6924
  if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
6729
6925
  if (filters?.dateTo) params.set("dateTo", filters.dateTo);
6926
+ if (filters?.otherNumber) params.set("otherNumber", filters.otherNumber);
6730
6927
  if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
6731
6928
  return this.fetch(`w/${wid}/calls?${params}`);
6732
6929
  }
6930
+ /**
6931
+ * One time-ordered page over a number's calls, texts and voicemails.
6932
+ *
6933
+ * Paged by keyset: pass the previous page's `nextCursor` as `cursor` to get
6934
+ * the entries after it. A new entry at the head cannot repeat or skip one.
6935
+ * `modalities` limits the feed to some of the logs.
6936
+ */
6937
+ async getPhoneNumberActivity(wid, id, options = {}) {
6938
+ const params = new URLSearchParams({ pageSize: String(options.pageSize ?? 25) });
6939
+ if (options.cursor) params.set("cursor", options.cursor);
6940
+ options.modalities?.forEach((modality) => params.append("modality", modality));
6941
+ appendPhoneLogFilters(params, options);
6942
+ return this.fetch(`w/${wid}/phone-numbers/${id}/activity?${params}`);
6943
+ }
6733
6944
  /** List paginated voicemails for a phone number. */
6734
- async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status) {
6945
+ async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status, filters) {
6735
6946
  const params = new URLSearchParams({
6736
6947
  page: String(page),
6737
6948
  page_size: String(pageSize)
6738
6949
  });
6739
6950
  if (status) params.set("status", status);
6951
+ appendPhoneLogFilters(params, filters);
6740
6952
  return this.fetch(
6741
6953
  `w/${wid}/phone-numbers/${id}/voicemails?${params}`
6742
6954
  );
@@ -6762,9 +6974,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
6762
6974
  pageSize: String(pageSize)
6763
6975
  });
6764
6976
  if (filters?.status) params.set("status", filters.status);
6765
- if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
6766
- if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
6767
- if (filters?.dateTo) params.set("dateTo", filters.dateTo);
6977
+ appendPhoneLogFilters(params, filters);
6768
6978
  return this.fetch(
6769
6979
  `w/${wid}/phone-numbers/${id}/messages?${params}`
6770
6980
  );
@@ -7029,6 +7239,7 @@ var PersonasApi = class extends BaseApiClient {
7029
7239
  body: JSON.stringify(data)
7030
7240
  });
7031
7241
  }
7242
+ /** Archives the Persona and its current test Member. Returns 409 while a test chat is open. */
7032
7243
  async archivePersona(wid, id) {
7033
7244
  return this.fetch(`w/${wid}/personas/${id}/archive`, {
7034
7245
  method: "POST",
@@ -7260,9 +7471,12 @@ var QualificationsApi = class extends BaseApiClient {
7260
7471
  );
7261
7472
  }
7262
7473
  async evaluateTestChatRun(wid, runId) {
7263
- await this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`, {
7264
- method: "POST"
7265
- });
7474
+ return this.fetch(
7475
+ `w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`,
7476
+ {
7477
+ method: "POST"
7478
+ }
7479
+ );
7266
7480
  }
7267
7481
  /** Manually end a test chat run (for human-driven runs, which have no
7268
7482
  * simulator workflow to mark them completed). */
@@ -7700,11 +7914,29 @@ var ConnectionSyncApi = class extends BaseApiClient {
7700
7914
  `w/${wid}/app-connections/${connectionId}/sync/member-summary`
7701
7915
  );
7702
7916
  }
7703
- async getSyncRunItems(wid, connectionId, runId, limit = 500) {
7917
+ /**
7918
+ * One page of a run's items. ``cursor`` is the previous page's
7919
+ * ``nextCursor`` and continues in the requested direction; exhaustion comes
7920
+ * from ``hasMore``, never from the returned row count.
7921
+ */
7922
+ async getSyncRunItemsPage(wid, connectionId, runId, options) {
7923
+ const params = new URLSearchParams();
7924
+ if (options?.limit != null) params.set("limit", String(options.limit));
7925
+ if (options?.newestFirst) params.set("newest_first", "true");
7926
+ if (options?.cursor) params.set("cursor", options.cursor);
7927
+ const qs = params.toString() ? `?${params.toString()}` : "";
7704
7928
  return this.fetch(
7705
- `w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items?limit=${limit}`
7929
+ `w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items${qs}`
7706
7930
  );
7707
7931
  }
7932
+ /**
7933
+ * The run's items as a flat list. Kept for the published CLI surface; the
7934
+ * server returns the canonical cursor page, and this unwraps its ``items``.
7935
+ */
7936
+ async getSyncRunItems(wid, connectionId, runId, limit = 500) {
7937
+ const page = await this.getSyncRunItemsPage(wid, connectionId, runId, { limit });
7938
+ return page.items;
7939
+ }
7708
7940
  /**
7709
7941
  * Clear a manual-unlink exclusion for a member on a connection so
7710
7942
  * subsequent outbound syncs stop silently skipping them. Idempotent:
@@ -7824,6 +8056,20 @@ var ConnectionSyncApi = class extends BaseApiClient {
7824
8056
 
7825
8057
  // src/api/hubspot.ts
7826
8058
  var HubspotApi = class extends BaseApiClient {
8059
+ async getHubspotBookingReceipt(wid, meetingId) {
8060
+ return this.fetch(
8061
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/receipt`
8062
+ );
8063
+ }
8064
+ async releaseHubspotBookingAttempt(wid, meetingId, data) {
8065
+ return this.fetch(
8066
+ `w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/release`,
8067
+ {
8068
+ method: "POST",
8069
+ body: JSON.stringify(data)
8070
+ }
8071
+ );
8072
+ }
7827
8073
  /**
7828
8074
  * Create the HubSpot connection shell (no credentials yet).
7829
8075
  *
@@ -7980,6 +8226,37 @@ var HubspotApi = class extends BaseApiClient {
7980
8226
 
7981
8227
  // src/api/sites.ts
7982
8228
  var SitesApi = class extends BaseApiClient {
8229
+ /** Start a fresh synthetic patient session on the Site's configured Workflow. */
8230
+ async startPublicDemo(wid, siteUuid, request) {
8231
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
8232
+ method: "POST",
8233
+ body: JSON.stringify(request)
8234
+ });
8235
+ }
8236
+ /** Read only a demo the acting Member drives. */
8237
+ async getPublicDemo(wid, siteUuid, runId) {
8238
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
8239
+ }
8240
+ /** End this visitor's run and release its test resources. */
8241
+ async endPublicDemo(wid, siteUuid, runId) {
8242
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
8243
+ method: "POST",
8244
+ keepalive: true,
8245
+ body: JSON.stringify({})
8246
+ });
8247
+ }
8248
+ async sendPublicDemoMessage(wid, siteUuid, runId, request) {
8249
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
8250
+ method: "POST",
8251
+ body: JSON.stringify(request)
8252
+ });
8253
+ }
8254
+ async submitPublicDemoForm(wid, siteUuid, runId, request) {
8255
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
8256
+ method: "PUT",
8257
+ body: JSON.stringify(request)
8258
+ });
8259
+ }
7983
8260
  /** List all sites in a workspace. */
7984
8261
  async getSites(wid) {
7985
8262
  return this.fetch(`w/${wid}/sites`);
@@ -8019,6 +8296,15 @@ var SitesApi = class extends BaseApiClient {
8019
8296
  async getSiteSource(wid, siteId) {
8020
8297
  return this.fetch(`w/${wid}/sites/${siteId}/source`);
8021
8298
  }
8299
+ /** List source release revisions from newest to oldest. */
8300
+ async getSiteSourceReleases(wid, siteId, options = {}) {
8301
+ const params = new URLSearchParams();
8302
+ if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
8303
+ if (options.limit != null) params.set("limit", String(options.limit));
8304
+ return this.fetch(
8305
+ `w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
8306
+ );
8307
+ }
8022
8308
  /** Starter templates the caller may seed (superuser-only ones filtered server-side). */
8023
8309
  async getSiteSourceTemplates(wid, siteId) {
8024
8310
  return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
@@ -8919,6 +9205,8 @@ var JourneysApi = class extends BaseApiClient {
8919
9205
  async getJourneys(wid, includeArchived = false, pageOpts) {
8920
9206
  const query2 = new URLSearchParams();
8921
9207
  if (includeArchived) query2.set("include_archived", "true");
9208
+ if (pageOpts?.search) query2.set("search", pageOpts.search);
9209
+ if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
8922
9210
  if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
8923
9211
  if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
8924
9212
  const qs = query2.toString() ? `?${query2.toString()}` : "";
@@ -9275,6 +9563,12 @@ var JourneysApi = class extends BaseApiClient {
9275
9563
 
9276
9564
  // src/api/workflows.ts
9277
9565
  var WorkflowsApi = class extends BaseApiClient {
9566
+ async uploadWorkflowKnowledge(wid, id, file, relativePath) {
9567
+ const body = new FormData();
9568
+ body.append("file", file, relativePath.split("/").pop());
9569
+ body.append("relativePath", relativePath);
9570
+ return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
9571
+ }
9278
9572
  /** List all workflows in a workspace, optionally including archived ones. */
9279
9573
  async getWorkflows(wid, options = {}) {
9280
9574
  const params = new URLSearchParams();
@@ -9730,6 +10024,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
9730
10024
  Scope2["CHATS_READ"] = "chats:read";
9731
10025
  Scope2["CHATS_WRITE"] = "chats:write";
9732
10026
  Scope2["CHATS_ADMIN"] = "chats:admin";
10027
+ Scope2["DEMOS_RUN"] = "demos:run";
9733
10028
  Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
9734
10029
  Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
9735
10030
  Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
@@ -9980,6 +10275,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
9980
10275
  EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
9981
10276
  EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
9982
10277
  EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
10278
+ EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
9983
10279
  EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
9984
10280
  EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
9985
10281
  EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
@@ -10025,6 +10321,7 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
10025
10321
  EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
10026
10322
  EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
10027
10323
  EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
10324
+ EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
10028
10325
  EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
10029
10326
  EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
10030
10327
  EventRuleActionType2["SMS_SEND"] = "sms:send";
@@ -10071,9 +10368,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
10071
10368
  WorkspaceFeature2["BROWSER"] = "browser";
10072
10369
  WorkspaceFeature2["WEB_SEARCH"] = "web_search";
10073
10370
  WorkspaceFeature2["CALENDAR"] = "calendar";
10074
- WorkspaceFeature2["JOURNEY_V2_EDITOR"] = "journey_v2_editor";
10075
- WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
10076
- WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
10077
10371
  WorkspaceFeature2["GMAIL"] = "gmail";
10078
10372
  WorkspaceFeature2["GCALENDAR"] = "gcalendar";
10079
10373
  WorkspaceFeature2["GDRIVE"] = "gdrive";
@@ -10093,6 +10387,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
10093
10387
  WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
10094
10388
  WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
10095
10389
  WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
10390
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
10391
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
10392
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
10393
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
10394
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
10096
10395
  return WorkspaceFeature2;
10097
10396
  })(WorkspaceFeature || {});
10098
10397
  var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
@@ -10866,6 +11165,12 @@ var WorkspacesApi = class extends BaseApiClient {
10866
11165
  async getWorkspaces(options) {
10867
11166
  return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
10868
11167
  }
11168
+ /** One organization page reached through organization or workspace membership. */
11169
+ async getWorkspaceOrganizationDirectory(options) {
11170
+ return this.fetch(
11171
+ `w/organizations?${workspaceDirectoryParams(options)}`
11172
+ );
11173
+ }
10869
11174
  /**
10870
11175
  * Page 1 of each organization's workspace directory, in one request.
10871
11176
  * Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
@@ -10967,6 +11272,18 @@ var WorkspacesApi = class extends BaseApiClient {
10967
11272
  const url = `w/${wid}/notifications${queryString ? `?${queryString}` : ""}`;
10968
11273
  return this.fetch(url);
10969
11274
  }
11275
+ async getNotificationSubscriptions(wid) {
11276
+ return this.fetch(`w/${wid}/notifications/subscriptions`);
11277
+ }
11278
+ async updateNotificationSubscription(wid, id, enabled) {
11279
+ return this.fetch(`w/${wid}/notifications/subscriptions/${id}`, {
11280
+ method: "PATCH",
11281
+ body: JSON.stringify({ enabled })
11282
+ });
11283
+ }
11284
+ async getNotificationAudience(wid, id) {
11285
+ return this.fetch(`w/${wid}/notifications/audiences/${id}`);
11286
+ }
10970
11287
  /** Get a single notification by ID. */
10971
11288
  async getNotification(wid, id) {
10972
11289
  return this.fetch(`w/${wid}/notifications/${id}`);
@@ -11072,13 +11389,6 @@ var WorkspacesApi = class extends BaseApiClient {
11072
11389
  const qs = query2.toString() ? `?${query2.toString()}` : "";
11073
11390
  return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
11074
11391
  }
11075
- /** Create a new client workspace under a reseller workspace. */
11076
- async createClientWorkspace(wid, data) {
11077
- return this.fetch(`w/${wid}/reseller/workspaces`, {
11078
- method: "POST",
11079
- body: JSON.stringify(data)
11080
- });
11081
- }
11082
11392
  /** Get a single client workspace by ID. */
11083
11393
  async getClientWorkspace(wid, workspaceId) {
11084
11394
  return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
@@ -11188,7 +11498,9 @@ var WorkspacesApi = class extends BaseApiClient {
11188
11498
  searchParams.set("revision_mode", "active");
11189
11499
  }
11190
11500
  const qs = searchParams.toString();
11191
- const data = await this.fetch(`w/${wid}/export${qs ? `?${qs}` : ""}`);
11501
+ const data = await this.fetch(
11502
+ `w/${wid}/export${qs ? `?${qs}` : ""}`
11503
+ );
11192
11504
  this.verifyExportSelection(data, workflowId, options);
11193
11505
  return data;
11194
11506
  }
@@ -11739,7 +12051,7 @@ var ExperimentsApi = class extends BaseApiClient {
11739
12051
  const query2 = new URLSearchParams();
11740
12052
  if (params?.page !== void 0) query2.set("page", String(params.page));
11741
12053
  if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
11742
- if (params?.includeArchived) query2.set("includeArchived", "true");
12054
+ if (params?.archived !== void 0) query2.set("archived", String(params.archived));
11743
12055
  const qs = query2.toString() ? `?${query2.toString()}` : "";
11744
12056
  return this.fetch(`w/${wid}/experiments${qs}`);
11745
12057
  }
@@ -12166,8 +12478,7 @@ var MetricsApi = class extends BaseApiClient {
12166
12478
  const q = new URLSearchParams();
12167
12479
  if (params?.page !== void 0) q.set("page", String(params.page));
12168
12480
  if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
12169
- if (params?.includeArchived !== void 0)
12170
- q.set("includeArchived", String(params.includeArchived));
12481
+ if (params?.archived !== void 0) q.set("archived", String(params.archived));
12171
12482
  if (params?.source) q.set("source", params.source);
12172
12483
  const qs = q.toString() ? `?${q.toString()}` : "";
12173
12484
  return this.fetch(`w/${wid}/metrics${qs}`);
@@ -12211,6 +12522,18 @@ var MetricsApi = class extends BaseApiClient {
12211
12522
  `w/${wid}/metrics/${metricId}/series?${q.toString()}`
12212
12523
  );
12213
12524
  }
12525
+ /**
12526
+ * Series for several metrics in one request, each with its default
12527
+ * aggregation. Items come back in the order the ids were given.
12528
+ */
12529
+ async getMetricSeriesBatch(wid, params) {
12530
+ const q = new URLSearchParams();
12531
+ for (const id of params.metricIds) q.append("metricIds", String(id));
12532
+ q.set("start", params.start);
12533
+ q.set("end", params.end);
12534
+ if (params.bucket) q.set("bucket", params.bucket);
12535
+ return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
12536
+ }
12214
12537
  /** On-demand compute of enabled chat-source metrics for one chat. */
12215
12538
  async computeChatMetrics(wid, data) {
12216
12539
  return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
@@ -12548,6 +12871,7 @@ var WORKSPACE_METHOD_NAMES = [
12548
12871
  "archiveMemberByExternalId",
12549
12872
  "archiveMemberRelationship",
12550
12873
  "archivePersona",
12874
+ "archiveInbox",
12551
12875
  "archivePhoneNumber",
12552
12876
  "archiveStep",
12553
12877
  "archiveTask",
@@ -12621,7 +12945,6 @@ var WORKSPACE_METHOD_NAMES = [
12621
12945
  "createChatCompletion",
12622
12946
  "createChatFilter",
12623
12947
  "createChatLabel",
12624
- "createClientWorkspace",
12625
12948
  "createConnection",
12626
12949
  "createContactPermission",
12627
12950
  "createCustomTool",
@@ -12829,6 +13152,7 @@ var WORKSPACE_METHOD_NAMES = [
12829
13152
  "getApiKeys",
12830
13153
  "getArchiveBlockers",
12831
13154
  "getAthenaPlatformApp",
13155
+ "getFhirConnectionSyncConfig",
12832
13156
  "getAssignment",
12833
13157
  "getAssignmentCelContext",
12834
13158
  "getAssignmentMessages",
@@ -12887,7 +13211,6 @@ var WORKSPACE_METHOD_NAMES = [
12887
13211
  "getChats",
12888
13212
  "getChatsDailyCreationStats",
12889
13213
  "getChatsNeedsResponse",
12890
- "getChildThreadMessages",
12891
13214
  "getClientWorkspace",
12892
13215
  "getConfigurationHealth",
12893
13216
  "getConfluenceStatus",
@@ -12929,7 +13252,6 @@ var WORKSPACE_METHOD_NAMES = [
12929
13252
  "getDevices",
12930
13253
  "getDiscordBot",
12931
13254
  "getDiscordBotAccounts",
12932
- "getDiscordBotByUuid",
12933
13255
  "getDiscordBots",
12934
13256
  "getDiscordGuilds",
12935
13257
  "getDiscordThreads",
@@ -12976,6 +13298,7 @@ var WORKSPACE_METHOD_NAMES = [
12976
13298
  "getQueryFields",
12977
13299
  "getSiteSharing",
12978
13300
  "getSiteSource",
13301
+ "getSiteSourceReleases",
12979
13302
  "getSiteSourceTemplates",
12980
13303
  "getThemeSettings",
12981
13304
  "importSiteSourceZip",
@@ -13023,6 +13346,8 @@ var WORKSPACE_METHOD_NAMES = [
13023
13346
  "getHubspotObjectProperties",
13024
13347
  "getHubspotReconciliationMatches",
13025
13348
  "getHubspotStatus",
13349
+ "getHubspotBookingReceipt",
13350
+ "releaseHubspotBookingAttempt",
13026
13351
  "getHubspotSyncLogs",
13027
13352
  "getHubspotTransformPresets",
13028
13353
  "getICalFeedUrl",
@@ -13032,6 +13357,7 @@ var WORKSPACE_METHOD_NAMES = [
13032
13357
  "getInbox",
13033
13358
  "getInboxEmail",
13034
13359
  "getInboxEmails",
13360
+ "getInboxArchiveBlockers",
13035
13361
  "getInboxOutboundEmailStats",
13036
13362
  "getInboxThreads",
13037
13363
  "getInboxes",
@@ -13107,6 +13433,7 @@ var WORKSPACE_METHOD_NAMES = [
13107
13433
  "getPhoneCalls",
13108
13434
  "getPhoneCallByUuid",
13109
13435
  "getPhoneNumber",
13436
+ "getPhoneNumberActivity",
13110
13437
  "getPhoneNumberCalls",
13111
13438
  "getPhoneNumberFaxes",
13112
13439
  "getPhoneNumberMessages",
@@ -13160,6 +13487,7 @@ var WORKSPACE_METHOD_NAMES = [
13160
13487
  "getSupervisor",
13161
13488
  "getSupervisors",
13162
13489
  "getSyncRunItems",
13490
+ "getSyncRunItemsPage",
13163
13491
  "getSyncRuns",
13164
13492
  "getTask",
13165
13493
  "getTaskChats",
@@ -13282,6 +13610,7 @@ var WORKSPACE_METHOD_NAMES = [
13282
13610
  "deleteMetric",
13283
13611
  "listMetricObservations",
13284
13612
  "getMetricSeries",
13613
+ "getMetricSeriesBatch",
13285
13614
  "computeChatMetrics",
13286
13615
  "listPushSubscriptions",
13287
13616
  "listResourceWorkflows",
@@ -13612,7 +13941,6 @@ function bindChatsMethods(target, chats) {
13612
13941
  target.summarizeChat = chats.summarizeChat.bind(chats);
13613
13942
  target.getChatMessages = chats.getChatMessages.bind(chats);
13614
13943
  target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
13615
- target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
13616
13944
  target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
13617
13945
  target.getChatTools = chats.getChatTools.bind(chats);
13618
13946
  target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
@@ -13830,6 +14158,7 @@ function bindMembersMethods(target, members) {
13830
14158
  // src/client/bindings/workspaces.ts
13831
14159
  function bindWorkspacesMethods(target, workspaces, signupRequests) {
13832
14160
  target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
14161
+ target.getWorkspaceOrganizationDirectory = workspaces.getWorkspaceOrganizationDirectory.bind(workspaces);
13833
14162
  target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
13834
14163
  target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
13835
14164
  target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
@@ -13846,6 +14175,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
13846
14175
  target.getBusinessHoursStatus = workspaces.getBusinessHoursStatus.bind(workspaces);
13847
14176
  target.getAvailableWorkspaceFeatures = workspaces.getAvailableWorkspaceFeatures.bind(workspaces);
13848
14177
  target.getWorkspaceNotices = workspaces.getWorkspaceNotices.bind(workspaces);
14178
+ target.getNotificationSubscriptions = workspaces.getNotificationSubscriptions.bind(workspaces);
14179
+ target.updateNotificationSubscription = workspaces.updateNotificationSubscription.bind(workspaces);
14180
+ target.getNotificationAudience = workspaces.getNotificationAudience.bind(workspaces);
13849
14181
  target.getNotifications = workspaces.getNotifications.bind(workspaces);
13850
14182
  target.getNotification = workspaces.getNotification.bind(workspaces);
13851
14183
  target.getUnreadNotificationCount = workspaces.getUnreadNotificationCount.bind(workspaces);
@@ -13853,7 +14185,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
13853
14185
  target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
13854
14186
  target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
13855
14187
  target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
13856
- target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
13857
14188
  target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
13858
14189
  target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
13859
14190
  target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
@@ -13910,6 +14241,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
13910
14241
 
13911
14242
  // src/client/bindings/auth.ts
13912
14243
  function bindAuthMethods(target, auth, assignments) {
14244
+ target.getAccountNotices = auth.getAccountNotices.bind(auth);
14245
+ target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
14246
+ target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
13913
14247
  target.getUserAccount = auth.getUserAccount.bind(auth);
13914
14248
  target.updateUserAccount = auth.updateUserAccount.bind(auth);
13915
14249
  target.recordAcquisition = auth.recordAcquisition.bind(auth);
@@ -13971,6 +14305,11 @@ function bindAuthMethods(target, auth, assignments) {
13971
14305
 
13972
14306
  // src/client/bindings/sites.ts
13973
14307
  function bindSitesMethods(target, sites) {
14308
+ target.endPublicDemo = sites.endPublicDemo.bind(sites);
14309
+ target.startPublicDemo = sites.startPublicDemo.bind(sites);
14310
+ target.getPublicDemo = sites.getPublicDemo.bind(sites);
14311
+ target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
14312
+ target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
13974
14313
  target.getSites = sites.getSites.bind(sites);
13975
14314
  target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
13976
14315
  target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
@@ -13978,6 +14317,7 @@ function bindSitesMethods(target, sites) {
13978
14317
  target.getSiteSharing = sites.getSiteSharing.bind(sites);
13979
14318
  target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
13980
14319
  target.getSiteSource = sites.getSiteSource.bind(sites);
14320
+ target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
13981
14321
  target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
13982
14322
  target.createSiteSource = sites.createSiteSource.bind(sites);
13983
14323
  target.buildSiteSource = sites.buildSiteSource.bind(sites);
@@ -14038,6 +14378,8 @@ function bindFilesMethods(target, files) {
14038
14378
  target.createFolder = files.createFolder.bind(files);
14039
14379
  target.updateFolder = files.updateFolder.bind(files);
14040
14380
  target.deleteFolder = files.deleteFolder.bind(files);
14381
+ target.reindexFile = files.reindexFile.bind(files);
14382
+ target.searchFile = files.searchFile.bind(files);
14041
14383
  target.reindexFolder = files.reindexFolder.bind(files);
14042
14384
  target.searchFolder = files.searchFolder.bind(files);
14043
14385
  target.getFileLabels = files.getFileLabels.bind(files);
@@ -14125,6 +14467,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
14125
14467
  target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
14126
14468
  target.createWorkflow = workflows.createWorkflow.bind(workflows);
14127
14469
  target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
14470
+ target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
14128
14471
  target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
14129
14472
  target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
14130
14473
  target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
@@ -14216,6 +14559,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
14216
14559
  target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
14217
14560
  target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
14218
14561
  target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
14562
+ target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
14219
14563
  target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
14220
14564
  target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
14221
14565
  target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
@@ -14229,6 +14573,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
14229
14573
  target.createInbox = inboxes.createInbox.bind(inboxes);
14230
14574
  target.updateInbox = inboxes.updateInbox.bind(inboxes);
14231
14575
  target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
14576
+ target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
14577
+ target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
14232
14578
  target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
14233
14579
  target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
14234
14580
  target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
@@ -14390,7 +14736,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14390
14736
  target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
14391
14737
  target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
14392
14738
  target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
14393
- target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
14394
14739
  target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
14395
14740
  target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
14396
14741
  target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
@@ -14455,6 +14800,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14455
14800
  target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
14456
14801
  target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
14457
14802
  target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
14803
+ target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
14458
14804
  target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
14459
14805
  target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
14460
14806
  target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
@@ -14519,6 +14865,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14519
14865
  target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
14520
14866
  target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
14521
14867
  target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
14868
+ target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
14869
+ target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
14522
14870
  target.installHubspot = hubspot.installHubspot.bind(hubspot);
14523
14871
  target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
14524
14872
  target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
@@ -14549,6 +14897,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14549
14897
  target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
14550
14898
  target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
14551
14899
  target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
14900
+ target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
14552
14901
  target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
14553
14902
  target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
14554
14903
  target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
@@ -14595,6 +14944,13 @@ function bindOperatorMethods(target, operatorGroups) {
14595
14944
 
14596
14945
  // src/client/bindings/org.ts
14597
14946
  function bindOrgMethods(target, org) {
14947
+ target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
14948
+ target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
14949
+ target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
14950
+ target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
14951
+ target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
14952
+ target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
14953
+ target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
14598
14954
  target.listOrgDomains = org.listOrgDomains.bind(org);
14599
14955
  target.registerOrgDomain = org.registerOrgDomain.bind(org);
14600
14956
  target.getOrgDomain = org.getOrgDomain.bind(org);
@@ -14808,6 +15164,7 @@ function bindMetricsMethods(target, metrics) {
14808
15164
  target.deleteMetric = metrics.deleteMetric.bind(metrics);
14809
15165
  target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
14810
15166
  target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
15167
+ target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
14811
15168
  target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
14812
15169
  }
14813
15170
 
@@ -14957,7 +15314,6 @@ var GravityRailClient = class {
14957
15314
  summarizeChat;
14958
15315
  getChatMessages;
14959
15316
  getChatTaskTransitions;
14960
- getChildThreadMessages;
14961
15317
  getChatToolCallMessages;
14962
15318
  getChatTools;
14963
15319
  initiateOutboundCall;
@@ -15165,6 +15521,7 @@ var GravityRailClient = class {
15165
15521
  deleteMetric;
15166
15522
  listMetricObservations;
15167
15523
  getMetricSeries;
15524
+ getMetricSeriesBatch;
15168
15525
  computeChatMetrics;
15169
15526
  // Dashboards API
15170
15527
  getDashboards;
@@ -15335,6 +15692,7 @@ var GravityRailClient = class {
15335
15692
  inspectPrompt;
15336
15693
  // Workspaces API
15337
15694
  getWorkspaces;
15695
+ getWorkspaceOrganizationDirectory;
15338
15696
  getOrganizationWorkspacePages;
15339
15697
  getDeviceAdmissibleWorkspaces;
15340
15698
  getPublicWorkspaces;
@@ -15351,6 +15709,9 @@ var GravityRailClient = class {
15351
15709
  getBusinessHoursStatus;
15352
15710
  getAvailableWorkspaceFeatures;
15353
15711
  getWorkspaceNotices;
15712
+ getNotificationSubscriptions;
15713
+ updateNotificationSubscription;
15714
+ getNotificationAudience;
15354
15715
  getNotifications;
15355
15716
  getNotification;
15356
15717
  getUnreadNotificationCount;
@@ -15358,7 +15719,6 @@ var GravityRailClient = class {
15358
15719
  dismissNotification;
15359
15720
  dismissAllNotifications;
15360
15721
  getResellerWorkspaces;
15361
- createClientWorkspace;
15362
15722
  getClientWorkspace;
15363
15723
  updateClientWorkspace;
15364
15724
  deleteClientWorkspace;
@@ -15394,6 +15754,13 @@ var GravityRailClient = class {
15394
15754
  upsertWidgetDomain;
15395
15755
  deleteWidgetDomain;
15396
15756
  // Org API
15757
+ getOrgManagerCredentialResponse;
15758
+ authorizeOrgManagerDelegation;
15759
+ getOrgManagerChats;
15760
+ createOrgManagerChat;
15761
+ getOrgManagerMessages;
15762
+ startOrgManagerTurn;
15763
+ stopOrgManagerTurn;
15397
15764
  listOrgDomains;
15398
15765
  registerOrgDomain;
15399
15766
  getOrgDomain;
@@ -15468,6 +15835,9 @@ var GravityRailClient = class {
15468
15835
  declineInvitation;
15469
15836
  // Auth API
15470
15837
  getUserAccount;
15838
+ getAccountNotices;
15839
+ viewAccountNotice;
15840
+ dismissAccountNotice;
15471
15841
  updateUserAccount;
15472
15842
  recordAcquisition;
15473
15843
  login;
@@ -15525,6 +15895,11 @@ var GravityRailClient = class {
15525
15895
  getAssignmentTools;
15526
15896
  executeAssignmentTool;
15527
15897
  // Sites API
15898
+ startPublicDemo;
15899
+ endPublicDemo;
15900
+ getPublicDemo;
15901
+ sendPublicDemoMessage;
15902
+ submitPublicDemoForm;
15528
15903
  getSites;
15529
15904
  checkSiteSlugAvailability;
15530
15905
  checkSiteDomainAvailability;
@@ -15532,6 +15907,7 @@ var GravityRailClient = class {
15532
15907
  getSiteSharing;
15533
15908
  updateSiteSharing;
15534
15909
  getSiteSource;
15910
+ getSiteSourceReleases;
15535
15911
  getSiteSourceTemplates;
15536
15912
  createSiteSource;
15537
15913
  buildSiteSource;
@@ -15594,6 +15970,8 @@ var GravityRailClient = class {
15594
15970
  createFolder;
15595
15971
  updateFolder;
15596
15972
  deleteFolder;
15973
+ reindexFile;
15974
+ searchFile;
15597
15975
  reindexFolder;
15598
15976
  searchFolder;
15599
15977
  getFileLabels;
@@ -15650,6 +16028,7 @@ var GravityRailClient = class {
15650
16028
  getWorkflowsOutlineBatch;
15651
16029
  createWorkflow;
15652
16030
  updateWorkflow;
16031
+ uploadWorkflowKnowledge;
15653
16032
  getWorkflowDeletionPreview;
15654
16033
  deleteWorkflow;
15655
16034
  archiveWorkflow;
@@ -15735,6 +16114,7 @@ var GravityRailClient = class {
15735
16114
  getPhoneNumberOutboundAnalyticsSummary;
15736
16115
  getPhoneNumberOutboundAnalyticsCalls;
15737
16116
  exportPhoneNumberOutboundAnalyticsCsv;
16117
+ getPhoneNumberActivity;
15738
16118
  getPhoneNumberMessages;
15739
16119
  getPhoneNumberFaxes;
15740
16120
  getPhoneNumberVoicemails;
@@ -15748,6 +16128,8 @@ var GravityRailClient = class {
15748
16128
  createInbox;
15749
16129
  updateInbox;
15750
16130
  deleteInbox;
16131
+ archiveInbox;
16132
+ getInboxArchiveBlockers;
15751
16133
  getInboxEmails;
15752
16134
  getInboxEmail;
15753
16135
  markEmailAsRead;
@@ -15906,7 +16288,6 @@ var GravityRailClient = class {
15906
16288
  // Discord Bots API
15907
16289
  getDiscordBots;
15908
16290
  getDiscordBot;
15909
- getDiscordBotByUuid;
15910
16291
  createDiscordBot;
15911
16292
  updateDiscordBot;
15912
16293
  deleteDiscordBot;
@@ -15974,6 +16355,7 @@ var GravityRailClient = class {
15974
16355
  fhirGetEncounterSyncRuns;
15975
16356
  fhirRefreshEncounterPatient;
15976
16357
  fhirBackfillEncounterSync;
16358
+ getFhirConnectionSyncConfig;
15977
16359
  getAthenaPlatformApp;
15978
16360
  verifyAthenaAccess;
15979
16361
  connectAthena;
@@ -16042,6 +16424,8 @@ var GravityRailClient = class {
16042
16424
  searchSalesforceRecords;
16043
16425
  importSalesforceMembers;
16044
16426
  // HubSpot API
16427
+ getHubspotBookingReceipt;
16428
+ releaseHubspotBookingAttempt;
16045
16429
  installHubspot;
16046
16430
  configureHubspot;
16047
16431
  startHubspotOAuth;
@@ -16073,6 +16457,7 @@ var GravityRailClient = class {
16073
16457
  startSyncRun;
16074
16458
  getSyncRuns;
16075
16459
  getSyncRunItems;
16460
+ getSyncRunItemsPage;
16076
16461
  getMemberSyncSummary;
16077
16462
  getConnectionFieldHomes;
16078
16463
  getInboundRecordStatus;
@@ -16357,6 +16742,7 @@ var AbilityTypeSlugs = {
16357
16742
  // Tools
16358
16743
  TOOLKITS: "tools:toolkits",
16359
16744
  WEB_SEARCH: "tools:web_search",
16745
+ WEB_BROWSER: "tools:web_browser",
16360
16746
  CONVERSATION_HISTORY: "tools:conversation_history",
16361
16747
  MEMBER_MEMORY: "memory:member_memory",
16362
16748
  IMAGE_GENERATION: "tools:image_generation",
@@ -17051,6 +17437,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
17051
17437
  ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
17052
17438
  ScopeCategory2["MEMBER_ROLES"] = "member_roles";
17053
17439
  ScopeCategory2["CHATS"] = "chats";
17440
+ ScopeCategory2["DEMOS"] = "demos";
17054
17441
  ScopeCategory2["DM"] = "dm";
17055
17442
  ScopeCategory2["WORKFLOWS"] = "workflows";
17056
17443
  ScopeCategory2["ASSIGNMENTS"] = "assignments";
@@ -17167,6 +17554,11 @@ var SCOPES = {
17167
17554
  category: "chats" /* CHATS */,
17168
17555
  description: "View all conversations"
17169
17556
  },
17557
+ "demos:run": {
17558
+ name: "demos:run",
17559
+ category: "demos" /* DEMOS */,
17560
+ description: "Start and interact with your own synthetic patient demos"
17561
+ },
17170
17562
  "chats:write": {
17171
17563
  name: "chats:write",
17172
17564
  category: "chats" /* CHATS */,
@@ -18163,4 +18555,4 @@ export {
18163
18555
  pathDraftFromStorage,
18164
18556
  pathDraftToStorage
18165
18557
  };
18166
- //# sourceMappingURL=chunk-SVRE6KIM.js.map
18558
+ //# sourceMappingURL=chunk-ANVLMZLD.js.map