@gravity-rail/sdk 2.0.0 → 3.0.1

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 +9 -9
  2. package/dist/{chat-interaction-CGDgA4K_.d.cts → chat-interaction-BPqj_KMO.d.cts} +1911 -850
  3. package/dist/{chat-interaction-DjV6mYaY.d.ts → chat-interaction-CDlei6KK.d.ts} +1911 -850
  4. package/dist/{chunk-SVRE6KIM.js → chunk-LWRMGN4Z.js} +449 -104
  5. package/dist/chunk-LWRMGN4Z.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 +488 -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 +450 -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-BbWJzHSV.d.ts} +1 -1
  26. package/dist/{member-import-C1IsFkQm.d.cts → member-import-DxBggQLc.d.cts} +1 -1
  27. package/dist/{path-Bd99SxC1.d.cts → path-5DteJvEx.d.ts} +16 -3
  28. package/dist/{path-CZxFBfjw.d.ts → path-bqfiH1XI.d.cts} +16 -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-fAwwBZIX.d.cts} +50 -11
  36. package/dist/{tasks-C8TrcAV8.d.ts → tasks-fAwwBZIX.d.ts} +50 -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:
@@ -7980,6 +8212,37 @@ var HubspotApi = class extends BaseApiClient {
7980
8212
 
7981
8213
  // src/api/sites.ts
7982
8214
  var SitesApi = class extends BaseApiClient {
8215
+ /** Start a fresh synthetic patient session on the Site's configured Workflow. */
8216
+ async startPublicDemo(wid, siteUuid, request) {
8217
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
8218
+ method: "POST",
8219
+ body: JSON.stringify(request)
8220
+ });
8221
+ }
8222
+ /** Read only a demo the acting Member drives. */
8223
+ async getPublicDemo(wid, siteUuid, runId) {
8224
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
8225
+ }
8226
+ /** End this visitor's run and release its test resources. */
8227
+ async endPublicDemo(wid, siteUuid, runId) {
8228
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
8229
+ method: "POST",
8230
+ keepalive: true,
8231
+ body: JSON.stringify({})
8232
+ });
8233
+ }
8234
+ async sendPublicDemoMessage(wid, siteUuid, runId, request) {
8235
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
8236
+ method: "POST",
8237
+ body: JSON.stringify(request)
8238
+ });
8239
+ }
8240
+ async submitPublicDemoForm(wid, siteUuid, runId, request) {
8241
+ return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
8242
+ method: "PUT",
8243
+ body: JSON.stringify(request)
8244
+ });
8245
+ }
7983
8246
  /** List all sites in a workspace. */
