@gravity-rail/sdk 0.53.1 → 0.55.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/{chat-interaction-BDWwGHdp.d.cts → chat-interaction-CZnqOfut.d.ts} +1207 -84
  2. package/dist/{chat-interaction-pkhyXbVv.d.ts → chat-interaction-DZCWRbDi.d.cts} +1207 -84
  3. package/dist/{chunk-JRK77RT4.js → chunk-BF4MOZZO.js} +329 -7
  4. package/dist/chunk-BF4MOZZO.js.map +1 -0
  5. package/dist/{chunk-MMDSZ25F.js → chunk-HXVJF54M.js} +1 -1
  6. package/dist/chunk-HXVJF54M.js.map +1 -0
  7. package/dist/helpers.d.cts +4 -4
  8. package/dist/helpers.d.ts +4 -4
  9. package/dist/index.cjs +334 -6
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +7 -6
  12. package/dist/index.d.ts +7 -6
  13. package/dist/index.js +15 -2
  14. package/dist/index.js.map +1 -1
  15. package/dist/internal.cjs +353 -9
  16. package/dist/internal.cjs.map +1 -1
  17. package/dist/internal.d.cts +6 -5
  18. package/dist/internal.d.ts +6 -5
  19. package/dist/internal.js +33 -5
  20. package/dist/internal.js.map +1 -1
  21. package/dist/{member-import-Do6D2g14.d.ts → member-import-D1QvZiy5.d.ts} +1 -1
  22. package/dist/{member-import-BtTWfQ46.d.cts → member-import-DzuvKnMC.d.cts} +1 -1
  23. package/dist/{path-UGcX8CEF.d.ts → path-C6Ujx-3w.d.cts} +51 -53
  24. package/dist/{path-J_F_cq4m.d.cts → path-YfkJBAbf.d.ts} +51 -53
  25. package/dist/realtime.cjs +26 -0
  26. package/dist/realtime.cjs.map +1 -1
  27. package/dist/realtime.d.cts +17 -0
  28. package/dist/realtime.d.ts +17 -0
  29. package/dist/realtime.js +26 -0
  30. package/dist/realtime.js.map +1 -1
  31. package/dist/schemas.d.cts +2 -2
  32. package/dist/schemas.d.ts +2 -2
  33. package/dist/schemas.js +1 -1
  34. package/dist/{tasks-JweebIce.d.cts → tasks-BdYhYUpU.d.cts} +92 -26
  35. package/dist/{tasks-JweebIce.d.ts → tasks-BdYhYUpU.d.ts} +92 -26
  36. package/package.json +1 -1
  37. package/dist/chunk-JRK77RT4.js.map +0 -1
  38. package/dist/chunk-MMDSZ25F.js.map +0 -1
