@gravity-rail/sdk 0.16.0 → 0.17.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-CEFOCGYO.js} +300 -64
  2. package/dist/chunk-CEFOCGYO.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-8xakCsVs.d.cts} +1030 -179
  6. package/dist/{client-BhO_UFFz.d.cts → client-ASnNEN1U.d.ts} +1030 -179
  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 +354 -61
  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 +73 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/internal.cjs +360 -63
  19. package/dist/internal.cjs.map +1 -1
  20. package/dist/internal.d.cts +33 -7
  21. package/dist/internal.d.ts +33 -7
  22. package/dist/internal.js +61 -4
  23. package/dist/internal.js.map +1 -1
  24. package/dist/{revision-state-Dx8gCQIj.d.cts → revision-state-BDsQo_xD.d.cts} +2 -2
  25. package/dist/{revision-state-Dma10N9s.d.ts → revision-state-Cz3mcUHc.d.ts} +2 -2
  26. package/dist/schemas.cjs +170 -216
  27. package/dist/schemas.cjs.map +1 -1
  28. package/dist/schemas.d.cts +2 -2
  29. package/dist/schemas.d.ts +2 -2
  30. package/dist/schemas.js +170 -209
  31. package/dist/schemas.js.map +1 -1
  32. package/dist/{tasks-vupYoJgG.d.cts → tasks-Z4GcIqgO.d.cts} +190 -73
  33. package/dist/{tasks-vupYoJgG.d.ts → tasks-Z4GcIqgO.d.ts} +190 -73
  34. package/package.json +2 -2
  35. package/dist/chunk-4B7T6MBH.js.map +0 -1
  36. package/dist/chunk-GP6ICMWF.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ApiError,
3
3
  BaseApiClient
4
- } from "./chunk-GP6ICMWF.js";
4
+ } from "./chunk-PJFEGUHM.js";
5
5
 
6
6
  // src/api/abilities.ts
7
7
  var AbilitiesApi = class extends BaseApiClient {
@@ -1409,7 +1409,7 @@ var ChatsApi = class extends BaseApiClient {
1409
1409
  `w/${wid}/chats/${chatId}/skills`
1410
1410
  );
1411
1411
  }
1412
- /** List built-in skills that can be selected before starting a Manager Chat. */
1412
+ /** List built-in skills selectable before a Manager Chat (and on Routine manager tasks). */
1413
1413
  async getManagerSkills(wid) {
1414
1414
  return this.fetch(`w/${wid}/chats/manager/skills`);
1415
1415
  }
@@ -3897,12 +3897,34 @@ var MembersApi = class extends BaseApiClient {
3897
3897
  body: JSON.stringify(memberRole)
3898
3898
  });
3899
3899
  }
3900
- /** Delete a member role. */
3900
+ /** Delete a member role. Default roles (``systemKey`` set) return 403. */
3901
3901
  async deleteMemberRole(wid, id) {
3902
3902
  return this.fetch(`w/${wid}/member-roles/${id}`, {
3903
3903
  method: "DELETE"
3904
3904
  });
3905
3905
  }
3906
+ /**
3907
+ * Describe legacy duplicate default roles in this workspace. Read-only.
3908
+ *
3909
+ * Workspaces seeded by older versions of the product can carry the same
3910
+ * default role under several spellings ("manager" next to "Manager"). This
3911
+ * reports which ones should be merged and exactly how many members and
3912
+ * references each merge would move.
3913
+ */
3914
+ async getMemberRoleCleanupPlan(wid) {
3915
+ return this.fetch(`w/${wid}/member-roles/cleanup-plan`);
3916
+ }
3917
+ /**
3918
+ * Move every member and reference from one role to another, then delete the
3919
+ * source role. Requires `member_roles:admin`. The source cannot be a default
3920
+ * role.
3921
+ */
3922
+ async mergeMemberRoles(wid, request) {
3923
+ return this.fetch(`w/${wid}/member-roles/cleanup/merge`, {
3924
+ method: "POST",
3925
+ body: JSON.stringify(request)
3926
+ });
3927
+ }
3906
3928
  // Import/Export Members API
