@gravity-rail/sdk 0.13.1 → 0.15.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/dist/{chunk-V7ZKEH4V.js → chunk-2YLKG4TT.js} +1 -1
  2. package/dist/chunk-2YLKG4TT.js.map +1 -0
  3. package/dist/{chunk-FSSXKQR5.js → chunk-GP6ICMWF.js} +2 -1
  4. package/dist/chunk-GP6ICMWF.js.map +1 -0
  5. package/dist/{chunk-YRIBZ3RM.js → chunk-QTJQTTIR.js} +366 -27
  6. package/dist/chunk-QTJQTTIR.js.map +1 -0
  7. package/dist/{client-DjyYhpnv.d.ts → client-BLuz00Qr.d.cts} +904 -54
  8. package/dist/{client-eet1pTc_.d.cts → client-CefA5Mxe.d.ts} +904 -54
  9. package/dist/helpers.cjs.map +1 -1
  10. package/dist/helpers.d.cts +2 -2
  11. package/dist/helpers.d.ts +2 -2
  12. package/dist/helpers.js +1 -1
  13. package/dist/index.cjs +379 -32
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +6 -7
  16. package/dist/index.d.ts +6 -7
  17. package/dist/index.js +26 -11
  18. package/dist/index.js.map +1 -1
  19. package/dist/internal.cjs +364 -25
  20. package/dist/internal.cjs.map +1 -1
  21. package/dist/internal.d.cts +411 -142
  22. package/dist/internal.d.ts +411 -142
  23. package/dist/internal.js +18 -4
  24. package/dist/internal.js.map +1 -1
  25. package/dist/{revision-state-CC1svrGE.d.ts → revision-state-DL1ViZ57.d.ts} +28 -5
  26. package/dist/{revision-state-DFWcu6wD.d.cts → revision-state-axZ62kJk.d.cts} +28 -5
  27. package/dist/schemas.cjs +71 -21
  28. package/dist/schemas.cjs.map +1 -1
  29. package/dist/schemas.d.cts +112 -21
  30. package/dist/schemas.d.ts +112 -21
  31. package/dist/schemas.js +67 -21
  32. package/dist/schemas.js.map +1 -1
  33. package/dist/{tasks-Dl1Dzgkf.d.cts → tasks-Boi6AxGp.d.cts} +108 -9
  34. package/dist/{tasks-Dl1Dzgkf.d.ts → tasks-Boi6AxGp.d.ts} +108 -9
  35. package/package.json +1 -1
  36. package/dist/chunk-FSSXKQR5.js.map +0 -1
  37. package/dist/chunk-V7ZKEH4V.js.map +0 -1
  38. package/dist/chunk-YRIBZ3RM.js.map +0 -1
package/dist/internal.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/internal.ts
21
21
  var internal_exports = {};
