@gravity-rail/sdk 2.0.0 → 3.0.1
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 +9 -9
- package/dist/{chat-interaction-CGDgA4K_.d.cts → chat-interaction-BPqj_KMO.d.cts} +1911 -850
- package/dist/{chat-interaction-DjV6mYaY.d.ts → chat-interaction-CDlei6KK.d.ts} +1911 -850
- package/dist/{chunk-SVRE6KIM.js → chunk-LWRMGN4Z.js} +449 -104
- package/dist/chunk-LWRMGN4Z.js.map +1 -0
- package/dist/{chunk-GCN4OMYU.js → chunk-RLFS7O2L.js} +4 -1
- package/dist/{chunk-GCN4OMYU.js.map → chunk-RLFS7O2L.js.map} +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +6 -4
- package/dist/helpers.d.ts +6 -4
- package/dist/helpers.js +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +488 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -10
- package/dist/index.d.ts +26 -10
- package/dist/index.js +39 -25
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +450 -102
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +99 -6
- package/dist/internal.d.ts +99 -6
- package/dist/internal.js +2 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-DVHDjWwi.d.ts → member-import-BbWJzHSV.d.ts} +1 -1
- package/dist/{member-import-C1IsFkQm.d.cts → member-import-DxBggQLc.d.cts} +1 -1
- package/dist/{path-Bd99SxC1.d.cts → path-5DteJvEx.d.ts} +16 -3
- package/dist/{path-CZxFBfjw.d.ts → path-bqfiH1XI.d.cts} +16 -3
- package/dist/schemas.cjs +57 -6
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +111 -43
- package/dist/schemas.d.ts +111 -43
- package/dist/schemas.js +53 -6
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-C8TrcAV8.d.cts → tasks-fAwwBZIX.d.cts} +50 -11
- package/dist/{tasks-C8TrcAV8.d.ts → tasks-fAwwBZIX.d.ts} +50 -11
- package/package.json +4 -3
- package/dist/chunk-SVRE6KIM.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -438,6 +438,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
438
438
|
Scope2["CHATS_READ"] = "chats:read";
|
|
439
439
|
Scope2["CHATS_WRITE"] = "chats:write";
|
|
440
440
|
Scope2["CHATS_ADMIN"] = "chats:admin";
|
|
441
|
+
Scope2["DEMOS_RUN"] = "demos:run";
|
|
441
442
|
Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
|
|
442
443
|
Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
|
|
443
444
|
Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
|
|
@@ -688,6 +689,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
688
689
|
EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
|
|
689
690
|
EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
|
|
690
691
|
EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
|
|
692
|
+
EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
|
|
691
693
|
EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
|
|
692
694
|
EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
|
|
693
695
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
@@ -779,9 +781,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
779
781
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
780
782
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
781
783
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
782
|
-
WorkspaceFeature2["JOURNEY_V2_EDITOR"] = "journey_v2_editor";
|
|
783
|
-
WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
|
|
784
|
-
WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
|
|
785
784
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
786
785
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
787
786
|
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
@@ -801,6 +800,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
801
800
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
802
801
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
803
802
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
803
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
804
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
805
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
806
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
807
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
804
808
|
return WorkspaceFeature2;
|
|
805
809
|
})(WorkspaceFeature || {});
|
|
806
810
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -1525,6 +1529,7 @@ var AbilityTypeSlugs = {
|
|
|
1525
1529
|
// Tools
|
|
1526
1530
|
TOOLKITS: "tools:toolkits",
|
|
1527
1531
|
WEB_SEARCH: "tools:web_search",
|
|
1532
|
+
WEB_BROWSER: "tools:web_browser",
|
|
1528
1533
|
CONVERSATION_HISTORY: "tools:conversation_history",
|
|
1529
1534
|
MEMBER_MEMORY: "memory:member_memory",
|
|
1530
1535
|
IMAGE_GENERATION: "tools:image_generation",
|
|
@@ -2487,6 +2492,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
|
2487
2492
|
ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
|
|
2488
2493
|
ScopeCategory2["MEMBER_ROLES"] = "member_roles";
|
|
2489
2494
|
ScopeCategory2["CHATS"] = "chats";
|
|
2495
|
+
ScopeCategory2["DEMOS"] = "demos";
|
|
2490
2496
|
ScopeCategory2["DM"] = "dm";
|
|
2491
2497
|
ScopeCategory2["WORKFLOWS"] = "workflows";
|
|
2492
2498
|
ScopeCategory2["ASSIGNMENTS"] = "assignments";
|
|
@@ -2603,6 +2609,11 @@ var SCOPES = {
|
|
|
2603
2609
|
category: "chats" /* CHATS */,
|
|
2604
2610
|
description: "View all conversations"
|
|
2605
2611
|
},
|
|
2612
|
+
"demos:run": {
|
|
2613
|
+
name: "demos:run",
|
|
2614
|
+
category: "demos" /* DEMOS */,
|
|
2615
|
+
description: "Start and interact with your own synthetic patient demos"
|
|
2616
|
+
},
|
|
2606
2617
|
"chats:write": {
|
|
2607
2618
|
name: "chats:write",
|
|
2608
2619
|
category: "chats" /* CHATS */,
|
|
@@ -3492,6 +3503,9 @@ ${formattedErrors}`, response.status);
|
|
|
3492
3503
|
const headers = new Headers({
|
|
3493
3504
|
...options?.headers || {}
|
|
3494
3505
|
});
|
|
3506
|
+
if (typeof options?.body === "string" && !headers.has("Content-Type")) {
|
|
3507
|
+
headers.set("Content-Type", "application/json");
|
|
3508
|
+
}
|
|
3495
3509
|
if (this.apiKey) {
|
|
3496
3510
|
headers.set("Authorization", `Bearer ${this.apiKey}`);
|
|
3497
3511
|
}
|
|
@@ -4506,6 +4520,18 @@ var AuthApi = class extends BaseApiClient {
|
|
|
4506
4520
|
async getUserAccount() {
|
|
4507
4521
|
return this.fetch("account");
|
|
4508
4522
|
}
|
|
4523
|
+
/** Active, undismissed product notices for this account across workspaces. */
|
|
4524
|
+
async getAccountNotices() {
|
|
4525
|
+
return this.fetch("account/notices");
|
|
4526
|
+
}
|
|
4527
|
+
async viewAccountNotice(id) {
|
|
4528
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/view`, { method: "PUT" });
|
|
4529
|
+
}
|
|
4530
|
+
async dismissAccountNotice(id) {
|
|
4531
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/dismiss`, {
|
|
4532
|
+
method: "PUT"
|
|
4533
|
+
});
|
|
4534
|
+
}
|
|
4509
4535
|
/** Update the authenticated user's account information. */
|
|
4510
4536
|
async updateUserAccount(info) {
|
|
4511
4537
|
return this.fetch("account", {
|
|
@@ -5607,24 +5633,6 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
5607
5633
|
`w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
|
|
5608
5634
|
);
|
|
5609
5635
|
}
|
|
5610
|
-
/** List the background-work thread hanging off a message.
|
|
5611
|
-
*
|
|
5612
|
-
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
5613
|
-
* background (ADR-11 / forked trajectories), writing its messages as a
|
|
5614
|
-
* child thread parented at the fork point. Main-history reads exclude
|
|
5615
|
-
* them, so this is how the "show work" affordance fetches them — lazily,
|
|
5616
|
-
* only when a message with a non-zero `childMessageCount` is expanded.
|
|
5617
|
-
* Returns the thread in chronological order, empty when there is none.
|
|
5618
|
-
*
|
|
5619
|
-
* `messageUuid` is the fork point's `ChatMessage.id`. */
|
|
5620
|
-
async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
|
|
5621
|
-
const params = new URLSearchParams();
|
|
5622
|
-
params.append("limit", limit.toString());
|
|
5623
|
-
params.append("offset", offset.toString());
|
|
5624
|
-
return this.fetch(
|
|
5625
|
-
`w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
|
|
5626
|
-
);
|
|
5627
|
-
}
|
|
5628
5636
|
/** List messages associated with a specific tool call in a chat. */
|
|
5629
5637
|
async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
|
|
5630
5638
|
const params = new URLSearchParams();
|
|
@@ -6407,12 +6415,6 @@ var DiscordBotsApi = class extends BaseApiClient {
|
|
|
6407
6415
|
async getDiscordBot(wid, botId) {
|
|
6408
6416
|
return this.fetch(`w/${wid}/app-connections/discord/bots/${botId}`);
|
|
6409
6417
|
}
|
|
6410
|
-
/**
|
|
6411
|
-
* Get a Discord bot by UUID.
|
|
6412
|
-
*/
|
|
6413
|
-
async getDiscordBotByUuid(wid, uuid) {
|
|
6414
|
-
return this.fetch(`w/${wid}/app-connections/discord/bots/uuid/${uuid}`);
|
|
6415
|
-
}
|
|
6416
6418
|
/**
|
|
6417
6419
|
* Create a new Discord bot configuration.
|
|
6418
6420
|
*/
|
|
@@ -6730,6 +6732,7 @@ var EventsApi = class extends BaseApiClient {
|
|
|
6730
6732
|
/** List event rules in the workspace, paginated. */
|
|
6731
6733
|
async getEventRules(wid, params) {
|
|
6732
6734
|
const query2 = new URLSearchParams();
|
|
6735
|
+
if (params?.search) query2.set("search", params.search);
|
|
6733
6736
|
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6734
6737
|
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6735
6738
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
@@ -6947,7 +6950,7 @@ var ExperimentsApi = class extends BaseApiClient {
|
|
|
6947
6950
|
const query2 = new URLSearchParams();
|
|
6948
6951
|
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6949
6952
|
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6950
|
-
if (params?.
|
|
6953
|
+
if (params?.archived !== void 0) query2.set("archived", String(params.archived));
|
|
6951
6954
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6952
6955
|
return this.fetch(`w/${wid}/experiments${qs}`);
|
|
6953
6956
|
}
|
|
@@ -7086,6 +7089,22 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
7086
7089
|
async getFhirConnectionByUuid(wid, uuid) {
|
|
7087
7090
|
return this.fetch(`w/${wid}/app-connections/fhir/connections/uuid/${uuid}`);
|
|
7088
7091
|
}
|
|
7092
|
+
/**
|
|
7093
|
+
* The connection's sync configuration, with the eCW encounter-sync runtime
|
|
7094
|
+
* state (`connectionParams.ecwEncounterSyncState`) typed.
|
|
7095
|
+
*
|
|
7096
|
+
* This is the generic connector sync-config route (the same one
|
|
7097
|
+
* `ConnectionSyncApi.getConnectionSyncConfig` wraps), not a FHIR-only
|
|
7098
|
+
* path. It is the one read that still returns the encounter
|
|
7099
|
+
* watermark for a workspace whose eCW feature flag is off: the
|
|
7100
|
+
* encounter-sync status route is flag-gated, while this route requires
|
|
7101
|
+
* only `apps:read`.
|
|
7102
|
+
*/
|
|
7103
|
+
async getFhirConnectionSyncConfig(wid, connectionId) {
|
|
7104
|
+
return this.fetch(
|
|
7105
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
7106
|
+
);
|
|
7107
|
+
}
|
|
7089
7108
|
/**
|
|
7090
7109
|
* Create a new FHIR connection configuration.
|
|
7091
7110
|
*/
|
|
@@ -7760,6 +7779,21 @@ var FilesApi = class extends BaseApiClient {
|
|
|
7760
7779
|
method: "DELETE"
|
|
7761
7780
|
});
|
|
7762
7781
|
}
|
|
7782
|
+
/** Queue indexing of an individual File, including a File without a folder. */
|
|
7783
|
+
async reindexFile(wid, id) {
|
|
7784
|
+
return this.fetch(`w/${wid}/files/${id}/reindex`, {
|
|
7785
|
+
method: "POST",
|
|
7786
|
+
body: JSON.stringify({})
|
|
7787
|
+
});
|
|
7788
|
+
}
|
|
7789
|
+
/** Search the current indexed version of an individual File. */
|
|
7790
|
+
async searchFile(wid, id, params) {
|
|
7791
|
+
const searchParams = new URLSearchParams({ query: params.query });
|
|
7792
|
+
if (params.topK !== void 0) searchParams.append("top_k", params.topK.toString());
|
|
7793
|
+
return this.fetch(
|
|
7794
|
+
`w/${wid}/files/${id}/search?${searchParams.toString()}`
|
|
7795
|
+
);
|
|
7796
|
+
}
|
|
7763
7797
|
/** Trigger reindexing of a folder's contents for search. */
|
|
7764
7798
|
async reindexFolder(wid, id) {
|
|
7765
7799
|
return this.fetch(`w/${wid}/folders/${id}/reindex`, {
|
|
@@ -7920,9 +7954,20 @@ function bytesToBase64(bytes) {
|
|
|
7920
7954
|
|
|
7921
7955
|
// src/api/inboxes.ts
|
|
7922
7956
|
var InboxesApi = class extends BaseApiClient {
|
|
7923
|
-
/**
|
|
7924
|
-
|
|
7925
|
-
|
|
7957
|
+
/**
|
|
7958
|
+
* List inboxes in a workspace.
|
|
7959
|
+
*
|
|
7960
|
+
* `isArchived` picks the half of the archive switch: omitted (or `false`) is
|
|
7961
|
+
* the Active list, `true` the Archived one. The server defaults to active,
|
|
7962
|
+
* so a caller that never passes it sees usable inboxes only.
|
|
7963
|
+
*/
|
|
7964
|
+
async getInboxes(wid, options) {
|
|
7965
|
+
const params = new URLSearchParams();
|
|
7966
|
+
if (options?.isArchived !== void 0) {
|
|
7967
|
+
params.set("is_archived", String(options.isArchived));
|
|
7968
|
+
}
|
|
7969
|
+
const query2 = params.toString();
|
|
7970
|
+
return this.fetch(`w/${wid}/inboxes${query2 ? `?${query2}` : ""}`);
|
|
7926
7971
|
}
|
|
7927
7972
|
/**
|
|
7928
7973
|
* Get an inbox by ID or UUID.
|
|
@@ -7949,17 +7994,45 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
7949
7994
|
body: JSON.stringify(inbox)
|
|
7950
7995
|
});
|
|
7951
7996
|
}
|
|
7952
|
-
/** Delete an inbox. */
|
|
7997
|
+
/** Delete an inbox and its emails. Prefer {@link archiveInbox}. */
|
|
7953
7998
|
async deleteInbox(wid, id) {
|
|
7954
7999
|
return this.fetch(`w/${wid}/inboxes/${id}`, {
|
|
7955
8000
|
method: "DELETE"
|
|
7956
8001
|
});
|
|
7957
8002
|
}
|
|
7958
|
-
/**
|
|
8003
|
+
/**
|
|
8004
|
+
* Archive an inbox: it leaves the Active list, refuses new mail and new
|
|
8005
|
+
* sends, and keeps every email it already holds. One-way.
|
|
8006
|
+
*
|
|
8007
|
+
* Refused with a 400 while a Workflow uses the inbox as its default or an
|
|
8008
|
+
* EventRule sends from it — read {@link getInboxArchiveBlockers} first to
|
|
8009
|
+
* explain that before committing.
|
|
8010
|
+
*/
|
|
8011
|
+
async archiveInbox(wid, id) {
|
|
8012
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive`, {
|
|
8013
|
+
method: "POST",
|
|
8014
|
+
// The route requires a JSON body as a CSRF barrier; `{}` is enough.
|
|
8015
|
+
body: JSON.stringify({})
|
|
8016
|
+
});
|
|
8017
|
+
}
|
|
8018
|
+
/**
|
|
8019
|
+
* What still points at this inbox: Workflows whose default inbox it is, and
|
|
8020
|
+
* EventRules that send from it. `canArchive` is the authoritative answer.
|
|
8021
|
+
*/
|
|
8022
|
+
async getInboxArchiveBlockers(wid, id) {
|
|
8023
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive-blockers`);
|
|
8024
|
+
}
|
|
8025
|
+
/**
|
|
8026
|
+
* List emails in an inbox with pagination, optional attachment inclusion,
|
|
8027
|
+
* a `search` term (sender or subject) and a sort.
|
|
8028
|
+
*/
|
|
7959
8029
|
async getInboxEmails(wid, inboxId, options = {}) {
|
|
7960
8030
|
const params = new URLSearchParams();
|
|
7961
8031
|
if (options.page) params.append("page", options.page.toString());
|
|
7962
8032
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
8033
|
+
if (options.search) params.append("search", options.search);
|
|
8034
|
+
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
8035
|
+
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
7963
8036
|
if (options.includeAttachments)
|
|
7964
8037
|
params.append("include_attachments", options.includeAttachments.toString());
|
|
7965
8038
|
return this.fetch(
|
|
@@ -8073,9 +8146,15 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
8073
8146
|
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
|
|
8074
8147
|
);
|
|
8075
8148
|
}
|
|
8076
|
-
/** List email threads in an inbox
|
|
8077
|
-
async getInboxThreads(wid, inboxId) {
|
|
8078
|
-
|
|
8149
|
+
/** List email threads in an inbox, `limit` threads from `offset`. */
|
|
8150
|
+
async getInboxThreads(wid, inboxId, options = {}) {
|
|
8151
|
+
const params = new URLSearchParams();
|
|
8152
|
+
if (options.limit !== void 0) params.append("limit", options.limit.toString());
|
|
8153
|
+
if (options.offset) params.append("offset", options.offset.toString());
|
|
8154
|
+
const query2 = params.toString();
|
|
8155
|
+
return this.fetch(
|
|
8156
|
+
`w/${wid}/inboxes/${inboxId}/threads${query2 ? `?${query2}` : ""}`
|
|
8157
|
+
);
|
|
8079
8158
|
}
|
|
8080
8159
|
/** List emails in a thread by assignment ID with pagination. */
|
|
8081
8160
|
async getThreadEmails(wid, inboxId, assignmentId, options = {}) {
|
|
@@ -9629,6 +9708,47 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
9629
9708
|
|
|
9630
9709
|
// src/api/org.ts
|
|
9631
9710
|
var OrgApi = class extends BaseApiClient {
|
|
9711
|
+
async getOrgManagerChats(org, cursor) {
|
|
9712
|
+
return this.fetch(
|
|
9713
|
+
`o/${encodeURIComponent(org)}/manager/chats${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`
|
|
9714
|
+
);
|
|
9715
|
+
}
|
|
9716
|
+
async createOrgManagerChat(org, title) {
|
|
9717
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
9718
|
+
method: "POST",
|
|
9719
|
+
body: JSON.stringify({ title })
|
|
9720
|
+
});
|
|
9721
|
+
}
|
|
9722
|
+
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
9723
|
+
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
9724
|
+
method: "POST",
|
|
9725
|
+
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
9726
|
+
cache: "no-store"
|
|
9727
|
+
});
|
|
9728
|
+
}
|
|
9729
|
+
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
9730
|
+
return this.fetch(
|
|
9731
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
9732
|
+
{ cache: "no-store" }
|
|
9733
|
+
);
|
|
9734
|
+
}
|
|
9735
|
+
async getOrgManagerMessages(org, chatId, before) {
|
|
9736
|
+
return this.fetch(
|
|
9737
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
|
|
9738
|
+
);
|
|
9739
|
+
}
|
|
9740
|
+
async stopOrgManagerTurn(org, chatId) {
|
|
9741
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/stop`, {
|
|
9742
|
+
method: "POST",
|
|
9743
|
+
body: JSON.stringify({})
|
|
9744
|
+
});
|
|
9745
|
+
}
|
|
9746
|
+
async startOrgManagerTurn(org, chatId, body) {
|
|
9747
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/turns`, {
|
|
9748
|
+
method: "POST",
|
|
9749
|
+
body: JSON.stringify(body)
|
|
9750
|
+
});
|
|
9751
|
+
}
|
|
9632
9752
|
/**
|
|
9633
9753
|
* Get organization by ID or UUID.
|
|
9634
9754
|
* Returns different response based on user's role:
|
|
@@ -9878,6 +9998,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9878
9998
|
if (options?.page) params.set("page", String(options.page));
|
|
9879
9999
|
if (options?.pageSize) params.set("pageSize", String(options.pageSize));
|
|
9880
10000
|
if (options?.search) params.set("search", options.search);
|
|
10001
|
+
if (options?.label) params.set("label", options.label);
|
|
9881
10002
|
return this.fetch(
|
|
9882
10003
|
`o/${orgIdOrUuid}/workspaces/summary?${params}`
|
|
9883
10004
|
);
|
|
@@ -9945,7 +10066,8 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9945
10066
|
});
|
|
9946
10067
|
}
|
|
9947
10068
|
/**
|
|
9948
|
-
* Search
|
|
10069
|
+
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
10070
|
+
* for US; the server defaults to US local when the type is omitted.
|
|
9949
10071
|
*/
|
|
9950
10072
|
async searchPhoneNumbers(orgUuid, params) {
|
|
9951
10073
|
const query2 = new URLSearchParams();
|
|
@@ -9962,8 +10084,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9962
10084
|
/**
|
|
9963
10085
|
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
9964
10086
|
*
|
|
9965
|
-
*
|
|
9966
|
-
*
|
|
10087
|
+
* Australian mobile numbers require an approved business registration. Pass
|
|
10088
|
+
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
10089
|
+
* `bundleSid` or `addressSid` for Australian purchases.
|
|
9967
10090
|
*/
|
|
9968
10091
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
9969
10092
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -9972,11 +10095,31 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9972
10095
|
phoneNumber,
|
|
9973
10096
|
numberType,
|
|
9974
10097
|
country: opts?.country,
|
|
10098
|
+
legalEntityUuid: opts?.legalEntityUuid,
|
|
9975
10099
|
bundleSid: opts?.bundleSid,
|
|
9976
10100
|
addressSid: opts?.addressSid
|
|
9977
10101
|
})
|
|
9978
10102
|
});
|
|
9979
10103
|
}
|
|
10104
|
+
async getNumberRegistration(orgUuid, entityUuid) {
|
|
10105
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration`);
|
|
10106
|
+
}
|
|
10107
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
10108
|
+
const body = new FormData();
|
|
10109
|
+
body.append("file", file);
|
|
10110
|
+
body.append("documentType", documentType);
|
|
10111
|
+
body.append("requirementName", requirementName);
|
|
10112
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents`, {
|
|
10113
|
+
method: "POST",
|
|
10114
|
+
body
|
|
10115
|
+
});
|
|
10116
|
+
}
|
|
10117
|
+
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
10118
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit`, {
|
|
10119
|
+
method: "POST",
|
|
10120
|
+
body: JSON.stringify({})
|
|
10121
|
+
});
|
|
10122
|
+
}
|
|
9980
10123
|
/**
|
|
9981
10124
|
* Delete a phone number from the org (releases from Twilio).
|
|
9982
10125
|
*/
|
|
@@ -10023,7 +10166,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10023
10166
|
* Delete a registered organization domain.
|
|
10024
10167
|
*/
|
|
10025
10168
|
async deleteOrgDomain(orgIdOrUuid, domainUuid) {
|
|
10026
|
-
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
10169
|
+
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
10170
|
+
method: "DELETE"
|
|
10171
|
+
});
|
|
10027
10172
|
}
|
|
10028
10173
|
/**
|
|
10029
10174
|
* Enable email DNS provisioning for a verified org domain.
|
|
@@ -10197,17 +10342,20 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10197
10342
|
});
|
|
10198
10343
|
}
|
|
10199
10344
|
/**
|
|
10200
|
-
*
|
|
10201
|
-
* brand's
|
|
10202
|
-
*
|
|
10203
|
-
*
|
|
10345
|
+
* Enable sending on a workspace-assigned number: attach it to the
|
|
10346
|
+
* Messaging Service of the given brand's campaign (A2P 10DLC).
|
|
10347
|
+
*
|
|
10348
|
+
* `campaignUuid` names the campaign to attach the number to, including the
|
|
10349
|
+
* brand's first; omit it to target the brand's first campaign. Preconditions
|
|
10350
|
+
* (412 otherwise): campaign VERIFIED, brand has a Messaging Service, phone
|
|
10351
|
+
* assigned to a workspace with a Twilio SID.
|
|
10204
10352
|
*/
|
|
10205
|
-
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
|
|
10353
|
+
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid, campaignUuid) {
|
|
10206
10354
|
return this.fetch(
|
|
10207
10355
|
`o/${orgUuid}/phone-numbers/a2p/activate-number`,
|
|
10208
10356
|
{
|
|
10209
10357
|
method: "POST",
|
|
10210
|
-
body: JSON.stringify({ providerPhoneUuid, brandUuid })
|
|
10358
|
+
body: JSON.stringify({ providerPhoneUuid, brandUuid, campaignUuid })
|
|
10211
10359
|
}
|
|
10212
10360
|
);
|
|
10213
10361
|
}
|
|
@@ -10224,7 +10372,10 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10224
10372
|
* entity's business profile must be approved (400 otherwise).
|
|
10225
10373
|
*/
|
|
10226
10374
|
async attachPhoneVoiceTrust(orgUuid, providerPhoneUuid, legalEntityUuid) {
|
|
10227
|
-
const body = {
|
|
10375
|
+
const body = {
|
|
10376
|
+
providerPhoneUuid,
|
|
10377
|
+
legalEntityUuid
|
|
10378
|
+
};
|
|
10228
10379
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/attach`, {
|
|
10229
10380
|
method: "POST",
|
|
10230
10381
|
body: JSON.stringify(body)
|
|
@@ -10388,23 +10539,53 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10388
10539
|
`o/${orgUuid}/a2p-brands/${brandUuid}/use-cases`
|
|
10389
10540
|
);
|
|
10390
10541
|
}
|
|
10542
|
+
/**
|
|
10543
|
+
* Add a draft campaign to a brand. `sourceCampaignUuid` goes in an optional
|
|
10544
|
+
* JSON body; omitting it copies the brand's first campaign. The draft
|
|
10545
|
+
* reaches no provider until it is submitted. A sole-proprietor brand is
|
|
10546
|
+
* refused.
|
|
10547
|
+
*/
|
|
10548
|
+
async createA2PCampaign(orgUuid, brandUuid, data = {}) {
|
|
10549
|
+
return this.fetch(`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns`, {
|
|
10550
|
+
method: "POST",
|
|
10551
|
+
body: JSON.stringify(data)
|
|
10552
|
+
});
|
|
10553
|
+
}
|
|
10554
|
+
/**
|
|
10555
|
+
* Submit a later campaign that has never been submitted. The caller must be
|
|
10556
|
+
* an org admin with recent 2FA, and the billing owner on subscription
|
|
10557
|
+
* billing (the submission buys the campaign's vetting). The brand's first
|
|
10558
|
+
* campaign is submitted by approving its sample messages during registration;
|
|
10559
|
+
* an ineligible campaign comes back as a structured 409 with a `code`. A brand
|
|
10560
|
+
* that no longer reads approved at the carrier, or a use case it no longer
|
|
10561
|
+
* allows, is a 400 with no `code`.
|
|
10562
|
+
*/
|
|
10563
|
+
async submitA2PCampaign(orgUuid, brandUuid, campaignUuid) {
|
|
10564
|
+
return this.fetch(
|
|
10565
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns/${encodeURIComponent(campaignUuid)}/submit`,
|
|
10566
|
+
{ method: "POST" }
|
|
10567
|
+
);
|
|
10568
|
+
}
|
|
10391
10569
|
/**
|
|
10392
10570
|
* Fetch a brand's resolved A2P campaign config. The response carries both the
|
|
10393
10571
|
* raw `overrides` and the `resolved` payload (defaults + overrides) the editor
|
|
10394
|
-
* previews — including the canonical SMS consent text.
|
|
10572
|
+
* previews — including the canonical SMS consent text. `campaignUuid` names
|
|
10573
|
+
* one of the brand's campaigns; without it the brand's first is read.
|
|
10395
10574
|
*/
|
|
10396
|
-
async getA2PCampaignConfig(orgUuid, brandUuid) {
|
|
10575
|
+
async getA2PCampaignConfig(orgUuid, brandUuid, options) {
|
|
10397
10576
|
return this.fetch(
|
|
10398
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`
|
|
10577
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`
|
|
10399
10578
|
);
|
|
10400
10579
|
}
|
|
10401
10580
|
/**
|
|
10402
10581
|
* Partial-update a brand's A2P campaign config. Returns the freshly resolved
|
|
10403
10582
|
* config so the editor's live preview updates without a second round-trip.
|
|
10583
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10584
|
+
* first is updated.
|
|
10404
10585
|
*/
|
|
10405
|
-
async updateA2PCampaignConfig(orgUuid, brandUuid, data) {
|
|
10586
|
+
async updateA2PCampaignConfig(orgUuid, brandUuid, data, options) {
|
|
10406
10587
|
return this.fetch(
|
|
10407
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`,
|
|
10588
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`,
|
|
10408
10589
|
{
|
|
10409
10590
|
method: "PUT",
|
|
10410
10591
|
body: JSON.stringify(data)
|
|
@@ -10414,10 +10595,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10414
10595
|
/**
|
|
10415
10596
|
* Resubmit a campaign the carrier rejected, with the brand's current
|
|
10416
10597
|
* campaign copy. Edits the campaign in place, so no second vetting fee.
|
|
10598
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10599
|
+
* first is resubmitted.
|
|
10417
10600
|
*/
|
|
10418
|
-
async resubmitA2PCampaign(orgUuid, brandUuid) {
|
|
10601
|
+
async resubmitA2PCampaign(orgUuid, brandUuid, options) {
|
|
10419
10602
|
return this.fetch(
|
|
10420
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign`,
|
|
10603
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign${campaignQuery(options)}`,
|
|
10421
10604
|
{ method: "POST" }
|
|
10422
10605
|
);
|
|
10423
10606
|
}
|
|
@@ -10433,11 +10616,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10433
10616
|
}
|
|
10434
10617
|
/**
|
|
10435
10618
|
* Link the brand to a published enrollment Site (sets `site_uuid`). Returns
|
|
10436
|
-
* the refreshed campaign config.
|
|
10619
|
+
* the refreshed campaign config. `campaignUuid` names one of the brand's
|
|
10620
|
+
* campaigns; without it the brand's first campaign is written. Only a first
|
|
10621
|
+
* campaign may link a site.
|
|
10437
10622
|
*/
|
|
10438
|
-
async linkA2PEnrollmentSite(orgUuid, brandUuid, data) {
|
|
10623
|
+
async linkA2PEnrollmentSite(orgUuid, brandUuid, data, options) {
|
|
10439
10624
|
return this.fetch(
|
|
10440
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
10625
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
10441
10626
|
{
|
|
10442
10627
|
method: "PUT",
|
|
10443
10628
|
body: JSON.stringify(data)
|
|
@@ -10449,20 +10634,25 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10449
10634
|
* the explicit counterpart to the automatic provisioning at brand
|
|
10450
10635
|
* registration. `workspaceUuid` is required only when the org has multiple
|
|
10451
10636
|
* workspaces. Returns the refreshed campaign config. Idempotent.
|
|
10637
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10638
|
+
* first campaign is written. Only a first campaign may link a site.
|
|
10452
10639
|
*/
|
|
10453
|
-
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}) {
|
|
10640
|
+
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}, options) {
|
|
10454
10641
|
return this.fetch(
|
|
10455
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision`,
|
|
10642
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision${campaignQuery(options)}`,
|
|
10456
10643
|
{
|
|
10457
10644
|
method: "POST",
|
|
10458
10645
|
body: JSON.stringify(data)
|
|
10459
10646
|
}
|
|
10460
10647
|
);
|
|
10461
10648
|
}
|
|
10462
|
-
/**
|
|
10463
|
-
|
|
10649
|
+
/**
|
|
10650
|
+
* Clear the brand's enrollment-site link. `campaignUuid` names one of the
|
|
10651
|
+
* brand's campaigns; without it the brand's first campaign is cleared.
|
|
10652
|
+
*/
|
|
10653
|
+
async unlinkA2PEnrollmentSite(orgUuid, brandUuid, options) {
|
|
10464
10654
|
return this.fetch(
|
|
10465
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
10655
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
10466
10656
|
{ method: "DELETE" }
|
|
10467
10657
|
);
|
|
10468
10658
|
}
|
|
@@ -10470,10 +10660,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10470
10660
|
* Stage one A2P opt-in evidence file: get a presigned POST to send the bytes
|
|
10471
10661
|
* straight to storage. Nothing is recorded on the brand until
|
|
10472
10662
|
* {@link registerA2PEvidenceUpload} reads the object back and normalizes it.
|
|
10663
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10664
|
+
* first campaign is written.
|
|
10473
10665
|
*/
|
|
10474
|
-
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data) {
|
|
10666
|
+
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data, options) {
|
|
10475
10667
|
return this.fetch(
|
|
10476
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url`,
|
|
10668
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url${campaignQuery(options)}`,
|
|
10477
10669
|
{
|
|
10478
10670
|
method: "POST",
|
|
10479
10671
|
body: JSON.stringify(data)
|
|
@@ -10481,25 +10673,29 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10481
10673
|
);
|
|
10482
10674
|
}
|
|
10483
10675
|
/**
|
|
10484
|
-
* Normalize a staged evidence upload and record it on the
|
|
10485
|
-
* refreshed campaign config, so the editor's evidence list updates
|
|
10486
|
-
* second round trip.
|
|
10676
|
+
* Normalize a staged evidence upload and record it on the campaign. Returns
|
|
10677
|
+
* the refreshed campaign config, so the editor's evidence list updates
|
|
10678
|
+
* without a second round trip. `campaignUuid` names one of the brand's
|
|
10679
|
+
* campaigns; without it the brand's first campaign is written.
|
|
10487
10680
|
*/
|
|
10488
|
-
async registerA2PEvidenceUpload(orgUuid, brandUuid, data) {
|
|
10681
|
+
async registerA2PEvidenceUpload(orgUuid, brandUuid, data, options) {
|
|
10489
10682
|
return this.fetch(
|
|
10490
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments`,
|
|
10683
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments${campaignQuery(options)}`,
|
|
10491
10684
|
{
|
|
10492
10685
|
method: "POST",
|
|
10493
10686
|
body: JSON.stringify(data)
|
|
10494
10687
|
}
|
|
10495
10688
|
);
|
|
10496
10689
|
}
|
|
10497
|
-
/**
|
|
10498
|
-
|
|
10690
|
+
/**
|
|
10691
|
+
* Remove one uploaded evidence artifact. `campaignUuid` names one of the
|
|
10692
|
+
* brand's campaigns; without it the brand's first campaign is written.
|
|
10693
|
+
*/
|
|
10694
|
+
async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid, options) {
|
|
10499
10695
|
return this.fetch(
|
|
10500
10696
|
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/${encodeURIComponent(
|
|
10501
10697
|
attachmentUuid
|
|
10502
|
-
)}`,
|
|
10698
|
+
)}${campaignQuery(options)}`,
|
|
10503
10699
|
{ method: "DELETE" }
|
|
10504
10700
|
);
|
|
10505
10701
|
}
|
|
@@ -10555,9 +10751,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10555
10751
|
method: "DELETE"
|
|
10556
10752
|
});
|
|
10557
10753
|
}
|
|
10558
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
10754
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0, filters = {}) {
|
|
10755
|
+
const params = new URLSearchParams({ limit: String(limit), offset: String(offset) });
|
|
10756
|
+
if (filters.status) params.set("status", filters.status);
|
|
10757
|
+
if (filters.occurredAfter) params.set("occurredAfter", filters.occurredAfter);
|
|
10758
|
+
if (filters.occurredBefore) params.set("occurredBefore", filters.occurredBefore);
|
|
10559
10759
|
return this.fetch(
|
|
10560
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries
|
|
10760
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?${params}`
|
|
10561
10761
|
);
|
|
10562
10762
|
}
|
|
10563
10763
|
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
@@ -10724,6 +10924,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10724
10924
|
function businessProfilePath(orgUuid, legalEntityUuid) {
|
|
10725
10925
|
return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
|
|
10726
10926
|
}
|
|
10927
|
+
function campaignQuery(options) {
|
|
10928
|
+
return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
|
|
10929
|
+
}
|
|
10727
10930
|
|
|
10728
10931
|
// src/api/oauth.ts
|
|
10729
10932
|
function getOAuthPath(providerSlug, action) {
|
|
@@ -10840,6 +11043,13 @@ function appendAnalyticsFilters(params, filters) {
|
|
|
10840
11043
|
filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
|
|
10841
11044
|
filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
|
|
10842
11045
|
}
|
|
11046
|
+
function appendPhoneLogFilters(params, filters) {
|
|
11047
|
+
if (!filters) return;
|
|
11048
|
+
if (filters.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
11049
|
+
if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
11050
|
+
if (filters.dateTo) params.set("dateTo", filters.dateTo);
|
|
11051
|
+
if (filters.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
11052
|
+
}
|
|
10843
11053
|
var PhoneNumbersApi = class extends BaseApiClient {
|
|
10844
11054
|
/** List phone numbers in a workspace, optionally including archived. */
|
|
10845
11055
|
async getPhoneNumbers(wid, options) {
|
|
@@ -10914,16 +11124,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
10914
11124
|
if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
10915
11125
|
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
10916
11126
|
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
11127
|
+
if (filters?.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
10917
11128
|
if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
|
|
10918
11129
|
return this.fetch(`w/${wid}/calls?${params}`);
|
|
10919
11130
|
}
|
|
11131
|
+
/**
|
|
11132
|
+
* One time-ordered page over a number's calls, texts and voicemails.
|
|
11133
|
+
*
|
|
11134
|
+
* Paged by keyset: pass the previous page's `nextCursor` as `cursor` to get
|
|
11135
|
+
* the entries after it. A new entry at the head cannot repeat or skip one.
|
|
11136
|
+
* `modalities` limits the feed to some of the logs.
|
|
11137
|
+
*/
|
|
11138
|
+
async getPhoneNumberActivity(wid, id, options = {}) {
|
|
11139
|
+
const params = new URLSearchParams({ pageSize: String(options.pageSize ?? 25) });
|
|
11140
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
11141
|
+
options.modalities?.forEach((modality) => params.append("modality", modality));
|
|
11142
|
+
appendPhoneLogFilters(params, options);
|
|
11143
|
+
return this.fetch(`w/${wid}/phone-numbers/${id}/activity?${params}`);
|
|
11144
|
+
}
|
|
10920
11145
|
/** List paginated voicemails for a phone number. */
|
|
10921
|
-
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status) {
|
|
11146
|
+
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status, filters) {
|
|
10922
11147
|
const params = new URLSearchParams({
|
|
10923
11148
|
page: String(page),
|
|
10924
11149
|
page_size: String(pageSize)
|
|
10925
11150
|
});
|
|
10926
11151
|
if (status) params.set("status", status);
|
|
11152
|
+
appendPhoneLogFilters(params, filters);
|
|
10927
11153
|
return this.fetch(
|
|
10928
11154
|
`w/${wid}/phone-numbers/${id}/voicemails?${params}`
|
|
10929
11155
|
);
|
|
@@ -10949,9 +11175,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
10949
11175
|
pageSize: String(pageSize)
|
|
10950
11176
|
});
|
|
10951
11177
|
if (filters?.status) params.set("status", filters.status);
|
|
10952
|
-
|
|
10953
|
-
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
10954
|
-
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
11178
|
+
appendPhoneLogFilters(params, filters);
|
|
10955
11179
|
return this.fetch(
|
|
10956
11180
|
`w/${wid}/phone-numbers/${id}/messages?${params}`
|
|
10957
11181
|
);
|
|
@@ -11216,6 +11440,7 @@ var PersonasApi = class extends BaseApiClient {
|
|
|
11216
11440
|
body: JSON.stringify(data)
|
|
11217
11441
|
});
|
|
11218
11442
|
}
|
|
11443
|
+
/** Archives the Persona and its current test Member. Returns 409 while a test chat is open. */
|
|
11219
11444
|
async archivePersona(wid, id) {
|
|
11220
11445
|
return this.fetch(`w/${wid}/personas/${id}/archive`, {
|
|
11221
11446
|
method: "POST",
|
|
@@ -11240,8 +11465,7 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
11240
11465
|
const q = new URLSearchParams();
|
|
11241
11466
|
if (params?.page !== void 0) q.set("page", String(params.page));
|
|
11242
11467
|
if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
|
|
11243
|
-
if (params?.
|
|
11244
|
-
q.set("includeArchived", String(params.includeArchived));
|
|
11468
|
+
if (params?.archived !== void 0) q.set("archived", String(params.archived));
|
|
11245
11469
|
if (params?.source) q.set("source", params.source);
|
|
11246
11470
|
const qs = q.toString() ? `?${q.toString()}` : "";
|
|
11247
11471
|
return this.fetch(`w/${wid}/metrics${qs}`);
|
|
@@ -11285,6 +11509,18 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
11285
11509
|
`w/${wid}/metrics/${metricId}/series?${q.toString()}`
|
|
11286
11510
|
);
|
|
11287
11511
|
}
|
|
11512
|
+
/**
|
|
11513
|
+
* Series for several metrics in one request, each with its default
|
|
11514
|
+
* aggregation. Items come back in the order the ids were given.
|
|
11515
|
+
*/
|
|
11516
|
+
async getMetricSeriesBatch(wid, params) {
|
|
11517
|
+
const q = new URLSearchParams();
|
|
11518
|
+
for (const id of params.metricIds) q.append("metricIds", String(id));
|
|
11519
|
+
q.set("start", params.start);
|
|
11520
|
+
q.set("end", params.end);
|
|
11521
|
+
if (params.bucket) q.set("bucket", params.bucket);
|
|
11522
|
+
return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
|
|
11523
|
+
}
|
|
11288
11524
|
/** On-demand compute of enabled chat-source metrics for one chat. */
|
|
11289
11525
|
async computeChatMetrics(wid, data) {
|
|
11290
11526
|
return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
|
|
@@ -11560,9 +11796,12 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
11560
11796
|
);
|
|
11561
11797
|
}
|
|
11562
11798
|
async evaluateTestChatRun(wid, runId) {
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11799
|
+
return this.fetch(
|
|
11800
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`,
|
|
11801
|
+
{
|
|
11802
|
+
method: "POST"
|
|
11803
|
+
}
|
|
11804
|
+
);
|
|
11566
11805
|
}
|
|
11567
11806
|
/** Manually end a test chat run (for human-driven runs, which have no
|
|
11568
11807
|
* simulator workflow to mark them completed). */
|
|
@@ -11973,11 +12212,29 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
11973
12212
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
11974
12213
|
);
|
|
11975
12214
|
}
|
|
11976
|
-
|
|
12215
|
+
/**
|
|
12216
|
+
* One page of a run's items. ``cursor`` is the previous page's
|
|
12217
|
+
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
12218
|
+
* from ``hasMore``, never from the returned row count.
|
|
12219
|
+
*/
|
|
12220
|
+
async getSyncRunItemsPage(wid, connectionId, runId, options) {
|
|
12221
|
+
const params = new URLSearchParams();
|
|
12222
|
+
if (options?.limit != null) params.set("limit", String(options.limit));
|
|
12223
|
+
if (options?.newestFirst) params.set("newest_first", "true");
|
|
12224
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
12225
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
11977
12226
|
return this.fetch(
|
|
11978
|
-
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items
|
|
12227
|
+
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items${qs}`
|
|
11979
12228
|
);
|
|
11980
12229
|
}
|
|
12230
|
+
/**
|
|
12231
|
+
* The run's items as a flat list. Kept for the published CLI surface; the
|
|
12232
|
+
* server returns the canonical cursor page, and this unwraps its ``items``.
|
|
12233
|
+
*/
|
|
12234
|
+
async getSyncRunItems(wid, connectionId, runId, limit = 500) {
|
|
12235
|
+
const page = await this.getSyncRunItemsPage(wid, connectionId, runId, { limit });
|
|
12236
|
+
return page.items;
|
|
12237
|
+
}
|
|
11981
12238
|
/**
|
|
11982
12239
|
* Clear a manual-unlink exclusion for a member on a connection so
|
|
11983
12240
|
* subsequent outbound syncs stop silently skipping them. Idempotent:
|
|
@@ -12253,6 +12510,37 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
12253
12510
|
|
|
12254
12511
|
// src/api/sites.ts
|
|
12255
12512
|
var SitesApi = class extends BaseApiClient {
|
|
12513
|
+
/** Start a fresh synthetic patient session on the Site's configured Workflow. */
|
|
12514
|
+
async startPublicDemo(wid, siteUuid, request) {
|
|
12515
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
|
|
12516
|
+
method: "POST",
|
|
12517
|
+
body: JSON.stringify(request)
|
|
12518
|
+
});
|
|
12519
|
+
}
|
|
12520
|
+
/** Read only a demo the acting Member drives. */
|
|
12521
|
+
async getPublicDemo(wid, siteUuid, runId) {
|
|
12522
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
|
|
12523
|
+
}
|
|
12524
|
+
/** End this visitor's run and release its test resources. */
|
|
12525
|
+
async endPublicDemo(wid, siteUuid, runId) {
|
|
12526
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
|
|
12527
|
+
method: "POST",
|
|
12528
|
+
keepalive: true,
|
|
12529
|
+
body: JSON.stringify({})
|
|
12530
|
+
});
|
|
12531
|
+
}
|
|
12532
|
+
async sendPublicDemoMessage(wid, siteUuid, runId, request) {
|
|
12533
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
|
|
12534
|
+
method: "POST",
|
|
12535
|
+
body: JSON.stringify(request)
|
|
12536
|
+
});
|
|
12537
|
+
}
|
|
12538
|
+
async submitPublicDemoForm(wid, siteUuid, runId, request) {
|
|
12539
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
|
|
12540
|
+
method: "PUT",
|
|
12541
|
+
body: JSON.stringify(request)
|
|
12542
|
+
});
|
|
12543
|
+
}
|
|
12256
12544
|
/** List all sites in a workspace. */
|
|
12257
12545
|
async getSites(wid) {
|
|
12258
12546
|
return this.fetch(`w/${wid}/sites`);
|
|
@@ -12292,6 +12580,15 @@ var SitesApi = class extends BaseApiClient {
|
|
|
12292
12580
|
async getSiteSource(wid, siteId) {
|
|
12293
12581
|
return this.fetch(`w/${wid}/sites/${siteId}/source`);
|
|
12294
12582
|
}
|
|
12583
|
+
/** List source release revisions from newest to oldest. */
|
|
12584
|
+
async getSiteSourceReleases(wid, siteId, options = {}) {
|
|
12585
|
+
const params = new URLSearchParams();
|
|
12586
|
+
if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
|
|
12587
|
+
if (options.limit != null) params.set("limit", String(options.limit));
|
|
12588
|
+
return this.fetch(
|
|
12589
|
+
`w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
|
|
12590
|
+
);
|
|
12591
|
+
}
|
|
12295
12592
|
/** Starter templates the caller may seed (superuser-only ones filtered server-side). */
|
|
12296
12593
|
async getSiteSourceTemplates(wid, siteId) {
|
|
12297
12594
|
return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
|
|
@@ -13304,6 +13601,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13304
13601
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
13305
13602
|
const query2 = new URLSearchParams();
|
|
13306
13603
|
if (includeArchived) query2.set("include_archived", "true");
|
|
13604
|
+
if (pageOpts?.search) query2.set("search", pageOpts.search);
|
|
13605
|
+
if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
|
|
13307
13606
|
if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
|
|
13308
13607
|
if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
|
|
13309
13608
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
@@ -13660,6 +13959,12 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13660
13959
|
|
|
13661
13960
|
// src/api/workflows.ts
|
|
13662
13961
|
var WorkflowsApi = class extends BaseApiClient {
|
|
13962
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
13963
|
+
const body = new FormData();
|
|
13964
|
+
body.append("file", file, relativePath.split("/").pop());
|
|
13965
|
+
body.append("relativePath", relativePath);
|
|
13966
|
+
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
13967
|
+
}
|
|
13663
13968
|
/** List all workflows in a workspace, optionally including archived ones. */
|
|
13664
13969
|
async getWorkflows(wid, options = {}) {
|
|
13665
13970
|
const params = new URLSearchParams();
|
|
@@ -14426,13 +14731,6 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
14426
14731
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
14427
14732
|
return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
|
|
14428
14733
|
}
|
|
14429
|
-
/** Create a new client workspace under a reseller workspace. */
|
|
14430
|
-
async createClientWorkspace(wid, data) {
|
|
14431
|
-
return this.fetch(`w/${wid}/reseller/workspaces`, {
|
|
14432
|
-
method: "POST",
|
|
14433
|
-
body: JSON.stringify(data)
|
|
14434
|
-
});
|
|
14435
|
-
}
|
|
14436
14734
|
/** Get a single client workspace by ID. */
|
|
14437
14735
|
async getClientWorkspace(wid, workspaceId) {
|
|
14438
14736
|
return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
|
|
@@ -14542,7 +14840,9 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
14542
14840
|
searchParams.set("revision_mode", "active");
|
|
14543
14841
|
}
|
|
14544
14842
|
const qs = searchParams.toString();
|
|
14545
|
-
const data = await this.fetch(
|
|
14843
|
+
const data = await this.fetch(
|
|
14844
|
+
`w/${wid}/export${qs ? `?${qs}` : ""}`
|
|
14845
|
+
);
|
|
14546
14846
|
this.verifyExportSelection(data, workflowId, options);
|
|
14547
14847
|
return data;
|
|
14548
14848
|
}
|
|
@@ -15009,6 +15309,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15009
15309
|
"archiveMemberByExternalId",
|
|
15010
15310
|
"archiveMemberRelationship",
|
|
15011
15311
|
"archivePersona",
|
|
15312
|
+
"archiveInbox",
|
|
15012
15313
|
"archivePhoneNumber",
|
|
15013
15314
|
"archiveStep",
|
|
15014
15315
|
"archiveTask",
|
|
@@ -15082,7 +15383,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15082
15383
|
"createChatCompletion",
|
|
15083
15384
|
"createChatFilter",
|
|
15084
15385
|
"createChatLabel",
|
|
15085
|
-
"createClientWorkspace",
|
|
15086
15386
|
"createConnection",
|
|
15087
15387
|
"createContactPermission",
|
|
15088
15388
|
"createCustomTool",
|
|
@@ -15290,6 +15590,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15290
15590
|
"getApiKeys",
|
|
15291
15591
|
"getArchiveBlockers",
|
|
15292
15592
|
"getAthenaPlatformApp",
|
|
15593
|
+
"getFhirConnectionSyncConfig",
|
|
15293
15594
|
"getAssignment",
|
|
15294
15595
|
"getAssignmentCelContext",
|
|
15295
15596
|
"getAssignmentMessages",
|
|
@@ -15348,7 +15649,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15348
15649
|
"getChats",
|
|
15349
15650
|
"getChatsDailyCreationStats",
|
|
15350
15651
|
"getChatsNeedsResponse",
|
|
15351
|
-
"getChildThreadMessages",
|
|
15352
15652
|
"getClientWorkspace",
|
|
15353
15653
|
"getConfigurationHealth",
|
|
15354
15654
|
"getConfluenceStatus",
|
|
@@ -15390,7 +15690,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15390
15690
|
"getDevices",
|
|
15391
15691
|
"getDiscordBot",
|
|
15392
15692
|
"getDiscordBotAccounts",
|
|
15393
|
-
"getDiscordBotByUuid",
|
|
15394
15693
|
"getDiscordBots",
|
|
15395
15694
|
"getDiscordGuilds",
|
|
15396
15695
|
"getDiscordThreads",
|
|
@@ -15437,6 +15736,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15437
15736
|
"getQueryFields",
|
|
15438
15737
|
"getSiteSharing",
|
|
15439
15738
|
"getSiteSource",
|
|
15739
|
+
"getSiteSourceReleases",
|
|
15440
15740
|
"getSiteSourceTemplates",
|
|
15441
15741
|
"getThemeSettings",
|
|
15442
15742
|
"importSiteSourceZip",
|
|
@@ -15493,6 +15793,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15493
15793
|
"getInbox",
|
|
15494
15794
|
"getInboxEmail",
|
|
15495
15795
|
"getInboxEmails",
|
|
15796
|
+
"getInboxArchiveBlockers",
|
|
15496
15797
|
"getInboxOutboundEmailStats",
|
|
15497
15798
|
"getInboxThreads",
|
|
15498
15799
|
"getInboxes",
|
|
@@ -15568,6 +15869,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15568
15869
|
"getPhoneCalls",
|
|
15569
15870
|
"getPhoneCallByUuid",
|
|
15570
15871
|
"getPhoneNumber",
|
|
15872
|
+
"getPhoneNumberActivity",
|
|
15571
15873
|
"getPhoneNumberCalls",
|
|
15572
15874
|
"getPhoneNumberFaxes",
|
|
15573
15875
|
"getPhoneNumberMessages",
|
|
@@ -15621,6 +15923,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15621
15923
|
"getSupervisor",
|
|
15622
15924
|
"getSupervisors",
|
|
15623
15925
|
"getSyncRunItems",
|
|
15926
|
+
"getSyncRunItemsPage",
|
|
15624
15927
|
"getSyncRuns",
|
|
15625
15928
|
"getTask",
|
|
15626
15929
|
"getTaskChats",
|
|
@@ -15743,6 +16046,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15743
16046
|
"deleteMetric",
|
|
15744
16047
|
"listMetricObservations",
|
|
15745
16048
|
"getMetricSeries",
|
|
16049
|
+
"getMetricSeriesBatch",
|
|
15746
16050
|
"computeChatMetrics",
|
|
15747
16051
|
"listPushSubscriptions",
|
|
15748
16052
|
"listResourceWorkflows",
|
|
@@ -16073,7 +16377,6 @@ function bindChatsMethods(target, chats) {
|
|
|
16073
16377
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
16074
16378
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
16075
16379
|
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
16076
|
-
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
16077
16380
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
16078
16381
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
16079
16382
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -16314,7 +16617,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
16314
16617
|
target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
|
|
16315
16618
|
target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
|
|
16316
16619
|
target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
|
|
16317
|
-
target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
|
|
16318
16620
|
target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
|
|
16319
16621
|
target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
|
|
16320
16622
|
target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
|
|
@@ -16371,6 +16673,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
16371
16673
|
|
|
16372
16674
|
// src/client/bindings/auth.ts
|
|
16373
16675
|
function bindAuthMethods(target, auth, assignments) {
|
|
16676
|
+
target.getAccountNotices = auth.getAccountNotices.bind(auth);
|
|
16677
|
+
target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
|
|
16678
|
+
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
16374
16679
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
16375
16680
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
16376
16681
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
@@ -16432,6 +16737,11 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
16432
16737
|
|
|
16433
16738
|
// src/client/bindings/sites.ts
|
|
16434
16739
|
function bindSitesMethods(target, sites) {
|
|
16740
|
+
target.endPublicDemo = sites.endPublicDemo.bind(sites);
|
|
16741
|
+
target.startPublicDemo = sites.startPublicDemo.bind(sites);
|
|
16742
|
+
target.getPublicDemo = sites.getPublicDemo.bind(sites);
|
|
16743
|
+
target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
|
|
16744
|
+
target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
|
|
16435
16745
|
target.getSites = sites.getSites.bind(sites);
|
|
16436
16746
|
target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
|
|
16437
16747
|
target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
|
|
@@ -16439,6 +16749,7 @@ function bindSitesMethods(target, sites) {
|
|
|
16439
16749
|
target.getSiteSharing = sites.getSiteSharing.bind(sites);
|
|
16440
16750
|
target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
|
|
16441
16751
|
target.getSiteSource = sites.getSiteSource.bind(sites);
|
|
16752
|
+
target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
|
|
16442
16753
|
target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
|
|
16443
16754
|
target.createSiteSource = sites.createSiteSource.bind(sites);
|
|
16444
16755
|
target.buildSiteSource = sites.buildSiteSource.bind(sites);
|
|
@@ -16499,6 +16810,8 @@ function bindFilesMethods(target, files) {
|
|
|
16499
16810
|
target.createFolder = files.createFolder.bind(files);
|
|
16500
16811
|
target.updateFolder = files.updateFolder.bind(files);
|
|
16501
16812
|
target.deleteFolder = files.deleteFolder.bind(files);
|
|
16813
|
+
target.reindexFile = files.reindexFile.bind(files);
|
|
16814
|
+
target.searchFile = files.searchFile.bind(files);
|
|
16502
16815
|
target.reindexFolder = files.reindexFolder.bind(files);
|
|
16503
16816
|
target.searchFolder = files.searchFolder.bind(files);
|
|
16504
16817
|
target.getFileLabels = files.getFileLabels.bind(files);
|
|
@@ -16586,6 +16899,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
16586
16899
|
target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
|
|
16587
16900
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
16588
16901
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
16902
|
+
target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
|
|
16589
16903
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
16590
16904
|
target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
|
|
16591
16905
|
target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
|
|
@@ -16677,6 +16991,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
16677
16991
|
target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
|
|
16678
16992
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
16679
16993
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
16994
|
+
target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
|
|
16680
16995
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
16681
16996
|
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
16682
16997
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
@@ -16690,6 +17005,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
16690
17005
|
target.createInbox = inboxes.createInbox.bind(inboxes);
|
|
16691
17006
|
target.updateInbox = inboxes.updateInbox.bind(inboxes);
|
|
16692
17007
|
target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
|
|
17008
|
+
target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
|
|
17009
|
+
target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
|
|
16693
17010
|
target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
|
|
16694
17011
|
target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
|
|
16695
17012
|
target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
|
|
@@ -16851,7 +17168,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
16851
17168
|
target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
|
|
16852
17169
|
target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
|
|
16853
17170
|
target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
|
|
16854
|
-
target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
|
|
16855
17171
|
target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
|
|
16856
17172
|
target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
|
|
16857
17173
|
target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
|
|
@@ -16916,6 +17232,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
16916
17232
|
target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
|
|
16917
17233
|
target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
|
|
16918
17234
|
target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
|
|
17235
|
+
target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
|
|
16919
17236
|
target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
|
|
16920
17237
|
target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
|
|
16921
17238
|
target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
|
|
@@ -17010,6 +17327,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
17010
17327
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
17011
17328
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
17012
17329
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
17330
|
+
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
17013
17331
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
17014
17332
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
17015
17333
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
@@ -17056,6 +17374,13 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
17056
17374
|
|
|
17057
17375
|
// src/client/bindings/org.ts
|
|
17058
17376
|
function bindOrgMethods(target, org) {
|
|
17377
|
+
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
17378
|
+
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
17379
|
+
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
17380
|
+
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
17381
|
+
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
17382
|
+
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
17383
|
+
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
17059
17384
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
17060
17385
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
17061
17386
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -17269,6 +17594,7 @@ function bindMetricsMethods(target, metrics) {
|
|
|
17269
17594
|
target.deleteMetric = metrics.deleteMetric.bind(metrics);
|
|
17270
17595
|
target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
|
|
17271
17596
|
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
17597
|
+
target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
|
|
17272
17598
|
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
17273
17599
|
}
|
|
17274
17600
|
|
|
@@ -17418,7 +17744,6 @@ var GravityRailClient = class {
|
|
|
17418
17744
|
summarizeChat;
|
|
17419
17745
|
getChatMessages;
|
|
17420
17746
|
getChatTaskTransitions;
|
|
17421
|
-
getChildThreadMessages;
|
|
17422
17747
|
getChatToolCallMessages;
|
|
17423
17748
|
getChatTools;
|
|
17424
17749
|
initiateOutboundCall;
|
|
@@ -17626,6 +17951,7 @@ var GravityRailClient = class {
|
|
|
17626
17951
|
deleteMetric;
|
|
17627
17952
|
listMetricObservations;
|
|
17628
17953
|
getMetricSeries;
|
|
17954
|
+
getMetricSeriesBatch;
|
|
17629
17955
|
computeChatMetrics;
|
|
17630
17956
|
// Dashboards API
|
|
17631
17957
|
getDashboards;
|
|
@@ -17819,7 +18145,6 @@ var GravityRailClient = class {
|
|
|
17819
18145
|
dismissNotification;
|
|
17820
18146
|
dismissAllNotifications;
|
|
17821
18147
|
getResellerWorkspaces;
|
|
17822
|
-
createClientWorkspace;
|
|
17823
18148
|
getClientWorkspace;
|
|
17824
18149
|
updateClientWorkspace;
|
|
17825
18150
|
deleteClientWorkspace;
|
|
@@ -17855,6 +18180,13 @@ var GravityRailClient = class {
|
|
|
17855
18180
|
upsertWidgetDomain;
|
|
17856
18181
|
deleteWidgetDomain;
|
|
17857
18182
|
// Org API
|
|
18183
|
+
getOrgManagerCredentialResponse;
|
|
18184
|
+
authorizeOrgManagerDelegation;
|
|
18185
|
+
getOrgManagerChats;
|
|
18186
|
+
createOrgManagerChat;
|
|
18187
|
+
getOrgManagerMessages;
|
|
18188
|
+
startOrgManagerTurn;
|
|
18189
|
+
stopOrgManagerTurn;
|
|
17858
18190
|
listOrgDomains;
|
|
17859
18191
|
registerOrgDomain;
|
|
17860
18192
|
getOrgDomain;
|
|
@@ -17929,6 +18261,9 @@ var GravityRailClient = class {
|
|
|
17929
18261
|
declineInvitation;
|
|
17930
18262
|
// Auth API
|
|
17931
18263
|
getUserAccount;
|
|
18264
|
+
getAccountNotices;
|
|
18265
|
+
viewAccountNotice;
|
|
18266
|
+
dismissAccountNotice;
|
|
17932
18267
|
updateUserAccount;
|
|
17933
18268
|
recordAcquisition;
|
|
17934
18269
|
login;
|
|
@@ -17986,6 +18321,11 @@ var GravityRailClient = class {
|
|
|
17986
18321
|
getAssignmentTools;
|
|
17987
18322
|
executeAssignmentTool;
|
|
17988
18323
|
// Sites API
|
|
18324
|
+
startPublicDemo;
|
|
18325
|
+
endPublicDemo;
|
|
18326
|
+
getPublicDemo;
|
|
18327
|
+
sendPublicDemoMessage;
|
|
18328
|
+
submitPublicDemoForm;
|
|
17989
18329
|
getSites;
|
|
17990
18330
|
checkSiteSlugAvailability;
|
|
17991
18331
|
checkSiteDomainAvailability;
|
|
@@ -17993,6 +18333,7 @@ var GravityRailClient = class {
|
|
|
17993
18333
|
getSiteSharing;
|
|
17994
18334
|
updateSiteSharing;
|
|
17995
18335
|
getSiteSource;
|
|
18336
|
+
getSiteSourceReleases;
|
|
17996
18337
|
getSiteSourceTemplates;
|
|
17997
18338
|
createSiteSource;
|
|
17998
18339
|
buildSiteSource;
|
|
@@ -18055,6 +18396,8 @@ var GravityRailClient = class {
|
|
|
18055
18396
|
createFolder;
|
|
18056
18397
|
updateFolder;
|
|
18057
18398
|
deleteFolder;
|
|
18399
|
+
reindexFile;
|
|
18400
|
+
searchFile;
|
|
18058
18401
|
reindexFolder;
|
|
18059
18402
|
searchFolder;
|
|
18060
18403
|
getFileLabels;
|
|
@@ -18111,6 +18454,7 @@ var GravityRailClient = class {
|
|
|
18111
18454
|
getWorkflowsOutlineBatch;
|
|
18112
18455
|
createWorkflow;
|
|
18113
18456
|
updateWorkflow;
|
|
18457
|
+
uploadWorkflowKnowledge;
|
|
18114
18458
|
getWorkflowDeletionPreview;
|
|
18115
18459
|
deleteWorkflow;
|
|
18116
18460
|
archiveWorkflow;
|
|
@@ -18196,6 +18540,7 @@ var GravityRailClient = class {
|
|
|
18196
18540
|
getPhoneNumberOutboundAnalyticsSummary;
|
|
18197
18541
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
18198
18542
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
18543
|
+
getPhoneNumberActivity;
|
|
18199
18544
|
getPhoneNumberMessages;
|
|
18200
18545
|
getPhoneNumberFaxes;
|
|
18201
18546
|
getPhoneNumberVoicemails;
|
|
@@ -18209,6 +18554,8 @@ var GravityRailClient = class {
|
|
|
18209
18554
|
createInbox;
|
|
18210
18555
|
updateInbox;
|
|
18211
18556
|
deleteInbox;
|
|
18557
|
+
archiveInbox;
|
|
18558
|
+
getInboxArchiveBlockers;
|
|
18212
18559
|
getInboxEmails;
|
|
18213
18560
|
getInboxEmail;
|
|
18214
18561
|
markEmailAsRead;
|
|
@@ -18367,7 +18714,6 @@ var GravityRailClient = class {
|
|
|
18367
18714
|
// Discord Bots API
|
|
18368
18715
|
getDiscordBots;
|
|
18369
18716
|
getDiscordBot;
|
|
18370
|
-
getDiscordBotByUuid;
|
|
18371
18717
|
createDiscordBot;
|
|
18372
18718
|
updateDiscordBot;
|
|
18373
18719
|
deleteDiscordBot;
|
|
@@ -18435,6 +18781,7 @@ var GravityRailClient = class {
|
|
|
18435
18781
|
fhirGetEncounterSyncRuns;
|
|
18436
18782
|
fhirRefreshEncounterPatient;
|
|
18437
18783
|
fhirBackfillEncounterSync;
|
|
18784
|
+
getFhirConnectionSyncConfig;
|
|
18438
18785
|
getAthenaPlatformApp;
|
|
18439
18786
|
verifyAthenaAccess;
|
|
18440
18787
|
connectAthena;
|
|
@@ -18534,6 +18881,7 @@ var GravityRailClient = class {
|
|
|
18534
18881
|
startSyncRun;
|
|
18535
18882
|
getSyncRuns;
|
|
18536
18883
|
getSyncRunItems;
|
|
18884
|
+
getSyncRunItemsPage;
|
|
18537
18885
|
getMemberSyncSummary;
|
|
18538
18886
|
getConnectionFieldHomes;
|
|
18539
18887
|
getInboundRecordStatus;
|