@gravity-rail/sdk 2.0.0 → 3.1.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 +18 -9
- package/dist/{chat-interaction-CGDgA4K_.d.cts → chat-interaction-ClNfn1UV.d.cts} +1997 -850
- package/dist/{chat-interaction-DjV6mYaY.d.ts → chat-interaction-DwH4z1qk.d.ts} +1997 -850
- package/dist/{chunk-SVRE6KIM.js → chunk-ANVLMZLD.js} +496 -104
- package/dist/chunk-ANVLMZLD.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 +535 -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 +497 -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-D-_eJBE7.d.ts} +1 -1
- package/dist/{member-import-C1IsFkQm.d.cts → member-import-IN06xJrR.d.cts} +1 -1
- package/dist/{path-Bd99SxC1.d.cts → path-D4S8xYyo.d.ts} +18 -3
- package/dist/{path-CZxFBfjw.d.ts → path-D_KPlBIr.d.cts} +18 -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-C8sHnwH5.d.cts} +52 -11
- package/dist/{tasks-C8TrcAV8.d.ts → tasks-C8sHnwH5.d.ts} +52 -11
- package/package.json +4 -3
- package/dist/chunk-SVRE6KIM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -144,6 +144,7 @@ __export(src_exports, {
|
|
|
144
144
|
ORG_ONLY_RESOURCES: () => ORG_ONLY_RESOURCES,
|
|
145
145
|
OrgApi: () => OrgApi,
|
|
146
146
|
OrgFeature: () => OrgFeature,
|
|
147
|
+
OrgWebhookDeliveryStatus: () => OrgWebhookDeliveryResponseStatus,
|
|
147
148
|
PERMISSION_ADMIN: () => PERMISSION_ADMIN,
|
|
148
149
|
PERMISSION_CREATE: () => PERMISSION_CREATE,
|
|
149
150
|
PERMISSION_DELETE: () => PERMISSION_DELETE,
|
|
@@ -580,6 +581,9 @@ ${formattedErrors}`, response.status);
|
|
|
580
581
|
const headers = new Headers({
|
|
581
582
|
...options?.headers || {}
|
|
582
583
|
});
|
|
584
|
+
if (typeof options?.body === "string" && !headers.has("Content-Type")) {
|
|
585
|
+
headers.set("Content-Type", "application/json");
|
|
586
|
+
}
|
|
583
587
|
if (this.apiKey) {
|
|
584
588
|
headers.set("Authorization", `Bearer ${this.apiKey}`);
|
|
585
589
|
}
|
|
@@ -1594,6 +1598,18 @@ var AuthApi = class extends BaseApiClient {
|
|
|
1594
1598
|
async getUserAccount() {
|
|
1595
1599
|
return this.fetch("account");
|
|
1596
1600
|
}
|
|
1601
|
+
/** Active, undismissed product notices for this account across workspaces. */
|
|
1602
|
+
async getAccountNotices() {
|
|
1603
|
+
return this.fetch("account/notices");
|
|
1604
|
+
}
|
|
1605
|
+
async viewAccountNotice(id) {
|
|
1606
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/view`, { method: "PUT" });
|
|
1607
|
+
}
|
|
1608
|
+
async dismissAccountNotice(id) {
|
|
1609
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/dismiss`, {
|
|
1610
|
+
method: "PUT"
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1597
1613
|
/** Update the authenticated user's account information. */
|
|
1598
1614
|
async updateUserAccount(info) {
|
|
1599
1615
|
return this.fetch("account", {
|
|
@@ -2695,24 +2711,6 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2695
2711
|
`w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
|
|
2696
2712
|
);
|
|
2697
2713
|
}
|
|
2698
|
-
/** List the background-work thread hanging off a message.
|
|
2699
|
-
*
|
|
2700
|
-
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
2701
|
-
* background (ADR-11 / forked trajectories), writing its messages as a
|
|
2702
|
-
* child thread parented at the fork point. Main-history reads exclude
|
|
2703
|
-
* them, so this is how the "show work" affordance fetches them — lazily,
|
|
2704
|
-
* only when a message with a non-zero `childMessageCount` is expanded.
|
|
2705
|
-
* Returns the thread in chronological order, empty when there is none.
|
|
2706
|
-
*
|
|
2707
|
-
* `messageUuid` is the fork point's `ChatMessage.id`. */
|
|
2708
|
-
async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
|
|
2709
|
-
const params = new URLSearchParams();
|
|
2710
|
-
params.append("limit", limit.toString());
|
|
2711
|
-
params.append("offset", offset.toString());
|
|
2712
|
-
return this.fetch(
|
|
2713
|
-
`w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
|
|
2714
|
-
);
|
|
2715
|
-
}
|
|
2716
2714
|
/** List messages associated with a specific tool call in a chat. */
|
|
2717
2715
|
async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
|
|
2718
2716
|
const params = new URLSearchParams();
|
|
@@ -3495,12 +3493,6 @@ var DiscordBotsApi = class extends BaseApiClient {
|
|
|
3495
3493
|
async getDiscordBot(wid, botId) {
|
|
3496
3494
|
return this.fetch(`w/${wid}/app-connections/discord/bots/${botId}`);
|
|
3497
3495
|
}
|
|
3498
|
-
/**
|
|
3499
|
-
* Get a Discord bot by UUID.
|
|
3500
|
-
*/
|
|
3501
|
-
async getDiscordBotByUuid(wid, uuid) {
|
|
3502
|
-
return this.fetch(`w/${wid}/app-connections/discord/bots/uuid/${uuid}`);
|
|
3503
|
-
}
|
|
3504
3496
|
/**
|
|
3505
3497
|
* Create a new Discord bot configuration.
|
|
3506
3498
|
*/
|
|
@@ -3818,6 +3810,7 @@ var EventsApi = class extends BaseApiClient {
|
|
|
3818
3810
|
/** List event rules in the workspace, paginated. */
|
|
3819
3811
|
async getEventRules(wid, params) {
|
|
3820
3812
|
const query2 = new URLSearchParams();
|
|
3813
|
+
if (params?.search) query2.set("search", params.search);
|
|
3821
3814
|
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3822
3815
|
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3823
3816
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
@@ -4035,7 +4028,7 @@ var ExperimentsApi = class extends BaseApiClient {
|
|
|
4035
4028
|
const query2 = new URLSearchParams();
|
|
4036
4029
|
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4037
4030
|
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4038
|
-
if (params?.
|
|
4031
|
+
if (params?.archived !== void 0) query2.set("archived", String(params.archived));
|
|
4039
4032
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4040
4033
|
return this.fetch(`w/${wid}/experiments${qs}`);
|
|
4041
4034
|
}
|
|
@@ -4174,6 +4167,22 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
4174
4167
|
async getFhirConnectionByUuid(wid, uuid) {
|
|
4175
4168
|
return this.fetch(`w/${wid}/app-connections/fhir/connections/uuid/${uuid}`);
|
|
4176
4169
|
}
|
|
4170
|
+
/**
|
|
4171
|
+
* The connection's sync configuration, with the eCW encounter-sync runtime
|
|
4172
|
+
* state (`connectionParams.ecwEncounterSyncState`) typed.
|
|
4173
|
+
*
|
|
4174
|
+
* This is the generic connector sync-config route (the same one
|
|
4175
|
+
* `ConnectionSyncApi.getConnectionSyncConfig` wraps), not a FHIR-only
|
|
4176
|
+
* path. It is the one read that still returns the encounter
|
|
4177
|
+
* watermark for a workspace whose eCW feature flag is off: the
|
|
4178
|
+
* encounter-sync status route is flag-gated, while this route requires
|
|
4179
|
+
* only `apps:read`.
|
|
4180
|
+
*/
|
|
4181
|
+
async getFhirConnectionSyncConfig(wid, connectionId) {
|
|
4182
|
+
return this.fetch(
|
|
4183
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
4184
|
+
);
|
|
4185
|
+
}
|
|
4177
4186
|
/**
|
|
4178
4187
|
* Create a new FHIR connection configuration.
|
|
4179
4188
|
*/
|
|
@@ -4855,6 +4864,21 @@ var FilesApi = class extends BaseApiClient {
|
|
|
4855
4864
|
method: "DELETE"
|
|
4856
4865
|
});
|
|
4857
4866
|
}
|
|
4867
|
+
/** Queue indexing of an individual File, including a File without a folder. */
|
|
4868
|
+
async reindexFile(wid, id) {
|
|
4869
|
+
return this.fetch(`w/${wid}/files/${id}/reindex`, {
|
|
4870
|
+
method: "POST",
|
|
4871
|
+
body: JSON.stringify({})
|
|
4872
|
+
});
|
|
4873
|
+
}
|
|
4874
|
+
/** Search the current indexed version of an individual File. */
|
|
4875
|
+
async searchFile(wid, id, params) {
|
|
4876
|
+
const searchParams = new URLSearchParams({ query: params.query });
|
|
4877
|
+
if (params.topK !== void 0) searchParams.append("top_k", params.topK.toString());
|
|
4878
|
+
return this.fetch(
|
|
4879
|
+
`w/${wid}/files/${id}/search?${searchParams.toString()}`
|
|
4880
|
+
);
|
|
4881
|
+
}
|
|
4858
4882
|
/** Trigger reindexing of a folder's contents for search. */
|
|
4859
4883
|
async reindexFolder(wid, id) {
|
|
4860
4884
|
return this.fetch(`w/${wid}/folders/${id}/reindex`, {
|
|
@@ -5015,9 +5039,20 @@ function bytesToBase64(bytes) {
|
|
|
5015
5039
|
|
|
5016
5040
|
// src/api/inboxes.ts
|
|
5017
5041
|
var InboxesApi = class extends BaseApiClient {
|
|
5018
|
-
/**
|
|
5019
|
-
|
|
5020
|
-
|
|
5042
|
+
/**
|
|
5043
|
+
* List inboxes in a workspace.
|
|
5044
|
+
*
|
|
5045
|
+
* `isArchived` picks the half of the archive switch: omitted (or `false`) is
|
|
5046
|
+
* the Active list, `true` the Archived one. The server defaults to active,
|
|
5047
|
+
* so a caller that never passes it sees usable inboxes only.
|
|
5048
|
+
*/
|
|
5049
|
+
async getInboxes(wid, options) {
|
|
5050
|
+
const params = new URLSearchParams();
|
|
5051
|
+
if (options?.isArchived !== void 0) {
|
|
5052
|
+
params.set("is_archived", String(options.isArchived));
|
|
5053
|
+
}
|
|
5054
|
+
const query2 = params.toString();
|
|
5055
|
+
return this.fetch(`w/${wid}/inboxes${query2 ? `?${query2}` : ""}`);
|
|
5021
5056
|
}
|
|
5022
5057
|
/**
|
|
5023
5058
|
* Get an inbox by ID or UUID.
|
|
@@ -5044,17 +5079,45 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
5044
5079
|
body: JSON.stringify(inbox)
|
|
5045
5080
|
});
|
|
5046
5081
|
}
|
|
5047
|
-
/** Delete an inbox. */
|
|
5082
|
+
/** Delete an inbox and its emails. Prefer {@link archiveInbox}. */
|
|
5048
5083
|
async deleteInbox(wid, id) {
|
|
5049
5084
|
return this.fetch(`w/${wid}/inboxes/${id}`, {
|
|
5050
5085
|
method: "DELETE"
|
|
5051
5086
|
});
|
|
5052
5087
|
}
|
|
5053
|
-
/**
|
|
5088
|
+
/**
|
|
5089
|
+
* Archive an inbox: it leaves the Active list, refuses new mail and new
|
|
5090
|
+
* sends, and keeps every email it already holds. One-way.
|
|
5091
|
+
*
|
|
5092
|
+
* Refused with a 400 while a Workflow uses the inbox as its default or an
|
|
5093
|
+
* EventRule sends from it — read {@link getInboxArchiveBlockers} first to
|
|
5094
|
+
* explain that before committing.
|
|
5095
|
+
*/
|
|
5096
|
+
async archiveInbox(wid, id) {
|
|
5097
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive`, {
|
|
5098
|
+
method: "POST",
|
|
5099
|
+
// The route requires a JSON body as a CSRF barrier; `{}` is enough.
|
|
5100
|
+
body: JSON.stringify({})
|
|
5101
|
+
});
|
|
5102
|
+
}
|
|
5103
|
+
/**
|
|
5104
|
+
* What still points at this inbox: Workflows whose default inbox it is, and
|
|
5105
|
+
* EventRules that send from it. `canArchive` is the authoritative answer.
|
|
5106
|
+
*/
|
|
5107
|
+
async getInboxArchiveBlockers(wid, id) {
|
|
5108
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive-blockers`);
|
|
5109
|
+
}
|
|
5110
|
+
/**
|
|
5111
|
+
* List emails in an inbox with pagination, optional attachment inclusion,
|
|
5112
|
+
* a `search` term (sender or subject) and a sort.
|
|
5113
|
+
*/
|
|
5054
5114
|
async getInboxEmails(wid, inboxId, options = {}) {
|
|
5055
5115
|
const params = new URLSearchParams();
|
|
5056
5116
|
if (options.page) params.append("page", options.page.toString());
|
|
5057
5117
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
5118
|
+
if (options.search) params.append("search", options.search);
|
|
5119
|
+
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
5120
|
+
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
5058
5121
|
if (options.includeAttachments)
|
|
5059
5122
|
params.append("include_attachments", options.includeAttachments.toString());
|
|
5060
5123
|
return this.fetch(
|
|
@@ -5168,9 +5231,15 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
5168
5231
|
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
|
|
5169
5232
|
);
|
|
5170
5233
|
}
|
|
5171
|
-
/** List email threads in an inbox
|
|
5172
|
-
async getInboxThreads(wid, inboxId) {
|
|
5173
|
-
|
|
5234
|
+
/** List email threads in an inbox, `limit` threads from `offset`. */
|
|
5235
|
+
async getInboxThreads(wid, inboxId, options = {}) {
|
|
5236
|
+
const params = new URLSearchParams();
|
|
5237
|
+
if (options.limit !== void 0) params.append("limit", options.limit.toString());
|
|
5238
|
+
if (options.offset) params.append("offset", options.offset.toString());
|
|
5239
|
+
const query2 = params.toString();
|
|
5240
|
+
return this.fetch(
|
|
5241
|
+
`w/${wid}/inboxes/${inboxId}/threads${query2 ? `?${query2}` : ""}`
|
|
5242
|
+
);
|
|
5174
5243
|
}
|
|
5175
5244
|
/** List emails in a thread by assignment ID with pagination. */
|
|
5176
5245
|
async getThreadEmails(wid, inboxId, assignmentId, options = {}) {
|
|
@@ -6724,6 +6793,47 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
6724
6793
|
|
|
6725
6794
|
// src/api/org.ts
|
|
6726
6795
|
var OrgApi = class extends BaseApiClient {
|
|
6796
|
+
async getOrgManagerChats(org, cursor) {
|
|
6797
|
+
return this.fetch(
|
|
6798
|
+
`o/${encodeURIComponent(org)}/manager/chats${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`
|
|
6799
|
+
);
|
|
6800
|
+
}
|
|
6801
|
+
async createOrgManagerChat(org, title) {
|
|
6802
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
6803
|
+
method: "POST",
|
|
6804
|
+
body: JSON.stringify({ title })
|
|
6805
|
+
});
|
|
6806
|
+
}
|
|
6807
|
+
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
6808
|
+
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
6809
|
+
method: "POST",
|
|
6810
|
+
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
6811
|
+
cache: "no-store"
|
|
6812
|
+
});
|
|
6813
|
+
}
|
|
6814
|
+
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
6815
|
+
return this.fetch(
|
|
6816
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
6817
|
+
{ cache: "no-store" }
|
|
6818
|
+
);
|
|
6819
|
+
}
|
|
6820
|
+
async getOrgManagerMessages(org, chatId, before) {
|
|
6821
|
+
return this.fetch(
|
|
6822
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
|
|
6823
|
+
);
|
|
6824
|
+
}
|
|
6825
|
+
async stopOrgManagerTurn(org, chatId) {
|
|
6826
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/stop`, {
|
|
6827
|
+
method: "POST",
|
|
6828
|
+
body: JSON.stringify({})
|
|
6829
|
+
});
|
|
6830
|
+
}
|
|
6831
|
+
async startOrgManagerTurn(org, chatId, body) {
|
|
6832
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/turns`, {
|
|
6833
|
+
method: "POST",
|
|
6834
|
+
body: JSON.stringify(body)
|
|
6835
|
+
});
|
|
6836
|
+
}
|
|
6727
6837
|
/**
|
|
6728
6838
|
* Get organization by ID or UUID.
|
|
6729
6839
|
* Returns different response based on user's role:
|
|
@@ -6973,6 +7083,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6973
7083
|
if (options?.page) params.set("page", String(options.page));
|
|
6974
7084
|
if (options?.pageSize) params.set("pageSize", String(options.pageSize));
|
|
6975
7085
|
if (options?.search) params.set("search", options.search);
|
|
7086
|
+
if (options?.label) params.set("label", options.label);
|
|
6976
7087
|
return this.fetch(
|
|
6977
7088
|
`o/${orgIdOrUuid}/workspaces/summary?${params}`
|
|
6978
7089
|
);
|
|
@@ -7040,7 +7151,8 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7040
7151
|
});
|
|
7041
7152
|
}
|
|
7042
7153
|
/**
|
|
7043
|
-
* Search
|
|
7154
|
+
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
7155
|
+
* for US; the server defaults to US local when the type is omitted.
|
|
7044
7156
|
*/
|
|
7045
7157
|
async searchPhoneNumbers(orgUuid, params) {
|
|
7046
7158
|
const query2 = new URLSearchParams();
|
|
@@ -7057,8 +7169,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7057
7169
|
/**
|
|
7058
7170
|
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
7059
7171
|
*
|
|
7060
|
-
*
|
|
7061
|
-
*
|
|
7172
|
+
* Australian mobile numbers require an approved business registration. Pass
|
|
7173
|
+
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
7174
|
+
* `bundleSid` or `addressSid` for Australian purchases.
|
|
7062
7175
|
*/
|
|
7063
7176
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
7064
7177
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -7067,11 +7180,31 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7067
7180
|
phoneNumber,
|
|
7068
7181
|
numberType,
|
|
7069
7182
|
country: opts?.country,
|
|
7183
|
+
legalEntityUuid: opts?.legalEntityUuid,
|
|
7070
7184
|
bundleSid: opts?.bundleSid,
|
|
7071
7185
|
addressSid: opts?.addressSid
|
|
7072
7186
|
})
|
|
7073
7187
|
});
|
|
7074
7188
|
}
|
|
7189
|
+
async getNumberRegistration(orgUuid, entityUuid) {
|
|
7190
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration`);
|
|
7191
|
+
}
|
|
7192
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
7193
|
+
const body = new FormData();
|
|
7194
|
+
body.append("file", file);
|
|
7195
|
+
body.append("documentType", documentType);
|
|
7196
|
+
body.append("requirementName", requirementName);
|
|
7197
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents`, {
|
|
7198
|
+
method: "POST",
|
|
7199
|
+
body
|
|
7200
|
+
});
|
|
7201
|
+
}
|
|
7202
|
+
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
7203
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit`, {
|
|
7204
|
+
method: "POST",
|
|
7205
|
+
body: JSON.stringify({})
|
|
7206
|
+
});
|
|
7207
|
+
}
|
|
7075
7208
|
/**
|
|
7076
7209
|
* Delete a phone number from the org (releases from Twilio).
|
|
7077
7210
|
*/
|
|
@@ -7118,7 +7251,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7118
7251
|
* Delete a registered organization domain.
|
|
7119
7252
|
*/
|
|
7120
7253
|
async deleteOrgDomain(orgIdOrUuid, domainUuid) {
|
|
7121
|
-
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
7254
|
+
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
7255
|
+
method: "DELETE"
|
|
7256
|
+
});
|
|
7122
7257
|
}
|
|
7123
7258
|
/**
|
|
7124
7259
|
* Enable email DNS provisioning for a verified org domain.
|
|
@@ -7292,17 +7427,20 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7292
7427
|
});
|
|
7293
7428
|
}
|
|
7294
7429
|
/**
|
|
7295
|
-
*
|
|
7296
|
-
* brand's
|
|
7297
|
-
*
|
|
7298
|
-
*
|
|
7430
|
+
* Enable sending on a workspace-assigned number: attach it to the
|
|
7431
|
+
* Messaging Service of the given brand's campaign (A2P 10DLC).
|
|
7432
|
+
*
|
|
7433
|
+
* `campaignUuid` names the campaign to attach the number to, including the
|
|
7434
|
+
* brand's first; omit it to target the brand's first campaign. Preconditions
|
|
7435
|
+
* (412 otherwise): campaign VERIFIED, brand has a Messaging Service, phone
|
|
7436
|
+
* assigned to a workspace with a Twilio SID.
|
|
7299
7437
|
*/
|
|
7300
|
-
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
|
|
7438
|
+
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid, campaignUuid) {
|
|
7301
7439
|
return this.fetch(
|
|
7302
7440
|
`o/${orgUuid}/phone-numbers/a2p/activate-number`,
|
|
7303
7441
|
{
|
|
7304
7442
|
method: "POST",
|
|
7305
|
-
body: JSON.stringify({ providerPhoneUuid, brandUuid })
|
|
7443
|
+
body: JSON.stringify({ providerPhoneUuid, brandUuid, campaignUuid })
|
|
7306
7444
|
}
|
|
7307
7445
|
);
|
|
7308
7446
|
}
|
|
@@ -7319,7 +7457,10 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7319
7457
|
* entity's business profile must be approved (400 otherwise).
|
|
7320
7458
|
*/
|
|
7321
7459
|
async attachPhoneVoiceTrust(orgUuid, providerPhoneUuid, legalEntityUuid) {
|
|
7322
|
-
const body = {
|
|
7460
|
+
const body = {
|
|
7461
|
+
providerPhoneUuid,
|
|
7462
|
+
legalEntityUuid
|
|
7463
|
+
};
|
|
7323
7464
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/attach`, {
|
|
7324
7465
|
method: "POST",
|
|
7325
7466
|
body: JSON.stringify(body)
|
|
@@ -7483,23 +7624,53 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7483
7624
|
`o/${orgUuid}/a2p-brands/${brandUuid}/use-cases`
|
|
7484
7625
|
);
|
|
7485
7626
|
}
|
|
7627
|
+
/**
|
|
7628
|
+
* Add a draft campaign to a brand. `sourceCampaignUuid` goes in an optional
|
|
7629
|
+
* JSON body; omitting it copies the brand's first campaign. The draft
|
|
7630
|
+
* reaches no provider until it is submitted. A sole-proprietor brand is
|
|
7631
|
+
* refused.
|
|
7632
|
+
*/
|
|
7633
|
+
async createA2PCampaign(orgUuid, brandUuid, data = {}) {
|
|
7634
|
+
return this.fetch(`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns`, {
|
|
7635
|
+
method: "POST",
|
|
7636
|
+
body: JSON.stringify(data)
|
|
7637
|
+
});
|
|
7638
|
+
}
|
|
7639
|
+
/**
|
|
7640
|
+
* Submit a later campaign that has never been submitted. The caller must be
|
|
7641
|
+
* an org admin with recent 2FA, and the billing owner on subscription
|
|
7642
|
+
* billing (the submission buys the campaign's vetting). The brand's first
|
|
7643
|
+
* campaign is submitted by approving its sample messages during registration;
|
|
7644
|
+
* an ineligible campaign comes back as a structured 409 with a `code`. A brand
|
|
7645
|
+
* that no longer reads approved at the carrier, or a use case it no longer
|
|
7646
|
+
* allows, is a 400 with no `code`.
|
|
7647
|
+
*/
|
|
7648
|
+
async submitA2PCampaign(orgUuid, brandUuid, campaignUuid) {
|
|
7649
|
+
return this.fetch(
|
|
7650
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns/${encodeURIComponent(campaignUuid)}/submit`,
|
|
7651
|
+
{ method: "POST" }
|
|
7652
|
+
);
|
|
7653
|
+
}
|
|
7486
7654
|
/**
|
|
7487
7655
|
* Fetch a brand's resolved A2P campaign config. The response carries both the
|
|
7488
7656
|
* raw `overrides` and the `resolved` payload (defaults + overrides) the editor
|
|
7489
|
-
* previews — including the canonical SMS consent text.
|
|
7657
|
+
* previews — including the canonical SMS consent text. `campaignUuid` names
|
|
7658
|
+
* one of the brand's campaigns; without it the brand's first is read.
|
|
7490
7659
|
*/
|
|
7491
|
-
async getA2PCampaignConfig(orgUuid, brandUuid) {
|
|
7660
|
+
async getA2PCampaignConfig(orgUuid, brandUuid, options) {
|
|
7492
7661
|
return this.fetch(
|
|
7493
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`
|
|
7662
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`
|
|
7494
7663
|
);
|
|
7495
7664
|
}
|
|
7496
7665
|
/**
|
|
7497
7666
|
* Partial-update a brand's A2P campaign config. Returns the freshly resolved
|
|
7498
7667
|
* config so the editor's live preview updates without a second round-trip.
|
|
7668
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7669
|
+
* first is updated.
|
|
7499
7670
|
*/
|
|
7500
|
-
async updateA2PCampaignConfig(orgUuid, brandUuid, data) {
|
|
7671
|
+
async updateA2PCampaignConfig(orgUuid, brandUuid, data, options) {
|
|
7501
7672
|
return this.fetch(
|
|
7502
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`,
|
|
7673
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`,
|
|
7503
7674
|
{
|
|
7504
7675
|
method: "PUT",
|
|
7505
7676
|
body: JSON.stringify(data)
|
|
@@ -7509,10 +7680,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7509
7680
|
/**
|
|
7510
7681
|
* Resubmit a campaign the carrier rejected, with the brand's current
|
|
7511
7682
|
* campaign copy. Edits the campaign in place, so no second vetting fee.
|
|
7683
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7684
|
+
* first is resubmitted.
|
|
7512
7685
|
*/
|
|
7513
|
-
async resubmitA2PCampaign(orgUuid, brandUuid) {
|
|
7686
|
+
async resubmitA2PCampaign(orgUuid, brandUuid, options) {
|
|
7514
7687
|
return this.fetch(
|
|
7515
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign`,
|
|
7688
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign${campaignQuery(options)}`,
|
|
7516
7689
|
{ method: "POST" }
|
|
7517
7690
|
);
|
|
7518
7691
|
}
|
|
@@ -7528,11 +7701,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7528
7701
|
}
|
|
7529
7702
|
/**
|
|
7530
7703
|
* Link the brand to a published enrollment Site (sets `site_uuid`). Returns
|
|
7531
|
-
* the refreshed campaign config.
|
|
7704
|
+
* the refreshed campaign config. `campaignUuid` names one of the brand's
|
|
7705
|
+
* campaigns; without it the brand's first campaign is written. Only a first
|
|
7706
|
+
* campaign may link a site.
|
|
7532
7707
|
*/
|
|
7533
|
-
async linkA2PEnrollmentSite(orgUuid, brandUuid, data) {
|
|
7708
|
+
async linkA2PEnrollmentSite(orgUuid, brandUuid, data, options) {
|
|
7534
7709
|
return this.fetch(
|
|
7535
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
7710
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
7536
7711
|
{
|
|
7537
7712
|
method: "PUT",
|
|
7538
7713
|
body: JSON.stringify(data)
|
|
@@ -7544,20 +7719,25 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7544
7719
|
* the explicit counterpart to the automatic provisioning at brand
|
|
7545
7720
|
* registration. `workspaceUuid` is required only when the org has multiple
|
|
7546
7721
|
* workspaces. Returns the refreshed campaign config. Idempotent.
|
|
7722
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7723
|
+
* first campaign is written. Only a first campaign may link a site.
|
|
7547
7724
|
*/
|
|
7548
|
-
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}) {
|
|
7725
|
+
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}, options) {
|
|
7549
7726
|
return this.fetch(
|
|
7550
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision`,
|
|
7727
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision${campaignQuery(options)}`,
|
|
7551
7728
|
{
|
|
7552
7729
|
method: "POST",
|
|
7553
7730
|
body: JSON.stringify(data)
|
|
7554
7731
|
}
|
|
7555
7732
|
);
|
|
7556
7733
|
}
|
|
7557
|
-
/**
|
|
7558
|
-
|
|
7734
|
+
/**
|
|
7735
|
+
* Clear the brand's enrollment-site link. `campaignUuid` names one of the
|
|
7736
|
+
* brand's campaigns; without it the brand's first campaign is cleared.
|
|
7737
|
+
*/
|
|
7738
|
+
async unlinkA2PEnrollmentSite(orgUuid, brandUuid, options) {
|
|
7559
7739
|
return this.fetch(
|
|
7560
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
7740
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
7561
7741
|
{ method: "DELETE" }
|
|
7562
7742
|
);
|
|
7563
7743
|
}
|
|
@@ -7565,10 +7745,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7565
7745
|
* Stage one A2P opt-in evidence file: get a presigned POST to send the bytes
|
|
7566
7746
|
* straight to storage. Nothing is recorded on the brand until
|
|
7567
7747
|
* {@link registerA2PEvidenceUpload} reads the object back and normalizes it.
|
|
7748
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7749
|
+
* first campaign is written.
|
|
7568
7750
|
*/
|
|
7569
|
-
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data) {
|
|
7751
|
+
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data, options) {
|
|
7570
7752
|
return this.fetch(
|
|
7571
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url`,
|
|
7753
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url${campaignQuery(options)}`,
|
|
7572
7754
|
{
|
|
7573
7755
|
method: "POST",
|
|
7574
7756
|
body: JSON.stringify(data)
|
|
@@ -7576,25 +7758,29 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7576
7758
|
);
|
|
7577
7759
|
}
|
|
7578
7760
|
/**
|
|
7579
|
-
* Normalize a staged evidence upload and record it on the
|
|
7580
|
-
* refreshed campaign config, so the editor's evidence list updates
|
|
7581
|
-
* second round trip.
|
|
7761
|
+
* Normalize a staged evidence upload and record it on the campaign. Returns
|
|
7762
|
+
* the refreshed campaign config, so the editor's evidence list updates
|
|
7763
|
+
* without a second round trip. `campaignUuid` names one of the brand's
|
|
7764
|
+
* campaigns; without it the brand's first campaign is written.
|
|
7582
7765
|
*/
|
|
7583
|
-
async registerA2PEvidenceUpload(orgUuid, brandUuid, data) {
|
|
7766
|
+
async registerA2PEvidenceUpload(orgUuid, brandUuid, data, options) {
|
|
7584
7767
|
return this.fetch(
|
|
7585
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments`,
|
|
7768
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments${campaignQuery(options)}`,
|
|
7586
7769
|
{
|
|
7587
7770
|
method: "POST",
|
|
7588
7771
|
body: JSON.stringify(data)
|
|
7589
7772
|
}
|
|
7590
7773
|
);
|
|
7591
7774
|
}
|
|
7592
|
-
/**
|
|
7593
|
-
|
|
7775
|
+
/**
|
|
7776
|
+
* Remove one uploaded evidence artifact. `campaignUuid` names one of the
|
|
7777
|
+
* brand's campaigns; without it the brand's first campaign is written.
|
|
7778
|
+
*/
|
|
7779
|
+
async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid, options) {
|
|
7594
7780
|
return this.fetch(
|
|
7595
7781
|
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/${encodeURIComponent(
|
|
7596
7782
|
attachmentUuid
|
|
7597
|
-
)}`,
|
|
7783
|
+
)}${campaignQuery(options)}`,
|
|
7598
7784
|
{ method: "DELETE" }
|
|
7599
7785
|
);
|
|
7600
7786
|
}
|
|
@@ -7650,9 +7836,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7650
7836
|
method: "DELETE"
|
|
7651
7837
|
});
|
|
7652
7838
|
}
|
|
7653
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
7839
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0, filters = {}) {
|
|
7840
|
+
const params = new URLSearchParams({ limit: String(limit), offset: String(offset) });
|
|
7841
|
+
if (filters.status) params.set("status", filters.status);
|
|
7842
|
+
if (filters.occurredAfter) params.set("occurredAfter", filters.occurredAfter);
|
|
7843
|
+
if (filters.occurredBefore) params.set("occurredBefore", filters.occurredBefore);
|
|
7654
7844
|
return this.fetch(
|
|
7655
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries
|
|
7845
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?${params}`
|
|
7656
7846
|
);
|
|
7657
7847
|
}
|
|
7658
7848
|
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
@@ -7819,6 +8009,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7819
8009
|
function businessProfilePath(orgUuid, legalEntityUuid) {
|
|
7820
8010
|
return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
|
|
7821
8011
|
}
|
|
8012
|
+
function campaignQuery(options) {
|
|
8013
|
+
return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
|
|
8014
|
+
}
|
|
7822
8015
|
|
|
7823
8016
|
// src/api/oauth.ts
|
|
7824
8017
|
function getOAuthPath(providerSlug, action) {
|
|
@@ -7935,6 +8128,13 @@ function appendAnalyticsFilters(params, filters) {
|
|
|
7935
8128
|
filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
|
|
7936
8129
|
filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
|
|
7937
8130
|
}
|
|
8131
|
+
function appendPhoneLogFilters(params, filters) {
|
|
8132
|
+
if (!filters) return;
|
|
8133
|
+
if (filters.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
8134
|
+
if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
8135
|
+
if (filters.dateTo) params.set("dateTo", filters.dateTo);
|
|
8136
|
+
if (filters.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
8137
|
+
}
|
|
7938
8138
|
var PhoneNumbersApi = class extends BaseApiClient {
|
|
7939
8139
|
/** List phone numbers in a workspace, optionally including archived. */
|
|
7940
8140
|
async getPhoneNumbers(wid, options) {
|
|
@@ -8009,16 +8209,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
8009
8209
|
if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
8010
8210
|
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
8011
8211
|
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
8212
|
+
if (filters?.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
8012
8213
|
if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
|
|
8013
8214
|
return this.fetch(`w/${wid}/calls?${params}`);
|
|
8014
8215
|
}
|
|
8216
|
+
/**
|
|
8217
|
+
* One time-ordered page over a number's calls, texts and voicemails.
|
|
8218
|
+
*
|
|
8219
|
+
* Paged by keyset: pass the previous page's `nextCursor` as `cursor` to get
|
|
8220
|
+
* the entries after it. A new entry at the head cannot repeat or skip one.
|
|
8221
|
+
* `modalities` limits the feed to some of the logs.
|
|
8222
|
+
*/
|
|
8223
|
+
async getPhoneNumberActivity(wid, id, options = {}) {
|
|
8224
|
+
const params = new URLSearchParams({ pageSize: String(options.pageSize ?? 25) });
|
|
8225
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
8226
|
+
options.modalities?.forEach((modality) => params.append("modality", modality));
|
|
8227
|
+
appendPhoneLogFilters(params, options);
|
|
8228
|
+
return this.fetch(`w/${wid}/phone-numbers/${id}/activity?${params}`);
|
|
8229
|
+
}
|
|
8015
8230
|
/** List paginated voicemails for a phone number. */
|
|
8016
|
-
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status) {
|
|
8231
|
+
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status, filters) {
|
|
8017
8232
|
const params = new URLSearchParams({
|
|
8018
8233
|
page: String(page),
|
|
8019
8234
|
page_size: String(pageSize)
|
|
8020
8235
|
});
|
|
8021
8236
|
if (status) params.set("status", status);
|
|
8237
|
+
appendPhoneLogFilters(params, filters);
|
|
8022
8238
|
return this.fetch(
|
|
8023
8239
|
`w/${wid}/phone-numbers/${id}/voicemails?${params}`
|
|
8024
8240
|
);
|
|
@@ -8044,9 +8260,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
8044
8260
|
pageSize: String(pageSize)
|
|
8045
8261
|
});
|
|
8046
8262
|
if (filters?.status) params.set("status", filters.status);
|
|
8047
|
-
|
|
8048
|
-
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
8049
|
-
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
8263
|
+
appendPhoneLogFilters(params, filters);
|
|
8050
8264
|
return this.fetch(
|
|
8051
8265
|
`w/${wid}/phone-numbers/${id}/messages?${params}`
|
|
8052
8266
|
);
|
|
@@ -8311,6 +8525,7 @@ var PersonasApi = class extends BaseApiClient {
|
|
|
8311
8525
|
body: JSON.stringify(data)
|
|
8312
8526
|
});
|
|
8313
8527
|
}
|
|
8528
|
+
/** Archives the Persona and its current test Member. Returns 409 while a test chat is open. */
|
|
8314
8529
|
async archivePersona(wid, id) {
|
|
8315
8530
|
return this.fetch(`w/${wid}/personas/${id}/archive`, {
|
|
8316
8531
|
method: "POST",
|
|
@@ -8335,8 +8550,7 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
8335
8550
|
const q = new URLSearchParams();
|
|
8336
8551
|
if (params?.page !== void 0) q.set("page", String(params.page));
|
|
8337
8552
|
if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
|
|
8338
|
-
if (params?.
|
|
8339
|
-
q.set("includeArchived", String(params.includeArchived));
|
|
8553
|
+
if (params?.archived !== void 0) q.set("archived", String(params.archived));
|
|
8340
8554
|
if (params?.source) q.set("source", params.source);
|
|
8341
8555
|
const qs = q.toString() ? `?${q.toString()}` : "";
|
|
8342
8556
|
return this.fetch(`w/${wid}/metrics${qs}`);
|
|
@@ -8380,6 +8594,18 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
8380
8594
|
`w/${wid}/metrics/${metricId}/series?${q.toString()}`
|
|
8381
8595
|
);
|
|
8382
8596
|
}
|
|
8597
|
+
/**
|
|
8598
|
+
* Series for several metrics in one request, each with its default
|
|
8599
|
+
* aggregation. Items come back in the order the ids were given.
|
|
8600
|
+
*/
|
|
8601
|
+
async getMetricSeriesBatch(wid, params) {
|
|
8602
|
+
const q = new URLSearchParams();
|
|
8603
|
+
for (const id of params.metricIds) q.append("metricIds", String(id));
|
|
8604
|
+
q.set("start", params.start);
|
|
8605
|
+
q.set("end", params.end);
|
|
8606
|
+
if (params.bucket) q.set("bucket", params.bucket);
|
|
8607
|
+
return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
|
|
8608
|
+
}
|
|
8383
8609
|
/** On-demand compute of enabled chat-source metrics for one chat. */
|
|
8384
8610
|
async computeChatMetrics(wid, data) {
|
|
8385
8611
|
return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
|
|
@@ -8655,9 +8881,12 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8655
8881
|
);
|
|
8656
8882
|
}
|
|
8657
8883
|
async evaluateTestChatRun(wid, runId) {
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8884
|
+
return this.fetch(
|
|
8885
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`,
|
|
8886
|
+
{
|
|
8887
|
+
method: "POST"
|
|
8888
|
+
}
|
|
8889
|
+
);
|
|
8661
8890
|
}
|
|
8662
8891
|
/** Manually end a test chat run (for human-driven runs, which have no
|
|
8663
8892
|
* simulator workflow to mark them completed). */
|
|
@@ -9095,11 +9324,29 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9095
9324
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
9096
9325
|
);
|
|
9097
9326
|
}
|
|
9098
|
-
|
|
9327
|
+
/**
|
|
9328
|
+
* One page of a run's items. ``cursor`` is the previous page's
|
|
9329
|
+
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
9330
|
+
* from ``hasMore``, never from the returned row count.
|
|
9331
|
+
*/
|
|
9332
|
+
async getSyncRunItemsPage(wid, connectionId, runId, options) {
|
|
9333
|
+
const params = new URLSearchParams();
|
|
9334
|
+
if (options?.limit != null) params.set("limit", String(options.limit));
|
|
9335
|
+
if (options?.newestFirst) params.set("newest_first", "true");
|
|
9336
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
9337
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
9099
9338
|
return this.fetch(
|
|
9100
|
-
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items
|
|
9339
|
+
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items${qs}`
|
|
9101
9340
|
);
|
|
9102
9341
|
}
|
|
9342
|
+
/**
|
|
9343
|
+
* The run's items as a flat list. Kept for the published CLI surface; the
|
|
9344
|
+
* server returns the canonical cursor page, and this unwraps its ``items``.
|
|
9345
|
+
*/
|
|
9346
|
+
async getSyncRunItems(wid, connectionId, runId, limit = 500) {
|
|
9347
|
+
const page = await this.getSyncRunItemsPage(wid, connectionId, runId, { limit });
|
|
9348
|
+
return page.items;
|
|
9349
|
+
}
|
|
9103
9350
|
/**
|
|
9104
9351
|
* Clear a manual-unlink exclusion for a member on a connection so
|
|
9105
9352
|
* subsequent outbound syncs stop silently skipping them. Idempotent:
|
|
@@ -9219,6 +9466,20 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9219
9466
|
|
|
9220
9467
|
// src/api/hubspot.ts
|
|
9221
9468
|
var HubspotApi = class extends BaseApiClient {
|
|
9469
|
+
async getHubspotBookingReceipt(wid, meetingId) {
|
|
9470
|
+
return this.fetch(
|
|
9471
|
+
`w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/receipt`
|
|
9472
|
+
);
|
|
9473
|
+
}
|
|
9474
|
+
async releaseHubspotBookingAttempt(wid, meetingId, data) {
|
|
9475
|
+
return this.fetch(
|
|
9476
|
+
`w/${wid}/app-connections/hubspot/booking-deals/${encodeURIComponent(meetingId)}/release`,
|
|
9477
|
+
{
|
|
9478
|
+
method: "POST",
|
|
9479
|
+
body: JSON.stringify(data)
|
|
9480
|
+
}
|
|
9481
|
+
);
|
|
9482
|
+
}
|
|
9222
9483
|
/**
|
|
9223
9484
|
* Create the HubSpot connection shell (no credentials yet).
|
|
9224
9485
|
*
|
|
@@ -9375,6 +9636,37 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9375
9636
|
|
|
9376
9637
|
// src/api/sites.ts
|
|
9377
9638
|
var SitesApi = class extends BaseApiClient {
|
|
9639
|
+
/** Start a fresh synthetic patient session on the Site's configured Workflow. */
|
|
9640
|
+
async startPublicDemo(wid, siteUuid, request) {
|
|
9641
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
|
|
9642
|
+
method: "POST",
|
|
9643
|
+
body: JSON.stringify(request)
|
|
9644
|
+
});
|
|
9645
|
+
}
|
|
9646
|
+
/** Read only a demo the acting Member drives. */
|
|
9647
|
+
async getPublicDemo(wid, siteUuid, runId) {
|
|
9648
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
|
|
9649
|
+
}
|
|
9650
|
+
/** End this visitor's run and release its test resources. */
|
|
9651
|
+
async endPublicDemo(wid, siteUuid, runId) {
|
|
9652
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
|
|
9653
|
+
method: "POST",
|
|
9654
|
+
keepalive: true,
|
|
9655
|
+
body: JSON.stringify({})
|
|
9656
|
+
});
|
|
9657
|
+
}
|
|
9658
|
+
async sendPublicDemoMessage(wid, siteUuid, runId, request) {
|
|
9659
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
|
|
9660
|
+
method: "POST",
|
|
9661
|
+
body: JSON.stringify(request)
|
|
9662
|
+
});
|
|
9663
|
+
}
|
|
9664
|
+
async submitPublicDemoForm(wid, siteUuid, runId, request) {
|
|
9665
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
|
|
9666
|
+
method: "PUT",
|
|
9667
|
+
body: JSON.stringify(request)
|
|
9668
|
+
});
|
|
9669
|
+
}
|
|
9378
9670
|
/** List all sites in a workspace. */
|
|
9379
9671
|
async getSites(wid) {
|
|
9380
9672
|
return this.fetch(`w/${wid}/sites`);
|
|
@@ -9414,6 +9706,15 @@ var SitesApi = class extends BaseApiClient {
|
|
|
9414
9706
|
async getSiteSource(wid, siteId) {
|
|
9415
9707
|
return this.fetch(`w/${wid}/sites/${siteId}/source`);
|
|
9416
9708
|
}
|
|
9709
|
+
/** List source release revisions from newest to oldest. */
|
|
9710
|
+
async getSiteSourceReleases(wid, siteId, options = {}) {
|
|
9711
|
+
const params = new URLSearchParams();
|
|
9712
|
+
if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
|
|
9713
|
+
if (options.limit != null) params.set("limit", String(options.limit));
|
|
9714
|
+
return this.fetch(
|
|
9715
|
+
`w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
|
|
9716
|
+
);
|
|
9717
|
+
}
|
|
9417
9718
|
/** Starter templates the caller may seed (superuser-only ones filtered server-side). */
|
|
9418
9719
|
async getSiteSourceTemplates(wid, siteId) {
|
|
9419
9720
|
return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
|
|
@@ -10399,6 +10700,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10399
10700
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
10400
10701
|
const query2 = new URLSearchParams();
|
|
10401
10702
|
if (includeArchived) query2.set("include_archived", "true");
|
|
10703
|
+
if (pageOpts?.search) query2.set("search", pageOpts.search);
|
|
10704
|
+
if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
|
|
10402
10705
|
if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
|
|
10403
10706
|
if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
|
|
10404
10707
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
@@ -10755,6 +11058,12 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10755
11058
|
|
|
10756
11059
|
// src/api/workflows.ts
|
|
10757
11060
|
var WorkflowsApi = class extends BaseApiClient {
|
|
11061
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
11062
|
+
const body = new FormData();
|
|
11063
|
+
body.append("file", file, relativePath.split("/").pop());
|
|
11064
|
+
body.append("relativePath", relativePath);
|
|
11065
|
+
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
11066
|
+
}
|
|
10758
11067
|
/** List all workflows in a workspace, optionally including archived ones. */
|
|
10759
11068
|
async getWorkflows(wid, options = {}) {
|
|
10760
11069
|
const params = new URLSearchParams();
|
|
@@ -11210,6 +11519,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
11210
11519
|
Scope2["CHATS_READ"] = "chats:read";
|
|
11211
11520
|
Scope2["CHATS_WRITE"] = "chats:write";
|
|
11212
11521
|
Scope2["CHATS_ADMIN"] = "chats:admin";
|
|
11522
|
+
Scope2["DEMOS_RUN"] = "demos:run";
|
|
11213
11523
|
Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
|
|
11214
11524
|
Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
|
|
11215
11525
|
Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
|
|
@@ -11460,6 +11770,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
11460
11770
|
EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
|
|
11461
11771
|
EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
|
|
11462
11772
|
EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
|
|
11773
|
+
EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
|
|
11463
11774
|
EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
|
|
11464
11775
|
EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
|
|
11465
11776
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
@@ -11505,6 +11816,7 @@ var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
|
11505
11816
|
EventRuleActionType2["INVOKE_CUSTOM_TOOL"] = "custom_tool:invoke";
|
|
11506
11817
|
EventRuleActionType2["MONDAY_UPSERT_ITEM"] = "monday:upsert_item";
|
|
11507
11818
|
EventRuleActionType2["MONDAY_REFRESH"] = "monday:refresh";
|
|
11819
|
+
EventRuleActionType2["HUBSPOT_CREATE_DEAL_FROM_BOOKING"] = "hubspot:create_deal_from_booking";
|
|
11508
11820
|
EventRuleActionType2["ASSIGNMENT_CONCLUDE"] = "assignment:conclude";
|
|
11509
11821
|
EventRuleActionType2["JOURNEY_ENROLL"] = "journey:enroll";
|
|
11510
11822
|
EventRuleActionType2["SMS_SEND"] = "sms:send";
|
|
@@ -11551,9 +11863,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11551
11863
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
11552
11864
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
11553
11865
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
11554
|
-
WorkspaceFeature2["JOURNEY_V2_EDITOR"] = "journey_v2_editor";
|
|
11555
|
-
WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
|
|
11556
|
-
WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
|
|
11557
11866
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
11558
11867
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
11559
11868
|
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
@@ -11573,6 +11882,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11573
11882
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
11574
11883
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
11575
11884
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
11885
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
11886
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
11887
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
11888
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
11889
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
11576
11890
|
return WorkspaceFeature2;
|
|
11577
11891
|
})(WorkspaceFeature || {});
|
|
11578
11892
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -12409,6 +12723,12 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12409
12723
|
async getWorkspaces(options) {
|
|
12410
12724
|
return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
|
|
12411
12725
|
}
|
|
12726
|
+
/** One organization page reached through organization or workspace membership. */
|
|
12727
|
+
async getWorkspaceOrganizationDirectory(options) {
|
|
12728
|
+
return this.fetch(
|
|
12729
|
+
`w/organizations?${workspaceDirectoryParams(options)}`
|
|
12730
|
+
);
|
|
12731
|
+
}
|
|
12412
12732
|
/**
|
|
12413
12733
|
* Page 1 of each organization's workspace directory, in one request.
|
|
12414
12734
|
* Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
|
|
@@ -12510,6 +12830,18 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12510
12830
|
const url = `w/${wid}/notifications${queryString ? `?${queryString}` : ""}`;
|
|
12511
12831
|
return this.fetch(url);
|
|
12512
12832
|
}
|
|
12833
|
+
async getNotificationSubscriptions(wid) {
|
|
12834
|
+
return this.fetch(`w/${wid}/notifications/subscriptions`);
|
|
12835
|
+
}
|
|
12836
|
+
async updateNotificationSubscription(wid, id, enabled) {
|
|
12837
|
+
return this.fetch(`w/${wid}/notifications/subscriptions/${id}`, {
|
|
12838
|
+
method: "PATCH",
|
|
12839
|
+
body: JSON.stringify({ enabled })
|
|
12840
|
+
});
|
|
12841
|
+
}
|
|
12842
|
+
async getNotificationAudience(wid, id) {
|
|
12843
|
+
return this.fetch(`w/${wid}/notifications/audiences/${id}`);
|
|
12844
|
+
}
|
|
12513
12845
|
/** Get a single notification by ID. */
|
|
12514
12846
|
async getNotification(wid, id) {
|
|
12515
12847
|
return this.fetch(`w/${wid}/notifications/${id}`);
|
|
@@ -12615,13 +12947,6 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12615
12947
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12616
12948
|
return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
|
|
12617
12949
|
}
|
|
12618
|
-
/** Create a new client workspace under a reseller workspace. */
|
|
12619
|
-
async createClientWorkspace(wid, data) {
|
|
12620
|
-
return this.fetch(`w/${wid}/reseller/workspaces`, {
|
|
12621
|
-
method: "POST",
|
|
12622
|
-
body: JSON.stringify(data)
|
|
12623
|
-
});
|
|
12624
|
-
}
|
|
12625
12950
|
/** Get a single client workspace by ID. */
|
|
12626
12951
|
async getClientWorkspace(wid, workspaceId) {
|
|
12627
12952
|
return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
|
|
@@ -12731,7 +13056,9 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12731
13056
|
searchParams.set("revision_mode", "active");
|
|
12732
13057
|
}
|
|
12733
13058
|
const qs = searchParams.toString();
|
|
12734
|
-
const data = await this.fetch(
|
|
13059
|
+
const data = await this.fetch(
|
|
13060
|
+
`w/${wid}/export${qs ? `?${qs}` : ""}`
|
|
13061
|
+
);
|
|
12735
13062
|
this.verifyExportSelection(data, workflowId, options);
|
|
12736
13063
|
return data;
|
|
12737
13064
|
}
|
|
@@ -13097,6 +13424,15 @@ var MedicalBillingApi = class extends BaseApiClient {
|
|
|
13097
13424
|
}
|
|
13098
13425
|
};
|
|
13099
13426
|
|
|
13427
|
+
// src/types/generated/organization_webhook.ts
|
|
13428
|
+
var OrgWebhookDeliveryResponseStatus = {
|
|
13429
|
+
pending: "pending",
|
|
13430
|
+
processing: "processing",
|
|
13431
|
+
sent: "sent",
|
|
13432
|
+
dead_letter: "dead_letter",
|
|
13433
|
+
expired: "expired"
|
|
13434
|
+
};
|
|
13435
|
+
|
|
13100
13436
|
// src/types/generated/bundle_contract.ts
|
|
13101
13437
|
var BundleGrantRequestGranteeType = {
|
|
13102
13438
|
organization: "organization",
|
|
@@ -13302,6 +13638,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13302
13638
|
"archiveMemberByExternalId",
|
|
13303
13639
|
"archiveMemberRelationship",
|
|
13304
13640
|
"archivePersona",
|
|
13641
|
+
"archiveInbox",
|
|
13305
13642
|
"archivePhoneNumber",
|
|
13306
13643
|
"archiveStep",
|
|
13307
13644
|
"archiveTask",
|
|
@@ -13375,7 +13712,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13375
13712
|
"createChatCompletion",
|
|
13376
13713
|
"createChatFilter",
|
|
13377
13714
|
"createChatLabel",
|
|
13378
|
-
"createClientWorkspace",
|
|
13379
13715
|
"createConnection",
|
|
13380
13716
|
"createContactPermission",
|
|
13381
13717
|
"createCustomTool",
|
|
@@ -13583,6 +13919,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13583
13919
|
"getApiKeys",
|
|
13584
13920
|
"getArchiveBlockers",
|
|
13585
13921
|
"getAthenaPlatformApp",
|
|
13922
|
+
"getFhirConnectionSyncConfig",
|
|
13586
13923
|
"getAssignment",
|
|
13587
13924
|
"getAssignmentCelContext",
|
|
13588
13925
|
"getAssignmentMessages",
|
|
@@ -13641,7 +13978,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13641
13978
|
"getChats",
|
|
13642
13979
|
"getChatsDailyCreationStats",
|
|
13643
13980
|
"getChatsNeedsResponse",
|
|
13644
|
-
"getChildThreadMessages",
|
|
13645
13981
|
"getClientWorkspace",
|
|
13646
13982
|
"getConfigurationHealth",
|
|
13647
13983
|
"getConfluenceStatus",
|
|
@@ -13683,7 +14019,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13683
14019
|
"getDevices",
|
|
13684
14020
|
"getDiscordBot",
|
|
13685
14021
|
"getDiscordBotAccounts",
|
|
13686
|
-
"getDiscordBotByUuid",
|
|
13687
14022
|
"getDiscordBots",
|
|
13688
14023
|
"getDiscordGuilds",
|
|
13689
14024
|
"getDiscordThreads",
|
|
@@ -13730,6 +14065,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13730
14065
|
"getQueryFields",
|
|
13731
14066
|
"getSiteSharing",
|
|
13732
14067
|
"getSiteSource",
|
|
14068
|
+
"getSiteSourceReleases",
|
|
13733
14069
|
"getSiteSourceTemplates",
|
|
13734
14070
|
"getThemeSettings",
|
|
13735
14071
|
"importSiteSourceZip",
|
|
@@ -13777,6 +14113,8 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13777
14113
|
"getHubspotObjectProperties",
|
|
13778
14114
|
"getHubspotReconciliationMatches",
|
|
13779
14115
|
"getHubspotStatus",
|
|
14116
|
+
"getHubspotBookingReceipt",
|
|
14117
|
+
"releaseHubspotBookingAttempt",
|
|
13780
14118
|
"getHubspotSyncLogs",
|
|
13781
14119
|
"getHubspotTransformPresets",
|
|
13782
14120
|
"getICalFeedUrl",
|
|
@@ -13786,6 +14124,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13786
14124
|
"getInbox",
|
|
13787
14125
|
"getInboxEmail",
|
|
13788
14126
|
"getInboxEmails",
|
|
14127
|
+
"getInboxArchiveBlockers",
|
|
13789
14128
|
"getInboxOutboundEmailStats",
|
|
13790
14129
|
"getInboxThreads",
|
|
13791
14130
|
"getInboxes",
|
|
@@ -13861,6 +14200,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13861
14200
|
"getPhoneCalls",
|
|
13862
14201
|
"getPhoneCallByUuid",
|
|
13863
14202
|
"getPhoneNumber",
|
|
14203
|
+
"getPhoneNumberActivity",
|
|
13864
14204
|
"getPhoneNumberCalls",
|
|
13865
14205
|
"getPhoneNumberFaxes",
|
|
13866
14206
|
"getPhoneNumberMessages",
|
|
@@ -13914,6 +14254,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13914
14254
|
"getSupervisor",
|
|
13915
14255
|
"getSupervisors",
|
|
13916
14256
|
"getSyncRunItems",
|
|
14257
|
+
"getSyncRunItemsPage",
|
|
13917
14258
|
"getSyncRuns",
|
|
13918
14259
|
"getTask",
|
|
13919
14260
|
"getTaskChats",
|
|
@@ -14036,6 +14377,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14036
14377
|
"deleteMetric",
|
|
14037
14378
|
"listMetricObservations",
|
|
14038
14379
|
"getMetricSeries",
|
|
14380
|
+
"getMetricSeriesBatch",
|
|
14039
14381
|
"computeChatMetrics",
|
|
14040
14382
|
"listPushSubscriptions",
|
|
14041
14383
|
"listResourceWorkflows",
|
|
@@ -14366,7 +14708,6 @@ function bindChatsMethods(target, chats) {
|
|
|
14366
14708
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
14367
14709
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
14368
14710
|
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
14369
|
-
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
14370
14711
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
14371
14712
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
14372
14713
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -14584,6 +14925,7 @@ function bindMembersMethods(target, members) {
|
|
|
14584
14925
|
// src/client/bindings/workspaces.ts
|
|
14585
14926
|
function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
14586
14927
|
target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
|
|
14928
|
+
target.getWorkspaceOrganizationDirectory = workspaces.getWorkspaceOrganizationDirectory.bind(workspaces);
|
|
14587
14929
|
target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
|
|
14588
14930
|
target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
|
|
14589
14931
|
target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
|
|
@@ -14600,6 +14942,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14600
14942
|
target.getBusinessHoursStatus = workspaces.getBusinessHoursStatus.bind(workspaces);
|
|
14601
14943
|
target.getAvailableWorkspaceFeatures = workspaces.getAvailableWorkspaceFeatures.bind(workspaces);
|
|
14602
14944
|
target.getWorkspaceNotices = workspaces.getWorkspaceNotices.bind(workspaces);
|
|
14945
|
+
target.getNotificationSubscriptions = workspaces.getNotificationSubscriptions.bind(workspaces);
|
|
14946
|
+
target.updateNotificationSubscription = workspaces.updateNotificationSubscription.bind(workspaces);
|
|
14947
|
+
target.getNotificationAudience = workspaces.getNotificationAudience.bind(workspaces);
|
|
14603
14948
|
target.getNotifications = workspaces.getNotifications.bind(workspaces);
|
|
14604
14949
|
target.getNotification = workspaces.getNotification.bind(workspaces);
|
|
14605
14950
|
target.getUnreadNotificationCount = workspaces.getUnreadNotificationCount.bind(workspaces);
|
|
@@ -14607,7 +14952,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14607
14952
|
target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
|
|
14608
14953
|
target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
|
|
14609
14954
|
target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
|
|
14610
|
-
target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
|
|
14611
14955
|
target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
|
|
14612
14956
|
target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
|
|
14613
14957
|
target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
|
|
@@ -14664,6 +15008,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14664
15008
|
|
|
14665
15009
|
// src/client/bindings/auth.ts
|
|
14666
15010
|
function bindAuthMethods(target, auth, assignments) {
|
|
15011
|
+
target.getAccountNotices = auth.getAccountNotices.bind(auth);
|
|
15012
|
+
target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
|
|
15013
|
+
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
14667
15014
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
14668
15015
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
14669
15016
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
@@ -14725,6 +15072,11 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
14725
15072
|
|
|
14726
15073
|
// src/client/bindings/sites.ts
|
|
14727
15074
|
function bindSitesMethods(target, sites) {
|
|
15075
|
+
target.endPublicDemo = sites.endPublicDemo.bind(sites);
|
|
15076
|
+
target.startPublicDemo = sites.startPublicDemo.bind(sites);
|
|
15077
|
+
target.getPublicDemo = sites.getPublicDemo.bind(sites);
|
|
15078
|
+
target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
|
|
15079
|
+
target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
|
|
14728
15080
|
target.getSites = sites.getSites.bind(sites);
|
|
14729
15081
|
target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
|
|
14730
15082
|
target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
|
|
@@ -14732,6 +15084,7 @@ function bindSitesMethods(target, sites) {
|
|
|
14732
15084
|
target.getSiteSharing = sites.getSiteSharing.bind(sites);
|
|
14733
15085
|
target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
|
|
14734
15086
|
target.getSiteSource = sites.getSiteSource.bind(sites);
|
|
15087
|
+
target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
|
|
14735
15088
|
target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
|
|
14736
15089
|
target.createSiteSource = sites.createSiteSource.bind(sites);
|
|
14737
15090
|
target.buildSiteSource = sites.buildSiteSource.bind(sites);
|
|
@@ -14792,6 +15145,8 @@ function bindFilesMethods(target, files) {
|
|
|
14792
15145
|
target.createFolder = files.createFolder.bind(files);
|
|
14793
15146
|
target.updateFolder = files.updateFolder.bind(files);
|
|
14794
15147
|
target.deleteFolder = files.deleteFolder.bind(files);
|
|
15148
|
+
target.reindexFile = files.reindexFile.bind(files);
|
|
15149
|
+
target.searchFile = files.searchFile.bind(files);
|
|
14795
15150
|
target.reindexFolder = files.reindexFolder.bind(files);
|
|
14796
15151
|
target.searchFolder = files.searchFolder.bind(files);
|
|
14797
15152
|
target.getFileLabels = files.getFileLabels.bind(files);
|
|
@@ -14879,6 +15234,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
14879
15234
|
target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
|
|
14880
15235
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
14881
15236
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
15237
|
+
target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
|
|
14882
15238
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
14883
15239
|
target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
|
|
14884
15240
|
target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
|
|
@@ -14970,6 +15326,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14970
15326
|
target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
|
|
14971
15327
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
14972
15328
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
15329
|
+
target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
|
|
14973
15330
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
14974
15331
|
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
14975
15332
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
@@ -14983,6 +15340,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14983
15340
|
target.createInbox = inboxes.createInbox.bind(inboxes);
|
|
14984
15341
|
target.updateInbox = inboxes.updateInbox.bind(inboxes);
|
|
14985
15342
|
target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
|
|
15343
|
+
target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
|
|
15344
|
+
target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
|
|
14986
15345
|
target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
|
|
14987
15346
|
target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
|
|
14988
15347
|
target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
|
|
@@ -15144,7 +15503,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15144
15503
|
target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
|
|
15145
15504
|
target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
|
|
15146
15505
|
target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
|
|
15147
|
-
target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
|
|
15148
15506
|
target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
|
|
15149
15507
|
target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
|
|
15150
15508
|
target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
|
|
@@ -15209,6 +15567,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15209
15567
|
target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
|
|
15210
15568
|
target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
|
|
15211
15569
|
target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
|
|
15570
|
+
target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
|
|
15212
15571
|
target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
|
|
15213
15572
|
target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
|
|
15214
15573
|
target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
|
|
@@ -15273,6 +15632,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15273
15632
|
target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
|
|
15274
15633
|
target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
|
|
15275
15634
|
target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
|
|
15635
|
+
target.getHubspotBookingReceipt = hubspot.getHubspotBookingReceipt.bind(hubspot);
|
|
15636
|
+
target.releaseHubspotBookingAttempt = hubspot.releaseHubspotBookingAttempt.bind(hubspot);
|
|
15276
15637
|
target.installHubspot = hubspot.installHubspot.bind(hubspot);
|
|
15277
15638
|
target.configureHubspot = hubspot.configureHubspot.bind(hubspot);
|
|
15278
15639
|
target.startHubspotOAuth = hubspot.startHubspotOAuth.bind(hubspot);
|
|
@@ -15303,6 +15664,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15303
15664
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
15304
15665
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
15305
15666
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
15667
|
+
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
15306
15668
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
15307
15669
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
15308
15670
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
@@ -15349,6 +15711,13 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
15349
15711
|
|
|
15350
15712
|
// src/client/bindings/org.ts
|
|
15351
15713
|
function bindOrgMethods(target, org) {
|
|
15714
|
+
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
15715
|
+
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
15716
|
+
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
15717
|
+
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
15718
|
+
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
15719
|
+
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
15720
|
+
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
15352
15721
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
15353
15722
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
15354
15723
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -15562,6 +15931,7 @@ function bindMetricsMethods(target, metrics) {
|
|
|
15562
15931
|
target.deleteMetric = metrics.deleteMetric.bind(metrics);
|
|
15563
15932
|
target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
|
|
15564
15933
|
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
15934
|
+
target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
|
|
15565
15935
|
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
15566
15936
|
}
|
|
15567
15937
|
|
|
@@ -15711,7 +16081,6 @@ var GravityRailClient = class {
|
|
|
15711
16081
|
summarizeChat;
|
|
15712
16082
|
getChatMessages;
|
|
15713
16083
|
getChatTaskTransitions;
|
|
15714
|
-
getChildThreadMessages;
|
|
15715
16084
|
getChatToolCallMessages;
|
|
15716
16085
|
getChatTools;
|
|
15717
16086
|
initiateOutboundCall;
|
|
@@ -15919,6 +16288,7 @@ var GravityRailClient = class {
|
|
|
15919
16288
|
deleteMetric;
|
|
15920
16289
|
listMetricObservations;
|
|
15921
16290
|
getMetricSeries;
|
|
16291
|
+
getMetricSeriesBatch;
|
|
15922
16292
|
computeChatMetrics;
|
|
15923
16293
|
// Dashboards API
|
|
15924
16294
|
getDashboards;
|
|
@@ -16089,6 +16459,7 @@ var GravityRailClient = class {
|
|
|
16089
16459
|
inspectPrompt;
|
|
16090
16460
|
// Workspaces API
|
|
16091
16461
|
getWorkspaces;
|
|
16462
|
+
getWorkspaceOrganizationDirectory;
|
|
16092
16463
|
getOrganizationWorkspacePages;
|
|
16093
16464
|
getDeviceAdmissibleWorkspaces;
|
|
16094
16465
|
getPublicWorkspaces;
|
|
@@ -16105,6 +16476,9 @@ var GravityRailClient = class {
|
|
|
16105
16476
|
getBusinessHoursStatus;
|
|
16106
16477
|
getAvailableWorkspaceFeatures;
|
|
16107
16478
|
getWorkspaceNotices;
|
|
16479
|
+
getNotificationSubscriptions;
|
|
16480
|
+
updateNotificationSubscription;
|
|
16481
|
+
getNotificationAudience;
|
|
16108
16482
|
getNotifications;
|
|
16109
16483
|
getNotification;
|
|
16110
16484
|
getUnreadNotificationCount;
|
|
@@ -16112,7 +16486,6 @@ var GravityRailClient = class {
|
|
|
16112
16486
|
dismissNotification;
|
|
16113
16487
|
dismissAllNotifications;
|
|
16114
16488
|
getResellerWorkspaces;
|
|
16115
|
-
createClientWorkspace;
|
|
16116
16489
|
getClientWorkspace;
|
|
16117
16490
|
updateClientWorkspace;
|
|
16118
16491
|
deleteClientWorkspace;
|
|
@@ -16148,6 +16521,13 @@ var GravityRailClient = class {
|
|
|
16148
16521
|
upsertWidgetDomain;
|
|
16149
16522
|
deleteWidgetDomain;
|
|
16150
16523
|
// Org API
|
|
16524
|
+
getOrgManagerCredentialResponse;
|
|
16525
|
+
authorizeOrgManagerDelegation;
|
|
16526
|
+
getOrgManagerChats;
|
|
16527
|
+
createOrgManagerChat;
|
|
16528
|
+
getOrgManagerMessages;
|
|
16529
|
+
startOrgManagerTurn;
|
|
16530
|
+
stopOrgManagerTurn;
|
|
16151
16531
|
listOrgDomains;
|
|
16152
16532
|
registerOrgDomain;
|
|
16153
16533
|
getOrgDomain;
|
|
@@ -16222,6 +16602,9 @@ var GravityRailClient = class {
|
|
|
16222
16602
|
declineInvitation;
|
|
16223
16603
|
// Auth API
|
|
16224
16604
|
getUserAccount;
|
|
16605
|
+
getAccountNotices;
|
|
16606
|
+
viewAccountNotice;
|
|
16607
|
+
dismissAccountNotice;
|
|
16225
16608
|
updateUserAccount;
|
|
16226
16609
|
recordAcquisition;
|
|
16227
16610
|
login;
|
|
@@ -16279,6 +16662,11 @@ var GravityRailClient = class {
|
|
|
16279
16662
|
getAssignmentTools;
|
|
16280
16663
|
executeAssignmentTool;
|
|
16281
16664
|
// Sites API
|
|
16665
|
+
startPublicDemo;
|
|
16666
|
+
endPublicDemo;
|
|
16667
|
+
getPublicDemo;
|
|
16668
|
+
sendPublicDemoMessage;
|
|
16669
|
+
submitPublicDemoForm;
|
|
16282
16670
|
getSites;
|
|
16283
16671
|
checkSiteSlugAvailability;
|
|
16284
16672
|
checkSiteDomainAvailability;
|
|
@@ -16286,6 +16674,7 @@ var GravityRailClient = class {
|
|
|
16286
16674
|
getSiteSharing;
|
|
16287
16675
|
updateSiteSharing;
|
|
16288
16676
|
getSiteSource;
|
|
16677
|
+
getSiteSourceReleases;
|
|
16289
16678
|
getSiteSourceTemplates;
|
|
16290
16679
|
createSiteSource;
|
|
16291
16680
|
buildSiteSource;
|
|
@@ -16348,6 +16737,8 @@ var GravityRailClient = class {
|
|
|
16348
16737
|
createFolder;
|
|
16349
16738
|
updateFolder;
|
|
16350
16739
|
deleteFolder;
|
|
16740
|
+
reindexFile;
|
|
16741
|
+
searchFile;
|
|
16351
16742
|
reindexFolder;
|
|
16352
16743
|
searchFolder;
|
|
16353
16744
|
getFileLabels;
|
|
@@ -16404,6 +16795,7 @@ var GravityRailClient = class {
|
|
|
16404
16795
|
getWorkflowsOutlineBatch;
|
|
16405
16796
|
createWorkflow;
|
|
16406
16797
|
updateWorkflow;
|
|
16798
|
+
uploadWorkflowKnowledge;
|
|
16407
16799
|
getWorkflowDeletionPreview;
|
|
16408
16800
|
deleteWorkflow;
|
|
16409
16801
|
archiveWorkflow;
|
|
@@ -16489,6 +16881,7 @@ var GravityRailClient = class {
|
|
|
16489
16881
|
getPhoneNumberOutboundAnalyticsSummary;
|
|
16490
16882
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
16491
16883
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
16884
|
+
getPhoneNumberActivity;
|
|
16492
16885
|
getPhoneNumberMessages;
|
|
16493
16886
|
getPhoneNumberFaxes;
|
|
16494
16887
|
getPhoneNumberVoicemails;
|
|
@@ -16502,6 +16895,8 @@ var GravityRailClient = class {
|
|
|
16502
16895
|
createInbox;
|
|
16503
16896
|
updateInbox;
|
|
16504
16897
|
deleteInbox;
|
|
16898
|
+
archiveInbox;
|
|
16899
|
+
getInboxArchiveBlockers;
|
|
16505
16900
|
getInboxEmails;
|
|
16506
16901
|
getInboxEmail;
|
|
16507
16902
|
markEmailAsRead;
|
|
@@ -16660,7 +17055,6 @@ var GravityRailClient = class {
|
|
|
16660
17055
|
// Discord Bots API
|
|
16661
17056
|
getDiscordBots;
|
|
16662
17057
|
getDiscordBot;
|
|
16663
|
-
getDiscordBotByUuid;
|
|
16664
17058
|
createDiscordBot;
|
|
16665
17059
|
updateDiscordBot;
|
|
16666
17060
|
deleteDiscordBot;
|
|
@@ -16728,6 +17122,7 @@ var GravityRailClient = class {
|
|
|
16728
17122
|
fhirGetEncounterSyncRuns;
|
|
16729
17123
|
fhirRefreshEncounterPatient;
|
|
16730
17124
|
fhirBackfillEncounterSync;
|
|
17125
|
+
getFhirConnectionSyncConfig;
|
|
16731
17126
|
getAthenaPlatformApp;
|
|
16732
17127
|
verifyAthenaAccess;
|
|
16733
17128
|
connectAthena;
|
|
@@ -16796,6 +17191,8 @@ var GravityRailClient = class {
|
|
|
16796
17191
|
searchSalesforceRecords;
|
|
16797
17192
|
importSalesforceMembers;
|
|
16798
17193
|
// HubSpot API
|
|
17194
|
+
getHubspotBookingReceipt;
|
|
17195
|
+
releaseHubspotBookingAttempt;
|
|
16799
17196
|
installHubspot;
|
|
16800
17197
|
configureHubspot;
|
|
16801
17198
|
startHubspotOAuth;
|
|
@@ -16827,6 +17224,7 @@ var GravityRailClient = class {
|
|
|
16827
17224
|
startSyncRun;
|
|
16828
17225
|
getSyncRuns;
|
|
16829
17226
|
getSyncRunItems;
|
|
17227
|
+
getSyncRunItemsPage;
|
|
16830
17228
|
getMemberSyncSummary;
|
|
16831
17229
|
getConnectionFieldHomes;
|
|
16832
17230
|
getInboundRecordStatus;
|
|
@@ -17671,6 +18069,13 @@ var StartStepBuilder = class extends JourneyStepBuilder {
|
|
|
17671
18069
|
async apply() {
|
|
17672
18070
|
}
|
|
17673
18071
|
};
|
|
18072
|
+
var LEGACY_JOURNEY_CREATION_GUIDANCE = "New legacy Journeys can no longer be created. Author a new Journey with ws.journeyV2() instead; ws.journey() only adopts and edits a legacy Journey that already exists in this workspace under the same name.";
|
|
18073
|
+
var LegacyJourneyCreationError = class extends Error {
|
|
18074
|
+
constructor() {
|
|
18075
|
+
super(LEGACY_JOURNEY_CREATION_GUIDANCE);
|
|
18076
|
+
this.name = "LegacyJourneyCreationError";
|
|
18077
|
+
}
|
|
18078
|
+
};
|
|
17674
18079
|
var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
17675
18080
|
constructor(name, options = {}) {
|
|
17676
18081
|
super();
|
|
@@ -17798,24 +18203,9 @@ var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
|
17798
18203
|
if (this.goals.length) parts.push(`${this.goals.length} goals`);
|
|
17799
18204
|
return `Journey: ${this.name}${parts.length ? ` (${parts.join(", ")})` : ""}`;
|
|
17800
18205
|
}
|
|
17801
|
-
async apply(
|
|
18206
|
+
async apply(_client) {
|
|
17802
18207
|
if (this._existed) return;
|
|
17803
|
-
|
|
17804
|
-
name: this.name,
|
|
17805
|
-
description: this.description
|
|
17806
|
-
});
|
|
17807
|
-
this._id = result.id;
|
|
17808
|
-
this._uuid = result.uuid;
|
|
17809
|
-
this._created = true;
|
|
17810
|
-
const startStep = (result.steps ?? []).find(
|
|
17811
|
-
(step) => step.id === result.startStepId || step.name === "Start"
|
|
17812
|
-
);
|
|
17813
|
-
if (!startStep) {
|
|
17814
|
-
throw new Error(
|
|
17815
|
-
`Journey '${this.name}' was created without a Start step; edges from journey.start cannot be wired.`
|
|
17816
|
-
);
|
|
17817
|
-
}
|
|
17818
|
-
this.start.adopt(startStep);
|
|
18208
|
+
throw new LegacyJourneyCreationError();
|
|
17819
18209
|
}
|
|
17820
18210
|
};
|
|
17821
18211
|
function buildJourneyConnectionPayload(connection) {
|
|
@@ -18446,9 +18836,8 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18446
18836
|
const created = await client.createJourney({
|
|
18447
18837
|
name: this.name,
|
|
18448
18838
|
description: this.description,
|
|
18449
|
-
// Explicit, always
|
|
18450
|
-
//
|
|
18451
|
-
// legacy Journey that happens to look like a timeline.
|
|
18839
|
+
// Explicit, always: the v2 builder states its engine rather than
|
|
18840
|
+
// relying on whatever the server's omitted-value default is.
|
|
18452
18841
|
executionModel: "v2"
|
|
18453
18842
|
});
|
|
18454
18843
|
this._id = created.id;
|
|
@@ -18881,6 +19270,14 @@ var WorkspaceBuilder = class {
|
|
|
18881
19270
|
this.resources.push(label);
|
|
18882
19271
|
return label;
|
|
18883
19272
|
}
|
|
19273
|
+
/**
|
|
19274
|
+
* The legacy (additive step graph) builder, for EXISTING legacy Journeys.
|
|
19275
|
+
*
|
|
19276
|
+
* It adopts a stored legacy Journey by exact name and edits it. It never
|
|
19277
|
+
* creates one: when the workspace holds no Journey of that name, `apply()`
|
|
19278
|
+
* refuses before any write with guidance to use {@link journeyV2}. The
|
|
19279
|
+
* refusal happens at apply, not here, because adoption is resolved then.
|
|
19280
|
+
*/
|
|
18884
19281
|
journey(name, options = {}) {
|
|
18885
19282
|
const journey = new JourneyBuilder(name, options);
|
|
18886
19283
|
this.resources.push(journey);
|
|
@@ -18892,9 +19289,8 @@ var WorkspaceBuilder = class {
|
|
|
18892
19289
|
*
|
|
18893
19290
|
* A separate factory rather than an option on {@link journey}, because the
|
|
18894
19291
|
* two return different builders with different vocabularies — `.touch()`
|
|
18895
|
-
* and `.ending()` versus `.step()` and `.connectsTo()`.
|
|
18896
|
-
*
|
|
18897
|
-
* compatibility requirement.
|
|
19292
|
+
* and `.ending()` versus `.step()` and `.connectsTo()`. This is the builder
|
|
19293
|
+
* that authors NEW Journeys; {@link journey} only edits existing legacy ones.
|
|
18898
19294
|
*/
|
|
18899
19295
|
journeyV2(name, options = {}) {
|
|
18900
19296
|
const journey = new JourneyV2Builder(name, options);
|
|
@@ -19635,6 +20031,9 @@ function summarizeError(err) {
|
|
|
19635
20031
|
}
|
|
19636
20032
|
return msg.length > 240 ? `${msg.slice(0, 237)}...` : msg;
|
|
19637
20033
|
}
|
|
20034
|
+
if (err instanceof LegacyJourneyCreationError) {
|
|
20035
|
+
return LEGACY_JOURNEY_CREATION_GUIDANCE;
|
|
20036
|
+
}
|
|
19638
20037
|
if (err instanceof Error) {
|
|
19639
20038
|
return err.name || "Error";
|
|
19640
20039
|
}
|
|
@@ -19662,6 +20061,7 @@ var AbilityTypeSlugs = {
|
|
|
19662
20061
|
// Tools
|
|
19663
20062
|
TOOLKITS: "tools:toolkits",
|
|
19664
20063
|
WEB_SEARCH: "tools:web_search",
|
|
20064
|
+
WEB_BROWSER: "tools:web_browser",
|
|
19665
20065
|
CONVERSATION_HISTORY: "tools:conversation_history",
|
|
19666
20066
|
MEMBER_MEMORY: "memory:member_memory",
|
|
19667
20067
|
IMAGE_GENERATION: "tools:image_generation",
|
|
@@ -20359,6 +20759,7 @@ var ActivityEventType = {
|
|
|
20359
20759
|
chatcall_ended: "chat.call_ended",
|
|
20360
20760
|
chatsummary: "chat.summary",
|
|
20361
20761
|
messagesent: "message.sent",
|
|
20762
|
+
messagesend_failed: "message.send_failed",
|
|
20362
20763
|
membermessage_received: "member.message_received",
|
|
20363
20764
|
escalationopened: "escalation.opened",
|
|
20364
20765
|
escalationresolved: "escalation.resolved",
|
|
@@ -20366,6 +20767,8 @@ var ActivityEventType = {
|
|
|
20366
20767
|
callcompleted: "call.completed",
|
|
20367
20768
|
callmissed: "call.missed",
|
|
20368
20769
|
callsummary: "call.summary",
|
|
20770
|
+
callqueued: "call.queued",
|
|
20771
|
+
callnot_placed: "call.not_placed",
|
|
20369
20772
|
presencewent_online: "presence.went_online",
|
|
20370
20773
|
presencewent_offline: "presence.went_offline",
|
|
20371
20774
|
operator_groupmember_added: "operator_group.member_added",
|
|
@@ -20449,6 +20852,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
|
20449
20852
|
ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
|
|
20450
20853
|
ScopeCategory2["MEMBER_ROLES"] = "member_roles";
|
|
20451
20854
|
ScopeCategory2["CHATS"] = "chats";
|
|
20855
|
+
ScopeCategory2["DEMOS"] = "demos";
|
|
20452
20856
|
ScopeCategory2["DM"] = "dm";
|
|
20453
20857
|
ScopeCategory2["WORKFLOWS"] = "workflows";
|
|
20454
20858
|
ScopeCategory2["ASSIGNMENTS"] = "assignments";
|
|
@@ -20565,6 +20969,11 @@ var SCOPES = {
|
|
|
20565
20969
|
category: "chats" /* CHATS */,
|
|
20566
20970
|
description: "View all conversations"
|
|
20567
20971
|
},
|
|
20972
|
+
"demos:run": {
|
|
20973
|
+
name: "demos:run",
|
|
20974
|
+
category: "demos" /* DEMOS */,
|
|
20975
|
+
description: "Start and interact with your own synthetic patient demos"
|
|
20976
|
+
},
|
|
20568
20977
|
"chats:write": {
|
|
20569
20978
|
name: "chats:write",
|
|
20570
20979
|
category: "chats" /* CHATS */,
|
|
@@ -21449,6 +21858,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21449
21858
|
ORG_ONLY_RESOURCES,
|
|
21450
21859
|
OrgApi,
|
|
21451
21860
|
OrgFeature,
|
|
21861
|
+
OrgWebhookDeliveryStatus,
|
|
21452
21862
|
PERMISSION_ADMIN,
|
|
21453
21863
|
PERMISSION_CREATE,
|
|
21454
21864
|
PERMISSION_DELETE,
|