7984
8247
  async getSites(wid) {
7985
8248
  return this.fetch(`w/${wid}/sites`);
@@ -8019,6 +8282,15 @@ var SitesApi = class extends BaseApiClient {
8019
8282
  async getSiteSource(wid, siteId) {
8020
8283
  return this.fetch(`w/${wid}/sites/${siteId}/source`);
8021
8284
  }
8285
+ /** List source release revisions from newest to oldest. */
8286
+ async getSiteSourceReleases(wid, siteId, options = {}) {
8287
+ const params = new URLSearchParams();
8288
+ if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
8289
+ if (options.limit != null) params.set("limit", String(options.limit));
8290
+ return this.fetch(
8291
+ `w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
8292
+ );
8293
+ }
8022
8294
  /** Starter templates the caller may seed (superuser-only ones filtered server-side). */
8023
8295
  async getSiteSourceTemplates(wid, siteId) {
8024
8296
  return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
@@ -8919,6 +9191,8 @@ var JourneysApi = class extends BaseApiClient {
8919
9191
  async getJourneys(wid, includeArchived = false, pageOpts) {
8920
9192
  const query2 = new URLSearchParams();
8921
9193
  if (includeArchived) query2.set("include_archived", "true");
9194
+ if (pageOpts?.search) query2.set("search", pageOpts.search);
9195
+ if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
8922
9196
  if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
8923
9197
  if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
8924
9198
  const qs = query2.toString() ? `?${query2.toString()}` : "";
@@ -9275,6 +9549,12 @@ var JourneysApi = class extends BaseApiClient {
9275
9549
 
9276
9550
  // src/api/workflows.ts
9277
9551
  var WorkflowsApi = class extends BaseApiClient {
9552
+ async uploadWorkflowKnowledge(wid, id, file, relativePath) {
9553
+ const body = new FormData();
9554
+ body.append("file", file, relativePath.split("/").pop());
9555
+ body.append("relativePath", relativePath);
9556
+ return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
9557
+ }
9278
9558
  /** List all workflows in a workspace, optionally including archived ones. */
9279
9559
  async getWorkflows(wid, options = {}) {
9280
9560
  const params = new URLSearchParams();
@@ -9730,6 +10010,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
9730
10010
  Scope2["CHATS_READ"] = "chats:read";
9731
10011
  Scope2["CHATS_WRITE"] = "chats:write";
9732
10012
  Scope2["CHATS_ADMIN"] = "chats:admin";
10013
+ Scope2["DEMOS_RUN"] = "demos:run";
9733
10014
  Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
9734
10015
  Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
9735
10016
  Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
@@ -9980,6 +10261,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
9980
10261
  EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
9981
10262
  EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
9982
10263
  EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
10264
+ EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
9983
10265
  EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
9984
10266
  EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
9985
10267
  EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
@@ -10071,9 +10353,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
10071
10353
  WorkspaceFeature2["BROWSER"] = "browser";
10072
10354
  WorkspaceFeature2["WEB_SEARCH"] = "web_search";
10073
10355
  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
10356
  WorkspaceFeature2["GMAIL"] = "gmail";
10078
10357
  WorkspaceFeature2["GCALENDAR"] = "gcalendar";
10079
10358
  WorkspaceFeature2["GDRIVE"] = "gdrive";
@@ -10093,6 +10372,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
10093
10372
  WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
10094
10373
  WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
10095
10374
  WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
10375
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
10376
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
10377
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
10378
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
10379
+ WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
10096
10380
  return WorkspaceFeature2;
10097
10381
  })(WorkspaceFeature || {});
10098
10382
  var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
@@ -11072,13 +11356,6 @@ var WorkspacesApi = class extends BaseApiClient {
11072
11356
  const qs = query2.toString() ? `?${query2.toString()}` : "";
11073
11357
  return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
11074
11358
  }
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
11359
  /** Get a single client workspace by ID. */
11083
11360
  async getClientWorkspace(wid, workspaceId) {
11084
11361
  return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
@@ -11188,7 +11465,9 @@ var WorkspacesApi = class extends BaseApiClient {
11188
11465
  searchParams.set("revision_mode", "active");
11189
11466
  }
11190
11467
  const qs = searchParams.toString();
11191
- const data = await this.fetch(`w/${wid}/export${qs ? `?${qs}` : ""}`);
11468
+ const data = await this.fetch(
11469
+ `w/${wid}/export${qs ? `?${qs}` : ""}`
11470
+ );
11192
11471
  this.verifyExportSelection(data, workflowId, options);
11193
11472
  return data;
11194
11473
  }
@@ -11739,7 +12018,7 @@ var ExperimentsApi = class extends BaseApiClient {
11739
12018
  const query2 = new URLSearchParams();
11740
12019
  if (params?.page !== void 0) query2.set("page", String(params.page));
11741
12020
  if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
11742
- if (params?.includeArchived) query2.set("includeArchived", "true");
12021
+ if (params?.archived !== void 0) query2.set("archived", String(params.archived));
11743
12022
  const qs = query2.toString() ? `?${query2.toString()}` : "";
11744
12023
  return this.fetch(`w/${wid}/experiments${qs}`);
11745
12024
  }
@@ -12166,8 +12445,7 @@ var MetricsApi = class extends BaseApiClient {
12166
12445
  const q = new URLSearchParams();
12167
12446
  if (params?.page !== void 0) q.set("page", String(params.page));
12168
12447
  if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
12169
- if (params?.includeArchived !== void 0)
12170
- q.set("includeArchived", String(params.includeArchived));
12448
+ if (params?.archived !== void 0) q.set("archived", String(params.archived));
12171
12449
  if (params?.source) q.set("source", params.source);
12172
12450
  const qs = q.toString() ? `?${q.toString()}` : "";
12173
12451
  return this.fetch(`w/${wid}/metrics${qs}`);
@@ -12211,6 +12489,18 @@ var MetricsApi = class extends BaseApiClient {
12211
12489
  `w/${wid}/metrics/${metricId}/series?${q.toString()}`
12212
12490
  );
12213
12491
  }
12492
+ /**
12493
+ * Series for several metrics in one request, each with its default
12494
+ * aggregation. Items come back in the order the ids were given.
12495
+ */
12496
+ async getMetricSeriesBatch(wid, params) {
12497
+ const q = new URLSearchParams();
12498
+ for (const id of params.metricIds) q.append("metricIds", String(id));
12499
+ q.set("start", params.start);
12500
+ q.set("end", params.end);
12501
+ if (params.bucket) q.set("bucket", params.bucket);
12502
+ return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
12503
+ }
12214
12504
  /** On-demand compute of enabled chat-source metrics for one chat. */
12215
12505
  async computeChatMetrics(wid, data) {
12216
12506
  return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
@@ -12548,6 +12838,7 @@ var WORKSPACE_METHOD_NAMES = [
12548
12838
  "archiveMemberByExternalId",
12549
12839
  "archiveMemberRelationship",
12550
12840
  "archivePersona",
12841
+ "archiveInbox",
12551
12842
  "archivePhoneNumber",
12552
12843
  "archiveStep",
12553
12844
  "archiveTask",
@@ -12621,7 +12912,6 @@ var WORKSPACE_METHOD_NAMES = [
12621
12912
  "createChatCompletion",
12622
12913
  "createChatFilter",
12623
12914
  "createChatLabel",
12624
- "createClientWorkspace",
12625
12915
  "createConnection",
12626
12916
  "createContactPermission",
12627
12917
  "createCustomTool",
@@ -12829,6 +13119,7 @@ var WORKSPACE_METHOD_NAMES = [
12829
13119
  "getApiKeys",
12830
13120
  "getArchiveBlockers",
12831
13121
  "getAthenaPlatformApp",
13122
+ "getFhirConnectionSyncConfig",
12832
13123
  "getAssignment",
12833
13124
  "getAssignmentCelContext",
12834
13125
  "getAssignmentMessages",
@@ -12887,7 +13178,6 @@ var WORKSPACE_METHOD_NAMES = [
12887
13178
  "getChats",
12888
13179
  "getChatsDailyCreationStats",
12889
13180
  "getChatsNeedsResponse",
12890
- "getChildThreadMessages",
12891
13181
  "getClientWorkspace",
12892
13182
  "getConfigurationHealth",
12893
13183
  "getConfluenceStatus",
@@ -12929,7 +13219,6 @@ var WORKSPACE_METHOD_NAMES = [
12929
13219
  "getDevices",
12930
13220
  "getDiscordBot",
12931
13221
  "getDiscordBotAccounts",
12932
- "getDiscordBotByUuid",
12933
13222
  "getDiscordBots",
12934
13223
  "getDiscordGuilds",
12935
13224
  "getDiscordThreads",
@@ -12976,6 +13265,7 @@ var WORKSPACE_METHOD_NAMES = [
12976
13265
  "getQueryFields",
12977
13266
  "getSiteSharing",
12978
13267
  "getSiteSource",
13268
+ "getSiteSourceReleases",
12979
13269
  "getSiteSourceTemplates",
12980
13270
  "getThemeSettings",
12981
13271
  "importSiteSourceZip",
@@ -13032,6 +13322,7 @@ var WORKSPACE_METHOD_NAMES = [
13032
13322
  "getInbox",
13033
13323
  "getInboxEmail",
13034
13324
  "getInboxEmails",
13325
+ "getInboxArchiveBlockers",
13035
13326
  "getInboxOutboundEmailStats",
13036
13327
  "getInboxThreads",
13037
13328
  "getInboxes",
@@ -13107,6 +13398,7 @@ var WORKSPACE_METHOD_NAMES = [
13107
13398
  "getPhoneCalls",
13108
13399
  "getPhoneCallByUuid",
13109
13400
  "getPhoneNumber",
13401
+ "getPhoneNumberActivity",
13110
13402
  "getPhoneNumberCalls",
13111
13403
  "getPhoneNumberFaxes",
13112
13404
  "getPhoneNumberMessages",
@@ -13160,6 +13452,7 @@ var WORKSPACE_METHOD_NAMES = [
13160
13452
  "getSupervisor",
13161
13453
  "getSupervisors",
13162
13454
  "getSyncRunItems",
13455
+ "getSyncRunItemsPage",
13163
13456
  "getSyncRuns",
13164
13457
  "getTask",
13165
13458
  "getTaskChats",
@@ -13282,6 +13575,7 @@ var WORKSPACE_METHOD_NAMES = [
13282
13575
  "deleteMetric",
13283
13576
  "listMetricObservations",
13284
13577
  "getMetricSeries",
13578
+ "getMetricSeriesBatch",
13285
13579
  "computeChatMetrics",
13286
13580
  "listPushSubscriptions",
13287
13581
  "listResourceWorkflows",
@@ -13612,7 +13906,6 @@ function bindChatsMethods(target, chats) {
13612
13906
  target.summarizeChat = chats.summarizeChat.bind(chats);
13613
13907
  target.getChatMessages = chats.getChatMessages.bind(chats);
13614
13908
  target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
13615
- target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
13616
13909
  target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
13617
13910
  target.getChatTools = chats.getChatTools.bind(chats);
13618
13911
  target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
@@ -13853,7 +14146,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
13853
14146
  target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
13854
14147
  target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
13855
14148
  target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
13856
- target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
13857
14149
  target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
13858
14150
  target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
13859
14151
  target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
@@ -13910,6 +14202,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
13910
14202
 
13911
14203
  // src/client/bindings/auth.ts
13912
14204
  function bindAuthMethods(target, auth, assignments) {
14205
+ target.getAccountNotices = auth.getAccountNotices.bind(auth);
14206
+ target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
14207
+ target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
13913
14208
  target.getUserAccount = auth.getUserAccount.bind(auth);
13914
14209
  target.updateUserAccount = auth.updateUserAccount.bind(auth);
13915
14210
  target.recordAcquisition = auth.recordAcquisition.bind(auth);
@@ -13971,6 +14266,11 @@ function bindAuthMethods(target, auth, assignments) {
13971
14266
 
13972
14267
  // src/client/bindings/sites.ts
13973
14268
  function bindSitesMethods(target, sites) {
14269
+ target.endPublicDemo = sites.endPublicDemo.bind(sites);
14270
+ target.startPublicDemo = sites.startPublicDemo.bind(sites);
14271
+ target.getPublicDemo = sites.getPublicDemo.bind(sites);
14272
+ target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
14273
+ target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
13974
14274
  target.getSites = sites.getSites.bind(sites);
13975
14275
  target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
13976
14276
  target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
@@ -13978,6 +14278,7 @@ function bindSitesMethods(target, sites) {
13978
14278
  target.getSiteSharing = sites.getSiteSharing.bind(sites);
13979
14279
  target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
13980
14280
  target.getSiteSource = sites.getSiteSource.bind(sites);
14281
+ target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
13981
14282
  target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
13982
14283
  target.createSiteSource = sites.createSiteSource.bind(sites);
13983
14284
  target.buildSiteSource = sites.buildSiteSource.bind(sites);
@@ -14038,6 +14339,8 @@ function bindFilesMethods(target, files) {
14038
14339
  target.createFolder = files.createFolder.bind(files);
14039
14340
  target.updateFolder = files.updateFolder.bind(files);
14040
14341
  target.deleteFolder = files.deleteFolder.bind(files);
14342
+ target.reindexFile = files.reindexFile.bind(files);
14343
+ target.searchFile = files.searchFile.bind(files);
14041
14344
  target.reindexFolder = files.reindexFolder.bind(files);
14042
14345
  target.searchFolder = files.searchFolder.bind(files);
14043
14346
  target.getFileLabels = files.getFileLabels.bind(files);
@@ -14125,6 +14428,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
14125
14428
  target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
14126
14429
  target.createWorkflow = workflows.createWorkflow.bind(workflows);
14127
14430
  target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
14431
+ target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
14128
14432
  target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
14129
14433
  target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
14130
14434
  target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
@@ -14216,6 +14520,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
14216
14520
  target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
14217
14521
  target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
14218
14522
  target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
14523
+ target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
14219
14524
  target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
14220
14525
  target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
14221
14526
  target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
@@ -14229,6 +14534,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
14229
14534
  target.createInbox = inboxes.createInbox.bind(inboxes);
14230
14535
  target.updateInbox = inboxes.updateInbox.bind(inboxes);
14231
14536
  target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
14537
+ target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
14538
+ target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
14232
14539
  target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
14233
14540
  target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
14234
14541
  target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
@@ -14390,7 +14697,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14390
14697
  target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
14391
14698
  target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
14392
14699
  target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
14393
- target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
14394
14700
  target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
14395
14701
  target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
14396
14702
  target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
@@ -14455,6 +14761,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14455
14761
  target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
14456
14762
  target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
14457
14763
  target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
14764
+ target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
14458
14765
  target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
14459
14766
  target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
14460
14767
  target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
@@ -14549,6 +14856,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
14549
14856
  target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
14550
14857
  target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
14551
14858
  target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
14859
+ target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
14552
14860
  target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
14553
14861
  target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
14554
14862
  target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
@@ -14595,6 +14903,13 @@ function bindOperatorMethods(target, operatorGroups) {
14595
14903
 
14596
14904
  // src/client/bindings/org.ts
14597
14905
  function bindOrgMethods(target, org) {
14906
+ target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
14907
+ target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
14908
+ target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
14909
+ target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
14910
+ target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
14911
+ target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
14912
+ target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
14598
14913
  target.listOrgDomains = org.listOrgDomains.bind(org);
14599
14914
  target.registerOrgDomain = org.registerOrgDomain.bind(org);
14600
14915
  target.getOrgDomain = org.getOrgDomain.bind(org);
@@ -14808,6 +15123,7 @@ function bindMetricsMethods(target, metrics) {
14808
15123
  target.deleteMetric = metrics.deleteMetric.bind(metrics);
14809
15124
  target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
14810
15125
  target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
15126
+ target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
14811
15127
  target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
14812
15128
  }
14813
15129
 
@@ -14957,7 +15273,6 @@ var GravityRailClient = class {
14957
15273
  summarizeChat;
14958
15274
  getChatMessages;
14959
15275
  getChatTaskTransitions;
14960
- getChildThreadMessages;
14961
15276
  getChatToolCallMessages;
14962
15277
  getChatTools;
14963
15278
  initiateOutboundCall;
@@ -15165,6 +15480,7 @@ var GravityRailClient = class {
15165
15480
  deleteMetric;
15166
15481
  listMetricObservations;
15167
15482
  getMetricSeries;
15483
+ getMetricSeriesBatch;
15168
15484
  computeChatMetrics;
15169
15485
  // Dashboards API
15170
15486
  getDashboards;
@@ -15358,7 +15674,6 @@ var GravityRailClient = class {
15358
15674
  dismissNotification;
15359
15675
  dismissAllNotifications;
15360
15676
  getResellerWorkspaces;
15361
- createClientWorkspace;
15362
15677
  getClientWorkspace;
15363
15678
  updateClientWorkspace;
15364
15679
  deleteClientWorkspace;
@@ -15394,6 +15709,13 @@ var GravityRailClient = class {
15394
15709
  upsertWidgetDomain;
15395
15710
  deleteWidgetDomain;
15396
15711
  // Org API
15712
+ getOrgManagerCredentialResponse;
15713
+ authorizeOrgManagerDelegation;
15714
+ getOrgManagerChats;
15715
+ createOrgManagerChat;
15716
+ getOrgManagerMessages;
15717
+ startOrgManagerTurn;
15718
+ stopOrgManagerTurn;
15397
15719
  listOrgDomains;
15398
15720
  registerOrgDomain;
15399
15721
  getOrgDomain;
@@ -15468,6 +15790,9 @@ var GravityRailClient = class {
15468
15790
  declineInvitation;
15469
15791
  // Auth API
15470
15792
  getUserAccount;
15793
+ getAccountNotices;
15794
+ viewAccountNotice;
15795
+ dismissAccountNotice;
15471
15796
  updateUserAccount;
15472
15797
  recordAcquisition;
15473
15798
  login;
@@ -15525,6 +15850,11 @@ var GravityRailClient = class {
15525
15850
  getAssignmentTools;
15526
15851
  executeAssignmentTool;
15527
15852
  // Sites API
15853
+ startPublicDemo;
15854
+ endPublicDemo;
15855
+ getPublicDemo;
15856
+ sendPublicDemoMessage;
15857
+ submitPublicDemoForm;
15528
15858
  getSites;
15529
15859
  checkSiteSlugAvailability;
15530
15860
  checkSiteDomainAvailability;
@@ -15532,6 +15862,7 @@ var GravityRailClient = class {
15532
15862
  getSiteSharing;
15533
15863
  updateSiteSharing;
15534
15864
  getSiteSource;
15865
+ getSiteSourceReleases;
15535
15866
  getSiteSourceTemplates;
15536
15867
  createSiteSource;
15537
15868
  buildSiteSource;
@@ -15594,6 +15925,8 @@ var GravityRailClient = class {
15594
15925
  createFolder;
15595
15926
  updateFolder;
15596
15927
  deleteFolder;
15928
+ reindexFile;
15929
+ searchFile;
15597
15930
  reindexFolder;
15598
15931
  searchFolder;
15599
15932
  getFileLabels;
@@ -15650,6 +15983,7 @@ var GravityRailClient = class {
15650
15983
  getWorkflowsOutlineBatch;
15651
15984
  createWorkflow;
15652
15985
  updateWorkflow;
15986
+ uploadWorkflowKnowledge;
15653
15987
  getWorkflowDeletionPreview;
15654
15988
  deleteWorkflow;
15655
15989
  archiveWorkflow;
@@ -15735,6 +16069,7 @@ var GravityRailClient = class {
15735
16069
  getPhoneNumberOutboundAnalyticsSummary;
15736
16070
  getPhoneNumberOutboundAnalyticsCalls;
15737
16071
  exportPhoneNumberOutboundAnalyticsCsv;
16072
+ getPhoneNumberActivity;
15738
16073
  getPhoneNumberMessages;
15739
16074
  getPhoneNumberFaxes;
15740
16075
  getPhoneNumberVoicemails;
@@ -15748,6 +16083,8 @@ var GravityRailClient = class {
15748
16083
  createInbox;
15749
16084
  updateInbox;
15750
16085
  deleteInbox;
16086
+ archiveInbox;
16087
+ getInboxArchiveBlockers;
15751
16088
  getInboxEmails;
15752
16089
  getInboxEmail;
15753
16090
  markEmailAsRead;
@@ -15906,7 +16243,6 @@ var GravityRailClient = class {
15906
16243
  // Discord Bots API
15907
16244
  getDiscordBots;
15908
16245
  getDiscordBot;
15909
- getDiscordBotByUuid;
15910
16246
  createDiscordBot;
15911
16247
  updateDiscordBot;
15912
16248
  deleteDiscordBot;
@@ -15974,6 +16310,7 @@ var GravityRailClient = class {
15974
16310
  fhirGetEncounterSyncRuns;
15975
16311
  fhirRefreshEncounterPatient;
15976
16312
  fhirBackfillEncounterSync;
16313
+ getFhirConnectionSyncConfig;
15977
16314
  getAthenaPlatformApp;
15978
16315
  verifyAthenaAccess;
15979
16316
  connectAthena;
@@ -16073,6 +16410,7 @@ var GravityRailClient = class {
16073
16410
  startSyncRun;
16074
16411
  getSyncRuns;
16075
16412
  getSyncRunItems;
16413
+ getSyncRunItemsPage;
16076
16414
  getMemberSyncSummary;
16077
16415
  getConnectionFieldHomes;
16078
16416
  getInboundRecordStatus;
@@ -16357,6 +16695,7 @@ var AbilityTypeSlugs = {
16357
16695
  // Tools
16358
16696
  TOOLKITS: "tools:toolkits",
16359
16697
  WEB_SEARCH: "tools:web_search",
16698
+ WEB_BROWSER: "tools:web_browser",
16360
16699
  CONVERSATION_HISTORY: "tools:conversation_history",
16361
16700
  MEMBER_MEMORY: "memory:member_memory",
16362
16701
  IMAGE_GENERATION: "tools:image_generation",
@@ -17051,6 +17390,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
17051
17390
  ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
17052
17391
  ScopeCategory2["MEMBER_ROLES"] = "member_roles";
17053
17392
  ScopeCategory2["CHATS"] = "chats";
17393
+ ScopeCategory2["DEMOS"] = "demos";
17054
17394
  ScopeCategory2["DM"] = "dm";
17055
17395
  ScopeCategory2["WORKFLOWS"] = "workflows";
17056
17396
  ScopeCategory2["ASSIGNMENTS"] = "assignments";
@@ -17167,6 +17507,11 @@ var SCOPES = {
17167
17507
  category: "chats" /* CHATS */,
17168
17508
  description: "View all conversations"
17169
17509
  },
17510
+ "demos:run": {
17511
+ name: "demos:run",
17512
+ category: "demos" /* DEMOS */,
17513
+ description: "Start and interact with your own synthetic patient demos"
17514
+ },
17170
17515
  "chats:write": {
17171
17516
  name: "chats:write",
17172
17517
  category: "chats" /* CHATS */,
@@ -18163,4 +18508,4 @@ export {
18163
18508
  pathDraftFromStorage,
18164
18509
  pathDraftToStorage
18165
18510
  };
18166
- //# sourceMappingURL=chunk-SVRE6KIM.js.map
18511
+ //# sourceMappingURL=chunk-LWRMGN4Z.js.map