@gravity-rail/sdk 0.16.0 → 0.18.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 (36) hide show
  1. package/dist/{chunk-4B7T6MBH.js → chunk-MP5ENP4Q.js} +493 -77
  2. package/dist/chunk-MP5ENP4Q.js.map +1 -0
  3. package/dist/{chunk-GP6ICMWF.js → chunk-PJFEGUHM.js} +8 -1
  4. package/dist/chunk-PJFEGUHM.js.map +1 -0
  5. package/dist/{client-3xYGmF3t.d.ts → client-B51HZ6zY.d.cts} +2229 -217
  6. package/dist/{client-BhO_UFFz.d.cts → client-G5i59XtT.d.ts} +2229 -217
  7. package/dist/helpers.cjs +7 -0
  8. package/dist/helpers.cjs.map +1 -1
  9. package/dist/helpers.d.cts +2 -2
  10. package/dist/helpers.d.ts +2 -2
  11. package/dist/helpers.js +1 -1
  12. package/dist/index.cjs +449 -70
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +23 -5
  15. package/dist/index.d.ts +23 -5
  16. package/dist/index.js +77 -4
  17. package/dist/index.js.map +1 -1
  18. package/dist/internal.cjs +564 -72
  19. package/dist/internal.cjs.map +1 -1
  20. package/dist/internal.d.cts +95 -7
  21. package/dist/internal.d.ts +95 -7
  22. package/dist/internal.js +93 -6
  23. package/dist/internal.js.map +1 -1
  24. package/dist/{revision-state-Dma10N9s.d.ts → revision-state-Cc7RAf8A.d.ts} +30 -5
  25. package/dist/{revision-state-Dx8gCQIj.d.cts → revision-state-DudSCwea.d.cts} +30 -5
  26. package/dist/schemas.cjs +170 -216
  27. package/dist/schemas.cjs.map +1 -1
  28. package/dist/schemas.d.cts +11 -11
  29. package/dist/schemas.d.ts +11 -11
  30. package/dist/schemas.js +170 -209
  31. package/dist/schemas.js.map +1 -1
  32. package/dist/{tasks-vupYoJgG.d.cts → tasks-1JXJJuG8.d.cts} +256 -73
  33. package/dist/{tasks-vupYoJgG.d.ts → tasks-1JXJJuG8.d.ts} +256 -73
  34. package/package.json +3 -3
  35. package/dist/chunk-4B7T6MBH.js.map +0 -1
  36. package/dist/chunk-GP6ICMWF.js.map +0 -1