3907
3929
  /**
3908
3930
  * Read-only preview classifying each CSV row before any write (GRA-5545).
@@ -4205,46 +4227,6 @@ var MembersApi = class extends BaseApiClient {
4205
4227
  }
4206
4228
  };
4207
4229
 
4208
- // src/api/milestones.ts
4209
- var MilestonesApi = class extends BaseApiClient {
4210
- /** List milestones in a workspace with optional pagination and sorting. */
4211
- async getMilestones(wid, options = {}) {
4212
- const params = new URLSearchParams();
4213
- if (options.page) params.append("page", options.page.toString());
4214
- if (options.pageSize) params.append("pageSize", options.pageSize.toString());
4215
- if (options.sortBy) params.append("sortBy", options.sortBy);
4216
- if (options.sortOrder) params.append("sortOrder", options.sortOrder);
4217
- if (options.search) params.append("search", options.search);
4218
- return this.fetch(
4219
- `w/${wid}/milestones${params.toString() ? `?${params.toString()}` : ""}`
4220
- );
4221
- }
4222
- /** Get a single milestone by ID. */
4223
- async getMilestone(wid, id) {
4224
- return this.fetch(`w/${wid}/milestones/${id}`);
4225
- }
4226
- /** Create a new milestone in a workspace. */
4227
- async createMilestone(wid, milestone) {
4228
- return this.fetch(`w/${wid}/milestones`, {
4229
- method: "POST",
4230
- body: JSON.stringify(milestone)
4231
- });
4232
- }
4233
- /** Update an existing milestone with partial data. */
4234
- async updateMilestone(wid, id, milestone) {
4235
- return this.fetch(`w/${wid}/milestones/${id}`, {
4236
- method: "PUT",
4237
- body: JSON.stringify(milestone)
4238
- });
4239
- }
4240
- /** Delete a milestone by ID. */
4241
- async deleteMilestone(wid, id) {
4242
- return this.fetch(`w/${wid}/milestones/${id}`, {
4243
- method: "DELETE"
4244
- });
4245
- }
4246
- };
4247
-
4248
4230
  // src/api/monday.ts