22
22
  __export(internal_exports, {
23
+ AGENT_NOTE_ORIGINS: () => AGENT_NOTE_ORIGINS,
23
24
  AIModelsApi: () => AIModelsApi,
24
25
  AbilitiesApi: () => AbilitiesApi,
25
26
  AbilityConfigIssueCode: () => AbilityConfigIssueCode,
@@ -197,6 +198,7 @@ __export(internal_exports, {
197
198
  ToolkitsApi: () => ToolkitsApi,
198
199
  VoiceApi: () => VoiceApi,
199
200
  WIDGET_SLUGS: () => WIDGET_SLUGS,
201
+ WORKFLOW_IMPLICIT_USE_SCOPE: () => WORKFLOW_IMPLICIT_USE_SCOPE,
200
202
  WorkflowAccessWarningResourceType: () => WorkflowAccessWarningResourceType,
201
203
  WorkflowNotesApi: () => WorkflowNotesApi,
202
204
  WorkflowResourceType: () => WorkflowAccessWarningResourceType,
@@ -264,13 +266,18 @@ __export(internal_exports, {
264
266
  getTTSProvider: () => getTTSProvider,
265
267
  getVoiceModelId: () => getVoiceModelId,
266
268
  initializeFeatures: () => initializeFeatures,
269
+ isAgentNoteOrigin: () => isAgentNoteOrigin,
267
270
  isChatType: () => isChatType,
268
271
  isFeatureAvailable: () => isFeatureAvailable,
269
272
  isPositiveRating: () => isPositiveRating,
270
273
  isRegistryInitialized: () => isRegistryInitialized,
271
274
  isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
272
275
  parseExperimentStatCount: () => parseExperimentStatCount,
276
+ parseOrgAuthChallenge: () => parseOrgAuthChallenge,
273
277
  requiresAssistantParticipant: () => requiresAssistantParticipant,
278
+ roleCanUseWorkflow: () => roleCanUseWorkflow,
279
+ roleImplicitWorkflowUseScope: () => roleImplicitWorkflowUseScope,
280
+ roleWorkflowAccess: () => roleWorkflowAccess,
274
281
  usesBuiltinAssistant: () => usesBuiltinAssistant,
275
282
  validateFeatureDependencies: () => validateFeatureDependencies
276
283
  });
@@ -317,6 +324,21 @@ function encodePermissions(permissions) {
317
324
  if (permissions.delete) accessMode |= PERMISSION_DELETE;
318
325
  return accessMode;
319
326
  }
327
+ var WORKFLOW_IMPLICIT_USE_SCOPE = "workflows:admin";
328
+ function roleImplicitWorkflowUseScope(role) {
329
+ return (role.grantedScopes ?? []).includes(WORKFLOW_IMPLICIT_USE_SCOPE) ? WORKFLOW_IMPLICIT_USE_SCOPE : null;
330
+ }
331
+ function roleWorkflowAccess(role, workflowId) {
332
+ const viaScope = roleImplicitWorkflowUseScope(role);
333
+ if (viaScope) {
334
+ return { accessMode: PERMISSION_USE | PERMISSION_EDIT, viaScope };
335
+ }
336
+ const entry = (role.workflowAccess ?? []).find((wa) => wa.workflowId === workflowId);
337
+ return { accessMode: entry?.accessMode ?? PERMISSION_NONE, viaScope: null };
338
+ }
339
+ function roleCanUseWorkflow(role, workflowId) {
340
+ return (roleWorkflowAccess(role, workflowId).accessMode & PERMISSION_USE) !== 0;
341
+ }
320
342
  var Scope = /* @__PURE__ */ ((Scope2) => {
321
343
  Scope2["WORKSPACE_READ"] = "workspace:read";
322
344
  Scope2["WORKSPACE_WRITE"] = "workspace:write";
@@ -456,6 +478,7 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
456
478
  EventRuleObjectType2["JOURNEY"] = "journey";
457
479
  EventRuleObjectType2["CALL"] = "call";
458
480
  EventRuleObjectType2["VOICEMAIL"] = "voicemail";
481
+ EventRuleObjectType2["FAX"] = "fax";
459
482
  return EventRuleObjectType2;
460
483
  })(EventRuleObjectType || {});
461
484
  var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
@@ -474,6 +497,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
474
497
  EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
475
498
  EventRuleEventType2["ASSISTANT_MESSAGE"] = "workflow:assistant_message";
476
499
  EventRuleEventType2["USER_MESSAGE"] = "workflow:user_message";
500
+ EventRuleEventType2["WORKFLOW_EXECUTE"] = "workflow:execute";
477
501
  EventRuleEventType2["CALENDAR_EVENT_CREATED"] = "calendar_event:created";
478
502
  EventRuleEventType2["CALENDAR_EVENT_UPDATED"] = "calendar_event:updated";
479
503
  EventRuleEventType2["CALENDAR_EVENT_CANCELLED"] = "calendar_event:cancelled";
@@ -488,6 +512,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
488
512
  EventRuleEventType2["CALL_COMPLETED"] = "call:completed";
489
513
  EventRuleEventType2["CALL_SUMMARY"] = "call:summary";
490
514
  EventRuleEventType2["VOICEMAIL_RECEIVED"] = "voicemail:received";
515
+ EventRuleEventType2["FAX_RECEIVED"] = "fax:received";
491
516
  return EventRuleEventType2;
492
517
  })(EventRuleEventType || {});
493
518
  var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
@@ -541,12 +566,13 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
541
566
  WorkspaceFeature2["BROWSER"] = "browser";
542
567
  WorkspaceFeature2["WEB_SEARCH"] = "web_search";
543
568
  WorkspaceFeature2["CALENDAR"] = "calendar";
544
- WorkspaceFeature2["JOURNEYS"] = "journeys";
545
569
  WorkspaceFeature2["EXPERIMENTS"] = "experiments";
546
- WorkspaceFeature2["OPERATOR"] = "operator";
547
570
  WorkspaceFeature2["GMAIL"] = "gmail";
548
571
  WorkspaceFeature2["GCALENDAR"] = "gcalendar";
572
+ WorkspaceFeature2["GDRIVE"] = "gdrive";
573
+ WorkspaceFeature2["GSHEETS"] = "gsheets";
549
574
  WorkspaceFeature2["MONDAY"] = "monday";
575
+ WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
550
576
  WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
551
577
  WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
552
578
  WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
@@ -836,6 +862,7 @@ var AccessGrantResourceType = /* @__PURE__ */ ((AccessGrantResourceType2) => {
836
862
  })(AccessGrantResourceType || {});
837
863
  var CapabilityClass = /* @__PURE__ */ ((CapabilityClass2) => {
838
864
  CapabilityClass2["TOOL_ALWAYS_ALLOW"] = "tool.always_allow";
865
+ CapabilityClass2["SCOPE_ALWAYS_ALLOW"] = "scope.always_allow";
839
866
  CapabilityClass2["SELF_MODIFICATION_SCHEDULE"] = "self_modification.schedule";
840
867
  CapabilityClass2["ATTENTION_INTERRUPT_RUNG"] = "attention.interrupt_rung";
841
868
  return CapabilityClass2;
@@ -893,6 +920,7 @@ var AbilityTypeSlugs = {
893
920
  GMAIL: "integration:gmail",
894
921
  GOOGLE_CALENDAR: "integration:google_calendar",
895
922
  GOOGLE_DRIVE: "integration:google_drive",
923
+ GOOGLE_SHEETS: "integration:google_sheets",
896
924
  CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
897
925
  // Communication
898
926
  PHONE_CALL_TOOLS: "communication:phone_call_tools",
@@ -1292,6 +1320,14 @@ var SMS_DELIVERY_FAILURE_STATUSES = /* @__PURE__ */ new Set([
1292
1320
  function isSMSDeliveryFailureStatus(status) {
1293
1321
  return status != null && SMS_DELIVERY_FAILURE_STATUSES.has(status);
1294
1322
  }
1323
+ var AGENT_NOTE_ORIGINS = /* @__PURE__ */ new Set([
1324
+ "workflow",
1325
+ "background_run",
1326
+ "platform"
1327
+ ]);
1328
+ function isAgentNoteOrigin(origin) {
1329
+ return origin != null && AGENT_NOTE_ORIGINS.has(origin);
1330
+ }
1295
1331
  var POSITIVE_RATING_THRESHOLD = 0.5;
1296
1332
  function isPositiveRating(rating) {
1297
1333
  return rating != null && rating >= POSITIVE_RATING_THRESHOLD;
@@ -3907,6 +3943,12 @@ var CELApi = class extends BaseApiClient {
3907
3943
  body: JSON.stringify(request)
3908
3944
  });
3909
3945
  }
3946
+ async validateCelExpression(wid, request) {
3947
+ return this.fetch(`w/${wid}/cel/validate`, {
3948
+ method: "POST",
3949
+ body: JSON.stringify(request)
3950
+ });
3951
+ }
3910
3952
  };
3911
3953
 
3912
3954
  // src/api/chats.ts
@@ -3926,6 +3968,8 @@ var ChatsApi = class extends BaseApiClient {
3926
3968
  if (options.mine !== void 0) params.append("mine", options.mine.toString());
3927
3969
  if (options.needsResponse !== void 0)
3928
3970
  params.append("needsResponse", options.needsResponse.toString());
3971
+ if (options.needsResponseFirst !== void 0)
3972
+ params.append("needsResponseFirst", options.needsResponseFirst.toString());
3929
3973
  if (options.paused !== void 0) params.append("paused", options.paused.toString());
3930
3974
  if (options.archived !== void 0) params.append("archived", options.archived.toString());
3931
3975
  if (options.channel) params.append("channel", options.channel);
@@ -3975,6 +4019,25 @@ var ChatsApi = class extends BaseApiClient {
3975
4019
  async getChat(wid, id) {
3976
4020
  return this.fetch(`w/${wid}/chats/${id}`);
3977
4021
  }
4022
+ /**
4023
+ * Create-chat preflight for SMS: is a conversation already live between this
4024
+ * workspace number and this member?
4025
+ *
4026
+ * An SMS conversation with a member is a single stream — inbound SMS resolves
4027
+ * to ONE current chat per (member phone, workspace phone) pair — so creating
4028
+ * a new SMS chat SUPERSEDES the existing one and the member's next reply
4029
+ * lands on the new chat. Callers use this to say so before committing.
4030
+ *
4031
+ * Read-only, `chats:read`, and PHI-safe by construction: status and timing
4032
+ * only, no message content and no chat title.
4033
+ */
4034
+ async getCurrentSmsChat(wid, options) {
4035
+ const params = new URLSearchParams({
4036
+ memberId: options.memberId.toString(),
4037
+ phoneNumberId: options.phoneNumberId.toString()
4038
+ });
4039
+ return this.fetch(`w/${wid}/chats/current-sms?${params}`);
4040
+ }
3978
4041
  /** Get token usage statistics for a chat. */
3979
4042
  async getChatTokenUsage(wid, chatId) {
3980
4043
  return this.fetch(`w/${wid}/chats/${chatId}/token-usage`);
@@ -4124,6 +4187,24 @@ var ChatsApi = class extends BaseApiClient {
4124
4187
  `w/${wid}/chats/${id}/messages${params.toString() ? `?${params.toString()}` : ""}`
4125
4188
  );
4126
4189
  }
4190
+ /** List the background-work thread hanging off a message.
4191
+ *
4192
+ * When a tool trajectory outgrows its turn it detaches and runs in the
4193
+ * background (ADR-11 / forked trajectories), writing its messages as a
4194
+ * child thread parented at the fork point. Main-history reads exclude
4195
+ * them, so this is how the "show work" affordance fetches them — lazily,
4196
+ * only when a message with a non-zero `childMessageCount` is expanded.
4197
+ * Returns the thread in chronological order, empty when there is none.
4198
+ *
4199
+ * `messageUuid` is the fork point's `ChatMessage.id`. */
4200
+ async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
4201
+ const params = new URLSearchParams();
4202
+ params.append("limit", limit.toString());
4203
+ params.append("offset", offset.toString());
4204
+ return this.fetch(
4205
+ `w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
4206
+ );
4207
+ }
4127
4208
  /** List messages associated with a specific tool call in a chat. */
4128
4209
  async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
4129
4210
  const params = new URLSearchParams();
@@ -5509,6 +5590,17 @@ var FhirConnectionsApi = class extends BaseApiClient {
5509
5590
  { method: "POST", body: JSON.stringify(data) }
5510
5591
  );
5511
5592
  }
5593
+ /**
5594
+ * Bounded, read-only check of which external patient IDs are already
5595
+ * linked on this connection. PHI-minimal: sends/returns external patient
5596
+ * IDs only — never demographics.
5597
+ */
5598
+ async fhirCheckPatientLinks(wid, connectionId, data) {
5599
+ return this.fetch(
5600
+ `w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members/check`,
5601
+ { method: "POST", body: JSON.stringify(data) }
5602
+ );
5603
+ }
5512
5604
  // ==================== Encounter Sync ====================
5513
5605
  async fhirGetEncounterSyncStatus(wid, connectionId) {
5514
5606
  return this.fetch(`w/${wid}/app-connections/fhir/connections/${connectionId}/encounter-sync`);
@@ -5564,6 +5656,72 @@ var PatientSyncConnectionsApi = class extends BaseApiClient {
5564
5656
  }
5565
5657
  };
5566
5658
 
5659
+ // src/api/documo-fax.ts
5660
+ var DocumoFaxApi = class extends BaseApiClient {
5661
+ async getDocumoFaxStatus(wid) {
5662
+ return this.fetch(`w/${wid}/app-connections/documo-fax/status`);
5663
+ }
5664
+ async getDocumoFaxSetup(wid) {
5665
+ return this.fetch(`w/${wid}/app-connections/documo-fax/setup`);
5666
+ }
5667
+ /**
5668
+ * Received-fax log for this connection.
5669
+ *
5670
+ * Entries carry `senderNumber`, which is an unauthenticated claim by the
5671
+ * sending machine and is PHI. Render it; never log it.
5672
+ *
5673
+ * `status` is repeatable — one query entry per value, matching the route's
5674
+ * `list[str]` binding. The date bounds filter on when the delivery was
5675
+ * recorded, not on `receivedAt`: a fax that failed before storage never
5676
+ * gets a `receivedAt`, so bounding that column would hide exactly the
5677
+ * failures an operator filtering by date is hunting for.
5678
+ */
5679
+ async listDocumoFaxes(wid, params) {
5680
+ const query = new URLSearchParams();
5681
+ if (params?.page !== void 0) query.set("page", String(params.page));
5682
+ if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
5683
+ params?.status?.forEach((value) => query.append("status", value));
5684
+ if (params?.receivedAfter) query.set("receivedAfter", params.receivedAfter);
5685
+ if (params?.receivedBefore) query.set("receivedBefore", params.receivedBefore);
5686
+ const suffix = query.toString() === "" ? "" : `?${query.toString()}`;
5687
+ return this.fetch(
5688
+ `w/${wid}/app-connections/documo-fax/faxes${suffix}`
5689
+ );
5690
+ }
5691
+ /**
5692
+ * The three bodyless POSTs below send `{}` deliberately: the routes require
5693
+ * a JSON body as a CSRF barrier (a cross-site HTML form POST cannot set
5694
+ * Content-Type: application/json, so it 422s). See GRA-6284.
5695
+ */
5696
+ async installDocumoFax(wid) {
5697
+ return this.fetch(`w/${wid}/app-connections/documo-fax/install`, {
5698
+ method: "POST",
5699
+ body: JSON.stringify({})
5700
+ });
5701
+ }
5702
+ async configureDocumoFax(wid, data) {
5703
+ return this.fetch(
5704
+ `w/${wid}/app-connections/documo-fax/configure`,
5705
+ {
5706
+ method: "POST",
5707
+ body: JSON.stringify(data)
5708
+ }
5709
+ );
5710
+ }
5711
+ async verifyDocumoFax(wid) {
5712
+ return this.fetch(`w/${wid}/app-connections/documo-fax/verify`, {
5713
+ method: "POST",
5714
+ body: JSON.stringify({})
5715
+ });
5716
+ }
5717
+ async rotateDocumoFaxCredentials(wid) {
5718
+ return this.fetch(
5719
+ `w/${wid}/app-connections/documo-fax/rotate-credentials`,
5720
+ { method: "POST", body: JSON.stringify({}) }
5721
+ );
5722
+ }
5723
+ };
5724
+
5567
5725
  // src/api/healthie.ts
5568
5726
  var HealthieApi = class extends BaseApiClient {
5569
5727
  async configureHealthie(wid, data) {
@@ -5897,6 +6055,16 @@ var FilesApi = class extends BaseApiClient {
5897
6055
  async getFolderSharing(wid, folderId) {
5898
6056
  return this.fetch(`w/${wid}/folders/${folderId}/sharing`);
5899
6057
  }
6058
+ /**
6059
+ * Ask whether another member can read a folder, evaluated by the real
6060
+ * authorizer as that member. Used to tell "a landing folder is set" apart
6061
+ * from "the fax owner can actually open it".
6062
+ */
6063
+ async getFolderMemberAccess(wid, folderId, memberId) {
6064
+ return this.fetch(
6065
+ `w/${wid}/folders/${folderId}/member-access?memberId=${memberId}`
6066
+ );
6067
+ }
5900
6068
  /** Update the role associations for a folder's sharing permissions. */
5901
6069
  async updateFolderRoles(wid, folderId, data) {
5902
6070
  return this.fetch(
@@ -7699,7 +7867,12 @@ var OrgApi = class extends BaseApiClient {
7699
7867
  `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products`
7700
7868
  );
7701
7869
  }
7702
- /** Reconcile trust product state against Twilio (discovery + status refresh). */
7870
+ /**
7871
+ * Reconcile trust product state against Twilio (discovery + status
7872
+ * refresh). Returns the refreshed products plus which product keys were
7873
+ * newly discovered. Responds 409 when another Trust Hub operation holds
7874
+ * the org lock — retry shortly rather than queueing.
7875
+ */
7703
7876
  async syncVoiceTrustProducts(orgUuid, legalEntityUuid) {
7704
7877
  return this.fetch(
7705
7878
  `o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products/sync`,
@@ -7842,6 +8015,9 @@ function getOAuthPath(providerSlug, action) {
7842
8015
  if (providerSlug === "gdrive") {
7843
8016
  return `oauth/google/drive/${action}`;
7844
8017
  }
8018
+ if (providerSlug === "gsheets") {
8019
+ return `oauth/google/sheets/${action}`;
8020
+ }
7845
8021
  return `oauth/${providerSlug}/${action}`;
7846
8022
  }
7847
8023
  function buildAuthorizeQuery(options) {
@@ -8017,6 +8193,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
8017
8193
  `w/${wid}/phone-numbers/${id}/messages?${params}`
8018
8194
  );
8019
8195
  }
8196
+ /**
8197
+ * List received faxes for a phone number.
8198
+ *
8199
+ * The same log the Documo connection page shows, scoped to a number. Rows
8200
+ * carry `senderNumber` — an unauthenticated claim by the sending machine,
8201
+ * and PHI. Render it for triage; never log it.
8202
+ *
8203
+ * Same query vocabulary as `listDocumoFaxes` — one log, one spelling.
8204
+ * `status` is repeatable and is validated against the status enum, so a
8205
+ * typo is a 422 rather than a silently empty page. The date bounds filter
8206
+ * on when the delivery was recorded, not on `receivedAt`: a fax that failed
8207
+ * before storage never gets a `receivedAt`, so bounding that column would
8208
+ * hide exactly the failures an operator filtering by date is hunting for.
8209
+ */
8210
+ async getPhoneNumberFaxes(wid, id, page = 1, pageSize = 10, filters) {
8211
+ const params = new URLSearchParams({
8212
+ page: String(page),
8213
+ pageSize: String(pageSize)
8214
+ });
8215
+ filters?.status?.forEach((value) => params.append("status", value));
8216
+ if (filters?.receivedAfter) params.set("receivedAfter", filters.receivedAfter);
8217
+ if (filters?.receivedBefore) params.set("receivedBefore", filters.receivedBefore);
8218
+ return this.fetch(
8219
+ `w/${wid}/phone-numbers/${id}/faxes?${params}`
8220
+ );
8221
+ }
8020
8222
  /** List provider phones available for linking to workspace phone numbers. */
8021
8223
  async getLinkablePhones(wid) {
8022
8224
  return this.fetch(`w/${wid}/phone-numbers/linkable-phones`);
@@ -8535,6 +8737,16 @@ var SalesforceApi = class extends BaseApiClient {
8535
8737
  }
8536
8738
  );
8537
8739
  }
8740
+ /**
8741
+ * List the sObjects available in the connected org.
8742
+ *
8743
+ * Backs the Target Object picker: the object set is org-specific (custom
8744
+ * objects included), so it must come from the org rather than a hardcoded
8745
+ * list.
8746
+ */
8747
+ async listSalesforceObjects(wid) {
8748
+ return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
8749
+ }
8538
8750
  async describeSalesforceObject(wid, sobject) {
8539
8751
  return this.fetch(
8540
8752
  `w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
@@ -9600,7 +9812,12 @@ var ToolkitsApi = class extends BaseApiClient {
9600
9812
 
9601
9813
  // src/api/journeys.ts
9602
9814
  var JourneysApi = class extends BaseApiClient {
9603
- /** List journeys, optionally including archived, paginated. */
9815
+ /**
9816
+ * List journeys, optionally including archived, paginated.
9817
+ *
9818
+ * Returns the READ projection (`JourneyRead`) — CEL-free. Use
9819
+ * {@link getJourneyAuthoring} for the editor's expression-carrying shape.
9820
+ */
9604
9821
  async getJourneys(wid, includeArchived = false, pageOpts) {
9605
9822
  const query = new URLSearchParams();
9606
9823
  if (includeArchived) query.set("include_archived", "true");
@@ -9609,18 +9826,36 @@ var JourneysApi = class extends BaseApiClient {
9609
9826
  const qs = query.toString() ? `?${query.toString()}` : "";
9610
9827
  return this.fetch(`w/${wid}/journeys${qs}`);
9611
9828
  }
9612
- /** Get a single journey by ID (includes steps and goals). */
9829
+ /**
9830
+ * Get a single journey by ID (includes steps and goals).
9831
+ *
9832
+ * Returns the READ projection (`JourneyRead`) — nested edges carry no
9833
+ * `celCondition` and goals no `completionCel`. The editor uses
9834
+ * {@link getJourneyAuthoring} for those.
9835
+ */
9613
9836
  async getJourney(wid, journeyId) {
9614
9837
  return this.fetch(`w/${wid}/journeys/${journeyId}`);
9615
9838
  }
9616
- /** Create a new journey. */
9839
+ /**
9840
+ * Get a journey's AUTHORING projection (raw edge/goal CEL).
9841
+ *
9842
+ * journey-decoupling §3.5: the ordinary `getJourney` read projection omits
9843
+ * raw edge `celCondition` and goal `completionCel`. This endpoint is the
9844
+ * write-authorized surface that carries them for the Journey editor — it
9845
+ * requires the `journeys:write` scope, so a read-only caller is denied and
9846
+ * must not call it. Returns the authoring superset (`Journey`).
9847
+ */
9848
+ async getJourneyAuthoring(wid, journeyId) {
9849
+ return this.fetch(`w/${wid}/journeys/${journeyId}/authoring`);
9850
+ }
9851
+ /** Create a new journey. Returns the READ projection (`JourneyRead`). */
9617
9852
  async createJourney(wid, data) {
9618
9853
  return this.fetch(`w/${wid}/journeys`, {
9619
9854
  method: "POST",
9620
9855
  body: JSON.stringify(data)
9621
9856
  });
9622
9857
  }
9623
- /** Update an existing journey. */
9858
+ /** Update an existing journey. Returns the READ projection (`JourneyRead`). */
9624
9859
  async updateJourney(wid, journeyId, data) {
9625
9860
  return this.fetch(`w/${wid}/journeys/${journeyId}`, {
9626
9861
  method: "PUT",
@@ -9661,6 +9896,18 @@ var JourneysApi = class extends BaseApiClient {
9661
9896
  method: "DELETE"
9662
9897
  });
9663
9898
  }
9899
+ /**
9900
+ * Unarchive a step and backfill active enrollments. Idempotent —
9901
+ * repeated calls are harmless. The response's
9902
+ * `backfilledEnrollmentCount` reports how many active enrollments
9903
+ * received a new step row; a root step may become eligible for all of
9904
+ * them on the next journey sweep.
9905
+ */
9906
+ async unarchiveStep(wid, journeyId, stepUuid) {
9907
+ return this.fetch(`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/unarchive`, {
9908
+ method: "PATCH"
9909
+ });
9910
+ }
9664
9911
  /** Create a connection (DAG edge) between two steps. */
9665
9912
  async createConnection(wid, journeyId, data) {
9666
9913
  return this.fetch(`w/${wid}/journeys/${journeyId}/connections`, {
@@ -10696,6 +10943,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
10696
10943
  fhirConnections: new FhirConnectionsApi(apiKey, baseUrl, customFetch),
10697
10944
  patientSyncConnections: new PatientSyncConnectionsApi(apiKey, baseUrl, customFetch),
10698
10945
  healthie: new HealthieApi(apiKey, baseUrl, customFetch),
10946
+ documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
10699
10947
  hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
10700
10948
  features: new FeaturesApi(apiKey, baseUrl, customFetch),
10701
10949
  files: new FilesApi(apiKey, baseUrl, customFetch),
@@ -10757,7 +11005,9 @@ var WORKSPACE_METHOD_NAMES = [
10757
11005
  "autoCreateDataTypeFromBoard",
10758
11006
  "blockWorkspaceInvitation",
10759
11007
  "bookHealthieAppointment",
11008
+ "buildSiteSource",
10760
11009
  "buildWorkspace",
11010
+ "bulkCreateMembers",
10761
11011
  "bulkLinkMembersToHubspot",
10762
11012
  "bulkLinkMembersToMonday",
10763
11013
  "bulkLinkMembersToSalesforce",
@@ -10777,7 +11027,9 @@ var WORKSPACE_METHOD_NAMES = [
10777
11027
  "cloneWorkflow",
10778
11028
  "closeWorkspaceSupportRequest",
10779
11029
  "commentOnWorkspaceSupportRequest",
11030
+ "completeDiscordLink",
10780
11031
  "configureConfluence",
11032
+ "configureDocumoFax",
10781
11033
  "configureHealthie",
10782
11034
  "configurePatientSync",
10783
11035
  "configureHubspot",
@@ -10793,6 +11045,7 @@ var WORKSPACE_METHOD_NAMES = [
10793
11045
  "createAssignment",
10794
11046
  "createCalendar",
10795
11047
  "createCalendarEvent",
11048
+ "createCalendarEventType",
10796
11049
  "createCalendarSchedule",
10797
11050
  "createChat",
10798
11051
  "createChatCompletion",
@@ -10802,12 +11055,12 @@ var WORKSPACE_METHOD_NAMES = [
10802
11055
  "createConnection",
10803
11056
  "createCustomTool",
10804
11057
  "createCustomToolkit",
11058
+ "createDashboard",
10805
11059
  "createDataRecord",
10806
11060
  "createDataRecordFilter",
10807
11061
  "createDataType",
10808
11062
  "createDiscordBot",
10809
11063
  "createEventRule",
10810
- "createEventType",
10811
11064
  "createExperiment",
10812
11065
  "createExperimentAssignment",
10813
11066
  "createExperimentGroup",
@@ -10837,8 +11090,8 @@ var WORKSPACE_METHOD_NAMES = [
10837
11090
  "createScenario",
10838
11091
  "createSignup",
10839
11092
  "createSite",
11093
+ "createSiteSource",
10840
11094
  "createSlackApp",
10841
- "createSnippet",
10842
11095
  "createStep",
10843
11096
  "createSupervisor",
10844
11097
  "createTask",
@@ -10855,6 +11108,7 @@ var WORKSPACE_METHOD_NAMES = [
10855
11108
  "deleteAssignment",
10856
11109
  "deleteCalendar",
10857
11110
  "deleteCalendarEvent",
11111
+ "deleteCalendarEventType",
10858
11112
  "deleteCalendarSchedule",
10859
11113
  "deleteChat",
10860
11114
  "deleteChatFilter",
@@ -10864,13 +11118,13 @@ var WORKSPACE_METHOD_NAMES = [
10864
11118
  "deleteConnection",
10865
11119
  "deleteCustomTool",
10866
11120
  "deleteCustomToolkit",
11121
+ "deleteDashboard",
10867
11122
  "deleteDataRecord",
10868
11123
  "deleteDataRecordFilter",
10869
11124
  "deleteDataType",
10870
11125
  "deleteDiscordBot",
10871
11126
  "deleteEnrollment",
10872
11127
  "deleteEventRule",
10873
- "deleteEventType",
10874
11128
  "deleteExperiment",
10875
11129
  "deleteExperimentAssignment",
10876
11130
  "deleteExperimentGroup",
@@ -10904,7 +11158,6 @@ var WORKSPACE_METHOD_NAMES = [
10904
11158
  "deleteScenario",
10905
11159
  "deleteSite",
10906
11160
  "deleteSlackApp",
10907
- "deleteSnippet",
10908
11161
  "deleteSupervisor",
10909
11162
  "deleteTask",
10910
11163
  "deleteTeamsApp",
@@ -10928,10 +11181,13 @@ var WORKSPACE_METHOD_NAMES = [
10928
11181
  "disconnectMondayConnection",
10929
11182
  "disconnectPresence",
10930
11183
  "disconnectSalesforce",
11184
+ "discordLinkPreflight",
10931
11185
  "discoverOAuthMetadata",
10932
11186
  "dismissAllNotifications",
10933
11187
  "dismissNotification",
10934
11188
  "downloadEmailAttachment",
11189
+ "downloadFilesZip",
11190
+ "downloadSiteSourceZip",
10935
11191
  "editWorkflowRevisionAsDraft",
10936
11192
  "enableConfluence",
10937
11193
  "enableCustomToolkit",
@@ -10948,9 +11204,11 @@ var WORKSPACE_METHOD_NAMES = [
10948
11204
  "exportChat",
10949
11205
  "exportChats",
10950
11206
  "exportMembers",
11207
+ "exportPhoneNumberOutboundAnalyticsCsv",
10951
11208
  "exportWorkspace",
10952
11209
  "fetchVoicemailAudio",
10953
11210
  "fhirBackfillEncounterSync",
11211
+ "fhirCheckPatientLinks",
10954
11212
  "fhirCreateEncounter",
10955
11213
  "fhirCsvImportApply",
10956
11214
  "fhirCsvImportInspect",
@@ -11001,15 +11259,15 @@ var WORKSPACE_METHOD_NAMES = [
11001
11259
  "getAvailableActions",
11002
11260
  "getAvailablePhoneNumbers",
11003
11261
  "getAvailableSlots",
11004
- "getBoardColumns",
11005
- "getBoardGroups",
11006
- "getBoards",
11007
11262
  "getBusinessHoursStatus",
11008
11263
  "getCalendar",
11009
11264
  "getCalendarEvent",
11265
+ "getCalendarEventType",
11266
+ "getCalendarEventTypes",
11010
11267
  "getCalendarEvents",
11011
11268
  "getCalendarSchedules",
11012
11269
  "getCalendars",
11270
+ "getCallRecordingDownloadUrl",
11013
11271
  "getCelContext",
11014
11272
  "getCharlestonTestDeliveryRecipients",
11015
11273
  "getChat",
@@ -11024,6 +11282,7 @@ var WORKSPACE_METHOD_NAMES = [
11024
11282
  "getChatLabelByUuid",
11025
11283
  "getChatLabels",
11026
11284
  "getChatMessages",
11285
+ "getChatModelOverride",
11027
11286
  "getChatPhoneCalls",
11028
11287
  "getChatSkills",
11029
11288
  "getChatTodos",
@@ -11033,6 +11292,7 @@ var WORKSPACE_METHOD_NAMES = [
11033
11292
  "getChats",
11034
11293
  "getChatsDailyCreationStats",
11035
11294
  "getChatsNeedsResponse",
11295
+ "getChildThreadMessages",
11036
11296
  "getClientWorkspace",
11037
11297
  "getConfluenceStatus",
11038
11298
  "getConnectionSyncCapabilities",
@@ -11040,9 +11300,13 @@ var WORKSPACE_METHOD_NAMES = [
11040
11300
  "getConnectionSyncConfig",
11041
11301
  "getCredentialUpdateInvites",
11042
11302
  "getCurrentMember",
11043
- "getCurrentUserInfo",
11303
+ "getCurrentSmsChat",
11044
11304
  "getCustomToolkit",
11045
11305
  "getCustomToolkits",
11306
+ "getDashboard",
11307
+ "getDashboardChannelStats",
11308
+ "getDashboardWorkflowAssignmentStats",
11309
+ "getDashboards",
11046
11310
  "getDataRecord",
11047
11311
  "getDataRecordChanges",
11048
11312
  "getDataRecordFilter",
@@ -11059,10 +11323,11 @@ var WORKSPACE_METHOD_NAMES = [
11059
11323
  "getDiscordBots",
11060
11324
  "getDiscordGuilds",
11061
11325
  "getDiscordThreads",
11326
+ "getDocumoFaxSetup",
11327
+ "listDocumoFaxes",
11328
+ "getDocumoFaxStatus",
11062
11329
  "getEventRule",
11063
11330
  "getEventRules",
11064
- "getEventType",
11065
- "getEventTypes",
11066
11331
  "getExperiment",
11067
11332
  "getExperimentStats",
11068
11333
  "getExperiments",
@@ -11071,6 +11336,26 @@ var WORKSPACE_METHOD_NAMES = [
11071
11336
  "getFhirConnections",
11072
11337
  "getFieldIndexStatus",
11073
11338
  "getFile",
11339
+ "getMondayBoardColumns",
11340
+ "getMondayBoardGroups",
11341
+ "getMondayBoards",
11342
+ "getMondayCurrentUserInfo",
11343
+ "getMotd",
11344
+ "getPhoneNumberOutboundAnalyticsCalls",
11345
+ "getPhoneNumberOutboundAnalyticsSummary",
11346
+ "getQueryFields",
11347
+ "getSiteSharing",
11348
+ "getSiteSource",
11349
+ "getSiteSourceTemplates",
11350
+ "getThemeSettings",
11351
+ "importSiteSourceZip",
11352
+ "installDocumoFax",
11353
+ "listChatRecordings",
11354
+ "previewQuery",
11355
+ "publishSiteSource",
11356
+ "registerDiscordSlashCommands",
11357
+ "reopenWorkspaceSupportRequest",
11358
+ "resetSiteSource",
11074
11359
  "resolveFilePath",
11075
11360
  "getFileLabel",
11076
11361
  "getFileLabelByUuid",
@@ -11081,6 +11366,7 @@ var WORKSPACE_METHOD_NAMES = [
11081
11366
  "getFiles",
11082
11367
  "getFirstRunState",
11083
11368
  "getFolder",
11369
+ "getFolderMemberAccess",
11084
11370
  "getFolderSharing",
11085
11371
  "getFolders",
11086
11372
  "getGoogleCalendarStatus",
@@ -11102,6 +11388,7 @@ var WORKSPACE_METHOD_NAMES = [
11102
11388
  "getInboxThreads",
11103
11389
  "getInboxes",
11104
11390
  "getJourney",
11391
+ "getJourneyAuthoring",
11105
11392
  "getJourneyHealth",
11106
11393
  "getJourneyMembers",
11107
11394
  "getJourneyNotes",
@@ -11166,6 +11453,7 @@ var WORKSPACE_METHOD_NAMES = [
11166
11453
  "getPhoneCalls",
11167
11454
  "getPhoneNumber",
11168
11455
  "getPhoneNumberCalls",
11456
+ "getPhoneNumberFaxes",
11169
11457
  "getPhoneNumberMessages",
11170
11458
  "getPhoneNumberVoicemails",
11171
11459
  "getPhoneNumbers",
@@ -11203,7 +11491,6 @@ var WORKSPACE_METHOD_NAMES = [
11203
11491
  "getSlackApps",
11204
11492
  "getSlackInstallations",
11205
11493
  "getSlackThreads",
11206
- "getSnippet",
11207
11494
  "getStepMemberCounts",
11208
11495
  "getStepMembers",
11209
11496
  "getSupervisor",
@@ -11241,7 +11528,6 @@ var WORKSPACE_METHOD_NAMES = [
11241
11528
  "getWorkflowNotes",
11242
11529
  "getWorkflowRevision",
11243
11530
  "getWorkflowRevisions",
11244
- "getWorkflowRouteDryRun",
11245
11531
  "getWorkflowTaskAssignmentStats",
11246
11532
  "getWorkflowTemplates",
11247
11533
  "getWorkflowThumbnailUrl",
@@ -11271,6 +11557,7 @@ var WORKSPACE_METHOD_NAMES = [
11271
11557
  "initiateOutboundCall",
11272
11558
  "inspectPrompt",
11273
11559
  "installHubspot",
11560
+ "installDocumoFax",
11274
11561
  "installMondayConnection",
11275
11562
  "installSalesforce",
11276
11563
  "inviteMemberCredentialUpdate",
@@ -11289,6 +11576,10 @@ var WORKSPACE_METHOD_NAMES = [
11289
11576
  "listConfluencePages",
11290
11577
  "listConfluenceSpaces",
11291
11578
  "listConnectionMemberFieldKeys",
11579
+ "rollbackSiteSource",
11580
+ "rotateDocumoFaxCredentials",
11581
+ "runQuery",
11582
+ "sendMemberPhoneConfirmation",
11292
11583
  "setDefaultGooglePlatformAccount",
11293
11584
  "listFileVersions",
11294
11585
  "listGoogleCalendars",
@@ -11297,8 +11588,8 @@ var WORKSPACE_METHOD_NAMES = [
11297
11588
  "listHealthieProviders",
11298
11589
  "listPersonas",
11299
11590
  "listPushSubscriptions",
11591
+ "listSalesforceObjects",
11300
11592
  "listScenarios",
11301
- "listSnippets",
11302
11593
  "listTestChatRuns",
11303
11594
  "listWidgetDomains",
11304
11595
  "listWorkspaceInvitationsAdmin",
@@ -11321,7 +11612,6 @@ var WORKSPACE_METHOD_NAMES = [
11321
11612
  "reenrollMember",
11322
11613
  "registerLinkedRolesMetadata",
11323
11614
  "registerPushSubscription",
11324
- "registerSlashCommands",
11325
11615
  "reindexFolder",
11326
11616
  "releasePhoneNumber",
11327
11617
  "removeFileRole",
@@ -11330,6 +11620,7 @@ var WORKSPACE_METHOD_NAMES = [
11330
11620
  "reorderEventRules",
11331
11621
  "reorderMenuItems",
11332
11622
  "replyToEmail",
11623
+ "rotateDocumoFaxCredentials",
11333
11624
  "requestPhoneNumber",
11334
11625
  "requestWorkspaceMembership",
11335
11626
  "resetRoutineRuns",
@@ -11367,11 +11658,13 @@ var WORKSPACE_METHOD_NAMES = [
11367
11658
  "testMcpServerConnection",
11368
11659
  "testMondayConnection",
11369
11660
  "testRunJourney",
11661
+ "testWebhook",
11370
11662
  "toggleFieldIndex",
11371
11663
  "unarchiveAgent",
11372
11664
  "unarchiveChat",
11373
11665
  "unarchiveDataType",
11374
11666
  "unarchiveMember",
11667
+ "unarchiveStep",
11375
11668
  "unarchiveTask",
11376
11669
  "unarchiveWorkflow",
11377
11670
  "unenrollMembers",
@@ -11388,10 +11681,12 @@ var WORKSPACE_METHOD_NAMES = [
11388
11681
  "updateAssignment",
11389
11682
  "updateCalendar",
11390
11683
  "updateCalendarEvent",
11684
+ "updateCalendarEventType",
11391
11685
  "updateCalendarSchedule",
11392
11686
  "updateChat",
11393
11687
  "updateChatFilter",
11394
11688
  "updateChatLabel",
11689
+ "updateChatModelOverride",
11395
11690
  "updateChatMute",
11396
11691
  "updateChatNeedsResponse",
11397
11692
  "updateClientWorkspace",
@@ -11400,13 +11695,13 @@ var WORKSPACE_METHOD_NAMES = [
11400
11695
  "updateCurrentMember",
11401
11696
  "updateCustomTool",
11402
11697
  "updateCustomToolkit",
11698
+ "updateDashboard",
11403
11699
  "updateDataRecord",
11404
11700
  "updateDataRecordFilter",
11405
11701
  "updateDataType",
11406
11702
  "updateDiscordBot",
11407
11703
  "updateEventAttendee",
11408
11704
  "updateEventRule",
11409
- "updateEventType",
11410
11705
  "updateExperiment",
11411
11706
  "updateExperimentAssignment",
11412
11707
  "updateExperimentGroup",
@@ -11443,12 +11738,13 @@ var WORKSPACE_METHOD_NAMES = [
11443
11738
  "updateSalesforceSyncConfig",
11444
11739
  "updateScenario",
11445
11740
  "updateSite",
11741
+ "updateSiteSharing",
11446
11742
  "updateSlackApp",
11447
- "updateSnippet",
11448
11743
  "updateStep",
11449
11744
  "updateSupervisor",
11450
11745
  "updateTask",
11451
11746
  "updateTeamsApp",
11747
+ "updateThemeSettings",
11452
11748
  "uploadFile",
11453
11749
  "updateVoicemailStatus",
11454
11750
  "updateWorkflow",
@@ -11461,8 +11757,11 @@ var WORKSPACE_METHOD_NAMES = [
11461
11757
  "updateWorkspaceThemes",
11462
11758
  "upsertDataRecord",
11463
11759
  "upsertWidgetDomain",
11760
+ "validateCelExpression",
11464
11761
  "validateDataTypeSlug",
11465
- "validateWorkflowName"
11762
+ "validateQuery",
11763
+ "validateWorkflowName",
11764
+ "verifyDocumoFax"
11466
11765
  ];
11467
11766
  var WORKSPACE_METHOD_NAME_SET = new Set(WORKSPACE_METHOD_NAMES);
11468
11767
  function createWorkspaceClient(root, workspaceUuid) {
@@ -11537,6 +11836,7 @@ function bindTasksMethods(target, tasks, abilities) {
11537
11836
  function bindChatsMethods(target, chats) {
11538
11837
  target.getChats = chats.getChats.bind(chats);
11539
11838
  target.getChat = chats.getChat.bind(chats);
11839
+ target.getCurrentSmsChat = chats.getCurrentSmsChat.bind(chats);
11540
11840
  target.getChatCallbacks = chats.getChatCallbacks.bind(chats);
11541
11841
  target.cancelChatCallback = chats.cancelChatCallback.bind(chats);
11542
11842
  target.getChatTokenUsage = chats.getChatTokenUsage.bind(chats);
@@ -11557,6 +11857,7 @@ function bindChatsMethods(target, chats) {
11557
11857
  target.updateChatNeedsResponse = chats.updateChatNeedsResponse.bind(chats);
11558
11858
  target.summarizeChat = chats.summarizeChat.bind(chats);
11559
11859
  target.getChatMessages = chats.getChatMessages.bind(chats);
11860
+ target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
11560
11861
  target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
11561
11862
  target.getChatTools = chats.getChatTools.bind(chats);
11562
11863
  target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
@@ -11595,6 +11896,7 @@ function bindCallsMethods(target, calls, cel) {
11595
11896
  target.listChatRecordings = calls.listChatRecordings.bind(calls);
11596
11897
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
11597
11898
  target.getCelContext = cel.getCelContext.bind(cel);
11899
+ target.validateCelExpression = cel.validateCelExpression.bind(cel);
11598
11900
  }
11599
11901
 
11600
11902
  // src/client/bindings/dashboards.ts
@@ -11911,6 +12213,7 @@ function bindFilesMethods(target, files) {
11911
12213
  target.updateFileRoles = files.updateFileRoles.bind(files);
11912
12214
  target.removeFileRole = files.removeFileRole.bind(files);
11913
12215
  target.getFolderSharing = files.getFolderSharing.bind(files);
12216
+ target.getFolderMemberAccess = files.getFolderMemberAccess.bind(files);
11914
12217
  target.updateFolderRoles = files.updateFolderRoles.bind(files);
11915
12218
  target.removeFolderRole = files.removeFolderRole.bind(files);
11916
12219
  target.updateFileSharing = files.updateFileSharing.bind(files);
@@ -12067,6 +12370,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
12067
12370
  target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
12068
12371
  target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
12069
12372
  target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
12373
+ target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
12070
12374
  target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
12071
12375
  target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
12072
12376
  target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
@@ -12190,7 +12494,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
12190
12494
  }
12191
12495
 
12192
12496
  // src/client/bindings/integrations.ts
12193
- function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, salesforce, hubspot, appConnections, connectionSync, confluence) {
12497
+ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, salesforce, hubspot, appConnections, connectionSync, confluence) {
12194
12498
  target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
12195
12499
  target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
12196
12500
  target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
@@ -12262,6 +12566,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
12262
12566
  target.fhirFetchEncounters = fhirConnections.fhirFetchEncounters.bind(fhirConnections);
12263
12567
  target.fhirCreateEncounter = fhirConnections.fhirCreateEncounter.bind(fhirConnections);
12264
12568
  target.fhirListLinkedMembers = fhirConnections.fhirListLinkedMembers.bind(fhirConnections);
12569
+ target.fhirCheckPatientLinks = fhirConnections.fhirCheckPatientLinks.bind(fhirConnections);
12265
12570
  target.fhirLinkMember = fhirConnections.fhirLinkMember.bind(fhirConnections);
12266
12571
  target.fhirUnlinkMember = fhirConnections.fhirUnlinkMember.bind(fhirConnections);
12267
12572
  target.fhirSyncMember = fhirConnections.fhirSyncMember.bind(fhirConnections);
@@ -12281,6 +12586,13 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
12281
12586
  target.configurePatientSync = patientSyncConnections.configurePatientSync.bind(patientSyncConnections);
12282
12587
  target.getPatientSyncStatus = patientSyncConnections.getPatientSyncStatus.bind(patientSyncConnections);
12283
12588
  target.deletePatientSyncConnection = patientSyncConnections.deletePatientSyncConnection.bind(patientSyncConnections);
12589
+ target.getDocumoFaxStatus = documoFax.getDocumoFaxStatus.bind(documoFax);
12590
+ target.getDocumoFaxSetup = documoFax.getDocumoFaxSetup.bind(documoFax);
12591
+ target.listDocumoFaxes = documoFax.listDocumoFaxes.bind(documoFax);
12592
+ target.installDocumoFax = documoFax.installDocumoFax.bind(documoFax);
12593
+ target.configureDocumoFax = documoFax.configureDocumoFax.bind(documoFax);
12594
+ target.verifyDocumoFax = documoFax.verifyDocumoFax.bind(documoFax);
12595
+ target.rotateDocumoFaxCredentials = documoFax.rotateDocumoFaxCredentials.bind(documoFax);
12284
12596
  target.configureHealthie = healthie.configureHealthie.bind(healthie);
12285
12597
  target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
12286
12598
  target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
@@ -12319,6 +12631,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
12319
12631
  target.getLinkedSalesforceMembers = salesforce.getLinkedSalesforceMembers.bind(salesforce);
12320
12632
  target.getSalesforceSyncConfig = salesforce.getSalesforceSyncConfig.bind(salesforce);
12321
12633
  target.updateSalesforceSyncConfig = salesforce.updateSalesforceSyncConfig.bind(salesforce);
12634
+ target.listSalesforceObjects = salesforce.listSalesforceObjects.bind(salesforce);
12322
12635
  target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
12323
12636
  target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
12324
12637
  target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
@@ -12420,6 +12733,7 @@ function bindPronunciationsMethods(target, pronunciations) {
12420
12733
  function bindJourneysMethods(target, journeys) {
12421
12734
  target.getJourneys = journeys.getJourneys.bind(journeys);
12422
12735
  target.getJourney = journeys.getJourney.bind(journeys);
12736
+ target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
12423
12737
  target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
12424
12738
  target.createJourney = journeys.createJourney.bind(journeys);
12425
12739
  target.updateJourney = journeys.updateJourney.bind(journeys);
@@ -12427,6 +12741,7 @@ function bindJourneysMethods(target, journeys) {
12427
12741
  target.createStep = journeys.createStep.bind(journeys);
12428
12742
  target.updateStep = journeys.updateStep.bind(journeys);
12429
12743
  target.archiveStep = journeys.archiveStep.bind(journeys);
12744
+ target.unarchiveStep = journeys.unarchiveStep.bind(journeys);
12430
12745
  target.createConnection = journeys.createConnection.bind(journeys);
12431
12746
  target.updateConnection = journeys.updateConnection.bind(journeys);
12432
12747
  target.deleteConnection = journeys.deleteConnection.bind(journeys);
@@ -12560,6 +12875,7 @@ var GravityRailClient = class {
12560
12875
  // Chats API
12561
12876
  getChats;
12562
12877
  getChat;
12878
+ getCurrentSmsChat;
12563
12879
  getChatCallbacks;
12564
12880
  cancelChatCallback;
12565
12881
  getChatTokenUsage;
@@ -12580,6 +12896,7 @@ var GravityRailClient = class {
12580
12896
  updateChatNeedsResponse;
12581
12897
  summarizeChat;
12582
12898
  getChatMessages;
12899
+ getChildThreadMessages;
12583
12900
  getChatToolCallMessages;
12584
12901
  getChatTools;
12585
12902
  initiateOutboundCall;
@@ -12615,6 +12932,7 @@ var GravityRailClient = class {
12615
12932
  listChatRecordings;
12616
12933
  getCallRecordingDownloadUrl;
12617
12934
  getCelContext;
12935
+ validateCelExpression;
12618
12936
  // Data Types API
12619
12937
  getDataTypes;
12620
12938
  getDataType;
@@ -12753,6 +13071,7 @@ var GravityRailClient = class {
12753
13071
  // Journeys API
12754
13072
  getJourneys;
12755
13073
  getJourney;
13074
+ getJourneyAuthoring;
12756
13075
  getJourneyHealth;
12757
13076
  createJourney;
12758
13077
  updateJourney;
@@ -12760,6 +13079,7 @@ var GravityRailClient = class {
12760
13079
  createStep;
12761
13080
  updateStep;
12762
13081
  archiveStep;
13082
+ unarchiveStep;
12763
13083
  createConnection;
12764
13084
  updateConnection;
12765
13085
  deleteConnection;
@@ -13040,6 +13360,7 @@ var GravityRailClient = class {
13040
13360
  updateFileRoles;
13041
13361
  removeFileRole;
13042
13362
  getFolderSharing;
13363
+ getFolderMemberAccess;
13043
13364
  updateFolderRoles;
13044
13365
  removeFolderRole;
13045
13366
  updateFileSharing;
@@ -13168,6 +13489,7 @@ var GravityRailClient = class {
13168
13489
  getPhoneNumberOutboundAnalyticsCalls;
13169
13490
  exportPhoneNumberOutboundAnalyticsCsv;
13170
13491
  getPhoneNumberMessages;
13492
+ getPhoneNumberFaxes;
13171
13493
  getPhoneNumberVoicemails;
13172
13494
  fetchVoicemailAudio;
13173
13495
  updateVoicemailStatus;
@@ -13356,6 +13678,7 @@ var GravityRailClient = class {
13356
13678
  fhirFetchEncounters;
13357
13679
  fhirCreateEncounter;
13358
13680
  fhirListLinkedMembers;
13681
+ fhirCheckPatientLinks;
13359
13682
  fhirLinkMember;
13360
13683
  fhirUnlinkMember;
13361
13684
  fhirSyncMember;
@@ -13373,6 +13696,13 @@ var GravityRailClient = class {
13373
13696
  fhirRefreshEncounterPatient;
13374
13697
  fhirBackfillEncounterSync;
13375
13698
  // Healthie API
13699
+ getDocumoFaxStatus;
13700
+ getDocumoFaxSetup;
13701
+ listDocumoFaxes;
13702
+ installDocumoFax;
13703
+ configureDocumoFax;
13704
+ verifyDocumoFax;
13705
+ rotateDocumoFaxCredentials;
13376
13706
  configurePatientSync;
13377
13707
  getPatientSyncStatus;
13378
13708
  deletePatientSyncConnection;
@@ -13416,6 +13746,7 @@ var GravityRailClient = class {
13416
13746
  getLinkedSalesforceMembers;
13417
13747
  getSalesforceSyncConfig;
13418
13748
  updateSalesforceSyncConfig;
13749
+ listSalesforceObjects;
13419
13750
  describeSalesforceObject;
13420
13751
  searchSalesforceRecords;
13421
13752
  importSalesforceMembers;
@@ -13566,6 +13897,7 @@ var GravityRailClient = class {
13566
13897
  apis.fhirConnections,
13567
13898
  apis.patientSyncConnections,
13568
13899
  apis.healthie,
13900
+ apis.documoFax,
13569
13901
  apis.salesforce,
13570
13902
  apis.hubspot,
13571
13903
  apis.appConnections,
@@ -13682,6 +14014,7 @@ var GravityRailClient = class {
13682
14014
  };
13683
14015
  // Annotate the CommonJS export names for ESM import in node:
13684
14016
  0 && (module.exports = {
14017
+ AGENT_NOTE_ORIGINS,
13685
14018
  AIModelsApi,
13686
14019
  AbilitiesApi,
13687
14020
  AbilityConfigIssueCode,
@@ -13859,6 +14192,7 @@ var GravityRailClient = class {
13859
14192
  ToolkitsApi,
13860
14193
  VoiceApi,
13861
14194
  WIDGET_SLUGS,
14195
+ WORKFLOW_IMPLICIT_USE_SCOPE,
13862
14196
  WorkflowAccessWarningResourceType,
13863
14197
  WorkflowNotesApi,
13864
14198
  WorkflowResourceType,
@@ -13926,13 +14260,18 @@ var GravityRailClient = class {
13926
14260
  getTTSProvider,
13927
14261
  getVoiceModelId,
13928
14262
  initializeFeatures,
14263
+ isAgentNoteOrigin,
13929
14264
  isChatType,
13930
14265
  isFeatureAvailable,
13931
14266
  isPositiveRating,
13932
14267
  isRegistryInitialized,
13933
14268
  isSMSDeliveryFailureStatus,
13934
14269
  parseExperimentStatCount,
14270
+ parseOrgAuthChallenge,
13935
14271
  requiresAssistantParticipant,
14272
+ roleCanUseWorkflow,
14273
+ roleImplicitWorkflowUseScope,
14274
+ roleWorkflowAccess,
13936
14275
  usesBuiltinAssistant,
13937
14276
  validateFeatureDependencies
13938
14277
  });