package/dist/internal.cjs CHANGED
@@ -31,6 +31,18 @@ __export(internal_exports, {
31
31
  AccessGrantTrigger: () => AccessGrantTrigger,
32
32
  AccessGrantsApi: () => AccessGrantsApi,
33
33
  AccessLevel: () => AccessLevel2,
34
+ ActivityActorKind: () => ActivityActorKind,
35
+ ActivityAggregationKind: () => ActivityAggregationKind,
36
+ ActivityCaptureState: () => ActivityCaptureState,
37
+ ActivityConfigAction: () => ActivityConfigAction,
38
+ ActivityConfigArea: () => ActivityConfigArea,
39
+ ActivityCoverageLimitation: () => ActivityCoverageLimitation,
40
+ ActivityDirection: () => ActivityDirection,
41
+ ActivityEmptyReason: () => ActivityEmptyReason,
42
+ ActivityEventType: () => ActivityEventType,
43
+ ActivityEventTypePreset: () => ActivityEventTypePreset,
44
+ ActivityGoalImpact: () => ActivityGoalImpact,
45
+ ActivityTimelineProjection: () => ActivityTimelineProjection,
34
46
  AgentTasksApi: () => AgentTasksApi,
35
47
  AgentsApi: () => AgentsApi,
36
48
  ApiError: () => ApiError,
@@ -49,6 +61,7 @@ __export(internal_exports, {
49
61
  BusinessType: () => BusinessType,
50
62
  CELApi: () => CELApi,
51
63
  CHAT_TYPES: () => CHAT_TYPES,
64
+ CONFIG_HEALTH_FACADE_CHECK_SLUGS: () => CONFIG_HEALTH_FACADE_CHECK_SLUGS,
52
65
  CalendarEventStatus: () => CalendarEventStatus,
53
66
  CalendarPermissionType: () => CalendarPermissionType,
54
67
  CalendarScheduleAvailabilityType: () => CalendarScheduleAvailabilityType,
@@ -97,6 +110,7 @@ __export(internal_exports, {
97
110
  FhirConnectionsApi: () => FhirConnectionsApi,
98
111
  FhirVendor: () => FhirVendor,
99
112
  FilesApi: () => FilesApi,
113
+ FormValueDisposition: () => FormValueDisposition,
100
114
  GravityRailClient: () => GravityRailClient,
101
115
  HealthieApi: () => HealthieApi,
102
116
  HubspotApi: () => HubspotApi,
@@ -117,7 +131,13 @@ __export(internal_exports, {
117
131
  MembersApi: () => MembersApi,
118
132
  MenuItemResponseItemType: () => MenuItemResponseItemType,
119
133
  MenuItemType: () => MenuItemResponseItemType,
120
- MilestonesApi: () => MilestonesApi,
134
+ MergeMemberRolesRequestAccessStrategy: () => MergeMemberRolesRequestAccessStrategy,
135
+ MetricChatTypeEnum: () => MetricChatType,
136
+ MetricDenominatorEnum: () => MetricDenominator,
137
+ MetricKindEnum: () => MetricKind,
138
+ MetricSourceEnum: () => MetricSource,
139
+ MetricTypeEnum: () => MetricType,
140
+ MetricUnitEnum: () => MetricUnit,
121
141
  ModelProvider: () => ModelProvider,
122
142
  ModelType: () => ModelType,
123
143
  MondayIntegrationApi: () => MondayIntegrationApi,
@@ -176,7 +196,8 @@ __export(internal_exports, {
176
196
  SMS_DELIVERY_FAILURE_STATUSES: () => SMS_DELIVERY_FAILURE_STATUSES,
177
197
  STT_MODEL_DEEPGRAM_FLUX: () => STT_MODEL_DEEPGRAM_FLUX,
178
198
  STT_MODEL_DEEPGRAM_FLUX_MULTI: () => STT_MODEL_DEEPGRAM_FLUX_MULTI,
179
- STT_MODEL_ELEVENLABS_SCRIBE: () => STT_MODEL_ELEVENLABS_SCRIBE,
199
+ STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST: () => STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST,
200
+ STT_MODEL_DEEPGRAM_FLUX_SELFHOST: () => STT_MODEL_DEEPGRAM_FLUX_SELFHOST,
180
201
  SalesforceApi: () => SalesforceApi,
181
202
  Scope: () => Scope,
182
203
  ScopeCategory: () => ScopeCategory,
@@ -206,13 +227,17 @@ __export(internal_exports, {
206
227
  WorkflowAccessWarningResourceType: () => WorkflowAccessWarningResourceType,
207
228
  WorkflowNotesApi: () => WorkflowNotesApi,
208
229
  WorkflowResourceType: () => WorkflowAccessWarningResourceType,
230
+ WorkflowRoutingMode: () => WorkflowRoutingMode,
209
231
  WorkflowsApi: () => WorkflowsApi,
210
232
  WorkspaceFeature: () => WorkspaceFeature,
211
233
  WorkspaceInvitationsApi: () => WorkspaceInvitationsApi,
212
234
  WorkspaceProvisionStatus: () => WorkspaceProvisionStatus,
213
235
  WorkspacesApi: () => WorkspacesApi,
236
+ archivedMemberConflictId: () => archivedMemberConflictId,
214
237
  areDependenciesSatisfied: () => areDependenciesSatisfied,
238
+ asIdentifiedMemberContactConflict: () => asIdentifiedMemberContactConflict,
215
239
  bindAccessGrantsMethods: () => bindAccessGrantsMethods,
240
+ bindActivityTimelineMethods: () => bindActivityTimelineMethods,
216
241
  bindAgentTasksMethods: () => bindAgentTasksMethods,
217
242
  bindAgentsMethods: () => bindAgentsMethods,
218
243
  bindAppsMethods: () => bindAppsMethods,
@@ -231,6 +256,7 @@ __export(internal_exports, {
231
256
  bindIntegrationsMethods: () => bindIntegrationsMethods,
232
257
  bindJourneysMethods: () => bindJourneysMethods,
233
258
  bindMembersMethods: () => bindMembersMethods,
259
+ bindMetricsMethods: () => bindMetricsMethods,
234
260
  bindMotdMethods: () => bindMotdMethods,
235
261
  bindOperatorMethods: () => bindOperatorMethods,
236
262
  bindOrgMethods: () => bindOrgMethods,
@@ -271,9 +297,13 @@ __export(internal_exports, {
271
297
  getTTSProvider: () => getTTSProvider,
272
298
  getVoiceModelId: () => getVoiceModelId,
273
299
  initializeFeatures: () => initializeFeatures,
300
+ isAccountContactConflict: () => isAccountContactConflict,
274
301
  isAgentNoteOrigin: () => isAgentNoteOrigin,
275
302
  isChatType: () => isChatType,
303
+ isConfigHealthFacadeCheckSlug: () => isConfigHealthFacadeCheckSlug,
276
304
  isFeatureAvailable: () => isFeatureAvailable,
305
+ isIdentifiedMemberContactConflict: () => isIdentifiedMemberContactConflict,
306
+ isMemberContactConflict: () => isMemberContactConflict,
277
307
  isPositiveRating: () => isPositiveRating,
278
308
  isRegistryInitialized: () => isRegistryInitialized,
279
309
  isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
@@ -444,6 +474,12 @@ var MemberImportPreviewRowAction = {
444
474
  error: "error"
445
475
  };
446
476
 
477
+ // src/types/generated/member_role.ts
478
+ var MergeMemberRolesRequestAccessStrategy = {
479
+ union: "union",
480
+ target_only: "target_only"
481
+ };
482
+
447
483
  // src/types/member-types.ts
448
484
  var MemberType = /* @__PURE__ */ ((MemberType2) => {
449
485
  MemberType2["ANONYMOUS"] = "anonymous";
@@ -452,6 +488,37 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
452
488
  MemberType2["AGENT"] = "agent";
453
489
  return MemberType2;
454
490
  })(MemberType || {});
491
+ function structuredErrorDetail(error) {
492
+ if (!error || typeof error !== "object") return null;
493
+ const detail = error.errorData;
494
+ if (!detail || typeof detail !== "object") return null;
495
+ return detail;
496
+ }
497
+ function isMemberContactConflict(error) {
498
+ const d = structuredErrorDetail(error);
499
+ if (!d || d.code !== "MEMBER_CONTACT_CONFLICT") return null;
500
+ if (d.conflictingMemberId !== null && typeof d.conflictingMemberId !== "number") {
501
+ return null;
502
+ }
503
+ return d;
504
+ }
505
+ function isAccountContactConflict(error) {
506
+ const d = structuredErrorDetail(error);
507
+ if (!d || d.code !== "ACCOUNT_CONTACT_CONFLICT") return null;
508
+ return d;
509
+ }
510
+ function archivedMemberConflictId(error) {
511
+ const d = structuredErrorDetail(error);
512
+ if (!d || d.code !== "ARCHIVED_MEMBER_CONFLICT") return null;
513
+ return typeof d.archivedMemberId === "number" ? d.archivedMemberId : null;
514
+ }
515
+ function isIdentifiedMemberContactConflict(conflict) {
516
+ return !!conflict && conflict.conflictingMemberId !== null;
517
+ }
518
+ function asIdentifiedMemberContactConflict(error) {
519
+ const conflict = isMemberContactConflict(error);
520
+ return isIdentifiedMemberContactConflict(conflict) ? conflict : null;
521
+ }
455
522
 
456
523
  // src/types/mcp-server-types.ts
457
524
  var McpServerState = /* @__PURE__ */ ((McpServerState2) => {
@@ -561,18 +628,20 @@ var MASKED_SECRET_SENTINEL = "__SECRET_SET__";
561
628
  // src/types/billing-types.ts
562
629
  var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
563
630
  WorkspaceFeature2["PHONE"] = "phone";
631
+ WorkspaceFeature2["A2P_REGISTRATION"] = "a2p_registration";
564
632
  WorkspaceFeature2["EMAIL"] = "email";
565
633
  WorkspaceFeature2["WHATSAPP"] = "whatsapp";
566
634
  WorkspaceFeature2["DISCORD"] = "discord";
567
635
  WorkspaceFeature2["SLACK"] = "slack";
568
636
  WorkspaceFeature2["TEAMS"] = "teams";
569
637
  WorkspaceFeature2["SITES"] = "sites";
570
- WorkspaceFeature2["FORMS"] = "forms";
571
638
  WorkspaceFeature2["MAPS"] = "maps";
572
639
  WorkspaceFeature2["BROWSER"] = "browser";
573
640
  WorkspaceFeature2["WEB_SEARCH"] = "web_search";
574
641
  WorkspaceFeature2["CALENDAR"] = "calendar";
575
642
  WorkspaceFeature2["EXPERIMENTS"] = "experiments";
643
+ WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
644
+ WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
576
645
  WorkspaceFeature2["GMAIL"] = "gmail";
577
646
  WorkspaceFeature2["GCALENDAR"] = "gcalendar";
578
647
  WorkspaceFeature2["GDRIVE"] = "gdrive";
@@ -589,6 +658,9 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
589
658
  WorkspaceFeature2["CONFLUENCE"] = "confluence";
590
659
  WorkspaceFeature2["AGENT_MEMORY"] = "agent_memory";
591
660
  WorkspaceFeature2["IMAGE_GENERATION"] = "image_generation";
661
+ WorkspaceFeature2["STRICT_NATIVE_VOICE"] = "strict_native_voice";
662
+ WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
663
+ WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
592
664
  return WorkspaceFeature2;
593
665
  })(WorkspaceFeature || {});
594
666
  var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
@@ -758,8 +830,9 @@ var REALTIME_MODEL_GEMINI_VERTEX = "google:vertex:gemini-3.1-flash-live";
758
830
  var REALTIME_MODEL_NOVA_SONIC = "aws:bedrock:nova-sonic-1";
759
831
  var REALTIME_MODEL_CUSTOM = "custom:realtime:composable";
760
832
  var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
833
+ var STT_MODEL_DEEPGRAM_FLUX_SELFHOST = "deepgram:stt:flux-general-en:selfhost";
761
834
  var STT_MODEL_DEEPGRAM_FLUX_MULTI = "deepgram:stt:flux-general-multi";
762
- var STT_MODEL_ELEVENLABS_SCRIBE = "elevenlabs:stt:scribe_v2_realtime";
835
+ var STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST = "deepgram:stt:flux-general-multi:selfhost";
763
836
  var TTS_MODEL_ELEVENLABS_FLASH = "elevenlabs:tts:eleven_flash_v2_5";
764
837
  var TTS_MODEL_ELEVENLABS_TURBO = "elevenlabs:tts:eleven_turbo_v2_5";
765
838
  var TTS_MODEL_ELEVENLABS_MULTILINGUAL = "elevenlabs:tts:eleven_multilingual_v2";
@@ -898,6 +971,99 @@ var ConsentMethod = /* @__PURE__ */ ((ConsentMethod2) => {
898
971
  return ConsentMethod2;
899
972
  })(ConsentMethod || {});
900
973
 
974
+ // src/types/config-health-types.ts
975
+ var CONFIG_HEALTH_FACADE_CHECK_SLUGS = [
976
+ "workflow.config",
977
+ "journey.authoring",
978
+ "workflow.access",
979
+ "routine.workflow_access",
980
+ "workspace.validation"
981
+ ];
982
+ function isConfigHealthFacadeCheckSlug(value) {
983
+ return CONFIG_HEALTH_FACADE_CHECK_SLUGS.includes(value);
984
+ }
985
+
986
+ // src/types/generated/activity_timeline.ts
987
+ var ActivityActorKind = {
988
+ member: "member",
989
+ agent: "agent",
990
+ operator: "operator",
991
+ event_rule: "event_rule",
992
+ api_key: "api_key",
993
+ system: "system"
994
+ };
995
+ var ActivityAggregationKind = {
996
+ burst: "burst",
997
+ conversation_session: "conversation_session",
998
+ operation: "operation"
999
+ };
1000
+ var ActivityCaptureState = {
1001
+ active: "active",
1002
+ not_started: "not_started"
1003
+ };
1004
+ var ActivityConfigAction = {
1005
+ created: "created",
1006
+ updated: "updated",
1007
+ deleted: "deleted"
1008
+ };
1009
+ var ActivityConfigArea = {
1010
+ inbox: "inbox",
1011
+ phone_number: "phone_number",
1012
+ business_hours: "business_hours",
1013
+ escalation_settings: "escalation_settings",
1014
+ workspace_settings: "workspace_settings"
1015
+ };
1016
+ var ActivityCoverageLimitation = {
1017
+ none: "none",
1018
+ capture_started_at_cutover: "capture_started_at_cutover",
1019
+ legacy_baseline_incomplete: "legacy_baseline_incomplete",
1020
+ deletion_may_remove_history: "deletion_may_remove_history",
1021
+ config_capture_started: "config_capture_started"
1022
+ };
1023
+ var ActivityDirection = {
1024
+ inbound: "inbound",
1025
+ outbound: "outbound"
1026
+ };
1027
+ var ActivityEmptyReason = {
1028
+ collection: "collection",
1029
+ period: "period",
1030
+ filtered: "filtered"
1031
+ };
1032
+ var ActivityEventType = {
1033
+ workflow_started: "workflow_started",
1034
+ assignment_task_transition: "assignment_task_transition",
1035
+ journey_status_changed: "journey_status_changed",
1036
+ journey_step_status_changed: "journey_step_status_changed",
1037
+ journey_goal_status_changed: "journey_goal_status_changed",
1038
+ chat_started: "chat_started",
1039
+ message: "message",
1040
+ call: "call",
1041
+ form_field_changed: "form_field_changed",
1042
+ config_changed: "config_changed"
1043
+ };
1044
+ var ActivityEventTypePreset = {
1045
+ communications: "communications",
1046
+ formUpdates: "formUpdates",
1047
+ workflowTask: "workflowTask",
1048
+ journey: "journey",
1049
+ configuration: "configuration"
1050
+ };
1051
+ var ActivityGoalImpact = {
1052
+ neutral: "neutral",
1053
+ success: "success",
1054
+ attention: "attention",
1055
+ failure: "failure"
1056
+ };
1057
+ var ActivityTimelineProjection = {
1058
+ timeline: "timeline"
1059
+ };
1060
+ var FormValueDisposition = {
1061
+ shown: "shown",
1062
+ omitted_long: "omitted_long",
1063
+ omitted_structured: "omitted_structured",
1064
+ omitted_burst: "omitted_burst"
1065
+ };
1066
+
901
1067
  // src/types/experiment-types.ts
902
1068
  function parseExperimentStatCount(value) {
903
1069
  return typeof value === "number" ? value : null;
@@ -1152,6 +1318,9 @@ var PhiPostureReasonCode = {
1152
1318
  non_phi_policy_aligned: "non_phi_policy_aligned",
1153
1319
  phi_expected_workspace_prohibited: "phi_expected_workspace_prohibited",
1154
1320
  phi_authorization_not_evaluated: "phi_authorization_not_evaluated",
1321
+ phi_coverage_satisfied: "phi_coverage_satisfied",
1322
+ phi_coverage_missing: "phi_coverage_missing",
1323
+ phi_coverage_expired: "phi_coverage_expired",
1155
1324
  non_phi_org_workspace_permitted: "non_phi_org_workspace_permitted",
1156
1325
  phi_permitted_org_not_expected: "phi_permitted_org_not_expected",
1157
1326
  organization_review_expired: "organization_review_expired",
@@ -1352,6 +1521,36 @@ function isPositiveRating(rating) {
1352
1521
  return rating != null && rating >= POSITIVE_RATING_THRESHOLD;
1353
1522
  }
1354
1523
 
1524
+ // src/types/generated/metric.ts
1525
+ var MetricChatType = {
1526
+ assignment: "assignment",
1527
+ dm: "dm",
1528
+ contributor: "contributor"
1529
+ };
1530
+ var MetricDenominator = {
1531
+ observations: "observations",
1532
+ unique_members: "unique_members"
1533
+ };
1534
+ var MetricKind = {
1535
+ observation: "observation",
1536
+ gauge: "gauge"
1537
+ };
1538
+ var MetricSource = {
1539
+ chat: "chat",
1540
+ member_filter: "member_filter"
1541
+ };
1542
+ var MetricType = {
1543
+ expression: "expression",
1544
+ rubric: "rubric",
1545
+ filter_count: "filter_count"
1546
+ };
1547
+ var MetricUnit = {
1548
+ rate: "rate",
1549
+ score: "score",
1550
+ count: "count",
1551
+ custom: "custom"
1552
+ };
1553
+
1355
1554
  // src/types/generated/site.ts
1356
1555
  var MenuItemResponseItemType = {
1357
1556
  page: "page",
@@ -1369,7 +1568,9 @@ var AbilityConfigIssueCode = {
1369
1568
  invalid_state: "invalid_state",
1370
1569
  feature_disabled: "feature_disabled",
1371
1570
  missing_connection: "missing_connection",
1372
- external_drift: "external_drift"
1571
+ external_drift: "external_drift",
1572
+ missing_task_instructions: "missing_task_instructions",
1573
+ no_qualification_scenarios: "no_qualification_scenarios"
1373
1574
  };
1374
1575
  var AbilityConfigIssueSeverity = {
1375
1576
  warning: "warning",
@@ -1382,6 +1583,12 @@ var WorkflowAccessWarningResourceType = {
1382
1583
  calendar: "calendar"
1383
1584
  };
1384
1585
 
1586
+ // src/types/generated/workflow.ts
1587
+ var WorkflowRoutingMode = {
1588
+ open_world: "open_world",
1589
+ strict: "strict"
1590
+ };
1591
+
1385
1592
  // src/types/generated/pilot_program.ts
1386
1593
  var PilotRelationshipType = {
1387
1594
  direct_pilot: "direct_pilot",
@@ -1726,7 +1933,10 @@ var SCOPES = {
1726
1933
  "workflows:read": {
1727
1934
  name: "workflows:read",
1728
1935
  category: "workflows" /* WORKFLOWS */,
1729
- description: "View workflow definitions"
1936
+ // Object access is separate: listing and opening a specific workflow
1937
+ // additionally require ownership, workflows:admin, a workflow role
1938
+ // association, or an access grant (WorkflowAction.USE).
1939
+ description: "Access the Workflows area and view workflows shared with you"
1730
1940
  },
1731
1941
  "workflows:write": {
1732
1942
  name: "workflows:write",
@@ -2267,6 +2477,13 @@ var ApiError = class extends Error {
2267
2477
  * Populated when the backend returns a WorkflowValidationErrorResponse.
2268
2478
  */
2269
2479
  validationErrors;
2480
+ /**
2481
+ * The raw structured `detail` object when the backend returned one (a body
2482
+ * with `error: true` or a `code`). Declared here rather than bolted on with
2483
+ * `as any` at the throw site so consumers can narrow it with a type guard —
2484
+ * see `isMemberContactConflict` in `types/member-types`.
2485
+ */
2486
+ errorData;
2270
2487
  constructor(message, statusCode, errors, validationErrors) {
2271
2488
  super(message);
2272
2489
  this.statusCode = statusCode;
@@ -4104,11 +4321,9 @@ var ChatsApi = class extends BaseApiClient {
4104
4321
  }
4105
4322
  /** Get loaded and revealed skills for a chat. */
4106
4323
  async getChatSkills(wid, chatId) {
4107
- return this.fetch(
4108
- `w/${wid}/chats/${chatId}/skills`
4109
- );
4324
+ return this.fetch(`w/${wid}/chats/${chatId}/skills`);
4110
4325
  }
4111
- /** List built-in skills that can be selected before starting a Manager Chat. */
4326
+ /** List built-in skills selectable before a Manager Chat (and on Routine manager tasks). */
4112
4327
  async getManagerSkills(wid) {
4113
4328
  return this.fetch(`w/${wid}/chats/manager/skills`);
4114
4329
  }
@@ -4621,6 +4836,32 @@ var DashboardsApi = class extends BaseApiClient {
4621
4836
  `w/${wid}/dashboards/stats/workflow-assignments`
4622
4837
  );
4623
4838
  }
4839
+ /**
4840
+ * Current saved-configuration health across every family (Workflow
4841
+ * configuration, Journey authoring, Workflow access, Routine → Workflow
4842
+ * access, and the workspace lint).
4843
+ *
4844
+ * Requires ALL of `workflows:read`, `journeys:read`, `automations:read`,
4845
+ * `datatypes:read`, `members:read`, and `member_roles:read` — a pruned
4846
+ * subset would render as "all configuration is healthy".
4847
+ *
4848
+ * `page`/`pageSize` bound the response only; every family is evaluated in
4849
+ * full before the issue list is sliced. `check`/`severity` narrow the issue
4850
+ * list server-side, before pagination — filtering a single page in the
4851
+ * client cannot find a match that lives on a later one. `summary` and
4852
+ * `checks` are always workspace-global.
4853
+ */
4854
+ async getConfigurationHealth(wid, options) {
4855
+ const params = new URLSearchParams();
4856
+ if (options?.page !== void 0) params.append("page", options.page.toString());
4857
+ if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
4858
+ if (options?.check !== void 0) params.append("check", options.check);
4859
+ if (options?.severity !== void 0) params.append("severity", options.severity);
4860
+ const query = params.toString();
4861
+ return this.fetch(
4862
+ `w/${wid}/configuration-health${query ? `?${query}` : ""}`
4863
+ );
4864
+ }
4624
4865
  };
4625
4866
 
4626
4867
  // src/api/data-types.ts
@@ -4693,6 +4934,7 @@ var DataTypesApi = class extends BaseApiClient {
4693
4934
  const params = new URLSearchParams();
4694
4935
  if (options?.memberId !== void 0) params.append("member_id", options.memberId.toString());
4695
4936
  if (options?.memberIds?.length) params.append("member_ids", options.memberIds.join(","));
4937
+ if (options?.recordId !== void 0) params.append("record_id", options.recordId.toString());
4696
4938
  if (options?.search) params.append("search", options.search);
4697
4939
  if (options?.searchField) params.append("search_field", options.searchField);
4698
4940
  if (options?.dataRecordFilterId != null) {
@@ -4713,9 +4955,7 @@ var DataTypesApi = class extends BaseApiClient {
4713
4955
  params.append("dataTypeId", options.dataTypeId.toString());
4714
4956
  }
4715
4957
  const qs = params.toString();
4716
- return this.fetch(
4717
- `w/${wid}/data-record-filters${qs ? `?${qs}` : ""}`
4718
- );
4958
+ return this.fetch(`w/${wid}/data-record-filters${qs ? `?${qs}` : ""}`);
4719
4959
  }
4720
4960
  /** Get a single data-record filter by ID. */
4721
4961
  async getDataRecordFilter(wid, filterId) {
@@ -4743,9 +4983,7 @@ var DataTypesApi = class extends BaseApiClient {
4743
4983
  }
4744
4984
  /** Get the count of records matching a saved filter. */
4745
4985
  async getDataRecordFilterCount(wid, filterId) {
4746
- return this.fetch(
4747
- `w/${wid}/data-record-filters/${filterId}/count`
4748
- );
4986
+ return this.fetch(`w/${wid}/data-record-filters/${filterId}/count`);
4749
4987
  }
4750
4988
  /** Get a single data record by ID. */
4751
4989
  async getDataRecord(wid, recordId) {
@@ -5290,6 +5528,27 @@ var EventsApi = class extends BaseApiClient {
5290
5528
  method: "POST"
5291
5529
  });
5292
5530
  }
5531
+ /**
5532
+ * Configuration change history for one routine, newest first.
5533
+ *
5534
+ * Answers "who turned this off, when, and why" — including the
5535
+ * platform-initiated pauses (finite-repeat exhaustion, outbound-safety
5536
+ * runaway auto-pause) that no other surface exposes.
5537
+ *
5538
+ * `transitionsOnly` filters to rows that record a real trigger-gate
5539
+ * transition. Prefer it for a toggle-focused view: a full-form save always
5540
+ * re-sends every field, so unfiltered history includes saves that changed
5541
+ * nothing.
5542
+ */
5543
+ async getRoutineConfigEvents(wid, id, options = {}) {
5544
+ const params = new URLSearchParams();
5545
+ if (options.limit) params.append("limit", options.limit.toString());
5546
+ if (options.beforeId) params.append("before_id", options.beforeId.toString());
5547
+ if (options.transitionsOnly) params.append("transitions_only", "true");
5548
+ return this.fetch(
5549
+ `w/${wid}/routines/${id}/history${params.toString() ? `?${params.toString()}` : ""}`
5550
+ );
5551
+ }
5293
5552
  /** List routine run history with optional filtering by routine and status. */
5294
5553
  async getRoutineRuns(wid, options = {}) {
5295
5554
  const params = new URLSearchParams();
@@ -6808,12 +7067,34 @@ var MembersApi = class extends BaseApiClient {
6808
7067
  body: JSON.stringify(memberRole)
6809
7068
  });
6810
7069
  }
6811
- /** Delete a member role. */
7070
+ /** Delete a member role. Default roles (``systemKey`` set) return 403. */
6812
7071
  async deleteMemberRole(wid, id) {
6813
7072
  return this.fetch(`w/${wid}/member-roles/${id}`, {
6814
7073
  method: "DELETE"
6815
7074
  });
6816
7075
  }
7076
+ /**
7077
+ * Describe legacy duplicate default roles in this workspace. Read-only.
7078
+ *
7079
+ * Workspaces seeded by older versions of the product can carry the same
7080
+ * default role under several spellings ("manager" next to "Manager"). This
7081
+ * reports which ones should be merged and exactly how many members and
7082
+ * references each merge would move.
7083
+ */
7084
+ async getMemberRoleCleanupPlan(wid) {
7085
+ return this.fetch(`w/${wid}/member-roles/cleanup-plan`);
7086
+ }
7087
+ /**
7088
+ * Move every member and reference from one role to another, then delete the
7089
+ * source role. Requires `member_roles:admin`. The source cannot be a default
7090
+ * role.
7091
+ */
7092
+ async mergeMemberRoles(wid, request) {
7093
+ return this.fetch(`w/${wid}/member-roles/cleanup/merge`, {
7094
+ method: "POST",
7095
+ body: JSON.stringify(request)
7096
+ });
7097
+ }
6817
7098
  // Import/Export Members API
6818
7099
  /**
6819
7100
  * Read-only preview classifying each CSV row before any write (GRA-5545).
@@ -7116,42 +7397,13 @@ var MembersApi = class extends BaseApiClient {
7116
7397
  }
7117
7398
  };
7118
7399
 
7119
- // src/api/milestones.ts
7120
- var MilestonesApi = class extends BaseApiClient {
7121
- /** List milestones in a workspace with optional pagination and sorting. */
7122
- async getMilestones(wid, options = {}) {
7123
- const params = new URLSearchParams();
7124
- if (options.page) params.append("page", options.page.toString());
7125
- if (options.pageSize) params.append("pageSize", options.pageSize.toString());
7126
- if (options.sortBy) params.append("sortBy", options.sortBy);
7127
- if (options.sortOrder) params.append("sortOrder", options.sortOrder);
7128
- if (options.search) params.append("search", options.search);
7129
- return this.fetch(
7130
- `w/${wid}/milestones${params.toString() ? `?${params.toString()}` : ""}`
7131
- );
7132
- }
7133
- /** Get a single milestone by ID. */
7134
- async getMilestone(wid, id) {
7135
- return this.fetch(`w/${wid}/milestones/${id}`);
7136
- }
7137
- /** Create a new milestone in a workspace. */
7138
- async createMilestone(wid, milestone) {
7139
- return this.fetch(`w/${wid}/milestones`, {
7400
+ // src/api/activity-timeline.ts
7401
+ var ActivityTimelineApi = class extends BaseApiClient {
7402
+ /** One page of activity. Omit `cursor` for a fresh snapshot. */
7403
+ async queryActivityTimeline(wid, request = {}) {
7404
+ return this.fetch(`w/${wid}/activity-timeline/query`, {
7140
7405
  method: "POST",
7141
- body: JSON.stringify(milestone)
7142
- });
7143
- }
7144
- /** Update an existing milestone with partial data. */
7145
- async updateMilestone(wid, id, milestone) {
7146
- return this.fetch(`w/${wid}/milestones/${id}`, {
7147
- method: "PUT",
7148
- body: JSON.stringify(milestone)
7149
- });
7150
- }
7151
- /** Delete a milestone by ID. */
7152
- async deleteMilestone(wid, id) {
7153
- return this.fetch(`w/${wid}/milestones/${id}`, {
7154
- method: "DELETE"
7406
+ body: JSON.stringify(request)
7155
7407
  });
7156
7408
  }
7157
7409
  };
@@ -7341,6 +7593,23 @@ var MondayIntegrationApi = class extends BaseApiClient {
7341
7593
  }
7342
7594
  };
7343
7595
 
7596
+ // src/api/intervention-requests.ts
7597
+ var InterventionRequestsApi = class extends BaseApiClient {
7598
+ /** List intervention requests in a workspace, newest first. */
7599
+ async getInterventionRequests(wid, params = {}) {
7600
+ const query = new URLSearchParams();
7601
+ if (params.kind) query.set("kind", params.kind);
7602
+ if (params.openOnly) query.set("openOnly", "true");
7603
+ if (params.chatId !== void 0) query.set("chatId", String(params.chatId));
7604
+ if (params.unroutedOnly) query.set("unroutedOnly", "true");
7605
+ if (params.limit !== void 0) query.set("limit", String(params.limit));
7606
+ const qs = query.toString();
7607
+ return this.fetch(
7608
+ `w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
7609
+ );
7610
+ }
7611
+ };
7612
+
7344
7613
  // src/api/notification-rules.ts
7345
7614
  var NotificationRulesApi = class extends BaseApiClient {
7346
7615
  /** List all notification rules in a workspace. */
@@ -7464,6 +7733,41 @@ var OrgApi = class extends BaseApiClient {
7464
7733
  async getCurrentOrgMember(orgIdOrUuid) {
7465
7734
  return this.fetch(`o/${orgIdOrUuid}/me`);
7466
7735
  }
7736
+ /**
7737
+ * Update the settings an org admin owns: name, slug and contact details.
7738
+ *
7739
+ * Deliberately NOT the admin organization update — `primary` and
7740
+ * `enforceCreditLimit` are superuser-only and are not fields on this
7741
+ * endpoint's request model at all.
7742
+ */
7743
+ async updateOrganizationSettings(orgIdOrUuid, data) {
7744
+ return this.fetch(`o/${orgIdOrUuid}`, {
7745
+ method: "PATCH",
7746
+ body: JSON.stringify(data)
7747
+ });
7748
+ }
7749
+ /**
7750
+ * Read this organization's SSO configuration.
7751
+ *
7752
+ * Org-scoped (`org:admin`), unlike the SSO fields on the superuser admin
7753
+ * organization update — an org admin owns their own identity provider.
7754
+ */
7755
+ async getOrgSsoConfig(orgIdOrUuid) {
7756
+ return this.fetch(`o/${orgIdOrUuid}/sso`);
7757
+ }
7758
+ /** Configure this organization's SSO. Requires `org:admin`. */
7759
+ async updateOrgSsoConfig(orgIdOrUuid, data) {
7760
+ return this.fetch(`o/${orgIdOrUuid}/sso`, {
7761
+ method: "PUT",
7762
+ body: JSON.stringify(data)
7763
+ });
7764
+ }
7765
+ /** Remove this organization's SSO configuration. Requires `org:admin`. */
7766
+ async deleteOrgSsoConfig(orgIdOrUuid) {
7767
+ return this.fetch(`o/${orgIdOrUuid}/sso`, {
7768
+ method: "DELETE"
7769
+ });
7770
+ }
7467
7771
  /**
7468
7772
  * Get the billing customer UUID for an organization.
7469
7773
  */
@@ -7584,6 +7888,22 @@ var OrgApi = class extends BaseApiClient {
7584
7888
  async getOrganizationWorkspace(orgIdOrUuid, workspaceUuid) {
7585
7889
  return this.fetch(`o/${orgIdOrUuid}/workspaces/${workspaceUuid}`);
7586
7890
  }
7891
+ /**
7892
+ * Workspace cards for the organization page: identity plus the GLB-side
7893
+ * counts. Any org member may call it — members get the workspaces they
7894
+ * belong to, org:read holders get all of them.
7895
+ */
7896
+ async getOrganizationWorkspaceSummaries(orgIdOrUuid) {
7897
+ return this.fetch(`o/${orgIdOrUuid}/workspaces/summary`);
7898
+ }
7899
+ /**
7900
+ * Workspace-schema aggregates for one card, plus the caller's own member
7901
+ * role. Separate from the list because it opens a session against the
7902
+ * workspace's own schema — each card fetches its own.
7903
+ */
7904
+ async getOrganizationWorkspaceStats(orgIdOrUuid, workspaceUuid) {
7905
+ return this.fetch(`o/${orgIdOrUuid}/workspaces/${workspaceUuid}/stats`);
7906
+ }
7587
7907
  /**
7588
7908
  * Create a workspace in an organization.
7589
7909
  */
@@ -8225,6 +8545,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
8225
8545
  if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
8226
8546
  if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
8227
8547
  if (filters?.dateTo) params.set("dateTo", filters.dateTo);
8548
+ if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
8228
8549
  return this.fetch(`w/${wid}/calls?${params}`);
8229
8550
  }
8230
8551
  /** List paginated voicemails for a phone number. */
@@ -8514,6 +8835,67 @@ var PersonasApi = class extends BaseApiClient {
8514
8835
  }
8515
8836
  };
8516
8837
 
8838
+ // src/api/metrics.ts
8839
+ var MetricsApi = class extends BaseApiClient {
8840
+ /** List metric definitions in the workspace, paginated. */
8841
+ async listMetrics(wid, params) {
8842
+ const q = new URLSearchParams();
8843
+ if (params?.page !== void 0) q.set("page", String(params.page));
8844
+ if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
8845
+ if (params?.includeArchived !== void 0)
8846
+ q.set("includeArchived", String(params.includeArchived));
8847
+ if (params?.source) q.set("source", params.source);
8848
+ const qs = q.toString() ? `?${q.toString()}` : "";
8849
+ return this.fetch(`w/${wid}/metrics${qs}`);
8850
+ }
8851
+ async getMetric(wid, id) {
8852
+ return this.fetch(`w/${wid}/metrics/${id}`);
8853
+ }
8854
+ async createMetric(wid, data) {
8855
+ return this.fetch(`w/${wid}/metrics`, {
8856
+ method: "POST",
8857
+ body: JSON.stringify(data)
8858
+ });
8859
+ }
8860
+ async updateMetric(wid, id, data) {
8861
+ return this.fetch(`w/${wid}/metrics/${id}`, {
8862
+ method: "PUT",
8863
+ body: JSON.stringify(data)
8864
+ });
8865
+ }
8866
+ /** Soft-archive a metric (observations retained). */
8867
+ async deleteMetric(wid, id) {
8868
+ return this.fetch(`w/${wid}/metrics/${id}`, { method: "DELETE" });
8869
+ }
8870
+ async listMetricObservations(wid, metricId, params) {
8871
+ const q = new URLSearchParams();
8872
+ q.set("start", params.start);
8873
+ q.set("end", params.end);
8874
+ if (params.page !== void 0) q.set("page", String(params.page));
8875
+ if (params.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
8876
+ return this.fetch(
8877
+ `w/${wid}/metrics/${metricId}/observations?${q.toString()}`
8878
+ );
8879
+ }
8880
+ async getMetricSeries(wid, metricId, params) {
8881
+ const q = new URLSearchParams();
8882
+ q.set("start", params.start);
8883
+ q.set("end", params.end);
8884
+ if (params.bucket) q.set("bucket", params.bucket);
8885
+ if (params.aggregation) q.set("aggregation", params.aggregation);
8886
+ return this.fetch(
8887
+ `w/${wid}/metrics/${metricId}/series?${q.toString()}`
8888
+ );
8889
+ }
8890
+ /** On-demand compute of enabled chat-source metrics for one chat. */
8891
+ async computeChatMetrics(wid, data) {
8892
+ return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
8893
+ method: "POST",
8894
+ body: JSON.stringify(data)
8895
+ });
8896
+ }
8897
+ };
8898
+
8517
8899
  // src/api/queries.ts
8518
8900
  var QueriesApi = class extends BaseApiClient {
8519
8901
  /** Queryable namespace: native fields, operators per type, DataType record fields. */
@@ -10147,6 +10529,8 @@ var JourneysApi = class extends BaseApiClient {
10147
10529
  qs.set("currentTaskId", String(params.currentTaskId));
10148
10530
  if (params?.runtimeFailureEdgeId !== void 0)
10149
10531
  qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
10532
+ if (params?.memberJourneyId !== void 0)
10533
+ qs.set("memberJourneyId", String(params.memberJourneyId));
10150
10534
  const query = qs.toString();
10151
10535
  return this.fetch(
10152
10536
  `w/${wid}/journeys/${journeyId}/members${query ? `?${query}` : ""}`
@@ -10183,6 +10567,36 @@ var JourneysApi = class extends BaseApiClient {
10183
10567
  async getMemberJourneys(wid, memberId) {
10184
10568
  return this.fetch(`w/${wid}/journeys/by-member/${memberId}`);
10185
10569
  }
10570
+ /**
10571
+ * Status history for one enrollment — the per-member journey timeline.
10572
+ *
10573
+ * This is where a step that completed having emitted nothing shows up as
10574
+ * `zeroEmission: true` with its reason, instead of being indistinguishable
10575
+ * from a step that sent (GRA-7341). Newest first.
10576
+ *
10577
+ * PHI-safe: identifiers, closed status codes, operator-authored step names,
10578
+ * counts, and timestamps. `entry.reason` is populated only for rows the
10579
+ * server allowlists; every other row reports `reasonRedacted: true`.
10580
+ *
10581
+ * `zeroEmissionOnly` narrows the page to the dropped-send rows. Use it when
10582
+ * that is all you need: without it a busy enrollment can push every
10583
+ * zero-emission row off the first page, and a caller that renders only what
10584
+ * it loaded would report "nothing was dropped" — the exact failure this
10585
+ * endpoint exists to eliminate. `zeroEmissionCount` is unaffected by the
10586
+ * filter and always counts the whole enrollment.
10587
+ */
10588
+ async getEnrollmentStatusLog(wid, journeyId, memberJourneyId, params = {}) {
10589
+ const qs = new URLSearchParams();
10590
+ if (params.page !== void 0) qs.set("page", String(params.page));
10591
+ if (params.pageSize !== void 0) qs.set("pageSize", String(params.pageSize));
10592
+ if (params.zeroEmissionOnly !== void 0) {
10593
+ qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
10594
+ }
10595
+ const query = qs.toString();
10596
+ return this.fetch(
10597
+ `w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query ? `?${query}` : "")
10598
+ );
10599
+ }
10186
10600
  /** List members currently or historically associated with one journey step. */
10187
10601
  async getStepMembers(wid, journeyId, stepUuid, params = {}) {
10188
10602
  const qs = new URLSearchParams();
@@ -11153,11 +11567,12 @@ function createApiModules(apiKey, baseUrl, customFetch) {
11153
11567
  connectionSync: new ConnectionSyncApi(apiKey, baseUrl, customFetch),
11154
11568
  mcpServers: new McpServersApi(apiKey, baseUrl, customFetch),
11155
11569
  members: new MembersApi(apiKey, baseUrl, customFetch),
11156
- milestones: new MilestonesApi(apiKey, baseUrl, customFetch),
11570
+ activityTimeline: new ActivityTimelineApi(apiKey, baseUrl, customFetch),
11157
11571
  motd: new MotdApi(apiKey, baseUrl, customFetch),
11158
11572
  trackedLinks: new TrackedLinksApi(apiKey, baseUrl, customFetch),
11159
11573
  confluence: new ConfluenceApi(apiKey, baseUrl, customFetch),
11160
11574
  mondayIntegration: new MondayIntegrationApi(apiKey, baseUrl, customFetch),
11575
+ interventionRequests: new InterventionRequestsApi(apiKey, baseUrl, customFetch),
11161
11576
  notificationRules: new NotificationRulesApi(apiKey, baseUrl, customFetch),
11162
11577
  oauth: new OAuthApi(apiKey, baseUrl, customFetch),
11163
11578
  operatorGroups: new OperatorApi(apiKey, baseUrl, customFetch),
@@ -11167,6 +11582,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
11167
11582
  pronunciations: new PronunciationsApi(apiKey, baseUrl, customFetch),
11168
11583
  qualifications: new QualificationsApi(apiKey, baseUrl, customFetch),
11169
11584
  personas: new PersonasApi(apiKey, baseUrl, customFetch),
11585
+ metrics: new MetricsApi(apiKey, baseUrl, customFetch),
11170
11586
  queries: new QueriesApi(apiKey, baseUrl, customFetch),
11171
11587
  reports: new ReportsApi(apiKey, baseUrl, customFetch),
11172
11588
  salesforce: new SalesforceApi(apiKey, baseUrl, customFetch),
@@ -11280,7 +11696,6 @@ var WORKSPACE_METHOD_NAMES = [
11280
11696
  "createMemberMemory",
11281
11697
  "createMemberRole",
11282
11698
  "createMenuItem",
11283
- "createMilestone",
11284
11699
  "createNotificationRule",
11285
11700
  "createOperatorGroup",
11286
11701
  "createPage",
@@ -11347,7 +11762,6 @@ var WORKSPACE_METHOD_NAMES = [
11347
11762
  "deleteMemberMemory",
11348
11763
  "deleteMemberRole",
11349
11764
  "deleteMenuItem",
11350
- "deleteMilestone",
11351
11765
  "deleteMondayConnection",
11352
11766
  "deleteNotificationRule",
11353
11767
  "deleteOperatorGroup",
@@ -11498,6 +11912,7 @@ var WORKSPACE_METHOD_NAMES = [
11498
11912
  "getChatsNeedsResponse",
11499
11913
  "getChildThreadMessages",
11500
11914
  "getClientWorkspace",
11915
+ "getConfigurationHealth",
11501
11916
  "getConfluenceStatus",
11502
11917
  "getConnectionSyncCapabilities",
11503
11918
  "getConnectionSyncCheckpoint",
@@ -11530,6 +11945,7 @@ var WORKSPACE_METHOD_NAMES = [
11530
11945
  "getDocumoFaxSetup",
11531
11946
  "listDocumoFaxes",
11532
11947
  "getDocumoFaxStatus",
11948
+ "getEnrollmentStatusLog",
11533
11949
  "getEventRule",
11534
11950
  "getEventRules",
11535
11951
  "getExperiment",
@@ -11557,6 +11973,7 @@ var WORKSPACE_METHOD_NAMES = [
11557
11973
  "listChatRecordings",
11558
11974
  "previewQuery",
11559
11975
  "publishSiteSource",
11976
+ "queryActivityTimeline",
11560
11977
  "registerDiscordSlashCommands",
11561
11978
  "reopenWorkspaceSupportRequest",
11562
11979
  "resetSiteSource",
@@ -11624,6 +12041,7 @@ var WORKSPACE_METHOD_NAMES = [
11624
12041
  "getMemberMemory",
11625
12042
  "getMemberRecordCounts",
11626
12043
  "getMemberRole",
12044
+ "getMemberRoleCleanupPlan",
11627
12045
  "getMemberRoleByUuid",
11628
12046
  "getMemberRoles",
11629
12047
  "getMemberSyncLinks",
@@ -11632,8 +12050,6 @@ var WORKSPACE_METHOD_NAMES = [
11632
12050
  "getMembersMessageActivity",
11633
12051
  "getMenuItems",
11634
12052
  "getMessageTiming",
11635
- "getMilestone",
11636
- "getMilestones",
11637
12053
  "getMondayConnectionBoardColumns",
11638
12054
  "getMondayConnectionBoardGroups",
11639
12055
  "getMondayConnectionBoards",
@@ -11675,6 +12091,7 @@ var WORKSPACE_METHOD_NAMES = [
11675
12091
  "getRecordingInfo",
11676
12092
  "getResellerWorkspaces",
11677
12093
  "getRoutine",
12094
+ "getRoutineConfigEvents",
11678
12095
  "getRoutineRuns",
11679
12096
  "getRoutines",
11680
12097
  "getRuleExecutions",
@@ -11796,6 +12213,14 @@ var WORKSPACE_METHOD_NAMES = [
11796
12213
  "listHealthiePatients",
11797
12214
  "listHealthieProviders",
11798
12215
  "listPersonas",
12216
+ "listMetrics",
12217
+ "getMetric",
12218
+ "createMetric",
12219
+ "updateMetric",
12220
+ "deleteMetric",
12221
+ "listMetricObservations",
12222
+ "getMetricSeries",
12223
+ "computeChatMetrics",
11799
12224
  "listPushSubscriptions",
11800
12225
  "listSalesforceObjects",
11801
12226
  "listScenarios",
@@ -11806,6 +12231,7 @@ var WORKSPACE_METHOD_NAMES = [
11806
12231
  "markEmailAsRead",
11807
12232
  "markEmailAsUnread",
11808
12233
  "markNotificationAsRead",
12234
+ "mergeMemberRoles",
11809
12235
  "previewImportMembers",
11810
12236
  "previewImportWorkspace",
11811
12237
  "previewRoutineWorkflowAccess",
@@ -11934,7 +12360,6 @@ var WORKSPACE_METHOD_NAMES = [
11934
12360
  "updateMemberLabel",
11935
12361
  "updateMemberRole",
11936
12362
  "updateMenuItem",
11937
- "updateMilestone",
11938
12363
  "updateMondaySyncConfig",
11939
12364
  "updateNotificationRule",
11940
12365
  "updateOperatorGroup",
@@ -12119,6 +12544,12 @@ function bindDashboardsMethods(target, dashboards) {
12119
12544
  target.deleteDashboard = dashboards.deleteDashboard.bind(dashboards);
12120
12545
  target.getDashboardChannelStats = dashboards.getDashboardChannelStats.bind(dashboards);
12121
12546
  target.getDashboardWorkflowAssignmentStats = dashboards.getDashboardWorkflowAssignmentStats.bind(dashboards);
12547
+ target.getConfigurationHealth = dashboards.getConfigurationHealth.bind(dashboards);
12548
+ }
12549
+
12550
+ // src/client/bindings/activity-timeline.ts
12551
+ function bindActivityTimelineMethods(target, activityTimeline) {
12552
+ target.queryActivityTimeline = activityTimeline.queryActivityTimeline.bind(activityTimeline);
12122
12553
  }
12123
12554
 
12124
12555
  // src/client/bindings/motd.ts
@@ -12539,7 +12970,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
12539
12970
  }
12540
12971
 
12541
12972
  // src/client/bindings/calendars.ts
12542
- function bindCalendarsMethods(target, calendars, milestones) {
12973
+ function bindCalendarsMethods(target, calendars) {
12543
12974
  target.getCalendars = calendars.getCalendars.bind(calendars);
12544
12975
  target.getCalendar = calendars.getCalendar.bind(calendars);
12545
12976
  target.createCalendar = calendars.createCalendar.bind(calendars);
@@ -12571,11 +13002,6 @@ function bindCalendarsMethods(target, calendars, milestones) {
12571
13002
  target.linkCalendarToGoogle = calendars.linkCalendarToGoogle.bind(calendars);
12572
13003
  target.unlinkCalendarFromGoogle = calendars.unlinkCalendarFromGoogle.bind(calendars);
12573
13004
  target.syncCalendarWithGoogle = calendars.syncCalendarWithGoogle.bind(calendars);
12574
- target.getMilestones = milestones.getMilestones.bind(milestones);
12575
- target.getMilestone = milestones.getMilestone.bind(milestones);
12576
- target.createMilestone = milestones.createMilestone.bind(milestones);
12577
- target.updateMilestone = milestones.updateMilestone.bind(milestones);
12578
- target.deleteMilestone = milestones.deleteMilestone.bind(milestones);
12579
13005
  }
12580
13006
 
12581
13007
  // src/client/bindings/communications.ts
@@ -12932,6 +13358,11 @@ function bindOrgMethods(target, org) {
12932
13358
  target.updateBusinessProfile = org.updateBusinessProfile.bind(org);
12933
13359
  target.submitBusinessProfile = org.submitBusinessProfile.bind(org);
12934
13360
  target.cancelBusinessProfile = org.cancelBusinessProfile.bind(org);
13361
+ target.listLegalEntities = org.listLegalEntities.bind(org);
13362
+ target.getLegalEntity = org.getLegalEntity.bind(org);
13363
+ target.createLegalEntity = org.createLegalEntity.bind(org);
13364
+ target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
13365
+ target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
12935
13366
  target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
12936
13367
  target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
12937
13368
  }
@@ -12978,6 +13409,7 @@ function bindJourneysMethods(target, journeys) {
12978
13409
  target.reenrollMember = journeys.reenrollMember.bind(journeys);
12979
13410
  target.deleteEnrollment = journeys.deleteEnrollment.bind(journeys);
12980
13411
  target.getMemberJourneys = journeys.getMemberJourneys.bind(journeys);
13412
+ target.getEnrollmentStatusLog = journeys.getEnrollmentStatusLog.bind(journeys);
12981
13413
  target.getStepMembers = journeys.getStepMembers.bind(journeys);
12982
13414
  target.getStepMemberCounts = journeys.getStepMemberCounts.bind(journeys);
12983
13415
  target.advanceStep = journeys.advanceStep.bind(journeys);
@@ -13015,6 +13447,18 @@ function bindPersonasMethods(target, personas) {
13015
13447
  target.deletePersona = personas.deletePersona.bind(personas);
13016
13448
  }
13017
13449
 
13450
+ // src/client/bindings/metrics.ts
13451
+ function bindMetricsMethods(target, metrics) {
13452
+ target.listMetrics = metrics.listMetrics.bind(metrics);
13453
+ target.getMetric = metrics.getMetric.bind(metrics);
13454
+ target.createMetric = metrics.createMetric.bind(metrics);
13455
+ target.updateMetric = metrics.updateMetric.bind(metrics);
13456
+ target.deleteMetric = metrics.deleteMetric.bind(metrics);
13457
+ target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
13458
+ target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
13459
+ target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
13460
+ }
13461
+
13018
13462
  // src/client/bindings/queries.ts
13019
13463
  function bindQueriesMethods(target, queries) {
13020
13464
  target.getQueryFields = queries.getQueryFields.bind(queries);
@@ -13223,6 +13667,8 @@ var GravityRailClient = class {
13223
13667
  createMemberRole;
13224
13668
  updateMemberRole;
13225
13669
  deleteMemberRole;
13670
+ getMemberRoleCleanupPlan;
13671
+ mergeMemberRoles;
13226
13672
  // Member Fields
13227
13673
  getMemberFields;
13228
13674
  getMemberFieldDefinitions;
@@ -13283,6 +13729,15 @@ var GravityRailClient = class {
13283
13729
  createPersona;
13284
13730
  updatePersona;
13285
13731
  deletePersona;
13732
+ // Metrics API (customer-defined outcome metrics)
13733
+ listMetrics;
13734
+ getMetric;
13735
+ createMetric;
13736
+ updateMetric;
13737
+ deleteMetric;
13738
+ listMetricObservations;
13739
+ getMetricSeries;
13740
+ computeChatMetrics;
13286
13741
  // Dashboards API
13287
13742
  getDashboards;
13288
13743
  getDashboard;
@@ -13291,6 +13746,9 @@ var GravityRailClient = class {
13291
13746
  deleteDashboard;
13292
13747
  getDashboardChannelStats;
13293
13748
  getDashboardWorkflowAssignmentStats;
13749
+ getConfigurationHealth;
13750
+ // Activity Timeline API
13751
+ queryActivityTimeline;
13294
13752
  // MOTD API
13295
13753
  getMotd;
13296
13754
  // Tracked Links analytics (#10934)
@@ -13326,6 +13784,7 @@ var GravityRailClient = class {
13326
13784
  reenrollMember;
13327
13785
  deleteEnrollment;
13328
13786
  getMemberJourneys;
13787
+ getEnrollmentStatusLog;
13329
13788
  getStepMembers;
13330
13789
  getStepMemberCounts;
13331
13790
  advanceStep;
@@ -13444,6 +13903,11 @@ var GravityRailClient = class {
13444
13903
  updateBusinessProfile;
13445
13904
  submitBusinessProfile;
13446
13905
  cancelBusinessProfile;
13906
+ listLegalEntities;
13907
+ getLegalEntity;
13908
+ createLegalEntity;
13909
+ getVoiceTrustProducts;
13910
+ syncVoiceTrustProducts;
13447
13911
  createOrganizationWorkspace;
13448
13912
  getOrgBillingCustomer;
13449
13913
  getVapidPublicKey;
@@ -13622,6 +14086,7 @@ var GravityRailClient = class {
13622
14086
  updateRoutine;
13623
14087
  deleteRoutine;
13624
14088
  runRoutine;
14089
+ getRoutineConfigEvents;
13625
14090
  getRoutineRuns;
13626
14091
  resetRoutineRuns;
13627
14092
  previewSchedule;
@@ -13705,11 +14170,6 @@ var GravityRailClient = class {
13705
14170
  linkCalendarToGoogle;
13706
14171
  unlinkCalendarFromGoogle;
13707
14172
  syncCalendarWithGoogle;
13708
- getMilestones;
13709
- getMilestone;
13710
- createMilestone;
13711
- updateMilestone;
13712
- deleteMilestone;
13713
14173
  // Communications API
13714
14174
  getPhoneNumbers;
13715
14175
  getAvailablePhoneNumbers;
@@ -14089,8 +14549,10 @@ var GravityRailClient = class {
14089
14549
  bindAgentsMethods(this, apis.agents);
14090
14550
  bindQualificationsMethods(this, apis.qualifications);
14091
14551
  bindPersonasMethods(this, apis.personas);
14552
+ bindMetricsMethods(this, apis.metrics);
14092
14553
  bindQueriesMethods(this, apis.queries);
14093
14554
  bindDashboardsMethods(this, apis.dashboards);
14555
+ bindActivityTimelineMethods(this, apis.activityTimeline);
14094
14556
  bindMotdMethods(this, apis.motd);
14095
14557
  bindTrackedLinksMethods(this, apis.trackedLinks);
14096
14558
  bindJourneysMethods(this, apis.journeys);
@@ -14105,7 +14567,7 @@ var GravityRailClient = class {
14105
14567
  bindFilesMethods(this, apis.files);
14106
14568
  bindEventsMethods(this, apis.events);
14107
14569
  bindWorkflowsMethods(this, apis.workflows, apis.workflowNotes, apis.voice, apis.supervisors);
14108
- bindCalendarsMethods(this, apis.calendars, apis.milestones);
14570
+ bindCalendarsMethods(this, apis.calendars);
14109
14571
  bindCommunicationsMethods(this, apis.phoneNumbers, apis.inboxes, apis.notificationRules);
14110
14572
  bindToolkitsMethods(
14111
14573
  this,
@@ -14262,6 +14724,18 @@ var GravityRailClient = class {
14262
14724
  AccessGrantTrigger,
14263
14725
  AccessGrantsApi,
14264
14726
  AccessLevel,
14727
+ ActivityActorKind,
14728
+ ActivityAggregationKind,
14729
+ ActivityCaptureState,
14730
+ ActivityConfigAction,
14731
+ ActivityConfigArea,
14732
+ ActivityCoverageLimitation,
14733
+ ActivityDirection,
14734
+ ActivityEmptyReason,
14735
+ ActivityEventType,
14736
+ ActivityEventTypePreset,
14737
+ ActivityGoalImpact,
14738
+ ActivityTimelineProjection,
14265
14739
  AgentTasksApi,
14266
14740
  AgentsApi,
14267
14741
  ApiError,
@@ -14280,6 +14754,7 @@ var GravityRailClient = class {
14280
14754
  BusinessType,
14281
14755
  CELApi,
14282
14756
  CHAT_TYPES,
14757
+ CONFIG_HEALTH_FACADE_CHECK_SLUGS,
14283
14758
  CalendarEventStatus,
14284
14759
  CalendarPermissionType,
14285
14760
  CalendarScheduleAvailabilityType,
@@ -14328,6 +14803,7 @@ var GravityRailClient = class {
14328
14803
  FhirConnectionsApi,
14329
14804
  FhirVendor,
14330
14805
  FilesApi,
14806
+ FormValueDisposition,
14331
14807
  GravityRailClient,
14332
14808
  HealthieApi,
14333
14809
  HubspotApi,
@@ -14348,7 +14824,13 @@ var GravityRailClient = class {
14348
14824
  MembersApi,
14349
14825
  MenuItemResponseItemType,
14350
14826
  MenuItemType,
14351
- MilestonesApi,
14827
+ MergeMemberRolesRequestAccessStrategy,
14828
+ MetricChatTypeEnum,
14829
+ MetricDenominatorEnum,
14830
+ MetricKindEnum,
14831
+ MetricSourceEnum,
14832
+ MetricTypeEnum,
14833
+ MetricUnitEnum,
14352
14834
  ModelProvider,
14353
14835
  ModelType,
14354
14836
  MondayIntegrationApi,
@@ -14407,7 +14889,8 @@ var GravityRailClient = class {
14407
14889
  SMS_DELIVERY_FAILURE_STATUSES,
14408
14890
  STT_MODEL_DEEPGRAM_FLUX,
14409
14891
  STT_MODEL_DEEPGRAM_FLUX_MULTI,
14410
- STT_MODEL_ELEVENLABS_SCRIBE,
14892
+ STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST,
14893
+ STT_MODEL_DEEPGRAM_FLUX_SELFHOST,
14411
14894
  SalesforceApi,
14412
14895
  Scope,
14413
14896
  ScopeCategory,
@@ -14437,13 +14920,17 @@ var GravityRailClient = class {
14437
14920
  WorkflowAccessWarningResourceType,
14438
14921
  WorkflowNotesApi,
14439
14922
  WorkflowResourceType,
14923
+ WorkflowRoutingMode,
14440
14924
  WorkflowsApi,
14441
14925
  WorkspaceFeature,
14442
14926
  WorkspaceInvitationsApi,
14443
14927
  WorkspaceProvisionStatus,
14444
14928
  WorkspacesApi,
14929
+ archivedMemberConflictId,
14445
14930
  areDependenciesSatisfied,
14931
+ asIdentifiedMemberContactConflict,
14446
14932
  bindAccessGrantsMethods,
14933
+ bindActivityTimelineMethods,
14447
14934
  bindAgentTasksMethods,
14448
14935
  bindAgentsMethods,
14449
14936
  bindAppsMethods,
@@ -14462,6 +14949,7 @@ var GravityRailClient = class {
14462
14949
  bindIntegrationsMethods,
14463
14950
  bindJourneysMethods,
14464
14951
  bindMembersMethods,
14952
+ bindMetricsMethods,
14465
14953
  bindMotdMethods,
14466
14954
  bindOperatorMethods,
14467
14955
  bindOrgMethods,
@@ -14502,9 +14990,13 @@ var GravityRailClient = class {
14502
14990
  getTTSProvider,
14503
14991
  getVoiceModelId,
14504
14992
  initializeFeatures,
14993
+ isAccountContactConflict,
14505
14994
  isAgentNoteOrigin,
14506
14995
  isChatType,
14996
+ isConfigHealthFacadeCheckSlug,
14507
14997
  isFeatureAvailable,
14998
+ isIdentifiedMemberContactConflict,
14999
+ isMemberContactConflict,
14508
15000
  isPositiveRating,
14509
15001
  isRegistryInitialized,
14510
15002
  isSMSDeliveryFailureStatus,