4249
4231
  var MondayIntegrationApi = class extends BaseApiClient {
4250
4232
  /**
@@ -4534,6 +4516,41 @@ var OrgApi = class extends BaseApiClient {
4534
4516
  async getCurrentOrgMember(orgIdOrUuid) {
4535
4517
  return this.fetch(`o/${orgIdOrUuid}/me`);
4536
4518
  }
4519
+ /**
4520
+ * Update the settings an org admin owns: name, slug and contact details.
4521
+ *
4522
+ * Deliberately NOT the admin organization update — `primary` and
4523
+ * `enforceCreditLimit` are superuser-only and are not fields on this
4524
+ * endpoint's request model at all.
4525
+ */
4526
+ async updateOrganizationSettings(orgIdOrUuid, data) {
4527
+ return this.fetch(`o/${orgIdOrUuid}`, {
4528
+ method: "PATCH",
4529
+ body: JSON.stringify(data)
4530
+ });
4531
+ }
4532
+ /**
4533
+ * Read this organization's SSO configuration.
4534
+ *
4535
+ * Org-scoped (`org:admin`), unlike the SSO fields on the superuser admin
4536
+ * organization update — an org admin owns their own identity provider.
4537
+ */
4538
+ async getOrgSsoConfig(orgIdOrUuid) {
4539
+ return this.fetch(`o/${orgIdOrUuid}/sso`);
4540
+ }
4541
+ /** Configure this organization's SSO. Requires `org:admin`. */
4542
+ async updateOrgSsoConfig(orgIdOrUuid, data) {
4543
+ return this.fetch(`o/${orgIdOrUuid}/sso`, {
4544
+ method: "PUT",
4545
+ body: JSON.stringify(data)
4546
+ });
4547
+ }
4548
+ /** Remove this organization's SSO configuration. Requires `org:admin`. */
4549
+ async deleteOrgSsoConfig(orgIdOrUuid) {
4550
+ return this.fetch(`o/${orgIdOrUuid}/sso`, {
4551
+ method: "DELETE"
4552
+ });
4553
+ }
4537
4554
  /**
4538
4555
  * Get the billing customer UUID for an organization.
4539
4556
  */
@@ -4654,6 +4671,22 @@ var OrgApi = class extends BaseApiClient {
4654
4671
  async getOrganizationWorkspace(orgIdOrUuid, workspaceUuid) {
4655
4672
  return this.fetch(`o/${orgIdOrUuid}/workspaces/${workspaceUuid}`);
4656
4673
  }
4674
+ /**
4675
+ * Workspace cards for the organization page: identity plus the GLB-side
4676
+ * counts. Any org member may call it — members get the workspaces they
4677
+ * belong to, org:read holders get all of them.
4678
+ */
4679
+ async getOrganizationWorkspaceSummaries(orgIdOrUuid) {
4680
+ return this.fetch(`o/${orgIdOrUuid}/workspaces/summary`);
4681
+ }
4682
+ /**
4683
+ * Workspace-schema aggregates for one card, plus the caller's own member
4684
+ * role. Separate from the list because it opens a session against the
4685
+ * workspace's own schema — each card fetches its own.
4686
+ */
4687
+ async getOrganizationWorkspaceStats(orgIdOrUuid, workspaceUuid) {
4688
+ return this.fetch(`o/${orgIdOrUuid}/workspaces/${workspaceUuid}/stats`);
4689
+ }
4657
4690
  /**
4658
4691
  * Create a workspace in an organization.
4659
4692
  */
@@ -7725,6 +7758,12 @@ var MemberImportPreviewRowAction = {
7725
7758
  error: "error"
7726
7759
  };
7727
7760
 
7761
+ // src/types/generated/member_role.ts
7762
+ var MergeMemberRolesRequestAccessStrategy = {
7763
+ union: "union",
7764
+ target_only: "target_only"
7765
+ };
7766
+
7728
7767
  // src/types/member-types.ts
7729
7768
  var MemberType = /* @__PURE__ */ ((MemberType2) => {
7730
7769
  MemberType2["ANONYMOUS"] = "anonymous";
@@ -7733,6 +7772,37 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
7733
7772
  MemberType2["AGENT"] = "agent";
7734
7773
  return MemberType2;
7735
7774
  })(MemberType || {});
7775
+ function structuredErrorDetail(error) {
7776
+ if (!error || typeof error !== "object") return null;
7777
+ const detail = error.errorData;
7778
+ if (!detail || typeof detail !== "object") return null;
7779
+ return detail;
7780
+ }
7781
+ function isMemberContactConflict(error) {
7782
+ const d = structuredErrorDetail(error);
7783
+ if (!d || d.code !== "MEMBER_CONTACT_CONFLICT") return null;
7784
+ if (d.conflictingMemberId !== null && typeof d.conflictingMemberId !== "number") {
7785
+ return null;
7786
+ }
7787
+ return d;
7788
+ }
7789
+ function isAccountContactConflict(error) {
7790
+ const d = structuredErrorDetail(error);
7791
+ if (!d || d.code !== "ACCOUNT_CONTACT_CONFLICT") return null;
7792
+ return d;
7793
+ }
7794
+ function archivedMemberConflictId(error) {
7795
+ const d = structuredErrorDetail(error);
7796
+ if (!d || d.code !== "ARCHIVED_MEMBER_CONFLICT") return null;
7797
+ return typeof d.archivedMemberId === "number" ? d.archivedMemberId : null;
7798
+ }
7799
+ function isIdentifiedMemberContactConflict(conflict) {
7800
+ return !!conflict && conflict.conflictingMemberId !== null;
7801
+ }
7802
+ function asIdentifiedMemberContactConflict(error) {
7803
+ const conflict = isMemberContactConflict(error);
7804
+ return isIdentifiedMemberContactConflict(conflict) ? conflict : null;
7805
+ }
7736
7806
 
7737
7807
  // src/types/mcp-server-types.ts
7738
7808
  var McpServerState = /* @__PURE__ */ ((McpServerState2) => {
@@ -8072,6 +8142,18 @@ var ConsentMethod = /* @__PURE__ */ ((ConsentMethod2) => {
8072
8142
  return ConsentMethod2;
8073
8143
  })(ConsentMethod || {});
8074
8144
 
8145
+ // src/types/config-health-types.ts
8146
+ var CONFIG_HEALTH_FACADE_CHECK_SLUGS = [
8147
+ "workflow.config",
8148
+ "journey.authoring",
8149
+ "workflow.access",
8150
+ "routine.workflow_access",
8151
+ "workspace.validation"
8152
+ ];
8153
+ function isConfigHealthFacadeCheckSlug(value) {
8154
+ return CONFIG_HEALTH_FACADE_CHECK_SLUGS.includes(value);
8155
+ }
8156
+
8075
8157
  // src/types/experiment-types.ts
8076
8158
  function parseExperimentStatCount(value) {
8077
8159
  return typeof value === "number" ? value : null;
@@ -8629,6 +8711,32 @@ var DashboardsApi = class extends BaseApiClient {
8629
8711
  `w/${wid}/dashboards/stats/workflow-assignments`
8630
8712
  );
8631
8713
  }
8714
+ /**
8715
+ * Current saved-configuration health across every family (Workflow
8716
+ * configuration, Journey authoring, Workflow access, Routine → Workflow
8717
+ * access, and the workspace lint).
8718
+ *
8719
+ * Requires ALL of `workflows:read`, `journeys:read`, `automations:read`,
8720
+ * `datatypes:read`, `members:read`, and `member_roles:read` — a pruned
8721
+ * subset would render as "all configuration is healthy".
8722
+ *
8723
+ * `page`/`pageSize` bound the response only; every family is evaluated in
8724
+ * full before the issue list is sliced. `check`/`severity` narrow the issue
8725
+ * list server-side, before pagination — filtering a single page in the
8726
+ * client cannot find a match that lives on a later one. `summary` and
8727
+ * `checks` are always workspace-global.
8728
+ */
8729
+ async getConfigurationHealth(wid, options) {
8730
+ const params = new URLSearchParams();
8731
+ if (options?.page !== void 0) params.append("page", options.page.toString());
8732
+ if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
8733
+ if (options?.check !== void 0) params.append("check", options.check);
8734
+ if (options?.severity !== void 0) params.append("severity", options.severity);
8735
+ const query = params.toString();
8736
+ return this.fetch(
8737
+ `w/${wid}/configuration-health${query ? `?${query}` : ""}`
8738
+ );
8739
+ }
8632
8740
  };
8633
8741
 
8634
8742
  // src/api/teams-apps.ts
@@ -8824,6 +8932,84 @@ var MotdApi = class extends BaseApiClient {
8824
8932
  }
8825
8933
  };
8826
8934
 
8935
+ // src/api/intervention-requests.ts
8936
+ var InterventionRequestsApi = class extends BaseApiClient {
8937
+ /** List intervention requests in a workspace, newest first. */
8938
+ async getInterventionRequests(wid, params = {}) {
8939
+ const query = new URLSearchParams();
8940
+ if (params.kind) query.set("kind", params.kind);
8941
+ if (params.openOnly) query.set("openOnly", "true");
8942
+ if (params.chatId !== void 0) query.set("chatId", String(params.chatId));
8943
+ if (params.unroutedOnly) query.set("unroutedOnly", "true");
8944
+ if (params.limit !== void 0) query.set("limit", String(params.limit));
8945
+ const qs = query.toString();
8946
+ return this.fetch(
8947
+ `w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
8948
+ );
8949
+ }
8950
+ };
8951
+
8952
+ // src/api/metrics.ts
8953
+ var MetricsApi = class extends BaseApiClient {
8954
+ /** List metric definitions in the workspace, paginated. */
8955
+ async listMetrics(wid, params) {
8956
+ const q = new URLSearchParams();
8957
+ if (params?.page !== void 0) q.set("page", String(params.page));
8958
+ if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
8959
+ if (params?.includeArchived !== void 0)
8960
+ q.set("includeArchived", String(params.includeArchived));
8961
+ if (params?.source) q.set("source", params.source);
8962
+ const qs = q.toString() ? `?${q.toString()}` : "";
8963
+ return this.fetch(`w/${wid}/metrics${qs}`);
8964
+ }
8965
+ async getMetric(wid, id) {
8966
+ return this.fetch(`w/${wid}/metrics/${id}`);
8967
+ }
8968
+ async createMetric(wid, data) {
8969
+ return this.fetch(`w/${wid}/metrics`, {
8970
+ method: "POST",
8971
+ body: JSON.stringify(data)
8972
+ });
8973
+ }
8974
+ async updateMetric(wid, id, data) {
8975
+ return this.fetch(`w/${wid}/metrics/${id}`, {
8976
+ method: "PUT",
8977
+ body: JSON.stringify(data)
8978
+ });
8979
+ }
8980
+ /** Soft-archive a metric (observations retained). */
8981
+ async deleteMetric(wid, id) {
8982
+ return this.fetch(`w/${wid}/metrics/${id}`, { method: "DELETE" });
8983
+ }
8984
+ async listMetricObservations(wid, metricId, params) {
8985
+ const q = new URLSearchParams();
8986
+ q.set("start", params.start);
8987
+ q.set("end", params.end);
8988
+ if (params.page !== void 0) q.set("page", String(params.page));
8989
+ if (params.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
8990
+ return this.fetch(
8991
+ `w/${wid}/metrics/${metricId}/observations?${q.toString()}`
8992
+ );
8993
+ }
8994
+ async getMetricSeries(wid, metricId, params) {
8995
+ const q = new URLSearchParams();
8996
+ q.set("start", params.start);
8997
+ q.set("end", params.end);
8998
+ if (params.bucket) q.set("bucket", params.bucket);
8999
+ if (params.aggregation) q.set("aggregation", params.aggregation);
9000
+ return this.fetch(
9001
+ `w/${wid}/metrics/${metricId}/series?${q.toString()}`
9002
+ );
9003
+ }
9004
+ /** On-demand compute of enabled chat-source metrics for one chat. */
9005
+ async computeChatMetrics(wid, data) {
9006
+ return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
9007
+ method: "POST",
9008
+ body: JSON.stringify(data)
9009
+ });
9010
+ }
9011
+ };
9012
+
8827
9013
  // src/api/tracked-links.ts
8828
9014
  function withFilters(params, options) {
8829
9015
  if (options.dateFrom) params.append("dateFrom", options.dateFrom);
@@ -9040,11 +9226,11 @@ function createApiModules(apiKey, baseUrl, customFetch) {
9040
9226
  connectionSync: new ConnectionSyncApi(apiKey, baseUrl, customFetch),
9041
9227
  mcpServers: new McpServersApi(apiKey, baseUrl, customFetch),
9042
9228
  members: new MembersApi(apiKey, baseUrl, customFetch),
9043
- milestones: new MilestonesApi(apiKey, baseUrl, customFetch),
9044
9229
  motd: new MotdApi(apiKey, baseUrl, customFetch),
9045
9230
  trackedLinks: new TrackedLinksApi(apiKey, baseUrl, customFetch),
9046
9231
  confluence: new ConfluenceApi(apiKey, baseUrl, customFetch),
9047
9232
  mondayIntegration: new MondayIntegrationApi(apiKey, baseUrl, customFetch),
9233
+ interventionRequests: new InterventionRequestsApi(apiKey, baseUrl, customFetch),
9048
9234
  notificationRules: new NotificationRulesApi(apiKey, baseUrl, customFetch),
9049
9235
  oauth: new OAuthApi(apiKey, baseUrl, customFetch),
9050
9236
  operatorGroups: new OperatorApi(apiKey, baseUrl, customFetch),
@@ -9054,6 +9240,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
9054
9240
  pronunciations: new PronunciationsApi(apiKey, baseUrl, customFetch),
9055
9241
  qualifications: new QualificationsApi(apiKey, baseUrl, customFetch),
9056
9242
  personas: new PersonasApi(apiKey, baseUrl, customFetch),
9243
+ metrics: new MetricsApi(apiKey, baseUrl, customFetch),
9057
9244
  queries: new QueriesApi(apiKey, baseUrl, customFetch),
9058
9245
  reports: new ReportsApi(apiKey, baseUrl, customFetch),
9059
9246
  salesforce: new SalesforceApi(apiKey, baseUrl, customFetch),
@@ -9167,7 +9354,6 @@ var WORKSPACE_METHOD_NAMES = [
9167
9354
  "createMemberMemory",
9168
9355
  "createMemberRole",
9169
9356
  "createMenuItem",
9170
- "createMilestone",
9171
9357
  "createNotificationRule",
9172
9358
  "createOperatorGroup",
9173
9359
  "createPage",
@@ -9234,7 +9420,6 @@ var WORKSPACE_METHOD_NAMES = [
9234
9420
  "deleteMemberMemory",
9235
9421
  "deleteMemberRole",
9236
9422
  "deleteMenuItem",
9237
- "deleteMilestone",
9238
9423
  "deleteMondayConnection",
9239
9424
  "deleteNotificationRule",
9240
9425
  "deleteOperatorGroup",
@@ -9385,6 +9570,7 @@ var WORKSPACE_METHOD_NAMES = [
9385
9570
  "getChatsNeedsResponse",
9386
9571
  "getChildThreadMessages",
9387
9572
  "getClientWorkspace",
9573
+ "getConfigurationHealth",
9388
9574
  "getConfluenceStatus",
9389
9575
  "getConnectionSyncCapabilities",
9390
9576
  "getConnectionSyncCheckpoint",
@@ -9511,6 +9697,7 @@ var WORKSPACE_METHOD_NAMES = [
9511
9697
  "getMemberMemory",
9512
9698
  "getMemberRecordCounts",
9513
9699
  "getMemberRole",
9700
+ "getMemberRoleCleanupPlan",
9514
9701
  "getMemberRoleByUuid",
9515
9702
  "getMemberRoles",
9516
9703
  "getMemberSyncLinks",
@@ -9519,8 +9706,6 @@ var WORKSPACE_METHOD_NAMES = [
9519
9706
  "getMembersMessageActivity",
9520
9707
  "getMenuItems",
9521
9708
  "getMessageTiming",
9522
- "getMilestone",
9523
- "getMilestones",
9524
9709
  "getMondayConnectionBoardColumns",
9525
9710
  "getMondayConnectionBoardGroups",
9526
9711
  "getMondayConnectionBoards",
@@ -9683,6 +9868,14 @@ var WORKSPACE_METHOD_NAMES = [
9683
9868
  "listHealthiePatients",
9684
9869
  "listHealthieProviders",
9685
9870
  "listPersonas",
9871
+ "listMetrics",
9872
+ "getMetric",
9873
+ "createMetric",
9874
+ "updateMetric",
9875
+ "deleteMetric",
9876
+ "listMetricObservations",
9877
+ "getMetricSeries",
9878
+ "computeChatMetrics",
9686
9879
  "listPushSubscriptions",
9687
9880
  "listSalesforceObjects",
9688
9881
  "listScenarios",
@@ -9693,6 +9886,7 @@ var WORKSPACE_METHOD_NAMES = [
9693
9886
  "markEmailAsRead",
9694
9887
  "markEmailAsUnread",
9695
9888
  "markNotificationAsRead",
9889
+ "mergeMemberRoles",
9696
9890
  "previewImportMembers",
9697
9891
  "previewImportWorkspace",
9698
9892
  "previewRoutineWorkflowAccess",
@@ -9821,7 +10015,6 @@ var WORKSPACE_METHOD_NAMES = [
9821
10015
  "updateMemberLabel",
9822
10016
  "updateMemberRole",
9823
10017
  "updateMenuItem",
9824
- "updateMilestone",
9825
10018
  "updateMondaySyncConfig",
9826
10019
  "updateNotificationRule",
9827
10020
  "updateOperatorGroup",
@@ -10006,6 +10199,7 @@ function bindDashboardsMethods(target, dashboards) {
10006
10199
  target.deleteDashboard = dashboards.deleteDashboard.bind(dashboards);
10007
10200
  target.getDashboardChannelStats = dashboards.getDashboardChannelStats.bind(dashboards);
10008
10201
  target.getDashboardWorkflowAssignmentStats = dashboards.getDashboardWorkflowAssignmentStats.bind(dashboards);
10202
+ target.getConfigurationHealth = dashboards.getConfigurationHealth.bind(dashboards);
10009
10203
  }
10010
10204
 
10011
10205
  // src/client/bindings/motd.ts
@@ -10426,7 +10620,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
10426
10620
  }
10427
10621
 
10428
10622
  // src/client/bindings/calendars.ts
10429
- function bindCalendarsMethods(target, calendars, milestones) {
10623
+ function bindCalendarsMethods(target, calendars) {
10430
10624
  target.getCalendars = calendars.getCalendars.bind(calendars);
10431
10625
  target.getCalendar = calendars.getCalendar.bind(calendars);
10432
10626
  target.createCalendar = calendars.createCalendar.bind(calendars);
@@ -10458,11 +10652,6 @@ function bindCalendarsMethods(target, calendars, milestones) {
10458
10652
  target.linkCalendarToGoogle = calendars.linkCalendarToGoogle.bind(calendars);
10459
10653
  target.unlinkCalendarFromGoogle = calendars.unlinkCalendarFromGoogle.bind(calendars);
10460
10654
  target.syncCalendarWithGoogle = calendars.syncCalendarWithGoogle.bind(calendars);
10461
- target.getMilestones = milestones.getMilestones.bind(milestones);
10462
- target.getMilestone = milestones.getMilestone.bind(milestones);
10463
- target.createMilestone = milestones.createMilestone.bind(milestones);
10464
- target.updateMilestone = milestones.updateMilestone.bind(milestones);
10465
- target.deleteMilestone = milestones.deleteMilestone.bind(milestones);
10466
10655
  }
10467
10656
 
10468
10657
  // src/client/bindings/communications.ts
@@ -10819,6 +11008,11 @@ function bindOrgMethods(target, org) {
10819
11008
  target.updateBusinessProfile = org.updateBusinessProfile.bind(org);
10820
11009
  target.submitBusinessProfile = org.submitBusinessProfile.bind(org);
10821
11010
  target.cancelBusinessProfile = org.cancelBusinessProfile.bind(org);
11011
+ target.listLegalEntities = org.listLegalEntities.bind(org);
11012
+ target.getLegalEntity = org.getLegalEntity.bind(org);
11013
+ target.createLegalEntity = org.createLegalEntity.bind(org);
11014
+ target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
11015
+ target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
10822
11016
  target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
10823
11017
  target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
10824
11018
  }
@@ -10902,6 +11096,18 @@ function bindPersonasMethods(target, personas) {
10902
11096
  target.deletePersona = personas.deletePersona.bind(personas);
10903
11097
  }
10904
11098
 
11099
+ // src/client/bindings/metrics.ts
11100
+ function bindMetricsMethods(target, metrics) {
11101
+ target.listMetrics = metrics.listMetrics.bind(metrics);
11102
+ target.getMetric = metrics.getMetric.bind(metrics);
11103
+ target.createMetric = metrics.createMetric.bind(metrics);
11104
+ target.updateMetric = metrics.updateMetric.bind(metrics);
11105
+ target.deleteMetric = metrics.deleteMetric.bind(metrics);
11106
+ target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
11107
+ target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
11108
+ target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
11109
+ }
11110
+
10905
11111
  // src/client/bindings/queries.ts
10906
11112
  function bindQueriesMethods(target, queries) {
10907
11113
  target.getQueryFields = queries.getQueryFields.bind(queries);
@@ -11110,6 +11316,8 @@ var GravityRailClient = class {
11110
11316
  createMemberRole;
11111
11317
  updateMemberRole;
11112
11318
  deleteMemberRole;
11319
+ getMemberRoleCleanupPlan;
11320
+ mergeMemberRoles;
11113
11321
  // Member Fields
11114
11322
  getMemberFields;
11115
11323
  getMemberFieldDefinitions;
@@ -11170,6 +11378,15 @@ var GravityRailClient = class {
11170
11378
  createPersona;
11171
11379
  updatePersona;
11172
11380
  deletePersona;
11381
+ // Metrics API (customer-defined outcome metrics)
11382
+ listMetrics;
11383
+ getMetric;
11384
+ createMetric;
11385
+ updateMetric;
11386
+ deleteMetric;
11387
+ listMetricObservations;
11388
+ getMetricSeries;
11389
+ computeChatMetrics;
11173
11390
  // Dashboards API
11174
11391
  getDashboards;
11175
11392
  getDashboard;
@@ -11178,6 +11395,7 @@ var GravityRailClient = class {
11178
11395
  deleteDashboard;
11179
11396
  getDashboardChannelStats;
11180
11397
  getDashboardWorkflowAssignmentStats;
11398
+ getConfigurationHealth;
11181
11399
  // MOTD API
11182
11400
  getMotd;
11183
11401
  // Tracked Links analytics (#10934)
@@ -11331,6 +11549,11 @@ var GravityRailClient = class {
11331
11549
  updateBusinessProfile;
11332
11550
  submitBusinessProfile;
11333
11551
  cancelBusinessProfile;
11552
+ listLegalEntities;
11553
+ getLegalEntity;
11554
+ createLegalEntity;
11555
+ getVoiceTrustProducts;
11556
+ syncVoiceTrustProducts;
11334
11557
  createOrganizationWorkspace;
11335
11558
  getOrgBillingCustomer;
11336
11559
  getVapidPublicKey;
@@ -11592,11 +11815,6 @@ var GravityRailClient = class {
11592
11815
  linkCalendarToGoogle;
11593
11816
  unlinkCalendarFromGoogle;
11594
11817
  syncCalendarWithGoogle;
11595
- getMilestones;
11596
- getMilestone;
11597
- createMilestone;
11598
- updateMilestone;
11599
- deleteMilestone;
11600
11818
  // Communications API
11601
11819
  getPhoneNumbers;
11602
11820
  getAvailablePhoneNumbers;
@@ -11976,6 +12194,7 @@ var GravityRailClient = class {
11976
12194
  bindAgentsMethods(this, apis.agents);
11977
12195
  bindQualificationsMethods(this, apis.qualifications);
11978
12196
  bindPersonasMethods(this, apis.personas);
12197
+ bindMetricsMethods(this, apis.metrics);
11979
12198
  bindQueriesMethods(this, apis.queries);
11980
12199
  bindDashboardsMethods(this, apis.dashboards);
11981
12200
  bindMotdMethods(this, apis.motd);
@@ -11992,7 +12211,7 @@ var GravityRailClient = class {
11992
12211
  bindFilesMethods(this, apis.files);
11993
12212
  bindEventsMethods(this, apis.events);
11994
12213
  bindWorkflowsMethods(this, apis.workflows, apis.workflowNotes, apis.voice, apis.supervisors);
11995
- bindCalendarsMethods(this, apis.calendars, apis.milestones);
12214
+ bindCalendarsMethods(this, apis.calendars);
11996
12215
  bindCommunicationsMethods(this, apis.phoneNumbers, apis.inboxes, apis.notificationRules);
11997
12216
  bindToolkitsMethods(
11998
12217
  this,
@@ -12342,7 +12561,9 @@ var AbilityConfigIssueCode = {
12342
12561
  invalid_state: "invalid_state",
12343
12562
  feature_disabled: "feature_disabled",
12344
12563
  missing_connection: "missing_connection",
12345
- external_drift: "external_drift"
12564
+ external_drift: "external_drift",
12565
+ missing_task_instructions: "missing_task_instructions",
12566
+ no_qualification_scenarios: "no_qualification_scenarios"
12346
12567
  };
12347
12568
  var AbilityConfigIssueSeverity = {
12348
12569
  warning: "warning",
@@ -12355,6 +12576,12 @@ var WorkflowAccessWarningResourceType = {
12355
12576
  calendar: "calendar"
12356
12577
  };
12357
12578
 
12579
+ // src/types/generated/workflow.ts
12580
+ var WorkflowRoutingMode = {
12581
+ open_world: "open_world",
12582
+ strict: "strict"
12583
+ };
12584
+
12358
12585
  // src/types/widget-domain-types.ts
12359
12586
  var WIDGET_SLUGS = ["chat", "operator", "operator-tools", "chat-app"];
12360
12587
 
@@ -13321,7 +13548,6 @@ export {
13321
13548
  McpServersApi,
13322
13549
  MemberImportValidationError,
13323
13550
  MembersApi,
13324
- MilestonesApi,
13325
13551
  MondayIntegrationApi,
13326
13552
  NotificationRulesApi,
13327
13553
  OperatorApi,
@@ -13372,7 +13598,13 @@ export {
13372
13598
  BulkMemberResultStatus,
13373
13599
  MemberImportMatchInfoMatchType,
13374
13600
  MemberImportPreviewRowAction,
13601
+ MergeMemberRolesRequestAccessStrategy,
13375
13602
  MemberType,
13603
+ isMemberContactConflict,
13604
+ isAccountContactConflict,
13605
+ archivedMemberConflictId,
13606
+ isIdentifiedMemberContactConflict,
13607
+ asIdentifiedMemberContactConflict,
13376
13608
  McpServerState,
13377
13609
  ToolkitState,
13378
13610
  EventRuleObjectType,
@@ -13419,6 +13651,8 @@ export {
13419
13651
  AccessGrantStatus,
13420
13652
  AccessGrantTrigger,
13421
13653
  ConsentMethod,
13654
+ CONFIG_HEALTH_FACADE_CHECK_SLUGS,
13655
+ isConfigHealthFacadeCheckSlug,
13422
13656
  parseExperimentStatCount,
13423
13657
  TERMINAL_TASK_STATES,
13424
13658
  WorkspaceInvitationsApi,
@@ -13456,6 +13690,7 @@ export {
13456
13690
  bindJourneysMethods,
13457
13691
  bindQualificationsMethods,
13458
13692
  bindPersonasMethods,
13693
+ bindMetricsMethods,
13459
13694
  bindQueriesMethods,
13460
13695
  bindCustomersMethods,
13461
13696
  bindResellersMethods,
@@ -13488,6 +13723,7 @@ export {
13488
13723
  AbilityConfigIssueCode,
13489
13724
  AbilityConfigIssueSeverity,
13490
13725
  WorkflowAccessWarningResourceType,
13726
+ WorkflowRoutingMode,
13491
13727
  WIDGET_SLUGS,
13492
13728
  PromoCodeStatus,
13493
13729
  FeatureCategory,
@@ -13524,4 +13760,4 @@ export {
13524
13760
  SCOPE_PRESETS,
13525
13761
  getRevisionState
13526
13762
  };
13527
- //# sourceMappingURL=chunk-4B7T6MBH.js.map
13763
+ //# sourceMappingURL=chunk-CEFOCGYO.js.map