@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
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var src_exports = {};
|
|
22
22
|
__export(src_exports, {
|
|
23
|
+
AGENT_NOTE_ORIGINS: () => AGENT_NOTE_ORIGINS,
|
|
23
24
|
AbilityConfigIssueCode: () => AbilityConfigIssueCode,
|
|
24
25
|
AbilityConfigIssueSeverity: () => AbilityConfigIssueSeverity,
|
|
25
26
|
AbilityTypeSlugs: () => AbilityTypeSlugs,
|
|
@@ -70,6 +71,7 @@ __export(src_exports, {
|
|
|
70
71
|
FhirVendor: () => FhirVendor,
|
|
71
72
|
FormBuilder: () => FormBuilder,
|
|
72
73
|
GravityRailClient: () => GravityRailClient,
|
|
74
|
+
InboundFaxStatusValues: () => InboundFaxStatus,
|
|
73
75
|
IndexStatus: () => IndexStatus,
|
|
74
76
|
InvitationStatus: () => InvitationStatus,
|
|
75
77
|
JobPosition: () => JobPosition,
|
|
@@ -144,6 +146,7 @@ __export(src_exports, {
|
|
|
144
146
|
TemplatesApi: () => TemplatesApi,
|
|
145
147
|
ToolkitState: () => ToolkitState,
|
|
146
148
|
WIDGET_SLUGS: () => WIDGET_SLUGS,
|
|
149
|
+
WORKFLOW_IMPLICIT_USE_SCOPE: () => WORKFLOW_IMPLICIT_USE_SCOPE,
|
|
147
150
|
WorkflowAccessWarningResourceType: () => WorkflowAccessWarningResourceType,
|
|
148
151
|
WorkflowBuilder: () => WorkflowBuilder,
|
|
149
152
|
WorkflowResourceType: () => WorkflowAccessWarningResourceType,
|
|
@@ -174,12 +177,17 @@ __export(src_exports, {
|
|
|
174
177
|
getTTSProvider: () => getTTSProvider,
|
|
175
178
|
getVoiceModelId: () => getVoiceModelId,
|
|
176
179
|
initializeFeatures: () => initializeFeatures,
|
|
180
|
+
isAgentNoteOrigin: () => isAgentNoteOrigin,
|
|
177
181
|
isChatType: () => isChatType,
|
|
178
182
|
isFeatureAvailable: () => isFeatureAvailable,
|
|
179
183
|
isPositiveRating: () => isPositiveRating,
|
|
180
184
|
isRegistryInitialized: () => isRegistryInitialized,
|
|
181
185
|
isSMSDeliveryFailureStatus: () => isSMSDeliveryFailureStatus,
|
|
186
|
+
parseOrgAuthChallenge: () => parseOrgAuthChallenge,
|
|
182
187
|
requiresAssistantParticipant: () => requiresAssistantParticipant,
|
|
188
|
+
roleCanUseWorkflow: () => roleCanUseWorkflow,
|
|
189
|
+
roleImplicitWorkflowUseScope: () => roleImplicitWorkflowUseScope,
|
|
190
|
+
roleWorkflowAccess: () => roleWorkflowAccess,
|
|
183
191
|
runWorkspaceScript: () => runWorkspaceScript,
|
|
184
192
|
usesBuiltinAssistant: () => usesBuiltinAssistant,
|
|
185
193
|
validateFeatureDependencies: () => validateFeatureDependencies
|
|
@@ -1925,6 +1933,12 @@ var CELApi = class extends BaseApiClient {
|
|
|
1925
1933
|
body: JSON.stringify(request)
|
|
1926
1934
|
});
|
|
1927
1935
|
}
|
|
1936
|
+
async validateCelExpression(wid, request) {
|
|
1937
|
+
return this.fetch(`w/${wid}/cel/validate`, {
|
|
1938
|
+
method: "POST",
|
|
1939
|
+
body: JSON.stringify(request)
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1928
1942
|
};
|
|
1929
1943
|
|
|
1930
1944
|
// src/api/chats.ts
|
|
@@ -1944,6 +1958,8 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1944
1958
|
if (options.mine !== void 0) params.append("mine", options.mine.toString());
|
|
1945
1959
|
if (options.needsResponse !== void 0)
|
|
1946
1960
|
params.append("needsResponse", options.needsResponse.toString());
|
|
1961
|
+
if (options.needsResponseFirst !== void 0)
|
|
1962
|
+
params.append("needsResponseFirst", options.needsResponseFirst.toString());
|
|
1947
1963
|
if (options.paused !== void 0) params.append("paused", options.paused.toString());
|
|
1948
1964
|
if (options.archived !== void 0) params.append("archived", options.archived.toString());
|
|
1949
1965
|
if (options.channel) params.append("channel", options.channel);
|
|
@@ -1993,6 +2009,25 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1993
2009
|
async getChat(wid, id) {
|
|
1994
2010
|
return this.fetch(`w/${wid}/chats/${id}`);
|
|
1995
2011
|
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Create-chat preflight for SMS: is a conversation already live between this
|
|
2014
|
+
* workspace number and this member?
|
|
2015
|
+
*
|
|
2016
|
+
* An SMS conversation with a member is a single stream — inbound SMS resolves
|
|
2017
|
+
* to ONE current chat per (member phone, workspace phone) pair — so creating
|
|
2018
|
+
* a new SMS chat SUPERSEDES the existing one and the member's next reply
|
|
2019
|
+
* lands on the new chat. Callers use this to say so before committing.
|
|
2020
|
+
*
|
|
2021
|
+
* Read-only, `chats:read`, and PHI-safe by construction: status and timing
|
|
2022
|
+
* only, no message content and no chat title.
|
|
2023
|
+
*/
|
|
2024
|
+
async getCurrentSmsChat(wid, options) {
|
|
2025
|
+
const params = new URLSearchParams({
|
|
2026
|
+
memberId: options.memberId.toString(),
|
|
2027
|
+
phoneNumberId: options.phoneNumberId.toString()
|
|
2028
|
+
});
|
|
2029
|
+
return this.fetch(`w/${wid}/chats/current-sms?${params}`);
|
|
2030
|
+
}
|
|
1996
2031
|
/** Get token usage statistics for a chat. */
|
|
1997
2032
|
async getChatTokenUsage(wid, chatId) {
|
|
1998
2033
|
return this.fetch(`w/${wid}/chats/${chatId}/token-usage`);
|
|
@@ -2142,6 +2177,24 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2142
2177
|
`w/${wid}/chats/${id}/messages${params.toString() ? `?${params.toString()}` : ""}`
|
|
2143
2178
|
);
|
|
2144
2179
|
}
|
|
2180
|
+
/** List the background-work thread hanging off a message.
|
|
2181
|
+
*
|
|
2182
|
+
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
2183
|
+
* background (ADR-11 / forked trajectories), writing its messages as a
|
|
2184
|
+
* child thread parented at the fork point. Main-history reads exclude
|
|
2185
|
+
* them, so this is how the "show work" affordance fetches them — lazily,
|
|
2186
|
+
* only when a message with a non-zero `childMessageCount` is expanded.
|
|
2187
|
+
* Returns the thread in chronological order, empty when there is none.
|
|
2188
|
+
*
|
|
2189
|
+
* `messageUuid` is the fork point's `ChatMessage.id`. */
|
|
2190
|
+
async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
|
|
2191
|
+
const params = new URLSearchParams();
|
|
2192
|
+
params.append("limit", limit.toString());
|
|
2193
|
+
params.append("offset", offset.toString());
|
|
2194
|
+
return this.fetch(
|
|
2195
|
+
`w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
|
|
2196
|
+
);
|
|
2197
|
+
}
|
|
2145
2198
|
/** List messages associated with a specific tool call in a chat. */
|
|
2146
2199
|
async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
|
|
2147
2200
|
const params = new URLSearchParams();
|
|
@@ -3527,6 +3580,17 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
3527
3580
|
{ method: "POST", body: JSON.stringify(data) }
|
|
3528
3581
|
);
|
|
3529
3582
|
}
|
|
3583
|
+
/**
|
|
3584
|
+
* Bounded, read-only check of which external patient IDs are already
|
|
3585
|
+
* linked on this connection. PHI-minimal: sends/returns external patient
|
|
3586
|
+
* IDs only — never demographics.
|
|
3587
|
+
*/
|
|
3588
|
+
async fhirCheckPatientLinks(wid, connectionId, data) {
|
|
3589
|
+
return this.fetch(
|
|
3590
|
+
`w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members/check`,
|
|
3591
|
+
{ method: "POST", body: JSON.stringify(data) }
|
|
3592
|
+
);
|
|
3593
|
+
}
|
|
3530
3594
|
// ==================== Encounter Sync ====================
|
|
3531
3595
|
async fhirGetEncounterSyncStatus(wid, connectionId) {
|
|
3532
3596
|
return this.fetch(`w/${wid}/app-connections/fhir/connections/${connectionId}/encounter-sync`);
|
|
@@ -3582,6 +3646,79 @@ var PatientSyncConnectionsApi = class extends BaseApiClient {
|
|
|
3582
3646
|
}
|
|
3583
3647
|
};
|
|
3584
3648
|
|
|
3649
|
+
// src/types/generated/inbound_fax.ts
|
|
3650
|
+
var InboundFaxStatus = {
|
|
3651
|
+
pending: "pending",
|
|
3652
|
+
received: "received",
|
|
3653
|
+
failed: "failed"
|
|
3654
|
+
};
|
|
3655
|
+
|
|
3656
|
+
// src/api/documo-fax.ts
|
|
3657
|
+
var DocumoFaxApi = class extends BaseApiClient {
|
|
3658
|
+
async getDocumoFaxStatus(wid) {
|
|
3659
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/status`);
|
|
3660
|
+
}
|
|
3661
|
+
async getDocumoFaxSetup(wid) {
|
|
3662
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/setup`);
|
|
3663
|
+
}
|
|
3664
|
+
/**
|
|
3665
|
+
* Received-fax log for this connection.
|
|
3666
|
+
*
|
|
3667
|
+
* Entries carry `senderNumber`, which is an unauthenticated claim by the
|
|
3668
|
+
* sending machine and is PHI. Render it; never log it.
|
|
3669
|
+
*
|
|
3670
|
+
* `status` is repeatable — one query entry per value, matching the route's
|
|
3671
|
+
* `list[str]` binding. The date bounds filter on when the delivery was
|
|
3672
|
+
* recorded, not on `receivedAt`: a fax that failed before storage never
|
|
3673
|
+
* gets a `receivedAt`, so bounding that column would hide exactly the
|
|
3674
|
+
* failures an operator filtering by date is hunting for.
|
|
3675
|
+
*/
|
|
3676
|
+
async listDocumoFaxes(wid, params) {
|
|
3677
|
+
const query = new URLSearchParams();
|
|
3678
|
+
if (params?.page !== void 0) query.set("page", String(params.page));
|
|
3679
|
+
if (params?.pageSize !== void 0) query.set("pageSize", String(params.pageSize));
|
|
3680
|
+
params?.status?.forEach((value) => query.append("status", value));
|
|
3681
|
+
if (params?.receivedAfter) query.set("receivedAfter", params.receivedAfter);
|
|
3682
|
+
if (params?.receivedBefore) query.set("receivedBefore", params.receivedBefore);
|
|
3683
|
+
const suffix = query.toString() === "" ? "" : `?${query.toString()}`;
|
|
3684
|
+
return this.fetch(
|
|
3685
|
+
`w/${wid}/app-connections/documo-fax/faxes${suffix}`
|
|
3686
|
+
);
|
|
3687
|
+
}
|
|
3688
|
+
/**
|
|
3689
|
+
* The three bodyless POSTs below send `{}` deliberately: the routes require
|
|
3690
|
+
* a JSON body as a CSRF barrier (a cross-site HTML form POST cannot set
|
|
3691
|
+
* Content-Type: application/json, so it 422s). See GRA-6284.
|
|
3692
|
+
*/
|
|
3693
|
+
async installDocumoFax(wid) {
|
|
3694
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/install`, {
|
|
3695
|
+
method: "POST",
|
|
3696
|
+
body: JSON.stringify({})
|
|
3697
|
+
});
|
|
3698
|
+
}
|
|
3699
|
+
async configureDocumoFax(wid, data) {
|
|
3700
|
+
return this.fetch(
|
|
3701
|
+
`w/${wid}/app-connections/documo-fax/configure`,
|
|
3702
|
+
{
|
|
3703
|
+
method: "POST",
|
|
3704
|
+
body: JSON.stringify(data)
|
|
3705
|
+
}
|
|
3706
|
+
);
|
|
3707
|
+
}
|
|
3708
|
+
async verifyDocumoFax(wid) {
|
|
3709
|
+
return this.fetch(`w/${wid}/app-connections/documo-fax/verify`, {
|
|
3710
|
+
method: "POST",
|
|
3711
|
+
body: JSON.stringify({})
|
|
3712
|
+
});
|
|
3713
|
+
}
|
|
3714
|
+
async rotateDocumoFaxCredentials(wid) {
|
|
3715
|
+
return this.fetch(
|
|
3716
|
+
`w/${wid}/app-connections/documo-fax/rotate-credentials`,
|
|
3717
|
+
{ method: "POST", body: JSON.stringify({}) }
|
|
3718
|
+
);
|
|
3719
|
+
}
|
|
3720
|
+
};
|
|
3721
|
+
|
|
3585
3722
|
// src/api/healthie.ts
|
|
3586
3723
|
var HealthieApi = class extends BaseApiClient {
|
|
3587
3724
|
async configureHealthie(wid, data) {
|
|
@@ -3915,6 +4052,16 @@ var FilesApi = class extends BaseApiClient {
|
|
|
3915
4052
|
async getFolderSharing(wid, folderId) {
|
|
3916
4053
|
return this.fetch(`w/${wid}/folders/${folderId}/sharing`);
|
|
3917
4054
|
}
|
|
4055
|
+
/**
|
|
4056
|
+
* Ask whether another member can read a folder, evaluated by the real
|
|
4057
|
+
* authorizer as that member. Used to tell "a landing folder is set" apart
|
|
4058
|
+
* from "the fax owner can actually open it".
|
|
4059
|
+
*/
|
|
4060
|
+
async getFolderMemberAccess(wid, folderId, memberId) {
|
|
4061
|
+
return this.fetch(
|
|
4062
|
+
`w/${wid}/folders/${folderId}/member-access?memberId=${memberId}`
|
|
4063
|
+
);
|
|
4064
|
+
}
|
|
3918
4065
|
/** Update the role associations for a folder's sharing permissions. */
|
|
3919
4066
|
async updateFolderRoles(wid, folderId, data) {
|
|
3920
4067
|
return this.fetch(
|
|
@@ -5717,7 +5864,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5717
5864
|
`o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products`
|
|
5718
5865
|
);
|
|
5719
5866
|
}
|
|
5720
|
-
/**
|
|
5867
|
+
/**
|
|
5868
|
+
* Reconcile trust product state against Twilio (discovery + status
|
|
5869
|
+
* refresh). Returns the refreshed products plus which product keys were
|
|
5870
|
+
* newly discovered. Responds 409 when another Trust Hub operation holds
|
|
5871
|
+
* the org lock — retry shortly rather than queueing.
|
|
5872
|
+
*/
|
|
5721
5873
|
async syncVoiceTrustProducts(orgUuid, legalEntityUuid) {
|
|
5722
5874
|
return this.fetch(
|
|
5723
5875
|
`o/${orgUuid}/legal-entities/${legalEntityUuid}/trust-products/sync`,
|
|
@@ -5860,6 +6012,9 @@ function getOAuthPath(providerSlug, action) {
|
|
|
5860
6012
|
if (providerSlug === "gdrive") {
|
|
5861
6013
|
return `oauth/google/drive/${action}`;
|
|
5862
6014
|
}
|
|
6015
|
+
if (providerSlug === "gsheets") {
|
|
6016
|
+
return `oauth/google/sheets/${action}`;
|
|
6017
|
+
}
|
|
5863
6018
|
return `oauth/${providerSlug}/${action}`;
|
|
5864
6019
|
}
|
|
5865
6020
|
function buildAuthorizeQuery(options) {
|
|
@@ -6035,6 +6190,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
6035
6190
|
`w/${wid}/phone-numbers/${id}/messages?${params}`
|
|
6036
6191
|
);
|
|
6037
6192
|
}
|
|
6193
|
+
/**
|
|
6194
|
+
* List received faxes for a phone number.
|
|
6195
|
+
*
|
|
6196
|
+
* The same log the Documo connection page shows, scoped to a number. Rows
|
|
6197
|
+
* carry `senderNumber` — an unauthenticated claim by the sending machine,
|
|
6198
|
+
* and PHI. Render it for triage; never log it.
|
|
6199
|
+
*
|
|
6200
|
+
* Same query vocabulary as `listDocumoFaxes` — one log, one spelling.
|
|
6201
|
+
* `status` is repeatable and is validated against the status enum, so a
|
|
6202
|
+
* typo is a 422 rather than a silently empty page. The date bounds filter
|
|
6203
|
+
* on when the delivery was recorded, not on `receivedAt`: a fax that failed
|
|
6204
|
+
* before storage never gets a `receivedAt`, so bounding that column would
|
|
6205
|
+
* hide exactly the failures an operator filtering by date is hunting for.
|
|
6206
|
+
*/
|
|
6207
|
+
async getPhoneNumberFaxes(wid, id, page = 1, pageSize = 10, filters) {
|
|
6208
|
+
const params = new URLSearchParams({
|
|
6209
|
+
page: String(page),
|
|
6210
|
+
pageSize: String(pageSize)
|
|
6211
|
+
});
|
|
6212
|
+
filters?.status?.forEach((value) => params.append("status", value));
|
|
6213
|
+
if (filters?.receivedAfter) params.set("receivedAfter", filters.receivedAfter);
|
|
6214
|
+
if (filters?.receivedBefore) params.set("receivedBefore", filters.receivedBefore);
|
|
6215
|
+
return this.fetch(
|
|
6216
|
+
`w/${wid}/phone-numbers/${id}/faxes?${params}`
|
|
6217
|
+
);
|
|
6218
|
+
}
|
|
6038
6219
|
/** List provider phones available for linking to workspace phone numbers. */
|
|
6039
6220
|
async getLinkablePhones(wid) {
|
|
6040
6221
|
return this.fetch(`w/${wid}/phone-numbers/linkable-phones`);
|
|
@@ -6553,6 +6734,16 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
6553
6734
|
}
|
|
6554
6735
|
);
|
|
6555
6736
|
}
|
|
6737
|
+
/**
|
|
6738
|
+
* List the sObjects available in the connected org.
|
|
6739
|
+
*
|
|
6740
|
+
* Backs the Target Object picker: the object set is org-specific (custom
|
|
6741
|
+
* objects included), so it must come from the org rather than a hardcoded
|
|
6742
|
+
* list.
|
|
6743
|
+
*/
|
|
6744
|
+
async listSalesforceObjects(wid) {
|
|
6745
|
+
return this.fetch(`w/${wid}/app-connections/salesforce/objects`);
|
|
6746
|
+
}
|
|
6556
6747
|
async describeSalesforceObject(wid, sobject) {
|
|
6557
6748
|
return this.fetch(
|
|
6558
6749
|
`w/${wid}/app-connections/salesforce/describe/${encodeURIComponent(sobject)}`
|
|
@@ -7591,7 +7782,12 @@ var ToolkitsApi = class extends BaseApiClient {
|
|
|
7591
7782
|
|
|
7592
7783
|
// src/api/journeys.ts
|
|
7593
7784
|
var JourneysApi = class extends BaseApiClient {
|
|
7594
|
-
/**
|
|
7785
|
+
/**
|
|
7786
|
+
* List journeys, optionally including archived, paginated.
|
|
7787
|
+
*
|
|
7788
|
+
* Returns the READ projection (`JourneyRead`) — CEL-free. Use
|
|
7789
|
+
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
7790
|
+
*/
|
|
7595
7791
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
7596
7792
|
const query = new URLSearchParams();
|
|
7597
7793
|
if (includeArchived) query.set("include_archived", "true");
|
|
@@ -7600,18 +7796,36 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7600
7796
|
const qs = query.toString() ? `?${query.toString()}` : "";
|
|
7601
7797
|
return this.fetch(`w/${wid}/journeys${qs}`);
|
|
7602
7798
|
}
|
|
7603
|
-
/**
|
|
7799
|
+
/**
|
|
7800
|
+
* Get a single journey by ID (includes steps and goals).
|
|
7801
|
+
*
|
|
7802
|
+
* Returns the READ projection (`JourneyRead`) — nested edges carry no
|
|
7803
|
+
* `celCondition` and goals no `completionCel`. The editor uses
|
|
7804
|
+
* {@link getJourneyAuthoring} for those.
|
|
7805
|
+
*/
|
|
7604
7806
|
async getJourney(wid, journeyId) {
|
|
7605
7807
|
return this.fetch(`w/${wid}/journeys/${journeyId}`);
|
|
7606
7808
|
}
|
|
7607
|
-
/**
|
|
7809
|
+
/**
|
|
7810
|
+
* Get a journey's AUTHORING projection (raw edge/goal CEL).
|
|
7811
|
+
*
|
|
7812
|
+
* journey-decoupling §3.5: the ordinary `getJourney` read projection omits
|
|
7813
|
+
* raw edge `celCondition` and goal `completionCel`. This endpoint is the
|
|
7814
|
+
* write-authorized surface that carries them for the Journey editor — it
|
|
7815
|
+
* requires the `journeys:write` scope, so a read-only caller is denied and
|
|
7816
|
+
* must not call it. Returns the authoring superset (`Journey`).
|
|
7817
|
+
*/
|
|
7818
|
+
async getJourneyAuthoring(wid, journeyId) {
|
|
7819
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/authoring`);
|
|
7820
|
+
}
|
|
7821
|
+
/** Create a new journey. Returns the READ projection (`JourneyRead`). */
|
|
7608
7822
|
async createJourney(wid, data) {
|
|
7609
7823
|
return this.fetch(`w/${wid}/journeys`, {
|
|
7610
7824
|
method: "POST",
|
|
7611
7825
|
body: JSON.stringify(data)
|
|
7612
7826
|
});
|
|
7613
7827
|
}
|
|
7614
|
-
/** Update an existing journey. */
|
|
7828
|
+
/** Update an existing journey. Returns the READ projection (`JourneyRead`). */
|
|
7615
7829
|
async updateJourney(wid, journeyId, data) {
|
|
7616
7830
|
return this.fetch(`w/${wid}/journeys/${journeyId}`, {
|
|
7617
7831
|
method: "PUT",
|
|
@@ -7652,6 +7866,18 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
7652
7866
|
method: "DELETE"
|
|
7653
7867
|
});
|
|
7654
7868
|
}
|
|
7869
|
+
/**
|
|
7870
|
+
* Unarchive a step and backfill active enrollments. Idempotent —
|
|
7871
|
+
* repeated calls are harmless. The response's
|
|
7872
|
+
* `backfilledEnrollmentCount` reports how many active enrollments
|
|
7873
|
+
* received a new step row; a root step may become eligible for all of
|
|
7874
|
+
* them on the next journey sweep.
|
|
7875
|
+
*/
|
|
7876
|
+
async unarchiveStep(wid, journeyId, stepUuid) {
|
|
7877
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/unarchive`, {
|
|
7878
|
+
method: "PATCH"
|
|
7879
|
+
});
|
|
7880
|
+
}
|
|
7655
7881
|
/** Create a connection (DAG edge) between two steps. */
|
|
7656
7882
|
async createConnection(wid, journeyId, data) {
|
|
7657
7883
|
return this.fetch(`w/${wid}/journeys/${journeyId}/connections`, {
|
|
@@ -8211,6 +8437,21 @@ function encodePermissions(permissions) {
|
|
|
8211
8437
|
if (permissions.delete) accessMode |= PERMISSION_DELETE;
|
|
8212
8438
|
return accessMode;
|
|
8213
8439
|
}
|
|
8440
|
+
var WORKFLOW_IMPLICIT_USE_SCOPE = "workflows:admin";
|
|
8441
|
+
function roleImplicitWorkflowUseScope(role) {
|
|
8442
|
+
return (role.grantedScopes ?? []).includes(WORKFLOW_IMPLICIT_USE_SCOPE) ? WORKFLOW_IMPLICIT_USE_SCOPE : null;
|
|
8443
|
+
}
|
|
8444
|
+
function roleWorkflowAccess(role, workflowId) {
|
|
8445
|
+
const viaScope = roleImplicitWorkflowUseScope(role);
|
|
8446
|
+
if (viaScope) {
|
|
8447
|
+
return { accessMode: PERMISSION_USE | PERMISSION_EDIT, viaScope };
|
|
8448
|
+
}
|
|
8449
|
+
const entry = (role.workflowAccess ?? []).find((wa) => wa.workflowId === workflowId);
|
|
8450
|
+
return { accessMode: entry?.accessMode ?? PERMISSION_NONE, viaScope: null };
|
|
8451
|
+
}
|
|
8452
|
+
function roleCanUseWorkflow(role, workflowId) {
|
|
8453
|
+
return (roleWorkflowAccess(role, workflowId).accessMode & PERMISSION_USE) !== 0;
|
|
8454
|
+
}
|
|
8214
8455
|
var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
8215
8456
|
Scope2["WORKSPACE_READ"] = "workspace:read";
|
|
8216
8457
|
Scope2["WORKSPACE_WRITE"] = "workspace:write";
|
|
@@ -8350,6 +8591,7 @@ var EventRuleObjectType = /* @__PURE__ */ ((EventRuleObjectType2) => {
|
|
|
8350
8591
|
EventRuleObjectType2["JOURNEY"] = "journey";
|
|
8351
8592
|
EventRuleObjectType2["CALL"] = "call";
|
|
8352
8593
|
EventRuleObjectType2["VOICEMAIL"] = "voicemail";
|
|
8594
|
+
EventRuleObjectType2["FAX"] = "fax";
|
|
8353
8595
|
return EventRuleObjectType2;
|
|
8354
8596
|
})(EventRuleObjectType || {});
|
|
8355
8597
|
var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
@@ -8368,6 +8610,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
8368
8610
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
8369
8611
|
EventRuleEventType2["ASSISTANT_MESSAGE"] = "workflow:assistant_message";
|
|
8370
8612
|
EventRuleEventType2["USER_MESSAGE"] = "workflow:user_message";
|
|
8613
|
+
EventRuleEventType2["WORKFLOW_EXECUTE"] = "workflow:execute";
|
|
8371
8614
|
EventRuleEventType2["CALENDAR_EVENT_CREATED"] = "calendar_event:created";
|
|
8372
8615
|
EventRuleEventType2["CALENDAR_EVENT_UPDATED"] = "calendar_event:updated";
|
|
8373
8616
|
EventRuleEventType2["CALENDAR_EVENT_CANCELLED"] = "calendar_event:cancelled";
|
|
@@ -8382,6 +8625,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
8382
8625
|
EventRuleEventType2["CALL_COMPLETED"] = "call:completed";
|
|
8383
8626
|
EventRuleEventType2["CALL_SUMMARY"] = "call:summary";
|
|
8384
8627
|
EventRuleEventType2["VOICEMAIL_RECEIVED"] = "voicemail:received";
|
|
8628
|
+
EventRuleEventType2["FAX_RECEIVED"] = "fax:received";
|
|
8385
8629
|
return EventRuleEventType2;
|
|
8386
8630
|
})(EventRuleEventType || {});
|
|
8387
8631
|
var EventRuleActionType = /* @__PURE__ */ ((EventRuleActionType2) => {
|
|
@@ -8435,12 +8679,13 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
8435
8679
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
8436
8680
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
8437
8681
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
8438
|
-
WorkspaceFeature2["JOURNEYS"] = "journeys";
|
|
8439
8682
|
WorkspaceFeature2["EXPERIMENTS"] = "experiments";
|
|
8440
|
-
WorkspaceFeature2["OPERATOR"] = "operator";
|
|
8441
8683
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
8442
8684
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
8685
|
+
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
8686
|
+
WorkspaceFeature2["GSHEETS"] = "gsheets";
|
|
8443
8687
|
WorkspaceFeature2["MONDAY"] = "monday";
|
|
8688
|
+
WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
|
|
8444
8689
|
WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
|
|
8445
8690
|
WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
|
|
8446
8691
|
WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
|
|
@@ -8721,6 +8966,7 @@ var AccessGrantResourceType = /* @__PURE__ */ ((AccessGrantResourceType2) => {
|
|
|
8721
8966
|
})(AccessGrantResourceType || {});
|
|
8722
8967
|
var CapabilityClass = /* @__PURE__ */ ((CapabilityClass2) => {
|
|
8723
8968
|
CapabilityClass2["TOOL_ALWAYS_ALLOW"] = "tool.always_allow";
|
|
8969
|
+
CapabilityClass2["SCOPE_ALWAYS_ALLOW"] = "scope.always_allow";
|
|
8724
8970
|
CapabilityClass2["SELF_MODIFICATION_SCHEDULE"] = "self_modification.schedule";
|
|
8725
8971
|
CapabilityClass2["ATTENTION_INTERRUPT_RUNG"] = "attention.interrupt_rung";
|
|
8726
8972
|
return CapabilityClass2;
|
|
@@ -9330,6 +9576,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
9330
9576
|
fhirConnections: new FhirConnectionsApi(apiKey, baseUrl, customFetch),
|
|
9331
9577
|
patientSyncConnections: new PatientSyncConnectionsApi(apiKey, baseUrl, customFetch),
|
|
9332
9578
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
9579
|
+
documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
|
|
9333
9580
|
hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
|
|
9334
9581
|
features: new FeaturesApi(apiKey, baseUrl, customFetch),
|
|
9335
9582
|
files: new FilesApi(apiKey, baseUrl, customFetch),
|
|
@@ -9391,7 +9638,9 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9391
9638
|
"autoCreateDataTypeFromBoard",
|
|
9392
9639
|
"blockWorkspaceInvitation",
|
|
9393
9640
|
"bookHealthieAppointment",
|
|
9641
|
+
"buildSiteSource",
|
|
9394
9642
|
"buildWorkspace",
|
|
9643
|
+
"bulkCreateMembers",
|
|
9395
9644
|
"bulkLinkMembersToHubspot",
|
|
9396
9645
|
"bulkLinkMembersToMonday",
|
|
9397
9646
|
"bulkLinkMembersToSalesforce",
|
|
@@ -9411,7 +9660,9 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9411
9660
|
"cloneWorkflow",
|
|
9412
9661
|
"closeWorkspaceSupportRequest",
|
|
9413
9662
|
"commentOnWorkspaceSupportRequest",
|
|
9663
|
+
"completeDiscordLink",
|
|
9414
9664
|
"configureConfluence",
|
|
9665
|
+
"configureDocumoFax",
|
|
9415
9666
|
"configureHealthie",
|
|
9416
9667
|
"configurePatientSync",
|
|
9417
9668
|
"configureHubspot",
|
|
@@ -9427,6 +9678,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9427
9678
|
"createAssignment",
|
|
9428
9679
|
"createCalendar",
|
|
9429
9680
|
"createCalendarEvent",
|
|
9681
|
+
"createCalendarEventType",
|
|
9430
9682
|
"createCalendarSchedule",
|
|
9431
9683
|
"createChat",
|
|
9432
9684
|
"createChatCompletion",
|
|
@@ -9436,12 +9688,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9436
9688
|
"createConnection",
|
|
9437
9689
|
"createCustomTool",
|
|
9438
9690
|
"createCustomToolkit",
|
|
9691
|
+
"createDashboard",
|
|
9439
9692
|
"createDataRecord",
|
|
9440
9693
|
"createDataRecordFilter",
|
|
9441
9694
|
"createDataType",
|
|
9442
9695
|
"createDiscordBot",
|
|
9443
9696
|
"createEventRule",
|
|
9444
|
-
"createEventType",
|
|
9445
9697
|
"createExperiment",
|
|
9446
9698
|
"createExperimentAssignment",
|
|
9447
9699
|
"createExperimentGroup",
|
|
@@ -9471,8 +9723,8 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9471
9723
|
"createScenario",
|
|
9472
9724
|
"createSignup",
|
|
9473
9725
|
"createSite",
|
|
9726
|
+
"createSiteSource",
|
|
9474
9727
|
"createSlackApp",
|
|
9475
|
-
"createSnippet",
|
|
9476
9728
|
"createStep",
|
|
9477
9729
|
"createSupervisor",
|
|
9478
9730
|
"createTask",
|
|
@@ -9489,6 +9741,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9489
9741
|
"deleteAssignment",
|
|
9490
9742
|
"deleteCalendar",
|
|
9491
9743
|
"deleteCalendarEvent",
|
|
9744
|
+
"deleteCalendarEventType",
|
|
9492
9745
|
"deleteCalendarSchedule",
|
|
9493
9746
|
"deleteChat",
|
|
9494
9747
|
"deleteChatFilter",
|
|
@@ -9498,13 +9751,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9498
9751
|
"deleteConnection",
|
|
9499
9752
|
"deleteCustomTool",
|
|
9500
9753
|
"deleteCustomToolkit",
|
|
9754
|
+
"deleteDashboard",
|
|
9501
9755
|
"deleteDataRecord",
|
|
9502
9756
|
"deleteDataRecordFilter",
|
|
9503
9757
|
"deleteDataType",
|
|
9504
9758
|
"deleteDiscordBot",
|
|
9505
9759
|
"deleteEnrollment",
|
|
9506
9760
|
"deleteEventRule",
|
|
9507
|
-
"deleteEventType",
|
|
9508
9761
|
"deleteExperiment",
|
|
9509
9762
|
"deleteExperimentAssignment",
|
|
9510
9763
|
"deleteExperimentGroup",
|
|
@@ -9538,7 +9791,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9538
9791
|
"deleteScenario",
|
|
9539
9792
|
"deleteSite",
|
|
9540
9793
|
"deleteSlackApp",
|
|
9541
|
-
"deleteSnippet",
|
|
9542
9794
|
"deleteSupervisor",
|
|
9543
9795
|
"deleteTask",
|
|
9544
9796
|
"deleteTeamsApp",
|
|
@@ -9562,10 +9814,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9562
9814
|
"disconnectMondayConnection",
|
|
9563
9815
|
"disconnectPresence",
|
|
9564
9816
|
"disconnectSalesforce",
|
|
9817
|
+
"discordLinkPreflight",
|
|
9565
9818
|
"discoverOAuthMetadata",
|
|
9566
9819
|
"dismissAllNotifications",
|
|
9567
9820
|
"dismissNotification",
|
|
9568
9821
|
"downloadEmailAttachment",
|
|
9822
|
+
"downloadFilesZip",
|
|
9823
|
+
"downloadSiteSourceZip",
|
|
9569
9824
|
"editWorkflowRevisionAsDraft",
|
|
9570
9825
|
"enableConfluence",
|
|
9571
9826
|
"enableCustomToolkit",
|
|
@@ -9582,9 +9837,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9582
9837
|
"exportChat",
|
|
9583
9838
|
"exportChats",
|
|
9584
9839
|
"exportMembers",
|
|
9840
|
+
"exportPhoneNumberOutboundAnalyticsCsv",
|
|
9585
9841
|
"exportWorkspace",
|
|
9586
9842
|
"fetchVoicemailAudio",
|
|
9587
9843
|
"fhirBackfillEncounterSync",
|
|
9844
|
+
"fhirCheckPatientLinks",
|
|
9588
9845
|
"fhirCreateEncounter",
|
|
9589
9846
|
"fhirCsvImportApply",
|
|
9590
9847
|
"fhirCsvImportInspect",
|
|
@@ -9635,15 +9892,15 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9635
9892
|
"getAvailableActions",
|
|
9636
9893
|
"getAvailablePhoneNumbers",
|
|
9637
9894
|
"getAvailableSlots",
|
|
9638
|
-
"getBoardColumns",
|
|
9639
|
-
"getBoardGroups",
|
|
9640
|
-
"getBoards",
|
|
9641
9895
|
"getBusinessHoursStatus",
|
|
9642
9896
|
"getCalendar",
|
|
9643
9897
|
"getCalendarEvent",
|
|
9898
|
+
"getCalendarEventType",
|
|
9899
|
+
"getCalendarEventTypes",
|
|
9644
9900
|
"getCalendarEvents",
|
|
9645
9901
|
"getCalendarSchedules",
|
|
9646
9902
|
"getCalendars",
|
|
9903
|
+
"getCallRecordingDownloadUrl",
|
|
9647
9904
|
"getCelContext",
|
|
9648
9905
|
"getCharlestonTestDeliveryRecipients",
|
|
9649
9906
|
"getChat",
|
|
@@ -9658,6 +9915,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9658
9915
|
"getChatLabelByUuid",
|
|
9659
9916
|
"getChatLabels",
|
|
9660
9917
|
"getChatMessages",
|
|
9918
|
+
"getChatModelOverride",
|
|
9661
9919
|
"getChatPhoneCalls",
|
|
9662
9920
|
"getChatSkills",
|
|
9663
9921
|
"getChatTodos",
|
|
@@ -9667,6 +9925,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9667
9925
|
"getChats",
|
|
9668
9926
|
"getChatsDailyCreationStats",
|
|
9669
9927
|
"getChatsNeedsResponse",
|
|
9928
|
+
"getChildThreadMessages",
|
|
9670
9929
|
"getClientWorkspace",
|
|
9671
9930
|
"getConfluenceStatus",
|
|
9672
9931
|
"getConnectionSyncCapabilities",
|
|
@@ -9674,9 +9933,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9674
9933
|
"getConnectionSyncConfig",
|
|
9675
9934
|
"getCredentialUpdateInvites",
|
|
9676
9935
|
"getCurrentMember",
|
|
9677
|
-
"
|
|
9936
|
+
"getCurrentSmsChat",
|
|
9678
9937
|
"getCustomToolkit",
|
|
9679
9938
|
"getCustomToolkits",
|
|
9939
|
+
"getDashboard",
|
|
9940
|
+
"getDashboardChannelStats",
|
|
9941
|
+
"getDashboardWorkflowAssignmentStats",
|
|
9942
|
+
"getDashboards",
|
|
9680
9943
|
"getDataRecord",
|
|
9681
9944
|
"getDataRecordChanges",
|
|
9682
9945
|
"getDataRecordFilter",
|
|
@@ -9693,10 +9956,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9693
9956
|
"getDiscordBots",
|
|
9694
9957
|
"getDiscordGuilds",
|
|
9695
9958
|
"getDiscordThreads",
|
|
9959
|
+
"getDocumoFaxSetup",
|
|
9960
|
+
"listDocumoFaxes",
|
|
9961
|
+
"getDocumoFaxStatus",
|
|
9696
9962
|
"getEventRule",
|
|
9697
9963
|
"getEventRules",
|
|
9698
|
-
"getEventType",
|
|
9699
|
-
"getEventTypes",
|
|
9700
9964
|
"getExperiment",
|
|
9701
9965
|
"getExperimentStats",
|
|
9702
9966
|
"getExperiments",
|
|
@@ -9705,6 +9969,26 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9705
9969
|
"getFhirConnections",
|
|
9706
9970
|
"getFieldIndexStatus",
|
|
9707
9971
|
"getFile",
|
|
9972
|
+
"getMondayBoardColumns",
|
|
9973
|
+
"getMondayBoardGroups",
|
|
9974
|
+
"getMondayBoards",
|
|
9975
|
+
"getMondayCurrentUserInfo",
|
|
9976
|
+
"getMotd",
|
|
9977
|
+
"getPhoneNumberOutboundAnalyticsCalls",
|
|
9978
|
+
"getPhoneNumberOutboundAnalyticsSummary",
|
|
9979
|
+
"getQueryFields",
|
|
9980
|
+
"getSiteSharing",
|
|
9981
|
+
"getSiteSource",
|
|
9982
|
+
"getSiteSourceTemplates",
|
|
9983
|
+
"getThemeSettings",
|
|
9984
|
+
"importSiteSourceZip",
|
|
9985
|
+
"installDocumoFax",
|
|
9986
|
+
"listChatRecordings",
|
|
9987
|
+
"previewQuery",
|
|
9988
|
+
"publishSiteSource",
|
|
9989
|
+
"registerDiscordSlashCommands",
|
|
9990
|
+
"reopenWorkspaceSupportRequest",
|
|
9991
|
+
"resetSiteSource",
|
|
9708
9992
|
"resolveFilePath",
|
|
9709
9993
|
"getFileLabel",
|
|
9710
9994
|
"getFileLabelByUuid",
|
|
@@ -9715,6 +9999,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9715
9999
|
"getFiles",
|
|
9716
10000
|
"getFirstRunState",
|
|
9717
10001
|
"getFolder",
|
|
10002
|
+
"getFolderMemberAccess",
|
|
9718
10003
|
"getFolderSharing",
|
|
9719
10004
|
"getFolders",
|
|
9720
10005
|
"getGoogleCalendarStatus",
|
|
@@ -9736,6 +10021,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9736
10021
|
"getInboxThreads",
|
|
9737
10022
|
"getInboxes",
|
|
9738
10023
|
"getJourney",
|
|
10024
|
+
"getJourneyAuthoring",
|
|
9739
10025
|
"getJourneyHealth",
|
|
9740
10026
|
"getJourneyMembers",
|
|
9741
10027
|
"getJourneyNotes",
|
|
@@ -9800,6 +10086,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9800
10086
|
"getPhoneCalls",
|
|
9801
10087
|
"getPhoneNumber",
|
|
9802
10088
|
"getPhoneNumberCalls",
|
|
10089
|
+
"getPhoneNumberFaxes",
|
|
9803
10090
|
"getPhoneNumberMessages",
|
|
9804
10091
|
"getPhoneNumberVoicemails",
|
|
9805
10092
|
"getPhoneNumbers",
|
|
@@ -9837,7 +10124,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9837
10124
|
"getSlackApps",
|
|
9838
10125
|
"getSlackInstallations",
|
|
9839
10126
|
"getSlackThreads",
|
|
9840
|
-
"getSnippet",
|
|
9841
10127
|
"getStepMemberCounts",
|
|
9842
10128
|
"getStepMembers",
|
|
9843
10129
|
"getSupervisor",
|
|
@@ -9875,7 +10161,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9875
10161
|
"getWorkflowNotes",
|
|
9876
10162
|
"getWorkflowRevision",
|
|
9877
10163
|
"getWorkflowRevisions",
|
|
9878
|
-
"getWorkflowRouteDryRun",
|
|
9879
10164
|
"getWorkflowTaskAssignmentStats",
|
|
9880
10165
|
"getWorkflowTemplates",
|
|
9881
10166
|
"getWorkflowThumbnailUrl",
|
|
@@ -9905,6 +10190,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9905
10190
|
"initiateOutboundCall",
|
|
9906
10191
|
"inspectPrompt",
|
|
9907
10192
|
"installHubspot",
|
|
10193
|
+
"installDocumoFax",
|
|
9908
10194
|
"installMondayConnection",
|
|
9909
10195
|
"installSalesforce",
|
|
9910
10196
|
"inviteMemberCredentialUpdate",
|
|
@@ -9923,6 +10209,10 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9923
10209
|
"listConfluencePages",
|
|
9924
10210
|
"listConfluenceSpaces",
|
|
9925
10211
|
"listConnectionMemberFieldKeys",
|
|
10212
|
+
"rollbackSiteSource",
|
|
10213
|
+
"rotateDocumoFaxCredentials",
|
|
10214
|
+
"runQuery",
|
|
10215
|
+
"sendMemberPhoneConfirmation",
|
|
9926
10216
|
"setDefaultGooglePlatformAccount",
|
|
9927
10217
|
"listFileVersions",
|
|
9928
10218
|
"listGoogleCalendars",
|
|
@@ -9931,8 +10221,8 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9931
10221
|
"listHealthieProviders",
|
|
9932
10222
|
"listPersonas",
|
|
9933
10223
|
"listPushSubscriptions",
|
|
10224
|
+
"listSalesforceObjects",
|
|
9934
10225
|
"listScenarios",
|
|
9935
|
-
"listSnippets",
|
|
9936
10226
|
"listTestChatRuns",
|
|
9937
10227
|
"listWidgetDomains",
|
|
9938
10228
|
"listWorkspaceInvitationsAdmin",
|
|
@@ -9955,7 +10245,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9955
10245
|
"reenrollMember",
|
|
9956
10246
|
"registerLinkedRolesMetadata",
|
|
9957
10247
|
"registerPushSubscription",
|
|
9958
|
-
"registerSlashCommands",
|
|
9959
10248
|
"reindexFolder",
|
|
9960
10249
|
"releasePhoneNumber",
|
|
9961
10250
|
"removeFileRole",
|
|
@@ -9964,6 +10253,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
9964
10253
|
"reorderEventRules",
|
|
9965
10254
|
"reorderMenuItems",
|
|
9966
10255
|
"replyToEmail",
|
|
10256
|
+
"rotateDocumoFaxCredentials",
|
|
9967
10257
|
"requestPhoneNumber",
|
|
9968
10258
|
"requestWorkspaceMembership",
|
|
9969
10259
|
"resetRoutineRuns",
|
|
@@ -10001,11 +10291,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10001
10291
|
"testMcpServerConnection",
|
|
10002
10292
|
"testMondayConnection",
|
|
10003
10293
|
"testRunJourney",
|
|
10294
|
+
"testWebhook",
|
|
10004
10295
|
"toggleFieldIndex",
|
|
10005
10296
|
"unarchiveAgent",
|
|
10006
10297
|
"unarchiveChat",
|
|
10007
10298
|
"unarchiveDataType",
|
|
10008
10299
|
"unarchiveMember",
|
|
10300
|
+
"unarchiveStep",
|
|
10009
10301
|
"unarchiveTask",
|
|
10010
10302
|
"unarchiveWorkflow",
|
|
10011
10303
|
"unenrollMembers",
|
|
@@ -10022,10 +10314,12 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10022
10314
|
"updateAssignment",
|
|
10023
10315
|
"updateCalendar",
|
|
10024
10316
|
"updateCalendarEvent",
|
|
10317
|
+
"updateCalendarEventType",
|
|
10025
10318
|
"updateCalendarSchedule",
|
|
10026
10319
|
"updateChat",
|
|
10027
10320
|
"updateChatFilter",
|
|
10028
10321
|
"updateChatLabel",
|
|
10322
|
+
"updateChatModelOverride",
|
|
10029
10323
|
"updateChatMute",
|
|
10030
10324
|
"updateChatNeedsResponse",
|
|
10031
10325
|
"updateClientWorkspace",
|
|
@@ -10034,13 +10328,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10034
10328
|
"updateCurrentMember",
|
|
10035
10329
|
"updateCustomTool",
|
|
10036
10330
|
"updateCustomToolkit",
|
|
10331
|
+
"updateDashboard",
|
|
10037
10332
|
"updateDataRecord",
|
|
10038
10333
|
"updateDataRecordFilter",
|
|
10039
10334
|
"updateDataType",
|
|
10040
10335
|
"updateDiscordBot",
|
|
10041
10336
|
"updateEventAttendee",
|
|
10042
10337
|
"updateEventRule",
|
|
10043
|
-
"updateEventType",
|
|
10044
10338
|
"updateExperiment",
|
|
10045
10339
|
"updateExperimentAssignment",
|
|
10046
10340
|
"updateExperimentGroup",
|
|
@@ -10077,12 +10371,13 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10077
10371
|
"updateSalesforceSyncConfig",
|
|
10078
10372
|
"updateScenario",
|
|
10079
10373
|
"updateSite",
|
|
10374
|
+
"updateSiteSharing",
|
|
10080
10375
|
"updateSlackApp",
|
|
10081
|
-
"updateSnippet",
|
|
10082
10376
|
"updateStep",
|
|
10083
10377
|
"updateSupervisor",
|
|
10084
10378
|
"updateTask",
|
|
10085
10379
|
"updateTeamsApp",
|
|
10380
|
+
"updateThemeSettings",
|
|
10086
10381
|
"uploadFile",
|
|
10087
10382
|
"updateVoicemailStatus",
|
|
10088
10383
|
"updateWorkflow",
|
|
@@ -10095,8 +10390,11 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
10095
10390
|
"updateWorkspaceThemes",
|
|
10096
10391
|
"upsertDataRecord",
|
|
10097
10392
|
"upsertWidgetDomain",
|
|
10393
|
+
"validateCelExpression",
|
|
10098
10394
|
"validateDataTypeSlug",
|
|
10099
|
-
"
|
|
10395
|
+
"validateQuery",
|
|
10396
|
+
"validateWorkflowName",
|
|
10397
|
+
"verifyDocumoFax"
|
|
10100
10398
|
];
|
|
10101
10399
|
var WORKSPACE_METHOD_NAME_SET = new Set(WORKSPACE_METHOD_NAMES);
|
|
10102
10400
|
function createWorkspaceClient(root, workspaceUuid) {
|
|
@@ -10171,6 +10469,7 @@ function bindTasksMethods(target, tasks, abilities) {
|
|
|
10171
10469
|
function bindChatsMethods(target, chats) {
|
|
10172
10470
|
target.getChats = chats.getChats.bind(chats);
|
|
10173
10471
|
target.getChat = chats.getChat.bind(chats);
|
|
10472
|
+
target.getCurrentSmsChat = chats.getCurrentSmsChat.bind(chats);
|
|
10174
10473
|
target.getChatCallbacks = chats.getChatCallbacks.bind(chats);
|
|
10175
10474
|
target.cancelChatCallback = chats.cancelChatCallback.bind(chats);
|
|
10176
10475
|
target.getChatTokenUsage = chats.getChatTokenUsage.bind(chats);
|
|
@@ -10191,6 +10490,7 @@ function bindChatsMethods(target, chats) {
|
|
|
10191
10490
|
target.updateChatNeedsResponse = chats.updateChatNeedsResponse.bind(chats);
|
|
10192
10491
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
10193
10492
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
10493
|
+
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
10194
10494
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
10195
10495
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
10196
10496
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -10229,6 +10529,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
10229
10529
|
target.listChatRecordings = calls.listChatRecordings.bind(calls);
|
|
10230
10530
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
10231
10531
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
10532
|
+
target.validateCelExpression = cel.validateCelExpression.bind(cel);
|
|
10232
10533
|
}
|
|
10233
10534
|
|
|
10234
10535
|
// src/client/bindings/dashboards.ts
|
|
@@ -10545,6 +10846,7 @@ function bindFilesMethods(target, files) {
|
|
|
10545
10846
|
target.updateFileRoles = files.updateFileRoles.bind(files);
|
|
10546
10847
|
target.removeFileRole = files.removeFileRole.bind(files);
|
|
10547
10848
|
target.getFolderSharing = files.getFolderSharing.bind(files);
|
|
10849
|
+
target.getFolderMemberAccess = files.getFolderMemberAccess.bind(files);
|
|
10548
10850
|
target.updateFolderRoles = files.updateFolderRoles.bind(files);
|
|
10549
10851
|
target.removeFolderRole = files.removeFolderRole.bind(files);
|
|
10550
10852
|
target.updateFileSharing = files.updateFileSharing.bind(files);
|
|
@@ -10701,6 +11003,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
10701
11003
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
10702
11004
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
10703
11005
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
11006
|
+
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
10704
11007
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
10705
11008
|
target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
|
|
10706
11009
|
target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
|
|
@@ -10824,7 +11127,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
10824
11127
|
}
|
|
10825
11128
|
|
|
10826
11129
|
// src/client/bindings/integrations.ts
|
|
10827
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
11130
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
10828
11131
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
10829
11132
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
10830
11133
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
@@ -10896,6 +11199,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
10896
11199
|
target.fhirFetchEncounters = fhirConnections.fhirFetchEncounters.bind(fhirConnections);
|
|
10897
11200
|
target.fhirCreateEncounter = fhirConnections.fhirCreateEncounter.bind(fhirConnections);
|
|
10898
11201
|
target.fhirListLinkedMembers = fhirConnections.fhirListLinkedMembers.bind(fhirConnections);
|
|
11202
|
+
target.fhirCheckPatientLinks = fhirConnections.fhirCheckPatientLinks.bind(fhirConnections);
|
|
10899
11203
|
target.fhirLinkMember = fhirConnections.fhirLinkMember.bind(fhirConnections);
|
|
10900
11204
|
target.fhirUnlinkMember = fhirConnections.fhirUnlinkMember.bind(fhirConnections);
|
|
10901
11205
|
target.fhirSyncMember = fhirConnections.fhirSyncMember.bind(fhirConnections);
|
|
@@ -10915,6 +11219,13 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
10915
11219
|
target.configurePatientSync = patientSyncConnections.configurePatientSync.bind(patientSyncConnections);
|
|
10916
11220
|
target.getPatientSyncStatus = patientSyncConnections.getPatientSyncStatus.bind(patientSyncConnections);
|
|
10917
11221
|
target.deletePatientSyncConnection = patientSyncConnections.deletePatientSyncConnection.bind(patientSyncConnections);
|
|
11222
|
+
target.getDocumoFaxStatus = documoFax.getDocumoFaxStatus.bind(documoFax);
|
|
11223
|
+
target.getDocumoFaxSetup = documoFax.getDocumoFaxSetup.bind(documoFax);
|
|
11224
|
+
target.listDocumoFaxes = documoFax.listDocumoFaxes.bind(documoFax);
|
|
11225
|
+
target.installDocumoFax = documoFax.installDocumoFax.bind(documoFax);
|
|
11226
|
+
target.configureDocumoFax = documoFax.configureDocumoFax.bind(documoFax);
|
|
11227
|
+
target.verifyDocumoFax = documoFax.verifyDocumoFax.bind(documoFax);
|
|
11228
|
+
target.rotateDocumoFaxCredentials = documoFax.rotateDocumoFaxCredentials.bind(documoFax);
|
|
10918
11229
|
target.configureHealthie = healthie.configureHealthie.bind(healthie);
|
|
10919
11230
|
target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
|
|
10920
11231
|
target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
|
|
@@ -10953,6 +11264,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
10953
11264
|
target.getLinkedSalesforceMembers = salesforce.getLinkedSalesforceMembers.bind(salesforce);
|
|
10954
11265
|
target.getSalesforceSyncConfig = salesforce.getSalesforceSyncConfig.bind(salesforce);
|
|
10955
11266
|
target.updateSalesforceSyncConfig = salesforce.updateSalesforceSyncConfig.bind(salesforce);
|
|
11267
|
+
target.listSalesforceObjects = salesforce.listSalesforceObjects.bind(salesforce);
|
|
10956
11268
|
target.describeSalesforceObject = salesforce.describeSalesforceObject.bind(salesforce);
|
|
10957
11269
|
target.searchSalesforceRecords = salesforce.searchSalesforceRecords.bind(salesforce);
|
|
10958
11270
|
target.importSalesforceMembers = salesforce.importSalesforceMembers.bind(salesforce);
|
|
@@ -11054,6 +11366,7 @@ function bindPronunciationsMethods(target, pronunciations) {
|
|
|
11054
11366
|
function bindJourneysMethods(target, journeys) {
|
|
11055
11367
|
target.getJourneys = journeys.getJourneys.bind(journeys);
|
|
11056
11368
|
target.getJourney = journeys.getJourney.bind(journeys);
|
|
11369
|
+
target.getJourneyAuthoring = journeys.getJourneyAuthoring.bind(journeys);
|
|
11057
11370
|
target.getJourneyHealth = journeys.getJourneyHealth.bind(journeys);
|
|
11058
11371
|
target.createJourney = journeys.createJourney.bind(journeys);
|
|
11059
11372
|
target.updateJourney = journeys.updateJourney.bind(journeys);
|
|
@@ -11061,6 +11374,7 @@ function bindJourneysMethods(target, journeys) {
|
|
|
11061
11374
|
target.createStep = journeys.createStep.bind(journeys);
|
|
11062
11375
|
target.updateStep = journeys.updateStep.bind(journeys);
|
|
11063
11376
|
target.archiveStep = journeys.archiveStep.bind(journeys);
|
|
11377
|
+
target.unarchiveStep = journeys.unarchiveStep.bind(journeys);
|
|
11064
11378
|
target.createConnection = journeys.createConnection.bind(journeys);
|
|
11065
11379
|
target.updateConnection = journeys.updateConnection.bind(journeys);
|
|
11066
11380
|
target.deleteConnection = journeys.deleteConnection.bind(journeys);
|
|
@@ -11194,6 +11508,7 @@ var GravityRailClient = class {
|
|
|
11194
11508
|
// Chats API
|
|
11195
11509
|
getChats;
|
|
11196
11510
|
getChat;
|
|
11511
|
+
getCurrentSmsChat;
|
|
11197
11512
|
getChatCallbacks;
|
|
11198
11513
|
cancelChatCallback;
|
|
11199
11514
|
getChatTokenUsage;
|
|
@@ -11214,6 +11529,7 @@ var GravityRailClient = class {
|
|
|
11214
11529
|
updateChatNeedsResponse;
|
|
11215
11530
|
summarizeChat;
|
|
11216
11531
|
getChatMessages;
|
|
11532
|
+
getChildThreadMessages;
|
|
11217
11533
|
getChatToolCallMessages;
|
|
11218
11534
|
getChatTools;
|
|
11219
11535
|
initiateOutboundCall;
|
|
@@ -11249,6 +11565,7 @@ var GravityRailClient = class {
|
|
|
11249
11565
|
listChatRecordings;
|
|
11250
11566
|
getCallRecordingDownloadUrl;
|
|
11251
11567
|
getCelContext;
|
|
11568
|
+
validateCelExpression;
|
|
11252
11569
|
// Data Types API
|
|
11253
11570
|
getDataTypes;
|
|
11254
11571
|
getDataType;
|
|
@@ -11387,6 +11704,7 @@ var GravityRailClient = class {
|
|
|
11387
11704
|
// Journeys API
|
|
11388
11705
|
getJourneys;
|
|
11389
11706
|
getJourney;
|
|
11707
|
+
getJourneyAuthoring;
|
|
11390
11708
|
getJourneyHealth;
|
|
11391
11709
|
createJourney;
|
|
11392
11710
|
updateJourney;
|
|
@@ -11394,6 +11712,7 @@ var GravityRailClient = class {
|
|
|
11394
11712
|
createStep;
|
|
11395
11713
|
updateStep;
|
|
11396
11714
|
archiveStep;
|
|
11715
|
+
unarchiveStep;
|
|
11397
11716
|
createConnection;
|
|
11398
11717
|
updateConnection;
|
|
11399
11718
|
deleteConnection;
|
|
@@ -11674,6 +11993,7 @@ var GravityRailClient = class {
|
|
|
11674
11993
|
updateFileRoles;
|
|
11675
11994
|
removeFileRole;
|
|
11676
11995
|
getFolderSharing;
|
|
11996
|
+
getFolderMemberAccess;
|
|
11677
11997
|
updateFolderRoles;
|
|
11678
11998
|
removeFolderRole;
|
|
11679
11999
|
updateFileSharing;
|
|
@@ -11802,6 +12122,7 @@ var GravityRailClient = class {
|
|
|
11802
12122
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
11803
12123
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
11804
12124
|
getPhoneNumberMessages;
|
|
12125
|
+
getPhoneNumberFaxes;
|
|
11805
12126
|
getPhoneNumberVoicemails;
|
|
11806
12127
|
fetchVoicemailAudio;
|
|
11807
12128
|
updateVoicemailStatus;
|
|
@@ -11990,6 +12311,7 @@ var GravityRailClient = class {
|
|
|
11990
12311
|
fhirFetchEncounters;
|
|
11991
12312
|
fhirCreateEncounter;
|
|
11992
12313
|
fhirListLinkedMembers;
|
|
12314
|
+
fhirCheckPatientLinks;
|
|
11993
12315
|
fhirLinkMember;
|
|
11994
12316
|
fhirUnlinkMember;
|
|
11995
12317
|
fhirSyncMember;
|
|
@@ -12007,6 +12329,13 @@ var GravityRailClient = class {
|
|
|
12007
12329
|
fhirRefreshEncounterPatient;
|
|
12008
12330
|
fhirBackfillEncounterSync;
|
|
12009
12331
|
// Healthie API
|
|
12332
|
+
getDocumoFaxStatus;
|
|
12333
|
+
getDocumoFaxSetup;
|
|
12334
|
+
listDocumoFaxes;
|
|
12335
|
+
installDocumoFax;
|
|
12336
|
+
configureDocumoFax;
|
|
12337
|
+
verifyDocumoFax;
|
|
12338
|
+
rotateDocumoFaxCredentials;
|
|
12010
12339
|
configurePatientSync;
|
|
12011
12340
|
getPatientSyncStatus;
|
|
12012
12341
|
deletePatientSyncConnection;
|
|
@@ -12050,6 +12379,7 @@ var GravityRailClient = class {
|
|
|
12050
12379
|
getLinkedSalesforceMembers;
|
|
12051
12380
|
getSalesforceSyncConfig;
|
|
12052
12381
|
updateSalesforceSyncConfig;
|
|
12382
|
+
listSalesforceObjects;
|
|
12053
12383
|
describeSalesforceObject;
|
|
12054
12384
|
searchSalesforceRecords;
|
|
12055
12385
|
importSalesforceMembers;
|
|
@@ -12200,6 +12530,7 @@ var GravityRailClient = class {
|
|
|
12200
12530
|
apis.fhirConnections,
|
|
12201
12531
|
apis.patientSyncConnections,
|
|
12202
12532
|
apis.healthie,
|
|
12533
|
+
apis.documoFax,
|
|
12203
12534
|
apis.salesforce,
|
|
12204
12535
|
apis.hubspot,
|
|
12205
12536
|
apis.appConnections,
|
|
@@ -12693,18 +13024,19 @@ var MemberLabelBuilder = class extends WorkspaceBuilderResource {
|
|
|
12693
13024
|
|
|
12694
13025
|
// src/workspace-builder/journeys.ts
|
|
12695
13026
|
var JourneyStepBuilder = class extends WorkspaceBuilderResource {
|
|
12696
|
-
|
|
13027
|
+
// journey-decoupling Phase 7: a Journey step no longer links to a Workflow.
|
|
13028
|
+
// A step nudges via EventRule actions instead of running a Workflow, so the
|
|
13029
|
+
// builder no longer accepts or emits a workflow reference.
|
|
13030
|
+
constructor(name, journey, order = 0, description = "") {
|
|
12697
13031
|
super();
|
|
12698
13032
|
this.name = name;
|
|
12699
13033
|
this.journey = journey;
|
|
12700
13034
|
this.order = order;
|
|
12701
|
-
this.workflow = workflow;
|
|
12702
13035
|
this.description = description;
|
|
12703
13036
|
}
|
|
12704
13037
|
name;
|
|
12705
13038
|
journey;
|
|
12706
13039
|
order;
|
|
12707
|
-
workflow;
|
|
12708
13040
|
description;
|
|
12709
13041
|
connections = [];
|
|
12710
13042
|
connectsTo(child, condition, required = false, timeoutSeconds) {
|
|
@@ -12712,15 +13044,14 @@ var JourneyStepBuilder = class extends WorkspaceBuilderResource {
|
|
|
12712
13044
|
return this;
|
|
12713
13045
|
}
|
|
12714
13046
|
planLine() {
|
|
12715
|
-
return `Step: ${this.name}
|
|
13047
|
+
return `Step: ${this.name}`;
|
|
12716
13048
|
}
|
|
12717
13049
|
async apply(client) {
|
|
12718
13050
|
if (this.journey._id === void 0) return;
|
|
12719
13051
|
const payload = {
|
|
12720
13052
|
name: this.name,
|
|
12721
13053
|
description: this.description,
|
|
12722
|
-
order: this.order
|
|
12723
|
-
...this.workflow?._id ? { workflowId: this.workflow._id } : {}
|
|
13054
|
+
order: this.order
|
|
12724
13055
|
};
|
|
12725
13056
|
const result = await client.createStep(this.journey._id, payload);
|
|
12726
13057
|
this._id = result.id;
|
|
@@ -12743,7 +13074,6 @@ var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
|
12743
13074
|
name,
|
|
12744
13075
|
this,
|
|
12745
13076
|
options.order ?? 0,
|
|
12746
|
-
options.workflow,
|
|
12747
13077
|
options.description ?? ""
|
|
12748
13078
|
);
|
|
12749
13079
|
this.steps.push(step);
|
|
@@ -13660,6 +13990,7 @@ var AbilityTypeSlugs = {
|
|
|
13660
13990
|
GMAIL: "integration:gmail",
|
|
13661
13991
|
GOOGLE_CALENDAR: "integration:google_calendar",
|
|
13662
13992
|
GOOGLE_DRIVE: "integration:google_drive",
|
|
13993
|
+
GOOGLE_SHEETS: "integration:google_sheets",
|
|
13663
13994
|
CHARLESTON_PMD_PAGING: "integration:charleston_pmd_paging",
|
|
13664
13995
|
// Communication
|
|
13665
13996
|
PHONE_CALL_TOOLS: "communication:phone_call_tools",
|
|
@@ -13729,6 +14060,14 @@ var SMS_DELIVERY_FAILURE_STATUSES = /* @__PURE__ */ new Set([
|
|
|
13729
14060
|
function isSMSDeliveryFailureStatus(status) {
|
|
13730
14061
|
return status != null && SMS_DELIVERY_FAILURE_STATUSES.has(status);
|
|
13731
14062
|
}
|
|
14063
|
+
var AGENT_NOTE_ORIGINS = /* @__PURE__ */ new Set([
|
|
14064
|
+
"workflow",
|
|
14065
|
+
"background_run",
|
|
14066
|
+
"platform"
|
|
14067
|
+
]);
|
|
14068
|
+
function isAgentNoteOrigin(origin) {
|
|
14069
|
+
return origin != null && AGENT_NOTE_ORIGINS.has(origin);
|
|
14070
|
+
}
|
|
13732
14071
|
var POSITIVE_RATING_THRESHOLD = 0.5;
|
|
13733
14072
|
function isPositiveRating(rating) {
|
|
13734
14073
|
return rating != null && rating >= POSITIVE_RATING_THRESHOLD;
|
|
@@ -14774,6 +15113,7 @@ function getRevisionState(workflow, revision) {
|
|
|
14774
15113
|
}
|
|
14775
15114
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14776
15115
|
0 && (module.exports = {
|
|
15116
|
+
AGENT_NOTE_ORIGINS,
|
|
14777
15117
|
AbilityConfigIssueCode,
|
|
14778
15118
|
AbilityConfigIssueSeverity,
|
|
14779
15119
|
AbilityTypeSlugs,
|
|
@@ -14824,6 +15164,7 @@ function getRevisionState(workflow, revision) {
|
|
|
14824
15164
|
FhirVendor,
|
|
14825
15165
|
FormBuilder,
|
|
14826
15166
|
GravityRailClient,
|
|
15167
|
+
InboundFaxStatusValues,
|
|
14827
15168
|
IndexStatus,
|
|
14828
15169
|
InvitationStatus,
|
|
14829
15170
|
JobPosition,
|
|
@@ -14898,6 +15239,7 @@ function getRevisionState(workflow, revision) {
|
|
|
14898
15239
|
TemplatesApi,
|
|
14899
15240
|
ToolkitState,
|
|
14900
15241
|
WIDGET_SLUGS,
|
|
15242
|
+
WORKFLOW_IMPLICIT_USE_SCOPE,
|
|
14901
15243
|
WorkflowAccessWarningResourceType,
|
|
14902
15244
|
WorkflowBuilder,
|
|
14903
15245
|
WorkflowResourceType,
|
|
@@ -14928,12 +15270,17 @@ function getRevisionState(workflow, revision) {
|
|
|
14928
15270
|
getTTSProvider,
|
|
14929
15271
|
getVoiceModelId,
|
|
14930
15272
|
initializeFeatures,
|
|
15273
|
+
isAgentNoteOrigin,
|
|
14931
15274
|
isChatType,
|
|
14932
15275
|
isFeatureAvailable,
|
|
14933
15276
|
isPositiveRating,
|
|
14934
15277
|
isRegistryInitialized,
|
|
14935
15278
|
isSMSDeliveryFailureStatus,
|
|
15279
|
+
parseOrgAuthChallenge,
|
|
14936
15280
|
requiresAssistantParticipant,
|
|
15281
|
+
roleCanUseWorkflow,
|
|
15282
|
+
roleImplicitWorkflowUseScope,
|
|
15283
|
+
roleWorkflowAccess,
|
|
14937
15284
|
runWorkspaceScript,
|
|
14938
15285
|
usesBuiltinAssistant,
|
|
14939
15286
|
validateFeatureDependencies
|