@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/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:
|
|
@@ -9375,6 +9622,37 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9375
9622
|
|
|
9376
9623
|
// src/api/sites.ts
|
|
9377
9624
|
var SitesApi = class extends BaseApiClient {
|
|
9625
|
+
/** Start a fresh synthetic patient session on the Site's configured Workflow. */
|
|
9626
|
+
async startPublicDemo(wid, siteUuid, request) {
|
|
9627
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
|
|
9628
|
+
method: "POST",
|
|
9629
|
+
body: JSON.stringify(request)
|
|
9630
|
+
});
|
|
9631
|
+
}
|
|
9632
|
+
/** Read only a demo the acting Member drives. */
|
|
9633
|
+
async getPublicDemo(wid, siteUuid, runId) {
|
|
9634
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
|
|
9635
|
+
}
|
|
9636
|
+
/** End this visitor's run and release its test resources. */
|
|
9637
|
+
async endPublicDemo(wid, siteUuid, runId) {
|
|
9638
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
|
|
9639
|
+
method: "POST",
|
|
9640
|
+
keepalive: true,
|
|
9641
|
+
body: JSON.stringify({})
|
|
9642
|
+
});
|
|
9643
|
+
}
|
|
9644
|
+
async sendPublicDemoMessage(wid, siteUuid, runId, request) {
|
|
9645
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
|
|
9646
|
+
method: "POST",
|
|
9647
|
+
body: JSON.stringify(request)
|
|
9648
|
+
});
|
|
9649
|
+
}
|
|
9650
|
+
async submitPublicDemoForm(wid, siteUuid, runId, request) {
|
|
9651
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
|
|
9652
|
+
method: "PUT",
|
|
9653
|
+
body: JSON.stringify(request)
|
|
9654
|
+
});
|
|
9655
|
+
}
|
|
9378
9656
|
/** List all sites in a workspace. */
|
|
9379
9657
|
async getSites(wid) {
|
|
9380
9658
|
return this.fetch(`w/${wid}/sites`);
|
|
@@ -9414,6 +9692,15 @@ var SitesApi = class extends BaseApiClient {
|
|
|
9414
9692
|
async getSiteSource(wid, siteId) {
|
|
9415
9693
|
return this.fetch(`w/${wid}/sites/${siteId}/source`);
|
|
9416
9694
|
}
|
|
9695
|
+
/** List source release revisions from newest to oldest. */
|
|
9696
|
+
async getSiteSourceReleases(wid, siteId, options = {}) {
|
|
9697
|
+
const params = new URLSearchParams();
|
|
9698
|
+
if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
|
|
9699
|
+
if (options.limit != null) params.set("limit", String(options.limit));
|
|
9700
|
+
return this.fetch(
|
|
9701
|
+
`w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
|
|
9702
|
+
);
|
|
9703
|
+
}
|
|
9417
9704
|
/** Starter templates the caller may seed (superuser-only ones filtered server-side). */
|
|
9418
9705
|
async getSiteSourceTemplates(wid, siteId) {
|
|
9419
9706
|
return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
|
|
@@ -10399,6 +10686,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10399
10686
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
10400
10687
|
const query2 = new URLSearchParams();
|
|
10401
10688
|
if (includeArchived) query2.set("include_archived", "true");
|
|
10689
|
+
if (pageOpts?.search) query2.set("search", pageOpts.search);
|
|
10690
|
+
if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
|
|
10402
10691
|
if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
|
|
10403
10692
|
if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
|
|
10404
10693
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
@@ -10755,6 +11044,12 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10755
11044
|
|
|
10756
11045
|
// src/api/workflows.ts
|
|
10757
11046
|
var WorkflowsApi = class extends BaseApiClient {
|
|
11047
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
11048
|
+
const body = new FormData();
|
|
11049
|
+
body.append("file", file, relativePath.split("/").pop());
|
|
11050
|
+
body.append("relativePath", relativePath);
|
|
11051
|
+
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
11052
|
+
}
|
|
10758
11053
|
/** List all workflows in a workspace, optionally including archived ones. */
|
|
10759
11054
|
async getWorkflows(wid, options = {}) {
|
|
10760
11055
|
const params = new URLSearchParams();
|
|
@@ -11210,6 +11505,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
11210
11505
|
Scope2["CHATS_READ"] = "chats:read";
|
|
11211
11506
|
Scope2["CHATS_WRITE"] = "chats:write";
|
|
11212
11507
|
Scope2["CHATS_ADMIN"] = "chats:admin";
|
|
11508
|
+
Scope2["DEMOS_RUN"] = "demos:run";
|
|
11213
11509
|
Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
|
|
11214
11510
|
Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
|
|
11215
11511
|
Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
|
|
@@ -11460,6 +11756,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
11460
11756
|
EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
|
|
11461
11757
|
EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
|
|
11462
11758
|
EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
|
|
11759
|
+
EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
|
|
11463
11760
|
EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
|
|
11464
11761
|
EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
|
|
11465
11762
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
@@ -11551,9 +11848,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11551
11848
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
11552
11849
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
11553
11850
|
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
11851
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
11558
11852
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
11559
11853
|
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
@@ -11573,6 +11867,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11573
11867
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
11574
11868
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
11575
11869
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
11870
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
11871
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
11872
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
11873
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
11874
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
11576
11875
|
return WorkspaceFeature2;
|
|
11577
11876
|
})(WorkspaceFeature || {});
|
|
11578
11877
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -12615,13 +12914,6 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12615
12914
|
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12616
12915
|
return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
|
|
12617
12916
|
}
|
|
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
12917
|
/** Get a single client workspace by ID. */
|
|
12626
12918
|
async getClientWorkspace(wid, workspaceId) {
|
|
12627
12919
|
return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
|
|
@@ -12731,7 +13023,9 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12731
13023
|
searchParams.set("revision_mode", "active");
|
|
12732
13024
|
}
|
|
12733
13025
|
const qs = searchParams.toString();
|
|
12734
|
-
const data = await this.fetch(
|
|
13026
|
+
const data = await this.fetch(
|
|
13027
|
+
`w/${wid}/export${qs ? `?${qs}` : ""}`
|
|
13028
|
+
);
|
|
12735
13029
|
this.verifyExportSelection(data, workflowId, options);
|
|
12736
13030
|
return data;
|
|
12737
13031
|
}
|
|
@@ -13097,6 +13391,15 @@ var MedicalBillingApi = class extends BaseApiClient {
|
|
|
13097
13391
|
}
|
|
13098
13392
|
};
|
|
13099
13393
|
|
|
13394
|
+
// src/types/generated/organization_webhook.ts
|
|
13395
|
+
var OrgWebhookDeliveryResponseStatus = {
|
|
13396
|
+
pending: "pending",
|
|
13397
|
+
processing: "processing",
|
|
13398
|
+
sent: "sent",
|
|
13399
|
+
dead_letter: "dead_letter",
|
|
13400
|
+
expired: "expired"
|
|
13401
|
+
};
|
|
13402
|
+
|
|
13100
13403
|
// src/types/generated/bundle_contract.ts
|
|
13101
13404
|
var BundleGrantRequestGranteeType = {
|
|
13102
13405
|
organization: "organization",
|
|
@@ -13302,6 +13605,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13302
13605
|
"archiveMemberByExternalId",
|
|
13303
13606
|
"archiveMemberRelationship",
|
|
13304
13607
|
"archivePersona",
|
|
13608
|
+
"archiveInbox",
|
|
13305
13609
|
"archivePhoneNumber",
|
|
13306
13610
|
"archiveStep",
|
|
13307
13611
|
"archiveTask",
|
|
@@ -13375,7 +13679,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13375
13679
|
"createChatCompletion",
|
|
13376
13680
|
"createChatFilter",
|
|
13377
13681
|
"createChatLabel",
|
|
13378
|
-
"createClientWorkspace",
|
|
13379
13682
|
"createConnection",
|
|
13380
13683
|
"createContactPermission",
|
|
13381
13684
|
"createCustomTool",
|
|
@@ -13583,6 +13886,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13583
13886
|
"getApiKeys",
|
|
13584
13887
|
"getArchiveBlockers",
|
|
13585
13888
|
"getAthenaPlatformApp",
|
|
13889
|
+
"getFhirConnectionSyncConfig",
|
|
13586
13890
|
"getAssignment",
|
|
13587
13891
|
"getAssignmentCelContext",
|
|
13588
13892
|
"getAssignmentMessages",
|
|
@@ -13641,7 +13945,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13641
13945
|
"getChats",
|
|
13642
13946
|
"getChatsDailyCreationStats",
|
|
13643
13947
|
"getChatsNeedsResponse",
|
|
13644
|
-
"getChildThreadMessages",
|
|
13645
13948
|
"getClientWorkspace",
|
|
13646
13949
|
"getConfigurationHealth",
|
|
13647
13950
|
"getConfluenceStatus",
|
|
@@ -13683,7 +13986,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13683
13986
|
"getDevices",
|
|
13684
13987
|
"getDiscordBot",
|
|
13685
13988
|
"getDiscordBotAccounts",
|
|
13686
|
-
"getDiscordBotByUuid",
|
|
13687
13989
|
"getDiscordBots",
|
|
13688
13990
|
"getDiscordGuilds",
|
|
13689
13991
|
"getDiscordThreads",
|
|
@@ -13730,6 +14032,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13730
14032
|
"getQueryFields",
|
|
13731
14033
|
"getSiteSharing",
|
|
13732
14034
|
"getSiteSource",
|
|
14035
|
+
"getSiteSourceReleases",
|
|
13733
14036
|
"getSiteSourceTemplates",
|
|
13734
14037
|
"getThemeSettings",
|
|
13735
14038
|
"importSiteSourceZip",
|
|
@@ -13786,6 +14089,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13786
14089
|
"getInbox",
|
|
13787
14090
|
"getInboxEmail",
|
|
13788
14091
|
"getInboxEmails",
|
|
14092
|
+
"getInboxArchiveBlockers",
|
|
13789
14093
|
"getInboxOutboundEmailStats",
|
|
13790
14094
|
"getInboxThreads",
|
|
13791
14095
|
"getInboxes",
|
|
@@ -13861,6 +14165,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13861
14165
|
"getPhoneCalls",
|
|
13862
14166
|
"getPhoneCallByUuid",
|
|
13863
14167
|
"getPhoneNumber",
|
|
14168
|
+
"getPhoneNumberActivity",
|
|
13864
14169
|
"getPhoneNumberCalls",
|
|
13865
14170
|
"getPhoneNumberFaxes",
|
|
13866
14171
|
"getPhoneNumberMessages",
|
|
@@ -13914,6 +14219,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13914
14219
|
"getSupervisor",
|
|
13915
14220
|
"getSupervisors",
|
|
13916
14221
|
"getSyncRunItems",
|
|
14222
|
+
"getSyncRunItemsPage",
|
|
13917
14223
|
"getSyncRuns",
|
|
13918
14224
|
"getTask",
|
|
13919
14225
|
"getTaskChats",
|
|
@@ -14036,6 +14342,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14036
14342
|
"deleteMetric",
|
|
14037
14343
|
"listMetricObservations",
|
|
14038
14344
|
"getMetricSeries",
|
|
14345
|
+
"getMetricSeriesBatch",
|
|
14039
14346
|
"computeChatMetrics",
|
|
14040
14347
|
"listPushSubscriptions",
|
|
14041
14348
|
"listResourceWorkflows",
|
|
@@ -14366,7 +14673,6 @@ function bindChatsMethods(target, chats) {
|
|
|
14366
14673
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
14367
14674
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
14368
14675
|
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
14369
|
-
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
14370
14676
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
14371
14677
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
14372
14678
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -14607,7 +14913,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14607
14913
|
target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
|
|
14608
14914
|
target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
|
|
14609
14915
|
target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
|
|
14610
|
-
target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
|
|
14611
14916
|
target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
|
|
14612
14917
|
target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
|
|
14613
14918
|
target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
|
|
@@ -14664,6 +14969,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14664
14969
|
|
|
14665
14970
|
// src/client/bindings/auth.ts
|
|
14666
14971
|
function bindAuthMethods(target, auth, assignments) {
|
|
14972
|
+
target.getAccountNotices = auth.getAccountNotices.bind(auth);
|
|
14973
|
+
target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
|
|
14974
|
+
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
14667
14975
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
14668
14976
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
14669
14977
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
@@ -14725,6 +15033,11 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
14725
15033
|
|
|
14726
15034
|
// src/client/bindings/sites.ts
|
|
14727
15035
|
function bindSitesMethods(target, sites) {
|
|
15036
|
+
target.endPublicDemo = sites.endPublicDemo.bind(sites);
|
|
15037
|
+
target.startPublicDemo = sites.startPublicDemo.bind(sites);
|
|
15038
|
+
target.getPublicDemo = sites.getPublicDemo.bind(sites);
|
|
15039
|
+
target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
|
|
15040
|
+
target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
|
|
14728
15041
|
target.getSites = sites.getSites.bind(sites);
|
|
14729
15042
|
target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
|
|
14730
15043
|
target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
|
|
@@ -14732,6 +15045,7 @@ function bindSitesMethods(target, sites) {
|
|
|
14732
15045
|
target.getSiteSharing = sites.getSiteSharing.bind(sites);
|
|
14733
15046
|
target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
|
|
14734
15047
|
target.getSiteSource = sites.getSiteSource.bind(sites);
|
|
15048
|
+
target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
|
|
14735
15049
|
target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
|
|
14736
15050
|
target.createSiteSource = sites.createSiteSource.bind(sites);
|
|
14737
15051
|
target.buildSiteSource = sites.buildSiteSource.bind(sites);
|
|
@@ -14792,6 +15106,8 @@ function bindFilesMethods(target, files) {
|
|
|
14792
15106
|
target.createFolder = files.createFolder.bind(files);
|
|
14793
15107
|
target.updateFolder = files.updateFolder.bind(files);
|
|
14794
15108
|
target.deleteFolder = files.deleteFolder.bind(files);
|
|
15109
|
+
target.reindexFile = files.reindexFile.bind(files);
|
|
15110
|
+
target.searchFile = files.searchFile.bind(files);
|
|
14795
15111
|
target.reindexFolder = files.reindexFolder.bind(files);
|
|
14796
15112
|
target.searchFolder = files.searchFolder.bind(files);
|
|
14797
15113
|
target.getFileLabels = files.getFileLabels.bind(files);
|
|
@@ -14879,6 +15195,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
14879
15195
|
target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
|
|
14880
15196
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
14881
15197
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
15198
|
+
target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
|
|
14882
15199
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
14883
15200
|
target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
|
|
14884
15201
|
target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
|
|
@@ -14970,6 +15287,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14970
15287
|
target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
|
|
14971
15288
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
14972
15289
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
15290
|
+
target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
|
|
14973
15291
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
14974
15292
|
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
14975
15293
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
@@ -14983,6 +15301,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14983
15301
|
target.createInbox = inboxes.createInbox.bind(inboxes);
|
|
14984
15302
|
target.updateInbox = inboxes.updateInbox.bind(inboxes);
|
|
14985
15303
|
target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
|
|
15304
|
+
target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
|
|
15305
|
+
target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
|
|
14986
15306
|
target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
|
|
14987
15307
|
target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
|
|
14988
15308
|
target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
|
|
@@ -15144,7 +15464,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15144
15464
|
target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
|
|
15145
15465
|
target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
|
|
15146
15466
|
target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
|
|
15147
|
-
target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
|
|
15148
15467
|
target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
|
|
15149
15468
|
target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
|
|
15150
15469
|
target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
|
|
@@ -15209,6 +15528,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15209
15528
|
target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
|
|
15210
15529
|
target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
|
|
15211
15530
|
target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
|
|
15531
|
+
target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
|
|
15212
15532
|
target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
|
|
15213
15533
|
target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
|
|
15214
15534
|
target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
|
|
@@ -15303,6 +15623,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15303
15623
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
15304
15624
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
15305
15625
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
15626
|
+
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
15306
15627
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
15307
15628
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
15308
15629
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
@@ -15349,6 +15670,13 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
15349
15670
|
|
|
15350
15671
|
// src/client/bindings/org.ts
|
|
15351
15672
|
function bindOrgMethods(target, org) {
|
|
15673
|
+
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
15674
|
+
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
15675
|
+
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
15676
|
+
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
15677
|
+
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
15678
|
+
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
15679
|
+
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
15352
15680
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
15353
15681
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
15354
15682
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -15562,6 +15890,7 @@ function bindMetricsMethods(target, metrics) {
|
|
|
15562
15890
|
target.deleteMetric = metrics.deleteMetric.bind(metrics);
|
|
15563
15891
|
target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
|
|
15564
15892
|
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
15893
|
+
target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
|
|
15565
15894
|
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
15566
15895
|
}
|
|
15567
15896
|
|
|
@@ -15711,7 +16040,6 @@ var GravityRailClient = class {
|
|
|
15711
16040
|
summarizeChat;
|
|
15712
16041
|
getChatMessages;
|
|
15713
16042
|
getChatTaskTransitions;
|
|
15714
|
-
getChildThreadMessages;
|
|
15715
16043
|
getChatToolCallMessages;
|
|
15716
16044
|
getChatTools;
|
|
15717
16045
|
initiateOutboundCall;
|
|
@@ -15919,6 +16247,7 @@ var GravityRailClient = class {
|
|
|
15919
16247
|
deleteMetric;
|
|
15920
16248
|
listMetricObservations;
|
|
15921
16249
|
getMetricSeries;
|
|
16250
|
+
getMetricSeriesBatch;
|
|
15922
16251
|
computeChatMetrics;
|
|
15923
16252
|
// Dashboards API
|
|
15924
16253
|
getDashboards;
|
|
@@ -16112,7 +16441,6 @@ var GravityRailClient = class {
|
|
|
16112
16441
|
dismissNotification;
|
|
16113
16442
|
dismissAllNotifications;
|
|
16114
16443
|
getResellerWorkspaces;
|
|
16115
|
-
createClientWorkspace;
|
|
16116
16444
|
getClientWorkspace;
|
|
16117
16445
|
updateClientWorkspace;
|
|
16118
16446
|
deleteClientWorkspace;
|
|
@@ -16148,6 +16476,13 @@ var GravityRailClient = class {
|
|
|
16148
16476
|
upsertWidgetDomain;
|
|
16149
16477
|
deleteWidgetDomain;
|
|
16150
16478
|
// Org API
|
|
16479
|
+
getOrgManagerCredentialResponse;
|
|
16480
|
+
authorizeOrgManagerDelegation;
|
|
16481
|
+
getOrgManagerChats;
|
|
16482
|
+
createOrgManagerChat;
|
|
16483
|
+
getOrgManagerMessages;
|
|
16484
|
+
startOrgManagerTurn;
|
|
16485
|
+
stopOrgManagerTurn;
|
|
16151
16486
|
listOrgDomains;
|
|
16152
16487
|
registerOrgDomain;
|
|
16153
16488
|
getOrgDomain;
|
|
@@ -16222,6 +16557,9 @@ var GravityRailClient = class {
|
|
|
16222
16557
|
declineInvitation;
|
|
16223
16558
|
// Auth API
|
|
16224
16559
|
getUserAccount;
|
|
16560
|
+
getAccountNotices;
|
|
16561
|
+
viewAccountNotice;
|
|
16562
|
+
dismissAccountNotice;
|
|
16225
16563
|
updateUserAccount;
|
|
16226
16564
|
recordAcquisition;
|
|
16227
16565
|
login;
|
|
@@ -16279,6 +16617,11 @@ var GravityRailClient = class {
|
|
|
16279
16617
|
getAssignmentTools;
|
|
16280
16618
|
executeAssignmentTool;
|
|
16281
16619
|
// Sites API
|
|
16620
|
+
startPublicDemo;
|
|
16621
|
+
endPublicDemo;
|
|
16622
|
+
getPublicDemo;
|
|
16623
|
+
sendPublicDemoMessage;
|
|
16624
|
+
submitPublicDemoForm;
|
|
16282
16625
|
getSites;
|
|
16283
16626
|
checkSiteSlugAvailability;
|
|
16284
16627
|
checkSiteDomainAvailability;
|
|
@@ -16286,6 +16629,7 @@ var GravityRailClient = class {
|
|
|
16286
16629
|
getSiteSharing;
|
|
16287
16630
|
updateSiteSharing;
|
|
16288
16631
|
getSiteSource;
|
|
16632
|
+
getSiteSourceReleases;
|
|
16289
16633
|
getSiteSourceTemplates;
|
|
16290
16634
|
createSiteSource;
|
|
16291
16635
|
buildSiteSource;
|
|
@@ -16348,6 +16692,8 @@ var GravityRailClient = class {
|
|
|
16348
16692
|
createFolder;
|
|
16349
16693
|
updateFolder;
|
|
16350
16694
|
deleteFolder;
|
|
16695
|
+
reindexFile;
|
|
16696
|
+
searchFile;
|
|
16351
16697
|
reindexFolder;
|
|
16352
16698
|
searchFolder;
|
|
16353
16699
|
getFileLabels;
|
|
@@ -16404,6 +16750,7 @@ var GravityRailClient = class {
|
|
|
16404
16750
|
getWorkflowsOutlineBatch;
|
|
16405
16751
|
createWorkflow;
|
|
16406
16752
|
updateWorkflow;
|
|
16753
|
+
uploadWorkflowKnowledge;
|
|
16407
16754
|
getWorkflowDeletionPreview;
|
|
16408
16755
|
deleteWorkflow;
|
|
16409
16756
|
archiveWorkflow;
|
|
@@ -16489,6 +16836,7 @@ var GravityRailClient = class {
|
|
|
16489
16836
|
getPhoneNumberOutboundAnalyticsSummary;
|
|
16490
16837
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
16491
16838
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
16839
|
+
getPhoneNumberActivity;
|
|
16492
16840
|
getPhoneNumberMessages;
|
|
16493
16841
|
getPhoneNumberFaxes;
|
|
16494
16842
|
getPhoneNumberVoicemails;
|
|
@@ -16502,6 +16850,8 @@ var GravityRailClient = class {
|
|
|
16502
16850
|
createInbox;
|
|
16503
16851
|
updateInbox;
|
|
16504
16852
|
deleteInbox;
|
|
16853
|
+
archiveInbox;
|
|
16854
|
+
getInboxArchiveBlockers;
|
|
16505
16855
|
getInboxEmails;
|
|
16506
16856
|
getInboxEmail;
|
|
16507
16857
|
markEmailAsRead;
|
|
@@ -16660,7 +17010,6 @@ var GravityRailClient = class {
|
|
|
16660
17010
|
// Discord Bots API
|
|
16661
17011
|
getDiscordBots;
|
|
16662
17012
|
getDiscordBot;
|
|
16663
|
-
getDiscordBotByUuid;
|
|
16664
17013
|
createDiscordBot;
|
|
16665
17014
|
updateDiscordBot;
|
|
16666
17015
|
deleteDiscordBot;
|
|
@@ -16728,6 +17077,7 @@ var GravityRailClient = class {
|
|
|
16728
17077
|
fhirGetEncounterSyncRuns;
|
|
16729
17078
|
fhirRefreshEncounterPatient;
|
|
16730
17079
|
fhirBackfillEncounterSync;
|
|
17080
|
+
getFhirConnectionSyncConfig;
|
|
16731
17081
|
getAthenaPlatformApp;
|
|
16732
17082
|
verifyAthenaAccess;
|
|
16733
17083
|
connectAthena;
|
|
@@ -16827,6 +17177,7 @@ var GravityRailClient = class {
|
|
|
16827
17177
|
startSyncRun;
|
|
16828
17178
|
getSyncRuns;
|
|
16829
17179
|
getSyncRunItems;
|
|
17180
|
+
getSyncRunItemsPage;
|
|
16830
17181
|
getMemberSyncSummary;
|
|
16831
17182
|
getConnectionFieldHomes;
|
|
16832
17183
|
getInboundRecordStatus;
|
|
@@ -17671,6 +18022,13 @@ var StartStepBuilder = class extends JourneyStepBuilder {
|
|
|
17671
18022
|
async apply() {
|
|
17672
18023
|
}
|
|
17673
18024
|
};
|
|
18025
|
+
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.";
|
|
18026
|
+
var LegacyJourneyCreationError = class extends Error {
|
|
18027
|
+
constructor() {
|
|
18028
|
+
super(LEGACY_JOURNEY_CREATION_GUIDANCE);
|
|
18029
|
+
this.name = "LegacyJourneyCreationError";
|
|
18030
|
+
}
|
|
18031
|
+
};
|
|
17674
18032
|
var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
17675
18033
|
constructor(name, options = {}) {
|
|
17676
18034
|
super();
|
|
@@ -17798,24 +18156,9 @@ var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
|
17798
18156
|
if (this.goals.length) parts.push(`${this.goals.length} goals`);
|
|
17799
18157
|
return `Journey: ${this.name}${parts.length ? ` (${parts.join(", ")})` : ""}`;
|
|
17800
18158
|
}
|
|
17801
|
-
async apply(
|
|
18159
|
+
async apply(_client) {
|
|
17802
18160
|
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);
|
|
18161
|
+
throw new LegacyJourneyCreationError();
|
|
17819
18162
|
}
|
|
17820
18163
|
};
|
|
17821
18164
|
function buildJourneyConnectionPayload(connection) {
|
|
@@ -18446,9 +18789,8 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18446
18789
|
const created = await client.createJourney({
|
|
18447
18790
|
name: this.name,
|
|
18448
18791
|
description: this.description,
|
|
18449
|
-
// Explicit, always
|
|
18450
|
-
//
|
|
18451
|
-
// legacy Journey that happens to look like a timeline.
|
|
18792
|
+
// Explicit, always: the v2 builder states its engine rather than
|
|
18793
|
+
// relying on whatever the server's omitted-value default is.
|
|
18452
18794
|
executionModel: "v2"
|
|
18453
18795
|
});
|
|
18454
18796
|
this._id = created.id;
|
|
@@ -18881,6 +19223,14 @@ var WorkspaceBuilder = class {
|
|
|
18881
19223
|
this.resources.push(label);
|
|
18882
19224
|
return label;
|
|
18883
19225
|
}
|
|
19226
|
+
/**
|
|
19227
|
+
* The legacy (additive step graph) builder, for EXISTING legacy Journeys.
|
|
19228
|
+
*
|
|
19229
|
+
* It adopts a stored legacy Journey by exact name and edits it. It never
|
|
19230
|
+
* creates one: when the workspace holds no Journey of that name, `apply()`
|
|
19231
|
+
* refuses before any write with guidance to use {@link journeyV2}. The
|
|
19232
|
+
* refusal happens at apply, not here, because adoption is resolved then.
|
|
19233
|
+
*/
|
|
18884
19234
|
journey(name, options = {}) {
|
|
18885
19235
|
const journey = new JourneyBuilder(name, options);
|
|
18886
19236
|
this.resources.push(journey);
|
|
@@ -18892,9 +19242,8 @@ var WorkspaceBuilder = class {
|
|
|
18892
19242
|
*
|
|
18893
19243
|
* A separate factory rather than an option on {@link journey}, because the
|
|
18894
19244
|
* two return different builders with different vocabularies — `.touch()`
|
|
18895
|
-
* and `.ending()` versus `.step()` and `.connectsTo()`.
|
|
18896
|
-
*
|
|
18897
|
-
* compatibility requirement.
|
|
19245
|
+
* and `.ending()` versus `.step()` and `.connectsTo()`. This is the builder
|
|
19246
|
+
* that authors NEW Journeys; {@link journey} only edits existing legacy ones.
|
|
18898
19247
|
*/
|
|
18899
19248
|
journeyV2(name, options = {}) {
|
|
18900
19249
|
const journey = new JourneyV2Builder(name, options);
|
|
@@ -19635,6 +19984,9 @@ function summarizeError(err) {
|
|
|
19635
19984
|
}
|
|
19636
19985
|
return msg.length > 240 ? `${msg.slice(0, 237)}...` : msg;
|
|
19637
19986
|
}
|
|
19987
|
+
if (err instanceof LegacyJourneyCreationError) {
|
|
19988
|
+
return LEGACY_JOURNEY_CREATION_GUIDANCE;
|
|
19989
|
+
}
|
|
19638
19990
|
if (err instanceof Error) {
|
|
19639
19991
|
return err.name || "Error";
|
|
19640
19992
|
}
|
|
@@ -19662,6 +20014,7 @@ var AbilityTypeSlugs = {
|
|
|
19662
20014
|
// Tools
|
|
19663
20015
|
TOOLKITS: "tools:toolkits",
|
|
19664
20016
|
WEB_SEARCH: "tools:web_search",
|
|
20017
|
+
WEB_BROWSER: "tools:web_browser",
|
|
19665
20018
|
CONVERSATION_HISTORY: "tools:conversation_history",
|
|
19666
20019
|
MEMBER_MEMORY: "memory:member_memory",
|
|
19667
20020
|
IMAGE_GENERATION: "tools:image_generation",
|
|
@@ -20359,6 +20712,7 @@ var ActivityEventType = {
|
|
|
20359
20712
|
chatcall_ended: "chat.call_ended",
|
|
20360
20713
|
chatsummary: "chat.summary",
|
|
20361
20714
|
messagesent: "message.sent",
|
|
20715
|
+
messagesend_failed: "message.send_failed",
|
|
20362
20716
|
membermessage_received: "member.message_received",
|
|
20363
20717
|
escalationopened: "escalation.opened",
|
|
20364
20718
|
escalationresolved: "escalation.resolved",
|
|
@@ -20366,6 +20720,8 @@ var ActivityEventType = {
|
|
|
20366
20720
|
callcompleted: "call.completed",
|
|
20367
20721
|
callmissed: "call.missed",
|
|
20368
20722
|
callsummary: "call.summary",
|
|
20723
|
+
callqueued: "call.queued",
|
|
20724
|
+
callnot_placed: "call.not_placed",
|
|
20369
20725
|
presencewent_online: "presence.went_online",
|
|
20370
20726
|
presencewent_offline: "presence.went_offline",
|
|
20371
20727
|
operator_groupmember_added: "operator_group.member_added",
|
|
@@ -20449,6 +20805,7 @@ var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
|
20449
20805
|
ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
|
|
20450
20806
|
ScopeCategory2["MEMBER_ROLES"] = "member_roles";
|
|
20451
20807
|
ScopeCategory2["CHATS"] = "chats";
|
|
20808
|
+
ScopeCategory2["DEMOS"] = "demos";
|
|
20452
20809
|
ScopeCategory2["DM"] = "dm";
|
|
20453
20810
|
ScopeCategory2["WORKFLOWS"] = "workflows";
|
|
20454
20811
|
ScopeCategory2["ASSIGNMENTS"] = "assignments";
|
|
@@ -20565,6 +20922,11 @@ var SCOPES = {
|
|
|
20565
20922
|
category: "chats" /* CHATS */,
|
|
20566
20923
|
description: "View all conversations"
|
|
20567
20924
|
},
|
|
20925
|
+
"demos:run": {
|
|
20926
|
+
name: "demos:run",
|
|
20927
|
+
category: "demos" /* DEMOS */,
|
|
20928
|
+
description: "Start and interact with your own synthetic patient demos"
|
|
20929
|
+
},
|
|
20568
20930
|
"chats:write": {
|
|
20569
20931
|
name: "chats:write",
|
|
20570
20932
|
category: "chats" /* CHATS */,
|
|
@@ -21449,6 +21811,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21449
21811
|
ORG_ONLY_RESOURCES,
|
|
21450
21812
|
OrgApi,
|
|
21451
21813
|
OrgFeature,
|
|
21814
|
+
OrgWebhookDeliveryStatus,
|
|
21452
21815
|
PERMISSION_ADMIN,
|
|
21453
21816
|
PERMISSION_CREATE,
|
|
21454
21817
|
PERMISSION_DELETE,
|