package/dist/internal.cjs CHANGED
@@ -212,6 +212,8 @@ __export(internal_exports, {
212
212
  REALTIME_MODEL_OPENAI_2: () => REALTIME_MODEL_OPENAI_2,
213
213
  REALTIME_MODEL_OPENAI_MINI: () => REALTIME_MODEL_OPENAI_MINI,
214
214
  RecordChangeKind: () => RecordChangeKind,
215
+ RecordContactPermissionRequestChannelNote: () => RecordContactPermissionRequestChannelNote,
216
+ RecordMetricAggregationEnum: () => RecordMetricDefinitionAggregation,
215
217
  RefResolutionStatus: () => RefResolutionStatus,
216
218
  Region: () => Region,
217
219
  RegistrationIdentifier: () => RegistrationIdentifier,
@@ -233,6 +235,7 @@ __export(internal_exports, {
233
235
  STT_MODEL_DEEPGRAM_FLUX_MULTI: () => STT_MODEL_DEEPGRAM_FLUX_MULTI,
234
236
  STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST: () => STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST,
235
237
  STT_MODEL_DEEPGRAM_FLUX_SELFHOST: () => STT_MODEL_DEEPGRAM_FLUX_SELFHOST,
238
+ STT_MODEL_ELEVENLABS_SCRIBE_V2_REALTIME: () => STT_MODEL_ELEVENLABS_SCRIBE_V2_REALTIME,
236
239
  SalesforceApi: () => SalesforceApi,
237
240
  ScenarioHealthCaption: () => ScenarioHealthCaption,
238
241
  ScenarioHealthHeadline: () => ScenarioHealthHeadline,
@@ -256,6 +259,10 @@ __export(internal_exports, {
256
259
  TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
257
260
  TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
258
261
  TTS_MODEL_DEEPGRAM_AURA_2: () => TTS_MODEL_DEEPGRAM_AURA_2,
262
+ TTS_MODEL_ELEVENLABS_FLASH: () => TTS_MODEL_ELEVENLABS_FLASH,
263
+ TTS_MODEL_ELEVENLABS_MULTILINGUAL: () => TTS_MODEL_ELEVENLABS_MULTILINGUAL,
264
+ TTS_MODEL_ELEVENLABS_TURBO: () => TTS_MODEL_ELEVENLABS_TURBO,
265
+ TTS_MODEL_ELEVENLABS_V4_TURBO: () => TTS_MODEL_ELEVENLABS_V4_TURBO,
259
266
  TTS_MODEL_XAI_V1: () => TTS_MODEL_XAI_V1,
260
267
  TTS_PREVIEW_PROVIDERS: () => TTS_PREVIEW_PROVIDERS,
261
268
  TaskTransitionInitiator: () => TaskTransitionInitiator,
@@ -297,6 +304,7 @@ __export(internal_exports, {
297
304
  bindCommunicationsMethods: () => bindCommunicationsMethods,
298
305
  bindCustomersMethods: () => bindCustomersMethods,
299
306
  bindDashboardsMethods: () => bindDashboardsMethods,
307
+ bindDataReportsMethods: () => bindDataReportsMethods,
300
308
  bindDataTypesMethods: () => bindDataTypesMethods,
301
309
  bindDevicesMethods: () => bindDevicesMethods,
302
310
  bindEventsMethods: () => bindEventsMethods,
@@ -780,6 +788,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
780
788
  WorkspaceFeature2["CRM_SALESFORCE"] = "crm_salesforce";
781
789
  WorkspaceFeature2["CRM_HUBSPOT"] = "crm_hubspot";
782
790
  WorkspaceFeature2["CONFLUENCE"] = "confluence";
791
+ WorkspaceFeature2["ZENDESK"] = "zendesk";
783
792
  WorkspaceFeature2["AGENT_MEMORY"] = "agent_memory";
784
793
  WorkspaceFeature2["IMAGE_GENERATION"] = "image_generation";
785
794
  WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
@@ -945,6 +954,7 @@ var ModelProvider = {
945
954
  google: "google",
946
955
  anthropic: "anthropic",
947
956
  aws: "aws",
957
+ elevenlabs: "elevenlabs",
948
958
  deepgram: "deepgram",
949
959
  xai: "xai",
950
960
  fireworks: "fireworks",
@@ -971,7 +981,12 @@ var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
971
981
  var STT_MODEL_DEEPGRAM_FLUX_SELFHOST = "deepgram:stt:flux-general-en:selfhost";
972
982
  var STT_MODEL_DEEPGRAM_FLUX_MULTI = "deepgram:stt:flux-general-multi";
973
983
  var STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST = "deepgram:stt:flux-general-multi:selfhost";
984
+ var STT_MODEL_ELEVENLABS_SCRIBE_V2_REALTIME = "elevenlabs:stt:scribe_v2_realtime";
974
985
  var TTS_MODEL_XAI_V1 = "xai:tts:v1";
986
+ var TTS_MODEL_ELEVENLABS_FLASH = "elevenlabs:tts:eleven_flash_v2_5";
987
+ var TTS_MODEL_ELEVENLABS_TURBO = "elevenlabs:tts:eleven_turbo_v2_5";
988
+ var TTS_MODEL_ELEVENLABS_MULTILINGUAL = "elevenlabs:tts:eleven_multilingual_v2";
989
+ var TTS_MODEL_ELEVENLABS_V4_TURBO = "elevenlabs:tts:eleven_v4_turbo";
975
990
  var TTS_MODEL_DEEPGRAM_AURA_2 = "deepgram:tts:aura-2";
976
991
  var TTS_MODEL_AWS_POLLY_GENERATIVE = "aws:tts:polly-generative";
977
992
  var TTS_MODEL_AWS_POLLY_NEURAL = "aws:tts:polly-neural";
@@ -1497,6 +1512,7 @@ var AbilityTypeSlugs = {
1497
1512
  CALENDAR_BOOKING: "integration:calendar_booking",
1498
1513
  FILE_ACCESS: "integration:file_access",
1499
1514
  DATA_ACCESS: "integration:data_access",
1515
+ DATA_REPORTS: "integration:data_reports",
1500
1516
  GMAIL: "integration:gmail",
1501
1517
  GOOGLE_CALENDAR: "integration:google_calendar",
1502
1518
  GOOGLE_DRIVE: "integration:google_drive",
@@ -1556,6 +1572,20 @@ var SessionKind = {
1556
1572
  site: "site"
1557
1573
  };
1558
1574
 
1575
+ // src/types/generated/contact_permission.ts
1576
+ var RecordContactPermissionRequestChannelNote = {
1577
+ phone_call: "phone_call",
1578
+ voicemail: "voicemail",
1579
+ email: "email",
1580
+ mail: "mail",
1581
+ postcard: "postcard",
1582
+ fax: "fax",
1583
+ in_person: "in_person",
1584
+ patient_portal: "patient_portal",
1585
+ web_form: "web_form",
1586
+ other: "other"
1587
+ };
1588
+
1559
1589
  // src/types/query-engine-types.ts
1560
1590
  var QUERY_VALUELESS_OPS = /* @__PURE__ */ new Set([
1561
1591
  "isEmpty",
@@ -1641,7 +1671,8 @@ var CustomerActivityClassifierDetectorName = {
1641
1671
  manager_chat_classifier: "manager_chat_classifier",
1642
1672
  concierge_chat_classifier: "concierge_chat_classifier",
1643
1673
  chat_review: "chat_review",
1644
- a2p_agent_inferred_stop: "a2p_agent_inferred_stop"
1674
+ a2p_agent_inferred_stop: "a2p_agent_inferred_stop",
1675
+ voice_spoken_opt_out: "voice_spoken_opt_out"
1645
1676
  };
1646
1677
  var CustomerActivityClassifierLabel = {
1647
1678
  user_distress: "user_distress",
@@ -1843,7 +1874,14 @@ function getTTSProvider(ttsModel) {
1843
1874
  if (!ttsModel || ttsModel === "native") return ttsModel ?? null;
1844
1875
  return ttsModel.split(":")[0] ?? null;
1845
1876
  }
1846
- var TTS_PREVIEW_PROVIDERS = ["openai", "google", "aws", "deepgram", "xai"];
1877
+ var TTS_PREVIEW_PROVIDERS = [
1878
+ "openai",
1879
+ "elevenlabs",
1880
+ "google",
1881
+ "aws",
1882
+ "deepgram",
1883
+ "xai"
1884
+ ];
1847
1885
  function getVoiceModelId(entity) {
1848
1886
  const config = entity.realtimeModelConfig;
1849
1887
  return config?.voiceModel ?? null;
@@ -2003,6 +2041,16 @@ function isPositiveRating(rating) {
2003
2041
  return rating != null && rating >= POSITIVE_RATING_THRESHOLD;
2004
2042
  }
2005
2043
 
2044
+ // src/types/generated/metric_record_definition.ts
2045
+ var RecordMetricDefinitionAggregation = {
2046
+ count: "count",
2047
+ countDistinct: "countDistinct",
2048
+ sum: "sum",
2049
+ avg: "avg",
2050
+ min: "min",
2051
+ max: "max"
2052
+ };
2053
+
2006
2054
  // src/types/generated/metric.ts
2007
2055
  var MetricChatType = {
2008
2056
  assignment: "assignment",
@@ -2019,12 +2067,14 @@ var MetricKind = {
2019
2067
  };
2020
2068
  var MetricSource = {
2021
2069
  chat: "chat",
2022
- member_filter: "member_filter"
2070
+ member_filter: "member_filter",
2071
+ data_record: "data_record"
2023
2072
  };
2024
2073
  var MetricType = {
2025
2074
  expression: "expression",
2026
2075
  rubric: "rubric",
2027
- filter_count: "filter_count"
2076
+ filter_count: "filter_count",
2077
+ record_aggregate: "record_aggregate"
2028
2078
  };
2029
2079
  var MetricUnit = {
2030
2080
  rate: "rate",
@@ -7108,6 +7158,36 @@ var FhirConnectionsApi = class extends BaseApiClient {
7108
7158
  { method: "POST", body: JSON.stringify(data) }
7109
7159
  );
7110
7160
  }
7161
+ /**
7162
+ * Start, resume, override or preview (dry run) an athenahealth connection's
7163
+ * onboarding import. The body is exactly the three mode flags; the server
7164
+ * traverses the connection's configured department/status pairs. Returns
7165
+ * 202 with the Temporal workflow and run ids. Requires `workspace:admin`.
7166
+ */
7167
+ async fhirStartOnboardingImport(wid, connectionId, data = {}) {
7168
+ const body = {
7169
+ dryRun: data.dryRun ?? false,
7170
+ resume: data.resume ?? false,
7171
+ override: data.override ?? false
7172
+ };
7173
+ return this.fetch(
7174
+ `w/${wid}/app-connections/fhir/connections/${connectionId}/onboarding-import`,
7175
+ {
7176
+ method: "POST",
7177
+ body: JSON.stringify(body)
7178
+ }
7179
+ );
7180
+ }
7181
+ /**
7182
+ * Read an athenahealth connection's onboarding-import progress (durable,
7183
+ * approximate totals) and its known Temporal execution. GET-only: never
7184
+ * starts or resumes work. Requires `workspace:admin`.
7185
+ */
7186
+ async fhirGetOnboardingImportStatus(wid, connectionId) {
7187
+ return this.fetch(
7188
+ `w/${wid}/app-connections/fhir/connections/${connectionId}/onboarding-import`
7189
+ );
7190
+ }
7111
7191
  };
7112
7192
 
7113
7193
  // src/api/patientsync-connections.ts
@@ -7330,8 +7410,8 @@ var FilesApi = class extends BaseApiClient {
7330
7410
  * Download one file's bytes via GET ``.../files/{id}/contents/{filename}``.
7331
7411
  *
7332
7412
  * Uses this client's base URL (FastAPI on the app, same-origin ``/api/v2``
7333
- * on scoped site sessions) so the payload does not transit the Next.js
7334
- * ``/api/w/.../files/...`` Lambda proxy, which 500s above the 6MB sync cap.
7413
+ * on scoped site sessions). The Next.js ``/api/w/.../files/...`` route
7414
+ * redirects to this same contents path; calling it directly skips the hop.
7335
7415
  */
7336
7416
  async downloadFileContents(wid, id, filename) {
7337
7417
  const response = await this.fetchRaw(
@@ -7415,9 +7495,9 @@ var FilesApi = class extends BaseApiClient {
7415
7495
  );
7416
7496
  }
7417
7497
  /**
7418
- * Same-origin proxy URL for a version's raw contents. Mirrors the shape of
7419
- * `FileResponse.cdnUrl`: an app-relative Next.js route that authenticates
7420
- * via session cookies and forwards to the versioned contents endpoint.
7498
+ * Same-origin URL for a version's raw contents. The Next.js route
7499
+ * requires a session and redirects to the versioned FastAPI contents
7500
+ * endpoint. Mirrors the shape of `FileResponse.cdnUrl`.
7421
7501
  */
7422
7502
  getFileVersionContentsUrl(wid, fileId, versionNumber) {
7423
7503
  return `/api/w/${wid}/files/${fileId}/versions/${versionNumber}/contents`;
@@ -7449,6 +7529,19 @@ var FilesApi = class extends BaseApiClient {
7449
7529
  const parentId = typeof parentIdOrOpts === "number" ? parentIdOrOpts : parentIdOrOpts.parentId;
7450
7530
  return this.fetch(`w/${wid}/folders?parent_id=${parentId}`);
7451
7531
  }
7532
+ /**
7533
+ * Readable children of many parents in one request.
7534
+ *
7535
+ * Every id comes back as a key. A parent with no readable children maps to
7536
+ * an empty list. The server accepts at most 100 ids per call.
7537
+ */
7538
+ async getFolderChildren(wid, parentIds) {
7539
+ const params = new URLSearchParams();
7540
+ for (const parentId of parentIds) {
7541
+ params.append("parent_ids", String(parentId));
7542
+ }
7543
+ return this.fetch(`w/${wid}/folders/children?${params}`);
7544
+ }
7452
7545
  /** Get a single folder by ID. */
7453
7546
  async getFolder(wid, id) {
7454
7547
  return this.fetch(`w/${wid}/folders/${id}`);
@@ -7894,6 +7987,19 @@ var AppConnectionsApi = class extends BaseApiClient {
7894
7987
  body: JSON.stringify(data)
7895
7988
  });
7896
7989
  }
7990
+ /**
7991
+ * Create a public Zendesk Help Center connection with its sync paused.
7992
+ *
7993
+ * The acting Member becomes the sync owner. Later settings edits,
7994
+ * pause/resume, Sync now and run history use the generic connection-sync
7995
+ * methods (`updateConnectionSyncConfig`, `startSyncRun`, `getSyncRuns`).
7996
+ */
7997
+ async configureZendeskConnection(wid, data) {
7998
+ return this.fetch(`w/${wid}/app-connections/zendesk/configure`, {
7999
+ method: "POST",
8000
+ body: JSON.stringify(data)
8001
+ });
8002
+ }
7897
8003
  /**
7898
8004
  * Get platform app connection details by UUID.
7899
8005
  */
@@ -10235,6 +10341,45 @@ var OrgApi = class extends BaseApiClient {
10235
10341
  `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}`
10236
10342
  );
10237
10343
  }
10344
+ /**
10345
+ * Requeue one dead-lettered or expired delivery on its existing row.
10346
+ *
10347
+ * The response is identifiers only. The drain signs a fresh timestamp
10348
+ * when it sends; this call does not POST to the receiver.
10349
+ */
10350
+ async replayOrgWebhookDelivery(orgIdOrUuid, endpointUuid, deliveryId) {
10351
+ return this.fetch(
10352
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}/replay`,
10353
+ {
10354
+ method: "POST",
10355
+ body: JSON.stringify({})
10356
+ }
10357
+ );
10358
+ }
10359
+ /**
10360
+ * Expire every pending delivery of a paused or disabled endpoint, so a
10361
+ * resume does not re-send a held backlog the receiver keeps rejecting.
10362
+ * Refused with 409 while the endpoint is active. Dead-lettered rows
10363
+ * are untouched; expired rows stay replayable one at a time.
10364
+ */
10365
+ async discardPendingOrgWebhookDeliveries(orgIdOrUuid, endpointUuid) {
10366
+ return this.fetch(
10367
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/discard-pending`,
10368
+ {
10369
+ method: "POST",
10370
+ body: JSON.stringify({})
10371
+ }
10372
+ );
10373
+ }
10374
+ /**
10375
+ * Which covered workspaces have the subscribed Forms opted in
10376
+ * (`webhookEventsEnabled`). Record events only.
10377
+ */
10378
+ async getOrgWebhookEndpointCoverage(orgIdOrUuid, endpointUuid) {
10379
+ return this.fetch(
10380
+ `o/${orgIdOrUuid}/webhooks/${endpointUuid}/coverage`
10381
+ );
10382
+ }
10238
10383
  /**
10239
10384
  * A representative delivery body for one event type — what the test-send
10240
10385
  * editor is prefilled with, and the same builder the public event catalog
@@ -10296,6 +10441,57 @@ var OrgApi = class extends BaseApiClient {
10296
10441
  method: "DELETE"
10297
10442
  });
10298
10443
  }
10444
+ // =========================================================================
10445
+ // Workspace labels — the organization's own taxonomy of its workspaces
10446
+ // =========================================================================
10447
+ /** Every label of the organization, with workspace and webhook-selector counts. */
10448
+ async listWorkspaceLabels(orgIdOrUuid) {
10449
+ return this.fetch(`o/${orgIdOrUuid}/workspace-labels`);
10450
+ }
10451
+ async createWorkspaceLabel(orgIdOrUuid, data) {
10452
+ return this.fetch(`o/${orgIdOrUuid}/workspace-labels`, {
10453
+ method: "POST",
10454
+ body: JSON.stringify(data)
10455
+ });
10456
+ }
10457
+ /** Rename or recolor a label. The slug never changes. */
10458
+ async updateWorkspaceLabel(orgIdOrUuid, labelUuid, data) {
10459
+ return this.fetch(`o/${orgIdOrUuid}/workspace-labels/${labelUuid}`, {
10460
+ method: "PATCH",
10461
+ body: JSON.stringify(data)
10462
+ });
10463
+ }
10464
+ /** Delete a label. Refused (409) while a webhook label selector requires it. */
10465
+ async deleteWorkspaceLabel(orgIdOrUuid, labelUuid) {
10466
+ return this.fetch(`o/${orgIdOrUuid}/workspace-labels/${labelUuid}`, {
10467
+ method: "DELETE"
10468
+ });
10469
+ }
10470
+ /**
10471
+ * Which workspaces a webhook scope (explicit workspaces plus a label
10472
+ * selector) would cover right now. Both empty means the whole organization.
10473
+ */
10474
+ async previewWorkspaceScope(orgIdOrUuid, data) {
10475
+ return this.fetch(
10476
+ `o/${orgIdOrUuid}/workspace-labels/preview-scope`,
10477
+ { method: "POST", body: JSON.stringify(data) }
10478
+ );
10479
+ }
10480
+ async getWorkspaceLabels(orgIdOrUuid, workspaceUuid) {
10481
+ return this.fetch(
10482
+ `o/${orgIdOrUuid}/workspaces/${workspaceUuid}/labels`
10483
+ );
10484
+ }
10485
+ /**
10486
+ * Replace a workspace's labels with exactly `data.labels` (slugs). A slug the
10487
+ * organization has not used before creates that label.
10488
+ */
10489
+ async setWorkspaceLabels(orgIdOrUuid, workspaceUuid, data) {
10490
+ return this.fetch(
10491
+ `o/${orgIdOrUuid}/workspaces/${workspaceUuid}/labels`,
10492
+ { method: "PUT", body: JSON.stringify(data) }
10493
+ );
10494
+ }
10299
10495
  };
10300
10496
  function businessProfilePath(orgUuid, legalEntityUuid) {
10301
10497
  return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
@@ -10355,6 +10551,39 @@ var OAuthApi = class extends BaseApiClient {
10355
10551
  body: JSON.stringify(request)
10356
10552
  });
10357
10553
  }
10554
+ async denyAuthorization(request) {
10555
+ return this.fetch("oauth/authorize/deny", {
10556
+ method: "POST",
10557
+ body: JSON.stringify(request)
10558
+ });
10559
+ }
10560
+ async getOAuthConsentClient(clientId, redirectUri, resource) {
10561
+ const params = new URLSearchParams({ client_id: clientId, redirect_uri: redirectUri });
10562
+ if (resource) params.set("resource", resource);
10563
+ return this.fetch(`oauth/authorize/client?${params.toString()}`);
10564
+ }
10565
+ /** The organizations and workspaces the MCP consent screen may offer. */
10566
+ async getMcpConsentTargets(clientId) {
10567
+ const params = new URLSearchParams({ client_id: clientId });
10568
+ return this.fetch(`oauth/authorize/mcp-targets?${params.toString()}`);
10569
+ }
10570
+ /** The signed-in account's MCP grants. */
10571
+ async listMcpGrants() {
10572
+ return this.fetch("oauth/mcp-grants");
10573
+ }
10574
+ /** Remove organizations or workspaces from one MCP grant. */
10575
+ async narrowMcpGrant(grantId, removeTargetIds) {
10576
+ return this.fetch(`oauth/mcp-grants/${encodeURIComponent(grantId)}`, {
10577
+ method: "PATCH",
10578
+ body: JSON.stringify({ removeTargetIds })
10579
+ });
10580
+ }
10581
+ /** Revoke one MCP grant. */
10582
+ async revokeMcpGrant(grantId) {
10583
+ return this.fetch(`oauth/mcp-grants/${encodeURIComponent(grantId)}`, {
10584
+ method: "DELETE"
10585
+ });
10586
+ }
10358
10587
  async exchangeOAuthToken(request) {
10359
10588
  const formData = new URLSearchParams();
10360
10589
  formData.append("grant_type", request.grant_type);
@@ -10814,6 +11043,21 @@ var MetricsApi = class extends BaseApiClient {
10814
11043
  }
10815
11044
  };
10816
11045
 
11046
+ // src/api/data-reports.ts
11047
+ var DataReportsApi = class extends BaseApiClient {
11048
+ /**
11049
+ * Run a Form Reports report, saved or not, with the given parameter values.
11050
+ * The result is what the Agent would get: record rows or aggregate groups
11051
+ * within the tool's row and group caps, plus the text sent to the Agent.
11052
+ */
11053
+ async previewDataReport(wid, request) {
11054
+ return this.fetch(`w/${wid}/data-reports/preview`, {
11055
+ method: "POST",
11056
+ body: JSON.stringify(request)
11057
+ });
11058
+ }
11059
+ };
11060
+
10817
11061
  // src/api/queries.ts
10818
11062
  var QueriesApi = class extends BaseApiClient {
10819
11063
  /** Queryable namespace: native fields, operators per type, DataType record fields. */
@@ -13046,6 +13290,20 @@ var WorkflowsApi = class extends BaseApiClient {
13046
13290
  async getWorkflowOutline(wid, id) {
13047
13291
  return this.fetch(`w/${wid}/workflows/${id}/outline`);
13048
13292
  }
13293
+ /**
13294
+ * Outlines for many Workflows in one request. The same shape as
13295
+ * {@link getWorkflowOutline}, keyed by workflow id. Ids the caller cannot
13296
+ * use, and outlines that cannot be read, are absent.
13297
+ *
13298
+ * The route accepts at most 100 ids. Callers with a longer list chunk.
13299
+ */
13300
+ async getWorkflowsOutlineBatch(wid, workflowIds) {
13301
+ const params = new URLSearchParams();
13302
+ params.set("workflowIds", workflowIds.join(","));
13303
+ return this.fetch(
13304
+ `w/${wid}/workflows/outline/batch?${params.toString()}`
13305
+ );
13306
+ }
13049
13307
  /** Create a new workflow in a workspace. */
13050
13308
  async createWorkflow(wid, workflow) {
13051
13309
  return this.fetch(`w/${wid}/workflows`, {
@@ -13534,6 +13792,17 @@ var WorkspacesApi = class extends BaseApiClient {
13534
13792
  async getWorkspaces(options) {
13535
13793
  return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
13536
13794
  }
13795
+ /**
13796
+ * Page 1 of each organization's workspace directory, in one request.
13797
+ * Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
13798
+ */
13799
+ async getOrganizationWorkspacePages(options) {
13800
+ const params = new URLSearchParams();
13801
+ if (options.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
13802
+ if (options.search) params.set("search", options.search);
13803
+ for (const uuid of options.organizationUuids) params.append("organizationUuids", uuid);
13804
+ return this.fetch(`w/organization-pages?${params}`);
13805
+ }
13537
13806
  /** A bounded page of companion-device candidates, with admission checked per row. */
13538
13807
  async getDeviceAdmissibleWorkspaces(options) {
13539
13808
  const params = workspaceDirectoryParams(options);
@@ -14192,6 +14461,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
14192
14461
  qualifications: new QualificationsApi(apiKey, baseUrl, customFetch),
14193
14462
  personas: new PersonasApi(apiKey, baseUrl, customFetch),
14194
14463
  metrics: new MetricsApi(apiKey, baseUrl, customFetch),
14464
+ dataReports: new DataReportsApi(apiKey, baseUrl, customFetch),
14195
14465
  queries: new QueriesApi(apiKey, baseUrl, customFetch),
14196
14466
  reports: new ReportsApi(apiKey, baseUrl, customFetch),
14197
14467
  resourceWorkflows: new ResourceWorkflowsApi(apiKey, baseUrl, customFetch),
@@ -14267,6 +14537,7 @@ var WORKSPACE_METHOD_NAMES = [
14267
14537
  "configureHubspot",
14268
14538
  "configureMondayConnection",
14269
14539
  "configureSalesforce",
14540
+ "configureZendeskConnection",
14270
14541
  "convertEmail",
14271
14542
  "convertFile",
14272
14543
  "createAbility",
@@ -14463,6 +14734,7 @@ var WORKSPACE_METHOD_NAMES = [
14463
14734
  "fhirGetCsvImportSettings",
14464
14735
  "fhirGetEncounterSyncRuns",
14465
14736
  "fhirGetEncounterSyncStatus",
14737
+ "fhirGetOnboardingImportStatus",
14466
14738
  "fhirImportPatient",
14467
14739
  "fhirLinkMember",
14468
14740
  "fhirListLinkedMembers",
@@ -14471,6 +14743,7 @@ var WORKSPACE_METHOD_NAMES = [
14471
14743
  "fhirSearchLocations",
14472
14744
  "fhirSearchPatients",
14473
14745
  "fhirSearchPractitioners",
14746
+ "fhirStartOnboardingImport",
14474
14747
  "fhirSyncMember",
14475
14748
  "fhirUnlinkMember",
14476
14749
  "fhirUpdateCsvImportSettings",
@@ -14627,6 +14900,7 @@ var WORKSPACE_METHOD_NAMES = [
14627
14900
  "importSiteSourceZip",
14628
14901
  "installDocumoFax",
14629
14902
  "listChatRecordings",
14903
+ "previewDataReport",
14630
14904
  "previewQuery",
14631
14905
  "publishSiteSource",
14632
14906
  "publishDataTypeDraft",
@@ -14650,6 +14924,7 @@ var WORKSPACE_METHOD_NAMES = [
14650
14924
  "getFiles",
14651
14925
  "getFirstRunState",
14652
14926
  "getFolder",
14927
+ "getFolderChildren",
14653
14928
  "getFolderMemberAccess",
14654
14929
  "getFolderSharing",
14655
14930
  "getFolders",
@@ -14836,6 +15111,7 @@ var WORKSPACE_METHOD_NAMES = [
14836
15111
  "getWorkflowTemplates",
14837
15112
  "getWorkflows",
14838
15113
  "getWorkflowsActivityBatch",
15114
+ "getWorkflowsOutlineBatch",
14839
15115
  "getWorkspace",
14840
15116
  "getWorkspaceActivityCounts",
14841
15117
  "getWorkspaceBuilder",
@@ -15458,6 +15734,7 @@ function bindMembersMethods(target, members) {
15458
15734
  // src/client/bindings/workspaces.ts
15459
15735
  function bindWorkspacesMethods(target, workspaces, signupRequests) {
15460
15736
  target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
15737
+ target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
15461
15738
  target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
15462
15739
  target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
15463
15740
  target.getWorkspace = workspaces.getWorkspace.bind(workspaces);
@@ -15659,6 +15936,7 @@ function bindFilesMethods(target, files) {
15659
15936
  target.convertFile = files.convertFile.bind(files);
15660
15937
  target.generateFileUploadUrl = files.generateFileUploadUrl.bind(files);
15661
15938
  target.getFolders = files.getFolders.bind(files);
15939
+ target.getFolderChildren = files.getFolderChildren.bind(files);
15662
15940
  target.getFolder = files.getFolder.bind(files);
15663
15941
  target.createFolder = files.createFolder.bind(files);
15664
15942
  target.updateFolder = files.updateFolder.bind(files);
@@ -15747,6 +16025,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
15747
16025
  target.getWorkflowsActivityBatch = workflows.getWorkflowsActivityBatch.bind(workflows);
15748
16026
  target.getWorkflowDiagram = workflows.getWorkflowDiagram.bind(workflows);
15749
16027
  target.getWorkflowOutline = workflows.getWorkflowOutline.bind(workflows);
16028
+ target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
15750
16029
  target.createWorkflow = workflows.createWorkflow.bind(workflows);
15751
16030
  target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
15752
16031
  target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
@@ -15967,6 +16246,12 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
15967
16246
  target.deleteInquiry = inquiries.deleteInquiry.bind(inquiries);
15968
16247
  target.exportInquiriesCsv = inquiries.exportInquiriesCsv.bind(inquiries);
15969
16248
  target.authorize = oauth.authorize.bind(oauth);
16249
+ target.denyAuthorization = oauth.denyAuthorization.bind(oauth);
16250
+ target.getOAuthConsentClient = oauth.getOAuthConsentClient.bind(oauth);
16251
+ target.getMcpConsentTargets = oauth.getMcpConsentTargets.bind(oauth);
16252
+ target.listMcpGrants = oauth.listMcpGrants.bind(oauth);
16253
+ target.narrowMcpGrant = oauth.narrowMcpGrant.bind(oauth);
16254
+ target.revokeMcpGrant = oauth.revokeMcpGrant.bind(oauth);
15970
16255
  target.exchangeOAuthToken = oauth.exchangeOAuthToken.bind(oauth);
15971
16256
  target.getAvailableScopes = oauth.getAvailableScopes.bind(oauth);
15972
16257
  target.getOAuthConnectionStatus = oauthConnections.getConnectionStatus.bind(oauthConnections);
@@ -16066,6 +16351,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
16066
16351
  target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
16067
16352
  target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
16068
16353
  target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
16354
+ target.fhirStartOnboardingImport = fhirConnections.fhirStartOnboardingImport.bind(fhirConnections);
16355
+ target.fhirGetOnboardingImportStatus = fhirConnections.fhirGetOnboardingImportStatus.bind(fhirConnections);
16069
16356
  target.configurePatientSync = patientSyncConnections.configurePatientSync.bind(patientSyncConnections);
16070
16357
  target.getPatientSyncStatus = patientSyncConnections.getPatientSyncStatus.bind(patientSyncConnections);
16071
16358
  target.deletePatientSyncConnection = patientSyncConnections.deletePatientSyncConnection.bind(patientSyncConnections);
@@ -16152,6 +16439,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
16152
16439
  target.listAvailableAppConnections = appConnections.listAvailableAppConnections.bind(appConnections);
16153
16440
  target.listAppConnections = appConnections.listAppConnections.bind(appConnections);
16154
16441
  target.enablePlatformApp = appConnections.enablePlatformApp.bind(appConnections);
16442
+ target.configureZendeskConnection = appConnections.configureZendeskConnection.bind(appConnections);
16155
16443
  target.getPlatformApp = appConnections.getPlatformApp.bind(appConnections);
16156
16444
  target.updatePlatformApp = appConnections.updatePlatformApp.bind(appConnections);
16157
16445
  target.deletePlatformApp = appConnections.deletePlatformApp.bind(appConnections);
@@ -16204,6 +16492,7 @@ function bindOrgMethods(target, org) {
16204
16492
  target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
16205
16493
  target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
16206
16494
  target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
16495
+ target.getOrganizationWorkspaces = org.getOrganizationWorkspaces.bind(org);
16207
16496
  target.getOrganizationWorkspace = org.getOrganizationWorkspace.bind(org);
16208
16497
  target.updateOrganizationWorkspace = org.updateOrganizationWorkspace.bind(org);
16209
16498
  target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
@@ -16213,7 +16502,20 @@ function bindOrgMethods(target, org) {
16213
16502
  target.updateOrganizationMember = org.updateOrganizationMember.bind(org);
16214
16503
  target.listOrgWebhookEndpoints = org.listOrgWebhookEndpoints.bind(org);
16215
16504
  target.getOrgWebhookEndpoint = org.getOrgWebhookEndpoint.bind(org);
16505
+ target.createOrgWebhookEndpoint = org.createOrgWebhookEndpoint.bind(org);
16216
16506
  target.updateOrgWebhookEndpoint = org.updateOrgWebhookEndpoint.bind(org);
16507
+ target.listOrgWebhookEndpointDeliveries = org.listOrgWebhookEndpointDeliveries.bind(org);
16508
+ target.replayOrgWebhookDelivery = org.replayOrgWebhookDelivery.bind(org);
16509
+ target.discardPendingOrgWebhookDeliveries = org.discardPendingOrgWebhookDeliveries.bind(org);
16510
+ target.getOrgWebhookEndpointCoverage = org.getOrgWebhookEndpointCoverage.bind(org);
16511
+ target.testOrgWebhookEndpoint = org.testOrgWebhookEndpoint.bind(org);
16512
+ target.listWorkspaceLabels = org.listWorkspaceLabels.bind(org);
16513
+ target.createWorkspaceLabel = org.createWorkspaceLabel.bind(org);
16514
+ target.updateWorkspaceLabel = org.updateWorkspaceLabel.bind(org);
16515
+ target.deleteWorkspaceLabel = org.deleteWorkspaceLabel.bind(org);
16516
+ target.getWorkspaceLabels = org.getWorkspaceLabels.bind(org);
16517
+ target.setWorkspaceLabels = org.setWorkspaceLabels.bind(org);
16518
+ target.previewWorkspaceScope = org.previewWorkspaceScope.bind(org);
16217
16519
  }
16218
16520
 
16219
16521
  // src/client/bindings/pronunciations.ts
@@ -16369,6 +16671,11 @@ function bindMetricsMethods(target, metrics) {
16369
16671
  target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
16370
16672
  }
16371
16673
 
16674
+ // src/client/bindings/data-reports.ts
16675
+ function bindDataReportsMethods(target, dataReports) {
16676
+ target.previewDataReport = dataReports.previewDataReport.bind(dataReports);
16677
+ }
16678
+
16372
16679
  // src/client/bindings/queries.ts
16373
16680
  function bindQueriesMethods(target, queries) {
16374
16681
  target.getQueryFields = queries.getQueryFields.bind(queries);
@@ -16684,6 +16991,8 @@ var GravityRailClient = class {
16684
16991
  validateQuery;
16685
16992
  previewQuery;
16686
16993
  runQuery;
16994
+ // Form Reports
16995
+ previewDataReport;
16687
16996
  listPersonas;
16688
16997
  getPersona;
16689
16998
  createPersona;
@@ -16868,6 +17177,7 @@ var GravityRailClient = class {
16868
17177
  inspectPrompt;
16869
17178
  // Workspaces API
16870
17179
  getWorkspaces;
17180
+ getOrganizationWorkspacePages;
16871
17181
  getDeviceAdmissibleWorkspaces;
16872
17182
  getPublicWorkspaces;
16873
17183
  getWorkspace;
@@ -16954,6 +17264,7 @@ var GravityRailClient = class {
16954
17264
  getVoiceTrustProducts;
16955
17265
  syncVoiceTrustProducts;
16956
17266
  createOrganizationWorkspace;
17267
+ getOrganizationWorkspaces;
16957
17268
  getOrganizationWorkspace;
16958
17269
  updateOrganizationWorkspace;
16959
17270
  getOrgBillingCustomer;
@@ -16963,7 +17274,20 @@ var GravityRailClient = class {
16963
17274
  updateOrganizationMember;
16964
17275
  listOrgWebhookEndpoints;
16965
17276
  getOrgWebhookEndpoint;
17277
+ createOrgWebhookEndpoint;
16966
17278
  updateOrgWebhookEndpoint;
17279
+ listOrgWebhookEndpointDeliveries;
17280
+ replayOrgWebhookDelivery;
17281
+ discardPendingOrgWebhookDeliveries;
17282
+ getOrgWebhookEndpointCoverage;
17283
+ testOrgWebhookEndpoint;
17284
+ listWorkspaceLabels;
17285
+ createWorkspaceLabel;
17286
+ updateWorkspaceLabel;
17287
+ deleteWorkspaceLabel;
17288
+ getWorkspaceLabels;
17289
+ setWorkspaceLabels;
17290
+ previewWorkspaceScope;
16967
17291
  getVapidPublicKey;
16968
17292
  registerPushSubscription;
16969
17293
  unregisterPushSubscription;
@@ -17104,6 +17428,7 @@ var GravityRailClient = class {
17104
17428
  convertFile;
17105
17429
  generateFileUploadUrl;
17106
17430
  getFolders;
17431
+ getFolderChildren;
17107
17432
  getFolder;
17108
17433
  createFolder;
17109
17434
  updateFolder;
@@ -17161,6 +17486,7 @@ var GravityRailClient = class {
17161
17486
  getWorkflowsActivityBatch;
17162
17487
  getWorkflowDiagram;
17163
17488
  getWorkflowOutline;
17489
+ getWorkflowsOutlineBatch;
17164
17490
  createWorkflow;
17165
17491
  updateWorkflow;
17166
17492
  getWorkflowDeletionPreview;
@@ -17373,6 +17699,12 @@ var GravityRailClient = class {
17373
17699
  deleteInquiry;
17374
17700
  exportInquiriesCsv;
17375
17701
  authorize;
17702
+ denyAuthorization;
17703
+ getOAuthConsentClient;
17704
+ getMcpConsentTargets;
17705
+ listMcpGrants;
17706
+ narrowMcpGrant;
17707
+ revokeMcpGrant;
17376
17708
  exchangeOAuthToken;
17377
17709
  getAvailableScopes;
17378
17710
  getOAuthConnectionStatus;
@@ -17474,6 +17806,8 @@ var GravityRailClient = class {
17474
17806
  fhirGetEncounterSyncRuns;
17475
17807
  fhirRefreshEncounterPatient;
17476
17808
  fhirBackfillEncounterSync;
17809
+ fhirStartOnboardingImport;
17810
+ fhirGetOnboardingImportStatus;
17477
17811
  // Healthie API
17478
17812
  getDocumoFaxStatus;
17479
17813
  getDocumoFaxSetup;
@@ -17566,6 +17900,7 @@ var GravityRailClient = class {
17566
17900
  listAvailableAppConnections;
17567
17901
  listAppConnections;
17568
17902
  enablePlatformApp;
17903
+ configureZendeskConnection;
17569
17904
  getPlatformApp;
17570
17905
  updatePlatformApp;
17571
17906
  deletePlatformApp;
@@ -17646,6 +17981,7 @@ var GravityRailClient = class {
17646
17981
  bindPersonasMethods(this, apis.personas);
17647
17982
  bindMetricsMethods(this, apis.metrics);
17648
17983
  bindQueriesMethods(this, apis.queries);
17984
+ bindDataReportsMethods(this, apis.dataReports);
17649
17985
  bindDashboardsMethods(this, apis.dashboards);
17650
17986
  bindActivityMethods(this, apis.activity);
17651
17987
  bindMotdMethods(this, apis.motd);
@@ -18103,6 +18439,8 @@ function pathDraftToStorage(draft, original) {
18103
18439
  REALTIME_MODEL_OPENAI_2,
18104
18440
  REALTIME_MODEL_OPENAI_MINI,
18105
18441
  RecordChangeKind,
18442
+ RecordContactPermissionRequestChannelNote,
18443
+ RecordMetricAggregationEnum,
18106
18444
  RefResolutionStatus,
18107
18445
  Region,
18108
18446
  RegistrationIdentifier,
@@ -18124,6 +18462,7 @@ function pathDraftToStorage(draft, original) {
18124
18462
  STT_MODEL_DEEPGRAM_FLUX_MULTI,
18125
18463
  STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST,
18126
18464
  STT_MODEL_DEEPGRAM_FLUX_SELFHOST,
18465
+ STT_MODEL_ELEVENLABS_SCRIBE_V2_REALTIME,
18127
18466
  SalesforceApi,
18128
18467
  ScenarioHealthCaption,
18129
18468
  ScenarioHealthHeadline,
@@ -18147,6 +18486,10 @@ function pathDraftToStorage(draft, original) {
18147
18486
  TTS_MODEL_AWS_POLLY_GENERATIVE,
18148
18487
  TTS_MODEL_AWS_POLLY_NEURAL,
18149
18488
  TTS_MODEL_DEEPGRAM_AURA_2,
18489
+ TTS_MODEL_ELEVENLABS_FLASH,
18490
+ TTS_MODEL_ELEVENLABS_MULTILINGUAL,
18491
+ TTS_MODEL_ELEVENLABS_TURBO,
18492
+ TTS_MODEL_ELEVENLABS_V4_TURBO,
18150
18493
  TTS_MODEL_XAI_V1,
18151
18494
  TTS_PREVIEW_PROVIDERS,
18152
18495
  TaskTransitionInitiator,
@@ -18188,6 +18531,7 @@ function pathDraftToStorage(draft, original) {
18188
18531
  bindCommunicationsMethods,
18189
18532
  bindCustomersMethods,
18190
18533
  bindDashboardsMethods,
18534
+ bindDataReportsMethods,
18191
18535
  bindDataTypesMethods,
18192
18536
  bindDevicesMethods,
18193
18537
  bindEventsMethods,