@gravity-rail/sdk 0.13.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-V7ZKEH4V.js → chunk-2YLKG4TT.js} +1 -1
- package/dist/chunk-2YLKG4TT.js.map +1 -0
- package/dist/{chunk-FSSXKQR5.js → chunk-GP6ICMWF.js} +2 -1
- package/dist/chunk-GP6ICMWF.js.map +1 -0
- package/dist/{chunk-YRIBZ3RM.js → chunk-QTJQTTIR.js} +366 -27
- package/dist/chunk-QTJQTTIR.js.map +1 -0
- package/dist/{client-DjyYhpnv.d.ts → client-BLuz00Qr.d.cts} +904 -54
- package/dist/{client-eet1pTc_.d.cts → client-CefA5Mxe.d.ts} +904 -54
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +379 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +26 -11
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +364 -25
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +411 -142
- package/dist/internal.d.ts +411 -142
- package/dist/internal.js +18 -4
- package/dist/internal.js.map +1 -1
- package/dist/{revision-state-CC1svrGE.d.ts → revision-state-DL1ViZ57.d.ts} +28 -5
- package/dist/{revision-state-DFWcu6wD.d.cts → revision-state-axZ62kJk.d.cts} +28 -5
- package/dist/schemas.cjs +71 -21
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +112 -21
- package/dist/schemas.d.ts +112 -21
- package/dist/schemas.js +67 -21
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-Dl1Dzgkf.d.cts → tasks-Boi6AxGp.d.cts} +108 -9
- package/dist/{tasks-Dl1Dzgkf.d.ts → tasks-Boi6AxGp.d.ts} +108 -9
- package/package.json +1 -1
- package/dist/chunk-FSSXKQR5.js.map +0 -1
- package/dist/chunk-V7ZKEH4V.js.map +0 -1
- package/dist/chunk-YRIBZ3RM.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
BaseApiClient
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GP6ICMWF.js";
|
|
5
5
|
|
|
6
6
|
// src/api/abilities.ts
|
|
7
7
|
var AbilitiesApi = class extends BaseApiClient {
|
|
@@ -1277,6 +1277,12 @@ var CELApi = class extends BaseApiClient {
|
|
|
1277
1277
|
body: JSON.stringify(request)
|
|
1278
1278
|
});
|
|
1279
1279
|
}
|
|
1280
|
+
async validateCelExpression(wid, request) {
|
|
1281
|
+
return this.fetch(`w/${wid}/cel/validate`, {
|
|
1282
|
+
method: "POST",
|
|
1283
|
+
body: JSON.stringify(request)
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1280
1286
|
};
|
|
1281
1287
|
|
|
1282
1288
|
// src/api/chats.ts
|
|
@@ -1296,6 +1302,8 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1296
1302
|
if (options.mine !== void 0) params.append("mine", options.mine.toString());
|
|
1297
1303
|
if (options.needsResponse !== void 0)
|
|
1298
1304
|
params.append("needsResponse", options.needsResponse.toString());
|
|
1305
|
+
if (options.needsResponseFirst !== void 0)
|
|
1306
|
+
params.append("needsResponseFirst", options.needsResponseFirst.toString());
|
|
1299
1307
|
if (options.paused !== void 0) params.append("paused", options.paused.toString());
|
|
1300
1308
|
if (options.archived !== void 0) params.append("archived", options.archived.toString());
|
|
1301
1309
|
if (options.channel) params.append("channel", options.channel);
|
|
@@ -1345,6 +1353,25 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1345
1353
|
async getChat(wid, id) {
|
|
1346
1354
|
return this.fetch(`w/${wid}/chats/${id}`);
|
|
1347
1355
|
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Create-chat preflight for SMS: is a conversation already live between this
|
|
1358
|
+
* workspace number and this member?
|
|
1359
|
+
*
|
|
1360
|
+
* An SMS conversation with a member is a single stream — inbound SMS resolves
|
|
1361
|
+
* to ONE current chat per (member phone, workspace phone) pair — so creating
|
|
1362
|
+
* a new SMS chat SUPERSEDES the existing one and the member's next reply
|
|
1363
|
+
* lands on the new chat. Callers use this to say so before committing.
|
|
1364
|
+
*
|
|
1365
|
+
* Read-only, `chats:read`, and PHI-safe by construction: status and timing
|
|
1366
|
+
* only, no message content and no chat title.
|
|
1367
|
+
*/
|
|
1368
|
+
async getCurrentSmsChat(wid, options) {
|
|
1369
|
+
const params = new URLSearchParams({
|
|
1370
|
+
memberId: options.memberId.toString(),
|
|
1371
|
+
phoneNumberId: options.phoneNumberId.toString()
|
|
1372
|
+
});
|
|
1373
|
+
return this.fetch(`w/${wid}/chats/current-sms?${params}`);
|
|
1374
|
+
}
|
|
1348
1375
|
/** Get token usage statistics for a chat. */
|
|
1349
1376
|
async getChatTokenUsage(wid, chatId) {
|
|
1350
1377
|
return this.fetch(`w/${wid}/chats/${chatId}/token-usage`);
|
|
@@ -1494,6 +1521,24 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1494
1521
|
`w/${wid}/chats/${id}/messages${params.toString() ? `?${params.toString()}` : ""}`
|
|
1495
1522
|
);
|
|
1496
1523
|
}
|
|
1524
|
+
/** List the background-work thread hanging off a message.
|
|
1525
|
+
*
|
|
1526
|
+
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
1527
|
+
* background (ADR-11 / forked trajectories), writing its messages as a
|
|
1528
|
+
* child thread parented at the fork point. Main-history reads exclude
|
|
1529
|
+
* them, so this is how the "show work" affordance fetches them — lazily,
|
|
1530
|
+
* only when a message with a non-zero `childMessageCount` is expanded.
|
|
1531
|
+
* Returns the thread in chronological order, empty when there is none.
|
|
1532
|
+
*
|
|
1533
|
+
* `messageUuid` is the fork point's `ChatMessage.id`. */
|
|
1534
|
+
async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
|
|
1535
|
+
const params = new URLSearchParams();
|
|
1536
|
+
params.append("limit", limit.toString());
|
|
1537
|
+
params.append("offset", offset.toString());
|
|
1538
|
+
return this.fetch(
|
|
1539
|
+
`w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
|
|
1540
|
+
);
|
|
1541
|
+
}
|
|
1497
1542
|
/** List messages associated with a specific tool call in a chat. */
|
|
1498
1543
|
async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
|
|
1499
1544
|
const params = new URLSearchParams();
|
|
@@ -2679,6 +2724,17 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
2679
2724
|
{ method: "POST", body: JSON.stringify(data) }
|
|
2680
2725
|
);
|
|
2681
2726
|
}
|
|
2727
|
+
/**
|
|
2728
|
+
* Bounded, read-only check of which external patient IDs are already
|
|
2729
|
+
* linked on this connection. PHI-minimal: sends/returns external patient
|
|
2730
|
+
* IDs only — never demographics.
|
|
2731
|
+
*/
|
|
2732
|
+
async fhirCheckPatientLinks(wid, connectionId, data) {
|
|
2733
|
+
return this.fetch(
|
|
2734
|
+
`w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members/check`,
|
|
2735
|
+
{ method: "POST", body: JSON.stringify(data) }
|
|
2736
|
+
);
|
|
2737
|
+
}
|
|
2682
2738
|
// ==================== Encounter Sync ====================
|
|
2683
2739
|
async fhirGetEncounterSyncStatus(wid, connectionId) {
|
|
2684
2740
|
return this.fetch(`w/${wid}/app-connections/fhir/connections/${connectionId}/encounter-sync`);
|
|
@@ -2715,6 +2771,79 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
2715
2771
|
}
|
|
2716
2772
|
};
|
|
2717
2773
|
|
|
2774
|
+
// src/types/generated/inbound_fax.ts
|
|
2775
|
+
var InboundFaxStatus = {
|
|
2776
|
+
pending: "pending",
|
|
2777
|
+
received: "received",
|
|
2778
|
+
failed: "failed"
|
|
2779
|
+
};
|
|
2780
|
+
|
|
2781
|
+
// src/api/documo-fax.ts
|
|
2782
|
+
var DocumoFaxApi = class extends BaseApiClient {
|
|
2783
|
+
async getDocumoFaxStatus(wid) {
|
|
2784
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/status`);
|
|
2785
|
+
}
|
|
2786
|
+
async getDocumoFaxSetup(wid) {
|
|
2787
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/setup`);
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Received-fax log for this connection.
|
|
2791
|
+
*
|
|
2792
|
+
* Entries carry `senderNumber`, which is an unauthenticated claim by the
|
|
2793
|
+
* sending machine and is PHI. Render it; never log it.
|
|
2794
|
+
*
|
|
2795
|
+
* `status` is repeatable — one query entry per value, matching the route's
|
|
2796
|
+
* `list[str]` binding. The date bounds filter on when the delivery was
|
|
2797
|
+
* recorded, not on `receivedAt`: a fax that failed before storage never
|
|
2798
|
+
* gets a `receivedAt`, so bounding that column would hide exactly the
|
|
2799
|
+
* failures an operator filtering by date is hunting for.
|
|
2800
|
+
*/
|
|
2801
|
+
async listDocumoFaxes(wid, params) {
|
|
2802
|
+
const query = new URLSearchParams();
|
|
2803
|
+
if (params?.page !== void 0) query.set("page", String(params.page));
|
|
2804
|
+
if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
|
|
2805
|
+
params?.status?.forEach((value) => query.append("status", value));
|
|
2806
|
+
if (params?.receivedAfter) query.set("receivedAfter", params.receivedAfter);
|
|
2807
|
+
if (params?.receivedBefore) query.set("receivedBefore", params.receivedBefore);
|
|
2808
|
+
const suffix = query.toString() === "" ? "" : `?${query.toString()}`;
|
|
2809
|
+
return this.fetch(
|
|
2810
|
+
`w/${wid}/app-connections/documo-fax/faxes${suffix}`
|
|
2811
|
+
);
|
|
2812
|
+
}
|
|
2813
|
+
/**
|
|
2814
|
+
* The three bodyless POSTs below send `{}` deliberately: the routes require
|
|
2815
|
+
* a JSON body as a CSRF barrier (a cross-site HTML form POST cannot set
|
|
2816
|
+
* Content-Type: application/json, so it 422s). See GRA-6284.
|
|
2817
|
+
*/
|
|
2818
|
+
async installDocumoFax(wid) {
|
|
2819
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/install`, {
|
|
2820
|
+
method: "POST",
|
|
2821
|
+
body: JSON.stringify({})
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
async configureDocumoFax(wid, data) {
|
|
2825
|
+
return this.fetch(
|
|
2826
|
+
`w/${wid}/app-connections/documo-fax/configure`,
|
|
2827
|
+
{
|
|
2828
|
+
method: "POST",
|
|
2829
|
+
body: JSON.stringify(data)
|
|
2830
|
+
}
|
|
2831
|
+
);
|
|
2832
|
+
}
|
|
2833
|
+
async verifyDocumoFax(wid) {
|
|
2834
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/verify`, {
|
|
2835
|
+
method: "POST",
|
|
2836
|
+
body: JSON.stringify({})
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
async rotateDocumoFaxCredentials(wid) {
|
|
2840
|
+
return this.fetch(
|
|
2841
|
+
`w/${wid}/app-connections/documo-fax/rotate-credentials`,
|
|
2842
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
2843
|
+
);
|
|
2844
|
+
}
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2718
2847
|
// src/api/healthie.ts
|
|
2719
2848
|
var HealthieApi = class extends BaseApiClient {
|
|
2720
2849
|
async configureHealthie(wid, data) {
|
|
@@ -3048,6 +3177,16 @@ var FilesApi = class extends BaseApiClient {
|
|
|
3048
3177
|
async getFolderSharing(wid, folderId) {
|
|
3049
3178
|
return this.fetch(`w/${wid}/folders/${folderId}/sharing`);
|
|
3050
3179
|
}
|
|
3180
|
+
/**
|
|
3181
|
+
* Ask whether another member can read a folder, evaluated by the real
|
|
3182
|
+
* authorizer as that member. Used to tell "a landing folder is set" apart
|
|
3183
|
+
* from "the fax owner can actually open it".
|
|
3184
|
+
*/
|
|
3185
|
+
async getFolderMemberAccess(wid, folderId, memberId) {
|
|
3186
|
+
return this.fetch(
|
|
3187
|
+
`w/${wid}/folders/${folderId}/member-access?memberId=${memberId}`
|
|
3188
|
+
);
|
|
3189
|
+
}
|
|
3051
3190
|
/** Update the role associations for a folder's sharing permissions. */
|
|
3052
3191
|
async updateFolderRoles(wid, folderId, data) {
|
|
3053
3192
|
return this.fetch(
|
|
@@ -4831,7 +4970,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
4831
4970
|
`o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products`
|
|
4832
4971
|
);
|
|
4833
4972
|
}
|
|
4834
|
-
/**
|
|
4973
|
+
/**
|
|
4974
|
+
* Reconcile trust product state against Twilio (discovery + status
|
|
4975
|
+
* refresh). Returns the refreshed products plus which product keys were
|
|
4976
|
+
* newly discovered. Responds 409 when another Trust Hub operation holds
|
|
4977
|
+
* the org lock — retry shortly rather than queueing.
|
|
4978
|
+
*/
|
|
4835
4979
|
async syncVoiceTrustProducts(orgUuid, legalEntityUuid) {
|
|
4836
4980
|
return this.fetch(
|
|
4837
4981
|
`o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products/sync`,
|
|
@@ -4974,6 +5118,9 @@ function getOAuthPath(providerSlug, action) {
|
|
|
4974
5118
|
if (providerSlug === "gdrive") {
|
|
4975
5119
|
return `oauth/google/drive/${action}`;
|
|
4976
5120
|
}
|
|
5121
|
+
if (providerSlug === "gsheets") {
|
|
5122
|
+
return `oauth/google/sheets/${action}`;
|
|
5123
|
+
}
|
|
4977
5124
|
return `oauth/${providerSlug}/${action}`;
|
|
4978
5125
|
}
|
|
4979
5126
|
function buildAuthorizeQuery(options) {
|
|
@@ -5149,6 +5296,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
5149
5296
|
`w/${wid}/phone-numbers/${id}/messages?${params}`
|
|
5150
5297
|
);
|
|
5151
5298
|
}
|
|
5299
|
+
/**
|
|
5300
|
+
* List received faxes for a phone number.
|
|
5301
|
+
*
|
|
5302
|
+
* The same log the Documo connection page shows, scoped to a number. Rows
|
|
5303
|
+
* carry `senderNumber` — an unauthenticated claim by the sending machine,
|
|
5304
|
+
* and PHI. Render it for triage; never log it.
|
|
5305
|
+
*
|
|
5306
|
+
* Same query vocabulary as `listDocumoFaxes` — one log, one spelling.
|
|
5307
|
+
* `status` is repeatable and is validated against the status enum, so a
|
|
5308
|
+
* typo is a 422 rather than a silently empty page. The date bounds filter
|
|
5309
|
+
* on when the delivery was recorded, not on `receivedAt`: a fax that failed
|
|
5310
|
+
* before storage never gets a `receivedAt`, so bounding that column would
|
|
5311
|
+
* hide exactly the failures an operator filtering by date is hunting for.
|
|
5312
|
+
*/
|
|
5313
|
+
async getPhoneNumberFaxes(wid, id, page = 1, pageSize = 10, filters) {
|
|
5314
|
+
const params = new URLSearchParams({
|
|
5315
|
+
page: String(page),
|
|
5316
|
+
pageSize: String(pageSize)
|
|
5317
|
+
});
|
|
5318
|
+
filters?.status?.forEach((value) => params.append("status", value));
|
|
5319
|
+
if (filters?.receivedAfter) params.set("receivedAfter", filters.receivedAfter);
|
|
5320
|
+
if (filters?.receivedBefore) params.set("receivedBefore", filters.receivedBefore);
|
|
5321
|
+
return this.fetch(
|
|
5322
|
+
`w/${wid}/phone-numbers/${id}/faxes?${params}`
|
|
5323
|
+
);
|
|
5324
|
+
}
|
|
5152
5325
|
/** List provider phones available for linking to workspace phone numbers. */
|
|
5153
5326
|
async getLinkablePhones(wid) {
|
|
5154
5327
|
return this.fetch(`w/${wid}/phone-numbers/linkable-phones`);
|
|
@@ -5667,6 +5840,16 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
5667
5840
|
}
|
|
5668
5841
|
);
|
|
5669
5842
|
}
|
|
5843
|
+
/**
|
|
5844
|
+
* List the sObjects available in the connected org.
|
|
5845
|
+
*
|
|
5846
|
+
* Backs the Target Object picker: the object set is org-specific (custom
|
|
5847
|
+
* objects included), so it must come from the org rather than a hardcoded
|
|
5848
|
+
* list.
|
|
5849
|
+
*/
|
|
5850
|
+
async listSalesforceObjects(wid) {
|
|
5851
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
5852
|
+
}
|
|
5670
5853
|
async describeSalesforceObject(wid, sobject) {
|
|
5671
5854
|
return this.fetch(
|
|
5672
5855
|
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
@@ -6732,7 +6915,12 @@ var ToolkitsApi = class extends BaseApiClient {
|
|
|
6732
6915
|
|
|
6733
6916
|
// src/api/journeys.ts
|
|
6734
6917
|
var JourneysApi = class extends BaseApiClient {
|
|
6735
|
-
/**
|
|
6918
|
+
/**
|
|
6919
|
+
* List journeys, optionally including archived, paginated.
|
|
6920
|
+
*
|
|
6921
|
+
* Returns the READ projection (`JourneyRead`) — CEL-free. Use
|
|
6922
|
+
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
6923
|
+
*/
|
|
6736
6924
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
6737
6925
|
const query = new URLSearchParams();
|
|
6738
6926
|
if (includeArchived) query.set("include_archived", "true");
|
|
@@ -6741,18 +6929,36 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
6741
6929
|
const qs = query.toString() ? `?${query.toString()}` : "";
|
|
6742
6930
|
return this.fetch(`w/${wid}/journeys${qs}`);
|
|
6743
6931
|
}
|
|
6744
|
-
/**
|
|
6932
|
+
/**
|
|
6933
|
+
* Get a single journey by ID (includes steps and goals).
|
|
6934
|
+
*
|
|
6935
|
+
* Returns the READ projection (`JourneyRead`) — nested edges carry no
|
|
6936
|
+
* `celCondition` and goals no `completionCel`. The editor uses
|
|
6937
|
+
* {@link getJourneyAuthoring} for those.
|
|
6938
|
+
*/
|
|
6745
6939
|
async getJourney(wid, journeyId) {
|
|
6746
6940
|
return this.fetch(`w/${wid}/journeys/${journeyId}`);
|
|
6747
6941
|
}
|
|
6748
|
-
/**
|
|
6942
|
+
/**
|
|
6943
|
+
* Get a journey's AUTHORING projection (raw edge/goal CEL).
|
|
6944
|
+
*
|
|
6945
|
+
* journey-decoupling §3.5: the ordinary `getJourney` read projection omits
|
|
6946
|
+
* raw edge `celCondition` and goal `completionCel`. This endpoint is the
|
|
6947
|
+
* write-authorized surface that carries them for the Journey editor — it
|
|
6948
|
+
* requires the `journeys:write` scope, so a read-only caller is denied and
|
|
6949
|
+
* must not call it. Returns the authoring superset (`Journey`).
|
|
6950
|
+
*/
|
|
6951
|
+
async getJourneyAuthoring(wid, journeyId) {
|
|
6952
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/authoring`);
|
|
6953
|
+
}
|
|
6954
|
+
/** Create a new journey. Returns the READ projection (`JourneyRead`). */
|
|
6749
6955
|
async createJourney(wid, data) {
|
|
6750
6956
|
return this.fetch(`w/${wid}/journeys`, {
|
|
6751
6957
|
method: "POST",
|
|
6752
6958
|
body: JSON.stringify(data)
|
|
6753
6959
|
});
|
|
6754
6960
|
}
|
|
6755
|
-
/** Update an existing journey. */
|
|
6961
|
+
/** Update an existing journey. Returns the READ projection (`JourneyRead`). */
|
|
6756
6962
|
async updateJourney(wid, journeyId, data) {
|
|
6757
6963
|
return this.fetch(`w/${wid}/journeys/${journeyId}`, {
|
|
6758
6964
|
method: "PUT",
|
|
@@ -6793,6 +6999,18 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
6793
6999
|
method: "DELETE"
|
|
6794
7000
|
});
|
|
6795
7001
|
}
|
|
7002
|
+
/**
|
|
7003
|
+
* Unarchive a step and backfill active enrollments. Idempotent —
|
|
7004
|
+
* repeated calls are harmless. The response's
|
|
7005
|
+
* `backfilledEnrollmentCount` reports how many active enrollments
|
|
7006
|
+
* received a new step row; a root step may become eligible for all of
|
|
7007
|
+
* them on the next journey sweep.
|
|
7008
|
+
*/
|
|
7009
|
+
async unarchiveStep(wid, journeyId, stepUuid) {
|
|
7010
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/unarchive`, {
|
|
7011
|
+
method: "PATCH"
|
|
7012
|
+
});
|
|
7013
|
+
}
|
|
6796
7014
|
/** Create a connection (DAG edge) between two steps. */
|
|
6797
7015
|
async createConnection(wid, journeyId, data) {
|
|
6798
7016
|
return this.fetch(`w/${wid}/journeys/${journeyId}/connections`, {
|
|
@@ -7352,6 +7570,21 @@ function encodePermissions(permissions) {
|
|
|
7352
7570
|
if (permissions.delete) accessMode |= PERMISSION_DELETE;
|
|
7353
7571
|
return accessMode;
|
|
7354
7572
|
}
|
|
7573
|
+
var WORKFLOW_IMPLICIT_USE_SCOPE = "workflows:admin";
|
|
7574
|
+
function roleImplicitWorkflowUseScope(role) {
|
|
7575
|
+
return (role.grantedScopes ?? []).includes(WORKFLOW_IMPLICIT_USE_SCOPE) ? WORKFLOW_IMPLICIT_USE_SCOPE : null;
|
|
7576
|
+
}
|
|
7577
|
+
function roleWorkflowAccess(role, workflowId) {
|
|
7578
|
+
const viaScope = roleImplicitWorkflowUseScope(role);
|
|
7579
|
+
if (viaScope) {
|
|
7580
|
+
return { accessMode: PERMISSION_USE | PERMISSION_EDIT, viaScope };
|
|
7581
|
+
}
|
|
7582
|
+
const entry = (role.workflowAccess ?? []).find((wa) => wa.workflowId === workflowId);
|
|
7583
|
+
return { accessMode: entry?.accessMode ?? PERMISSION_NONE, viaScope: null };
|
|
7584
|
+
}
|
|
7585
|
+
function roleCanUseWorkflow(role, workflowId) {
|
|
7586
|
+
return (roleWorkflowAccess(role, workflowId).accessMode & PERMISSION_USE) !== 0;
|
|
7587
|
+
}
|
|
7355
7588
|
var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
7356
7589
|
Scope2["WORKSPACE_READ"] = "workspace:read";
|
|
7357
7590
|
Scope2["WORKSPACE_WRITE"] = "workspace:write";
|
|
@@ -7491,6 +7724,7 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
7491
7724
|
EventRuleObjectType2["JOURNEY"] = "journey";
|
|
7492
7725
|
EventRuleObjectType2["CALL"] = "call";
|
|
7493
7726
|
EventRuleObjectType2["VOICEMAIL"] = "voicemail";
|
|
7727
|
+
EventRuleObjectType2["FAX"] = "fax";
|
|
7494
7728
|
return EventRuleObjectType2;
|
|
7495
7729
|
})(EventRuleObjectType || {});
|
|
7496
7730
|
var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
@@ -7509,6 +7743,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
7509
7743
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
7510
7744
|
EventRuleEventType2["ASSISTANT_MESSAGE"] = "workflow:assistant_message";
|
|
7511
7745
|
EventRuleEventType2["USER_MESSAGE"] = "workflow:user_message";
|
|
7746
|
+
EventRuleEventType2["WORKFLOW_EXECUTE"] = "workflow:execute";
|
|
7512
7747
|
EventRuleEventType2["CALENDAR_EVENT_CREATED"] = "calendar_event:created";
|
|
7513
7748
|
EventRuleEventType2["CALENDAR_EVENT_UPDATED"] = "calendar_event:updated";
|
|
7514
7749
|
EventRuleEventType2["CALENDAR_EVENT_CANCELLED"] = "calendar_event:cancelled";
|
|
@@ -7523,6 +7758,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
7523
7758
|
EventRuleEventType2["CALL_COMPLETED"] = "call:completed";
|
|
7524
7759
|
EventRuleEventType2["CALL_SUMMARY"] = "call:summary";
|
|
7525
7760
|
EventRuleEventType2["VOICEMAIL_RECEIVED"] = "voicemail:received";
|
|
7761
|
+
EventRuleEventType2["FAX_RECEIVED"] = "fax:received";
|
|
7526
7762
|
return EventRuleEventType2;
|
|
7527
7763
|
})(EventRuleEventType || {});
|
|
7528
7764
|
var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
@@ -7576,12 +7812,13 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
7576
7812
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
7577
7813
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
7578
7814
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
7579
|
-
WorkspaceFeature2["JOURNEYS"] = "journeys";
|
|
7580
7815
|
WorkspaceFeature2["EXPERIMENTS"] = "experiments";
|
|
7581
|
-
WorkspaceFeature2["OPERATOR"] = "operator";
|
|
7582
7816
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
7583
7817
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
7818
|
+
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
7819
|
+
WorkspaceFeature2["GSHEETS"] = "gsheets";
|
|
7584
7820
|
WorkspaceFeature2["MONDAY"] = "monday";
|
|
7821
|
+
WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
|
|
7585
7822
|
WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
|
|
7586
7823
|
WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
|
|
7587
7824
|
WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
|
|
@@ -7764,6 +8001,7 @@ var AccessGrantResourceType = /* @__PURE__ */ ((AccessGrantResourceType2) => {
|
|
|
7764
8001
|
})(AccessGrantResourceType || {});
|
|
7765
8002
|
var CapabilityClass = /* @__PURE__ */ ((CapabilityClass2) => {
|
|
7766
8003
|
CapabilityClass2["TOOL_ALWAYS_ALLOW"] = "tool.always_allow";
|
|
8004
|
+
CapabilityClass2["SCOPE_ALWAYS_ALLOW"] = "scope.always_allow";
|
|
7767
8005
|
CapabilityClass2["SELF_MODIFICATION_SCHEDULE"] = "self_modification.schedule";
|
|
7768
8006
|
CapabilityClass2["ATTENTION_INTERRUPT_RUNG"] = "attention.interrupt_rung";
|
|
7769
8007
|
return CapabilityClass2;
|
|
@@ -8624,6 +8862,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
8624
8862
|
fhirConnections: new FhirConnectionsApi(apiKey, baseUrl, customFetch),
|
|
8625
8863
|
patientSyncConnections: new PatientSyncConnectionsApi(apiKey, baseUrl, customFetch),
|
|
8626
8864
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
8865
|
+
documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
|
|
8627
8866
|
hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
|
|
8628
8867
|
features: new FeaturesApi(apiKey, baseUrl, customFetch),
|
|
8629
8868
|
files: new FilesApi(apiKey, baseUrl, customFetch),
|
|
@@ -8685,7 +8924,9 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8685
8924
|
"autoCreateDataTypeFromBoard",
|
|
8686
8925
|
"blockWorkspaceInvitation",
|
|
8687
8926
|
"bookHealthieAppointment",
|
|
8927
|
+
"buildSiteSource",
|
|
8688
8928
|
"buildWorkspace",
|
|
8929
|
+
"bulkCreateMembers",
|
|
8689
8930
|
"bulkLinkMembersToHubspot",
|
|
8690
8931
|
"bulkLinkMembersToMonday",
|
|
8691
8932
|
"bulkLinkMembersToSalesforce",
|
|
@@ -8705,7 +8946,9 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8705
8946
|
"cloneWorkflow",
|
|
8706
8947
|
"closeWorkspaceSupportRequest",
|
|
8707
8948
|
"commentOnWorkspaceSupportRequest",
|
|
8949
|
+
"completeDiscordLink",
|
|
8708
8950
|
"configureConfluence",
|
|
8951
|
+
"configureDocumoFax",
|
|
8709
8952
|
"configureHealthie",
|
|
8710
8953
|
"configurePatientSync",
|
|
8711
8954
|
"configureHubspot",
|
|
@@ -8721,6 +8964,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8721
8964
|
"createAssignment",
|
|
8722
8965
|
"createCalendar",
|
|
8723
8966
|
"createCalendarEvent",
|
|
8967
|
+
"createCalendarEventType",
|
|
8724
8968
|
"createCalendarSchedule",
|
|
8725
8969
|
"createChat",
|
|
8726
8970
|
"createChatCompletion",
|
|
@@ -8730,12 +8974,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8730
8974
|
"createConnection",
|
|
8731
8975
|
"createCustomTool",
|
|
8732
8976
|
"createCustomToolkit",
|
|
8977
|
+
"createDashboard",
|
|
8733
8978
|
"createDataRecord",
|
|
8734
8979
|
"createDataRecordFilter",
|
|
8735
8980
|
"createDataType",
|
|
8736
8981
|
"createDiscordBot",
|
|
8737
8982
|
"createEventRule",
|
|
8738
|
-
"createEventType",
|
|
8739
8983
|
"createExperiment",
|
|
8740
8984
|
"createExperimentAssignment",
|
|
8741
8985
|
"createExperimentGroup",
|
|
@@ -8765,8 +9009,8 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8765
9009
|
"createScenario",
|
|
8766
9010
|
"createSignup",
|
|
8767
9011
|
"createSite",
|
|
9012
|
+
"createSiteSource",
|
|
8768
9013
|
"createSlackApp",
|
|
8769
|
-
"createSnippet",
|
|
8770
9014
|
"createStep",
|
|
8771
9015
|
"createSupervisor",
|
|
8772
9016
|
"createTask",
|
|
@@ -8783,6 +9027,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8783
9027
|
"deleteAssignment",
|
|
8784
9028
|
"deleteCalendar",
|
|
8785
9029
|
"deleteCalendarEvent",
|
|
9030
|
+
"deleteCalendarEventType",
|
|
8786
9031
|
"deleteCalendarSchedule",
|
|
8787
9032
|
"deleteChat",
|
|
8788
9033
|
"deleteChatFilter",
|
|
@@ -8792,13 +9037,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8792
9037
|
"deleteConnection",
|
|
8793
9038
|
"deleteCustomTool",
|
|
8794
9039
|
"deleteCustomToolkit",
|
|
9040
|
+
"deleteDashboard",
|
|
8795
9041
|
"deleteDataRecord",
|
|
8796
9042
|
"deleteDataRecordFilter",
|
|
8797
9043
|
"deleteDataType",
|
|
8798
9044
|
"deleteDiscordBot",
|
|
8799
9045
|
"deleteEnrollment",
|
|
8800
9046
|
"deleteEventRule",
|
|
8801
|
-
"deleteEventType",
|
|
8802
9047
|
"deleteExperiment",
|
|
8803
9048
|
"deleteExperimentAssignment",
|
|
8804
9049
|
"deleteExperimentGroup",
|
|
@@ -8832,7 +9077,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8832
9077
|
"deleteScenario",
|
|
8833
9078
|
"deleteSite",
|
|
8834
9079
|
"deleteSlackApp",
|
|
8835
|
-
"deleteSnippet",
|
|
8836
9080
|
"deleteSupervisor",
|
|
8837
9081
|
"deleteTask",
|
|
8838
9082
|
"deleteTeamsApp",
|
|
@@ -8856,10 +9100,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8856
9100
|
"disconnectMondayConnection",
|
|
8857
9101
|
"disconnectPresence",
|
|
8858
9102
|
"disconnectSalesforce",
|
|
9103
|
+
"discordLinkPreflight",
|
|
8859
9104
|
"discoverOAuthMetadata",
|
|
8860
9105
|
"dismissAllNotifications",
|
|
8861
9106
|
"dismissNotification",
|
|
8862
9107
|
"downloadEmailAttachment",
|
|
9108
|
+
"downloadFilesZip",
|
|
9109
|
+
"downloadSiteSourceZip",
|
|
8863
9110
|
"editWorkflowRevisionAsDraft",
|
|
8864
9111
|
"enableConfluence",
|
|
8865
9112
|
"enableCustomToolkit",
|
|
@@ -8876,9 +9123,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8876
9123
|
"exportChat",
|
|
8877
9124
|
"exportChats",
|
|
8878
9125
|
"exportMembers",
|
|
9126
|
+
"exportPhoneNumberOutboundAnalyticsCsv",
|
|
8879
9127
|
"exportWorkspace",
|
|
8880
9128
|
"fetchVoicemailAudio",
|
|
8881
9129
|
"fhirBackfillEncounterSync",
|
|
9130
|
+
"fhirCheckPatientLinks",
|
|
8882
9131
|
"fhirCreateEncounter",
|
|
8883
9132
|
"fhirCsvImportApply",
|
|
8884
9133
|
"fhirCsvImportInspect",
|
|
@@ -8929,15 +9178,15 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8929
9178
|
"getAvailableActions",
|
|
8930
9179
|
"getAvailablePhoneNumbers",
|
|
8931
9180
|
"getAvailableSlots",
|
|
8932
|
-
"getBoardColumns",
|
|
8933
|
-
"getBoardGroups",
|
|
8934
|
-
"getBoards",
|
|
8935
9181
|
"getBusinessHoursStatus",
|
|
8936
9182
|
"getCalendar",
|
|
8937
9183
|
"getCalendarEvent",
|
|
9184
|
+
"getCalendarEventType",
|
|
9185
|
+
"getCalendarEventTypes",
|
|
8938
9186
|
"getCalendarEvents",
|
|
8939
9187
|
"getCalendarSchedules",
|
|
8940
9188
|
"getCalendars",
|
|
9189
|
+
"getCallRecordingDownloadUrl",
|
|
8941
9190
|
"getCelContext",
|
|
8942
9191
|
"getCharlestonTestDeliveryRecipients",
|
|
8943
9192
|
"getChat",
|
|
@@ -8952,6 +9201,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8952
9201
|
"getChatLabelByUuid",
|
|
8953
9202
|
"getChatLabels",
|
|
8954
9203
|
"getChatMessages",
|
|
9204
|
+
"getChatModelOverride",
|
|
8955
9205
|
"getChatPhoneCalls",
|
|
8956
9206
|
"getChatSkills",
|
|
8957
9207
|
"getChatTodos",
|
|
@@ -8961,6 +9211,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8961
9211
|
"getChats",
|
|
8962
9212
|
"getChatsDailyCreationStats",
|
|
8963
9213
|
"getChatsNeedsResponse",
|
|
9214
|
+
"getChildThreadMessages",
|
|
8964
9215
|
"getClientWorkspace",
|
|
8965
9216
|
"getConfluenceStatus",
|
|
8966
9217
|
"getConnectionSyncCapabilities",
|
|
@@ -8968,9 +9219,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8968
9219
|
"getConnectionSyncConfig",
|
|
8969
9220
|
"getCredentialUpdateInvites",
|
|
8970
9221
|
"getCurrentMember",
|
|
8971
|
-
"
|
|
9222
|
+
"getCurrentSmsChat",
|
|
8972
9223
|
"getCustomToolkit",
|
|
8973
9224
|
"getCustomToolkits",
|
|
9225
|
+
"getDashboard",
|
|
9226
|
+
"getDashboardChannelStats",
|
|
9227
|
+
"getDashboardWorkflowAssignmentStats",
|
|
9228
|
+
"getDashboards",
|
|
8974
9229
|
"getDataRecord",
|
|
8975
9230
|
"getDataRecordChanges",
|
|
8976
9231
|
"getDataRecordFilter",
|
|
@@ -8987,10 +9242,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8987
9242
|
"getDiscordBots",
|
|
8988
9243
|
"getDiscordGuilds",
|
|
8989
9244
|
"getDiscordThreads",
|
|
9245
|
+
"getDocumoFaxSetup",
|
|
9246
|
+
"listDocumoFaxes",
|
|
9247
|
+
"getDocumoFaxStatus",
|
|
8990
9248
|
"getEventRule",
|
|
8991
9249
|
"getEventRules",
|
|
8992
|
-
"getEventType",
|
|
8993
|
-
"getEventTypes",
|
|
8994
9250
|
"getExperiment",
|
|
8995
9251
|
"getExperimentStats",
|
|
8996
9252
|
"getExperiments",
|
|
@@ -8999,6 +9255,26 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
8999
9255
|
"getFhirConnections",
|
|
9000
9256
|
"getFieldIndexStatus",
|
|
9001
9257
|
"getFile",
|
|
9258
|
+
"getMondayBoardColumns",
|
|
9259
|
+
"getMondayBoardGroups",
|
|
9260
|
+
"getMondayBoards",
|
|
9261
|
+
"getMondayCurrentUserInfo",
|
|
9262
|
+
"getMotd",
|
|
9263
|
+
"getPhoneNumberOutboundAnalyticsCalls",
|
|
9264
|
+
"getPhoneNumberOutboundAnalyticsSummary",
|
|
9265
|
+
"getQueryFields",
|
|
9266
|
+
"getSiteSharing",
|
|
9267
|
+
"getSiteSource",
|
|
9268
|
+
"getSiteSourceTemplates",
|
|
9269
|
+
"getThemeSettings",
|
|
9270
|
+
"importSiteSourceZip",
|
|
9271
|
+
"installDocumoFax",
|
|
9272
|
+
"listChatRecordings",
|
|
9273
|
+
"previewQuery",
|
|
9274
|
+
"publishSiteSource",
|
|
9275
|
+
"registerDiscordSlashCommands",
|
|
9276
|
+
"reopenWorkspaceSupportRequest",
|
|
9277
|
+
"resetSiteSource",
|
|
9002
9278
|
"resolveFilePath",
|
|
9003
9279
|
"getFileLabel",
|
|
9004
9280
|
"getFileLabelByUuid",
|
|
@@ -9009,6 +9285,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9009
9285
|
"getFiles",
|
|
9010
9286
|
"getFirstRunState",
|
|
9011
9287
|
"getFolder",
|
|
9288
|
+
"getFolderMemberAccess",
|
|
9012
9289
|
"getFolderSharing",
|
|
9013
9290
|
"getFolders",
|
|
9014
9291
|
"getGoogleCalendarStatus",
|
|
@@ -9030,6 +9307,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9030
9307
|
"getInboxThreads",
|
|
9031
9308
|
"getInboxes",
|
|
9032
9309
|
"getJourney",
|
|
9310
|
+
"getJourneyAuthoring",
|
|
9033
9311
|
"getJourneyHealth",
|
|
9034
9312
|
"getJourneyMembers",
|
|
9035
9313
|
"getJourneyNotes",
|
|
@@ -9094,6 +9372,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9094
9372
|
"getPhoneCalls",
|
|
9095
9373
|
"getPhoneNumber",
|
|
9096
9374
|
"getPhoneNumberCalls",
|
|
9375
|
+
"getPhoneNumberFaxes",
|
|
9097
9376
|
"getPhoneNumberMessages",
|
|
9098
9377
|
"getPhoneNumberVoicemails",
|
|
9099
9378
|
"getPhoneNumbers",
|
|
@@ -9131,7 +9410,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9131
9410
|
"getSlackApps",
|
|
9132
9411
|
"getSlackInstallations",
|
|
9133
9412
|
"getSlackThreads",
|
|
9134
|
-
"getSnippet",
|
|
9135
9413
|
"getStepMemberCounts",
|
|
9136
9414
|
"getStepMembers",
|
|
9137
9415
|
"getSupervisor",
|
|
@@ -9169,7 +9447,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9169
9447
|
"getWorkflowNotes",
|
|
9170
9448
|
"getWorkflowRevision",
|
|
9171
9449
|
"getWorkflowRevisions",
|
|
9172
|
-
"getWorkflowRouteDryRun",
|
|
9173
9450
|
"getWorkflowTaskAssignmentStats",
|
|
9174
9451
|
"getWorkflowTemplates",
|
|
9175
9452
|
"getWorkflowThumbnailUrl",
|
|
@@ -9199,6 +9476,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9199
9476
|
"initiateOutboundCall",
|
|
9200
9477
|
"inspectPrompt",
|
|
9201
9478
|
"installHubspot",
|
|
9479
|
+
"installDocumoFax",
|
|
9202
9480
|
"installMondayConnection",
|
|
9203
9481
|
"installSalesforce",
|
|
9204
9482
|
"inviteMemberCredentialUpdate",
|
|
@@ -9217,6 +9495,10 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9217
9495
|
"listConfluencePages",
|
|
9218
9496
|
"listConfluenceSpaces",
|
|
9219
9497
|
"listConnectionMemberFieldKeys",
|
|
9498
|
+
"rollbackSiteSource",
|
|
9499
|
+
"rotateDocumoFaxCredentials",
|
|
9500
|
+
"runQuery",
|
|
9501
|
+
"sendMemberPhoneConfirmation",
|
|
9220
9502
|
"setDefaultGooglePlatformAccount",
|
|
9221
9503
|
"listFileVersions",
|
|
9222
9504
|
"listGoogleCalendars",
|
|
@@ -9225,8 +9507,8 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9225
9507
|
"listHealthieProviders",
|
|
9226
9508
|
"listPersonas",
|
|
9227
9509
|
"listPushSubscriptions",
|
|
9510
|
+
"listSalesforceObjects",
|
|
9228
9511
|
"listScenarios",
|
|
9229
|
-
"listSnippets",
|
|
9230
9512
|
"listTestChatRuns",
|
|
9231
9513
|
"listWidgetDomains",
|
|
9232
9514
|
"listWorkspaceInvitationsAdmin",
|
|
@@ -9249,7 +9531,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9249
9531
|
"reenrollMember",
|
|
9250
9532
|
"registerLinkedRolesMetadata",
|
|
9251
9533
|
"registerPushSubscription",
|
|
9252
|
-
"registerSlashCommands",
|
|
9253
9534
|
"reindexFolder",
|
|
9254
9535
|
"releasePhoneNumber",
|
|
9255
9536
|
"removeFileRole",
|
|
@@ -9258,6 +9539,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9258
9539
|
"reorderEventRules",
|
|
9259
9540
|
"reorderMenuItems",
|
|
9260
9541
|
"replyToEmail",
|
|
9542
|
+
"rotateDocumoFaxCredentials",
|
|
9261
9543
|
"requestPhoneNumber",
|
|
9262
9544
|
"requestWorkspaceMembership",
|
|
9263
9545
|
"resetRoutineRuns",
|
|
@@ -9295,11 +9577,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9295
9577
|
"testMcpServerConnection",
|
|
9296
9578
|
"testMondayConnection",
|
|
9297
9579
|
"testRunJourney",
|
|
9580
|
+
"testWebhook",
|
|
9298
9581
|
"toggleFieldIndex",
|
|
9299
9582
|
"unarchiveAgent",
|
|
9300
9583
|
"unarchiveChat",
|
|
9301
9584
|
"unarchiveDataType",
|
|
9302
9585
|
"unarchiveMember",
|
|
9586
|
+
"unarchiveStep",
|
|
9303
9587
|
"unarchiveTask",
|
|
9304
9588
|
"unarchiveWorkflow",
|
|
9305
9589
|
"unenrollMembers",
|
|
@@ -9316,10 +9600,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9316
9600
|
"updateAssignment",
|
|
9317
9601
|
"updateCalendar",
|
|
9318
9602
|
"updateCalendarEvent",
|
|
9603
|
+
"updateCalendarEventType",
|
|
9319
9604
|
"updateCalendarSchedule",
|
|
9320
9605
|
"updateChat",
|
|
9321
9606
|
"updateChatFilter",
|
|
9322
9607
|
"updateChatLabel",
|
|
9608
|
+
"updateChatModelOverride",
|
|
9323
9609
|
"updateChatMute",
|
|
9324
9610
|
"updateChatNeedsResponse",
|
|
9325
9611
|
"updateClientWorkspace",
|
|
@@ -9328,13 +9614,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9328
9614
|
"updateCurrentMember",
|
|
9329
9615
|
"updateCustomTool",
|
|
9330
9616
|
"updateCustomToolkit",
|
|
9617
|
+
"updateDashboard",
|
|
9331
9618
|
"updateDataRecord",
|
|
9332
9619
|
"updateDataRecordFilter",
|
|
9333
9620
|
"updateDataType",
|
|
9334
9621
|
"updateDiscordBot",
|
|
9335
9622
|
"updateEventAttendee",
|
|
9336
9623
|
"updateEventRule",
|
|
9337
|
-
"updateEventType",
|
|
9338
9624
|
"updateExperiment",
|
|
9339
9625
|
"updateExperimentAssignment",
|
|
9340
9626
|
"updateExperimentGroup",
|
|
@@ -9371,12 +9657,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9371
9657
|
"updateSalesforceSyncConfig",
|
|
9372
9658
|
"updateScenario",
|
|
9373
9659
|
"updateSite",
|
|
9660
|
+
"updateSiteSharing",
|
|
9374
9661
|
"updateSlackApp",
|
|
9375
|
-
"updateSnippet",
|
|
9376
9662
|
"updateStep",
|
|
9377
9663
|
"updateSupervisor",
|
|
9378
9664
|
"updateTask",
|
|
9379
9665
|
"updateTeamsApp",
|
|
9666
|
+
"updateThemeSettings",
|
|
9380
9667
|
"uploadFile",
|
|
9381
9668
|
"updateVoicemailStatus",
|
|
9382
9669
|
"updateWorkflow",
|
|
@@ -9389,8 +9676,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9389
9676
|
"updateWorkspaceThemes",
|
|
9390
9677
|
"upsertDataRecord",
|
|
9391
9678
|
"upsertWidgetDomain",
|
|
9679
|
+
"validateCelExpression",
|
|
9392
9680
|
"validateDataTypeSlug",
|
|
9393
|
-
"
|
|
9681
|
+
"validateQuery",
|
|
9682
|
+
"validateWorkflowName",
|
|
9683
|
+
"verifyDocumoFax"
|
|
9394
9684
|
];
|
|
9395
9685
|
var WORKSPACE_METHOD_NAME_SET = new Set(WORKSPACE_METHOD_NAMES);
|
|
9396
9686
|
function createWorkspaceClient(root, workspaceUuid) {
|
|
@@ -9465,6 +9755,7 @@ function bindTasksMethods(target, tasks, abilities) {
|
|
|
9465
9755
|
function bindChatsMethods(target, chats) {
|
|
9466
9756
|
target.getChats = chats.getChats.bind(chats);
|
|
9467
9757
|
target.getChat = chats.getChat.bind(chats);
|
|
9758
|
+
target.getCurrentSmsChat = chats.getCurrentSmsChat.bind(chats);
|
|
9468
9759
|
target.getChatCallbacks = chats.getChatCallbacks.bind(chats);
|
|
9469
9760
|
target.cancelChatCallback = chats.cancelChatCallback.bind(chats);
|
|
9470
9761
|
target.getChatTokenUsage = chats.getChatTokenUsage.bind(chats);
|
|
@@ -9485,6 +9776,7 @@ function bindChatsMethods(target, chats) {
|
|
|
9485
9776
|
target.updateChatNeedsResponse = chats.updateChatNeedsResponse.bind(chats);
|
|
9486
9777
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
9487
9778
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
9779
|
+
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
9488
9780
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
9489
9781
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
9490
9782
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -9523,6 +9815,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
9523
9815
|
target.listChatRecordings = calls.listChatRecordings.bind(calls);
|
|
9524
9816
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
9525
9817
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
9818
|
+
target.validateCelExpression = cel.validateCelExpression.bind(cel);
|
|
9526
9819
|
}
|
|
9527
9820
|
|
|
9528
9821
|
// src/client/bindings/dashboards.ts
|
|
@@ -9839,6 +10132,7 @@ function bindFilesMethods(target, files) {
|
|
|
9839
10132
|
target.updateFileRoles = files.updateFileRoles.bind(files);
|
|
9840
10133
|
target.removeFileRole = files.removeFileRole.bind(files);
|
|
9841
10134
|
target.getFolderSharing = files.getFolderSharing.bind(files);
|
|
10135
|
+
target.getFolderMemberAccess = files.getFolderMemberAccess.bind(files);
|
|
9842
10136
|
target.updateFolderRoles = files.updateFolderRoles.bind(files);
|
|
9843
10137
|
target.removeFolderRole = files.removeFolderRole.bind(files);
|
|
9844
10138
|
target.updateFileSharing = files.updateFileSharing.bind(files);
|
|
@@ -9995,6 +10289,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
9995
10289
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
9996
10290
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
9997
10291
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
10292
|
+
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
9998
10293
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
9999
10294
|
target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
|
|
10000
10295
|
target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
|
|
@@ -10118,7 +10413,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
10118
10413
|
}
|
|
10119
10414
|
|
|
10120
10415
|
// src/client/bindings/integrations.ts
|
|
10121
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
10416
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
10122
10417
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
10123
10418
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
10124
10419
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
@@ -10190,6 +10485,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
10190
10485
|
target.fhirFetchEncounters = fhirConnections.fhirFetchEncounters.bind(fhirConnections);
|
|
10191
10486
|
target.fhirCreateEncounter = fhirConnections.fhirCreateEncounter.bind(fhirConnections);
|
|
10192
10487
|
target.fhirListLinkedMembers = fhirConnections.fhirListLinkedMembers.bind(fhirConnections);
|
|
10488
|
+
target.fhirCheckPatientLinks = fhirConnections.fhirCheckPatientLinks.bind(fhirConnections);
|
|
10193
10489
|
target.fhirLinkMember = fhirConnections.fhirLinkMember.bind(fhirConnections);
|
|
10194
10490
|
target.fhirUnlinkMember = fhirConnections.fhirUnlinkMember.bind(fhirConnections);
|
|
10195
10491
|
target.fhirSyncMember = fhirConnections.fhirSyncMember.bind(fhirConnections);
|
|
@@ -10209,6 +10505,13 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
10209
10505
|
target.configurePatientSync = patientSyncConnections.configurePatientSync.bind(patientSyncConnections);
|
|
10210
10506
|
target.getPatientSyncStatus = patientSyncConnections.getPatientSyncStatus.bind(patientSyncConnections);
|
|
10211
10507
|
target.deletePatientSyncConnection = patientSyncConnections.deletePatientSyncConnection.bind(patientSyncConnections);
|
|
10508
|
+
target.getDocumoFaxStatus = documoFax.getDocumoFaxStatus.bind(documoFax);
|
|
10509
|
+
target.getDocumoFaxSetup = documoFax.getDocumoFaxSetup.bind(documoFax);
|
|
10510
|
+
target.listDocumoFaxes = documoFax.listDocumoFaxes.bind(documoFax);
|
|
10511
|
+
target.installDocumoFax = documoFax.installDocumoFax.bind(documoFax);
|
|
10512
|
+
target.configureDocumoFax = documoFax.configureDocumoFax.bind(documoFax);
|
|
10513
|
+
target.verifyDocumoFax = documoFax.verifyDocumoFax.bind(documoFax);
|
|
10514
|
+
target.rotateDocumoFaxCredentials = documoFax.rotateDocumoFaxCredentials.bind(documoFax);
|
|
10212
10515
|
target.configureHealthie = healthie.configureHealthie.bind(healthie);
|
|
10213
10516
|
target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
|
|
10214
10517
|
target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
|
|
@@ -10247,6 +10550,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
10247
10550
|
target.getLinkedSalesforceMembers = salesforce.getLinkedSalesforceMembers.bind(salesforce);
|
|
10248
10551
|
target.getSalesforceSyncConfig = salesforce.getSalesforceSyncConfig.bind(salesforce);
|
|
10249
10552
|
target.updateSalesforceSyncConfig = salesforce.updateSalesforceSyncConfig.bind(salesforce);
|
|
10553
|
+
target.listSalesforceObjects = salesforce.listSalesforceObjects.bind(salesforce);
|
|
10250
10554
|
target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
|
|
10251
10555
|
target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
|
|
10252
10556
|
target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
|
|
@@ -10348,6 +10652,7 @@ function bindPronunciationsMethods(target, pronunciations) {
|
|
|
10348
10652
|
function bindJourneysMethods(target, journeys) {
|
|
10349
10653
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
10350
10654
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
10655
|
+
target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
|
|
10351
10656
|
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
10352
10657
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
10353
10658
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
@@ -10355,6 +10660,7 @@ function bindJourneysMethods(target, journeys) {
|
|
|
10355
10660
|
target.createStep = journeys.createStep.bind(journeys);
|
|
10356
10661
|
target.updateStep = journeys.updateStep.bind(journeys);
|
|
10357
10662
|
target.archiveStep = journeys.archiveStep.bind(journeys);
|
|
10663
|
+
target.unarchiveStep = journeys.unarchiveStep.bind(journeys);
|
|
10358
10664
|
target.createConnection = journeys.createConnection.bind(journeys);
|
|
10359
10665
|
target.updateConnection = journeys.updateConnection.bind(journeys);
|
|
10360
10666
|
target.deleteConnection = journeys.deleteConnection.bind(journeys);
|
|
@@ -10488,6 +10794,7 @@ var GravityRailClient = class {
|
|
|
10488
10794
|
// Chats API
|
|
10489
10795
|
getChats;
|
|
10490
10796
|
getChat;
|
|
10797
|
+
getCurrentSmsChat;
|
|
10491
10798
|
getChatCallbacks;
|
|
10492
10799
|
cancelChatCallback;
|
|
10493
10800
|
getChatTokenUsage;
|
|
@@ -10508,6 +10815,7 @@ var GravityRailClient = class {
|
|
|
10508
10815
|
updateChatNeedsResponse;
|
|
10509
10816
|
summarizeChat;
|
|
10510
10817
|
getChatMessages;
|
|
10818
|
+
getChildThreadMessages;
|
|
10511
10819
|
getChatToolCallMessages;
|
|
10512
10820
|
getChatTools;
|
|
10513
10821
|
initiateOutboundCall;
|
|
@@ -10543,6 +10851,7 @@ var GravityRailClient = class {
|
|
|
10543
10851
|
listChatRecordings;
|
|
10544
10852
|
getCallRecordingDownloadUrl;
|
|
10545
10853
|
getCelContext;
|
|
10854
|
+
validateCelExpression;
|
|
10546
10855
|
// Data Types API
|
|
10547
10856
|
getDataTypes;
|
|
10548
10857
|
getDataType;
|
|
@@ -10681,6 +10990,7 @@ var GravityRailClient = class {
|
|
|
10681
10990
|
// Journeys API
|
|
10682
10991
|
getJourneys;
|
|
10683
10992
|
getJourney;
|
|
10993
|
+
getJourneyAuthoring;
|
|
10684
10994
|
getJourneyHealth;
|
|
10685
10995
|
createJourney;
|
|
10686
10996
|
updateJourney;
|
|
@@ -10688,6 +10998,7 @@ var GravityRailClient = class {
|
|
|
10688
10998
|
createStep;
|
|
10689
10999
|
updateStep;
|
|
10690
11000
|
archiveStep;
|
|
11001
|
+
unarchiveStep;
|
|
10691
11002
|
createConnection;
|
|
10692
11003
|
updateConnection;
|
|
10693
11004
|
deleteConnection;
|
|
@@ -10968,6 +11279,7 @@ var GravityRailClient = class {
|
|
|
10968
11279
|
updateFileRoles;
|
|
10969
11280
|
removeFileRole;
|
|
10970
11281
|
getFolderSharing;
|
|
11282
|
+
getFolderMemberAccess;
|
|
10971
11283
|
updateFolderRoles;
|
|
10972
11284
|
removeFolderRole;
|
|
10973
11285
|
updateFileSharing;
|
|
@@ -11096,6 +11408,7 @@ var GravityRailClient = class {
|
|
|
11096
11408
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
11097
11409
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
11098
11410
|
getPhoneNumberMessages;
|
|
11411
|
+
getPhoneNumberFaxes;
|
|
11099
11412
|
getPhoneNumberVoicemails;
|
|
11100
11413
|
fetchVoicemailAudio;
|
|
11101
11414
|
updateVoicemailStatus;
|
|
@@ -11284,6 +11597,7 @@ var GravityRailClient = class {
|
|
|
11284
11597
|
fhirFetchEncounters;
|
|
11285
11598
|
fhirCreateEncounter;
|
|
11286
11599
|
fhirListLinkedMembers;
|
|
11600
|
+
fhirCheckPatientLinks;
|
|
11287
11601
|
fhirLinkMember;
|
|
11288
11602
|
fhirUnlinkMember;
|
|
11289
11603
|
fhirSyncMember;
|
|
@@ -11301,6 +11615,13 @@ var GravityRailClient = class {
|
|
|
11301
11615
|
fhirRefreshEncounterPatient;
|
|
11302
11616
|
fhirBackfillEncounterSync;
|
|
11303
11617
|
// Healthie API
|
|
11618
|
+
getDocumoFaxStatus;
|
|
11619
|
+
getDocumoFaxSetup;
|
|
11620
|
+
listDocumoFaxes;
|
|
11621
|
+
installDocumoFax;
|
|
11622
|
+
configureDocumoFax;
|
|
11623
|
+
verifyDocumoFax;
|
|
11624
|
+
rotateDocumoFaxCredentials;
|
|
11304
11625
|
configurePatientSync;
|
|
11305
11626
|
getPatientSyncStatus;
|
|
11306
11627
|
deletePatientSyncConnection;
|
|
@@ -11344,6 +11665,7 @@ var GravityRailClient = class {
|
|
|
11344
11665
|
getLinkedSalesforceMembers;
|
|
11345
11666
|
getSalesforceSyncConfig;
|
|
11346
11667
|
updateSalesforceSyncConfig;
|
|
11668
|
+
listSalesforceObjects;
|
|
11347
11669
|
describeSalesforceObject;
|
|
11348
11670
|
searchSalesforceRecords;
|
|
11349
11671
|
importSalesforceMembers;
|
|
@@ -11494,6 +11816,7 @@ var GravityRailClient = class {
|
|
|
11494
11816
|
apis.fhirConnections,
|
|
11495
11817
|
apis.patientSyncConnections,
|
|
11496
11818
|
apis.healthie,
|
|
11819
|
+
apis.documoFax,
|
|
11497
11820
|
apis.salesforce,
|
|
11498
11821
|
apis.hubspot,
|
|
11499
11822
|
apis.appConnections,
|
|
@@ -11624,6 +11947,7 @@ var AbilityTypeSlugs = {
|
|
|
11624
11947
|
GMAIL: "integration:gmail",
|
|
11625
11948
|
GOOGLE_CALENDAR: "integration:google_calendar",
|
|
11626
11949
|
GOOGLE_DRIVE: "integration:google_drive",
|
|
11950
|
+
GOOGLE_SHEETS: "integration:google_sheets",
|
|
11627
11951
|
CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
|
|
11628
11952
|
// Communication
|
|
11629
11953
|
PHONE_CALL_TOOLS: "communication:phone_call_tools",
|
|
@@ -11693,6 +12017,14 @@ var SMS_DELIVERY_FAILURE_STATUSES = /* @__PURE__ */ new Set([
|
|
|
11693
12017
|
function isSMSDeliveryFailureStatus(status) {
|
|
11694
12018
|
return status != null && SMS_DELIVERY_FAILURE_STATUSES.has(status);
|
|
11695
12019
|
}
|
|
12020
|
+
var AGENT_NOTE_ORIGINS = /* @__PURE__ */ new Set([
|
|
12021
|
+
"workflow",
|
|
12022
|
+
"background_run",
|
|
12023
|
+
"platform"
|
|
12024
|
+
]);
|
|
12025
|
+
function isAgentNoteOrigin(origin) {
|
|
12026
|
+
return origin != null && AGENT_NOTE_ORIGINS.has(origin);
|
|
12027
|
+
}
|
|
11696
12028
|
var POSITIVE_RATING_THRESHOLD = 0.5;
|
|
11697
12029
|
function isPositiveRating(rating) {
|
|
11698
12030
|
return rating != null && rating >= POSITIVE_RATING_THRESHOLD;
|
|
@@ -12766,6 +13098,7 @@ export {
|
|
|
12766
13098
|
EventsApi,
|
|
12767
13099
|
FeaturesApi,
|
|
12768
13100
|
FhirConnectionsApi,
|
|
13101
|
+
InboundFaxStatus,
|
|
12769
13102
|
HealthieApi,
|
|
12770
13103
|
FilesApi,
|
|
12771
13104
|
InboxesApi,
|
|
@@ -12817,6 +13150,10 @@ export {
|
|
|
12817
13150
|
PERMISSION_DELETE,
|
|
12818
13151
|
decodePermissions,
|
|
12819
13152
|
encodePermissions,
|
|
13153
|
+
WORKFLOW_IMPLICIT_USE_SCOPE,
|
|
13154
|
+
roleImplicitWorkflowUseScope,
|
|
13155
|
+
roleWorkflowAccess,
|
|
13156
|
+
roleCanUseWorkflow,
|
|
12820
13157
|
Scope,
|
|
12821
13158
|
BulkMemberResultStatus,
|
|
12822
13159
|
MemberImportMatchInfoMatchType,
|
|
@@ -12919,6 +13256,8 @@ export {
|
|
|
12919
13256
|
QUERY_VALUELESS_OPS,
|
|
12920
13257
|
SMS_DELIVERY_FAILURE_STATUSES,
|
|
12921
13258
|
isSMSDeliveryFailureStatus,
|
|
13259
|
+
AGENT_NOTE_ORIGINS,
|
|
13260
|
+
isAgentNoteOrigin,
|
|
12922
13261
|
POSITIVE_RATING_THRESHOLD,
|
|
12923
13262
|
isPositiveRating,
|
|
12924
13263
|
BusinessIndustry,
|
|
@@ -12969,4 +13308,4 @@ export {
|
|
|
12969
13308
|
SCOPE_PRESETS,
|
|
12970
13309
|
getRevisionState
|
|
12971
13310
|
};
|
|
12972
|
-
//# sourceMappingURL=chunk-
|
|
13311
|
+
//# sourceMappingURL=chunk-QTJQTTIR.js.map
|