@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.
- package/dist/{chunk-4B7T6MBH.js → chunk-MP5ENP4Q.js} +493 -77
- package/dist/chunk-MP5ENP4Q.js.map +1 -0
- package/dist/{chunk-GP6ICMWF.js → chunk-PJFEGUHM.js} +8 -1
- package/dist/chunk-PJFEGUHM.js.map +1 -0
- package/dist/{client-3xYGmF3t.d.ts → client-B51HZ6zY.d.cts} +2229 -217
- package/dist/{client-BhO_UFFz.d.cts → client-G5i59XtT.d.ts} +2229 -217
- package/dist/helpers.cjs +7 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +449 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.js +77 -4
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +564 -72
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +95 -7
- package/dist/internal.d.ts +95 -7
- package/dist/internal.js +93 -6
- package/dist/internal.js.map +1 -1
- package/dist/{revision-state-Dma10N9s.d.ts → revision-state-Cc7RAf8A.d.ts} +30 -5
- package/dist/{revision-state-Dx8gCQIj.d.cts → revision-state-DudSCwea.d.cts} +30 -5
- package/dist/schemas.cjs +170 -216
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +11 -11
- package/dist/schemas.d.ts +11 -11
- package/dist/schemas.js +170 -209
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-vupYoJgG.d.cts → tasks-1JXJJuG8.d.cts} +256 -73
- package/dist/{tasks-vupYoJgG.d.ts → tasks-1JXJJuG8.d.ts} +256 -73
- package/package.json +3 -3
- package/dist/chunk-4B7T6MBH.js.map +0 -1
- package/dist/chunk-GP6ICMWF.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
BaseApiClient
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PJFEGUHM.js";
|
|
5
5
|
|
|
6
6
|
// src/api/abilities.ts
|
|
7
7
|
var AbilitiesApi = class extends BaseApiClient {
|
|
@@ -1405,11 +1405,9 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
/** Get loaded and revealed skills for a chat. */
|
|
1407
1407
|
async getChatSkills(wid, chatId) {
|
|
1408
|
-
return this.fetch(
|
|
1409
|
-
`w/${wid}/chats/${chatId}/skills`
|
|
1410
|
-
);
|
|
1408
|
+
return this.fetch(`w/${wid}/chats/${chatId}/skills`);
|
|
1411
1409
|
}
|
|
1412
|
-
/** List built-in skills
|
|
1410
|
+
/** List built-in skills selectable before a Manager Chat (and on Routine manager tasks). */
|
|
1413
1411
|
async getManagerSkills(wid) {
|
|
1414
1412
|
return this.fetch(`w/${wid}/chats/manager/skills`);
|
|
1415
1413
|
}
|
|
@@ -1949,6 +1947,7 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
1949
1947
|
const params = new URLSearchParams();
|
|
1950
1948
|
if (options?.memberId !== void 0) params.append("member_id", options.memberId.toString());
|
|
1951
1949
|
if (options?.memberIds?.length) params.append("member_ids", options.memberIds.join(","));
|
|
1950
|
+
if (options?.recordId !== void 0) params.append("record_id", options.recordId.toString());
|
|
1952
1951
|
if (options?.search) params.append("search", options.search);
|
|
1953
1952
|
if (options?.searchField) params.append("search_field", options.searchField);
|
|
1954
1953
|
if (options?.dataRecordFilterId != null) {
|
|
@@ -1969,9 +1968,7 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
1969
1968
|
params.append("dataTypeId", options.dataTypeId.toString());
|
|
1970
1969
|
}
|
|
1971
1970
|
const qs = params.toString();
|
|
1972
|
-
return this.fetch(
|
|
1973
|
-
`w/${wid}/data-record-filters${qs ? `?${qs}` : ""}`
|
|
1974
|
-
);
|
|
1971
|
+
return this.fetch(`w/${wid}/data-record-filters${qs ? `?${qs}` : ""}`);
|
|
1975
1972
|
}
|
|
1976
1973
|
/** Get a single data-record filter by ID. */
|
|
1977
1974
|
async getDataRecordFilter(wid, filterId) {
|
|
@@ -1999,9 +1996,7 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
1999
1996
|
}
|
|
2000
1997
|
/** Get the count of records matching a saved filter. */
|
|
2001
1998
|
async getDataRecordFilterCount(wid, filterId) {
|
|
2002
|
-
return this.fetch(
|
|
2003
|
-
`w/${wid}/data-record-filters/${filterId}/count`
|
|
2004
|
-
);
|
|
1999
|
+
return this.fetch(`w/${wid}/data-record-filters/${filterId}/count`);
|
|
2005
2000
|
}
|
|
2006
2001
|
/** Get a single data record by ID. */
|
|
2007
2002
|
async getDataRecord(wid, recordId) {
|
|
@@ -2484,6 +2479,27 @@ var EventsApi = class extends BaseApiClient {
|
|
|
2484
2479
|
method: "POST"
|
|
2485
2480
|
});
|
|
2486
2481
|
}
|
|
2482
|
+
/**
|
|
2483
|
+
* Configuration change history for one routine, newest first.
|
|
2484
|
+
*
|
|
2485
|
+
* Answers "who turned this off, when, and why" — including the
|
|
2486
|
+
* platform-initiated pauses (finite-repeat exhaustion, outbound-safety
|
|
2487
|
+
* runaway auto-pause) that no other surface exposes.
|
|
2488
|
+
*
|
|
2489
|
+
* `transitionsOnly` filters to rows that record a real trigger-gate
|
|
2490
|
+
* transition. Prefer it for a toggle-focused view: a full-form save always
|
|
2491
|
+
* re-sends every field, so unfiltered history includes saves that changed
|
|
2492
|
+
* nothing.
|
|
2493
|
+
*/
|
|
2494
|
+
async getRoutineConfigEvents(wid, id, options = {}) {
|
|
2495
|
+
const params = new URLSearchParams();
|
|
2496
|
+
if (options.limit) params.append("limit", options.limit.toString());
|
|
2497
|
+
if (options.beforeId) params.append("before_id", options.beforeId.toString());
|
|
2498
|
+
if (options.transitionsOnly) params.append("transitions_only", "true");
|
|
2499
|
+
return this.fetch(
|
|
2500
|
+
`w/${wid}/routines/${id}/history${params.toString() ? `?${params.toString()}` : ""}`
|
|
2501
|
+
);
|
|
2502
|
+
}
|
|
2487
2503
|
/** List routine run history with optional filtering by routine and status. */
|
|
2488
2504
|
async getRoutineRuns(wid, options = {}) {
|
|
2489
2505
|
const params = new URLSearchParams();
|
|
@@ -3897,12 +3913,34 @@ var MembersApi = class extends BaseApiClient {
|
|
|
3897
3913
|
body: JSON.stringify(memberRole)
|
|
3898
3914
|
});
|
|
3899
3915
|
}
|
|
3900
|
-
/** Delete a member role. */
|
|
3916
|
+
/** Delete a member role. Default roles (``systemKey`` set) return 403. */
|
|
3901
3917
|
async deleteMemberRole(wid, id) {
|
|
3902
3918
|
return this.fetch(`w/${wid}/member-roles/${id}`, {
|
|
3903
3919
|
method: "DELETE"
|
|
3904
3920
|
});
|
|
3905
3921
|
}
|
|
3922
|
+
/**
|
|
3923
|
+
* Describe legacy duplicate default roles in this workspace. Read-only.
|
|
3924
|
+
*
|
|
3925
|
+
* Workspaces seeded by older versions of the product can carry the same
|
|
3926
|
+
* default role under several spellings ("manager" next to "Manager"). This
|
|
3927
|
+
* reports which ones should be merged and exactly how many members and
|
|
3928
|
+
* references each merge would move.
|
|
3929
|
+
*/
|
|
3930
|
+
async getMemberRoleCleanupPlan(wid) {
|
|
3931
|
+
return this.fetch(`w/${wid}/member-roles/cleanup-plan`);
|
|
3932
|
+
}
|
|
3933
|
+
/**
|
|
3934
|
+
* Move every member and reference from one role to another, then delete the
|
|
3935
|
+
* source role. Requires `member_roles:admin`. The source cannot be a default
|
|
3936
|
+
* role.
|
|
3937
|
+
*/
|
|
3938
|
+
async mergeMemberRoles(wid, request) {
|
|
3939
|
+
return this.fetch(`w/${wid}/member-roles/cleanup/merge`, {
|
|
3940
|
+
method: "POST",
|
|
3941
|
+
body: JSON.stringify(request)
|
|
3942
|
+
});
|
|
3943
|
+
}
|
|
3906
3944
|
// Import/Export Members API
|
|
3907
3945
|
/**
|
|
3908
3946
|
* Read-only preview classifying each CSV row before any write (GRA-5545).
|
|
@@ -4205,46 +4243,6 @@ var MembersApi = class extends BaseApiClient {
|
|
|
4205
4243
|
}
|
|
4206
4244
|
};
|
|
4207
4245
|
|
|
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
4246
|
// src/api/monday.ts
|
|
4249
4247
|
var MondayIntegrationApi = class extends BaseApiClient {
|
|
4250
4248
|
/**
|
|
@@ -4534,6 +4532,41 @@ var OrgApi = class extends BaseApiClient {
|
|
|
4534
4532
|
async getCurrentOrgMember(orgIdOrUuid) {
|
|
4535
4533
|
return this.fetch(`o/${orgIdOrUuid}/me`);
|
|
4536
4534
|
}
|
|
4535
|
+
/**
|
|
4536
|
+
* Update the settings an org admin owns: name, slug and contact details.
|
|
4537
|
+
*
|
|
4538
|
+
* Deliberately NOT the admin organization update — `primary` and
|
|
4539
|
+
* `enforceCreditLimit` are superuser-only and are not fields on this
|
|
4540
|
+
* endpoint's request model at all.
|
|
4541
|
+
*/
|
|
4542
|
+
async updateOrganizationSettings(orgIdOrUuid, data) {
|
|
4543
|
+
return this.fetch(`o/${orgIdOrUuid}`, {
|
|
4544
|
+
method: "PATCH",
|
|
4545
|
+
body: JSON.stringify(data)
|
|
4546
|
+
});
|
|
4547
|
+
}
|
|
4548
|
+
/**
|
|
4549
|
+
* Read this organization's SSO configuration.
|
|
4550
|
+
*
|
|
4551
|
+
* Org-scoped (`org:admin`), unlike the SSO fields on the superuser admin
|
|
4552
|
+
* organization update — an org admin owns their own identity provider.
|
|
4553
|
+
*/
|
|
4554
|
+
async getOrgSsoConfig(orgIdOrUuid) {
|
|
4555
|
+
return this.fetch(`o/${orgIdOrUuid}/sso`);
|
|
4556
|
+
}
|
|
4557
|
+
/** Configure this organization's SSO. Requires `org:admin`. */
|
|
4558
|
+
async updateOrgSsoConfig(orgIdOrUuid, data) {
|
|
4559
|
+
return this.fetch(`o/${orgIdOrUuid}/sso`, {
|
|
4560
|
+
method: "PUT",
|
|
4561
|
+
body: JSON.stringify(data)
|
|
4562
|
+
});
|
|
4563
|
+
}
|
|
4564
|
+
/** Remove this organization's SSO configuration. Requires `org:admin`. */
|
|
4565
|
+
async deleteOrgSsoConfig(orgIdOrUuid) {
|
|
4566
|
+
return this.fetch(`o/${orgIdOrUuid}/sso`, {
|
|
4567
|
+
method: "DELETE"
|
|
4568
|
+
});
|
|
4569
|
+
}
|
|
4537
4570
|
/**
|
|
4538
4571
|
* Get the billing customer UUID for an organization.
|
|
4539
4572
|
*/
|
|
@@ -4654,6 +4687,22 @@ var OrgApi = class extends BaseApiClient {
|
|
|
4654
4687
|
async getOrganizationWorkspace(orgIdOrUuid, workspaceUuid) {
|
|
4655
4688
|
return this.fetch(`o/${orgIdOrUuid}/workspaces/${workspaceUuid}`);
|
|
4656
4689
|
}
|
|
4690
|
+
/**
|
|
4691
|
+
* Workspace cards for the organization page: identity plus the GLB-side
|
|
4692
|
+
* counts. Any org member may call it — members get the workspaces they
|
|
4693
|
+
* belong to, org:read holders get all of them.
|
|
4694
|
+
*/
|
|
4695
|
+
async getOrganizationWorkspaceSummaries(orgIdOrUuid) {
|
|
4696
|
+
return this.fetch(`o/${orgIdOrUuid}/workspaces/summary`);
|
|
4697
|
+
}
|
|
4698
|
+
/**
|
|
4699
|
+
* Workspace-schema aggregates for one card, plus the caller's own member
|
|
4700
|
+
* role. Separate from the list because it opens a session against the
|
|
4701
|
+
* workspace's own schema — each card fetches its own.
|
|
4702
|
+
*/
|
|
4703
|
+
async getOrganizationWorkspaceStats(orgIdOrUuid, workspaceUuid) {
|
|
4704
|
+
return this.fetch(`o/${orgIdOrUuid}/workspaces/${workspaceUuid}/stats`);
|
|
4705
|
+
}
|
|
4657
4706
|
/**
|
|
4658
4707
|
* Create a workspace in an organization.
|
|
4659
4708
|
*/
|
|
@@ -5295,6 +5344,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
5295
5344
|
if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
5296
5345
|
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
5297
5346
|
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
5347
|
+
if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
|
|
5298
5348
|
return this.fetch(`w/${wid}/calls?${params}`);
|
|
5299
5349
|
}
|
|
5300
5350
|
/** List paginated voicemails for a phone number. */
|
|
@@ -7105,6 +7155,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7105
7155
|
qs.set("currentTaskId", String(params.currentTaskId));
|
|
7106
7156
|
if (params?.runtimeFailureEdgeId !== void 0)
|
|
7107
7157
|
qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
|
|
7158
|
+
if (params?.memberJourneyId !== void 0)
|
|
7159
|
+
qs.set("memberJourneyId", String(params.memberJourneyId));
|
|
7108
7160
|
const query = qs.toString();
|
|
7109
7161
|
return this.fetch(
|
|
7110
7162
|
`w/${wid}/journeys/${journeyId}/members${query ? `?${query}` : ""}`
|
|
@@ -7141,6 +7193,36 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7141
7193
|
async getMemberJourneys(wid, memberId) {
|
|
7142
7194
|
return this.fetch(`w/${wid}/journeys/by-member/${memberId}`);
|
|
7143
7195
|
}
|
|
7196
|
+
/**
|
|
7197
|
+
* Status history for one enrollment — the per-member journey timeline.
|
|
7198
|
+
*
|
|
7199
|
+
* This is where a step that completed having emitted nothing shows up as
|
|
7200
|
+
* `zeroEmission: true` with its reason, instead of being indistinguishable
|
|
7201
|
+
* from a step that sent (GRA-7341). Newest first.
|
|
7202
|
+
*
|
|
7203
|
+
* PHI-safe: identifiers, closed status codes, operator-authored step names,
|
|
7204
|
+
* counts, and timestamps. `entry.reason` is populated only for rows the
|
|
7205
|
+
* server allowlists; every other row reports `reasonRedacted: true`.
|
|
7206
|
+
*
|
|
7207
|
+
* `zeroEmissionOnly` narrows the page to the dropped-send rows. Use it when
|
|
7208
|
+
* that is all you need: without it a busy enrollment can push every
|
|
7209
|
+
* zero-emission row off the first page, and a caller that renders only what
|
|
7210
|
+
* it loaded would report "nothing was dropped" — the exact failure this
|
|
7211
|
+
* endpoint exists to eliminate. `zeroEmissionCount` is unaffected by the
|
|
7212
|
+
* filter and always counts the whole enrollment.
|
|
7213
|
+
*/
|
|
7214
|
+
async getEnrollmentStatusLog(wid, journeyId, memberJourneyId, params = {}) {
|
|
7215
|
+
const qs = new URLSearchParams();
|
|
7216
|
+
if (params.page !== void 0) qs.set("page", String(params.page));
|
|
7217
|
+
if (params.pageSize !== void 0) qs.set("pageSize", String(params.pageSize));
|
|
7218
|
+
if (params.zeroEmissionOnly !== void 0) {
|
|
7219
|
+
qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
|
|
7220
|
+
}
|
|
7221
|
+
const query = qs.toString();
|
|
7222
|
+
return this.fetch(
|
|
7223
|
+
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query ? `?${query}` : "")
|
|
7224
|
+
);
|
|
7225
|
+
}
|
|
7144
7226
|
/** List members currently or historically associated with one journey step. */
|
|
7145
7227
|
async getStepMembers(wid, journeyId, stepUuid, params = {}) {
|
|
7146
7228
|
const qs = new URLSearchParams();
|
|
@@ -7725,6 +7807,12 @@ var MemberImportPreviewRowAction = {
|
|
|
7725
7807
|
error: "error"
|
|
7726
7808
|
};
|
|
7727
7809
|
|
|
7810
|
+
// src/types/generated/member_role.ts
|
|
7811
|
+
var MergeMemberRolesRequestAccessStrategy = {
|
|
7812
|
+
union: "union",
|
|
7813
|
+
target_only: "target_only"
|
|
7814
|
+
};
|
|
7815
|
+
|
|
7728
7816
|
// src/types/member-types.ts
|
|
7729
7817
|
var MemberType = /* @__PURE__ */ ((MemberType2) => {
|
|
7730
7818
|
MemberType2["ANONYMOUS"] = "anonymous";
|
|
@@ -7733,6 +7821,37 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
|
|
|
7733
7821
|
MemberType2["AGENT"] = "agent";
|
|
7734
7822
|
return MemberType2;
|
|
7735
7823
|
})(MemberType || {});
|
|
7824
|
+
function structuredErrorDetail(error) {
|
|
7825
|
+
if (!error || typeof error !== "object") return null;
|
|
7826
|
+
const detail = error.errorData;
|
|
7827
|
+
if (!detail || typeof detail !== "object") return null;
|
|
7828
|
+
return detail;
|
|
7829
|
+
}
|
|
7830
|
+
function isMemberContactConflict(error) {
|
|
7831
|
+
const d = structuredErrorDetail(error);
|
|
7832
|
+
if (!d || d.code !== "MEMBER_CONTACT_CONFLICT") return null;
|
|
7833
|
+
if (d.conflictingMemberId !== null && typeof d.conflictingMemberId !== "number") {
|
|
7834
|
+
return null;
|
|
7835
|
+
}
|
|
7836
|
+
return d;
|
|
7837
|
+
}
|
|
7838
|
+
function isAccountContactConflict(error) {
|
|
7839
|
+
const d = structuredErrorDetail(error);
|
|
7840
|
+
if (!d || d.code !== "ACCOUNT_CONTACT_CONFLICT") return null;
|
|
7841
|
+
return d;
|
|
7842
|
+
}
|
|
7843
|
+
function archivedMemberConflictId(error) {
|
|
7844
|
+
const d = structuredErrorDetail(error);
|
|
7845
|
+
if (!d || d.code !== "ARCHIVED_MEMBER_CONFLICT") return null;
|
|
7846
|
+
return typeof d.archivedMemberId === "number" ? d.archivedMemberId : null;
|
|
7847
|
+
}
|
|
7848
|
+
function isIdentifiedMemberContactConflict(conflict) {
|
|
7849
|
+
return !!conflict && conflict.conflictingMemberId !== null;
|
|
7850
|
+
}
|
|
7851
|
+
function asIdentifiedMemberContactConflict(error) {
|
|
7852
|
+
const conflict = isMemberContactConflict(error);
|
|
7853
|
+
return isIdentifiedMemberContactConflict(conflict) ? conflict : null;
|
|
7854
|
+
}
|
|
7736
7855
|
|
|
7737
7856
|
// src/types/mcp-server-types.ts
|
|
7738
7857
|
var McpServerState = /* @__PURE__ */ ((McpServerState2) => {
|
|
@@ -7842,18 +7961,20 @@ var MASKED_SECRET_SENTINEL = "__SECRET_SET__";
|
|
|
7842
7961
|
// src/types/billing-types.ts
|
|
7843
7962
|
var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
7844
7963
|
WorkspaceFeature2["PHONE"] = "phone";
|
|
7964
|
+
WorkspaceFeature2["A2P_REGISTRATION"] = "a2p_registration";
|
|
7845
7965
|
WorkspaceFeature2["EMAIL"] = "email";
|
|
7846
7966
|
WorkspaceFeature2["WHATSAPP"] = "whatsapp";
|
|
7847
7967
|
WorkspaceFeature2["DISCORD"] = "discord";
|
|
7848
7968
|
WorkspaceFeature2["SLACK"] = "slack";
|
|
7849
7969
|
WorkspaceFeature2["TEAMS"] = "teams";
|
|
7850
7970
|
WorkspaceFeature2["SITES"] = "sites";
|
|
7851
|
-
WorkspaceFeature2["FORMS"] = "forms";
|
|
7852
7971
|
WorkspaceFeature2["MAPS"] = "maps";
|
|
7853
7972
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
7854
7973
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
7855
7974
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
7856
7975
|
WorkspaceFeature2["EXPERIMENTS"] = "experiments";
|
|
7976
|
+
WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
|
|
7977
|
+
WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
|
|
7857
7978
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
7858
7979
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
7859
7980
|
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
@@ -7870,6 +7991,9 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
7870
7991
|
WorkspaceFeature2["CONFLUENCE"] = "confluence";
|
|
7871
7992
|
WorkspaceFeature2["AGENT_MEMORY"] = "agent_memory";
|
|
7872
7993
|
WorkspaceFeature2["IMAGE_GENERATION"] = "image_generation";
|
|
7994
|
+
WorkspaceFeature2["STRICT_NATIVE_VOICE"] = "strict_native_voice";
|
|
7995
|
+
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
7996
|
+
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
7873
7997
|
return WorkspaceFeature2;
|
|
7874
7998
|
})(WorkspaceFeature || {});
|
|
7875
7999
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -7981,8 +8105,9 @@ var REALTIME_MODEL_GEMINI_VERTEX = "google:vertex:gemini-3.1-flash-live";
|
|
|
7981
8105
|
var REALTIME_MODEL_NOVA_SONIC = "aws:bedrock:nova-sonic-1";
|
|
7982
8106
|
var REALTIME_MODEL_CUSTOM = "custom:realtime:composable";
|
|
7983
8107
|
var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
|
|
8108
|
+
var STT_MODEL_DEEPGRAM_FLUX_SELFHOST = "deepgram:stt:flux-general-en:selfhost";
|
|
7984
8109
|
var STT_MODEL_DEEPGRAM_FLUX_MULTI = "deepgram:stt:flux-general-multi";
|
|
7985
|
-
var
|
|
8110
|
+
var STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST = "deepgram:stt:flux-general-multi:selfhost";
|
|
7986
8111
|
var TTS_MODEL_ELEVENLABS_FLASH = "elevenlabs:tts:eleven_flash_v2_5";
|
|
7987
8112
|
var TTS_MODEL_ELEVENLABS_TURBO = "elevenlabs:tts:eleven_turbo_v2_5";
|
|
7988
8113
|
var TTS_MODEL_ELEVENLABS_MULTILINGUAL = "elevenlabs:tts:eleven_multilingual_v2";
|
|
@@ -8072,6 +8197,99 @@ var ConsentMethod = /* @__PURE__ */ ((ConsentMethod2) => {
|
|
|
8072
8197
|
return ConsentMethod2;
|
|
8073
8198
|
})(ConsentMethod || {});
|
|
8074
8199
|
|
|
8200
|
+
// src/types/config-health-types.ts
|
|
8201
|
+
var CONFIG_HEALTH_FACADE_CHECK_SLUGS = [
|
|
8202
|
+
"workflow.config",
|
|
8203
|
+
"journey.authoring",
|
|
8204
|
+
"workflow.access",
|
|
8205
|
+
"routine.workflow_access",
|
|
8206
|
+
"workspace.validation"
|
|
8207
|
+
];
|
|
8208
|
+
function isConfigHealthFacadeCheckSlug(value) {
|
|
8209
|
+
return CONFIG_HEALTH_FACADE_CHECK_SLUGS.includes(value);
|
|
8210
|
+
}
|
|
8211
|
+
|
|
8212
|
+
// src/types/generated/activity_timeline.ts
|
|
8213
|
+
var ActivityActorKind = {
|
|
8214
|
+
member: "member",
|
|
8215
|
+
agent: "agent",
|
|
8216
|
+
operator: "operator",
|
|
8217
|
+
event_rule: "event_rule",
|
|
8218
|
+
api_key: "api_key",
|
|
8219
|
+
system: "system"
|
|
8220
|
+
};
|
|
8221
|
+
var ActivityAggregationKind = {
|
|
8222
|
+
burst: "burst",
|
|
8223
|
+
conversation_session: "conversation_session",
|
|
8224
|
+
operation: "operation"
|
|
8225
|
+
};
|
|
8226
|
+
var ActivityCaptureState = {
|
|
8227
|
+
active: "active",
|
|
8228
|
+
not_started: "not_started"
|
|
8229
|
+
};
|
|
8230
|
+
var ActivityConfigAction = {
|
|
8231
|
+
created: "created",
|
|
8232
|
+
updated: "updated",
|
|
8233
|
+
deleted: "deleted"
|
|
8234
|
+
};
|
|
8235
|
+
var ActivityConfigArea = {
|
|
8236
|
+
inbox: "inbox",
|
|
8237
|
+
phone_number: "phone_number",
|
|
8238
|
+
business_hours: "business_hours",
|
|
8239
|
+
escalation_settings: "escalation_settings",
|
|
8240
|
+
workspace_settings: "workspace_settings"
|
|
8241
|
+
};
|
|
8242
|
+
var ActivityCoverageLimitation = {
|
|
8243
|
+
none: "none",
|
|
8244
|
+
capture_started_at_cutover: "capture_started_at_cutover",
|
|
8245
|
+
legacy_baseline_incomplete: "legacy_baseline_incomplete",
|
|
8246
|
+
deletion_may_remove_history: "deletion_may_remove_history",
|
|
8247
|
+
config_capture_started: "config_capture_started"
|
|
8248
|
+
};
|
|
8249
|
+
var ActivityDirection = {
|
|
8250
|
+
inbound: "inbound",
|
|
8251
|
+
outbound: "outbound"
|
|
8252
|
+
};
|
|
8253
|
+
var ActivityEmptyReason = {
|
|
8254
|
+
collection: "collection",
|
|
8255
|
+
period: "period",
|
|
8256
|
+
filtered: "filtered"
|
|
8257
|
+
};
|
|
8258
|
+
var ActivityEventType = {
|
|
8259
|
+
workflow_started: "workflow_started",
|
|
8260
|
+
assignment_task_transition: "assignment_task_transition",
|
|
8261
|
+
journey_status_changed: "journey_status_changed",
|
|
8262
|
+
journey_step_status_changed: "journey_step_status_changed",
|
|
8263
|
+
journey_goal_status_changed: "journey_goal_status_changed",
|
|
8264
|
+
chat_started: "chat_started",
|
|
8265
|
+
message: "message",
|
|
8266
|
+
call: "call",
|
|
8267
|
+
form_field_changed: "form_field_changed",
|
|
8268
|
+
config_changed: "config_changed"
|
|
8269
|
+
};
|
|
8270
|
+
var ActivityEventTypePreset = {
|
|
8271
|
+
communications: "communications",
|
|
8272
|
+
formUpdates: "formUpdates",
|
|
8273
|
+
workflowTask: "workflowTask",
|
|
8274
|
+
journey: "journey",
|
|
8275
|
+
configuration: "configuration"
|
|
8276
|
+
};
|
|
8277
|
+
var ActivityGoalImpact = {
|
|
8278
|
+
neutral: "neutral",
|
|
8279
|
+
success: "success",
|
|
8280
|
+
attention: "attention",
|
|
8281
|
+
failure: "failure"
|
|
8282
|
+
};
|
|
8283
|
+
var ActivityTimelineProjection = {
|
|
8284
|
+
timeline: "timeline"
|
|
8285
|
+
};
|
|
8286
|
+
var FormValueDisposition = {
|
|
8287
|
+
shown: "shown",
|
|
8288
|
+
omitted_long: "omitted_long",
|
|
8289
|
+
omitted_structured: "omitted_structured",
|
|
8290
|
+
omitted_burst: "omitted_burst"
|
|
8291
|
+
};
|
|
8292
|
+
|
|
8075
8293
|
// src/types/experiment-types.ts
|
|
8076
8294
|
function parseExperimentStatCount(value) {
|
|
8077
8295
|
return typeof value === "number" ? value : null;
|
|
@@ -8629,6 +8847,32 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
8629
8847
|
`w/${wid}/dashboards/stats/workflow-assignments`
|
|
8630
8848
|
);
|
|
8631
8849
|
}
|
|
8850
|
+
/**
|
|
8851
|
+
* Current saved-configuration health across every family (Workflow
|
|
8852
|
+
* configuration, Journey authoring, Workflow access, Routine → Workflow
|
|
8853
|
+
* access, and the workspace lint).
|
|
8854
|
+
*
|
|
8855
|
+
* Requires ALL of `workflows:read`, `journeys:read`, `automations:read`,
|
|
8856
|
+
* `datatypes:read`, `members:read`, and `member_roles:read` — a pruned
|
|
8857
|
+
* subset would render as "all configuration is healthy".
|
|
8858
|
+
*
|
|
8859
|
+
* `page`/`pageSize` bound the response only; every family is evaluated in
|
|
8860
|
+
* full before the issue list is sliced. `check`/`severity` narrow the issue
|
|
8861
|
+
* list server-side, before pagination — filtering a single page in the
|
|
8862
|
+
* client cannot find a match that lives on a later one. `summary` and
|
|
8863
|
+
* `checks` are always workspace-global.
|
|
8864
|
+
*/
|
|
8865
|
+
async getConfigurationHealth(wid, options) {
|
|
8866
|
+
const params = new URLSearchParams();
|
|
8867
|
+
if (options?.page !== void 0) params.append("page", options.page.toString());
|
|
8868
|
+
if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
|
|
8869
|
+
if (options?.check !== void 0) params.append("check", options.check);
|
|
8870
|
+
if (options?.severity !== void 0) params.append("severity", options.severity);
|
|
8871
|
+
const query = params.toString();
|
|
8872
|
+
return this.fetch(
|
|
8873
|
+
`w/${wid}/configuration-health${query ? `?${query}` : ""}`
|
|
8874
|
+
);
|
|
8875
|
+
}
|
|
8632
8876
|
};
|
|
8633
8877
|
|
|
8634
8878
|
// src/api/teams-apps.ts
|
|
@@ -8805,6 +9049,17 @@ var PatientSyncConnectionsApi = class extends BaseApiClient {
|
|
|
8805
9049
|
}
|
|
8806
9050
|
};
|
|
8807
9051
|
|
|
9052
|
+
// src/api/activity-timeline.ts
|
|
9053
|
+
var ActivityTimelineApi = class extends BaseApiClient {
|
|
9054
|
+
/** One page of activity. Omit `cursor` for a fresh snapshot. */
|
|
9055
|
+
async queryActivityTimeline(wid, request = {}) {
|
|
9056
|
+
return this.fetch(`w/${wid}/activity-timeline/query`, {
|
|
9057
|
+
method: "POST",
|
|
9058
|
+
body: JSON.stringify(request)
|
|
9059
|
+
});
|
|
9060
|
+
}
|
|
9061
|
+
};
|
|
9062
|
+
|
|
8808
9063
|
// src/api/motd.ts
|
|
8809
9064
|
var MotdApi = class extends BaseApiClient {
|
|
8810
9065
|
/**
|
|
@@ -8824,6 +9079,84 @@ var MotdApi = class extends BaseApiClient {
|
|
|
8824
9079
|
}
|
|
8825
9080
|
};
|
|
8826
9081
|
|
|
9082
|
+
// src/api/intervention-requests.ts
|
|
9083
|
+
var InterventionRequestsApi = class extends BaseApiClient {
|
|
9084
|
+
/** List intervention requests in a workspace, newest first. */
|
|
9085
|
+
async getInterventionRequests(wid, params = {}) {
|
|
9086
|
+
const query = new URLSearchParams();
|
|
9087
|
+
if (params.kind) query.set("kind", params.kind);
|
|
9088
|
+
if (params.openOnly) query.set("openOnly", "true");
|
|
9089
|
+
if (params.chatId !== void 0) query.set("chatId", String(params.chatId));
|
|
9090
|
+
if (params.unroutedOnly) query.set("unroutedOnly", "true");
|
|
9091
|
+
if (params.limit !== void 0) query.set("limit", String(params.limit));
|
|
9092
|
+
const qs = query.toString();
|
|
9093
|
+
return this.fetch(
|
|
9094
|
+
`w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
|
|
9095
|
+
);
|
|
9096
|
+
}
|
|
9097
|
+
};
|
|
9098
|
+
|
|
9099
|
+
// src/api/metrics.ts
|
|
9100
|
+
var MetricsApi = class extends BaseApiClient {
|
|
9101
|
+
/** List metric definitions in the workspace, paginated. */
|
|
9102
|
+
async listMetrics(wid, params) {
|
|
9103
|
+
const q = new URLSearchParams();
|
|
9104
|
+
if (params?.page !== void 0) q.set("page", String(params.page));
|
|
9105
|
+
if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
|
|
9106
|
+
if (params?.includeArchived !== void 0)
|
|
9107
|
+
q.set("includeArchived", String(params.includeArchived));
|
|
9108
|
+
if (params?.source) q.set("source", params.source);
|
|
9109
|
+
const qs = q.toString() ? `?${q.toString()}` : "";
|
|
9110
|
+
return this.fetch(`w/${wid}/metrics${qs}`);
|
|
9111
|
+
}
|
|
9112
|
+
async getMetric(wid, id) {
|
|
9113
|
+
return this.fetch(`w/${wid}/metrics/${id}`);
|
|
9114
|
+
}
|
|
9115
|
+
async createMetric(wid, data) {
|
|
9116
|
+
return this.fetch(`w/${wid}/metrics`, {
|
|
9117
|
+
method: "POST",
|
|
9118
|
+
body: JSON.stringify(data)
|
|
9119
|
+
});
|
|
9120
|
+
}
|
|
9121
|
+
async updateMetric(wid, id, data) {
|
|
9122
|
+
return this.fetch(`w/${wid}/metrics/${id}`, {
|
|
9123
|
+
method: "PUT",
|
|
9124
|
+
body: JSON.stringify(data)
|
|
9125
|
+
});
|
|
9126
|
+
}
|
|
9127
|
+
/** Soft-archive a metric (observations retained). */
|
|
9128
|
+
async deleteMetric(wid, id) {
|
|
9129
|
+
return this.fetch(`w/${wid}/metrics/${id}`, { method: "DELETE" });
|
|
9130
|
+
}
|
|
9131
|
+
async listMetricObservations(wid, metricId, params) {
|
|
9132
|
+
const q = new URLSearchParams();
|
|
9133
|
+
q.set("start", params.start);
|
|
9134
|
+
q.set("end", params.end);
|
|
9135
|
+
if (params.page !== void 0) q.set("page", String(params.page));
|
|
9136
|
+
if (params.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
|
|
9137
|
+
return this.fetch(
|
|
9138
|
+
`w/${wid}/metrics/${metricId}/observations?${q.toString()}`
|
|
9139
|
+
);
|
|
9140
|
+
}
|
|
9141
|
+
async getMetricSeries(wid, metricId, params) {
|
|
9142
|
+
const q = new URLSearchParams();
|
|
9143
|
+
q.set("start", params.start);
|
|
9144
|
+
q.set("end", params.end);
|
|
9145
|
+
if (params.bucket) q.set("bucket", params.bucket);
|
|
9146
|
+
if (params.aggregation) q.set("aggregation", params.aggregation);
|
|
9147
|
+
return this.fetch(
|
|
9148
|
+
`w/${wid}/metrics/${metricId}/series?${q.toString()}`
|
|
9149
|
+
);
|
|
9150
|
+
}
|
|
9151
|
+
/** On-demand compute of enabled chat-source metrics for one chat. */
|
|
9152
|
+
async computeChatMetrics(wid, data) {
|
|
9153
|
+
return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
|
|
9154
|
+
method: "POST",
|
|
9155
|
+
body: JSON.stringify(data)
|
|
9156
|
+
});
|
|
9157
|
+
}
|
|
9158
|
+
};
|
|
9159
|
+
|
|
8827
9160
|
// src/api/tracked-links.ts
|
|
8828
9161
|
function withFilters(params, options) {
|
|
8829
9162
|
if (options.dateFrom) params.append("dateFrom", options.dateFrom);
|
|
@@ -9040,11 +9373,12 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
9040
9373
|
connectionSync: new ConnectionSyncApi(apiKey, baseUrl, customFetch),
|
|
9041
9374
|
mcpServers: new McpServersApi(apiKey, baseUrl, customFetch),
|
|
9042
9375
|
members: new MembersApi(apiKey, baseUrl, customFetch),
|
|
9043
|
-
|
|
9376
|
+
activityTimeline: new ActivityTimelineApi(apiKey, baseUrl, customFetch),
|
|
9044
9377
|
motd: new MotdApi(apiKey, baseUrl, customFetch),
|
|
9045
9378
|
trackedLinks: new TrackedLinksApi(apiKey, baseUrl, customFetch),
|
|
9046
9379
|
confluence: new ConfluenceApi(apiKey, baseUrl, customFetch),
|
|
9047
9380
|
mondayIntegration: new MondayIntegrationApi(apiKey, baseUrl, customFetch),
|
|
9381
|
+
interventionRequests: new InterventionRequestsApi(apiKey, baseUrl, customFetch),
|
|
9048
9382
|
notificationRules: new NotificationRulesApi(apiKey, baseUrl, customFetch),
|
|
9049
9383
|
oauth: new OAuthApi(apiKey, baseUrl, customFetch),
|
|
9050
9384
|
operatorGroups: new OperatorApi(apiKey, baseUrl, customFetch),
|
|
@@ -9054,6 +9388,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
9054
9388
|
pronunciations: new PronunciationsApi(apiKey, baseUrl, customFetch),
|
|
9055
9389
|
qualifications: new QualificationsApi(apiKey, baseUrl, customFetch),
|
|
9056
9390
|
personas: new PersonasApi(apiKey, baseUrl, customFetch),
|
|
9391
|
+
metrics: new MetricsApi(apiKey, baseUrl, customFetch),
|
|
9057
9392
|
queries: new QueriesApi(apiKey, baseUrl, customFetch),
|
|
9058
9393
|
reports: new ReportsApi(apiKey, baseUrl, customFetch),
|
|
9059
9394
|
salesforce: new SalesforceApi(apiKey, baseUrl, customFetch),
|
|
@@ -9167,7 +9502,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9167
9502
|
"createMemberMemory",
|
|
9168
9503
|
"createMemberRole",
|
|
9169
9504
|
"createMenuItem",
|
|
9170
|
-
"createMilestone",
|
|
9171
9505
|
"createNotificationRule",
|
|
9172
9506
|
"createOperatorGroup",
|
|
9173
9507
|
"createPage",
|
|
@@ -9234,7 +9568,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9234
9568
|
"deleteMemberMemory",
|
|
9235
9569
|
"deleteMemberRole",
|
|
9236
9570
|
"deleteMenuItem",
|
|
9237
|
-
"deleteMilestone",
|
|
9238
9571
|
"deleteMondayConnection",
|
|
9239
9572
|
"deleteNotificationRule",
|
|
9240
9573
|
"deleteOperatorGroup",
|
|
@@ -9385,6 +9718,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9385
9718
|
"getChatsNeedsResponse",
|
|
9386
9719
|
"getChildThreadMessages",
|
|
9387
9720
|
"getClientWorkspace",
|
|
9721
|
+
"getConfigurationHealth",
|
|
9388
9722
|
"getConfluenceStatus",
|
|
9389
9723
|
"getConnectionSyncCapabilities",
|
|
9390
9724
|
"getConnectionSyncCheckpoint",
|
|
@@ -9417,6 +9751,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9417
9751
|
"getDocumoFaxSetup",
|
|
9418
9752
|
"listDocumoFaxes",
|
|
9419
9753
|
"getDocumoFaxStatus",
|
|
9754
|
+
"getEnrollmentStatusLog",
|
|
9420
9755
|
"getEventRule",
|
|
9421
9756
|
"getEventRules",
|
|
9422
9757
|
"getExperiment",
|
|
@@ -9444,6 +9779,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9444
9779
|
"listChatRecordings",
|
|
9445
9780
|
"previewQuery",
|
|
9446
9781
|
"publishSiteSource",
|
|
9782
|
+
"queryActivityTimeline",
|
|
9447
9783
|
"registerDiscordSlashCommands",
|
|
9448
9784
|
"reopenWorkspaceSupportRequest",
|
|
9449
9785
|
"resetSiteSource",
|
|
@@ -9511,6 +9847,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9511
9847
|
"getMemberMemory",
|
|
9512
9848
|
"getMemberRecordCounts",
|
|
9513
9849
|
"getMemberRole",
|
|
9850
|
+
"getMemberRoleCleanupPlan",
|
|
9514
9851
|
"getMemberRoleByUuid",
|
|
9515
9852
|
"getMemberRoles",
|
|
9516
9853
|
"getMemberSyncLinks",
|
|
@@ -9519,8 +9856,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9519
9856
|
"getMembersMessageActivity",
|
|
9520
9857
|
"getMenuItems",
|
|
9521
9858
|
"getMessageTiming",
|
|
9522
|
-
"getMilestone",
|
|
9523
|
-
"getMilestones",
|
|
9524
9859
|
"getMondayConnectionBoardColumns",
|
|
9525
9860
|
"getMondayConnectionBoardGroups",
|
|
9526
9861
|
"getMondayConnectionBoards",
|
|
@@ -9562,6 +9897,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9562
9897
|
"getRecordingInfo",
|
|
9563
9898
|
"getResellerWorkspaces",
|
|
9564
9899
|
"getRoutine",
|
|
9900
|
+
"getRoutineConfigEvents",
|
|
9565
9901
|
"getRoutineRuns",
|
|
9566
9902
|
"getRoutines",
|
|
9567
9903
|
"getRuleExecutions",
|
|
@@ -9683,6 +10019,14 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9683
10019
|
"listHealthiePatients",
|
|
9684
10020
|
"listHealthieProviders",
|
|
9685
10021
|
"listPersonas",
|
|
10022
|
+
"listMetrics",
|
|
10023
|
+
"getMetric",
|
|
10024
|
+
"createMetric",
|
|
10025
|
+
"updateMetric",
|
|
10026
|
+
"deleteMetric",
|
|
10027
|
+
"listMetricObservations",
|
|
10028
|
+
"getMetricSeries",
|
|
10029
|
+
"computeChatMetrics",
|
|
9686
10030
|
"listPushSubscriptions",
|
|
9687
10031
|
"listSalesforceObjects",
|
|
9688
10032
|
"listScenarios",
|
|
@@ -9693,6 +10037,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9693
10037
|
"markEmailAsRead",
|
|
9694
10038
|
"markEmailAsUnread",
|
|
9695
10039
|
"markNotificationAsRead",
|
|
10040
|
+
"mergeMemberRoles",
|
|
9696
10041
|
"previewImportMembers",
|
|
9697
10042
|
"previewImportWorkspace",
|
|
9698
10043
|
"previewRoutineWorkflowAccess",
|
|
@@ -9821,7 +10166,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9821
10166
|
"updateMemberLabel",
|
|
9822
10167
|
"updateMemberRole",
|
|
9823
10168
|
"updateMenuItem",
|
|
9824
|
-
"updateMilestone",
|
|
9825
10169
|
"updateMondaySyncConfig",
|
|
9826
10170
|
"updateNotificationRule",
|
|
9827
10171
|
"updateOperatorGroup",
|
|
@@ -10006,6 +10350,12 @@ function bindDashboardsMethods(target, dashboards) {
|
|
|
10006
10350
|
target.deleteDashboard = dashboards.deleteDashboard.bind(dashboards);
|
|
10007
10351
|
target.getDashboardChannelStats = dashboards.getDashboardChannelStats.bind(dashboards);
|
|
10008
10352
|
target.getDashboardWorkflowAssignmentStats = dashboards.getDashboardWorkflowAssignmentStats.bind(dashboards);
|
|
10353
|
+
target.getConfigurationHealth = dashboards.getConfigurationHealth.bind(dashboards);
|
|
10354
|
+
}
|
|
10355
|
+
|
|
10356
|
+
// src/client/bindings/activity-timeline.ts
|
|
10357
|
+
function bindActivityTimelineMethods(target, activityTimeline) {
|
|
10358
|
+
target.queryActivityTimeline = activityTimeline.queryActivityTimeline.bind(activityTimeline);
|
|
10009
10359
|
}
|
|
10010
10360
|
|
|
10011
10361
|
// src/client/bindings/motd.ts
|
|
@@ -10426,7 +10776,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
10426
10776
|
}
|
|
10427
10777
|
|
|
10428
10778
|
// src/client/bindings/calendars.ts
|
|
10429
|
-
function bindCalendarsMethods(target, calendars
|
|
10779
|
+
function bindCalendarsMethods(target, calendars) {
|
|
10430
10780
|
target.getCalendars = calendars.getCalendars.bind(calendars);
|
|
10431
10781
|
target.getCalendar = calendars.getCalendar.bind(calendars);
|
|
10432
10782
|
target.createCalendar = calendars.createCalendar.bind(calendars);
|
|
@@ -10458,11 +10808,6 @@ function bindCalendarsMethods(target, calendars, milestones) {
|
|
|
10458
10808
|
target.linkCalendarToGoogle = calendars.linkCalendarToGoogle.bind(calendars);
|
|
10459
10809
|
target.unlinkCalendarFromGoogle = calendars.unlinkCalendarFromGoogle.bind(calendars);
|
|
10460
10810
|
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
10811
|
}
|
|
10467
10812
|
|
|
10468
10813
|
// src/client/bindings/communications.ts
|
|
@@ -10819,6 +11164,11 @@ function bindOrgMethods(target, org) {
|
|
|
10819
11164
|
target.updateBusinessProfile = org.updateBusinessProfile.bind(org);
|
|
10820
11165
|
target.submitBusinessProfile = org.submitBusinessProfile.bind(org);
|
|
10821
11166
|
target.cancelBusinessProfile = org.cancelBusinessProfile.bind(org);
|
|
11167
|
+
target.listLegalEntities = org.listLegalEntities.bind(org);
|
|
11168
|
+
target.getLegalEntity = org.getLegalEntity.bind(org);
|
|
11169
|
+
target.createLegalEntity = org.createLegalEntity.bind(org);
|
|
11170
|
+
target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
|
|
11171
|
+
target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
|
|
10822
11172
|
target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
|
|
10823
11173
|
target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
|
|
10824
11174
|
}
|
|
@@ -10865,6 +11215,7 @@ function bindJourneysMethods(target, journeys) {
|
|
|
10865
11215
|
target.reenrollMember = journeys.reenrollMember.bind(journeys);
|
|
10866
11216
|
target.deleteEnrollment = journeys.deleteEnrollment.bind(journeys);
|
|
10867
11217
|
target.getMemberJourneys = journeys.getMemberJourneys.bind(journeys);
|
|
11218
|
+
target.getEnrollmentStatusLog = journeys.getEnrollmentStatusLog.bind(journeys);
|
|
10868
11219
|
target.getStepMembers = journeys.getStepMembers.bind(journeys);
|
|
10869
11220
|
target.getStepMemberCounts = journeys.getStepMemberCounts.bind(journeys);
|
|
10870
11221
|
target.advanceStep = journeys.advanceStep.bind(journeys);
|
|
@@ -10902,6 +11253,18 @@ function bindPersonasMethods(target, personas) {
|
|
|
10902
11253
|
target.deletePersona = personas.deletePersona.bind(personas);
|
|
10903
11254
|
}
|
|
10904
11255
|
|
|
11256
|
+
// src/client/bindings/metrics.ts
|
|
11257
|
+
function bindMetricsMethods(target, metrics) {
|
|
11258
|
+
target.listMetrics = metrics.listMetrics.bind(metrics);
|
|
11259
|
+
target.getMetric = metrics.getMetric.bind(metrics);
|
|
11260
|
+
target.createMetric = metrics.createMetric.bind(metrics);
|
|
11261
|
+
target.updateMetric = metrics.updateMetric.bind(metrics);
|
|
11262
|
+
target.deleteMetric = metrics.deleteMetric.bind(metrics);
|
|
11263
|
+
target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
|
|
11264
|
+
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
11265
|
+
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
11266
|
+
}
|
|
11267
|
+
|
|
10905
11268
|
// src/client/bindings/queries.ts
|
|
10906
11269
|
function bindQueriesMethods(target, queries) {
|
|
10907
11270
|
target.getQueryFields = queries.getQueryFields.bind(queries);
|
|
@@ -11110,6 +11473,8 @@ var GravityRailClient = class {
|
|
|
11110
11473
|
createMemberRole;
|
|
11111
11474
|
updateMemberRole;
|
|
11112
11475
|
deleteMemberRole;
|
|
11476
|
+
getMemberRoleCleanupPlan;
|
|
11477
|
+
mergeMemberRoles;
|
|
11113
11478
|
// Member Fields
|
|
11114
11479
|
getMemberFields;
|
|
11115
11480
|
getMemberFieldDefinitions;
|
|
@@ -11170,6 +11535,15 @@ var GravityRailClient = class {
|
|
|
11170
11535
|
createPersona;
|
|
11171
11536
|
updatePersona;
|
|
11172
11537
|
deletePersona;
|
|
11538
|
+
// Metrics API (customer-defined outcome metrics)
|
|
11539
|
+
listMetrics;
|
|
11540
|
+
getMetric;
|
|
11541
|
+
createMetric;
|
|
11542
|
+
updateMetric;
|
|
11543
|
+
deleteMetric;
|
|
11544
|
+
listMetricObservations;
|
|
11545
|
+
getMetricSeries;
|
|
11546
|
+
computeChatMetrics;
|
|
11173
11547
|
// Dashboards API
|
|
11174
11548
|
getDashboards;
|
|
11175
11549
|
getDashboard;
|
|
@@ -11178,6 +11552,9 @@ var GravityRailClient = class {
|
|
|
11178
11552
|
deleteDashboard;
|
|
11179
11553
|
getDashboardChannelStats;
|
|
11180
11554
|
getDashboardWorkflowAssignmentStats;
|
|
11555
|
+
getConfigurationHealth;
|
|
11556
|
+
// Activity Timeline API
|
|
11557
|
+
queryActivityTimeline;
|
|
11181
11558
|
// MOTD API
|
|
11182
11559
|
getMotd;
|
|
11183
11560
|
// Tracked Links analytics (#10934)
|
|
@@ -11213,6 +11590,7 @@ var GravityRailClient = class {
|
|
|
11213
11590
|
reenrollMember;
|
|
11214
11591
|
deleteEnrollment;
|
|
11215
11592
|
getMemberJourneys;
|
|
11593
|
+
getEnrollmentStatusLog;
|
|
11216
11594
|
getStepMembers;
|
|
11217
11595
|
getStepMemberCounts;
|
|
11218
11596
|
advanceStep;
|
|
@@ -11331,6 +11709,11 @@ var GravityRailClient = class {
|
|
|
11331
11709
|
updateBusinessProfile;
|
|
11332
11710
|
submitBusinessProfile;
|
|
11333
11711
|
cancelBusinessProfile;
|
|
11712
|
+
listLegalEntities;
|
|
11713
|
+
getLegalEntity;
|
|
11714
|
+
createLegalEntity;
|
|
11715
|
+
getVoiceTrustProducts;
|
|
11716
|
+
syncVoiceTrustProducts;
|
|
11334
11717
|
createOrganizationWorkspace;
|
|
11335
11718
|
getOrgBillingCustomer;
|
|
11336
11719
|
getVapidPublicKey;
|
|
@@ -11509,6 +11892,7 @@ var GravityRailClient = class {
|
|
|
11509
11892
|
updateRoutine;
|
|
11510
11893
|
deleteRoutine;
|
|
11511
11894
|
runRoutine;
|
|
11895
|
+
getRoutineConfigEvents;
|
|
11512
11896
|
getRoutineRuns;
|
|
11513
11897
|
resetRoutineRuns;
|
|
11514
11898
|
previewSchedule;
|
|
@@ -11592,11 +11976,6 @@ var GravityRailClient = class {
|
|
|
11592
11976
|
linkCalendarToGoogle;
|
|
11593
11977
|
unlinkCalendarFromGoogle;
|
|
11594
11978
|
syncCalendarWithGoogle;
|
|
11595
|
-
getMilestones;
|
|
11596
|
-
getMilestone;
|
|
11597
|
-
createMilestone;
|
|
11598
|
-
updateMilestone;
|
|
11599
|
-
deleteMilestone;
|
|
11600
11979
|
// Communications API
|
|
11601
11980
|
getPhoneNumbers;
|
|
11602
11981
|
getAvailablePhoneNumbers;
|
|
@@ -11976,8 +12355,10 @@ var GravityRailClient = class {
|
|
|
11976
12355
|
bindAgentsMethods(this, apis.agents);
|
|
11977
12356
|
bindQualificationsMethods(this, apis.qualifications);
|
|
11978
12357
|
bindPersonasMethods(this, apis.personas);
|
|
12358
|
+
bindMetricsMethods(this, apis.metrics);
|
|
11979
12359
|
bindQueriesMethods(this, apis.queries);
|
|
11980
12360
|
bindDashboardsMethods(this, apis.dashboards);
|
|
12361
|
+
bindActivityTimelineMethods(this, apis.activityTimeline);
|
|
11981
12362
|
bindMotdMethods(this, apis.motd);
|
|
11982
12363
|
bindTrackedLinksMethods(this, apis.trackedLinks);
|
|
11983
12364
|
bindJourneysMethods(this, apis.journeys);
|
|
@@ -11992,7 +12373,7 @@ var GravityRailClient = class {
|
|
|
11992
12373
|
bindFilesMethods(this, apis.files);
|
|
11993
12374
|
bindEventsMethods(this, apis.events);
|
|
11994
12375
|
bindWorkflowsMethods(this, apis.workflows, apis.workflowNotes, apis.voice, apis.supervisors);
|
|
11995
|
-
bindCalendarsMethods(this, apis.calendars
|
|
12376
|
+
bindCalendarsMethods(this, apis.calendars);
|
|
11996
12377
|
bindCommunicationsMethods(this, apis.phoneNumbers, apis.inboxes, apis.notificationRules);
|
|
11997
12378
|
bindToolkitsMethods(
|
|
11998
12379
|
this,
|
|
@@ -12342,7 +12723,9 @@ var AbilityConfigIssueCode = {
|
|
|
12342
12723
|
invalid_state: "invalid_state",
|
|
12343
12724
|
feature_disabled: "feature_disabled",
|
|
12344
12725
|
missing_connection: "missing_connection",
|
|
12345
|
-
external_drift: "external_drift"
|
|
12726
|
+
external_drift: "external_drift",
|
|
12727
|
+
missing_task_instructions: "missing_task_instructions",
|
|
12728
|
+
no_qualification_scenarios: "no_qualification_scenarios"
|
|
12346
12729
|
};
|
|
12347
12730
|
var AbilityConfigIssueSeverity = {
|
|
12348
12731
|
warning: "warning",
|
|
@@ -12355,6 +12738,12 @@ var WorkflowAccessWarningResourceType = {
|
|
|
12355
12738
|
calendar: "calendar"
|
|
12356
12739
|
};
|
|
12357
12740
|
|
|
12741
|
+
// src/types/generated/workflow.ts
|
|
12742
|
+
var WorkflowRoutingMode = {
|
|
12743
|
+
open_world: "open_world",
|
|
12744
|
+
strict: "strict"
|
|
12745
|
+
};
|
|
12746
|
+
|
|
12358
12747
|
// src/types/widget-domain-types.ts
|
|
12359
12748
|
var WIDGET_SLUGS = ["chat", "operator", "operator-tools", "chat-app"];
|
|
12360
12749
|
|
|
@@ -12777,7 +13166,10 @@ var SCOPES = {
|
|
|
12777
13166
|
"workflows:read": {
|
|
12778
13167
|
name: "workflows:read",
|
|
12779
13168
|
category: "workflows" /* WORKFLOWS */,
|
|
12780
|
-
|
|
13169
|
+
// Object access is separate: listing and opening a specific workflow
|
|
13170
|
+
// additionally require ownership, workflows:admin, a workflow role
|
|
13171
|
+
// association, or an access grant (WorkflowAction.USE).
|
|
13172
|
+
description: "Access the Workflows area and view workflows shared with you"
|
|
12781
13173
|
},
|
|
12782
13174
|
"workflows:write": {
|
|
12783
13175
|
name: "workflows:write",
|
|
@@ -13321,7 +13713,6 @@ export {
|
|
|
13321
13713
|
McpServersApi,
|
|
13322
13714
|
MemberImportValidationError,
|
|
13323
13715
|
MembersApi,
|
|
13324
|
-
MilestonesApi,
|
|
13325
13716
|
MondayIntegrationApi,
|
|
13326
13717
|
NotificationRulesApi,
|
|
13327
13718
|
OperatorApi,
|
|
@@ -13372,7 +13763,13 @@ export {
|
|
|
13372
13763
|
BulkMemberResultStatus,
|
|
13373
13764
|
MemberImportMatchInfoMatchType,
|
|
13374
13765
|
MemberImportPreviewRowAction,
|
|
13766
|
+
MergeMemberRolesRequestAccessStrategy,
|
|
13375
13767
|
MemberType,
|
|
13768
|
+
isMemberContactConflict,
|
|
13769
|
+
isAccountContactConflict,
|
|
13770
|
+
archivedMemberConflictId,
|
|
13771
|
+
isIdentifiedMemberContactConflict,
|
|
13772
|
+
asIdentifiedMemberContactConflict,
|
|
13376
13773
|
McpServerState,
|
|
13377
13774
|
ToolkitState,
|
|
13378
13775
|
EventRuleObjectType,
|
|
@@ -13399,8 +13796,9 @@ export {
|
|
|
13399
13796
|
REALTIME_MODEL_NOVA_SONIC,
|
|
13400
13797
|
REALTIME_MODEL_CUSTOM,
|
|
13401
13798
|
STT_MODEL_DEEPGRAM_FLUX,
|
|
13799
|
+
STT_MODEL_DEEPGRAM_FLUX_SELFHOST,
|
|
13402
13800
|
STT_MODEL_DEEPGRAM_FLUX_MULTI,
|
|
13403
|
-
|
|
13801
|
+
STT_MODEL_DEEPGRAM_FLUX_MULTI_SELFHOST,
|
|
13404
13802
|
TTS_MODEL_ELEVENLABS_FLASH,
|
|
13405
13803
|
TTS_MODEL_ELEVENLABS_TURBO,
|
|
13406
13804
|
TTS_MODEL_ELEVENLABS_MULTILINGUAL,
|
|
@@ -13419,6 +13817,21 @@ export {
|
|
|
13419
13817
|
AccessGrantStatus,
|
|
13420
13818
|
AccessGrantTrigger,
|
|
13421
13819
|
ConsentMethod,
|
|
13820
|
+
CONFIG_HEALTH_FACADE_CHECK_SLUGS,
|
|
13821
|
+
isConfigHealthFacadeCheckSlug,
|
|
13822
|
+
ActivityActorKind,
|
|
13823
|
+
ActivityAggregationKind,
|
|
13824
|
+
ActivityCaptureState,
|
|
13825
|
+
ActivityConfigAction,
|
|
13826
|
+
ActivityConfigArea,
|
|
13827
|
+
ActivityCoverageLimitation,
|
|
13828
|
+
ActivityDirection,
|
|
13829
|
+
ActivityEmptyReason,
|
|
13830
|
+
ActivityEventType,
|
|
13831
|
+
ActivityEventTypePreset,
|
|
13832
|
+
ActivityGoalImpact,
|
|
13833
|
+
ActivityTimelineProjection,
|
|
13834
|
+
FormValueDisposition,
|
|
13422
13835
|
parseExperimentStatCount,
|
|
13423
13836
|
TERMINAL_TASK_STATES,
|
|
13424
13837
|
WorkspaceInvitationsApi,
|
|
@@ -13433,6 +13846,7 @@ export {
|
|
|
13433
13846
|
bindChatsMethods,
|
|
13434
13847
|
bindCallsMethods,
|
|
13435
13848
|
bindDashboardsMethods,
|
|
13849
|
+
bindActivityTimelineMethods,
|
|
13436
13850
|
bindMotdMethods,
|
|
13437
13851
|
bindTrackedLinksMethods,
|
|
13438
13852
|
bindDataTypesMethods,
|
|
@@ -13456,6 +13870,7 @@ export {
|
|
|
13456
13870
|
bindJourneysMethods,
|
|
13457
13871
|
bindQualificationsMethods,
|
|
13458
13872
|
bindPersonasMethods,
|
|
13873
|
+
bindMetricsMethods,
|
|
13459
13874
|
bindQueriesMethods,
|
|
13460
13875
|
bindCustomersMethods,
|
|
13461
13876
|
bindResellersMethods,
|
|
@@ -13488,6 +13903,7 @@ export {
|
|
|
13488
13903
|
AbilityConfigIssueCode,
|
|
13489
13904
|
AbilityConfigIssueSeverity,
|
|
13490
13905
|
WorkflowAccessWarningResourceType,
|
|
13906
|
+
WorkflowRoutingMode,
|
|
13491
13907
|
WIDGET_SLUGS,
|
|
13492
13908
|
PromoCodeStatus,
|
|
13493
13909
|
FeatureCategory,
|
|
@@ -13524,4 +13940,4 @@ export {
|
|
|
13524
13940
|
SCOPE_PRESETS,
|
|
13525
13941
|
getRevisionState
|
|
13526
13942
|
};
|
|
13527
|
-
//# sourceMappingURL=chunk-
|
|
13943
|
+
//# sourceMappingURL=chunk-MP5ENP4Q.js.map
|