@gravity-rail/sdk 3.2.0 → 6.0.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/README.md +20 -3
- package/dist/account-CSJJbLIj.d.cts +459 -0
- package/dist/account-CSJJbLIj.d.ts +459 -0
- package/dist/{path-ChuuGGLG.d.ts → agent_standing_job-CqKpMoHO.d.cts} +1099 -153
- package/dist/{path-CXnjBalr.d.cts → agent_standing_job-yehTe972.d.ts} +1099 -153
- package/dist/{chat-interaction-Cc9hQNyx.d.ts → chat-interaction-BtUtVszg.d.ts} +14107 -9967
- package/dist/{chat-interaction-CoHsIqyX.d.cts → chat-interaction-CAfwlYvv.d.cts} +14107 -9967
- package/dist/{chunk-MAPAZORN.js → chunk-L4XC6KDG.js} +1940 -605
- package/dist/chunk-L4XC6KDG.js.map +1 -0
- package/dist/{chunk-D5VNVTUQ.js → chunk-P2MSMMMJ.js} +120 -2
- package/dist/chunk-P2MSMMMJ.js.map +1 -0
- package/dist/{chunk-RLFS7O2L.js → chunk-P2X5TOYY.js} +211 -83
- package/dist/chunk-P2X5TOYY.js.map +1 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +3 -2
- package/dist/helpers.d.ts +3 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +2309 -1146
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -249
- package/dist/index.d.ts +87 -249
- package/dist/index.js +171 -458
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +2333 -710
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2486 -285
- package/dist/internal.d.ts +2486 -285
- package/dist/internal.js +158 -31
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-BWyl88Qx.d.ts → member-import-C5nnoGvW.d.ts} +1 -1
- package/dist/{member-import-9h52_4KO.d.cts → member-import-DhaNVT7s.d.cts} +1 -1
- package/dist/realtime.cjs +250 -3
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +87 -4
- package/dist/realtime.d.ts +87 -4
- package/dist/realtime.js +245 -3
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +156 -23
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +623 -72
- package/dist/schemas.d.ts +623 -72
- package/dist/schemas.js +74 -25
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-B7tIHQcS.d.cts → tasks-A12E_RLa.d.cts} +2275 -2043
- package/dist/{tasks-B7tIHQcS.d.ts → tasks-DrmyOlRh.d.ts} +2275 -2043
- package/dist/{types-BXaWYGHj.d.cts → types-Bv6GtLZ2.d.cts} +25 -2
- package/dist/{types-BXaWYGHj.d.ts → types-Bv6GtLZ2.d.ts} +25 -2
- package/package.json +5 -5
- package/dist/chunk-D5VNVTUQ.js.map +0 -1
- package/dist/chunk-MAPAZORN.js.map +0 -1
- package/dist/chunk-RLFS7O2L.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
BaseApiClient
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P2X5TOYY.js";
|
|
5
5
|
|
|
6
6
|
// src/api/abilities.ts
|
|
7
7
|
var AbilitiesApi = class extends BaseApiClient {
|
|
@@ -174,6 +174,19 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
174
174
|
async listBundleWorkflowCandidates(wid) {
|
|
175
175
|
return this.fetch(bundlesPath(wid, "workflow-candidates"));
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* The Bundles of this workspace that hold a Workflow, and what of the
|
|
179
|
+
* Workflow's draft a Bundle cannot carry (`issues`, `problems`: the check a
|
|
180
|
+
* Bundle runs when it adds or publishes the Workflow, run on its draft for
|
|
181
|
+
* the acting Member). A Bundle's draft is listed only for
|
|
182
|
+
* `workflows:admin`. Requires `workflows:read` and read access to the
|
|
183
|
+
* Workflow; 404 otherwise.
|
|
184
|
+
*/
|
|
185
|
+
async getWorkflowBundleMembership(wid, workflowUuid) {
|
|
186
|
+
return this.fetch(
|
|
187
|
+
bundlesPath(wid, "workflow-membership", workflowUuid)
|
|
188
|
+
);
|
|
189
|
+
}
|
|
177
190
|
/**
|
|
178
191
|
* This workspace's Journeys for the Bundle picker, by name. Nothing is built
|
|
179
192
|
* for the list. `available` is false while the server refuses Journey items.
|
|
@@ -184,11 +197,11 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
184
197
|
}
|
|
185
198
|
/**
|
|
186
199
|
* One Journey as the Bundle item that adds it: the whole Journey item the
|
|
187
|
-
* server built (`item`), the Forms
|
|
200
|
+
* server built (`item`) with who enters it, the Forms it reads, the saved
|
|
201
|
+
* Member filters its conditions use (`filters`) and the Workflows its
|
|
188
202
|
* actions start, or the `problems` that name what the Journey must change
|
|
189
|
-
* first.
|
|
190
|
-
*
|
|
191
|
-
* `workflows:admin` and `journeys:write`.
|
|
203
|
+
* first. Requires `workflows:admin` and `journeys:write`; listing a saved
|
|
204
|
+
* filter also takes `members:read`.
|
|
192
205
|
*/
|
|
193
206
|
async getBundleJourneyCandidate(wid, journeyUuid) {
|
|
194
207
|
return this.fetch(
|
|
@@ -222,7 +235,28 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
222
235
|
body: JSON.stringify(data)
|
|
223
236
|
});
|
|
224
237
|
}
|
|
225
|
-
/**
|
|
238
|
+
/**
|
|
239
|
+
* What publishing the saved draft now would put in the next version: each
|
|
240
|
+
* draft item as `ready`, `held` (stays as the last published version had
|
|
241
|
+
* it) or `blocked`, with a closed `reason`; how each differs
|
|
242
|
+
* from the last published version, a Workflow's revision before and after;
|
|
243
|
+
* and the `planToken` to pass as `expectedPlan` on publish. 409 when
|
|
244
|
+
* `expectedGeneration` is stale. Requires `workflows:admin`.
|
|
245
|
+
*/
|
|
246
|
+
async getBundlePublishPreview(wid, bundleUuid, expectedGeneration) {
|
|
247
|
+
const query2 = new URLSearchParams({ expectedGeneration: String(expectedGeneration) });
|
|
248
|
+
return this.fetch(
|
|
249
|
+
`${bundlesPath(wid, bundleUuid, "publish-preview")}?${query2.toString()}`
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Cut a new immutable version from the draft: every Workflow's newest
|
|
254
|
+
* published revision and every other item as its source is now. 409 when
|
|
255
|
+
* `expectedGeneration` is stale, when `expectedPlan` no longer matches the
|
|
256
|
+
* preview (`bundle_publish_plan_changed`), or when the version would carry
|
|
257
|
+
* exactly what the last one carries, with no example scenarios on either
|
|
258
|
+
* (`bundle_version_unchanged`).
|
|
259
|
+
*/
|
|
226
260
|
async publishBundle(wid, bundleUuid, data) {
|
|
227
261
|
return this.fetch(bundlesPath(wid, bundleUuid, "publish"), {
|
|
228
262
|
method: "POST",
|
|
@@ -308,10 +342,15 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
308
342
|
* Open slots, bindings whose target no longer resolves, Forms that drifted
|
|
309
343
|
* from their recipe, missing or changed Workflow dependencies, and archived
|
|
310
344
|
* items. Computed on read, never stored.
|
|
345
|
+
*
|
|
346
|
+
* With `verifyProvider`, also reads each linked number's live callbacks from
|
|
347
|
+
* the phone provider, bounded and read-only; this needs `phones:read` too. A
|
|
348
|
+
* failed provider read comes back `unverified`, never `configured`.
|
|
311
349
|
*/
|
|
312
|
-
async getInstallationReadiness(wid, installationUuid) {
|
|
350
|
+
async getInstallationReadiness(wid, installationUuid, options = {}) {
|
|
351
|
+
const path = installationsPath(wid, installationUuid, "readiness");
|
|
313
352
|
return this.fetch(
|
|
314
|
-
|
|
353
|
+
options.verifyProvider ? `${path}?verifyProvider=true` : path
|
|
315
354
|
);
|
|
316
355
|
}
|
|
317
356
|
/**
|
|
@@ -366,7 +405,23 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
366
405
|
{ method: "POST", body: JSON.stringify({}) }
|
|
367
406
|
);
|
|
368
407
|
}
|
|
369
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* The installation's per-workspace Ability settings and their values. A value
|
|
410
|
+
* is returned only from an installed Workflow the caller may read the
|
|
411
|
+
* Abilities of (`agents:read` and Workflow use); otherwise it is `null`.
|
|
412
|
+
*/
|
|
413
|
+
async getInstallationAbilitySettings(wid, installationUuid) {
|
|
414
|
+
return this.fetch(
|
|
415
|
+
installationsPath(wid, installationUuid, "ability-settings")
|
|
416
|
+
);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Fill open slots. A slot that already carries a target is refused with 409,
|
|
420
|
+
* except one sent with `replace: true` that is a local setting of the
|
|
421
|
+
* installation: a per-workspace Ability setting or a shared install field,
|
|
422
|
+
* whose new value replaces the held one on every setting it fills, a
|
|
423
|
+
* Workflow's Inbox or phone number, a recording, or a routing endpoint.
|
|
424
|
+
*/
|
|
370
425
|
async bindInstallationSlots(wid, installationUuid, data) {
|
|
371
426
|
return this.fetch(
|
|
372
427
|
installationsPath(wid, installationUuid, "bindings"),
|
|
@@ -520,6 +575,27 @@ var AgentTasksApi = class extends BaseApiClient {
|
|
|
520
575
|
|
|
521
576
|
// src/api/agents.ts
|
|
522
577
|
var AgentsApi = class extends BaseApiClient {
|
|
578
|
+
orgAgentJobsPath(orgUuid, agentUuid) {
|
|
579
|
+
return `o/${encodeURIComponent(orgUuid)}/agents/${encodeURIComponent(agentUuid)}/jobs`;
|
|
580
|
+
}
|
|
581
|
+
/** List the current organization's teammate's operational Agent Jobs. */
|
|
582
|
+
async getOrgAgentJobs(orgUuid, agentUuid, options = {}) {
|
|
583
|
+
const params = new URLSearchParams();
|
|
584
|
+
if (options.before) params.set("before", options.before);
|
|
585
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
586
|
+
if (options.status) params.set("status", options.status);
|
|
587
|
+
const search = params.toString();
|
|
588
|
+
return this.fetch(
|
|
589
|
+
`${this.orgAgentJobsPath(orgUuid, agentUuid)}${search ? `?${search}` : ""}`
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
/** Stop one of the current teammate's Jobs and its active descendants. */
|
|
593
|
+
async stopOrgAgentJob(orgUuid, agentUuid, jobUuid) {
|
|
594
|
+
return this.fetch(
|
|
595
|
+
`${this.orgAgentJobsPath(orgUuid, agentUuid)}/${encodeURIComponent(jobUuid)}/stop`,
|
|
596
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
597
|
+
);
|
|
598
|
+
}
|
|
523
599
|
/** List agents in a workspace with optional pagination, sorting, and search. */
|
|
524
600
|
async getAgents(wid, options = {}) {
|
|
525
601
|
const params = new URLSearchParams();
|
|
@@ -721,6 +797,21 @@ var ApiKeysApi = class extends BaseApiClient {
|
|
|
721
797
|
}
|
|
722
798
|
};
|
|
723
799
|
|
|
800
|
+
// src/api/app-links.ts
|
|
801
|
+
var AppLinksApi = class extends BaseApiClient {
|
|
802
|
+
/**
|
|
803
|
+
* Resolve an App Link to the concrete chat it opens.
|
|
804
|
+
*
|
|
805
|
+
* `linkParams` is the `?with=&mode=&action=&channel=` suffix built from the
|
|
806
|
+
* link's search params (an empty string when the link carries none). The
|
|
807
|
+
* resolver re-runs the current session's workspace authorization; the
|
|
808
|
+
* response is ids and closed-vocabulary enums only, never PHI.
|
|
809
|
+
*/
|
|
810
|
+
async resolveAppLink(wid, linkParams = "") {
|
|
811
|
+
return this.fetch(`w/${wid}/app-links/resolve${linkParams}`);
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
|
|
724
815
|
// src/api/apps.ts
|
|
725
816
|
var AppsApi = class extends BaseApiClient {
|
|
726
817
|
/**
|
|
@@ -936,6 +1027,19 @@ var AuthApi = class extends BaseApiClient {
|
|
|
936
1027
|
body: JSON.stringify(info)
|
|
937
1028
|
});
|
|
938
1029
|
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Set the account's face: an icon, a colour, or an uploaded image.
|
|
1032
|
+
*
|
|
1033
|
+
* Only the fields sent are applied, so a picker can change the colour
|
|
1034
|
+
* without touching the icon. Sending `icon` or `color` clears an uploaded
|
|
1035
|
+
* image; sending an image clears the explicit pick.
|
|
1036
|
+
*/
|
|
1037
|
+
async updateMemberAvatar(request) {
|
|
1038
|
+
return this.fetch("account/avatar", {
|
|
1039
|
+
method: "PUT",
|
|
1040
|
+
body: JSON.stringify(request)
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
939
1043
|
/**
|
|
940
1044
|
* Persist the account's FIRST-touch marketing attribution (write-once).
|
|
941
1045
|
*
|
|
@@ -1507,7 +1611,9 @@ var CalendarsApi = class extends BaseApiClient {
|
|
|
1507
1611
|
body: JSON.stringify({ cancellationReason: reason })
|
|
1508
1612
|
});
|
|
1509
1613
|
}
|
|
1510
|
-
/** Delete
|
|
1614
|
+
/** Delete the local event. Native Google bookings return PENDING or FAILED
|
|
1615
|
+
* until provider removal is confirmed. Null is not a provider-removal receipt.
|
|
1616
|
+
*/
|
|
1511
1617
|
async deleteCalendarEvent(wid, eventId) {
|
|
1512
1618
|
return this.fetch(`w/${wid}/calendar-events/${eventId}`, {
|
|
1513
1619
|
method: "DELETE"
|
|
@@ -1695,8 +1801,61 @@ var CELApi = class extends BaseApiClient {
|
|
|
1695
1801
|
}
|
|
1696
1802
|
};
|
|
1697
1803
|
|
|
1804
|
+
// src/api/chat.ts
|
|
1805
|
+
var ChatApi = class {
|
|
1806
|
+
constructor(scope, request) {
|
|
1807
|
+
this.request = request;
|
|
1808
|
+
this.base = `w/${encodeURIComponent(scope.scopeUuid)}/chats`;
|
|
1809
|
+
this.testMemberId = scope.testMemberId;
|
|
1810
|
+
}
|
|
1811
|
+
request;
|
|
1812
|
+
base;
|
|
1813
|
+
testMemberId;
|
|
1814
|
+
path(chat, suffix2 = "", params = new URLSearchParams()) {
|
|
1815
|
+
if (this.testMemberId !== void 0) params.set("test_member_id", String(this.testMemberId));
|
|
1816
|
+
return `${this.base}${chat === void 0 ? "" : `/${encodeURIComponent(chat)}`}${suffix2}${params.size ? `?${params}` : ""}`;
|
|
1817
|
+
}
|
|
1818
|
+
snapshot(chat, options = {}) {
|
|
1819
|
+
const params = new URLSearchParams();
|
|
1820
|
+
if (options.before !== void 0) params.set("before", String(options.before));
|
|
1821
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
1822
|
+
return this.request(this.path(chat, "/snapshot", params), {
|
|
1823
|
+
cache: "no-store",
|
|
1824
|
+
signal: options.signal
|
|
1825
|
+
});
|
|
1826
|
+
}
|
|
1827
|
+
create(body) {
|
|
1828
|
+
return this.request(this.path(), { method: "POST", body: JSON.stringify(body) });
|
|
1829
|
+
}
|
|
1830
|
+
send(chat, body) {
|
|
1831
|
+
return this.request(this.path(chat, "/input"), {
|
|
1832
|
+
method: "POST",
|
|
1833
|
+
body: JSON.stringify(body)
|
|
1834
|
+
});
|
|
1835
|
+
}
|
|
1836
|
+
respond(chat, body) {
|
|
1837
|
+
return this.request(this.path(chat, "/responses"), {
|
|
1838
|
+
method: "POST",
|
|
1839
|
+
body: JSON.stringify(body)
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
stop(chat, body) {
|
|
1843
|
+
return this.request(this.path(chat, "/stop"), {
|
|
1844
|
+
method: "POST",
|
|
1845
|
+
body: JSON.stringify(body)
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1698
1850
|
// src/api/chats.ts
|
|
1699
1851
|
var ChatsApi = class extends BaseApiClient {
|
|
1852
|
+
/** Bind the Chat lifecycle API to its authority base once. */
|
|
1853
|
+
chat(scope) {
|
|
1854
|
+
return new ChatApi(
|
|
1855
|
+
scope,
|
|
1856
|
+
(path, options) => this.fetch(path, options)
|
|
1857
|
+
);
|
|
1858
|
+
}
|
|
1700
1859
|
/**
|
|
1701
1860
|
* Build URLSearchParams from GetChatsOptions.
|
|
1702
1861
|
* Excludes pagination params when includePagination is false.
|
|
@@ -1755,10 +1914,31 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1755
1914
|
return response.blob();
|
|
1756
1915
|
}
|
|
1757
1916
|
/** Export a single chat in the specified format as a downloadable blob. */
|
|
1758
|
-
async exportChat(wid, chatId, format = "jsonl") {
|
|
1759
|
-
const
|
|
1917
|
+
async exportChat(wid, chatId, format = "jsonl", options) {
|
|
1918
|
+
const params = new URLSearchParams({ format });
|
|
1919
|
+
if (options?.includeStaffNotes) params.append("includeStaffNotes", "true");
|
|
1920
|
+
const response = await this.fetchRaw(`w/${wid}/chats/${chatId}/export?${params.toString()}`);
|
|
1760
1921
|
return response.blob();
|
|
1761
1922
|
}
|
|
1923
|
+
/** Staff notes on a chat, oldest first (the newest `limit`). Requires
|
|
1924
|
+
* access to the chat and `chats:admin`. Notes are never delivered. */
|
|
1925
|
+
async listChatStaffNotes(wid, chatId, options) {
|
|
1926
|
+
const params = new URLSearchParams();
|
|
1927
|
+
if (options?.limit) params.append("limit", options.limit.toString());
|
|
1928
|
+
if (options?.before) params.append("before", options.before);
|
|
1929
|
+
const query2 = params.toString();
|
|
1930
|
+
return this.fetch(
|
|
1931
|
+
`w/${wid}/chats/${chatId}/notes${query2 ? `?${query2}` : ""}`
|
|
1932
|
+
);
|
|
1933
|
+
}
|
|
1934
|
+
/** Write a staff note on a chat. Append-only; nothing is sent to anyone,
|
|
1935
|
+
* and no Agent turn starts. Requires access to the chat and `chats:admin`. */
|
|
1936
|
+
async createChatStaffNote(wid, chatId, body) {
|
|
1937
|
+
return this.fetch(`w/${wid}/chats/${chatId}/notes`, {
|
|
1938
|
+
method: "POST",
|
|
1939
|
+
body: JSON.stringify(body)
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1762
1942
|
/** Get a single chat by ID. */
|
|
1763
1943
|
async getChat(wid, id) {
|
|
1764
1944
|
return this.fetch(`w/${wid}/chats/${id}`);
|
|
@@ -1870,6 +2050,21 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1870
2050
|
`w/${wid}/chats/${chatId}/inline-connect/${encodeURIComponent(appSlug)}/link`
|
|
1871
2051
|
);
|
|
1872
2052
|
}
|
|
2053
|
+
/**
|
|
2054
|
+
* Send or discard a message the Manager proposed in a chat.
|
|
2055
|
+
*
|
|
2056
|
+
* A `proposed_message` prompt (`UiPromptPresented.proposedMessage`) is a
|
|
2057
|
+
* draft: nothing was sent and the chat did not pause. `decision: 'send'`
|
|
2058
|
+
* runs the drafted call, with `body` / `subject` replacing the draft's
|
|
2059
|
+
* text when set; `'discard'` drops it. A send that the provider refuses is
|
|
2060
|
+
* a 200 with `status: 'failed'`. 409 when it was already settled.
|
|
2061
|
+
*/
|
|
2062
|
+
async decideProposedMessage(wid, chatId, promptId, request) {
|
|
2063
|
+
return this.fetch(
|
|
2064
|
+
`w/${wid}/chats/${chatId}/proposed-messages/${encodeURIComponent(promptId)}/decision`,
|
|
2065
|
+
{ method: "POST", body: JSON.stringify(request) }
|
|
2066
|
+
);
|
|
2067
|
+
}
|
|
1873
2068
|
/** Get loaded and revealed skills for a chat. */
|
|
1874
2069
|
async getChatSkills(wid, chatId) {
|
|
1875
2070
|
return this.fetch(`w/${wid}/chats/${chatId}/skills`);
|
|
@@ -2076,7 +2271,7 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2076
2271
|
);
|
|
2077
2272
|
}
|
|
2078
2273
|
/**
|
|
2079
|
-
* Rate a chat message by its
|
|
2274
|
+
* Rate a chat message by its `id` (message ID), not its `uuid`.
|
|
2080
2275
|
* Optional ``comment`` updates free-text details on the same durable rating row.
|
|
2081
2276
|
*/
|
|
2082
2277
|
async rateMessage(wid, chatId, messageUuid, rating, comment) {
|
|
@@ -2157,7 +2352,7 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2157
2352
|
method: "DELETE"
|
|
2158
2353
|
});
|
|
2159
2354
|
}
|
|
2160
|
-
/** Get distinct tool call names used
|
|
2355
|
+
/** Get distinct tool call names used in the chats the caller may receive. */
|
|
2161
2356
|
async getToolCallNames(wid) {
|
|
2162
2357
|
return this.fetch(`w/${wid}/chats/tool-call-names`);
|
|
2163
2358
|
}
|
|
@@ -2395,24 +2590,6 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
2395
2590
|
}
|
|
2396
2591
|
return await response.json();
|
|
2397
2592
|
}
|
|
2398
|
-
/** Read the local Form's draft and optimistic publication counters. */
|
|
2399
|
-
async getDataTypeDraft(wid, id) {
|
|
2400
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-draft`);
|
|
2401
|
-
}
|
|
2402
|
-
/** Save a draft without changing the schema used to validate live records. */
|
|
2403
|
-
async saveDataTypeDraft(wid, id, request) {
|
|
2404
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-draft`, {
|
|
2405
|
-
method: "PUT",
|
|
2406
|
-
body: JSON.stringify(request)
|
|
2407
|
-
});
|
|
2408
|
-
}
|
|
2409
|
-
/** Publish the expected draft as the next immutable local schema version. */
|
|
2410
|
-
async publishDataTypeDraft(wid, id, request) {
|
|
2411
|
-
return this.fetch(`w/${wid}/data-types/${id}/schema-publish`, {
|
|
2412
|
-
method: "POST",
|
|
2413
|
-
body: JSON.stringify(request)
|
|
2414
|
-
});
|
|
2415
|
-
}
|
|
2416
2593
|
/** List schema history newest first; use the last version as the next cursor. */
|
|
2417
2594
|
async getDataTypeVersions(wid, id, options) {
|
|
2418
2595
|
const params = new URLSearchParams();
|
|
@@ -2504,6 +2681,16 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
2504
2681
|
`w/${wid}/data-types/${dataTypeId}/records${params?.toString() ? `?${params.toString()}` : ""}`
|
|
2505
2682
|
);
|
|
2506
2683
|
}
|
|
2684
|
+
/**
|
|
2685
|
+
* The record a Workspace Fields Form's templates read: the newest shared,
|
|
2686
|
+
* non-eval, non-retired record, or `null` before the first save. The
|
|
2687
|
+
* Values tab edits this record. Requires `records:read`.
|
|
2688
|
+
*/
|
|
2689
|
+
async getWorkspaceValuesRecord(wid, dataTypeId) {
|
|
2690
|
+
return this.fetch(
|
|
2691
|
+
`w/${wid}/data-types/${dataTypeId}/workspace-values`
|
|
2692
|
+
);
|
|
2693
|
+
}
|
|
2507
2694
|
/**
|
|
2508
2695
|
* List an anonymous Form's submissions, newest first. Requires
|
|
2509
2696
|
* `anonymous_submissions:read`. Submissions are immutable: there is no
|
|
@@ -2957,6 +3144,10 @@ var EventsApi = class extends BaseApiClient {
|
|
|
2957
3144
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
2958
3145
|
return this.fetch(`w/${wid}/event-rules${qs}`);
|
|
2959
3146
|
}
|
|
3147
|
+
/** Complete directory identity/state without Action or trigger payloads. */
|
|
3148
|
+
async getEventRuleIndex(wid) {
|
|
3149
|
+
return this.fetch(`w/${wid}/event-rules/index`);
|
|
3150
|
+
}
|
|
2960
3151
|
/** Get the available action types that can be used in event rules. */
|
|
2961
3152
|
async getAvailableActions(wid) {
|
|
2962
3153
|
return this.fetch(`w/${wid}/event-rules/actions/available`);
|
|
@@ -3001,13 +3192,6 @@ var EventsApi = class extends BaseApiClient {
|
|
|
3001
3192
|
method: "DELETE"
|
|
3002
3193
|
});
|
|
3003
3194
|
}
|
|
3004
|
-
/** Send a one-off test webhook for an existing webhook event rule. */
|
|
3005
|
-
async testWebhook(wid, id, request) {
|
|
3006
|
-
return this.fetch(`w/${wid}/event-rules/${id}/test-webhook`, {
|
|
3007
|
-
method: "POST",
|
|
3008
|
-
body: JSON.stringify(request)
|
|
3009
|
-
});
|
|
3010
|
-
}
|
|
3011
3195
|
/** Reorder event rules by specifying the desired rule ID sequence. */
|
|
3012
3196
|
async reorderEventRules(wid, ruleIds) {
|
|
3013
3197
|
return this.fetch(`w/${wid}/event-rules/reorder`, {
|
|
@@ -3015,19 +3199,6 @@ var EventsApi = class extends BaseApiClient {
|
|
|
3015
3199
|
body: JSON.stringify(ruleIds)
|
|
3016
3200
|
});
|
|
3017
3201
|
}
|
|
3018
|
-
/** List webhook logs with optional filtering by event type and success status. */
|
|
3019
|
-
async getWebhookLogs(wid, options = {}) {
|
|
3020
|
-
const params = new URLSearchParams();
|
|
3021
|
-
if (options.page) params.append("page", options.page.toString());
|
|
3022
|
-
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
3023
|
-
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
3024
|
-
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
3025
|
-
if (options.eventType) params.append("eventType", options.eventType);
|
|
3026
|
-
if (options.success !== void 0) params.append("success", options.success.toString());
|
|
3027
|
-
return this.fetch(
|
|
3028
|
-
`w/${wid}/webhook-logs${params.toString() ? `?${params.toString()}` : ""}`
|
|
3029
|
-
);
|
|
3030
|
-
}
|
|
3031
3202
|
/** List event rule executions with cursor-based pagination and filtering. */
|
|
3032
3203
|
async getRuleExecutions(wid, options = {}) {
|
|
3033
3204
|
const params = new URLSearchParams();
|
|
@@ -3150,6 +3321,10 @@ var EventsApi = class extends BaseApiClient {
|
|
|
3150
3321
|
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
3151
3322
|
if (options.routineId) params.append("routineId", options.routineId.toString());
|
|
3152
3323
|
if (options.status) params.append("status", options.status);
|
|
3324
|
+
if (options.runId) params.append("runId", String(options.runId));
|
|
3325
|
+
if (options.parentRunId) params.append("parentRunId", String(options.parentRunId));
|
|
3326
|
+
if (options.dispatchKey) params.append("dispatchKey", options.dispatchKey);
|
|
3327
|
+
if (options.rootsOnly) params.append("rootsOnly", "true");
|
|
3153
3328
|
return this.fetch(
|
|
3154
3329
|
`w/${wid}/routines/runs?${params.toString()}`
|
|
3155
3330
|
);
|
|
@@ -3629,6 +3804,16 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
3629
3804
|
`w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
|
|
3630
3805
|
);
|
|
3631
3806
|
}
|
|
3807
|
+
/** Propose a Member for each unlinked patient on synced Healthie calendars. */
|
|
3808
|
+
async getHealthieAppointmentPatientMatches(wid, params) {
|
|
3809
|
+
const query2 = new URLSearchParams();
|
|
3810
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
3811
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
3812
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3813
|
+
return this.fetch(
|
|
3814
|
+
`w/${wid}/app-connections/healthie/reconciliation/appointment-matches${qs}`
|
|
3815
|
+
);
|
|
3816
|
+
}
|
|
3632
3817
|
async linkMemberToHealthie(wid, data) {
|
|
3633
3818
|
return this.fetch(`w/${wid}/app-connections/healthie/reconciliation/link`, {
|
|
3634
3819
|
method: "POST",
|
|
@@ -3681,7 +3866,7 @@ var FilesApi = class extends BaseApiClient {
|
|
|
3681
3866
|
/** List files in a workspace with optional folder filtering, sorting, and search. */
|
|
3682
3867
|
async getFiles(wid, options = {}) {
|
|
3683
3868
|
const params = new URLSearchParams();
|
|
3684
|
-
if (options.folderId) params.append("folder_id", options.folderId.toString());
|
|
3869
|
+
if (options.folderId != null) params.append("folder_id", options.folderId.toString());
|
|
3685
3870
|
if (options.page) params.append("page", options.page.toString());
|
|
3686
3871
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
3687
3872
|
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
@@ -3887,11 +4072,15 @@ var FilesApi = class extends BaseApiClient {
|
|
|
3887
4072
|
method: "POST"
|
|
3888
4073
|
});
|
|
3889
4074
|
}
|
|
3890
|
-
/** Search for content within a folder using semantic search. */
|
|
4075
|
+
/** Search for content within a folder, or across its whole drive, using semantic search. */
|
|
3891
4076
|
async searchFolder(wid, id, params) {
|
|
3892
4077
|
const searchParams = new URLSearchParams();
|
|
3893
4078
|
searchParams.append("query", params.query);
|
|
3894
4079
|
if (params.topK) searchParams.append("top_k", params.topK.toString());
|
|
4080
|
+
if (params.allFiles) searchParams.append("all_files", "true");
|
|
4081
|
+
if (params.rootFolderId) {
|
|
4082
|
+
searchParams.append("root_folder_id", params.rootFolderId.toString());
|
|
4083
|
+
}
|
|
3895
4084
|
return this.fetch(
|
|
3896
4085
|
`w/${wid}/folders/${id}/search?${searchParams.toString()}`
|
|
3897
4086
|
);
|
|
@@ -4295,7 +4484,9 @@ var InquiriesApi = class extends BaseApiClient {
|
|
|
4295
4484
|
const searchParams = new URLSearchParams();
|
|
4296
4485
|
if (params?.page) searchParams.append("page", params.page.toString());
|
|
4297
4486
|
if (params?.pageSize) searchParams.append("page_size", params.pageSize.toString());
|
|
4298
|
-
|
|
4487
|
+
const types = typeof params?.inquiryType === "string" ? [params.inquiryType] : params?.inquiryType;
|
|
4488
|
+
types?.filter(Boolean).forEach((type) => searchParams.append("inquiry_type", type));
|
|
4489
|
+
params?.statuses?.forEach((status) => searchParams.append("status", status));
|
|
4299
4490
|
const queryString = searchParams.toString();
|
|
4300
4491
|
const url = queryString ? `inquiries?${queryString}` : "inquiries";
|
|
4301
4492
|
return this.fetch(url);
|
|
@@ -4549,7 +4740,7 @@ var MemberImportValidationError = class extends Error {
|
|
|
4549
4740
|
this.validationErrors = validationErrors;
|
|
4550
4741
|
}
|
|
4551
4742
|
};
|
|
4552
|
-
function throwMemberImportError(errorBody, fallback) {
|
|
4743
|
+
function throwMemberImportError(errorBody, fallback, statusCode) {
|
|
4553
4744
|
let detail = errorBody?.detail;
|
|
4554
4745
|
if (typeof detail === "string") {
|
|
4555
4746
|
try {
|
|
@@ -4559,12 +4750,13 @@ function throwMemberImportError(errorBody, fallback) {
|
|
|
4559
4750
|
}
|
|
4560
4751
|
}
|
|
4561
4752
|
if (detail && typeof detail === "object") {
|
|
4562
|
-
const { message, errors } = detail;
|
|
4753
|
+
const { message: message2, errors } = detail;
|
|
4563
4754
|
if (Array.isArray(errors)) {
|
|
4564
|
-
throw new MemberImportValidationError(
|
|
4755
|
+
throw new MemberImportValidationError(message2 || fallback, errors);
|
|
4565
4756
|
}
|
|
4566
4757
|
}
|
|
4567
|
-
|
|
4758
|
+
const message = typeof detail === "string" ? detail : fallback;
|
|
4759
|
+
throw statusCode === void 0 ? new Error(message) : new ApiError(message, statusCode);
|
|
4568
4760
|
}
|
|
4569
4761
|
function memberImportUpload(file, roleId, options) {
|
|
4570
4762
|
const body = new FormData();
|
|
@@ -4579,6 +4771,39 @@ function memberImportUpload(file, roleId, options) {
|
|
|
4579
4771
|
}
|
|
4580
4772
|
return { body, params };
|
|
4581
4773
|
}
|
|
4774
|
+
function parseMemberImportSseFrames(buffer) {
|
|
4775
|
+
const held = buffer.endsWith("\r") ? "\r" : "";
|
|
4776
|
+
const text = (held ? buffer.slice(0, -1) : buffer).replace(/\r\n?/g, "\n");
|
|
4777
|
+
const frames = text.split("\n\n");
|
|
4778
|
+
const rest = (frames.pop() ?? "") + held;
|
|
4779
|
+
const payloads = [];
|
|
4780
|
+
for (const frame of frames) {
|
|
4781
|
+
const data = [];
|
|
4782
|
+
for (const line of frame.split("\n")) {
|
|
4783
|
+
if (!line || line.startsWith(":")) continue;
|
|
4784
|
+
const colon = line.indexOf(":");
|
|
4785
|
+
if ((colon === -1 ? line : line.slice(0, colon)) !== "data") continue;
|
|
4786
|
+
const value = colon === -1 ? "" : line.slice(colon + 1);
|
|
4787
|
+
data.push(value.startsWith(" ") ? value.slice(1) : value);
|
|
4788
|
+
}
|
|
4789
|
+
if (data.length) payloads.push(data.join("\n"));
|
|
4790
|
+
}
|
|
4791
|
+
return { payloads, rest };
|
|
4792
|
+
}
|
|
4793
|
+
function toMemberImportRunEvent(payload) {
|
|
4794
|
+
if (!payload || typeof payload !== "object" || Array.isArray(payload)) return null;
|
|
4795
|
+
const event = payload;
|
|
4796
|
+
if (event.type === "import_run") {
|
|
4797
|
+
return typeof event.runId === "string" && typeof event.status === "string" ? event : null;
|
|
4798
|
+
}
|
|
4799
|
+
if (event.type === "import_item") {
|
|
4800
|
+
return typeof event.runId === "string" && typeof event.status === "string" && Number.isInteger(event.index) ? event : null;
|
|
4801
|
+
}
|
|
4802
|
+
if (event.type === "done") {
|
|
4803
|
+
return typeof event.runId === "string" ? event : null;
|
|
4804
|
+
}
|
|
4805
|
+
return "unrecognized";
|
|
4806
|
+
}
|
|
4582
4807
|
var MembersApi = class extends BaseApiClient {
|
|
4583
4808
|
memberImportPlans = /* @__PURE__ */ new WeakMap();
|
|
4584
4809
|
/** Get the currently authenticated member for a workspace. */
|
|
@@ -4668,6 +4893,9 @@ var MembersApi = class extends BaseApiClient {
|
|
|
4668
4893
|
}
|
|
4669
4894
|
return this.fetch(`w/${wid}/members?${params.toString()}`);
|
|
4670
4895
|
}
|
|
4896
|
+
async getMemberSmsSenders(wid, memberId) {
|
|
4897
|
+
return this.fetch(`w/${wid}/members/${memberId}/sms-senders`);
|
|
4898
|
+
}
|
|
4671
4899
|
/** Get a single workspace member by ID. */
|
|
4672
4900
|
async getWorkspaceMember(wid, memberId) {
|
|
4673
4901
|
return this.fetch(`w/${wid}/members/${memberId}`);
|
|
@@ -5020,6 +5248,130 @@ var MembersApi = class extends BaseApiClient {
|
|
|
5020
5248
|
result
|
|
5021
5249
|
};
|
|
5022
5250
|
}
|
|
5251
|
+
/**
|
|
5252
|
+
* Start a durable members CSV import (`POST /members/import/runs`) and read
|
|
5253
|
+
* its progress stream.
|
|
5254
|
+
*
|
|
5255
|
+
* The server stores the upload and `options.resolutions` as an artifact and
|
|
5256
|
+
* a Temporal workflow owns the import, so the run continues whatever happens
|
|
5257
|
+
* to this stream. `onEvent` receives each `import_run` / `import_item` /
|
|
5258
|
+
* `done` event as it is parsed; the first `import_run` carries the run id,
|
|
5259
|
+
* delivered before any later event is read.
|
|
5260
|
+
*
|
|
5261
|
+
* Unlike `importMembers`, this never previews implicitly: it sends exactly
|
|
5262
|
+
* the `previewPlanToken` supplied (or none) and never consults or refreshes
|
|
5263
|
+
* the preview cache. It never retries the POST. A non-2xx response throws:
|
|
5264
|
+
* `MemberImportValidationError` for structured validation details, otherwise
|
|
5265
|
+
* an `ApiError` carrying the status (409 means another import is already
|
|
5266
|
+
* running for the workspace). A stream that ends, fails or carries an
|
|
5267
|
+
* unreadable event before its `done` resolves as `incomplete` with whatever
|
|
5268
|
+
* run id was seen; an exception thrown by `onEvent` propagates.
|
|
5269
|
+
*
|
|
5270
|
+
* `streamStatus` reports the stream, not the import: read the run's
|
|
5271
|
+
* `status` and counters (`completed_with_errors` and `failed` are terminal
|
|
5272
|
+
* too), or `listMemberImportRuns`, for the outcome.
|
|
5273
|
+
*/
|
|
5274
|
+
async startMemberImportRun(wid, file, newMemberRoleId, options, onEvent) {
|
|
5275
|
+
const { body, params } = memberImportUpload(file, newMemberRoleId, options);
|
|
5276
|
+
if (options?.previewPlanToken) body.append("previewPlanToken", options.previewPlanToken);
|
|
5277
|
+
if (options?.identityConflictPolicy) {
|
|
5278
|
+
params.set("identity_conflict_policy", options.identityConflictPolicy);
|
|
5279
|
+
}
|
|
5280
|
+
const response = await this.fetchRaw(
|
|
5281
|
+
`w/${wid}/members/import/runs?${params.toString()}`,
|
|
5282
|
+
{ method: "POST", body },
|
|
5283
|
+
[400, 413]
|
|
5284
|
+
);
|
|
5285
|
+
if (!response.ok) {
|
|
5286
|
+
const error = await response.json().catch(() => ({}));
|
|
5287
|
+
throwMemberImportError(error, "Import run start failed", response.status);
|
|
5288
|
+
}
|
|
5289
|
+
let runId = null;
|
|
5290
|
+
let latestRun = null;
|
|
5291
|
+
const incomplete = () => ({
|
|
5292
|
+
streamStatus: "incomplete",
|
|
5293
|
+
runId,
|
|
5294
|
+
latestRun
|
|
5295
|
+
});
|
|
5296
|
+
if (!response.body) return incomplete();
|
|
5297
|
+
const reader = response.body.getReader();
|
|
5298
|
+
const decoder = new TextDecoder();
|
|
5299
|
+
let buffer = "";
|
|
5300
|
+
let finished = false;
|
|
5301
|
+
const consume = (payload) => {
|
|
5302
|
+
if (payload.trim() === "[DONE]" || !payload.trim()) return "continue";
|
|
5303
|
+
let parsed;
|
|
5304
|
+
try {
|
|
5305
|
+
parsed = JSON.parse(payload);
|
|
5306
|
+
} catch {
|
|
5307
|
+
return "malformed";
|
|
5308
|
+
}
|
|
5309
|
+
const event = toMemberImportRunEvent(parsed);
|
|
5310
|
+
if (event === "unrecognized") return "continue";
|
|
5311
|
+
if (event === null) return "malformed";
|
|
5312
|
+
runId ??= event.runId;
|
|
5313
|
+
if (event.runId !== runId) return "malformed";
|
|
5314
|
+
if (event.type === "import_run") {
|
|
5315
|
+
const { type: _type, ...run } = event;
|
|
5316
|
+
latestRun = run;
|
|
5317
|
+
}
|
|
5318
|
+
onEvent?.(event);
|
|
5319
|
+
return event.type === "done" ? "done" : "continue";
|
|
5320
|
+
};
|
|
5321
|
+
try {
|
|
5322
|
+
while (!finished) {
|
|
5323
|
+
const chunk = await reader.read().catch(() => null);
|
|
5324
|
+
if (chunk === null) return incomplete();
|
|
5325
|
+
buffer += chunk.done ? decoder.decode() : decoder.decode(chunk.value, { stream: true });
|
|
5326
|
+
const { payloads, rest } = parseMemberImportSseFrames(
|
|
5327
|
+
chunk.done ? `${buffer}
|
|
5328
|
+
|
|
5329
|
+
` : buffer
|
|
5330
|
+
);
|
|
5331
|
+
buffer = rest;
|
|
5332
|
+
for (const payload of payloads) {
|
|
5333
|
+
const outcome = consume(payload);
|
|
5334
|
+
if (outcome === "malformed") return incomplete();
|
|
5335
|
+
if (outcome === "done") {
|
|
5336
|
+
finished = true;
|
|
5337
|
+
break;
|
|
5338
|
+
}
|
|
5339
|
+
}
|
|
5340
|
+
if (chunk.done) break;
|
|
5341
|
+
}
|
|
5342
|
+
} finally {
|
|
5343
|
+
await reader.cancel().catch(() => void 0);
|
|
5344
|
+
reader.releaseLock();
|
|
5345
|
+
}
|
|
5346
|
+
return finished ? { streamStatus: "complete", runId, latestRun } : incomplete();
|
|
5347
|
+
}
|
|
5348
|
+
/**
|
|
5349
|
+
* Recent durable member import runs, newest first, with their persisted
|
|
5350
|
+
* counters. The server returns at most 100 and has no pagination: a run
|
|
5351
|
+
* missing from the list is outside the inspected window, not absent.
|
|
5352
|
+
*/
|
|
5353
|
+
async listMemberImportRuns(wid, options) {
|
|
5354
|
+
const params = new URLSearchParams();
|
|
5355
|
+
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
5356
|
+
const query2 = params.toString();
|
|
5357
|
+
return this.fetch(
|
|
5358
|
+
`w/${wid}/members/import/runs${query2 ? `?${query2}` : ""}`
|
|
5359
|
+
);
|
|
5360
|
+
}
|
|
5361
|
+
/**
|
|
5362
|
+
* Per-row outcomes of one durable import run, a bounded sample (server
|
|
5363
|
+
* default 500, maximum 10,000, no cursor). `index` is the zero-based data
|
|
5364
|
+
* row of the uploaded CSV. Totals come from the run summary, never from
|
|
5365
|
+
* counting this list.
|
|
5366
|
+
*/
|
|
5367
|
+
async listMemberImportRunItems(wid, runId, options) {
|
|
5368
|
+
const params = new URLSearchParams();
|
|
5369
|
+
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
5370
|
+
const query2 = params.toString();
|
|
5371
|
+
return this.fetch(
|
|
5372
|
+
`w/${wid}/members/import/runs/${encodeURIComponent(runId)}/items${query2 ? `?${query2}` : ""}`
|
|
5373
|
+
);
|
|
5374
|
+
}
|
|
5023
5375
|
/** Export members as a downloadable file with selected fields and data types. */
|
|
5024
5376
|
async exportMembers(wid, selectedFields, selectedDataTypes, memberType) {
|
|
5025
5377
|
const params = new URLSearchParams();
|
|
@@ -5229,6 +5581,21 @@ var MembersApi = class extends BaseApiClient {
|
|
|
5229
5581
|
}
|
|
5230
5582
|
};
|
|
5231
5583
|
|
|
5584
|
+
// src/types/generated/notification.ts
|
|
5585
|
+
var NotificationMarkerAction = {
|
|
5586
|
+
read: "read",
|
|
5587
|
+
dismiss: "dismiss"
|
|
5588
|
+
};
|
|
5589
|
+
|
|
5590
|
+
// src/types/generated/open_item.ts
|
|
5591
|
+
var OpenItemKind = {
|
|
5592
|
+
awaiting_human: "awaiting_human",
|
|
5593
|
+
connection_authorization: "connection_authorization",
|
|
5594
|
+
missed_call: "missed_call",
|
|
5595
|
+
routine_result: "routine_result",
|
|
5596
|
+
voicemail: "voicemail"
|
|
5597
|
+
};
|
|
5598
|
+
|
|
5232
5599
|
// src/api/monday.ts
|
|
5233
5600
|
var MondayIntegrationApi = class extends BaseApiClient {
|
|
5234
5601
|
/**
|
|
@@ -5334,6 +5701,24 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
5334
5701
|
body: JSON.stringify({ syncConfig })
|
|
5335
5702
|
});
|
|
5336
5703
|
}
|
|
5704
|
+
/**
|
|
5705
|
+
* Run every Monday save-time check that needs no save effect against
|
|
5706
|
+
* `syncConfig`, without saving: no configuration, webhook, Form or managed
|
|
5707
|
+
* rule changes and no sync run. The same route and body as
|
|
5708
|
+
* `updateMondaySyncConfig`, with `validateOnly=true`; a refused check is the
|
|
5709
|
+
* save's own 400/403. `notCheckedWithoutSave` names what only the save does
|
|
5710
|
+
* (including `webhook_reconcile`). Monday takes no base digest: a later save
|
|
5711
|
+
* does not detect a configuration changed since it was read.
|
|
5712
|
+
*/
|
|
5713
|
+
async validateMondaySyncConfig(wid, syncConfig) {
|
|
5714
|
+
return this.fetch(
|
|
5715
|
+
`w/${wid}/app-connections/monday/sync-config?validateOnly=true`,
|
|
5716
|
+
{
|
|
5717
|
+
method: "PUT",
|
|
5718
|
+
body: JSON.stringify({ syncConfig })
|
|
5719
|
+
}
|
|
5720
|
+
);
|
|
5721
|
+
}
|
|
5337
5722
|
async getLinkedMondayMembers(wid, params) {
|
|
5338
5723
|
const query2 = new URLSearchParams();
|
|
5339
5724
|
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
@@ -5430,6 +5815,15 @@ var NotificationRulesApi = class extends BaseApiClient {
|
|
|
5430
5815
|
body: JSON.stringify(rule)
|
|
5431
5816
|
});
|
|
5432
5817
|
}
|
|
5818
|
+
/**
|
|
5819
|
+
* Approved, available shared destinations (Teams channels) a notification
|
|
5820
|
+
* rule or Action may name. Choosing one never grants approval.
|
|
5821
|
+
*/
|
|
5822
|
+
async getNotificationDestinations(wid) {
|
|
5823
|
+
return this.fetch(
|
|
5824
|
+
`w/${wid}/notification-destinations`
|
|
5825
|
+
);
|
|
5826
|
+
}
|
|
5433
5827
|
/** Delete a notification rule. */
|
|
5434
5828
|
async deleteNotificationRule(wid, ruleId) {
|
|
5435
5829
|
return this.fetch(`w/${wid}/notification-rules/${ruleId}`, {
|
|
@@ -5506,48 +5900,65 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
5506
5900
|
};
|
|
5507
5901
|
|
|
5508
5902
|
// src/api/org.ts
|
|
5509
|
-
var
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
async createOrgManagerChat(org, title) {
|
|
5516
|
-
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
5517
|
-
method: "POST",
|
|
5518
|
-
body: JSON.stringify({ title })
|
|
5519
|
-
});
|
|
5520
|
-
}
|
|
5521
|
-
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
5522
|
-
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
5523
|
-
method: "POST",
|
|
5524
|
-
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
5525
|
-
cache: "no-store"
|
|
5526
|
-
});
|
|
5527
|
-
}
|
|
5528
|
-
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
5529
|
-
return this.fetch(
|
|
5530
|
-
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
5531
|
-
{ cache: "no-store" }
|
|
5903
|
+
var OrgApiKeyLimitUnconfirmedError = class extends Error {
|
|
5904
|
+
keyId;
|
|
5905
|
+
revoked;
|
|
5906
|
+
constructor(keyId, revoked) {
|
|
5907
|
+
super(
|
|
5908
|
+
revoked ? `The server did not confirm the API key's workspace limit, so key ${keyId} was revoked. Try again.` : `The server did not confirm the API key's workspace limit, and revoking key ${keyId} could not be confirmed. Revoke it manually if it is still listed.`
|
|
5532
5909
|
);
|
|
5910
|
+
this.name = "OrgApiKeyLimitUnconfirmedError";
|
|
5911
|
+
this.keyId = keyId;
|
|
5912
|
+
this.revoked = revoked;
|
|
5533
5913
|
}
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
method: "POST",
|
|
5548
|
-
body: JSON.stringify(body)
|
|
5549
|
-
});
|
|
5914
|
+
};
|
|
5915
|
+
var OrgWebhookScopeUnconfirmedError = class extends Error {
|
|
5916
|
+
endpointUuid;
|
|
5917
|
+
operation;
|
|
5918
|
+
deleted;
|
|
5919
|
+
constructor(endpointUuid, operation, deleted) {
|
|
5920
|
+
super(
|
|
5921
|
+
operation === "update" ? `The server did not confirm the webhook endpoint's workspace scope after the update, and endpoint ${endpointUuid} was not changed back. Check its scope.` : deleted ? `The server did not confirm the webhook endpoint's workspace scope, so endpoint ${endpointUuid} was deleted. Try again.` : `The server did not confirm the webhook endpoint's workspace scope, and deleting endpoint ${endpointUuid} could not be confirmed. Delete it manually if it is still listed.`
|
|
5922
|
+
);
|
|
5923
|
+
this.name = "OrgWebhookScopeUnconfirmedError";
|
|
5924
|
+
this.endpointUuid = endpointUuid;
|
|
5925
|
+
this.operation = operation;
|
|
5926
|
+
this.deleted = operation === "create" && deleted;
|
|
5550
5927
|
}
|
|
5928
|
+
};
|
|
5929
|
+
function storedLabelSlug(value) {
|
|
5930
|
+
return value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 64).replace(/-+$/, "");
|
|
5931
|
+
}
|
|
5932
|
+
function sameStringSet(left, right) {
|
|
5933
|
+
const a = new Set(left);
|
|
5934
|
+
const b = new Set(right);
|
|
5935
|
+
return a.size === b.size && [...a].every((value) => b.has(value));
|
|
5936
|
+
}
|
|
5937
|
+
function workspaceScopeConfirmed(requested, stored) {
|
|
5938
|
+
if (typeof stored !== "object" || stored === null) return false;
|
|
5939
|
+
const { mode, workspaceUuids, labelSelector } = stored;
|
|
5940
|
+
if (mode !== requested.mode) return false;
|
|
5941
|
+
if (!Array.isArray(workspaceUuids) || !Array.isArray(labelSelector)) return false;
|
|
5942
|
+
const storedUuids = [];
|
|
5943
|
+
for (const value of workspaceUuids) {
|
|
5944
|
+
if (typeof value !== "string") return false;
|
|
5945
|
+
storedUuids.push(value.trim().toLowerCase());
|
|
5946
|
+
}
|
|
5947
|
+
const storedSlugs = [];
|
|
5948
|
+
for (const label of labelSelector) {
|
|
5949
|
+
const slug = label?.slug;
|
|
5950
|
+
if (typeof slug !== "string") return false;
|
|
5951
|
+
storedSlugs.push(slug.toLowerCase());
|
|
5952
|
+
}
|
|
5953
|
+
const selected = requested.mode === "selected";
|
|
5954
|
+
const requestedUuids = selected ? requested.workspaceUuids ?? [] : [];
|
|
5955
|
+
const requestedSlugs = selected ? requested.labelSelector ?? [] : [];
|
|
5956
|
+
return sameStringSet(
|
|
5957
|
+
requestedUuids.map((value) => value.trim().toLowerCase()),
|
|
5958
|
+
storedUuids
|
|
5959
|
+
) && sameStringSet(requestedSlugs.map(storedLabelSlug), storedSlugs);
|
|
5960
|
+
}
|
|
5961
|
+
var OrgApi = class extends BaseApiClient {
|
|
5551
5962
|
/**
|
|
5552
5963
|
* Get organization by ID or UUID.
|
|
5553
5964
|
* Returns different response based on user's role:
|
|
@@ -5635,27 +6046,15 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5635
6046
|
method: "DELETE"
|
|
5636
6047
|
});
|
|
5637
6048
|
}
|
|
5638
|
-
/**
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
* `subscriptionId` is the org-scoped row — never pick the customer's
|
|
5642
|
-
* newest subscription from the list endpoint. One customer can bill many
|
|
5643
|
-
* organizations.
|
|
5644
|
-
*
|
|
5645
|
-
* Returns the generated `OrgBillingCustomerResponse` — the contract the
|
|
5646
|
-
* route actually emits, `audiences` included. The hand-written mirror that
|
|
5647
|
-
* used to live here listed four fields and silently dropped `audiences`,
|
|
5648
|
-
* so callers could not see the commercial roles they hold (GRA-8792).
|
|
5649
|
-
* Regenerate the shape (`yarn generate:types`) rather than re-declaring it.
|
|
5650
|
-
*/
|
|
5651
|
-
async getOrgBillingCustomer(orgIdOrUuid) {
|
|
5652
|
-
return this.fetch(`o/${orgIdOrUuid}/billing-customer`);
|
|
6049
|
+
/** Current Organization billing access and billable subscription. */
|
|
6050
|
+
async getOrgBillingAccess(orgIdOrUuid) {
|
|
6051
|
+
return this.fetch(`o/${orgIdOrUuid}/billing-access`);
|
|
5653
6052
|
}
|
|
5654
6053
|
/**
|
|
5655
6054
|
* Per-workspace usage for this organization's current credit window.
|
|
5656
6055
|
*
|
|
5657
|
-
* Requires
|
|
5658
|
-
* same gate `
|
|
6056
|
+
* Requires Organization billing access, the
|
|
6057
|
+
* same gate `getOrgBillingAccess().hasAccess` reports, and the one that
|
|
5659
6058
|
* decides whether the billing tab is shown at all.
|
|
5660
6059
|
*
|
|
5661
6060
|
* `creditsUsed` is a real organization-wide total or it is null; it is
|
|
@@ -5698,6 +6097,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5698
6097
|
body: JSON.stringify(data)
|
|
5699
6098
|
});
|
|
5700
6099
|
}
|
|
6100
|
+
async setOrganizationMemberBillingRole(orgUuid, memberId, billingRole) {
|
|
6101
|
+
return this.fetch(`o/${orgUuid}/members/${memberId}/billing-role`, {
|
|
6102
|
+
method: "PUT",
|
|
6103
|
+
body: JSON.stringify({ billingRole })
|
|
6104
|
+
});
|
|
6105
|
+
}
|
|
5701
6106
|
/**
|
|
5702
6107
|
* Remove a member from an organization.
|
|
5703
6108
|
*/
|
|
@@ -5864,6 +6269,15 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5864
6269
|
body: JSON.stringify({ providerPhoneUuid })
|
|
5865
6270
|
});
|
|
5866
6271
|
}
|
|
6272
|
+
/**
|
|
6273
|
+
* Rename a phone number's Twilio and cached friendly name.
|
|
6274
|
+
*/
|
|
6275
|
+
async renamePhone(orgUuid, providerPhoneUuid, name) {
|
|
6276
|
+
return this.fetch(`o/${orgUuid}/phone-numbers/rename`, {
|
|
6277
|
+
method: "POST",
|
|
6278
|
+
body: JSON.stringify({ providerPhoneUuid, name })
|
|
6279
|
+
});
|
|
6280
|
+
}
|
|
5867
6281
|
/**
|
|
5868
6282
|
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
5869
6283
|
* for US; the server defaults to US local when the type is omitted.
|
|
@@ -5886,6 +6300,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5886
6300
|
* Australian mobile numbers require an approved business registration. Pass
|
|
5887
6301
|
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
5888
6302
|
* `bundleSid` or `addressSid` for Australian purchases.
|
|
6303
|
+
*
|
|
6304
|
+
* `name` is the whole Twilio-friendly label when supplied; without it the
|
|
6305
|
+
* server keeps its generated `{org}:0 org-{name}` fallback.
|
|
5889
6306
|
*/
|
|
5890
6307
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
5891
6308
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -5896,28 +6313,38 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5896
6313
|
country: opts?.country,
|
|
5897
6314
|
legalEntityUuid: opts?.legalEntityUuid,
|
|
5898
6315
|
bundleSid: opts?.bundleSid,
|
|
5899
|
-
addressSid: opts?.addressSid
|
|
6316
|
+
addressSid: opts?.addressSid,
|
|
6317
|
+
name: opts?.name
|
|
5900
6318
|
})
|
|
5901
6319
|
});
|
|
5902
6320
|
}
|
|
5903
|
-
async getNumberRegistration(orgUuid, entityUuid) {
|
|
5904
|
-
|
|
6321
|
+
async getNumberRegistration(orgUuid, entityUuid, country) {
|
|
6322
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
6323
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration${query2}`);
|
|
5905
6324
|
}
|
|
5906
|
-
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
6325
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName, country) {
|
|
5907
6326
|
const body = new FormData();
|
|
5908
6327
|
body.append("file", file);
|
|
5909
6328
|
body.append("documentType", documentType);
|
|
5910
6329
|
body.append("requirementName", requirementName);
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
6330
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
6331
|
+
return this.fetch(
|
|
6332
|
+
`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents${query2}`,
|
|
6333
|
+
{
|
|
6334
|
+
method: "POST",
|
|
6335
|
+
body
|
|
6336
|
+
}
|
|
6337
|
+
);
|
|
5915
6338
|
}
|
|
5916
|
-
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
6339
|
+
async submitNumberRegistration(orgUuid, entityUuid, country) {
|
|
6340
|
+
const query2 = country ? `?country=${encodeURIComponent(country)}` : "";
|
|
6341
|
+
return this.fetch(
|
|
6342
|
+
`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit${query2}`,
|
|
6343
|
+
{
|
|
6344
|
+
method: "POST",
|
|
6345
|
+
body: JSON.stringify({})
|
|
6346
|
+
}
|
|
6347
|
+
);
|
|
5921
6348
|
}
|
|
5922
6349
|
/**
|
|
5923
6350
|
* Delete a phone number from the org (releases from Twilio).
|
|
@@ -6165,6 +6592,14 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6165
6592
|
async getPhoneVoiceTrust(orgUuid) {
|
|
6166
6593
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust`);
|
|
6167
6594
|
}
|
|
6595
|
+
/**
|
|
6596
|
+
* The business each of the org's numbers is attached to, read live from
|
|
6597
|
+
* Twilio: one list per business's Customer Profile, none per number. Only
|
|
6598
|
+
* numbers exactly one business holds are listed. Organization admins only.
|
|
6599
|
+
*/
|
|
6600
|
+
async getPhoneBusinessNames(orgUuid) {
|
|
6601
|
+
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/businesses`);
|
|
6602
|
+
}
|
|
6168
6603
|
/**
|
|
6169
6604
|
* Put a number on a legal entity's Customer Profile and approved voice
|
|
6170
6605
|
* trust products, taking it off any other legal entity's first. The
|
|
@@ -6533,17 +6968,61 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6533
6968
|
async listOrgWebhookEventTypes(orgIdOrUuid) {
|
|
6534
6969
|
return this.fetch(`o/${orgIdOrUuid}/webhooks/event-types`);
|
|
6535
6970
|
}
|
|
6971
|
+
/**
|
|
6972
|
+
* Create an organization webhook endpoint.
|
|
6973
|
+
*
|
|
6974
|
+
* The response must confirm the requested `workspaceScope`: the same mode,
|
|
6975
|
+
* and for `selected` the same workspaces and label slugs. A server that
|
|
6976
|
+
* predates the shared scope ignores `workspaceScope` and stores an
|
|
6977
|
+
* endpoint for every workspace. When the response does not confirm the
|
|
6978
|
+
* scope (a missing scope included, even for `all`), this method does not
|
|
6979
|
+
* return the endpoint or its signing secret. It deletes the endpoint and
|
|
6980
|
+
* throws {@link OrgWebhookScopeUnconfirmedError}, whose `deleted` says
|
|
6981
|
+
* whether that delete succeeded. It never retries the create.
|
|
6982
|
+
*/
|
|
6536
6983
|
async createOrgWebhookEndpoint(orgIdOrUuid, data) {
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6984
|
+
const created = await this.fetch(
|
|
6985
|
+
`o/${orgIdOrUuid}/webhooks`,
|
|
6986
|
+
{
|
|
6987
|
+
method: "POST",
|
|
6988
|
+
body: JSON.stringify(data)
|
|
6989
|
+
}
|
|
6990
|
+
);
|
|
6991
|
+
const stored = created.workspaceScope;
|
|
6992
|
+
if (workspaceScopeConfirmed(data.workspaceScope, stored)) return created;
|
|
6993
|
+
const endpointUuid = typeof created.uuid === "string" ? created.uuid : "";
|
|
6994
|
+
let deleted = false;
|
|
6995
|
+
if (endpointUuid) {
|
|
6996
|
+
try {
|
|
6997
|
+
await this.deleteOrgWebhookEndpoint(orgIdOrUuid, endpointUuid);
|
|
6998
|
+
deleted = true;
|
|
6999
|
+
} catch {
|
|
7000
|
+
deleted = false;
|
|
7001
|
+
}
|
|
7002
|
+
}
|
|
7003
|
+
throw new OrgWebhookScopeUnconfirmedError(endpointUuid, "create", deleted);
|
|
6541
7004
|
}
|
|
7005
|
+
/**
|
|
7006
|
+
* Update an organization webhook endpoint. An omitted (or `null`)
|
|
7007
|
+
* `workspaceScope` leaves the scope unchanged and is not checked. A sent
|
|
7008
|
+
* one replaces the whole scope, and the response must confirm it the same
|
|
7009
|
+
* way {@link OrgApi.createOrgWebhookEndpoint} checks; otherwise this
|
|
7010
|
+
* method throws {@link OrgWebhookScopeUnconfirmedError} with `operation`
|
|
7011
|
+
* `update`. It does not remediate: the previous scope is unknown here.
|
|
7012
|
+
*/
|
|
6542
7013
|
async updateOrgWebhookEndpoint(orgIdOrUuid, endpointUuid, data) {
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
7014
|
+
const updated = await this.fetch(
|
|
7015
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}`,
|
|
7016
|
+
{
|
|
7017
|
+
method: "PATCH",
|
|
7018
|
+
body: JSON.stringify(data)
|
|
7019
|
+
}
|
|
7020
|
+
);
|
|
7021
|
+
const requested = data.workspaceScope;
|
|
7022
|
+
if (requested == null) return updated;
|
|
7023
|
+
const stored = updated.workspaceScope;
|
|
7024
|
+
if (workspaceScopeConfirmed(requested, stored)) return updated;
|
|
7025
|
+
throw new OrgWebhookScopeUnconfirmedError(endpointUuid, "update", false);
|
|
6547
7026
|
}
|
|
6548
7027
|
async deleteOrgWebhookEndpoint(orgIdOrUuid, endpointUuid) {
|
|
6549
7028
|
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}`, {
|
|
@@ -6639,11 +7118,16 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6639
7118
|
// Organization API keys (GRA-9043)
|
|
6640
7119
|
// =========================================================================
|
|
6641
7120
|
/**
|
|
6642
|
-
* List every API key bound to this organization
|
|
7121
|
+
* List every API key bound to this organization, with each key's
|
|
7122
|
+
* `workspaceScope`. Never carries the secret.
|
|
6643
7123
|
*
|
|
6644
|
-
* Org-bound keys authenticate as an org-local principal
|
|
6645
|
-
* every current workspace of the
|
|
6646
|
-
*
|
|
7124
|
+
* Org-bound keys authenticate as an org-local principal. A key whose
|
|
7125
|
+
* `workspaceScope.mode` is `all` reaches every current workspace of the
|
|
7126
|
+
* organization and every workspace created later; `selected` reaches its
|
|
7127
|
+
* `workspaceUuids` plus every workspace carrying all of its `labelSelector`
|
|
7128
|
+
* labels; `none` reaches nothing (also what a selected key reads as once
|
|
7129
|
+
* its last workspace is deleted). Gated by `org:api_keys`, which
|
|
7130
|
+
* `org:admin` holds transitively.
|
|
6647
7131
|
*/
|
|
6648
7132
|
async listOrgApiKeys(orgIdOrUuid) {
|
|
6649
7133
|
return this.fetch(`o/${orgIdOrUuid}/api-keys`);
|
|
@@ -6651,16 +7135,36 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6651
7135
|
/**
|
|
6652
7136
|
* Mint an org-bound API key.
|
|
6653
7137
|
*
|
|
6654
|
-
* The payload is
|
|
6655
|
-
*
|
|
6656
|
-
* id
|
|
6657
|
-
* the plaintext secret, which is readable
|
|
7138
|
+
* The payload is {@link OrgApiKeyFormData}: the workspace and account
|
|
7139
|
+
* routes' `{name, expiresInDays, scopes}` plus a required `workspaceScope`
|
|
7140
|
+
* — no workspace id, because the mint location is what binds the key.
|
|
7141
|
+
* The response carries `key`, the plaintext secret, which is readable
|
|
7142
|
+
* exactly once.
|
|
7143
|
+
*
|
|
7144
|
+
* A request for a `selected` or `none` scope must come back with that
|
|
7145
|
+
* `workspaceScope.mode`. A server that predates the shared scope ignores
|
|
7146
|
+
* `workspaceScope` and mints a key for every workspace; when that happens
|
|
7147
|
+
* this method does not return the secret. It revokes the key it
|
|
7148
|
+
* was given and throws {@link OrgApiKeyLimitUnconfirmedError}, whose
|
|
7149
|
+
* `revoked` says whether that revocation succeeded. It never retries the
|
|
7150
|
+
* mint.
|
|
6658
7151
|
*/
|
|
6659
7152
|
async createOrgApiKey(orgIdOrUuid, apiKey) {
|
|
6660
|
-
|
|
7153
|
+
const created = await this.fetch(`o/${orgIdOrUuid}/api-keys`, {
|
|
6661
7154
|
method: "POST",
|
|
6662
7155
|
body: JSON.stringify(apiKey)
|
|
6663
7156
|
});
|
|
7157
|
+
const requested = apiKey.workspaceScope.mode;
|
|
7158
|
+
const minted = created.workspaceScope?.mode;
|
|
7159
|
+
if (requested === "all" || minted === requested) return created;
|
|
7160
|
+
let revoked = false;
|
|
7161
|
+
try {
|
|
7162
|
+
await this.revokeOrgApiKey(orgIdOrUuid, created.id);
|
|
7163
|
+
revoked = true;
|
|
7164
|
+
} catch {
|
|
7165
|
+
revoked = false;
|
|
7166
|
+
}
|
|
7167
|
+
throw new OrgApiKeyLimitUnconfirmedError(created.id, revoked);
|
|
6664
7168
|
}
|
|
6665
7169
|
/** Revoke an org-bound API key by its id. */
|
|
6666
7170
|
async revokeOrgApiKey(orgIdOrUuid, keyId) {
|
|
@@ -6671,7 +7175,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6671
7175
|
// =========================================================================
|
|
6672
7176
|
// Workspace labels — the organization's own taxonomy of its workspaces
|
|
6673
7177
|
// =========================================================================
|
|
6674
|
-
/** Every label of the organization, with workspace and
|
|
7178
|
+
/** Every label of the organization, with workspace and selector (webhook, key, Agent) counts. */
|
|
6675
7179
|
async listWorkspaceLabels(orgIdOrUuid) {
|
|
6676
7180
|
return this.fetch(`o/${orgIdOrUuid}/workspace-labels`);
|
|
6677
7181
|
}
|
|
@@ -6688,15 +7192,16 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6688
7192
|
body: JSON.stringify(data)
|
|
6689
7193
|
});
|
|
6690
7194
|
}
|
|
6691
|
-
/** Delete a label. Refused (409) while a webhook
|
|
7195
|
+
/** Delete a label. Refused (409) while a webhook, API key or Agent selector requires it. */
|
|
6692
7196
|
async deleteWorkspaceLabel(orgIdOrUuid, labelUuid) {
|
|
6693
7197
|
return this.fetch(`o/${orgIdOrUuid}/workspace-labels/${labelUuid}`, {
|
|
6694
7198
|
method: "DELETE"
|
|
6695
7199
|
});
|
|
6696
7200
|
}
|
|
6697
7201
|
/**
|
|
6698
|
-
* Which workspaces
|
|
6699
|
-
*
|
|
7202
|
+
* Which workspaces an unsaved `workspaceScope` — the body API keys,
|
|
7203
|
+
* webhook endpoints and org Agents save — would reach right now. `none`
|
|
7204
|
+
* reaches zero workspaces.
|
|
6700
7205
|
*/
|
|
6701
7206
|
async previewWorkspaceScope(orgIdOrUuid, data) {
|
|
6702
7207
|
return this.fetch(
|
|
@@ -6797,6 +7302,15 @@ var OAuthApi = class extends BaseApiClient {
|
|
|
6797
7302
|
const params = new URLSearchParams({ client_id: clientId });
|
|
6798
7303
|
return this.fetch(`oauth/authorize/mcp-targets?${params.toString()}`);
|
|
6799
7304
|
}
|
|
7305
|
+
/**
|
|
7306
|
+
* The organizations and workspaces the consent screen may offer a non-MCP
|
|
7307
|
+
* App: one workspace, or a whole organization where
|
|
7308
|
+
* `organizationGrantPermitted` is true.
|
|
7309
|
+
*/
|
|
7310
|
+
async getConsentTargets(clientId) {
|
|
7311
|
+
const params = new URLSearchParams({ client_id: clientId });
|
|
7312
|
+
return this.fetch(`oauth/authorize/targets?${params.toString()}`);
|
|
7313
|
+
}
|
|
6800
7314
|
/** The signed-in account's MCP grants. */
|
|
6801
7315
|
async listMcpGrants() {
|
|
6802
7316
|
return this.fetch("oauth/mcp-grants");
|
|
@@ -6859,6 +7373,17 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
6859
7373
|
const query2 = params.toString();
|
|
6860
7374
|
return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
|
|
6861
7375
|
}
|
|
7376
|
+
/**
|
|
7377
|
+
* The numbers a Chat can be started from, for a Member with `chats:write`.
|
|
7378
|
+
*
|
|
7379
|
+
* Every non-archived workspace number in a slim shape (`id`, `number`,
|
|
7380
|
+
* `name`, `isMapped`, `enableWhatsApp`) — no phone administration data, so
|
|
7381
|
+
* it needs no `phones:read`. A row describes configuration, not permission
|
|
7382
|
+
* to send.
|
|
7383
|
+
*/
|
|
7384
|
+
async getChatPhoneNumbers(wid) {
|
|
7385
|
+
return this.fetch(`w/${wid}/phone-numbers/chat-senders`);
|
|
7386
|
+
}
|
|
6862
7387
|
/** List phone numbers available for provisioning. */
|
|
6863
7388
|
async getAvailablePhoneNumbers(wid) {
|
|
6864
7389
|
return this.fetch(
|
|
@@ -7646,213 +8171,45 @@ var RoutingRulesApi = class extends BaseApiClient {
|
|
|
7646
8171
|
}
|
|
7647
8172
|
};
|
|
7648
8173
|
|
|
7649
|
-
// src/api/
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
async
|
|
7660
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/install`, {
|
|
7661
|
-
method: "POST",
|
|
7662
|
-
body: JSON.stringify(data ?? {})
|
|
7663
|
-
});
|
|
7664
|
-
}
|
|
7665
|
-
async configureSalesforce(wid, data) {
|
|
7666
|
-
return this.fetch(
|
|
7667
|
-
`w/${wid}/app-connections/salesforce/configure`,
|
|
7668
|
-
{
|
|
7669
|
-
method: "POST",
|
|
7670
|
-
body: JSON.stringify(data)
|
|
7671
|
-
}
|
|
7672
|
-
);
|
|
7673
|
-
}
|
|
7674
|
-
async startSalesforceOAuth(wid) {
|
|
7675
|
-
return this.fetch(
|
|
7676
|
-
`w/${wid}/app-connections/salesforce/oauth/start`,
|
|
7677
|
-
{
|
|
7678
|
-
method: "POST"
|
|
7679
|
-
}
|
|
7680
|
-
);
|
|
7681
|
-
}
|
|
7682
|
-
async getSalesforceStatus(wid) {
|
|
7683
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/status`);
|
|
7684
|
-
}
|
|
7685
|
-
async disconnectSalesforce(wid) {
|
|
7686
|
-
return this.fetch(
|
|
7687
|
-
`w/${wid}/app-connections/salesforce/disconnect`,
|
|
7688
|
-
{
|
|
7689
|
-
method: "DELETE"
|
|
7690
|
-
}
|
|
7691
|
-
);
|
|
7692
|
-
}
|
|
7693
|
-
async disableSalesforce(wid) {
|
|
7694
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/disable`, {
|
|
7695
|
-
method: "POST"
|
|
7696
|
-
});
|
|
7697
|
-
}
|
|
7698
|
-
async enableSalesforce(wid) {
|
|
7699
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/enable`, {
|
|
7700
|
-
method: "POST"
|
|
7701
|
-
});
|
|
7702
|
-
}
|
|
7703
|
-
async deleteSalesforce(wid) {
|
|
7704
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/delete`, {
|
|
7705
|
-
method: "DELETE"
|
|
7706
|
-
});
|
|
7707
|
-
}
|
|
7708
|
-
async getSalesforceReconciliationMatches(wid, params) {
|
|
7709
|
-
const query2 = new URLSearchParams();
|
|
7710
|
-
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
7711
|
-
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
7712
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7713
|
-
return this.fetch(
|
|
7714
|
-
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
7715
|
-
);
|
|
7716
|
-
}
|
|
7717
|
-
async linkMemberToSalesforce(wid, data) {
|
|
7718
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link`, {
|
|
7719
|
-
method: "POST",
|
|
7720
|
-
body: JSON.stringify(data)
|
|
7721
|
-
});
|
|
7722
|
-
}
|
|
7723
|
-
async bulkLinkMembersToSalesforce(wid, data) {
|
|
7724
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link/bulk`, {
|
|
7725
|
-
method: "POST",
|
|
7726
|
-
body: JSON.stringify(data)
|
|
7727
|
-
});
|
|
7728
|
-
}
|
|
7729
|
-
/**
|
|
7730
|
-
* @deprecated Use `linkUnlinkedMembersByIdentity(wid, connectionId)`, which
|
|
7731
|
-
* serves every connector that links by identity. This calls the retained
|
|
7732
|
-
* Salesforce-only route and will be removed once no caller remains.
|
|
7733
|
-
*/
|
|
7734
|
-
async linkUnlinkedSalesforceMembersByIdentity(wid) {
|
|
7735
|
-
return this.fetch(
|
|
7736
|
-
`w/${wid}/app-connections/salesforce/reconciliation/link-unlinked-by-identity`,
|
|
7737
|
-
{
|
|
7738
|
-
method: "POST",
|
|
7739
|
-
body: JSON.stringify({})
|
|
7740
|
-
}
|
|
7741
|
-
);
|
|
7742
|
-
}
|
|
7743
|
-
async unlinkMemberFromSalesforce(wid, memberId) {
|
|
7744
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/unlink/${memberId}`, {
|
|
7745
|
-
method: "DELETE"
|
|
7746
|
-
});
|
|
7747
|
-
}
|
|
7748
|
-
async getLinkedSalesforceMembers(wid, params) {
|
|
7749
|
-
const query2 = new URLSearchParams();
|
|
7750
|
-
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
7751
|
-
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
7752
|
-
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
7753
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7754
|
-
return this.fetch(
|
|
7755
|
-
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
7756
|
-
);
|
|
7757
|
-
}
|
|
7758
|
-
// --- Sync config ---
|
|
7759
|
-
async getSalesforceSyncConfig(wid) {
|
|
7760
|
-
return this.fetch(
|
|
7761
|
-
`w/${wid}/app-connections/salesforce/sync/config`
|
|
7762
|
-
);
|
|
7763
|
-
}
|
|
7764
|
-
async updateSalesforceSyncConfig(wid, data) {
|
|
8174
|
+
// src/api/connection-sync.ts
|
|
8175
|
+
function syncConfigQuery(options, validateOnly) {
|
|
8176
|
+
const query2 = new URLSearchParams();
|
|
8177
|
+
if (validateOnly) query2.set("validateOnly", "true");
|
|
8178
|
+
if (options.baseConfigDigest !== void 0)
|
|
8179
|
+
query2.set("baseConfigDigest", options.baseConfigDigest);
|
|
8180
|
+
const qs = query2.toString();
|
|
8181
|
+
return qs ? `?${qs}` : "";
|
|
8182
|
+
}
|
|
8183
|
+
var ConnectionSyncApi = class extends BaseApiClient {
|
|
8184
|
+
async getConnectionSyncCapabilities(wid, connectionId) {
|
|
7765
8185
|
return this.fetch(
|
|
7766
|
-
`w/${wid}/app-connections/
|
|
7767
|
-
{
|
|
7768
|
-
method: "PUT",
|
|
7769
|
-
body: JSON.stringify(data)
|
|
7770
|
-
}
|
|
8186
|
+
`w/${wid}/app-connections/${connectionId}/sync-capabilities`
|
|
7771
8187
|
);
|
|
7772
8188
|
}
|
|
7773
|
-
|
|
7774
|
-
* Pull linked members' Salesforce records now, ignoring the sync cursor.
|
|
7775
|
-
*
|
|
7776
|
-
* The inbound poll only ever returns records modified after the stored
|
|
7777
|
-
* cursor, so a member linked to a record that has not changed since is
|
|
7778
|
-
* unreachable by any poll and its link never receives a field — silently.
|
|
7779
|
-
* This fetches the records by Id and leaves the cursor untouched, so it is
|
|
7780
|
-
* safe to call at any time.
|
|
7781
|
-
*
|
|
7782
|
-
* Omit `memberIds` to resync every linked member (capped server-side).
|
|
7783
|
-
*/
|
|
7784
|
-
async resyncSalesforceLinkedMembers(wid, data = {}) {
|
|
8189
|
+
async getConnectionSyncConfig(wid, connectionId) {
|
|
7785
8190
|
return this.fetch(
|
|
7786
|
-
`w/${wid}/app-connections/
|
|
7787
|
-
{
|
|
7788
|
-
method: "POST",
|
|
7789
|
-
body: JSON.stringify(data)
|
|
7790
|
-
}
|
|
8191
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
7791
8192
|
);
|
|
7792
8193
|
}
|
|
7793
8194
|
/**
|
|
7794
|
-
*
|
|
7795
|
-
*
|
|
7796
|
-
*
|
|
7797
|
-
* objects included), so it must come from the org rather than a hardcoded
|
|
7798
|
-
* list.
|
|
8195
|
+
* Save the config; returns it with the new `configDigest`. Pass the digest
|
|
8196
|
+
* the draft was read with as `options.baseConfigDigest`: a changed
|
|
8197
|
+
* configuration is refused with 409 `sync_config_changed` (never retried).
|
|
7799
8198
|
*/
|
|
7800
|
-
async
|
|
7801
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
7802
|
-
}
|
|
7803
|
-
async describeSalesforceObject(wid, sobject) {
|
|
7804
|
-
return this.fetch(
|
|
7805
|
-
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
7806
|
-
);
|
|
7807
|
-
}
|
|
7808
|
-
// --- Search & Import ---
|
|
7809
|
-
async searchSalesforceRecords(wid, data) {
|
|
7810
|
-
return this.fetch(`w/${wid}/app-connections/salesforce/search`, {
|
|
7811
|
-
method: "POST",
|
|
7812
|
-
body: JSON.stringify(data)
|
|
7813
|
-
});
|
|
7814
|
-
}
|
|
7815
|
-
async importSalesforceMembers(wid, data) {
|
|
8199
|
+
async updateConnectionSyncConfig(wid, connectionId, data, options = {}) {
|
|
7816
8200
|
return this.fetch(
|
|
7817
|
-
`w/${wid}/app-connections/
|
|
7818
|
-
{
|
|
7819
|
-
method: "POST",
|
|
7820
|
-
body: JSON.stringify(data)
|
|
7821
|
-
}
|
|
8201
|
+
`w/${wid}/app-connections/${connectionId}/sync-config${syncConfigQuery(options, false)}`,
|
|
8202
|
+
{ method: "PUT", body: JSON.stringify(data) }
|
|
7822
8203
|
);
|
|
7823
8204
|
}
|
|
7824
8205
|
/**
|
|
7825
|
-
*
|
|
7826
|
-
*
|
|
7827
|
-
*
|
|
7828
|
-
* connection is parked for re-authorization.
|
|
8206
|
+
* Run every save-time check on `data` without saving
|
|
8207
|
+
* (`PUT /sync-config?validateOnly=true`). Persists nothing and starts no
|
|
8208
|
+
* run; a failed check rejects with the save's own error.
|
|
7829
8209
|
*/
|
|
7830
|
-
async
|
|
7831
|
-
const query2 = new URLSearchParams();
|
|
7832
|
-
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
7833
|
-
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
7834
|
-
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8210
|
+
async validateConnectionSyncConfig(wid, connectionId, data, options = {}) {
|
|
7835
8211
|
return this.fetch(
|
|
7836
|
-
`w/${wid}/app-connections/
|
|
7837
|
-
);
|
|
7838
|
-
}
|
|
7839
|
-
};
|
|
7840
|
-
|
|
7841
|
-
// src/api/connection-sync.ts
|
|
7842
|
-
var ConnectionSyncApi = class extends BaseApiClient {
|
|
7843
|
-
async getConnectionSyncCapabilities(wid, connectionId) {
|
|
7844
|
-
return this.fetch(
|
|
7845
|
-
`w/${wid}/app-connections/${connectionId}/sync-capabilities`
|
|
7846
|
-
);
|
|
7847
|
-
}
|
|
7848
|
-
async getConnectionSyncConfig(wid, connectionId) {
|
|
7849
|
-
return this.fetch(
|
|
7850
|
-
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
7851
|
-
);
|
|
7852
|
-
}
|
|
7853
|
-
async updateConnectionSyncConfig(wid, connectionId, data) {
|
|
7854
|
-
return this.fetch(
|
|
7855
|
-
`w/${wid}/app-connections/${connectionId}/sync-config`,
|
|
8212
|
+
`w/${wid}/app-connections/${connectionId}/sync-config${syncConfigQuery(options, true)}`,
|
|
7856
8213
|
{ method: "PUT", body: JSON.stringify(data) }
|
|
7857
8214
|
);
|
|
7858
8215
|
}
|
|
@@ -7865,15 +8222,28 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
7865
8222
|
`w/${wid}/app-connections/${connectionId}/inbound-records/status`
|
|
7866
8223
|
);
|
|
7867
8224
|
}
|
|
8225
|
+
/** The owner sync's opt-in, and its latest pass. */
|
|
8226
|
+
async getOwnerMemberStatus(wid, connectionId) {
|
|
8227
|
+
return this.fetch(
|
|
8228
|
+
`w/${wid}/app-connections/${connectionId}/owner-members`
|
|
8229
|
+
);
|
|
8230
|
+
}
|
|
7868
8231
|
async getConnectionWritePreview(wid, connectionId, memberId) {
|
|
7869
8232
|
return this.fetch(
|
|
7870
8233
|
`w/${wid}/app-connections/${connectionId}/write-preview/members/${memberId}`
|
|
7871
8234
|
);
|
|
7872
8235
|
}
|
|
7873
|
-
|
|
8236
|
+
/**
|
|
8237
|
+
* The checkpoint one direction of one entity type resumes from. The route
|
|
8238
|
+
* reads ``direction`` and ``entity_type`` (default ``member``); ``sync_key``
|
|
8239
|
+
* is still sent for compatibility, though the current route ignores it. A
|
|
8240
|
+
* connection or entity with no checkpoint answers ``{cursor: {}}``.
|
|
8241
|
+
*/
|
|
8242
|
+
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default", entityType = "member") {
|
|
7874
8243
|
const query2 = new URLSearchParams({
|
|
7875
8244
|
direction,
|
|
7876
|
-
sync_key: syncKey
|
|
8245
|
+
sync_key: syncKey,
|
|
8246
|
+
entity_type: entityType
|
|
7877
8247
|
});
|
|
7878
8248
|
return this.fetch(
|
|
7879
8249
|
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
@@ -7914,6 +8284,31 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
7914
8284
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
7915
8285
|
);
|
|
7916
8286
|
}
|
|
8287
|
+
/** Failing Member links grouped by cause. Codes and counts only; needs `apps:read`. */
|
|
8288
|
+
async getSyncFailureSummary(wid, connectionId) {
|
|
8289
|
+
return this.fetch(
|
|
8290
|
+
`w/${wid}/app-connections/${connectionId}/sync/failures/summary`
|
|
8291
|
+
);
|
|
8292
|
+
}
|
|
8293
|
+
/**
|
|
8294
|
+
* One page of failing Member links. With `cause`, the links of exactly
|
|
8295
|
+
* that cause (`remoteCode: null` is the cause with no remote code);
|
|
8296
|
+
* without it, every failing link. Returns Member names, so it needs
|
|
8297
|
+
* `members:read` as well as `apps:read`.
|
|
8298
|
+
*/
|
|
8299
|
+
async getSyncFailures(wid, connectionId, options) {
|
|
8300
|
+
const params = new URLSearchParams();
|
|
8301
|
+
if (options?.cause) {
|
|
8302
|
+
params.set("code", options.cause.code);
|
|
8303
|
+
if (options.cause.remoteCode != null) params.set("remoteCode", options.cause.remoteCode);
|
|
8304
|
+
}
|
|
8305
|
+
if (options?.page != null) params.set("page", String(options.page));
|
|
8306
|
+
if (options?.pageSize != null) params.set("pageSize", String(options.pageSize));
|
|
8307
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
8308
|
+
return this.fetch(
|
|
8309
|
+
`w/${wid}/app-connections/${connectionId}/sync/failures${qs}`
|
|
8310
|
+
);
|
|
8311
|
+
}
|
|
7917
8312
|
/**
|
|
7918
8313
|
* One page of a run's items. ``cursor`` is the previous page's
|
|
7919
8314
|
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
@@ -8022,40 +8417,268 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
8022
8417
|
{ method: "POST", body: JSON.stringify({ restart: options?.restart ?? false }) }
|
|
8023
8418
|
);
|
|
8024
8419
|
}
|
|
8025
|
-
/** Ask a running import to stop (202); its progress is kept for a resume. */
|
|
8026
|
-
async cancelSubsetImport(wid, connectionId, importId) {
|
|
8027
|
-
return this.fetch(
|
|
8028
|
-
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}/cancel`),
|
|
8029
|
-
// The CSRF barrier refuses a body-less POST (422); `{}` is the request.
|
|
8030
|
-
{ method: "POST", body: JSON.stringify({}) }
|
|
8031
|
-
);
|
|
8420
|
+
/** Ask a running import to stop (202); its progress is kept for a resume. */
|
|
8421
|
+
async cancelSubsetImport(wid, connectionId, importId) {
|
|
8422
|
+
return this.fetch(
|
|
8423
|
+
this.subsetImportsPath(wid, connectionId, `/${encodeURIComponent(importId)}/cancel`),
|
|
8424
|
+
// The CSRF barrier refuses a body-less POST (422); `{}` is the request.
|
|
8425
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
8426
|
+
);
|
|
8427
|
+
}
|
|
8428
|
+
/** The connection's import-run history, newest first (counts only). */
|
|
8429
|
+
async listSubsetImportRuns(wid, connectionId, limit = 20) {
|
|
8430
|
+
return this.fetch(
|
|
8431
|
+
this.subsetImportsPath(wid, connectionId, `/runs?limit=${limit}`)
|
|
8432
|
+
);
|
|
8433
|
+
}
|
|
8434
|
+
/** Vendor lists a `vendor_list` import can name (configuration only). */
|
|
8435
|
+
async listSubsetImportVendorLists(wid, connectionId, options) {
|
|
8436
|
+
const query2 = new URLSearchParams({
|
|
8437
|
+
query: options?.query ?? "",
|
|
8438
|
+
limit: String(options?.limit ?? 50)
|
|
8439
|
+
});
|
|
8440
|
+
return this.fetch(
|
|
8441
|
+
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
|
|
8442
|
+
);
|
|
8443
|
+
}
|
|
8444
|
+
/** Remote fields a `field_filter` import can name, with their operators. */
|
|
8445
|
+
async listSubsetImportFilterFields(wid, connectionId) {
|
|
8446
|
+
return this.fetch(
|
|
8447
|
+
this.subsetImportsPath(wid, connectionId, "/filter-fields")
|
|
8448
|
+
);
|
|
8449
|
+
}
|
|
8450
|
+
};
|
|
8451
|
+
|
|
8452
|
+
// src/api/salesforce.ts
|
|
8453
|
+
var SalesforceApi = class extends BaseApiClient {
|
|
8454
|
+
/**
|
|
8455
|
+
* Create the Salesforce connection shell (no credentials yet).
|
|
8456
|
+
*
|
|
8457
|
+
* First step of the guided setup flow: provisions the connection row so
|
|
8458
|
+
* the admin lands on the detail page where the OAuth callback URL is
|
|
8459
|
+
* shown — which they need to register their Salesforce Connected App
|
|
8460
|
+
* before they have a Client ID / Secret to enter. Idempotent.
|
|
8461
|
+
*/
|
|
8462
|
+
async installSalesforce(wid, data) {
|
|
8463
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/install`, {
|
|
8464
|
+
method: "POST",
|
|
8465
|
+
body: JSON.stringify(data ?? {})
|
|
8466
|
+
});
|
|
8467
|
+
}
|
|
8468
|
+
async configureSalesforce(wid, data) {
|
|
8469
|
+
return this.fetch(
|
|
8470
|
+
`w/${wid}/app-connections/salesforce/configure`,
|
|
8471
|
+
{
|
|
8472
|
+
method: "POST",
|
|
8473
|
+
body: JSON.stringify(data)
|
|
8474
|
+
}
|
|
8475
|
+
);
|
|
8476
|
+
}
|
|
8477
|
+
async startSalesforceOAuth(wid) {
|
|
8478
|
+
return this.fetch(
|
|
8479
|
+
`w/${wid}/app-connections/salesforce/oauth/start`,
|
|
8480
|
+
{
|
|
8481
|
+
method: "POST"
|
|
8482
|
+
}
|
|
8483
|
+
);
|
|
8484
|
+
}
|
|
8485
|
+
async getSalesforceStatus(wid) {
|
|
8486
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/status`);
|
|
8487
|
+
}
|
|
8488
|
+
async disconnectSalesforce(wid) {
|
|
8489
|
+
return this.fetch(
|
|
8490
|
+
`w/${wid}/app-connections/salesforce/disconnect`,
|
|
8491
|
+
{
|
|
8492
|
+
method: "DELETE"
|
|
8493
|
+
}
|
|
8494
|
+
);
|
|
8495
|
+
}
|
|
8496
|
+
async disableSalesforce(wid) {
|
|
8497
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/disable`, {
|
|
8498
|
+
method: "POST"
|
|
8499
|
+
});
|
|
8500
|
+
}
|
|
8501
|
+
async enableSalesforce(wid) {
|
|
8502
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/enable`, {
|
|
8503
|
+
method: "POST"
|
|
8504
|
+
});
|
|
8505
|
+
}
|
|
8506
|
+
async deleteSalesforce(wid) {
|
|
8507
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/delete`, {
|
|
8508
|
+
method: "DELETE"
|
|
8509
|
+
});
|
|
8510
|
+
}
|
|
8511
|
+
async getSalesforceReconciliationMatches(wid, params) {
|
|
8512
|
+
const query2 = new URLSearchParams();
|
|
8513
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
8514
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
8515
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8516
|
+
return this.fetch(
|
|
8517
|
+
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
8518
|
+
);
|
|
8519
|
+
}
|
|
8520
|
+
async linkMemberToSalesforce(wid, data) {
|
|
8521
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link`, {
|
|
8522
|
+
method: "POST",
|
|
8523
|
+
body: JSON.stringify(data)
|
|
8524
|
+
});
|
|
8525
|
+
}
|
|
8526
|
+
async bulkLinkMembersToSalesforce(wid, data) {
|
|
8527
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/link/bulk`, {
|
|
8528
|
+
method: "POST",
|
|
8529
|
+
body: JSON.stringify(data)
|
|
8530
|
+
});
|
|
8531
|
+
}
|
|
8532
|
+
/**
|
|
8533
|
+
* @deprecated Use `linkUnlinkedMembersByIdentity(wid, connectionId)`, which
|
|
8534
|
+
* serves every connector that links by identity. This calls the retained
|
|
8535
|
+
* Salesforce-only route and will be removed once no caller remains.
|
|
8536
|
+
*/
|
|
8537
|
+
async linkUnlinkedSalesforceMembersByIdentity(wid) {
|
|
8538
|
+
return this.fetch(
|
|
8539
|
+
`w/${wid}/app-connections/salesforce/reconciliation/link-unlinked-by-identity`,
|
|
8540
|
+
{
|
|
8541
|
+
method: "POST",
|
|
8542
|
+
body: JSON.stringify({})
|
|
8543
|
+
}
|
|
8544
|
+
);
|
|
8545
|
+
}
|
|
8546
|
+
async unlinkMemberFromSalesforce(wid, memberId) {
|
|
8547
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/reconciliation/unlink/${memberId}`, {
|
|
8548
|
+
method: "DELETE"
|
|
8549
|
+
});
|
|
8550
|
+
}
|
|
8551
|
+
async getLinkedSalesforceMembers(wid, params) {
|
|
8552
|
+
const query2 = new URLSearchParams();
|
|
8553
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
8554
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
8555
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
8556
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8557
|
+
return this.fetch(
|
|
8558
|
+
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
8559
|
+
);
|
|
8560
|
+
}
|
|
8561
|
+
// --- Sync config ---
|
|
8562
|
+
async getSalesforceSyncConfig(wid) {
|
|
8563
|
+
return this.fetch(
|
|
8564
|
+
`w/${wid}/app-connections/salesforce/sync/config`
|
|
8565
|
+
);
|
|
8566
|
+
}
|
|
8567
|
+
/**
|
|
8568
|
+
* Save the config and settings together; returns them with the new
|
|
8569
|
+
* `configDigest`. Pass the digest they were read with as
|
|
8570
|
+
* `options.baseConfigDigest` (409 `sync_config_changed` when it changed).
|
|
8571
|
+
*/
|
|
8572
|
+
async updateSalesforceSyncConfig(wid, data, options = {}) {
|
|
8573
|
+
return this.fetch(
|
|
8574
|
+
`w/${wid}/app-connections/salesforce/sync/config${syncConfigQuery(options, false)}`,
|
|
8575
|
+
{
|
|
8576
|
+
method: "PUT",
|
|
8577
|
+
body: JSON.stringify(data)
|
|
8578
|
+
}
|
|
8579
|
+
);
|
|
8580
|
+
}
|
|
8581
|
+
/**
|
|
8582
|
+
* Run every save-time check -- including the upsert-field describe when
|
|
8583
|
+
* Member outbound is newly enabled or re-keyed -- without saving.
|
|
8584
|
+
*/
|
|
8585
|
+
async validateSalesforceSyncConfig(wid, data, options = {}) {
|
|
8586
|
+
return this.fetch(
|
|
8587
|
+
`w/${wid}/app-connections/salesforce/sync/config${syncConfigQuery(options, true)}`,
|
|
8588
|
+
{
|
|
8589
|
+
method: "PUT",
|
|
8590
|
+
body: JSON.stringify(data)
|
|
8591
|
+
}
|
|
8592
|
+
);
|
|
8593
|
+
}
|
|
8594
|
+
/**
|
|
8595
|
+
* Pull linked members' Salesforce records now, ignoring the sync cursor.
|
|
8596
|
+
*
|
|
8597
|
+
* The inbound poll only ever returns records modified after the stored
|
|
8598
|
+
* cursor, so a member linked to a record that has not changed since is
|
|
8599
|
+
* unreachable by any poll and its link never receives a field — silently.
|
|
8600
|
+
* This fetches the records by Id and leaves the cursor untouched, so it is
|
|
8601
|
+
* safe to call at any time.
|
|
8602
|
+
*
|
|
8603
|
+
* Omit `memberIds` to resync every linked member (capped server-side).
|
|
8604
|
+
*/
|
|
8605
|
+
async resyncSalesforceLinkedMembers(wid, data = {}) {
|
|
8606
|
+
return this.fetch(
|
|
8607
|
+
`w/${wid}/app-connections/salesforce/sync/resync-members`,
|
|
8608
|
+
{
|
|
8609
|
+
method: "POST",
|
|
8610
|
+
body: JSON.stringify(data)
|
|
8611
|
+
}
|
|
8612
|
+
);
|
|
8613
|
+
}
|
|
8614
|
+
/**
|
|
8615
|
+
* List the sObjects available in the connected org.
|
|
8616
|
+
*
|
|
8617
|
+
* Backs the Target Object picker: the object set is org-specific (custom
|
|
8618
|
+
* objects included), so it must come from the org rather than a hardcoded
|
|
8619
|
+
* list.
|
|
8620
|
+
*/
|
|
8621
|
+
async listSalesforceObjects(wid) {
|
|
8622
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
8032
8623
|
}
|
|
8033
|
-
|
|
8034
|
-
async listSubsetImportRuns(wid, connectionId, limit = 20) {
|
|
8624
|
+
async describeSalesforceObject(wid, sobject) {
|
|
8035
8625
|
return this.fetch(
|
|
8036
|
-
|
|
8626
|
+
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
8037
8627
|
);
|
|
8038
8628
|
}
|
|
8039
|
-
|
|
8040
|
-
async
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8629
|
+
// --- Search & Import ---
|
|
8630
|
+
async searchSalesforceRecords(wid, data) {
|
|
8631
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/search`, {
|
|
8632
|
+
method: "POST",
|
|
8633
|
+
body: JSON.stringify(data)
|
|
8044
8634
|
});
|
|
8635
|
+
}
|
|
8636
|
+
async importSalesforceMembers(wid, data) {
|
|
8045
8637
|
return this.fetch(
|
|
8046
|
-
|
|
8638
|
+
`w/${wid}/app-connections/salesforce/import-members`,
|
|
8639
|
+
{
|
|
8640
|
+
method: "POST",
|
|
8641
|
+
body: JSON.stringify(data)
|
|
8642
|
+
}
|
|
8047
8643
|
);
|
|
8048
8644
|
}
|
|
8049
|
-
/**
|
|
8050
|
-
|
|
8645
|
+
/**
|
|
8646
|
+
* Managed-rule execution history for this connection (`GET /sync/logs`):
|
|
8647
|
+
* the connection's managed EventRule executions, newest first, with the
|
|
8648
|
+
* shared cursor pagination. Requires `apps:read`; works while the
|
|
8649
|
+
* connection is parked for re-authorization.
|
|
8650
|
+
*/
|
|
8651
|
+
async getSalesforceSyncLogs(wid, params) {
|
|
8652
|
+
const query2 = new URLSearchParams();
|
|
8653
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
8654
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
8655
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8051
8656
|
return this.fetch(
|
|
8052
|
-
|
|
8657
|
+
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
8053
8658
|
);
|
|
8054
8659
|
}
|
|
8055
8660
|
};
|
|
8056
8661
|
|
|
8057
8662
|
// src/api/hubspot.ts
|
|
8058
8663
|
var HubspotApi = class extends BaseApiClient {
|
|
8664
|
+
async bindHubspotCalendar(wid, calendarId, linkId) {
|
|
8665
|
+
return this.fetch(`w/${wid}/app-connections/hubspot/calendars/${calendarId}/binding`, {
|
|
8666
|
+
method: "PUT",
|
|
8667
|
+
body: JSON.stringify({ linkId })
|
|
8668
|
+
});
|
|
8669
|
+
}
|
|
8670
|
+
async unlinkHubspotCalendar(wid, calendarId) {
|
|
8671
|
+
return this.fetch(`w/${wid}/app-connections/hubspot/calendars/${calendarId}/binding`, {
|
|
8672
|
+
method: "DELETE"
|
|
8673
|
+
});
|
|
8674
|
+
}
|
|
8675
|
+
/** Import one page into native CalendarEvents. Does not book or send invitations. */
|
|
8676
|
+
async importHubspotCalendarEvents(wid, calendarId, eventTypeId) {
|
|
8677
|
+
return this.fetch(`w/${wid}/app-connections/hubspot/calendars/${calendarId}/events/sync`, {
|
|
8678
|
+
method: "POST",
|
|
8679
|
+
body: JSON.stringify({ eventTypeId })
|
|
8680
|
+
});
|
|
8681
|
+
}
|
|
8059
8682
|
async getHubspotBookingReceipt(wid, meetingId) {
|
|
8060
8683
|
return this.fetch(
|
|
8061
8684
|
`w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/receipt`
|
|
@@ -8103,6 +8726,18 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
8103
8726
|
method: "DELETE"
|
|
8104
8727
|
});
|
|
8105
8728
|
}
|
|
8729
|
+
/**
|
|
8730
|
+
* Move a connection from its own HubSpot app onto the shared Gravity Rail
|
|
8731
|
+
* app. Sync settings and Member links stay. A connection whose saved Client
|
|
8732
|
+
* ID is the shared app's stays connected; any other returns to setup and is
|
|
8733
|
+
* connected again with `startHubspotOAuth`.
|
|
8734
|
+
*/
|
|
8735
|
+
async switchHubspotToPlatformApp(wid) {
|
|
8736
|
+
return this.fetch(
|
|
8737
|
+
`w/${wid}/app-connections/hubspot/use-platform-app`,
|
|
8738
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
8739
|
+
);
|
|
8740
|
+
}
|
|
8106
8741
|
async disableHubspot(wid) {
|
|
8107
8742
|
return this.fetch(`w/${wid}/app-connections/hubspot/disable`, {
|
|
8108
8743
|
method: "POST"
|
|
@@ -8183,6 +8818,16 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
8183
8818
|
`w/${wid}/app-connections/hubspot/sync-settings/meeting-links`
|
|
8184
8819
|
);
|
|
8185
8820
|
}
|
|
8821
|
+
/**
|
|
8822
|
+
* The HubSpot objects a `crm_objects` record source may read (Services and the
|
|
8823
|
+
* portal's custom objects) with their properties, and each family's status
|
|
8824
|
+
* (`missing_scope` without that family's object and schema scopes).
|
|
8825
|
+
*/
|
|
8826
|
+
async getHubspotCrmObjects(wid) {
|
|
8827
|
+
return this.fetch(
|
|
8828
|
+
`w/${wid}/app-connections/hubspot/sync-settings/crm-objects`
|
|
8829
|
+
);
|
|
8830
|
+
}
|
|
8186
8831
|
/** The portal's forms and their fields, or `missing_scope` without the `forms` scope. */
|
|
8187
8832
|
async getHubspotForms(wid) {
|
|
8188
8833
|
return this.fetch(
|
|
@@ -8589,12 +9234,6 @@ var SnippetsApi = class extends BaseApiClient {
|
|
|
8589
9234
|
async getSnippet(wid, id) {
|
|
8590
9235
|
return this.fetch(`w/${wid}/snippets/${id}`);
|
|
8591
9236
|
}
|
|
8592
|
-
async createSnippet(wid, data) {
|
|
8593
|
-
return this.fetch(`w/${wid}/snippets`, {
|
|
8594
|
-
method: "POST",
|
|
8595
|
-
body: JSON.stringify(data)
|
|
8596
|
-
});
|
|
8597
|
-
}
|
|
8598
9237
|
async updateSnippet(wid, id, data) {
|
|
8599
9238
|
return this.fetch(`w/${wid}/snippets/${id}`, {
|
|
8600
9239
|
method: "PUT",
|
|
@@ -8685,7 +9324,7 @@ var SubscriptionsApi = class extends BaseApiClient {
|
|
|
8685
9324
|
);
|
|
8686
9325
|
}
|
|
8687
9326
|
/**
|
|
8688
|
-
* List self-service, purchasable organization plans
|
|
9327
|
+
* List self-service, purchasable organization plans. Only products
|
|
8689
9328
|
* with a Stripe Price are returned; zero-amount plans are allowed.
|
|
8690
9329
|
*/
|
|
8691
9330
|
async listSelfServeProducts(productType) {
|
|
@@ -8773,9 +9412,6 @@ function supportRequestParams(params) {
|
|
|
8773
9412
|
if (params?.workspaceId !== void 0) {
|
|
8774
9413
|
searchParams.append("workspaceId", params.workspaceId.toString());
|
|
8775
9414
|
}
|
|
8776
|
-
if (params?.linearLinked !== void 0) {
|
|
8777
|
-
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
8778
|
-
}
|
|
8779
9415
|
const query2 = searchParams.toString();
|
|
8780
9416
|
return query2 ? `?${query2}` : "";
|
|
8781
9417
|
}
|
|
@@ -8820,6 +9456,18 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
8820
9456
|
body: JSON.stringify(data)
|
|
8821
9457
|
});
|
|
8822
9458
|
}
|
|
9459
|
+
/** Admins of this organization a new or existing request can copy in. */
|
|
9460
|
+
async listOrgSupportRequestCcCandidates(orgUuid) {
|
|
9461
|
+
return this.fetch(
|
|
9462
|
+
`o/${orgUuid}/support-requests/cc-candidates`
|
|
9463
|
+
);
|
|
9464
|
+
}
|
|
9465
|
+
async addOrgSupportRequestParticipants(orgUuid, uuid, data) {
|
|
9466
|
+
return this.fetch(`o/${orgUuid}/support-requests/${uuid}/participants`, {
|
|
9467
|
+
method: "POST",
|
|
9468
|
+
body: JSON.stringify(data)
|
|
9469
|
+
});
|
|
9470
|
+
}
|
|
8823
9471
|
async listWorkspaceSupportRequests(workspaceUuid, params) {
|
|
8824
9472
|
return this.fetch(
|
|
8825
9473
|
`w/${workspaceUuid}/support-requests${supportRequestParams(params)}`
|
|
@@ -8840,6 +9488,21 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
8840
9488
|
body: JSON.stringify(data)
|
|
8841
9489
|
});
|
|
8842
9490
|
}
|
|
9491
|
+
/** Admins of this workspace and its organization a request can copy in. */
|
|
9492
|
+
async listWorkspaceSupportRequestCcCandidates(workspaceUuid) {
|
|
9493
|
+
return this.fetch(
|
|
9494
|
+
`w/${workspaceUuid}/support-requests/cc-candidates`
|
|
9495
|
+
);
|
|
9496
|
+
}
|
|
9497
|
+
async addWorkspaceSupportRequestParticipants(workspaceUuid, uuid, data) {
|
|
9498
|
+
return this.fetch(
|
|
9499
|
+
`w/${workspaceUuid}/support-requests/${uuid}/participants`,
|
|
9500
|
+
{
|
|
9501
|
+
method: "POST",
|
|
9502
|
+
body: JSON.stringify(data)
|
|
9503
|
+
}
|
|
9504
|
+
);
|
|
9505
|
+
}
|
|
8843
9506
|
async closeWorkspaceSupportRequest(workspaceUuid, uuid, data = {}) {
|
|
8844
9507
|
return this.fetch(`w/${workspaceUuid}/support-requests/${uuid}/close`, {
|
|
8845
9508
|
method: "POST",
|
|
@@ -8872,18 +9535,32 @@ var SupportRequestsApi = class extends BaseApiClient {
|
|
|
8872
9535
|
}
|
|
8873
9536
|
};
|
|
8874
9537
|
|
|
8875
|
-
// src/api/
|
|
8876
|
-
var
|
|
8877
|
-
async
|
|
8878
|
-
return this.fetch(
|
|
9538
|
+
// src/api/organization-billing.ts
|
|
9539
|
+
var OrganizationBillingApi = class extends BaseApiClient {
|
|
9540
|
+
async getOrganizationSubscription(orgUuid) {
|
|
9541
|
+
return this.fetch(`o/${orgUuid}/billing/subscription`);
|
|
9542
|
+
}
|
|
9543
|
+
async updateOrganizationCreditSettings(orgUuid, updates) {
|
|
9544
|
+
return this.fetch(`o/${orgUuid}/billing/subscription`, {
|
|
9545
|
+
method: "PUT",
|
|
9546
|
+
body: JSON.stringify(updates),
|
|
9547
|
+
headers: { "Content-Type": "application/json" }
|
|
9548
|
+
});
|
|
9549
|
+
}
|
|
9550
|
+
async purchaseOrganizationCredits(orgUuid, amountCents, idempotencyKey = crypto.randomUUID()) {
|
|
9551
|
+
return this.fetch(`o/${orgUuid}/billing/subscription/purchase-credits`, {
|
|
9552
|
+
method: "POST",
|
|
9553
|
+
body: JSON.stringify({ amountCents }),
|
|
9554
|
+
headers: { "Content-Type": "application/json", "Idempotency-Key": idempotencyKey }
|
|
9555
|
+
});
|
|
8879
9556
|
}
|
|
8880
|
-
async
|
|
8881
|
-
return this.fetch(
|
|
9557
|
+
async getBillingOrganizations() {
|
|
9558
|
+
return this.fetch("o/billing-organizations");
|
|
8882
9559
|
}
|
|
8883
|
-
async
|
|
8884
|
-
return this.fetch(`
|
|
9560
|
+
async getOrganizationBilling(uuid) {
|
|
9561
|
+
return this.fetch(`o/${uuid}/billing`);
|
|
8885
9562
|
}
|
|
8886
|
-
async
|
|
9563
|
+
async getOrganizationBillingSubscriptions(uuid, opts) {
|
|
8887
9564
|
const params = new URLSearchParams();
|
|
8888
9565
|
if (opts?.status) params.set("status", opts.status);
|
|
8889
9566
|
if (opts?.page !== void 0) params.set("page", String(opts.page));
|
|
@@ -8892,50 +9569,53 @@ var CustomersApi = class extends BaseApiClient {
|
|
|
8892
9569
|
params.set("subscription_id", String(opts.subscriptionId));
|
|
8893
9570
|
}
|
|
8894
9571
|
const qs = params.toString();
|
|
8895
|
-
return this.fetch(`
|
|
9572
|
+
return this.fetch(`o/${uuid}/billing/subscriptions${qs ? "?" + qs : ""}`);
|
|
8896
9573
|
}
|
|
8897
|
-
async
|
|
8898
|
-
return this.fetch(`
|
|
9574
|
+
async getOrganizationInvoices(uuid) {
|
|
9575
|
+
return this.fetch(`o/${uuid}/billing/invoices`);
|
|
8899
9576
|
}
|
|
8900
|
-
async
|
|
8901
|
-
return this.fetch(`
|
|
9577
|
+
async createOrganizationPortalSession(uuid, returnUrl) {
|
|
9578
|
+
return this.fetch(`o/${uuid}/billing/stripe/portal-session`, {
|
|
8902
9579
|
method: "POST",
|
|
8903
9580
|
body: JSON.stringify({ returnUrl }),
|
|
8904
9581
|
headers: { "Content-Type": "application/json" }
|
|
8905
9582
|
});
|
|
8906
9583
|
}
|
|
8907
|
-
async
|
|
8908
|
-
return this.fetch(`
|
|
9584
|
+
async updateOrganizationBilling(uuid, data) {
|
|
9585
|
+
return this.fetch(`o/${uuid}/billing`, {
|
|
8909
9586
|
method: "PUT",
|
|
8910
9587
|
body: JSON.stringify(data),
|
|
8911
9588
|
headers: { "Content-Type": "application/json" }
|
|
8912
9589
|
});
|
|
8913
9590
|
}
|
|
8914
9591
|
// ===== Payment Methods =====
|
|
8915
|
-
async
|
|
8916
|
-
return this.fetch(`
|
|
9592
|
+
async createOrganizationSetupIntent(uuid) {
|
|
9593
|
+
return this.fetch(`o/${uuid}/billing/stripe/setup-intent`, {
|
|
9594
|
+
method: "POST",
|
|
9595
|
+
body: JSON.stringify({})
|
|
9596
|
+
});
|
|
8917
9597
|
}
|
|
8918
|
-
async
|
|
8919
|
-
return this.fetch(`
|
|
9598
|
+
async getOrganizationPaymentMethods(uuid) {
|
|
9599
|
+
return this.fetch(`o/${uuid}/billing/stripe/payment-methods`);
|
|
8920
9600
|
}
|
|
8921
|
-
async
|
|
8922
|
-
return this.fetch(`
|
|
9601
|
+
async attachOrganizationPaymentMethod(uuid, paymentMethodId, setAsDefault = false) {
|
|
9602
|
+
return this.fetch(`o/${uuid}/billing/stripe/payment-methods/${paymentMethodId}/attach`, {
|
|
8923
9603
|
method: "POST",
|
|
8924
9604
|
body: JSON.stringify({ setAsDefault }),
|
|
8925
9605
|
headers: { "Content-Type": "application/json" }
|
|
8926
9606
|
});
|
|
8927
9607
|
}
|
|
8928
|
-
async
|
|
8929
|
-
return this.fetch(`
|
|
9608
|
+
async detachOrganizationPaymentMethod(uuid, paymentMethodId) {
|
|
9609
|
+
return this.fetch(`o/${uuid}/billing/stripe/payment-methods/${paymentMethodId}`, {
|
|
8930
9610
|
method: "DELETE"
|
|
8931
9611
|
});
|
|
8932
9612
|
}
|
|
8933
|
-
async
|
|
8934
|
-
return this.fetch(`
|
|
9613
|
+
async setDefaultOrganizationPaymentMethod(uuid, paymentMethodId) {
|
|
9614
|
+
return this.fetch(`o/${uuid}/billing/stripe/payment-methods/${paymentMethodId}/set-default`, {
|
|
8935
9615
|
method: "PUT"
|
|
8936
9616
|
});
|
|
8937
9617
|
}
|
|
8938
|
-
async
|
|
9618
|
+
async getOrganizationCreditGrants(uuid, opts) {
|
|
8939
9619
|
const params = new URLSearchParams();
|
|
8940
9620
|
if (opts?.subscriptionId !== void 0) {
|
|
8941
9621
|
params.set("subscription_id", String(opts.subscriptionId));
|
|
@@ -8943,7 +9623,7 @@ var CustomersApi = class extends BaseApiClient {
|
|
|
8943
9623
|
if (opts?.page !== void 0) params.set("page", String(opts.page));
|
|
8944
9624
|
if (opts?.pageSize !== void 0) params.set("page_size", String(opts.pageSize));
|
|
8945
9625
|
const qs = params.toString();
|
|
8946
|
-
return this.fetch(`
|
|
9626
|
+
return this.fetch(`o/${uuid}/billing/credit-grants${qs ? "?" + qs : ""}`);
|
|
8947
9627
|
}
|
|
8948
9628
|
};
|
|
8949
9629
|
|
|
@@ -9042,6 +9722,10 @@ var TasksApi = class extends BaseApiClient {
|
|
|
9042
9722
|
`w/${wid}/tasks${params.toString() ? `?${params.toString()}` : ""}`
|
|
9043
9723
|
);
|
|
9044
9724
|
}
|
|
9725
|
+
/** Task identity only, with the same access and visibility as getTasks. */
|
|
9726
|
+
async getTaskCatalog(wid) {
|
|
9727
|
+
return this.fetch(`w/${wid}/tasks?catalog=true`);
|
|
9728
|
+
}
|
|
9045
9729
|
/** Get a single task by ID. */
|
|
9046
9730
|
async getTask(wid, id) {
|
|
9047
9731
|
return this.fetch(`w/${wid}/tasks/${id}`);
|
|
@@ -9163,6 +9847,41 @@ var ToolkitsApi = class extends BaseApiClient {
|
|
|
9163
9847
|
|
|
9164
9848
|
// src/api/journeys.ts
|
|
9165
9849
|
var JourneysApi = class extends BaseApiClient {
|
|
9850
|
+
async listJourneyTests(wid, journeyId) {
|
|
9851
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests`);
|
|
9852
|
+
}
|
|
9853
|
+
async createJourneyTest(wid, journeyId, data) {
|
|
9854
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests`, {
|
|
9855
|
+
method: "POST",
|
|
9856
|
+
body: JSON.stringify(data)
|
|
9857
|
+
});
|
|
9858
|
+
}
|
|
9859
|
+
async updateJourneyTest(wid, journeyId, testUuid, data) {
|
|
9860
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests/${encodeURIComponent(testUuid)}`, {
|
|
9861
|
+
method: "PATCH",
|
|
9862
|
+
body: JSON.stringify(data)
|
|
9863
|
+
});
|
|
9864
|
+
}
|
|
9865
|
+
async deleteJourneyTest(wid, journeyId, testUuid) {
|
|
9866
|
+
await this.fetch(`w/${wid}/journeys/${journeyId}/tests/${encodeURIComponent(testUuid)}`, {
|
|
9867
|
+
method: "DELETE"
|
|
9868
|
+
});
|
|
9869
|
+
}
|
|
9870
|
+
async runJourneyTests(wid, journeyId, init) {
|
|
9871
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/tests/run`, {
|
|
9872
|
+
method: "POST",
|
|
9873
|
+
body: JSON.stringify({}),
|
|
9874
|
+
signal: init?.signal
|
|
9875
|
+
});
|
|
9876
|
+
}
|
|
9877
|
+
/** Preview a saved or enrollment definition without enrolling or sending. */
|
|
9878
|
+
async simulateJourney(wid, journeyId, data, init) {
|
|
9879
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/simulate`, {
|
|
9880
|
+
method: "POST",
|
|
9881
|
+
body: JSON.stringify(data),
|
|
9882
|
+
signal: init?.signal
|
|
9883
|
+
});
|
|
9884
|
+
}
|
|
9166
9885
|
async putJourneyDraft(wid, journeyId, data) {
|
|
9167
9886
|
return this.fetch(`w/${wid}/journeys/${journeyId}/draft`, {
|
|
9168
9887
|
method: "PUT",
|
|
@@ -9199,7 +9918,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9199
9918
|
/**
|
|
9200
9919
|
* List journeys, optionally including archived, paginated.
|
|
9201
9920
|
*
|
|
9202
|
-
* Returns the READ projection (`JourneyRead`)
|
|
9921
|
+
* Returns the READ projection (`JourneyRead`), including edge CEL. Use
|
|
9203
9922
|
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
9204
9923
|
*/
|
|
9205
9924
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
@@ -9215,19 +9934,18 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9215
9934
|
/**
|
|
9216
9935
|
* Get a single journey by ID (includes steps and goals).
|
|
9217
9936
|
*
|
|
9218
|
-
* Returns the READ projection (`JourneyRead`)
|
|
9219
|
-
*
|
|
9220
|
-
* {@link getJourneyAuthoring} for those.
|
|
9937
|
+
* Returns the READ projection (`JourneyRead`) with edge `celCondition`.
|
|
9938
|
+
* Goal and decision-rule CEL remain on {@link getJourneyAuthoring}.
|
|
9221
9939
|
*/
|
|
9222
9940
|
async getJourney(wid, journeyId) {
|
|
9223
9941
|
return this.fetch(`w/${wid}/journeys/${journeyId}`);
|
|
9224
9942
|
}
|
|
9225
9943
|
/**
|
|
9226
|
-
* Get a journey's AUTHORING projection
|
|
9944
|
+
* Get a journey's write-authorized AUTHORING projection.
|
|
9227
9945
|
*
|
|
9228
|
-
*
|
|
9229
|
-
*
|
|
9230
|
-
* write-authorized surface that carries them for the Journey editor — it
|
|
9946
|
+
* The ordinary `getJourney` read projection includes edge CEL but omits
|
|
9947
|
+
* goal and decision-rule CEL and owned Member predicates. This endpoint is
|
|
9948
|
+
* the write-authorized surface that carries them for the Journey editor — it
|
|
9231
9949
|
* requires the `journeys:write` scope, so a read-only caller is denied and
|
|
9232
9950
|
* must not call it. Returns the authoring superset (`Journey`).
|
|
9233
9951
|
*/
|
|
@@ -9253,7 +9971,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9253
9971
|
* * `journey_v2_invalid_topology` — the resulting graph is not executable;
|
|
9254
9972
|
* the body carries `issues` (codes and resource uuids, never CEL).
|
|
9255
9973
|
*/
|
|
9256
|
-
async
|
|
9974
|
+
async putJourneyDefinition(wid, journeyId, data) {
|
|
9257
9975
|
return this.fetch(`w/${wid}/journeys/${journeyId}/v2-definition`, {
|
|
9258
9976
|
method: "PUT",
|
|
9259
9977
|
body: JSON.stringify(data)
|
|
@@ -9266,7 +9984,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9266
9984
|
* transition. Issues carry closed codes and resource uuids only — never CEL
|
|
9267
9985
|
* and never member data — so they are safe to render or log.
|
|
9268
9986
|
*/
|
|
9269
|
-
async
|
|
9987
|
+
async getJourneyDefinitionValidation(wid, journeyId) {
|
|
9270
9988
|
return this.fetch(
|
|
9271
9989
|
`w/${wid}/journeys/${journeyId}/v2-definition/validation`
|
|
9272
9990
|
);
|
|
@@ -9288,7 +10006,7 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9288
10006
|
return this.fetch(`w/${wid}/journeys/filter-options`);
|
|
9289
10007
|
}
|
|
9290
10008
|
/** Copy a supported legacy definition into a separate draft V2 Journey. */
|
|
9291
|
-
async
|
|
10009
|
+
async cloneJourneyToCurrent(wid, id) {
|
|
9292
10010
|
return this.fetch(`w/${wid}/journeys/${id}/clone-v2`, {
|
|
9293
10011
|
method: "POST",
|
|
9294
10012
|
body: JSON.stringify({})
|
|
@@ -9329,6 +10047,25 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9329
10047
|
async getJourneyHealth(wid, journeyId) {
|
|
9330
10048
|
return this.fetch(`w/${wid}/journeys/${journeyId}/health`);
|
|
9331
10049
|
}
|
|
10050
|
+
/**
|
|
10051
|
+
* A Journey's audit trail, newest first: who created it, changed its
|
|
10052
|
+
* lifecycle (with the status before and after), changed its settings or
|
|
10053
|
+
* definition, or cut a version (with its number), and when. IDs, field
|
|
10054
|
+
* codes and closed values only.
|
|
10055
|
+
*
|
|
10056
|
+
* The window defaults to the Journey's whole life. Pass `nextCursor` back
|
|
10057
|
+
* with the same window to read the next page. Requires `journeys:read` and
|
|
10058
|
+
* `workspace:read`.
|
|
10059
|
+
*/
|
|
10060
|
+
async getJourneyHistory(wid, journeyId, opts) {
|
|
10061
|
+
const query2 = new URLSearchParams();
|
|
10062
|
+
if (opts?.occurredFrom) query2.set("occurredFrom", opts.occurredFrom);
|
|
10063
|
+
if (opts?.occurredBefore) query2.set("occurredBefore", opts.occurredBefore);
|
|
10064
|
+
if (opts?.cursor) query2.set("cursor", opts.cursor);
|
|
10065
|
+
if (opts?.pageSize !== void 0) query2.set("pageSize", String(opts.pageSize));
|
|
10066
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
10067
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/history${qs}`);
|
|
10068
|
+
}
|
|
9332
10069
|
/**
|
|
9333
10070
|
* How many days the journey's texts take at the workspace's current sending
|
|
9334
10071
|
* limits — advice for the publish and enroll confirmations, never a gate.
|
|
@@ -9563,10 +10300,11 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9563
10300
|
|
|
9564
10301
|
// src/api/workflows.ts
|
|
9565
10302
|
var WorkflowsApi = class extends BaseApiClient {
|
|
9566
|
-
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
10303
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath, folderId) {
|
|
9567
10304
|
const body = new FormData();
|
|
9568
10305
|
body.append("file", file, relativePath.split("/").pop());
|
|
9569
10306
|
body.append("relativePath", relativePath);
|
|
10307
|
+
if (folderId !== void 0) body.append("folderId", String(folderId));
|
|
9570
10308
|
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
9571
10309
|
}
|
|
9572
10310
|
/** List workflows by archived status; `archived: true` returns only archived Workflows. */
|
|
@@ -9727,6 +10465,16 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
9727
10465
|
`w/${wid}/workflows/${workflowId}/validate-config`
|
|
9728
10466
|
);
|
|
9729
10467
|
}
|
|
10468
|
+
/**
|
|
10469
|
+
* Files and Folders the draft config names that the Workflow's runner
|
|
10470
|
+
* roles cannot read. Read-only: sharing is a separate, explicit call to the
|
|
10471
|
+
* file or folder sharing-roles endpoint.
|
|
10472
|
+
*/
|
|
10473
|
+
async getWorkflowRunnerFileAccess(wid, workflowId) {
|
|
10474
|
+
return this.fetch(
|
|
10475
|
+
`w/${wid}/workflows/${workflowId}/runner-file-access`
|
|
10476
|
+
);
|
|
10477
|
+
}
|
|
9730
10478
|
/**
|
|
9731
10479
|
* Classify the prompts of a Workflow's draft revision.
|
|
9732
10480
|
*
|
|
@@ -10191,6 +10939,7 @@ var MemberType = /* @__PURE__ */ ((MemberType2) => {
|
|
|
10191
10939
|
MemberType2["TEST"] = "test";
|
|
10192
10940
|
MemberType2["MEMBER"] = "member";
|
|
10193
10941
|
MemberType2["AGENT"] = "agent";
|
|
10942
|
+
MemberType2["BUSINESS"] = "business";
|
|
10194
10943
|
return MemberType2;
|
|
10195
10944
|
})(MemberType || {});
|
|
10196
10945
|
function structuredErrorDetail(error) {
|
|
@@ -10263,9 +11012,6 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
10263
11012
|
})(EventRuleObjectType || {});
|
|
10264
11013
|
var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
10265
11014
|
EventRuleEventType2["TASK_EXECUTE"] = "task:execute";
|
|
10266
|
-
EventRuleEventType2["TASK_ENTER"] = "task:enter";
|
|
10267
|
-
EventRuleEventType2["TASK_COMMAND"] = "task:command";
|
|
10268
|
-
EventRuleEventType2["TASK_EXIT"] = "task:exit";
|
|
10269
11015
|
EventRuleEventType2["MEMBER_JOINED"] = "workspace:member_joined";
|
|
10270
11016
|
EventRuleEventType2["MEMBER_LEFT"] = "workspace:member_left";
|
|
10271
11017
|
EventRuleEventType2["DATA_RECORD_CREATED"] = "data_record:created";
|
|
@@ -10304,14 +11050,9 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
10304
11050
|
EventRuleActionType2["MEMBER_NOTIFY_ACTION"] = "member:notify";
|
|
10305
11051
|
EventRuleActionType2["MEMBER_LABEL_ACTION"] = "member:label";
|
|
10306
11052
|
EventRuleActionType2["MEMBER_UPSERT"] = "member:upsert";
|
|
10307
|
-
EventRuleActionType2["SEND_WEBHOOK"] = "webhook:send";
|
|
10308
11053
|
EventRuleActionType2["SWITCH_TASK_ACTION"] = "task:switch";
|
|
10309
11054
|
EventRuleActionType2["ASSISTANT_MESSAGE"] = "assistant:message";
|
|
10310
11055
|
EventRuleActionType2["FORM_FIELD_UPDATE"] = "form:update_field";
|
|
10311
|
-
EventRuleActionType2["CEL_MUTATE"] = "record:cel_mutate";
|
|
10312
|
-
EventRuleActionType2["RECORD_COPY_FIELDS"] = "record:copy_fields";
|
|
10313
|
-
EventRuleActionType2["RECORD_UPSERT_LINKED"] = "record:upsert_linked";
|
|
10314
|
-
EventRuleActionType2["RECORD_VERIFY_FIELDS"] = "record:verify_fields";
|
|
10315
11056
|
EventRuleActionType2["MESSAGE_VALIDATION"] = "message:validation";
|
|
10316
11057
|
EventRuleActionType2["CHAT_CREATE"] = "chat:create";
|
|
10317
11058
|
EventRuleActionType2["CHAT_CONTINUE"] = "chat:continue";
|
|
@@ -10319,8 +11060,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
10319
11060
|
EventRuleActionType2["CHAT_SUMMARIZE"] = "chat:summarize";
|
|
10320
11061
|
EventRuleActionType2["EMAIL_SEND"] = "email:send";
|
|
10321
11062
|
EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
|
|
10322
|
-
EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
|
|
10323
|
-
EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
|
|
10324
11063
|
EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
|
|
10325
11064
|
EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
|
|
10326
11065
|
EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
|
|
@@ -10332,7 +11071,6 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
10332
11071
|
EventRuleActionType2["ECW_REFRESH_MEMBER_ENCOUNTERS"] = "ecw:refresh_member_encounters";
|
|
10333
11072
|
EventRuleActionType2["PLAY_AUDIO"] = "audio:play";
|
|
10334
11073
|
EventRuleActionType2["CHARLESTON_SEND_PMD_PAGE"] = "charleston:send_pmd_page";
|
|
10335
|
-
EventRuleActionType2["PATIENTSYNC_TRANSFER"] = "patientsync:transfer";
|
|
10336
11074
|
return EventRuleActionType2;
|
|
10337
11075
|
})(EventRuleActionType || {});
|
|
10338
11076
|
function eventRuleActionParams(params) {
|
|
@@ -10363,7 +11101,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
10363
11101
|
WorkspaceFeature2["DISCORD"] = "discord";
|
|
10364
11102
|
WorkspaceFeature2["SLACK"] = "slack";
|
|
10365
11103
|
WorkspaceFeature2["TEAMS"] = "teams";
|
|
10366
|
-
WorkspaceFeature2["SITES"] = "sites";
|
|
10367
11104
|
WorkspaceFeature2["MAPS"] = "maps";
|
|
10368
11105
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
10369
11106
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
@@ -10387,11 +11124,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
10387
11124
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
10388
11125
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
10389
11126
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
10390
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
10391
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
10392
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
10393
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
10394
|
-
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
10395
11127
|
return WorkspaceFeature2;
|
|
10396
11128
|
})(WorkspaceFeature || {});
|
|
10397
11129
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -10428,7 +11160,6 @@ var Resource = /* @__PURE__ */ ((Resource2) => {
|
|
|
10428
11160
|
})(Resource || {});
|
|
10429
11161
|
var ProductType = /* @__PURE__ */ ((ProductType2) => {
|
|
10430
11162
|
ProductType2["ORG"] = "org";
|
|
10431
|
-
ProductType2["ADDON"] = "addon";
|
|
10432
11163
|
ProductType2["MEMBER"] = "member";
|
|
10433
11164
|
ProductType2["DEVICE"] = "device";
|
|
10434
11165
|
return ProductType2;
|
|
@@ -10513,8 +11244,6 @@ var ModelType = {
|
|
|
10513
11244
|
var REALTIME_MODEL_OPENAI = "openai:realtime:gpt-realtime";
|
|
10514
11245
|
var REALTIME_MODEL_OPENAI_MINI = "openai:realtime:gpt-realtime-mini";
|
|
10515
11246
|
var REALTIME_MODEL_OPENAI_2 = "openai:realtime:gpt-realtime-2";
|
|
10516
|
-
var REALTIME_MODEL_GEMINI = "google:aistudio:gemini-3.1-flash-live";
|
|
10517
|
-
var REALTIME_MODEL_GEMINI_VERTEX = "google:vertex:gemini-3.1-flash-live";
|
|
10518
11247
|
var REALTIME_MODEL_CUSTOM = "custom:realtime:composable";
|
|
10519
11248
|
var STT_MODEL_DEEPGRAM_FLUX = "deepgram:stt:flux-general-en";
|
|
10520
11249
|
var STT_MODEL_DEEPGRAM_FLUX_SELFHOST = "deepgram:stt:flux-general-en:selfhost";
|
|
@@ -10530,6 +11259,44 @@ var TTS_MODEL_DEEPGRAM_AURA_2 = "deepgram:tts:aura-2";
|
|
|
10530
11259
|
var TTS_MODEL_AWS_POLLY_GENERATIVE = "aws:tts:polly-generative";
|
|
10531
11260
|
var TTS_MODEL_AWS_POLLY_NEURAL = "aws:tts:polly-neural";
|
|
10532
11261
|
|
|
11262
|
+
// src/types/generated/org_billing.ts
|
|
11263
|
+
var DefaultCardConvergenceAction = {
|
|
11264
|
+
none: "none",
|
|
11265
|
+
clear_subscription_default: "clear_subscription_default",
|
|
11266
|
+
set_customer_default_then_clear: "set_customer_default_then_clear"
|
|
11267
|
+
};
|
|
11268
|
+
var DefaultCardConvergenceClassification = {
|
|
11269
|
+
already_converged: "already_converged",
|
|
11270
|
+
foreign_customer: "foreign_customer",
|
|
11271
|
+
customer_default_set: "customer_default_set",
|
|
11272
|
+
customer_default_missing: "customer_default_missing"
|
|
11273
|
+
};
|
|
11274
|
+
var DefaultCardConvergenceOutcome = {
|
|
11275
|
+
skipped: "skipped",
|
|
11276
|
+
planned: "planned",
|
|
11277
|
+
applied: "applied",
|
|
11278
|
+
failed: "failed"
|
|
11279
|
+
};
|
|
11280
|
+
var DefaultCardConvergenceStep = {
|
|
11281
|
+
retrieve_subscription: "retrieve_subscription",
|
|
11282
|
+
retrieve_customer: "retrieve_customer",
|
|
11283
|
+
set_customer_default: "set_customer_default",
|
|
11284
|
+
clear_subscription_default: "clear_subscription_default"
|
|
11285
|
+
};
|
|
11286
|
+
var OverdueInvoicePayment = {
|
|
11287
|
+
paid: "paid",
|
|
11288
|
+
processing: "processing",
|
|
11289
|
+
failed: "failed"
|
|
11290
|
+
};
|
|
11291
|
+
|
|
11292
|
+
// src/types/generated/organization_billing.ts
|
|
11293
|
+
var OrganizationClassification = {
|
|
11294
|
+
commercial: "commercial",
|
|
11295
|
+
internal: "internal",
|
|
11296
|
+
demo: "demo",
|
|
11297
|
+
promo: "promo"
|
|
11298
|
+
};
|
|
11299
|
+
|
|
10533
11300
|
// src/types/pids-types.ts
|
|
10534
11301
|
var PIDS_DISPOSITIONS = ["true_positive", "false_positive", "needs_more_context"];
|
|
10535
11302
|
var PIDS_SOURCES = ["scheduled", "backfill", "pre_llm"];
|
|
@@ -10554,6 +11321,44 @@ var FhirClientType = /* @__PURE__ */ ((FhirClientType2) => {
|
|
|
10554
11321
|
return FhirClientType2;
|
|
10555
11322
|
})(FhirClientType || {});
|
|
10556
11323
|
|
|
11324
|
+
// src/types/generated/error.ts
|
|
11325
|
+
var SyncErrorCode = {
|
|
11326
|
+
missing_required_field: "missing_required_field",
|
|
11327
|
+
missing_target_datatype: "missing_target_datatype",
|
|
11328
|
+
missing_file_owner: "missing_file_owner",
|
|
11329
|
+
missing_space_mapping: "missing_space_mapping",
|
|
11330
|
+
unsupported_direction: "unsupported_direction",
|
|
11331
|
+
missing_enum_option: "missing_enum_option",
|
|
11332
|
+
missing_remote_label: "missing_remote_label",
|
|
11333
|
+
outbound_field_format_error: "outbound_field_format_error",
|
|
11334
|
+
local_entity_not_found: "local_entity_not_found",
|
|
11335
|
+
missing_local_link: "missing_local_link",
|
|
11336
|
+
missing_remote_mapping: "missing_remote_mapping",
|
|
11337
|
+
remote_api_error: "remote_api_error",
|
|
11338
|
+
remote_fetch_failed: "remote_fetch_failed",
|
|
11339
|
+
remote_missing_id: "remote_missing_id",
|
|
11340
|
+
remote_partial_failure: "remote_partial_failure",
|
|
11341
|
+
remote_inactive_record: "remote_inactive_record",
|
|
11342
|
+
remote_write_rejected: "remote_write_rejected",
|
|
11343
|
+
remote_write_uncertain: "remote_write_uncertain",
|
|
11344
|
+
side_effects_not_permitted: "side_effects_not_permitted",
|
|
11345
|
+
sync_operation_failed: "sync_operation_failed"
|
|
11346
|
+
};
|
|
11347
|
+
|
|
11348
|
+
// src/types/generated/connection_sync.ts
|
|
11349
|
+
var LinkFailureCode = {
|
|
11350
|
+
...SyncErrorCode,
|
|
11351
|
+
manual_unlink: "manual_unlink",
|
|
11352
|
+
ineligible_member: "ineligible_member",
|
|
11353
|
+
no_care_team_practitioner: "no_care_team_practitioner",
|
|
11354
|
+
unique_field_conflict: "unique_field_conflict",
|
|
11355
|
+
discovery_not_created: "discovery_not_created",
|
|
11356
|
+
discovery_not_admitted: "discovery_not_admitted",
|
|
11357
|
+
ambiguous_match: "ambiguous_match",
|
|
11358
|
+
sync_failed: "sync_failed",
|
|
11359
|
+
unexpected_error: "unexpected_error"
|
|
11360
|
+
};
|
|
11361
|
+
|
|
10557
11362
|
// src/types/app-connection-types.ts
|
|
10558
11363
|
var CrmActivityKind = /* @__PURE__ */ ((CrmActivityKind2) => {
|
|
10559
11364
|
CrmActivityKind2["MESSAGE"] = "message";
|
|
@@ -10589,6 +11394,7 @@ var TestChatRunLane = {
|
|
|
10589
11394
|
var TestChatRunOutcome = {
|
|
10590
11395
|
simulator_end: "simulator_end",
|
|
10591
11396
|
terminal_tool: "terminal_tool",
|
|
11397
|
+
human_handoff: "human_handoff",
|
|
10592
11398
|
agent_silent: "agent_silent",
|
|
10593
11399
|
max_turns: "max_turns",
|
|
10594
11400
|
human_end: "human_end",
|
|
@@ -10743,7 +11549,9 @@ var MemberRelationshipKind = {
|
|
|
10743
11549
|
legal_guardian_of: "legal_guardian_of",
|
|
10744
11550
|
healthcare_agent_of: "healthcare_agent_of",
|
|
10745
11551
|
doctor_of: "doctor_of",
|
|
10746
|
-
primary_contact_of: "primary_contact_of"
|
|
11552
|
+
primary_contact_of: "primary_contact_of",
|
|
11553
|
+
contact_owner_of: "contact_owner_of",
|
|
11554
|
+
employee_of: "employee_of"
|
|
10747
11555
|
};
|
|
10748
11556
|
var RelatedMemberRole = {
|
|
10749
11557
|
parent: "parent",
|
|
@@ -10763,7 +11571,11 @@ var RelatedMemberRole = {
|
|
|
10763
11571
|
doctor: "doctor",
|
|
10764
11572
|
patient: "patient",
|
|
10765
11573
|
primary_contact: "primary_contact",
|
|
10766
|
-
primary_contact_for: "primary_contact_for"
|
|
11574
|
+
primary_contact_for: "primary_contact_for",
|
|
11575
|
+
contact_owner: "contact_owner",
|
|
11576
|
+
owns_contact: "owns_contact",
|
|
11577
|
+
employee: "employee",
|
|
11578
|
+
employer: "employer"
|
|
10767
11579
|
};
|
|
10768
11580
|
var RelationshipCardinality = {
|
|
10769
11581
|
many_to_many: "many_to_many",
|
|
@@ -10783,13 +11595,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10783
11595
|
"role": "parent",
|
|
10784
11596
|
"label": "Parent",
|
|
10785
11597
|
"inverseLabel": "Child",
|
|
10786
|
-
"description": "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart."
|
|
11598
|
+
"description": "This person is a parent of the member. For a minor, also add Legal guardian if they should read the chart.",
|
|
11599
|
+
"viewedMemberTypes": [
|
|
11600
|
+
"anonymous",
|
|
11601
|
+
"test",
|
|
11602
|
+
"member",
|
|
11603
|
+
"agent"
|
|
11604
|
+
],
|
|
11605
|
+
"relatedMemberTypes": [
|
|
11606
|
+
"anonymous",
|
|
11607
|
+
"test",
|
|
11608
|
+
"member",
|
|
11609
|
+
"agent"
|
|
11610
|
+
]
|
|
10787
11611
|
},
|
|
10788
11612
|
{
|
|
10789
11613
|
"role": "child",
|
|
10790
11614
|
"label": "Child",
|
|
10791
11615
|
"inverseLabel": "Parent",
|
|
10792
|
-
"description": "This person is a child of the member."
|
|
11616
|
+
"description": "This person is a child of the member.",
|
|
11617
|
+
"viewedMemberTypes": [
|
|
11618
|
+
"anonymous",
|
|
11619
|
+
"test",
|
|
11620
|
+
"member",
|
|
11621
|
+
"agent"
|
|
11622
|
+
],
|
|
11623
|
+
"relatedMemberTypes": [
|
|
11624
|
+
"anonymous",
|
|
11625
|
+
"test",
|
|
11626
|
+
"member",
|
|
11627
|
+
"agent"
|
|
11628
|
+
]
|
|
10793
11629
|
}
|
|
10794
11630
|
]
|
|
10795
11631
|
},
|
|
@@ -10803,7 +11639,19 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10803
11639
|
"role": "sibling",
|
|
10804
11640
|
"label": "Sibling",
|
|
10805
11641
|
"inverseLabel": "Sibling",
|
|
10806
|
-
"description": "These members are siblings."
|
|
11642
|
+
"description": "These members are siblings.",
|
|
11643
|
+
"viewedMemberTypes": [
|
|
11644
|
+
"anonymous",
|
|
11645
|
+
"test",
|
|
11646
|
+
"member",
|
|
11647
|
+
"agent"
|
|
11648
|
+
],
|
|
11649
|
+
"relatedMemberTypes": [
|
|
11650
|
+
"anonymous",
|
|
11651
|
+
"test",
|
|
11652
|
+
"member",
|
|
11653
|
+
"agent"
|
|
11654
|
+
]
|
|
10807
11655
|
}
|
|
10808
11656
|
]
|
|
10809
11657
|
},
|
|
@@ -10817,7 +11665,19 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10817
11665
|
"role": "spouse",
|
|
10818
11666
|
"label": "Spouse",
|
|
10819
11667
|
"inverseLabel": "Spouse",
|
|
10820
|
-
"description": "These members are spouses or partners."
|
|
11668
|
+
"description": "These members are spouses or partners.",
|
|
11669
|
+
"viewedMemberTypes": [
|
|
11670
|
+
"anonymous",
|
|
11671
|
+
"test",
|
|
11672
|
+
"member",
|
|
11673
|
+
"agent"
|
|
11674
|
+
],
|
|
11675
|
+
"relatedMemberTypes": [
|
|
11676
|
+
"anonymous",
|
|
11677
|
+
"test",
|
|
11678
|
+
"member",
|
|
11679
|
+
"agent"
|
|
11680
|
+
]
|
|
10821
11681
|
}
|
|
10822
11682
|
]
|
|
10823
11683
|
},
|
|
@@ -10831,13 +11691,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10831
11691
|
"role": "caregiver",
|
|
10832
11692
|
"label": "Caregiver",
|
|
10833
11693
|
"inverseLabel": "Care recipient",
|
|
10834
|
-
"description": "This person provides care for the member at home."
|
|
11694
|
+
"description": "This person provides care for the member at home.",
|
|
11695
|
+
"viewedMemberTypes": [
|
|
11696
|
+
"anonymous",
|
|
11697
|
+
"test",
|
|
11698
|
+
"member",
|
|
11699
|
+
"agent"
|
|
11700
|
+
],
|
|
11701
|
+
"relatedMemberTypes": [
|
|
11702
|
+
"anonymous",
|
|
11703
|
+
"test",
|
|
11704
|
+
"member",
|
|
11705
|
+
"agent"
|
|
11706
|
+
]
|
|
10835
11707
|
},
|
|
10836
11708
|
{
|
|
10837
11709
|
"role": "care_recipient",
|
|
10838
11710
|
"label": "Care recipient",
|
|
10839
11711
|
"inverseLabel": "Caregiver",
|
|
10840
|
-
"description": "This person receives care from the member."
|
|
11712
|
+
"description": "This person receives care from the member.",
|
|
11713
|
+
"viewedMemberTypes": [
|
|
11714
|
+
"anonymous",
|
|
11715
|
+
"test",
|
|
11716
|
+
"member",
|
|
11717
|
+
"agent"
|
|
11718
|
+
],
|
|
11719
|
+
"relatedMemberTypes": [
|
|
11720
|
+
"anonymous",
|
|
11721
|
+
"test",
|
|
11722
|
+
"member",
|
|
11723
|
+
"agent"
|
|
11724
|
+
]
|
|
10841
11725
|
}
|
|
10842
11726
|
]
|
|
10843
11727
|
},
|
|
@@ -10851,13 +11735,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10851
11735
|
"role": "emergency_contact",
|
|
10852
11736
|
"label": "Emergency contact",
|
|
10853
11737
|
"inverseLabel": "Emergency contact for",
|
|
10854
|
-
"description": "This person is the member's emergency contact."
|
|
11738
|
+
"description": "This person is the member's emergency contact.",
|
|
11739
|
+
"viewedMemberTypes": [
|
|
11740
|
+
"anonymous",
|
|
11741
|
+
"test",
|
|
11742
|
+
"member",
|
|
11743
|
+
"agent"
|
|
11744
|
+
],
|
|
11745
|
+
"relatedMemberTypes": [
|
|
11746
|
+
"anonymous",
|
|
11747
|
+
"test",
|
|
11748
|
+
"member",
|
|
11749
|
+
"agent"
|
|
11750
|
+
]
|
|
10855
11751
|
},
|
|
10856
11752
|
{
|
|
10857
11753
|
"role": "emergency_contact_for",
|
|
10858
11754
|
"label": "Emergency contact for",
|
|
10859
11755
|
"inverseLabel": "Emergency contact",
|
|
10860
|
-
"description": "The member is listed as this person's emergency contact."
|
|
11756
|
+
"description": "The member is listed as this person's emergency contact.",
|
|
11757
|
+
"viewedMemberTypes": [
|
|
11758
|
+
"anonymous",
|
|
11759
|
+
"test",
|
|
11760
|
+
"member",
|
|
11761
|
+
"agent"
|
|
11762
|
+
],
|
|
11763
|
+
"relatedMemberTypes": [
|
|
11764
|
+
"anonymous",
|
|
11765
|
+
"test",
|
|
11766
|
+
"member",
|
|
11767
|
+
"agent"
|
|
11768
|
+
]
|
|
10861
11769
|
}
|
|
10862
11770
|
]
|
|
10863
11771
|
},
|
|
@@ -10871,13 +11779,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10871
11779
|
"role": "next_of_kin",
|
|
10872
11780
|
"label": "Next of kin",
|
|
10873
11781
|
"inverseLabel": "Next of kin for",
|
|
10874
|
-
"description": "This person is the member's designated next of kin. A member has at most one."
|
|
11782
|
+
"description": "This person is the member's designated next of kin. A member has at most one.",
|
|
11783
|
+
"viewedMemberTypes": [
|
|
11784
|
+
"anonymous",
|
|
11785
|
+
"test",
|
|
11786
|
+
"member",
|
|
11787
|
+
"agent"
|
|
11788
|
+
],
|
|
11789
|
+
"relatedMemberTypes": [
|
|
11790
|
+
"anonymous",
|
|
11791
|
+
"test",
|
|
11792
|
+
"member",
|
|
11793
|
+
"agent"
|
|
11794
|
+
]
|
|
10875
11795
|
},
|
|
10876
11796
|
{
|
|
10877
11797
|
"role": "next_of_kin_for",
|
|
10878
11798
|
"label": "Next of kin for",
|
|
10879
11799
|
"inverseLabel": "Next of kin",
|
|
10880
|
-
"description": "The member is this person's designated next of kin."
|
|
11800
|
+
"description": "The member is this person's designated next of kin.",
|
|
11801
|
+
"viewedMemberTypes": [
|
|
11802
|
+
"anonymous",
|
|
11803
|
+
"test",
|
|
11804
|
+
"member",
|
|
11805
|
+
"agent"
|
|
11806
|
+
],
|
|
11807
|
+
"relatedMemberTypes": [
|
|
11808
|
+
"anonymous",
|
|
11809
|
+
"test",
|
|
11810
|
+
"member",
|
|
11811
|
+
"agent"
|
|
11812
|
+
]
|
|
10881
11813
|
}
|
|
10882
11814
|
]
|
|
10883
11815
|
},
|
|
@@ -10891,13 +11823,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10891
11823
|
"role": "legal_guardian",
|
|
10892
11824
|
"label": "Legal guardian",
|
|
10893
11825
|
"inverseLabel": "Legal guardian for",
|
|
10894
|
-
"description": "Court-appointed guardian, or parent/person with parental responsibility for a minor."
|
|
11826
|
+
"description": "Court-appointed guardian, or parent/person with parental responsibility for a minor.",
|
|
11827
|
+
"viewedMemberTypes": [
|
|
11828
|
+
"anonymous",
|
|
11829
|
+
"test",
|
|
11830
|
+
"member",
|
|
11831
|
+
"agent"
|
|
11832
|
+
],
|
|
11833
|
+
"relatedMemberTypes": [
|
|
11834
|
+
"anonymous",
|
|
11835
|
+
"test",
|
|
11836
|
+
"member",
|
|
11837
|
+
"agent"
|
|
11838
|
+
]
|
|
10895
11839
|
},
|
|
10896
11840
|
{
|
|
10897
11841
|
"role": "legal_guardian_for",
|
|
10898
11842
|
"label": "Legal guardian for",
|
|
10899
11843
|
"inverseLabel": "Legal guardian",
|
|
10900
|
-
"description": "The member is this person's legal guardian."
|
|
11844
|
+
"description": "The member is this person's legal guardian.",
|
|
11845
|
+
"viewedMemberTypes": [
|
|
11846
|
+
"anonymous",
|
|
11847
|
+
"test",
|
|
11848
|
+
"member",
|
|
11849
|
+
"agent"
|
|
11850
|
+
],
|
|
11851
|
+
"relatedMemberTypes": [
|
|
11852
|
+
"anonymous",
|
|
11853
|
+
"test",
|
|
11854
|
+
"member",
|
|
11855
|
+
"agent"
|
|
11856
|
+
]
|
|
10901
11857
|
}
|
|
10902
11858
|
]
|
|
10903
11859
|
},
|
|
@@ -10911,13 +11867,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10911
11867
|
"role": "healthcare_agent",
|
|
10912
11868
|
"label": "Healthcare agent",
|
|
10913
11869
|
"inverseLabel": "Healthcare agent for",
|
|
10914
|
-
"description": "Healthcare power of attorney or health proxy."
|
|
11870
|
+
"description": "Healthcare power of attorney or health proxy.",
|
|
11871
|
+
"viewedMemberTypes": [
|
|
11872
|
+
"anonymous",
|
|
11873
|
+
"test",
|
|
11874
|
+
"member",
|
|
11875
|
+
"agent"
|
|
11876
|
+
],
|
|
11877
|
+
"relatedMemberTypes": [
|
|
11878
|
+
"anonymous",
|
|
11879
|
+
"test",
|
|
11880
|
+
"member",
|
|
11881
|
+
"agent"
|
|
11882
|
+
]
|
|
10915
11883
|
},
|
|
10916
11884
|
{
|
|
10917
11885
|
"role": "healthcare_agent_for",
|
|
10918
11886
|
"label": "Healthcare agent for",
|
|
10919
11887
|
"inverseLabel": "Healthcare agent",
|
|
10920
|
-
"description": "The member is this person's healthcare agent (healthcare power of attorney or health proxy)."
|
|
11888
|
+
"description": "The member is this person's healthcare agent (healthcare power of attorney or health proxy).",
|
|
11889
|
+
"viewedMemberTypes": [
|
|
11890
|
+
"anonymous",
|
|
11891
|
+
"test",
|
|
11892
|
+
"member",
|
|
11893
|
+
"agent"
|
|
11894
|
+
],
|
|
11895
|
+
"relatedMemberTypes": [
|
|
11896
|
+
"anonymous",
|
|
11897
|
+
"test",
|
|
11898
|
+
"member",
|
|
11899
|
+
"agent"
|
|
11900
|
+
]
|
|
10921
11901
|
}
|
|
10922
11902
|
]
|
|
10923
11903
|
},
|
|
@@ -10931,13 +11911,37 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10931
11911
|
"role": "doctor",
|
|
10932
11912
|
"label": "Doctor",
|
|
10933
11913
|
"inverseLabel": "Patient",
|
|
10934
|
-
"description": "This person is a treating clinician for the member."
|
|
11914
|
+
"description": "This person is a treating clinician for the member.",
|
|
11915
|
+
"viewedMemberTypes": [
|
|
11916
|
+
"anonymous",
|
|
11917
|
+
"test",
|
|
11918
|
+
"member",
|
|
11919
|
+
"agent"
|
|
11920
|
+
],
|
|
11921
|
+
"relatedMemberTypes": [
|
|
11922
|
+
"anonymous",
|
|
11923
|
+
"test",
|
|
11924
|
+
"member",
|
|
11925
|
+
"agent"
|
|
11926
|
+
]
|
|
10935
11927
|
},
|
|
10936
11928
|
{
|
|
10937
11929
|
"role": "patient",
|
|
10938
11930
|
"label": "Patient",
|
|
10939
11931
|
"inverseLabel": "Doctor",
|
|
10940
|
-
"description": "This person is a patient of the member."
|
|
11932
|
+
"description": "This person is a patient of the member.",
|
|
11933
|
+
"viewedMemberTypes": [
|
|
11934
|
+
"anonymous",
|
|
11935
|
+
"test",
|
|
11936
|
+
"member",
|
|
11937
|
+
"agent"
|
|
11938
|
+
],
|
|
11939
|
+
"relatedMemberTypes": [
|
|
11940
|
+
"anonymous",
|
|
11941
|
+
"test",
|
|
11942
|
+
"member",
|
|
11943
|
+
"agent"
|
|
11944
|
+
]
|
|
10941
11945
|
}
|
|
10942
11946
|
]
|
|
10943
11947
|
},
|
|
@@ -10951,13 +11955,113 @@ var MEMBER_RELATIONSHIP_KINDS = [
|
|
|
10951
11955
|
"role": "primary_contact",
|
|
10952
11956
|
"label": "Primary contact",
|
|
10953
11957
|
"inverseLabel": "Primary contact for",
|
|
10954
|
-
"description": "This person is the organization's primary contact for the member. A member has at most one."
|
|
11958
|
+
"description": "This person is the organization's primary contact for the member. A member has at most one.",
|
|
11959
|
+
"viewedMemberTypes": [
|
|
11960
|
+
"anonymous",
|
|
11961
|
+
"test",
|
|
11962
|
+
"member",
|
|
11963
|
+
"agent"
|
|
11964
|
+
],
|
|
11965
|
+
"relatedMemberTypes": [
|
|
11966
|
+
"anonymous",
|
|
11967
|
+
"test",
|
|
11968
|
+
"member",
|
|
11969
|
+
"agent"
|
|
11970
|
+
]
|
|
10955
11971
|
},
|
|
10956
11972
|
{
|
|
10957
11973
|
"role": "primary_contact_for",
|
|
10958
11974
|
"label": "Primary contact for",
|
|
10959
11975
|
"inverseLabel": "Primary contact",
|
|
10960
|
-
"description": "The member is this person's assigned primary contact inside the organization."
|
|
11976
|
+
"description": "The member is this person's assigned primary contact inside the organization.",
|
|
11977
|
+
"viewedMemberTypes": [
|
|
11978
|
+
"anonymous",
|
|
11979
|
+
"test",
|
|
11980
|
+
"member",
|
|
11981
|
+
"agent"
|
|
11982
|
+
],
|
|
11983
|
+
"relatedMemberTypes": [
|
|
11984
|
+
"anonymous",
|
|
11985
|
+
"test",
|
|
11986
|
+
"member",
|
|
11987
|
+
"agent"
|
|
11988
|
+
]
|
|
11989
|
+
}
|
|
11990
|
+
]
|
|
11991
|
+
},
|
|
11992
|
+
{
|
|
11993
|
+
"kind": "contact_owner_of",
|
|
11994
|
+
"cardinality": "one_per_target",
|
|
11995
|
+
"symmetric": false,
|
|
11996
|
+
"grantsChartAccess": false,
|
|
11997
|
+
"roles": [
|
|
11998
|
+
{
|
|
11999
|
+
"role": "contact_owner",
|
|
12000
|
+
"label": "Contact owner",
|
|
12001
|
+
"inverseLabel": "Owns contact",
|
|
12002
|
+
"description": "This person owns the member's record in the CRM. A member has at most one. Grants no chart access.",
|
|
12003
|
+
"viewedMemberTypes": [
|
|
12004
|
+
"anonymous",
|
|
12005
|
+
"test",
|
|
12006
|
+
"member",
|
|
12007
|
+
"agent"
|
|
12008
|
+
],
|
|
12009
|
+
"relatedMemberTypes": [
|
|
12010
|
+
"anonymous",
|
|
12011
|
+
"test",
|
|
12012
|
+
"member",
|
|
12013
|
+
"agent"
|
|
12014
|
+
]
|
|
12015
|
+
},
|
|
12016
|
+
{
|
|
12017
|
+
"role": "owns_contact",
|
|
12018
|
+
"label": "Owns contact",
|
|
12019
|
+
"inverseLabel": "Contact owner",
|
|
12020
|
+
"description": "The member owns this person's record in the CRM.",
|
|
12021
|
+
"viewedMemberTypes": [
|
|
12022
|
+
"anonymous",
|
|
12023
|
+
"test",
|
|
12024
|
+
"member",
|
|
12025
|
+
"agent"
|
|
12026
|
+
],
|
|
12027
|
+
"relatedMemberTypes": [
|
|
12028
|
+
"anonymous",
|
|
12029
|
+
"test",
|
|
12030
|
+
"member",
|
|
12031
|
+
"agent"
|
|
12032
|
+
]
|
|
12033
|
+
}
|
|
12034
|
+
]
|
|
12035
|
+
},
|
|
12036
|
+
{
|
|
12037
|
+
"kind": "employee_of",
|
|
12038
|
+
"cardinality": "many_to_many",
|
|
12039
|
+
"symmetric": false,
|
|
12040
|
+
"grantsChartAccess": false,
|
|
12041
|
+
"roles": [
|
|
12042
|
+
{
|
|
12043
|
+
"role": "employee",
|
|
12044
|
+
"label": "Employee",
|
|
12045
|
+
"inverseLabel": "Employer",
|
|
12046
|
+
"description": "This person works at the business. Grants no chart access.",
|
|
12047
|
+
"viewedMemberTypes": [
|
|
12048
|
+
"business"
|
|
12049
|
+
],
|
|
12050
|
+
"relatedMemberTypes": [
|
|
12051
|
+
"member"
|
|
12052
|
+
]
|
|
12053
|
+
},
|
|
12054
|
+
{
|
|
12055
|
+
"role": "employer",
|
|
12056
|
+
"label": "Employer",
|
|
12057
|
+
"inverseLabel": "Employee",
|
|
12058
|
+
"description": "The member works at this business. Grants no chart access.",
|
|
12059
|
+
"viewedMemberTypes": [
|
|
12060
|
+
"member"
|
|
12061
|
+
],
|
|
12062
|
+
"relatedMemberTypes": [
|
|
12063
|
+
"business"
|
|
12064
|
+
]
|
|
10961
12065
|
}
|
|
10962
12066
|
]
|
|
10963
12067
|
}
|
|
@@ -10978,7 +12082,8 @@ function isConfigHealthFacadeCheckSlug(value) {
|
|
|
10978
12082
|
var UiPromptPresentedKind = {
|
|
10979
12083
|
render_ui: "render_ui",
|
|
10980
12084
|
present_choice_list: "present_choice_list",
|
|
10981
|
-
inline_connect: "inline_connect"
|
|
12085
|
+
inline_connect: "inline_connect",
|
|
12086
|
+
proposed_message: "proposed_message"
|
|
10982
12087
|
};
|
|
10983
12088
|
var UiPromptResponseKind = {
|
|
10984
12089
|
render_ui: "render_ui",
|
|
@@ -10990,6 +12095,56 @@ var UiPromptResponseStatus = {
|
|
|
10990
12095
|
declined: "declined"
|
|
10991
12096
|
};
|
|
10992
12097
|
|
|
12098
|
+
// src/types/proposed-message.ts
|
|
12099
|
+
var PROPOSED_MESSAGE_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
12100
|
+
"send_gmail",
|
|
12101
|
+
"slack_post_as_member",
|
|
12102
|
+
"slack_post_as_app",
|
|
12103
|
+
"teams_post_as_member",
|
|
12104
|
+
"teams_post_as_app"
|
|
12105
|
+
]);
|
|
12106
|
+
var PROPOSED_MESSAGE_SETTLED_TOOL_NAME = "proposed_message_settled";
|
|
12107
|
+
var PROPOSED_MESSAGE_SETTLEMENT_STATUSES = ["sent", "failed", "discarded"];
|
|
12108
|
+
function isProposedMessageSettlementStatus(value) {
|
|
12109
|
+
return typeof value === "string" && PROPOSED_MESSAGE_SETTLEMENT_STATUSES.includes(value);
|
|
12110
|
+
}
|
|
12111
|
+
var PROPOSED_MESSAGE_BODY_MAX_LENGTH = 4e4;
|
|
12112
|
+
var PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH = 998;
|
|
12113
|
+
var PROPOSED_SERVICES = /* @__PURE__ */ new Set(["gmail", "slack", "teams"]);
|
|
12114
|
+
var PROPOSED_FIELDS = /* @__PURE__ */ new Set(["body", "subject"]);
|
|
12115
|
+
function optionalString(record, key) {
|
|
12116
|
+
const value = record[key];
|
|
12117
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
12118
|
+
}
|
|
12119
|
+
function parseProposedMessage(value) {
|
|
12120
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
12121
|
+
const record = value;
|
|
12122
|
+
const tool = optionalString(record, "tool");
|
|
12123
|
+
const to = optionalString(record, "to");
|
|
12124
|
+
const body = optionalString(record, "body");
|
|
12125
|
+
const service = record.service;
|
|
12126
|
+
if (!tool || !to || !body || typeof service !== "string" || !PROPOSED_SERVICES.has(service)) {
|
|
12127
|
+
return void 0;
|
|
12128
|
+
}
|
|
12129
|
+
const editable = Array.isArray(record.editableFields) ? record.editableFields.filter(
|
|
12130
|
+
(field) => typeof field === "string" && PROPOSED_FIELDS.has(field)
|
|
12131
|
+
) : [];
|
|
12132
|
+
const cc = optionalString(record, "cc");
|
|
12133
|
+
const thread = optionalString(record, "thread");
|
|
12134
|
+
const subject = optionalString(record, "subject");
|
|
12135
|
+
return {
|
|
12136
|
+
tool,
|
|
12137
|
+
service,
|
|
12138
|
+
sendsAs: record.sendsAs === "app" ? "app" : "member",
|
|
12139
|
+
to,
|
|
12140
|
+
body,
|
|
12141
|
+
editableFields: editable,
|
|
12142
|
+
...cc ? { cc } : {},
|
|
12143
|
+
...thread ? { thread } : {},
|
|
12144
|
+
...subject ? { subject } : {}
|
|
12145
|
+
};
|
|
12146
|
+
}
|
|
12147
|
+
|
|
10993
12148
|
// src/types/experiment-types.ts
|
|
10994
12149
|
function parseExperimentStatCount(value) {
|
|
10995
12150
|
return typeof value === "number" ? value : null;
|
|
@@ -11310,12 +12465,44 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11310
12465
|
method: "POST"
|
|
11311
12466
|
});
|
|
11312
12467
|
}
|
|
12468
|
+
/** Read this account's own notification preferences. */
|
|
12469
|
+
async getNotificationPreferences() {
|
|
12470
|
+
return this.fetch("account/notification-preferences");
|
|
12471
|
+
}
|
|
12472
|
+
/** Silence or restore one workspace for the authenticated account. */
|
|
12473
|
+
async setWorkspaceNotificationMute(wid, muted) {
|
|
12474
|
+
return this.fetch(
|
|
12475
|
+
`account/notification-preferences/${wid}`,
|
|
12476
|
+
{
|
|
12477
|
+
method: "PUT",
|
|
12478
|
+
body: JSON.stringify({ muted })
|
|
12479
|
+
}
|
|
12480
|
+
);
|
|
12481
|
+
}
|
|
11313
12482
|
// ===== Push Notifications =====
|
|
11314
12483
|
/** Get the VAPID public key for Web Push subscription registration. */
|
|
11315
12484
|
async getVapidPublicKey() {
|
|
11316
12485
|
const response = await this.fetch("push/vapid-public-key");
|
|
11317
12486
|
return response.publicKey;
|
|
11318
12487
|
}
|
|
12488
|
+
/** Enable browser push across the authenticated account's workspaces. */
|
|
12489
|
+
async registerAccountPushSubscription(subscription) {
|
|
12490
|
+
return this.fetch("push/subscriptions", {
|
|
12491
|
+
method: "POST",
|
|
12492
|
+
body: JSON.stringify(subscription)
|
|
12493
|
+
});
|
|
12494
|
+
}
|
|
12495
|
+
/** Revoke this account's registration in one browser. */
|
|
12496
|
+
async unregisterAccountPushSubscription(endpoint) {
|
|
12497
|
+
return this.fetch("push/subscriptions", {
|
|
12498
|
+
method: "DELETE",
|
|
12499
|
+
body: JSON.stringify({ endpoint })
|
|
12500
|
+
});
|
|
12501
|
+
}
|
|
12502
|
+
/** List the authenticated account's browser registrations. */
|
|
12503
|
+
async listAccountPushSubscriptions() {
|
|
12504
|
+
return this.fetch("push/subscriptions");
|
|
12505
|
+
}
|
|
11319
12506
|
/** Register a Web Push subscription for the current user. */
|
|
11320
12507
|
async registerPushSubscription(wid, subscription) {
|
|
11321
12508
|
return this.fetch(`w/${wid}/push-subscriptions`, {
|
|
@@ -11557,8 +12744,8 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11557
12744
|
*
|
|
11558
12745
|
* `bindings` values are sent in the request body only. They are never
|
|
11559
12746
|
* projected from a response and must never be logged: the point of a
|
|
11560
|
-
* binding is that a
|
|
11561
|
-
*
|
|
12747
|
+
* binding is that a phone number, inbox or Member belongs to ONE target
|
|
12748
|
+
* workspace.
|
|
11562
12749
|
*/
|
|
11563
12750
|
/** Download a workspace export ZIP (``export.json`` + file blobs). */
|
|
11564
12751
|
async exportWorkspaceZip(wid, workflowId, scope, exclude, options) {
|
|
@@ -11619,10 +12806,6 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11619
12806
|
* Pass ``archive`` (the ZIP from ``exportWorkspaceZip``) to restore file
|
|
11620
12807
|
* contents. ``exportData`` may be omitted when the ZIP contains it.
|
|
11621
12808
|
*
|
|
11622
|
-
* ``activateWebhookRules`` is safety-default false: imported
|
|
11623
|
-
* ``webhook:send`` EventRules are force-disabled unless the operator
|
|
11624
|
-
* opts in. An exported-inactive rule stays inactive either way.
|
|
11625
|
-
*
|
|
11626
12809
|
* With ``options.intent = 'template_reapply'`` this is the GUARDED apply.
|
|
11627
12810
|
* It requires ``options.expectedPlanFingerprint`` — the digest a preview
|
|
11628
12811
|
* returned — and answers 200 ``success``, 200 ``noop`` (the target already
|
|
@@ -11630,15 +12813,14 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11630
12813
|
* ``stale_import_plan`` or 409 ``import_plan_refused``. Both 409s commit
|
|
11631
12814
|
* nothing and carry the complete values-free ``planRows``.
|
|
11632
12815
|
*/
|
|
11633
|
-
async importWorkspace(wid, exportData, importMappings, createNew, archive,
|
|
12816
|
+
async importWorkspace(wid, exportData, importMappings, createNew, archive, autoMap, options) {
|
|
11634
12817
|
if (archive) {
|
|
11635
12818
|
return this.importWorkspaceZip(wid, archive, {
|
|
11636
12819
|
...options,
|
|
11637
12820
|
exportData,
|
|
11638
12821
|
importMappings,
|
|
11639
12822
|
createNew,
|
|
11640
|
-
autoMap
|
|
11641
|
-
activateWebhookRules
|
|
12823
|
+
autoMap
|
|
11642
12824
|
});
|
|
11643
12825
|
}
|
|
11644
12826
|
if (!exportData) {
|
|
@@ -11650,9 +12832,6 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11650
12832
|
createNew,
|
|
11651
12833
|
...planFields(options)
|
|
11652
12834
|
};
|
|
11653
|
-
if (activateWebhookRules) {
|
|
11654
|
-
payload.activateWebhookRules = activateWebhookRules;
|
|
11655
|
-
}
|
|
11656
12835
|
if (autoMap) {
|
|
11657
12836
|
payload.autoMap = autoMap;
|
|
11658
12837
|
}
|
|
@@ -11678,25 +12857,17 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11678
12857
|
*
|
|
11679
12858
|
* `options.bindings` values are sent in the request body only. They are
|
|
11680
12859
|
* never projected from a response and must never be logged: the point of a
|
|
11681
|
-
* binding is that a
|
|
11682
|
-
*
|
|
12860
|
+
* binding is that a phone number, inbox or Member belongs to ONE target
|
|
12861
|
+
* workspace.
|
|
11683
12862
|
*/
|
|
11684
12863
|
async importWorkspaceZip(wid, archive, options) {
|
|
11685
|
-
const {
|
|
11686
|
-
exportData,
|
|
11687
|
-
importMappings,
|
|
11688
|
-
createNew,
|
|
11689
|
-
autoMap,
|
|
11690
|
-
activateWebhookRules,
|
|
11691
|
-
...planOptions
|
|
11692
|
-
} = options ?? {};
|
|
12864
|
+
const { exportData, importMappings, createNew, autoMap, ...planOptions } = options ?? {};
|
|
11693
12865
|
const payload = {
|
|
11694
12866
|
importMappings: importMappings ?? {},
|
|
11695
12867
|
createNew: createNew ?? {},
|
|
11696
12868
|
...planFields(planOptions)
|
|
11697
12869
|
};
|
|
11698
12870
|
if (exportData) payload.exportData = exportData;
|
|
11699
|
-
if (activateWebhookRules) payload.activateWebhookRules = activateWebhookRules;
|
|
11700
12871
|
if (autoMap) payload.autoMap = autoMap;
|
|
11701
12872
|
const form = new FormData();
|
|
11702
12873
|
form.append(
|
|
@@ -12034,6 +13205,16 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
12034
13205
|
`w/${wid}/app-connections/teams/apps/${appId}/installations${params.toString() ? `?${params.toString()}` : ""}`
|
|
12035
13206
|
);
|
|
12036
13207
|
}
|
|
13208
|
+
/**
|
|
13209
|
+
* Channels this app has observed, for approval on its settings form.
|
|
13210
|
+
* Approval is saved through `updateTeamsApp`
|
|
13211
|
+
* (`approvedNotificationDestinationIds`); observation approves nothing.
|
|
13212
|
+
*/
|
|
13213
|
+
async getTeamsNotificationDestinations(wid, appId) {
|
|
13214
|
+
return this.fetch(
|
|
13215
|
+
`w/${wid}/app-connections/teams/apps/${appId}/notification-destinations`
|
|
13216
|
+
);
|
|
13217
|
+
}
|
|
12037
13218
|
async getTeamsAppAccounts(wid, appId, options = {}) {
|
|
12038
13219
|
const params = new URLSearchParams();
|
|
12039
13220
|
if (options.page) params.append("page", options.page.toString());
|
|
@@ -12231,6 +13412,47 @@ var ActivityApi = class extends BaseApiClient {
|
|
|
12231
13412
|
body: JSON.stringify(request)
|
|
12232
13413
|
});
|
|
12233
13414
|
}
|
|
13415
|
+
/**
|
|
13416
|
+
* The account mount's notification feed, newest first.
|
|
13417
|
+
*
|
|
13418
|
+
* `window` is required and the client keeps it fixed across pages — a
|
|
13419
|
+
* cursor is bound to the exact request that issued it. "This workspace" is
|
|
13420
|
+
* the same read with `scope.workspaceUuids = [wid]`; "All" omits `scope`.
|
|
13421
|
+
* There is no second authorization path: a workspace the caller may not see
|
|
13422
|
+
* stays in the narrowing and admits nothing of its own, so a UUID the caller
|
|
13423
|
+
* names can never widen the response.
|
|
13424
|
+
*/
|
|
13425
|
+
async queryActivityNotifications(request) {
|
|
13426
|
+
return this.fetch("activity/notifications", {
|
|
13427
|
+
method: "POST",
|
|
13428
|
+
body: JSON.stringify(request)
|
|
13429
|
+
});
|
|
13430
|
+
}
|
|
13431
|
+
/**
|
|
13432
|
+
* The bell's number for this account.
|
|
13433
|
+
*
|
|
13434
|
+
* A snapshot, not a page: no cursor, and the way to see more is to open the
|
|
13435
|
+
* feed. An omitted `window` uses the server's recent lookback.
|
|
13436
|
+
*/
|
|
13437
|
+
async getActivityNotificationCount(request = {}) {
|
|
13438
|
+
return this.fetch("activity/notifications/count", {
|
|
13439
|
+
method: "POST",
|
|
13440
|
+
body: JSON.stringify(request)
|
|
13441
|
+
});
|
|
13442
|
+
}
|
|
13443
|
+
/**
|
|
13444
|
+
* Mark presented occurrences read, or dismiss them.
|
|
13445
|
+
*
|
|
13446
|
+
* Additive and idempotent: a repeat applies the same keys without moving
|
|
13447
|
+
* their timestamps, and keys the caller may no longer see are skipped
|
|
13448
|
+
* silently. The response counts what was applied.
|
|
13449
|
+
*/
|
|
13450
|
+
async markActivityNotifications(request) {
|
|
13451
|
+
return this.fetch("activity/notifications/mark", {
|
|
13452
|
+
method: "POST",
|
|
13453
|
+
body: JSON.stringify(request)
|
|
13454
|
+
});
|
|
13455
|
+
}
|
|
12234
13456
|
/**
|
|
12235
13457
|
* What this caller's estate admits, so a client renders honest controls.
|
|
12236
13458
|
*
|
|
@@ -12719,7 +13941,7 @@ function formatAppContextAsMarkdown(context) {
|
|
|
12719
13941
|
lines.push(`**Page**: \`${context.appUri}\``);
|
|
12720
13942
|
}
|
|
12721
13943
|
if (context.pageState) {
|
|
12722
|
-
const { site, page, workflow, dataRecord, toolkit } = context.pageState;
|
|
13944
|
+
const { site, page, workflow, chat, dataRecord, toolkit } = context.pageState;
|
|
12723
13945
|
if (site) {
|
|
12724
13946
|
const siteName = site.name || site.slug;
|
|
12725
13947
|
lines.push(
|
|
@@ -12732,6 +13954,10 @@ function formatAppContextAsMarkdown(context) {
|
|
|
12732
13954
|
pageName ? `**Page**: ${pageName} (ID: \`${page.id}\`)` : `**Page ID**: \`${page.id}\``
|
|
12733
13955
|
);
|
|
12734
13956
|
}
|
|
13957
|
+
if (chat) {
|
|
13958
|
+
const workflowSuffix = chat.workflowId != null ? ` (Workflow ID: \`${chat.workflowId}\`)` : "";
|
|
13959
|
+
lines.push(`**Chat**: #${chat.id}${workflowSuffix}`);
|
|
13960
|
+
}
|
|
12735
13961
|
if (workflow) {
|
|
12736
13962
|
const workflowName = workflow.name;
|
|
12737
13963
|
lines.push(
|
|
@@ -12779,6 +14005,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
12779
14005
|
agents: new AgentsApi(apiKey, baseUrl, customFetch),
|
|
12780
14006
|
aiModels: new AIModelsApi(apiKey, baseUrl, customFetch),
|
|
12781
14007
|
apiKeys: new ApiKeysApi(apiKey, baseUrl, customFetch),
|
|
14008
|
+
appLinks: new AppLinksApi(apiKey, baseUrl, customFetch),
|
|
12782
14009
|
apps: new AppsApi(apiKey, baseUrl, customFetch),
|
|
12783
14010
|
assignments: new AssignmentsApi(apiKey, baseUrl, customFetch),
|
|
12784
14011
|
auth: new AuthApi(apiKey, baseUrl, customFetch),
|
|
@@ -12789,7 +14016,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
12789
14016
|
calls: new CallsApi(apiKey, baseUrl, customFetch),
|
|
12790
14017
|
cel: new CELApi(apiKey, baseUrl, customFetch),
|
|
12791
14018
|
chats: new ChatsApi(apiKey, baseUrl, customFetch),
|
|
12792
|
-
customers: new
|
|
14019
|
+
customers: new OrganizationBillingApi(apiKey, baseUrl, customFetch),
|
|
12793
14020
|
resellers: new ResellersApi(apiKey, baseUrl, customFetch),
|
|
12794
14021
|
customToolkits: new CustomToolkitsApi(apiKey, baseUrl, customFetch),
|
|
12795
14022
|
dashboards: new DashboardsApi(apiKey, baseUrl, customFetch),
|
|
@@ -12861,6 +14088,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12861
14088
|
"activateWorkflowRevision",
|
|
12862
14089
|
"addEmailSenderAsMember",
|
|
12863
14090
|
"addGroupMember",
|
|
14091
|
+
"addWorkspaceSupportRequestParticipants",
|
|
12864
14092
|
"advanceStep",
|
|
12865
14093
|
"approveWorkspaceInvitation",
|
|
12866
14094
|
"archiveAgent",
|
|
@@ -12930,6 +14158,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12930
14158
|
"listSubsetImportRuns",
|
|
12931
14159
|
"listSubsetImports",
|
|
12932
14160
|
"listSubsetImportVendorLists",
|
|
14161
|
+
"listWorkspaceSupportRequestCcCandidates",
|
|
12933
14162
|
"previewSubsetImport",
|
|
12934
14163
|
"previewSubsetImportSelection",
|
|
12935
14164
|
"restoreInstallationForm",
|
|
@@ -12964,7 +14193,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12964
14193
|
"createFolder",
|
|
12965
14194
|
"createGoal",
|
|
12966
14195
|
"createInbox",
|
|
12967
|
-
"
|
|
14196
|
+
"cloneJourneyToCurrent",
|
|
12968
14197
|
"createJourney",
|
|
12969
14198
|
"createJourneyNote",
|
|
12970
14199
|
"createMcpServer",
|
|
@@ -13076,6 +14305,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13076
14305
|
"disableSalesforce",
|
|
13077
14306
|
"disconnectConfluence",
|
|
13078
14307
|
"disconnectHubspot",
|
|
14308
|
+
"switchHubspotToPlatformApp",
|
|
13079
14309
|
"disconnectMondayConnection",
|
|
13080
14310
|
"disconnectSalesforce",
|
|
13081
14311
|
"discordLinkPreflight",
|
|
@@ -13164,10 +14394,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13164
14394
|
"getAvailablePhoneNumbers",
|
|
13165
14395
|
"getAvailableSlots",
|
|
13166
14396
|
"getInstallation",
|
|
14397
|
+
"getInstallationAbilitySettings",
|
|
13167
14398
|
"getInstallationReadiness",
|
|
13168
14399
|
"getThemeSettingsSchema",
|
|
13169
14400
|
"getBundleDraft",
|
|
13170
14401
|
"getBundleJourneyCandidate",
|
|
14402
|
+
"getBundlePublishPreview",
|
|
13171
14403
|
"getBundle",
|
|
13172
14404
|
"getBundleVersion",
|
|
13173
14405
|
"getBusinessHoursStatus",
|
|
@@ -13202,6 +14434,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13202
14434
|
"getChatTaskTransitions",
|
|
13203
14435
|
"getChatModelOverride",
|
|
13204
14436
|
"getChatPhoneCalls",
|
|
14437
|
+
"getChatPhoneNumbers",
|
|
13205
14438
|
"getChatSkills",
|
|
13206
14439
|
"getManagerSkills",
|
|
13207
14440
|
"getChatTodos",
|
|
@@ -13216,6 +14449,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13216
14449
|
"getConfluenceStatus",
|
|
13217
14450
|
"getConnectionFieldHomes",
|
|
13218
14451
|
"getInboundRecordStatus",
|
|
14452
|
+
"getOwnerMemberStatus",
|
|
13219
14453
|
"getConnectionSyncCapabilities",
|
|
13220
14454
|
"getConnectionSyncCheckpoint",
|
|
13221
14455
|
"getConnectionSyncConfig",
|
|
@@ -13242,7 +14476,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13242
14476
|
"getDataRecordFilters",
|
|
13243
14477
|
"getDataRecords",
|
|
13244
14478
|
"getDataType",
|
|
13245
|
-
"getDataTypeDraft",
|
|
13246
14479
|
"getDataTypeVersions",
|
|
13247
14480
|
"getDataTypeByUuid",
|
|
13248
14481
|
"getDataTypeBySlug",
|
|
@@ -13279,6 +14512,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13279
14512
|
"getEdgeCaptureInfo",
|
|
13280
14513
|
"getEnrollmentStatusLog",
|
|
13281
14514
|
"getEventRule",
|
|
14515
|
+
"getEventRuleIndex",
|
|
13282
14516
|
"getEventRules",
|
|
13283
14517
|
"getExperiment",
|
|
13284
14518
|
"getExperimentStats",
|
|
@@ -13307,8 +14541,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13307
14541
|
"previewDataReport",
|
|
13308
14542
|
"previewQuery",
|
|
13309
14543
|
"publishSiteSource",
|
|
13310
|
-
"publishDataTypeDraft",
|
|
13311
|
-
"saveDataTypeDraft",
|
|
13312
14544
|
"queryWorkspaceActivity",
|
|
13313
14545
|
"queryWorkspaceActivityLatestSubjects",
|
|
13314
14546
|
"queryWorkspaceActivityOpenItems",
|
|
@@ -13334,6 +14566,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13334
14566
|
"getFolders",
|
|
13335
14567
|
"getGoogleCalendarStatus",
|
|
13336
14568
|
"getGranteeGrants",
|
|
14569
|
+
"getHealthieAppointmentPatientMatches",
|
|
13337
14570
|
"getHealthieAvailableSlots",
|
|
13338
14571
|
"getHealthieReconciliationMatches",
|
|
13339
14572
|
"getHealthieStatus",
|
|
@@ -13342,10 +14575,14 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13342
14575
|
"getHubspotDealProperties",
|
|
13343
14576
|
"getHubspotForms",
|
|
13344
14577
|
"getHubspotMeetingLinks",
|
|
14578
|
+
"getHubspotCrmObjects",
|
|
13345
14579
|
"getHubspotManagedRules",
|
|
13346
14580
|
"getHubspotObjectProperties",
|
|
13347
14581
|
"getHubspotReconciliationMatches",
|
|
13348
14582
|
"getHubspotStatus",
|
|
14583
|
+
"bindHubspotCalendar",
|
|
14584
|
+
"unlinkHubspotCalendar",
|
|
14585
|
+
"importHubspotCalendarEvents",
|
|
13349
14586
|
"getHubspotBookingReceipt",
|
|
13350
14587
|
"releaseHubspotBookingAttempt",
|
|
13351
14588
|
"getHubspotSyncLogs",
|
|
@@ -13366,10 +14603,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13366
14603
|
"getJourneyAuthoring",
|
|
13367
14604
|
"getJourneyFilterOptions",
|
|
13368
14605
|
"getJourneyHealth",
|
|
14606
|
+
"getJourneyHistory",
|
|
13369
14607
|
"getJourneyMembers",
|
|
13370
14608
|
"getJourneyNotes",
|
|
13371
14609
|
"getJourneySendEstimate",
|
|
13372
|
-
"
|
|
14610
|
+
"getJourneyDefinitionValidation",
|
|
13373
14611
|
"getJourneys",
|
|
13374
14612
|
"getLinkablePhones",
|
|
13375
14613
|
"getLinkedHealthieMembers",
|
|
@@ -13418,6 +14656,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13418
14656
|
"getMyGivenGrants",
|
|
13419
14657
|
"getMyReceivedGrants",
|
|
13420
14658
|
"getNotification",
|
|
14659
|
+
"getNotificationDestinations",
|
|
13421
14660
|
"getNotificationRules",
|
|
13422
14661
|
"getNotifications",
|
|
13423
14662
|
"getOperatorChatMessages",
|
|
@@ -13486,17 +14725,21 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13486
14725
|
"getStepMembers",
|
|
13487
14726
|
"getSupervisor",
|
|
13488
14727
|
"getSupervisors",
|
|
14728
|
+
"getSyncFailures",
|
|
14729
|
+
"getSyncFailureSummary",
|
|
13489
14730
|
"getSyncRunItems",
|
|
13490
14731
|
"getSyncRunItemsPage",
|
|
13491
14732
|
"getSyncRuns",
|
|
13492
14733
|
"getTask",
|
|
13493
14734
|
"getTaskChats",
|
|
14735
|
+
"getTaskCatalog",
|
|
13494
14736
|
"getTasks",
|
|
13495
14737
|
"getTeamsApp",
|
|
13496
14738
|
"getTeamsAppAccounts",
|
|
13497
14739
|
"getTeamsApps",
|
|
13498
14740
|
"getTeamsConversations",
|
|
13499
14741
|
"getTeamsInstallations",
|
|
14742
|
+
"getTeamsNotificationDestinations",
|
|
13500
14743
|
"getTemplateContext",
|
|
13501
14744
|
"getChatTestRun",
|
|
13502
14745
|
"getTestChatRun",
|
|
@@ -13512,7 +14755,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13512
14755
|
"getUsageDashboard",
|
|
13513
14756
|
"getVariableRegistry",
|
|
13514
14757
|
"getVoiceUsageReport",
|
|
13515
|
-
"getWebhookLogs",
|
|
13516
14758
|
"getWorkflow",
|
|
13517
14759
|
"getWorkflowOpeningTurnConversionReport",
|
|
13518
14760
|
"getWorkflowActivity",
|
|
@@ -13520,6 +14762,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13520
14762
|
"getWorkflowFeedback",
|
|
13521
14763
|
"getWorkflowPromptClassifications",
|
|
13522
14764
|
"reviewWorkflowPromptClassifications",
|
|
14765
|
+
"getWorkflowRunnerFileAccess",
|
|
13523
14766
|
"getWorkflowContributors",
|
|
13524
14767
|
"getWorkflowDeletionPreview",
|
|
13525
14768
|
"getWorkflowDiagram",
|
|
@@ -13547,6 +14790,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13547
14790
|
"getWorkspaceWidgetDomains",
|
|
13548
14791
|
"getWorkspaceSubscriptions",
|
|
13549
14792
|
"getWorkspaceSupportRequest",
|
|
14793
|
+
"getWorkspaceValuesRecord",
|
|
13550
14794
|
"getWorkspaceThemes",
|
|
13551
14795
|
"installBundle",
|
|
13552
14796
|
"grantBundle",
|
|
@@ -13585,12 +14829,15 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13585
14829
|
"listBundleVersions",
|
|
13586
14830
|
"listBundles",
|
|
13587
14831
|
"listBundleWorkflowCandidates",
|
|
14832
|
+
"getWorkflowBundleMembership",
|
|
13588
14833
|
"updateBundle",
|
|
13589
14834
|
"listBundleInstallations",
|
|
13590
14835
|
"listConfluencePages",
|
|
13591
14836
|
"listConfluenceSpaces",
|
|
13592
14837
|
"listConnectionMemberFieldKeys",
|
|
13593
14838
|
"listContactPermissions",
|
|
14839
|
+
"listMemberImportRunItems",
|
|
14840
|
+
"listMemberImportRuns",
|
|
13594
14841
|
"revokeBundleGrant",
|
|
13595
14842
|
"rollbackSiteSource",
|
|
13596
14843
|
"rotateDocumoFaxCredentials",
|
|
@@ -13651,7 +14898,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13651
14898
|
"publishBundle",
|
|
13652
14899
|
"publishWorkflowRevision",
|
|
13653
14900
|
"putJourneyDraft",
|
|
13654
|
-
"
|
|
14901
|
+
"putJourneyDefinition",
|
|
13655
14902
|
"rateMessage",
|
|
13656
14903
|
"getChatFeedback",
|
|
13657
14904
|
"reenrollMember",
|
|
@@ -13703,6 +14950,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13703
14950
|
"skipStep",
|
|
13704
14951
|
"startConfluenceOAuth",
|
|
13705
14952
|
"startHubspotOAuth",
|
|
14953
|
+
"startMemberImportRun",
|
|
13706
14954
|
"startSalesforceOAuth",
|
|
13707
14955
|
"startSyncRun",
|
|
13708
14956
|
"captureScenarioDraft",
|
|
@@ -13714,8 +14962,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13714
14962
|
"testFhirConnection",
|
|
13715
14963
|
"testMcpServerConnection",
|
|
13716
14964
|
"testMondayConnection",
|
|
14965
|
+
"listJourneyTests",
|
|
14966
|
+
"createJourneyTest",
|
|
14967
|
+
"updateJourneyTest",
|
|
14968
|
+
"deleteJourneyTest",
|
|
14969
|
+
"runJourneyTests",
|
|
14970
|
+
"simulateJourney",
|
|
13717
14971
|
"testRunJourney",
|
|
13718
|
-
"testWebhook",
|
|
13719
14972
|
"toggleFieldIndex",
|
|
13720
14973
|
"unarchiveAgent",
|
|
13721
14974
|
"unarchiveChat",
|
|
@@ -13823,8 +15076,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13823
15076
|
"upsertDataRecord",
|
|
13824
15077
|
"upsertWidgetDomain",
|
|
13825
15078
|
"validateCelExpression",
|
|
15079
|
+
"validateConnectionSyncConfig",
|
|
13826
15080
|
"validateDataTypeSlug",
|
|
15081
|
+
"validateMondaySyncConfig",
|
|
13827
15082
|
"validateQuery",
|
|
15083
|
+
"validateSalesforceSyncConfig",
|
|
13828
15084
|
"validateWorkflowName",
|
|
13829
15085
|
"verifyAthenaAccess",
|
|
13830
15086
|
"verifyClaimMdKey",
|
|
@@ -13861,6 +15117,11 @@ function bindAccessGrantsMethods(target, accessGrants) {
|
|
|
13861
15117
|
target.getGranteeGrants = accessGrants.getGranteeGrants.bind(accessGrants);
|
|
13862
15118
|
}
|
|
13863
15119
|
|
|
15120
|
+
// src/client/bindings/app-links.ts
|
|
15121
|
+
function bindAppLinksMethods(target, appLinks) {
|
|
15122
|
+
target.resolveAppLink = appLinks.resolveAppLink.bind(appLinks);
|
|
15123
|
+
}
|
|
15124
|
+
|
|
13864
15125
|
// src/client/bindings/intervention-requests.ts
|
|
13865
15126
|
function bindInterventionRequestsMethods(target, interventionRequests) {
|
|
13866
15127
|
target.getAgentModeAttention = interventionRequests.getAgentModeAttention.bind(interventionRequests);
|
|
@@ -13885,11 +15146,14 @@ function bindAgentsMethods(target, agents) {
|
|
|
13885
15146
|
target.deleteAgent = agents.deleteAgent.bind(agents);
|
|
13886
15147
|
target.archiveAgent = agents.archiveAgent.bind(agents);
|
|
13887
15148
|
target.unarchiveAgent = agents.unarchiveAgent.bind(agents);
|
|
15149
|
+
target.getOrgAgentJobs = agents.getOrgAgentJobs.bind(agents);
|
|
15150
|
+
target.stopOrgAgentJob = agents.stopOrgAgentJob.bind(agents);
|
|
13888
15151
|
}
|
|
13889
15152
|
|
|
13890
15153
|
// src/client/bindings/tasks.ts
|
|
13891
15154
|
function bindTasksMethods(target, tasks, abilities) {
|
|
13892
15155
|
target.getTasks = tasks.getTasks.bind(tasks);
|
|
15156
|
+
target.getTaskCatalog = tasks.getTaskCatalog.bind(tasks);
|
|
13893
15157
|
target.getTask = tasks.getTask.bind(tasks);
|
|
13894
15158
|
target.createTask = tasks.createTask.bind(tasks);
|
|
13895
15159
|
target.updateTask = tasks.updateTask.bind(tasks);
|
|
@@ -13908,6 +15172,7 @@ function bindTasksMethods(target, tasks, abilities) {
|
|
|
13908
15172
|
|
|
13909
15173
|
// src/client/bindings/chats.ts
|
|
13910
15174
|
function bindChatsMethods(target, chats) {
|
|
15175
|
+
target.chat = chats.chat.bind(chats);
|
|
13911
15176
|
target.createChatInteractionSession = chats.createChatInteractionSession.bind(chats);
|
|
13912
15177
|
target.transitionChatInteractionSession = chats.transitionChatInteractionSession.bind(chats);
|
|
13913
15178
|
target.getChats = chats.getChats.bind(chats);
|
|
@@ -13951,6 +15216,8 @@ function bindChatsMethods(target, chats) {
|
|
|
13951
15216
|
target.createChatCompletion = chats.createChatCompletion.bind(chats);
|
|
13952
15217
|
target.exportChats = chats.exportChats.bind(chats);
|
|
13953
15218
|
target.exportChat = chats.exportChat.bind(chats);
|
|
15219
|
+
target.listChatStaffNotes = chats.listChatStaffNotes.bind(chats);
|
|
15220
|
+
target.createChatStaffNote = chats.createChatStaffNote.bind(chats);
|
|
13954
15221
|
target.findOrCreateDMChat = chats.findOrCreateDMChat.bind(chats);
|
|
13955
15222
|
target.sendChatMessage = chats.sendChatMessage.bind(chats);
|
|
13956
15223
|
target.getChatPhoneCalls = chats.getChatPhoneCalls.bind(chats);
|
|
@@ -14000,6 +15267,9 @@ function bindActivityMethods(target, activity) {
|
|
|
14000
15267
|
target.queryActivityOneView = activity.queryActivityOneView.bind(activity);
|
|
14001
15268
|
target.queryActivityDigest = activity.queryActivityDigest.bind(activity);
|
|
14002
15269
|
target.getActivityCounts = activity.getActivityCounts.bind(activity);
|
|
15270
|
+
target.queryActivityNotifications = activity.queryActivityNotifications.bind(activity);
|
|
15271
|
+
target.getActivityNotificationCount = activity.getActivityNotificationCount.bind(activity);
|
|
15272
|
+
target.markActivityNotifications = activity.markActivityNotifications.bind(activity);
|
|
14003
15273
|
target.getActivityCapabilities = activity.getActivityCapabilities.bind(activity);
|
|
14004
15274
|
target.queryOrgActivity = activity.queryOrgActivity.bind(activity);
|
|
14005
15275
|
target.queryOrgActivityLatestSubjects = activity.queryOrgActivityLatestSubjects.bind(activity);
|
|
@@ -14039,9 +15309,6 @@ function bindTrackedLinksMethods(target, trackedLinks) {
|
|
|
14039
15309
|
function bindDataTypesMethods(target, dataTypes) {
|
|
14040
15310
|
target.getAnonymousFormSchema = dataTypes.getAnonymousFormSchema.bind(dataTypes);
|
|
14041
15311
|
target.submitAnonymousForm = dataTypes.submitAnonymousForm.bind(dataTypes);
|
|
14042
|
-
target.getDataTypeDraft = dataTypes.getDataTypeDraft.bind(dataTypes);
|
|
14043
|
-
target.saveDataTypeDraft = dataTypes.saveDataTypeDraft.bind(dataTypes);
|
|
14044
|
-
target.publishDataTypeDraft = dataTypes.publishDataTypeDraft.bind(dataTypes);
|
|
14045
15312
|
target.getDataTypeVersions = dataTypes.getDataTypeVersions.bind(dataTypes);
|
|
14046
15313
|
target.getDataTypes = dataTypes.getDataTypes.bind(dataTypes);
|
|
14047
15314
|
target.getDataType = dataTypes.getDataType.bind(dataTypes);
|
|
@@ -14054,6 +15321,7 @@ function bindDataTypesMethods(target, dataTypes) {
|
|
|
14054
15321
|
target.unarchiveDataType = dataTypes.unarchiveDataType.bind(dataTypes);
|
|
14055
15322
|
target.cloneDataType = dataTypes.cloneDataType.bind(dataTypes);
|
|
14056
15323
|
target.getDataRecords = dataTypes.getDataRecords.bind(dataTypes);
|
|
15324
|
+
target.getWorkspaceValuesRecord = dataTypes.getWorkspaceValuesRecord.bind(dataTypes);
|
|
14057
15325
|
target.listAnonymousFormSubmissions = dataTypes.listAnonymousFormSubmissions.bind(dataTypes);
|
|
14058
15326
|
target.getAnonymousFormSubmission = dataTypes.getAnonymousFormSubmission.bind(dataTypes);
|
|
14059
15327
|
target.getDataRecord = dataTypes.getDataRecord.bind(dataTypes);
|
|
@@ -14099,6 +15367,7 @@ function bindMembersMethods(target, members) {
|
|
|
14099
15367
|
target.updateCurrentMember = members.updateCurrentMember.bind(members);
|
|
14100
15368
|
target.getWorkspaceMembers = members.getWorkspaceMembers.bind(members);
|
|
14101
15369
|
target.getWorkspaceMember = members.getWorkspaceMember.bind(members);
|
|
15370
|
+
target.getMemberSmsSenders = members.getMemberSmsSenders.bind(members);
|
|
14102
15371
|
target.getMemberByUuid = members.getMemberByUuid.bind(members);
|
|
14103
15372
|
target.getOrgWorkspaceMember = members.getOrgWorkspaceMember.bind(members);
|
|
14104
15373
|
target.createWorkspaceMember = members.createWorkspaceMember.bind(members);
|
|
@@ -14113,6 +15382,9 @@ function bindMembersMethods(target, members) {
|
|
|
14113
15382
|
target.bulkCreateMembers = members.bulkCreateMembers.bind(members);
|
|
14114
15383
|
target.previewImportMembers = members.previewImportMembers.bind(members);
|
|
14115
15384
|
target.importMembers = members.importMembers.bind(members);
|
|
15385
|
+
target.startMemberImportRun = members.startMemberImportRun.bind(members);
|
|
15386
|
+
target.listMemberImportRuns = members.listMemberImportRuns.bind(members);
|
|
15387
|
+
target.listMemberImportRunItems = members.listMemberImportRunItems.bind(members);
|
|
14116
15388
|
target.exportMembers = members.exportMembers.bind(members);
|
|
14117
15389
|
target.getMembersMessageActivity = members.getMembersMessageActivity.bind(members);
|
|
14118
15390
|
target.getMemberFilters = members.getMemberFilters.bind(members);
|
|
@@ -14213,6 +15485,11 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14213
15485
|
target.getWorkspaceBySlug = workspaces.getWorkspace.bind(workspaces);
|
|
14214
15486
|
target.getWorkspaceScopes = workspaces.getWorkspaceScopes.bind(workspaces);
|
|
14215
15487
|
target.getUsageDashboard = workspaces.getUsageDashboard.bind(workspaces);
|
|
15488
|
+
target.getNotificationPreferences = workspaces.getNotificationPreferences.bind(workspaces);
|
|
15489
|
+
target.setWorkspaceNotificationMute = workspaces.setWorkspaceNotificationMute.bind(workspaces);
|
|
15490
|
+
target.registerAccountPushSubscription = workspaces.registerAccountPushSubscription.bind(workspaces);
|
|
15491
|
+
target.unregisterAccountPushSubscription = workspaces.unregisterAccountPushSubscription.bind(workspaces);
|
|
15492
|
+
target.listAccountPushSubscriptions = workspaces.listAccountPushSubscriptions.bind(workspaces);
|
|
14216
15493
|
target.getVapidPublicKey = workspaces.getVapidPublicKey.bind(workspaces);
|
|
14217
15494
|
target.testPushSubscription = workspaces.testPushSubscription.bind(workspaces);
|
|
14218
15495
|
target.registerPushSubscription = workspaces.registerPushSubscription.bind(workspaces);
|
|
@@ -14246,6 +15523,7 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
14246
15523
|
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
14247
15524
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
14248
15525
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
15526
|
+
target.updateMemberAvatar = auth.updateMemberAvatar.bind(auth);
|
|
14249
15527
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
14250
15528
|
target.login = auth.login.bind(auth);
|
|
14251
15529
|
target.resendCode = auth.resendCode.bind(auth);
|
|
@@ -14414,15 +15692,14 @@ function bindProjectsMethods(target, projects) {
|
|
|
14414
15692
|
// src/client/bindings/events.ts
|
|
14415
15693
|
function bindEventsMethods(target, events) {
|
|
14416
15694
|
target.getEventRules = events.getEventRules.bind(events);
|
|
15695
|
+
target.getEventRuleIndex = events.getEventRuleIndex.bind(events);
|
|
14417
15696
|
target.getAvailableActions = events.getAvailableActions.bind(events);
|
|
14418
15697
|
target.searchEventRules = events.searchEventRules.bind(events);
|
|
14419
15698
|
target.getEventRule = events.getEventRule.bind(events);
|
|
14420
15699
|
target.createEventRule = events.createEventRule.bind(events);
|
|
14421
15700
|
target.updateEventRule = events.updateEventRule.bind(events);
|
|
14422
15701
|
target.deleteEventRule = events.deleteEventRule.bind(events);
|
|
14423
|
-
target.testWebhook = events.testWebhook.bind(events);
|
|
14424
15702
|
target.reorderEventRules = events.reorderEventRules.bind(events);
|
|
14425
|
-
target.getWebhookLogs = events.getWebhookLogs.bind(events);
|
|
14426
15703
|
target.getRuleExecutions = events.getRuleExecutions.bind(events);
|
|
14427
15704
|
target.getRoutines = events.getRoutines.bind(events);
|
|
14428
15705
|
target.getRoutine = events.getRoutine.bind(events);
|
|
@@ -14480,6 +15757,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
14480
15757
|
target.getWorkflowConfigValidation = workflows.getWorkflowConfigValidation.bind(workflows);
|
|
14481
15758
|
target.getWorkflowPromptClassifications = workflows.getWorkflowPromptClassifications.bind(workflows);
|
|
14482
15759
|
target.reviewWorkflowPromptClassifications = workflows.reviewWorkflowPromptClassifications.bind(workflows);
|
|
15760
|
+
target.getWorkflowRunnerFileAccess = workflows.getWorkflowRunnerFileAccess.bind(workflows);
|
|
14483
15761
|
target.getWorkflowNotes = workflowNotes.getWorkflowNotes.bind(workflowNotes);
|
|
14484
15762
|
target.createWorkflowNote = workflowNotes.createWorkflowNote.bind(workflowNotes);
|
|
14485
15763
|
target.updateWorkflowNote = workflowNotes.updateWorkflowNote.bind(workflowNotes);
|
|
@@ -14547,6 +15825,7 @@ function bindCalendarsMethods(target, calendars) {
|
|
|
14547
15825
|
// src/client/bindings/communications.ts
|
|
14548
15826
|
function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRules) {
|
|
14549
15827
|
target.getPhoneNumbers = phoneNumbers.getPhoneNumbers.bind(phoneNumbers);
|
|
15828
|
+
target.getChatPhoneNumbers = phoneNumbers.getChatPhoneNumbers.bind(phoneNumbers);
|
|
14550
15829
|
target.getAvailablePhoneNumbers = phoneNumbers.getAvailablePhoneNumbers.bind(phoneNumbers);
|
|
14551
15830
|
target.requestPhoneNumber = phoneNumbers.requestPhoneNumber.bind(phoneNumbers);
|
|
14552
15831
|
target.getPhoneNumber = phoneNumbers.getPhoneNumber.bind(phoneNumbers);
|
|
@@ -14594,6 +15873,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14594
15873
|
target.createNotificationRule = notificationRules.createNotificationRule.bind(notificationRules);
|
|
14595
15874
|
target.updateNotificationRule = notificationRules.updateNotificationRule.bind(notificationRules);
|
|
14596
15875
|
target.deleteNotificationRule = notificationRules.deleteNotificationRule.bind(notificationRules);
|
|
15876
|
+
target.getNotificationDestinations = notificationRules.getNotificationDestinations.bind(notificationRules);
|
|
14597
15877
|
}
|
|
14598
15878
|
|
|
14599
15879
|
// src/client/bindings/toolkits.ts
|
|
@@ -14694,6 +15974,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
14694
15974
|
target.denyAuthorization = oauth.denyAuthorization.bind(oauth);
|
|
14695
15975
|
target.getOAuthConsentClient = oauth.getOAuthConsentClient.bind(oauth);
|
|
14696
15976
|
target.getMcpConsentTargets = oauth.getMcpConsentTargets.bind(oauth);
|
|
15977
|
+
target.getConsentTargets = oauth.getConsentTargets.bind(oauth);
|
|
14697
15978
|
target.listMcpGrants = oauth.listMcpGrants.bind(oauth);
|
|
14698
15979
|
target.narrowMcpGrant = oauth.narrowMcpGrant.bind(oauth);
|
|
14699
15980
|
target.revokeMcpGrant = oauth.revokeMcpGrant.bind(oauth);
|
|
@@ -14726,6 +16007,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14726
16007
|
target.getMondaySyncConfig = mondayIntegration.getMondaySyncConfig.bind(mondayIntegration);
|
|
14727
16008
|
target.getMondaySyncLogs = mondayIntegration.getMondaySyncLogs.bind(mondayIntegration);
|
|
14728
16009
|
target.updateMondaySyncConfig = mondayIntegration.updateMondaySyncConfig.bind(mondayIntegration);
|
|
16010
|
+
target.validateMondaySyncConfig = mondayIntegration.validateMondaySyncConfig.bind(mondayIntegration);
|
|
14729
16011
|
target.getLinkedMondayMembers = mondayIntegration.getLinkedMondayMembers.bind(mondayIntegration);
|
|
14730
16012
|
target.getMondayReconciliationMatches = mondayIntegration.getMondayReconciliationMatches.bind(mondayIntegration);
|
|
14731
16013
|
target.linkMemberToMonday = mondayIntegration.linkMemberToMonday.bind(mondayIntegration);
|
|
@@ -14769,6 +16051,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14769
16051
|
target.getTeamsConversations = teamsApps.getTeamsConversations.bind(teamsApps);
|
|
14770
16052
|
target.getTeamsInstallations = teamsApps.getTeamsInstallations.bind(teamsApps);
|
|
14771
16053
|
target.getTeamsAppAccounts = teamsApps.getTeamsAppAccounts.bind(teamsApps);
|
|
16054
|
+
target.getTeamsNotificationDestinations = teamsApps.getTeamsNotificationDestinations.bind(teamsApps);
|
|
14772
16055
|
target.getFhirConnections = fhirConnections.getFhirConnections.bind(fhirConnections);
|
|
14773
16056
|
target.getFhirConnection = fhirConnections.getFhirConnection.bind(fhirConnections);
|
|
14774
16057
|
target.getFhirConnectionByUuid = fhirConnections.getFhirConnectionByUuid.bind(fhirConnections);
|
|
@@ -14828,6 +16111,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14828
16111
|
target.syncCalendarWithHealthie = healthie.syncCalendarWithHealthie.bind(healthie);
|
|
14829
16112
|
target.getLinkedHealthieMembers = healthie.getLinkedHealthieMembers.bind(healthie);
|
|
14830
16113
|
target.getHealthieReconciliationMatches = healthie.getHealthieReconciliationMatches.bind(healthie);
|
|
16114
|
+
target.getHealthieAppointmentPatientMatches = healthie.getHealthieAppointmentPatientMatches.bind(healthie);
|
|
14831
16115
|
target.linkMemberToHealthie = healthie.linkMemberToHealthie.bind(healthie);
|
|
14832
16116
|
target.unlinkMemberFromHealthie = healthie.unlinkMemberFromHealthie.bind(healthie);
|
|
14833
16117
|
target.listHealthieAppointmentTypes = healthie.listHealthieAppointmentTypes.bind(healthie);
|
|
@@ -14860,11 +16144,15 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14860
16144
|
target.getSalesforceSyncConfig = salesforce.getSalesforceSyncConfig.bind(salesforce);
|
|
14861
16145
|
target.getSalesforceSyncLogs = salesforce.getSalesforceSyncLogs.bind(salesforce);
|
|
14862
16146
|
target.updateSalesforceSyncConfig = salesforce.updateSalesforceSyncConfig.bind(salesforce);
|
|
16147
|
+
target.validateSalesforceSyncConfig = salesforce.validateSalesforceSyncConfig.bind(salesforce);
|
|
14863
16148
|
target.resyncSalesforceLinkedMembers = salesforce.resyncSalesforceLinkedMembers.bind(salesforce);
|
|
14864
16149
|
target.listSalesforceObjects = salesforce.listSalesforceObjects.bind(salesforce);
|
|
14865
16150
|
target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
|
|
14866
16151
|
target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
|
|
14867
16152
|
target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
|
|
16153
|
+
target.bindHubspotCalendar = hubspot.bindHubspotCalendar.bind(hubspot);
|
|
16154
|
+
target.unlinkHubspotCalendar = hubspot.unlinkHubspotCalendar.bind(hubspot);
|
|
16155
|
+
target.importHubspotCalendarEvents = hubspot.importHubspotCalendarEvents.bind(hubspot);
|
|
14868
16156
|
target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
|
|
14869
16157
|
target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
|
|
14870
16158
|
target.installHubspot = hubspot.installHubspot.bind(hubspot);
|
|
@@ -14872,6 +16160,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14872
16160
|
target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
|
|
14873
16161
|
target.getHubspotStatus = hubspot.getHubspotStatus.bind(hubspot);
|
|
14874
16162
|
target.disconnectHubspot = hubspot.disconnectHubspot.bind(hubspot);
|
|
16163
|
+
target.switchHubspotToPlatformApp = hubspot.switchHubspotToPlatformApp.bind(hubspot);
|
|
14875
16164
|
target.disableHubspot = hubspot.disableHubspot.bind(hubspot);
|
|
14876
16165
|
target.enableHubspot = hubspot.enableHubspot.bind(hubspot);
|
|
14877
16166
|
target.deleteHubspot = hubspot.deleteHubspot.bind(hubspot);
|
|
@@ -14886,6 +16175,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14886
16175
|
target.getHubspotDealProperties = hubspot.getHubspotDealProperties.bind(hubspot);
|
|
14887
16176
|
target.getHubspotForms = hubspot.getHubspotForms.bind(hubspot);
|
|
14888
16177
|
target.getHubspotMeetingLinks = hubspot.getHubspotMeetingLinks.bind(hubspot);
|
|
16178
|
+
target.getHubspotCrmObjects = hubspot.getHubspotCrmObjects.bind(hubspot);
|
|
14889
16179
|
target.getHubspotObjectProperties = hubspot.getHubspotObjectProperties.bind(hubspot);
|
|
14890
16180
|
target.getHubspotManagedRules = hubspot.getHubspotManagedRules.bind(hubspot);
|
|
14891
16181
|
target.getHubspotSyncLogs = hubspot.getHubspotSyncLogs.bind(hubspot);
|
|
@@ -14893,14 +16183,18 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14893
16183
|
target.getConnectionSyncCapabilities = connectionSync.getConnectionSyncCapabilities.bind(connectionSync);
|
|
14894
16184
|
target.getConnectionSyncConfig = connectionSync.getConnectionSyncConfig.bind(connectionSync);
|
|
14895
16185
|
target.updateConnectionSyncConfig = connectionSync.updateConnectionSyncConfig.bind(connectionSync);
|
|
16186
|
+
target.validateConnectionSyncConfig = connectionSync.validateConnectionSyncConfig.bind(connectionSync);
|
|
14896
16187
|
target.getConnectionSyncCheckpoint = connectionSync.getConnectionSyncCheckpoint.bind(connectionSync);
|
|
14897
16188
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
14898
16189
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
14899
16190
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
14900
16191
|
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
14901
16192
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
16193
|
+
target.getSyncFailureSummary = connectionSync.getSyncFailureSummary.bind(connectionSync);
|
|
16194
|
+
target.getSyncFailures = connectionSync.getSyncFailures.bind(connectionSync);
|
|
14902
16195
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
14903
16196
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
16197
|
+
target.getOwnerMemberStatus = connectionSync.getOwnerMemberStatus.bind(connectionSync);
|
|
14904
16198
|
target.getConnectionWritePreview = connectionSync.getConnectionWritePreview.bind(connectionSync);
|
|
14905
16199
|
target.clearConnectionMemberExclusion = connectionSync.clearConnectionMemberExclusion.bind(connectionSync);
|
|
14906
16200
|
target.linkUnlinkedMembersByIdentity = connectionSync.linkUnlinkedMembersByIdentity.bind(connectionSync);
|
|
@@ -14944,13 +16238,6 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
14944
16238
|
|
|
14945
16239
|
// src/client/bindings/org.ts
|
|
14946
16240
|
function bindOrgMethods(target, org) {
|
|
14947
|
-
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
14948
|
-
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
14949
|
-
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
14950
|
-
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
14951
|
-
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
14952
|
-
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
14953
|
-
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
14954
16241
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
14955
16242
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
14956
16243
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -14982,7 +16269,7 @@ function bindOrgMethods(target, org) {
|
|
|
14982
16269
|
target.getOrganizationWorkspaces = org.getOrganizationWorkspaces.bind(org);
|
|
14983
16270
|
target.getOrganizationWorkspace = org.getOrganizationWorkspace.bind(org);
|
|
14984
16271
|
target.updateOrganizationWorkspace = org.updateOrganizationWorkspace.bind(org);
|
|
14985
|
-
target.
|
|
16272
|
+
target.getOrgBillingAccess = org.getOrgBillingAccess.bind(org);
|
|
14986
16273
|
target.getA2PCampaignConfig = org.getA2PCampaignConfig.bind(org);
|
|
14987
16274
|
target.updateA2PCampaignConfig = org.updateA2PCampaignConfig.bind(org);
|
|
14988
16275
|
target.getOrgWorkspaceUsage = org.getOrgWorkspaceUsage.bind(org);
|
|
@@ -15039,11 +16326,13 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
|
15039
16326
|
target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
|
|
15040
16327
|
target.listBundles = bundles.listBundles.bind(bundles);
|
|
15041
16328
|
target.listBundleWorkflowCandidates = bundles.listBundleWorkflowCandidates.bind(bundles);
|
|
16329
|
+
target.getWorkflowBundleMembership = bundles.getWorkflowBundleMembership.bind(bundles);
|
|
15042
16330
|
target.listBundleJourneyCandidates = bundles.listBundleJourneyCandidates.bind(bundles);
|
|
15043
16331
|
target.getBundleJourneyCandidate = bundles.getBundleJourneyCandidate.bind(bundles);
|
|
15044
16332
|
target.createBundle = bundles.createBundle.bind(bundles);
|
|
15045
16333
|
target.getBundleDraft = bundles.getBundleDraft.bind(bundles);
|
|
15046
16334
|
target.replaceBundleDraft = bundles.replaceBundleDraft.bind(bundles);
|
|
16335
|
+
target.getBundlePublishPreview = bundles.getBundlePublishPreview.bind(bundles);
|
|
15047
16336
|
target.publishBundle = bundles.publishBundle.bind(bundles);
|
|
15048
16337
|
target.listBundleVersions = bundles.listBundleVersions.bind(bundles);
|
|
15049
16338
|
target.getBundle = bundles.getBundle.bind(bundles);
|
|
@@ -15061,6 +16350,7 @@ function bindInstallationsMethods(target, installations) {
|
|
|
15061
16350
|
target.listInstallations = installations.listInstallations.bind(installations);
|
|
15062
16351
|
target.getInstallation = installations.getInstallation.bind(installations);
|
|
15063
16352
|
target.getInstallationReadiness = installations.getInstallationReadiness.bind(installations);
|
|
16353
|
+
target.getInstallationAbilitySettings = installations.getInstallationAbilitySettings.bind(installations);
|
|
15064
16354
|
target.previewInstallationUpgrade = installations.previewInstallationUpgrade.bind(installations);
|
|
15065
16355
|
target.upgradeInstallation = installations.upgradeInstallation.bind(installations);
|
|
15066
16356
|
target.setInstallationPolicy = installations.setInstallationPolicy.bind(installations);
|
|
@@ -15074,17 +16364,24 @@ function bindInstallationsMethods(target, installations) {
|
|
|
15074
16364
|
|
|
15075
16365
|
// src/client/bindings/journeys.ts
|
|
15076
16366
|
function bindJourneysMethods(target, journeys) {
|
|
16367
|
+
target.listJourneyTests = journeys.listJourneyTests.bind(journeys);
|
|
16368
|
+
target.createJourneyTest = journeys.createJourneyTest.bind(journeys);
|
|
16369
|
+
target.updateJourneyTest = journeys.updateJourneyTest.bind(journeys);
|
|
16370
|
+
target.deleteJourneyTest = journeys.deleteJourneyTest.bind(journeys);
|
|
16371
|
+
target.runJourneyTests = journeys.runJourneyTests.bind(journeys);
|
|
16372
|
+
target.simulateJourney = journeys.simulateJourney.bind(journeys);
|
|
15077
16373
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
15078
16374
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
15079
16375
|
target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
|
|
15080
16376
|
target.putJourneyDraft = journeys.putJourneyDraft.bind(journeys);
|
|
15081
16377
|
target.deleteJourneyDraft = journeys.deleteJourneyDraft.bind(journeys);
|
|
15082
|
-
target.
|
|
15083
|
-
target.
|
|
16378
|
+
target.putJourneyDefinition = journeys.putJourneyDefinition.bind(journeys);
|
|
16379
|
+
target.getJourneyDefinitionValidation = journeys.getJourneyDefinitionValidation.bind(journeys);
|
|
15084
16380
|
target.getJourneyFilterOptions = journeys.getJourneyFilterOptions.bind(journeys);
|
|
15085
16381
|
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
16382
|
+
target.getJourneyHistory = journeys.getJourneyHistory.bind(journeys);
|
|
15086
16383
|
target.getJourneySendEstimate = journeys.getJourneySendEstimate.bind(journeys);
|
|
15087
|
-
target.
|
|
16384
|
+
target.cloneJourneyToCurrent = journeys.cloneJourneyToCurrent.bind(journeys);
|
|
15088
16385
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
15089
16386
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
15090
16387
|
target.archiveJourney = journeys.archiveJourney.bind(journeys);
|
|
@@ -15181,21 +16478,23 @@ function bindQueriesMethods(target, queries) {
|
|
|
15181
16478
|
target.runQuery = queries.runQuery.bind(queries);
|
|
15182
16479
|
}
|
|
15183
16480
|
|
|
15184
|
-
// src/client/bindings/
|
|
15185
|
-
function
|
|
15186
|
-
target.
|
|
15187
|
-
target.
|
|
15188
|
-
target.
|
|
15189
|
-
target.
|
|
15190
|
-
target.
|
|
15191
|
-
target.
|
|
15192
|
-
target.
|
|
15193
|
-
target.
|
|
15194
|
-
target.
|
|
15195
|
-
target.
|
|
15196
|
-
target.
|
|
15197
|
-
target.
|
|
15198
|
-
target.
|
|
16481
|
+
// src/client/bindings/organization-billing.ts
|
|
16482
|
+
function bindOrganizationBillingMethods(target, billing) {
|
|
16483
|
+
target.getOrganizationSubscription = billing.getOrganizationSubscription.bind(billing);
|
|
16484
|
+
target.updateOrganizationCreditSettings = billing.updateOrganizationCreditSettings.bind(billing);
|
|
16485
|
+
target.purchaseOrganizationCredits = billing.purchaseOrganizationCredits.bind(billing);
|
|
16486
|
+
target.getBillingOrganizations = billing.getBillingOrganizations.bind(billing);
|
|
16487
|
+
target.getOrganizationBilling = billing.getOrganizationBilling.bind(billing);
|
|
16488
|
+
target.getOrganizationBillingSubscriptions = billing.getOrganizationBillingSubscriptions.bind(billing);
|
|
16489
|
+
target.getOrganizationInvoices = billing.getOrganizationInvoices.bind(billing);
|
|
16490
|
+
target.createOrganizationPortalSession = billing.createOrganizationPortalSession.bind(billing);
|
|
16491
|
+
target.updateOrganizationBilling = billing.updateOrganizationBilling.bind(billing);
|
|
16492
|
+
target.createOrganizationSetupIntent = billing.createOrganizationSetupIntent.bind(billing);
|
|
16493
|
+
target.getOrganizationPaymentMethods = billing.getOrganizationPaymentMethods.bind(billing);
|
|
16494
|
+
target.attachOrganizationPaymentMethod = billing.attachOrganizationPaymentMethod.bind(billing);
|
|
16495
|
+
target.detachOrganizationPaymentMethod = billing.detachOrganizationPaymentMethod.bind(billing);
|
|
16496
|
+
target.setDefaultOrganizationPaymentMethod = billing.setDefaultOrganizationPaymentMethod.bind(billing);
|
|
16497
|
+
target.getOrganizationCreditGrants = billing.getOrganizationCreditGrants.bind(billing);
|
|
15199
16498
|
}
|
|
15200
16499
|
|
|
15201
16500
|
// src/client/bindings/resellers.ts
|
|
@@ -15230,6 +16529,10 @@ function bindSupportRequestMethods(target, supportRequests) {
|
|
|
15230
16529
|
target.closeWorkspaceSupportRequest = supportRequests.closeWorkspaceSupportRequest.bind(supportRequests);
|
|
15231
16530
|
target.reopenWorkspaceSupportRequest = supportRequests.reopenWorkspaceSupportRequest.bind(supportRequests);
|
|
15232
16531
|
target.clickWorkspaceSupportRequestResource = supportRequests.clickWorkspaceSupportRequestResource.bind(supportRequests);
|
|
16532
|
+
target.listOrgSupportRequestCcCandidates = supportRequests.listOrgSupportRequestCcCandidates.bind(supportRequests);
|
|
16533
|
+
target.addOrgSupportRequestParticipants = supportRequests.addOrgSupportRequestParticipants.bind(supportRequests);
|
|
16534
|
+
target.listWorkspaceSupportRequestCcCandidates = supportRequests.listWorkspaceSupportRequestCcCandidates.bind(supportRequests);
|
|
16535
|
+
target.addWorkspaceSupportRequestParticipants = supportRequests.addWorkspaceSupportRequestParticipants.bind(supportRequests);
|
|
15233
16536
|
}
|
|
15234
16537
|
|
|
15235
16538
|
// src/client/bindings/routing-rules.ts
|
|
@@ -15266,6 +16569,7 @@ var GravityRailClient = class {
|
|
|
15266
16569
|
apis;
|
|
15267
16570
|
// Tasks API
|
|
15268
16571
|
getTasks;
|
|
16572
|
+
getTaskCatalog;
|
|
15269
16573
|
getTask;
|
|
15270
16574
|
createTask;
|
|
15271
16575
|
updateTask;
|
|
@@ -15281,6 +16585,7 @@ var GravityRailClient = class {
|
|
|
15281
16585
|
deleteAbility;
|
|
15282
16586
|
getCharlestonTestDeliveryRecipients;
|
|
15283
16587
|
// Chats API
|
|
16588
|
+
chat;
|
|
15284
16589
|
getChats;
|
|
15285
16590
|
getChat;
|
|
15286
16591
|
getChatByUuid;
|
|
@@ -15324,6 +16629,8 @@ var GravityRailClient = class {
|
|
|
15324
16629
|
createChatCompletion;
|
|
15325
16630
|
exportChats;
|
|
15326
16631
|
exportChat;
|
|
16632
|
+
listChatStaffNotes;
|
|
16633
|
+
createChatStaffNote;
|
|
15327
16634
|
findOrCreateDMChat;
|
|
15328
16635
|
sendChatMessage;
|
|
15329
16636
|
getChatPhoneCalls;
|
|
@@ -15352,9 +16659,6 @@ var GravityRailClient = class {
|
|
|
15352
16659
|
getAnonymousFormSchema;
|
|
15353
16660
|
submitAnonymousForm;
|
|
15354
16661
|
getDataTypes;
|
|
15355
|
-
getDataTypeDraft;
|
|
15356
|
-
saveDataTypeDraft;
|
|
15357
|
-
publishDataTypeDraft;
|
|
15358
16662
|
getDataTypeVersions;
|
|
15359
16663
|
getDataType;
|
|
15360
16664
|
getDataTypeByUuid;
|
|
@@ -15366,6 +16670,7 @@ var GravityRailClient = class {
|
|
|
15366
16670
|
unarchiveDataType;
|
|
15367
16671
|
cloneDataType;
|
|
15368
16672
|
getDataRecords;
|
|
16673
|
+
getWorkspaceValuesRecord;
|
|
15369
16674
|
listAnonymousFormSubmissions;
|
|
15370
16675
|
getAnonymousFormSubmission;
|
|
15371
16676
|
getDataRecord;
|
|
@@ -15398,6 +16703,7 @@ var GravityRailClient = class {
|
|
|
15398
16703
|
updateCurrentMember;
|
|
15399
16704
|
getWorkspaceMembers;
|
|
15400
16705
|
getWorkspaceMember;
|
|
16706
|
+
getMemberSmsSenders;
|
|
15401
16707
|
getMemberByUuid;
|
|
15402
16708
|
// Org-scoped, so deliberately absent from WORKSPACE_METHOD_NAMES: that proxy
|
|
15403
16709
|
// passes a workspace uuid as the first argument.
|
|
@@ -15414,6 +16720,9 @@ var GravityRailClient = class {
|
|
|
15414
16720
|
bulkCreateMembers;
|
|
15415
16721
|
previewImportMembers;
|
|
15416
16722
|
importMembers;
|
|
16723
|
+
startMemberImportRun;
|
|
16724
|
+
listMemberImportRuns;
|
|
16725
|
+
listMemberImportRunItems;
|
|
15417
16726
|
exportMembers;
|
|
15418
16727
|
getMembersMessageActivity;
|
|
15419
16728
|
getMemberFilters;
|
|
@@ -15473,6 +16782,8 @@ var GravityRailClient = class {
|
|
|
15473
16782
|
deleteAgent;
|
|
15474
16783
|
archiveAgent;
|
|
15475
16784
|
unarchiveAgent;
|
|
16785
|
+
getOrgAgentJobs;
|
|
16786
|
+
stopOrgAgentJob;
|
|
15476
16787
|
// Qualifications API
|
|
15477
16788
|
getQualifications;
|
|
15478
16789
|
getQualification;
|
|
@@ -15540,6 +16851,11 @@ var GravityRailClient = class {
|
|
|
15540
16851
|
queryActivityOneView;
|
|
15541
16852
|
queryActivityDigest;
|
|
15542
16853
|
getActivityCounts;
|
|
16854
|
+
// The one global notification feed, its bell number, and its mark action.
|
|
16855
|
+
// All three are account-authorized self endpoints.
|
|
16856
|
+
queryActivityNotifications;
|
|
16857
|
+
getActivityNotificationCount;
|
|
16858
|
+
markActivityNotifications;
|
|
15543
16859
|
getActivityCapabilities;
|
|
15544
16860
|
queryOrgActivity;
|
|
15545
16861
|
queryOrgActivityLatestSubjects;
|
|
@@ -15558,6 +16874,8 @@ var GravityRailClient = class {
|
|
|
15558
16874
|
resolveEntityRefs;
|
|
15559
16875
|
resolveOrgEntityRefs;
|
|
15560
16876
|
resolveAccountEntityRefs;
|
|
16877
|
+
// App Links API
|
|
16878
|
+
resolveAppLink;
|
|
15561
16879
|
// MOTD API
|
|
15562
16880
|
getMotd;
|
|
15563
16881
|
// Tracked Links analytics (#10934)
|
|
@@ -15575,12 +16893,13 @@ var GravityRailClient = class {
|
|
|
15575
16893
|
getJourneyAuthoring;
|
|
15576
16894
|
putJourneyDraft;
|
|
15577
16895
|
deleteJourneyDraft;
|
|
15578
|
-
|
|
15579
|
-
|
|
16896
|
+
putJourneyDefinition;
|
|
16897
|
+
getJourneyDefinitionValidation;
|
|
15580
16898
|
getJourneyFilterOptions;
|
|
15581
16899
|
getJourneyHealth;
|
|
16900
|
+
getJourneyHistory;
|
|
15582
16901
|
getJourneySendEstimate;
|
|
15583
|
-
|
|
16902
|
+
cloneJourneyToCurrent;
|
|
15584
16903
|
createJourney;
|
|
15585
16904
|
updateJourney;
|
|
15586
16905
|
archiveJourney;
|
|
@@ -15605,6 +16924,12 @@ var GravityRailClient = class {
|
|
|
15605
16924
|
getStepMemberCounts;
|
|
15606
16925
|
advanceStep;
|
|
15607
16926
|
skipStep;
|
|
16927
|
+
listJourneyTests;
|
|
16928
|
+
createJourneyTest;
|
|
16929
|
+
updateJourneyTest;
|
|
16930
|
+
deleteJourneyTest;
|
|
16931
|
+
runJourneyTests;
|
|
16932
|
+
simulateJourney;
|
|
15608
16933
|
testRunJourney;
|
|
15609
16934
|
getJourneyNotes;
|
|
15610
16935
|
createJourneyNote;
|
|
@@ -15617,11 +16942,13 @@ var GravityRailClient = class {
|
|
|
15617
16942
|
getPublicBundle;
|
|
15618
16943
|
listBundles;
|
|
15619
16944
|
listBundleWorkflowCandidates;
|
|
16945
|
+
getWorkflowBundleMembership;
|
|
15620
16946
|
listBundleJourneyCandidates;
|
|
15621
16947
|
getBundleJourneyCandidate;
|
|
15622
16948
|
createBundle;
|
|
15623
16949
|
getBundleDraft;
|
|
15624
16950
|
replaceBundleDraft;
|
|
16951
|
+
getBundlePublishPreview;
|
|
15625
16952
|
publishBundle;
|
|
15626
16953
|
listBundleVersions;
|
|
15627
16954
|
getBundle;
|
|
@@ -15639,6 +16966,7 @@ var GravityRailClient = class {
|
|
|
15639
16966
|
listInstallations;
|
|
15640
16967
|
getInstallation;
|
|
15641
16968
|
getInstallationReadiness;
|
|
16969
|
+
getInstallationAbilitySettings;
|
|
15642
16970
|
previewInstallationUpgrade;
|
|
15643
16971
|
upgradeInstallation;
|
|
15644
16972
|
setInstallationPolicy;
|
|
@@ -15754,13 +17082,6 @@ var GravityRailClient = class {
|
|
|
15754
17082
|
upsertWidgetDomain;
|
|
15755
17083
|
deleteWidgetDomain;
|
|
15756
17084
|
// Org API
|
|
15757
|
-
getOrgManagerCredentialResponse;
|
|
15758
|
-
authorizeOrgManagerDelegation;
|
|
15759
|
-
getOrgManagerChats;
|
|
15760
|
-
createOrgManagerChat;
|
|
15761
|
-
getOrgManagerMessages;
|
|
15762
|
-
startOrgManagerTurn;
|
|
15763
|
-
stopOrgManagerTurn;
|
|
15764
17085
|
listOrgDomains;
|
|
15765
17086
|
registerOrgDomain;
|
|
15766
17087
|
getOrgDomain;
|
|
@@ -15792,7 +17113,7 @@ var GravityRailClient = class {
|
|
|
15792
17113
|
getOrganizationWorkspaces;
|
|
15793
17114
|
getOrganizationWorkspace;
|
|
15794
17115
|
updateOrganizationWorkspace;
|
|
15795
|
-
|
|
17116
|
+
getOrgBillingAccess;
|
|
15796
17117
|
getA2PCampaignConfig;
|
|
15797
17118
|
updateA2PCampaignConfig;
|
|
15798
17119
|
getOrgWorkspaceUsage;
|
|
@@ -15815,6 +17136,11 @@ var GravityRailClient = class {
|
|
|
15815
17136
|
getWorkspaceLabels;
|
|
15816
17137
|
setWorkspaceLabels;
|
|
15817
17138
|
previewWorkspaceScope;
|
|
17139
|
+
getNotificationPreferences;
|
|
17140
|
+
setWorkspaceNotificationMute;
|
|
17141
|
+
registerAccountPushSubscription;
|
|
17142
|
+
unregisterAccountPushSubscription;
|
|
17143
|
+
listAccountPushSubscriptions;
|
|
15818
17144
|
getVapidPublicKey;
|
|
15819
17145
|
testPushSubscription;
|
|
15820
17146
|
registerPushSubscription;
|
|
@@ -15839,6 +17165,7 @@ var GravityRailClient = class {
|
|
|
15839
17165
|
viewAccountNotice;
|
|
15840
17166
|
dismissAccountNotice;
|
|
15841
17167
|
updateUserAccount;
|
|
17168
|
+
updateMemberAvatar;
|
|
15842
17169
|
recordAcquisition;
|
|
15843
17170
|
login;
|
|
15844
17171
|
resendCode;
|
|
@@ -15995,15 +17322,14 @@ var GravityRailClient = class {
|
|
|
15995
17322
|
getPublicFolderFiles;
|
|
15996
17323
|
// Events API
|
|
15997
17324
|
getEventRules;
|
|
17325
|
+
getEventRuleIndex;
|
|
15998
17326
|
getAvailableActions;
|
|
15999
17327
|
searchEventRules;
|
|
16000
17328
|
getEventRule;
|
|
16001
17329
|
createEventRule;
|
|
16002
17330
|
updateEventRule;
|
|
16003
17331
|
deleteEventRule;
|
|
16004
|
-
testWebhook;
|
|
16005
17332
|
reorderEventRules;
|
|
16006
|
-
getWebhookLogs;
|
|
16007
17333
|
getRuleExecutions;
|
|
16008
17334
|
getRoutines;
|
|
16009
17335
|
getRoutine;
|
|
@@ -16041,6 +17367,7 @@ var GravityRailClient = class {
|
|
|
16041
17367
|
getWorkflowConfigValidation;
|
|
16042
17368
|
getWorkflowPromptClassifications;
|
|
16043
17369
|
reviewWorkflowPromptClassifications;
|
|
17370
|
+
getWorkflowRunnerFileAccess;
|
|
16044
17371
|
getWorkflowNotes;
|
|
16045
17372
|
createWorkflowNote;
|
|
16046
17373
|
updateWorkflowNote;
|
|
@@ -16102,6 +17429,7 @@ var GravityRailClient = class {
|
|
|
16102
17429
|
syncCalendarWithGoogle;
|
|
16103
17430
|
// Communications API
|
|
16104
17431
|
getPhoneNumbers;
|
|
17432
|
+
getChatPhoneNumbers;
|
|
16105
17433
|
getAvailablePhoneNumbers;
|
|
16106
17434
|
requestPhoneNumber;
|
|
16107
17435
|
getPhoneNumber;
|
|
@@ -16149,6 +17477,7 @@ var GravityRailClient = class {
|
|
|
16149
17477
|
createNotificationRule;
|
|
16150
17478
|
updateNotificationRule;
|
|
16151
17479
|
deleteNotificationRule;
|
|
17480
|
+
getNotificationDestinations;
|
|
16152
17481
|
// Toolkits API
|
|
16153
17482
|
getToolkits;
|
|
16154
17483
|
getTool;
|
|
@@ -16247,6 +17576,7 @@ var GravityRailClient = class {
|
|
|
16247
17576
|
denyAuthorization;
|
|
16248
17577
|
getOAuthConsentClient;
|
|
16249
17578
|
getMcpConsentTargets;
|
|
17579
|
+
getConsentTargets;
|
|
16250
17580
|
listMcpGrants;
|
|
16251
17581
|
narrowMcpGrant;
|
|
16252
17582
|
revokeMcpGrant;
|
|
@@ -16277,6 +17607,7 @@ var GravityRailClient = class {
|
|
|
16277
17607
|
getMondaySyncConfig;
|
|
16278
17608
|
getMondaySyncLogs;
|
|
16279
17609
|
updateMondaySyncConfig;
|
|
17610
|
+
validateMondaySyncConfig;
|
|
16280
17611
|
getLinkedMondayMembers;
|
|
16281
17612
|
getMondayReconciliationMatches;
|
|
16282
17613
|
linkMemberToMonday;
|
|
@@ -16323,6 +17654,7 @@ var GravityRailClient = class {
|
|
|
16323
17654
|
getTeamsConversations;
|
|
16324
17655
|
getTeamsInstallations;
|
|
16325
17656
|
getTeamsAppAccounts;
|
|
17657
|
+
getTeamsNotificationDestinations;
|
|
16326
17658
|
// FHIR Connections API
|
|
16327
17659
|
getFhirConnections;
|
|
16328
17660
|
getFhirConnection;
|
|
@@ -16384,6 +17716,7 @@ var GravityRailClient = class {
|
|
|
16384
17716
|
syncCalendarWithHealthie;
|
|
16385
17717
|
getLinkedHealthieMembers;
|
|
16386
17718
|
getHealthieReconciliationMatches;
|
|
17719
|
+
getHealthieAppointmentPatientMatches;
|
|
16387
17720
|
linkMemberToHealthie;
|
|
16388
17721
|
unlinkMemberFromHealthie;
|
|
16389
17722
|
listHealthieAppointmentTypes;
|
|
@@ -16418,12 +17751,16 @@ var GravityRailClient = class {
|
|
|
16418
17751
|
getSalesforceSyncConfig;
|
|
16419
17752
|
getSalesforceSyncLogs;
|
|
16420
17753
|
updateSalesforceSyncConfig;
|
|
17754
|
+
validateSalesforceSyncConfig;
|
|
16421
17755
|
resyncSalesforceLinkedMembers;
|
|
16422
17756
|
listSalesforceObjects;
|
|
16423
17757
|
describeSalesforceObject;
|
|
16424
17758
|
searchSalesforceRecords;
|
|
16425
17759
|
importSalesforceMembers;
|
|
16426
17760
|
// HubSpot API
|
|
17761
|
+
bindHubspotCalendar;
|
|
17762
|
+
unlinkHubspotCalendar;
|
|
17763
|
+
importHubspotCalendarEvents;
|
|
16427
17764
|
getHubspotBookingReceipt;
|
|
16428
17765
|
releaseHubspotBookingAttempt;
|
|
16429
17766
|
installHubspot;
|
|
@@ -16431,6 +17768,7 @@ var GravityRailClient = class {
|
|
|
16431
17768
|
startHubspotOAuth;
|
|
16432
17769
|
getHubspotStatus;
|
|
16433
17770
|
disconnectHubspot;
|
|
17771
|
+
switchHubspotToPlatformApp;
|
|
16434
17772
|
disableHubspot;
|
|
16435
17773
|
enableHubspot;
|
|
16436
17774
|
deleteHubspot;
|
|
@@ -16445,6 +17783,7 @@ var GravityRailClient = class {
|
|
|
16445
17783
|
getHubspotDealProperties;
|
|
16446
17784
|
getHubspotForms;
|
|
16447
17785
|
getHubspotMeetingLinks;
|
|
17786
|
+
getHubspotCrmObjects;
|
|
16448
17787
|
getHubspotObjectProperties;
|
|
16449
17788
|
getHubspotManagedRules;
|
|
16450
17789
|
getHubspotSyncLogs;
|
|
@@ -16453,14 +17792,18 @@ var GravityRailClient = class {
|
|
|
16453
17792
|
getConnectionSyncCapabilities;
|
|
16454
17793
|
getConnectionSyncConfig;
|
|
16455
17794
|
updateConnectionSyncConfig;
|
|
17795
|
+
validateConnectionSyncConfig;
|
|
16456
17796
|
getConnectionSyncCheckpoint;
|
|
16457
17797
|
startSyncRun;
|
|
16458
17798
|
getSyncRuns;
|
|
16459
17799
|
getSyncRunItems;
|
|
16460
17800
|
getSyncRunItemsPage;
|
|
16461
17801
|
getMemberSyncSummary;
|
|
17802
|
+
getSyncFailureSummary;
|
|
17803
|
+
getSyncFailures;
|
|
16462
17804
|
getConnectionFieldHomes;
|
|
16463
17805
|
getInboundRecordStatus;
|
|
17806
|
+
getOwnerMemberStatus;
|
|
16464
17807
|
getConnectionWritePreview;
|
|
16465
17808
|
clearConnectionMemberExclusion;
|
|
16466
17809
|
linkUnlinkedMembersByIdentity;
|
|
@@ -16500,20 +17843,22 @@ var GravityRailClient = class {
|
|
|
16500
17843
|
suggestPronunciations;
|
|
16501
17844
|
getRecommendedVoices;
|
|
16502
17845
|
previewPronunciation;
|
|
16503
|
-
//
|
|
16504
|
-
|
|
16505
|
-
|
|
16506
|
-
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
|
|
16516
|
-
|
|
17846
|
+
// Organization billing API
|
|
17847
|
+
getOrganizationSubscription;
|
|
17848
|
+
updateOrganizationCreditSettings;
|
|
17849
|
+
purchaseOrganizationCredits;
|
|
17850
|
+
getBillingOrganizations;
|
|
17851
|
+
getOrganizationBilling;
|
|
17852
|
+
getOrganizationBillingSubscriptions;
|
|
17853
|
+
getOrganizationInvoices;
|
|
17854
|
+
createOrganizationPortalSession;
|
|
17855
|
+
updateOrganizationBilling;
|
|
17856
|
+
createOrganizationSetupIntent;
|
|
17857
|
+
getOrganizationPaymentMethods;
|
|
17858
|
+
attachOrganizationPaymentMethod;
|
|
17859
|
+
detachOrganizationPaymentMethod;
|
|
17860
|
+
setDefaultOrganizationPaymentMethod;
|
|
17861
|
+
getOrganizationCreditGrants;
|
|
16517
17862
|
// Resellers API (self-service reseller portal)
|
|
16518
17863
|
getMyResellers;
|
|
16519
17864
|
getMyReseller;
|
|
@@ -16537,6 +17882,10 @@ var GravityRailClient = class {
|
|
|
16537
17882
|
closeWorkspaceSupportRequest;
|
|
16538
17883
|
reopenWorkspaceSupportRequest;
|
|
16539
17884
|
clickWorkspaceSupportRequestResource;
|
|
17885
|
+
listOrgSupportRequestCcCandidates;
|
|
17886
|
+
addOrgSupportRequestParticipants;
|
|
17887
|
+
listWorkspaceSupportRequestCcCandidates;
|
|
17888
|
+
addWorkspaceSupportRequestParticipants;
|
|
16540
17889
|
// Routing Rules API
|
|
16541
17890
|
getRoutingRules;
|
|
16542
17891
|
getRoutingRule;
|
|
@@ -16598,6 +17947,7 @@ var GravityRailClient = class {
|
|
|
16598
17947
|
bindDashboardsMethods(this, apis.dashboards);
|
|
16599
17948
|
bindActivityMethods(this, apis.activity);
|
|
16600
17949
|
bindMotdMethods(this, apis.motd);
|
|
17950
|
+
bindAppLinksMethods(this, apis.appLinks);
|
|
16601
17951
|
bindTrackedLinksMethods(this, apis.trackedLinks);
|
|
16602
17952
|
bindJourneysMethods(this, apis.journeys);
|
|
16603
17953
|
bindBundlesMethods(this, apis.bundles, apis.resourceWorkflows);
|
|
@@ -16654,7 +18004,7 @@ var GravityRailClient = class {
|
|
|
16654
18004
|
apis.confluence
|
|
16655
18005
|
);
|
|
16656
18006
|
bindPronunciationsMethods(this, apis.pronunciations);
|
|
16657
|
-
|
|
18007
|
+
bindOrganizationBillingMethods(this, apis.customers);
|
|
16658
18008
|
bindResellersMethods(this, apis.resellers);
|
|
16659
18009
|
bindSupportRequestMethods(this, apis.supportRequests);
|
|
16660
18010
|
bindRoutingRulesMethods(this, apis.routingRules);
|
|
@@ -16701,8 +18051,9 @@ var GravityRailClient = class {
|
|
|
16701
18051
|
}
|
|
16702
18052
|
/**
|
|
16703
18053
|
* Set the org session credential for cross-domain / non-browser clients (e.g. CLI).
|
|
16704
|
-
*
|
|
16705
|
-
*
|
|
18054
|
+
* Only opaque `gr_sess_` credentials are supported and sent as `X-Org-Session`.
|
|
18055
|
+
* Legacy org tokens raise an error. Sign in again to obtain a session;
|
|
18056
|
+
* pass `undefined` to clear it.
|
|
16706
18057
|
*
|
|
16707
18058
|
* `orgUuid` is the org that issued the session. Pass it so the SDK can
|
|
16708
18059
|
* detect a stale session (e.g. switching orgs mid-session) and re-fire the
|
|
@@ -16717,13 +18068,6 @@ var GravityRailClient = class {
|
|
|
16717
18068
|
}
|
|
16718
18069
|
});
|
|
16719
18070
|
}
|
|
16720
|
-
/**
|
|
16721
|
-
* @deprecated Legacy compatibility for stateless orgToken JWE credentials.
|
|
16722
|
-
* Prefer setOrgSession() for opaque org browser sessions.
|
|
16723
|
-
*/
|
|
16724
|
-
setOrgToken(token, orgUuid) {
|
|
16725
|
-
this.setOrgSession(token, orgUuid);
|
|
16726
|
-
}
|
|
16727
18071
|
/**
|
|
16728
18072
|
* Update the API key across all modules.
|
|
16729
18073
|
* Used after successful re-authentication.
|
|
@@ -16833,19 +18177,6 @@ var ChannelMessageSource = {
|
|
|
16833
18177
|
other_chat: "other_chat"
|
|
16834
18178
|
};
|
|
16835
18179
|
|
|
16836
|
-
// src/types/generated/chat.ts
|
|
16837
|
-
var ChannelMessagesUnavailableReason = {
|
|
16838
|
-
not_single_channel: "not_single_channel",
|
|
16839
|
-
no_phone_number: "no_phone_number",
|
|
16840
|
-
no_counterpart_phone: "no_counterpart_phone"
|
|
16841
|
-
};
|
|
16842
|
-
var ChatMuteReason = {
|
|
16843
|
-
working: "working",
|
|
16844
|
-
waiting_on_person: "waiting_on_person",
|
|
16845
|
-
resolved_elsewhere: "resolved_elsewhere",
|
|
16846
|
-
not_mine: "not_mine"
|
|
16847
|
-
};
|
|
16848
|
-
|
|
16849
18180
|
// src/types/generated/assignment_task_transition.ts
|
|
16850
18181
|
var TaskTransitionInitiator = {
|
|
16851
18182
|
member: "member",
|
|
@@ -17040,26 +18371,6 @@ var MenuItemResponseItemType = {
|
|
|
17040
18371
|
none: "none"
|
|
17041
18372
|
};
|
|
17042
18373
|
|
|
17043
|
-
// src/types/generated/task.ts
|
|
17044
|
-
var AbilityConfigIssueCode = {
|
|
17045
|
-
missing_resource: "missing_resource",
|
|
17046
|
-
invalid_state: "invalid_state",
|
|
17047
|
-
feature_disabled: "feature_disabled",
|
|
17048
|
-
missing_connection: "missing_connection",
|
|
17049
|
-
external_drift: "external_drift",
|
|
17050
|
-
no_qualification_scenarios: "no_qualification_scenarios"
|
|
17051
|
-
};
|
|
17052
|
-
var AbilityConfigIssueSeverity = {
|
|
17053
|
-
warning: "warning",
|
|
17054
|
-
error: "error"
|
|
17055
|
-
};
|
|
17056
|
-
|
|
17057
|
-
// src/types/generated/workflow.ts
|
|
17058
|
-
var WorkflowRoutingMode = {
|
|
17059
|
-
open_world: "open_world",
|
|
17060
|
-
strict: "strict"
|
|
17061
|
-
};
|
|
17062
|
-
|
|
17063
18374
|
// src/types/widget-domain-types.ts
|
|
17064
18375
|
var WIDGET_SLUGS = ["chat", "operator", "operator-tools", "chat-app"];
|
|
17065
18376
|
|
|
@@ -17107,6 +18418,14 @@ var ImportReadinessIssueResourceType = {
|
|
|
17107
18418
|
app_connection: "app_connection",
|
|
17108
18419
|
site: "site"
|
|
17109
18420
|
};
|
|
18421
|
+
var ImportReadinessResponseCapCutResourceTypesItem = {
|
|
18422
|
+
phone: "phone",
|
|
18423
|
+
inbox: "inbox",
|
|
18424
|
+
workflow: "workflow",
|
|
18425
|
+
routine: "routine",
|
|
18426
|
+
app_connection: "app_connection",
|
|
18427
|
+
site: "site"
|
|
18428
|
+
};
|
|
17110
18429
|
var ImportSkippedRuleResourceGroupResourceType = {
|
|
17111
18430
|
phone: "phone",
|
|
17112
18431
|
inbox: "inbox",
|
|
@@ -17892,18 +19211,18 @@ var SCOPES = {
|
|
|
17892
19211
|
"webhooks:read": {
|
|
17893
19212
|
name: "webhooks:read",
|
|
17894
19213
|
category: "webhooks" /* WEBHOOKS */,
|
|
17895
|
-
description: "View webhook
|
|
19214
|
+
description: "View the organization webhook endpoints that cover this workspace"
|
|
17896
19215
|
},
|
|
17897
19216
|
"webhooks:write": {
|
|
17898
19217
|
name: "webhooks:write",
|
|
17899
19218
|
category: "webhooks" /* WEBHOOKS */,
|
|
17900
|
-
description: "
|
|
19219
|
+
description: "Legacy webhook scope; grants no write operation (includes webhooks:read)",
|
|
17901
19220
|
implies: ["webhooks:read"]
|
|
17902
19221
|
},
|
|
17903
19222
|
"webhooks:admin": {
|
|
17904
19223
|
name: "webhooks:admin",
|
|
17905
19224
|
category: "webhooks" /* WEBHOOKS */,
|
|
17906
|
-
description: "
|
|
19225
|
+
description: "Legacy webhook scope; grants no write operation (includes webhooks:read)",
|
|
17907
19226
|
implies: ["webhooks:write"]
|
|
17908
19227
|
},
|
|
17909
19228
|
"webhooks:raw": {
|
|
@@ -18241,6 +19560,7 @@ export {
|
|
|
18241
19560
|
AgentsApi,
|
|
18242
19561
|
AIModelsApi,
|
|
18243
19562
|
ApiKeysApi,
|
|
19563
|
+
AppLinksApi,
|
|
18244
19564
|
AppsApi,
|
|
18245
19565
|
AssignmentsApi,
|
|
18246
19566
|
VoiceApi,
|
|
@@ -18249,6 +19569,7 @@ export {
|
|
|
18249
19569
|
CalendarsApi,
|
|
18250
19570
|
CallsApi,
|
|
18251
19571
|
CELApi,
|
|
19572
|
+
ChatApi,
|
|
18252
19573
|
ChatsApi,
|
|
18253
19574
|
ConfluenceApi,
|
|
18254
19575
|
CustomToolkitsApi,
|
|
@@ -18268,9 +19589,13 @@ export {
|
|
|
18268
19589
|
McpServersApi,
|
|
18269
19590
|
MemberImportValidationError,
|
|
18270
19591
|
MembersApi,
|
|
19592
|
+
NotificationMarkerAction,
|
|
19593
|
+
OpenItemKind,
|
|
18271
19594
|
MondayIntegrationApi,
|
|
18272
19595
|
NotificationRulesApi,
|
|
18273
19596
|
OperatorApi,
|
|
19597
|
+
OrgApiKeyLimitUnconfirmedError,
|
|
19598
|
+
OrgWebhookScopeUnconfirmedError,
|
|
18274
19599
|
OrgApi,
|
|
18275
19600
|
OAuthConnectionsApi,
|
|
18276
19601
|
OAuthApi,
|
|
@@ -18285,14 +19610,14 @@ export {
|
|
|
18285
19610
|
RoutingAudience,
|
|
18286
19611
|
RoutingChannel,
|
|
18287
19612
|
RoutingTimeWindow,
|
|
18288
|
-
SalesforceApi,
|
|
18289
19613
|
ConnectionSyncApi,
|
|
19614
|
+
SalesforceApi,
|
|
18290
19615
|
HubspotApi,
|
|
18291
19616
|
SitesApi,
|
|
18292
19617
|
SnippetsApi,
|
|
18293
19618
|
SubscriptionsApi,
|
|
18294
19619
|
SupportRequestsApi,
|
|
18295
|
-
|
|
19620
|
+
OrganizationBillingApi,
|
|
18296
19621
|
ResellersApi,
|
|
18297
19622
|
SupervisorsApi,
|
|
18298
19623
|
TasksApi,
|
|
@@ -18357,8 +19682,6 @@ export {
|
|
|
18357
19682
|
REALTIME_MODEL_OPENAI,
|
|
18358
19683
|
REALTIME_MODEL_OPENAI_MINI,
|
|
18359
19684
|
REALTIME_MODEL_OPENAI_2,
|
|
18360
|
-
REALTIME_MODEL_GEMINI,
|
|
18361
|
-
REALTIME_MODEL_GEMINI_VERTEX,
|
|
18362
19685
|
REALTIME_MODEL_CUSTOM,
|
|
18363
19686
|
STT_MODEL_DEEPGRAM_FLUX,
|
|
18364
19687
|
STT_MODEL_DEEPGRAM_FLUX_SELFHOST,
|
|
@@ -18373,11 +19696,19 @@ export {
|
|
|
18373
19696
|
TTS_MODEL_DEEPGRAM_AURA_2,
|
|
18374
19697
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
18375
19698
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
19699
|
+
DefaultCardConvergenceAction,
|
|
19700
|
+
DefaultCardConvergenceClassification,
|
|
19701
|
+
DefaultCardConvergenceOutcome,
|
|
19702
|
+
DefaultCardConvergenceStep,
|
|
19703
|
+
OverdueInvoicePayment,
|
|
19704
|
+
OrganizationClassification,
|
|
18376
19705
|
PIDS_DISPOSITIONS,
|
|
18377
19706
|
PIDS_SOURCES,
|
|
18378
19707
|
FhirVendor,
|
|
18379
19708
|
FhirConnectionState,
|
|
18380
19709
|
FhirClientType,
|
|
19710
|
+
SyncErrorCode,
|
|
19711
|
+
LinkFailureCode,
|
|
18381
19712
|
CrmActivityKind,
|
|
18382
19713
|
RunHealthCategory,
|
|
18383
19714
|
SeedSpeaker,
|
|
@@ -18412,6 +19743,13 @@ export {
|
|
|
18412
19743
|
UiPromptPresentedKind,
|
|
18413
19744
|
UiPromptResponseKind,
|
|
18414
19745
|
UiPromptResponseStatus,
|
|
19746
|
+
PROPOSED_MESSAGE_TOOL_NAMES,
|
|
19747
|
+
PROPOSED_MESSAGE_SETTLED_TOOL_NAME,
|
|
19748
|
+
PROPOSED_MESSAGE_SETTLEMENT_STATUSES,
|
|
19749
|
+
isProposedMessageSettlementStatus,
|
|
19750
|
+
PROPOSED_MESSAGE_BODY_MAX_LENGTH,
|
|
19751
|
+
PROPOSED_MESSAGE_SUBJECT_MAX_LENGTH,
|
|
19752
|
+
parseProposedMessage,
|
|
18415
19753
|
parseExperimentStatCount,
|
|
18416
19754
|
TERMINAL_TASK_STATES,
|
|
18417
19755
|
WorkspaceInvitationsApi,
|
|
@@ -18421,6 +19759,7 @@ export {
|
|
|
18421
19759
|
createApiModules,
|
|
18422
19760
|
createWorkspaceClient,
|
|
18423
19761
|
bindAccessGrantsMethods,
|
|
19762
|
+
bindAppLinksMethods,
|
|
18424
19763
|
bindInterventionRequestsMethods,
|
|
18425
19764
|
bindAgentTasksMethods,
|
|
18426
19765
|
bindAgentsMethods,
|
|
@@ -18459,7 +19798,7 @@ export {
|
|
|
18459
19798
|
bindMetricsMethods,
|
|
18460
19799
|
bindDataReportsMethods,
|
|
18461
19800
|
bindQueriesMethods,
|
|
18462
|
-
|
|
19801
|
+
bindOrganizationBillingMethods,
|
|
18463
19802
|
bindResellersMethods,
|
|
18464
19803
|
bindPromptsMethods,
|
|
18465
19804
|
bindSupportRequestMethods,
|
|
@@ -18474,8 +19813,6 @@ export {
|
|
|
18474
19813
|
QUERY_VALUELESS_OPS,
|
|
18475
19814
|
ChannelMessageDirection,
|
|
18476
19815
|
ChannelMessageSource,
|
|
18477
|
-
ChannelMessagesUnavailableReason,
|
|
18478
|
-
ChatMuteReason,
|
|
18479
19816
|
TaskTransitionInitiator,
|
|
18480
19817
|
EhrWritebackOutcomeResponseStatus,
|
|
18481
19818
|
SMS_DELIVERY_FAILURE_STATUSES,
|
|
@@ -18496,14 +19833,12 @@ export {
|
|
|
18496
19833
|
VoiceIntegrityUseCase,
|
|
18497
19834
|
AiConnectorPolicy,
|
|
18498
19835
|
MenuItemResponseItemType,
|
|
18499
|
-
AbilityConfigIssueCode,
|
|
18500
|
-
AbilityConfigIssueSeverity,
|
|
18501
|
-
WorkflowRoutingMode,
|
|
18502
19836
|
WIDGET_SLUGS,
|
|
18503
19837
|
PromoCodeStatus,
|
|
18504
19838
|
RecordContactPermissionRequestChannelNote,
|
|
18505
19839
|
ImportReadinessIssueCode,
|
|
18506
19840
|
ImportReadinessIssueResourceType,
|
|
19841
|
+
ImportReadinessResponseCapCutResourceTypesItem,
|
|
18507
19842
|
ImportSkippedRuleResourceGroupResourceType,
|
|
18508
19843
|
ImportSkippedRuleResponseNeededResourceTypesItem,
|
|
18509
19844
|
ImportSkippedRuleResponseParentKind,
|
|
@@ -18555,4 +19890,4 @@ export {
|
|
|
18555
19890
|
pathDraftFromStorage,
|
|
18556
19891
|
pathDraftToStorage
|
|
18557
19892
|
};
|
|
18558
|
-
//# sourceMappingURL=chunk-
|
|
19893
|
+
//# sourceMappingURL=chunk-L4XC6KDG.js.map
|