@gravity-rail/sdk 1.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/{chat-interaction-BWvViNx-.d.cts → chat-interaction-BPqj_KMO.d.cts} +3037 -1154
- package/dist/{chat-interaction-CRGcStD0.d.ts → chat-interaction-CDlei6KK.d.ts} +3037 -1154
- package/dist/{chunk-VBG6XUBN.js → chunk-LWRMGN4Z.js} +901 -311
- package/dist/chunk-LWRMGN4Z.js.map +1 -0
- package/dist/{chunk-GCN4OMYU.js → chunk-RLFS7O2L.js} +4 -1
- package/dist/{chunk-GCN4OMYU.js.map → chunk-RLFS7O2L.js.map} +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +6 -4
- package/dist/helpers.d.ts +6 -4
- package/dist/helpers.js +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +947 -334
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -10
- package/dist/index.d.ts +26 -10
- package/dist/index.js +49 -25
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +903 -309
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +99 -6
- package/dist/internal.d.ts +99 -6
- package/dist/internal.js +8 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-DcjopLJf.d.ts → member-import-BbWJzHSV.d.ts} +1 -1
- package/dist/{member-import-fQz-gVmQ.d.cts → member-import-DxBggQLc.d.cts} +1 -1
- package/dist/{path-BKAZ7CTT.d.ts → path-5DteJvEx.d.ts} +35 -3
- package/dist/{path-C5Cn4Kl7.d.cts → path-bqfiH1XI.d.cts} +35 -3
- package/dist/schemas.cjs +57 -6
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +77 -9
- package/dist/schemas.d.ts +77 -9
- package/dist/schemas.js +53 -6
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-DVm54e2a.d.cts → tasks-fAwwBZIX.d.cts} +53 -11
- package/dist/{tasks-DVm54e2a.d.ts → tasks-fAwwBZIX.d.ts} +53 -11
- package/package.json +10 -4
- package/dist/chunk-VBG6XUBN.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -114,6 +114,8 @@ __export(internal_exports, {
|
|
|
114
114
|
EventRuleEventType: () => EventRuleEventType,
|
|
115
115
|
EventRuleObjectType: () => EventRuleObjectType,
|
|
116
116
|
EventsApi: () => EventsApi,
|
|
117
|
+
FaxDocumentRefusal: () => FaxDocumentRefusal,
|
|
118
|
+
FaxRunRefusal: () => FaxRunRefusal,
|
|
117
119
|
FeatureCategory: () => FeatureCategory,
|
|
118
120
|
FeatureVisibility: () => FeatureVisibility,
|
|
119
121
|
FeaturesApi: () => FeaturesApi,
|
|
@@ -281,6 +283,7 @@ __export(internal_exports, {
|
|
|
281
283
|
UpdateMemberContactPointRequestPurpose: () => UpdateMemberContactPointRequestPurpose,
|
|
282
284
|
UpdateMemberContactPointRequestSharing: () => UpdateMemberContactPointRequestSharing,
|
|
283
285
|
VoiceApi: () => VoiceApi,
|
|
286
|
+
VoiceIntegrityUseCase: () => VoiceIntegrityUseCase,
|
|
284
287
|
WIDGET_SLUGS: () => WIDGET_SLUGS,
|
|
285
288
|
WorkflowNotesApi: () => WorkflowNotesApi,
|
|
286
289
|
WorkflowRoutingMode: () => WorkflowRoutingMode,
|
|
@@ -423,6 +426,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
423
426
|
Scope2["WORKSPACE_READ"] = "workspace:read";
|
|
424
427
|
Scope2["WORKSPACE_WRITE"] = "workspace:write";
|
|
425
428
|
Scope2["WORKSPACE_ADMIN"] = "workspace:admin";
|
|
429
|
+
Scope2["MEDICAL_BILLING_READ"] = "medical_billing:read";
|
|
430
|
+
Scope2["MEDICAL_BILLING_WRITE"] = "medical_billing:write";
|
|
431
|
+
Scope2["MEDICAL_BILLING_ADMIN"] = "medical_billing:admin";
|
|
426
432
|
Scope2["MEMBERS_READ"] = "members:read";
|
|
427
433
|
Scope2["MEMBERS_WRITE"] = "members:write";
|
|
428
434
|
Scope2["MEMBERS_ADMIN"] = "members:admin";
|
|
@@ -432,6 +438,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
432
438
|
Scope2["CHATS_READ"] = "chats:read";
|
|
433
439
|
Scope2["CHATS_WRITE"] = "chats:write";
|
|
434
440
|
Scope2["CHATS_ADMIN"] = "chats:admin";
|
|
441
|
+
Scope2["DEMOS_RUN"] = "demos:run";
|
|
435
442
|
Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
|
|
436
443
|
Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
|
|
437
444
|
Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
|
|
@@ -682,6 +689,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
682
689
|
EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
|
|
683
690
|
EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
|
|
684
691
|
EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
|
|
692
|
+
EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
|
|
685
693
|
EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
|
|
686
694
|
EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
|
|
687
695
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
@@ -773,9 +781,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
773
781
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
774
782
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
775
783
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
776
|
-
WorkspaceFeature2["JOURNEY_V2_EDITOR"] = "journey_v2_editor";
|
|
777
|
-
WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
|
|
778
|
-
WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
|
|
779
784
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
780
785
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
781
786
|
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
@@ -783,6 +788,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
783
788
|
WorkspaceFeature2["MONDAY"] = "monday";
|
|
784
789
|
WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
|
|
785
790
|
WorkspaceFeature2["CLAIM_MD"] = "claim_md";
|
|
791
|
+
WorkspaceFeature2["STEDI"] = "stedi";
|
|
786
792
|
WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
|
|
787
793
|
WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
|
|
788
794
|
WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
|
|
@@ -794,6 +800,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
794
800
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
795
801
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
796
802
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
803
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
804
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
805
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
806
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
807
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
797
808
|
return WorkspaceFeature2;
|
|
798
809
|
})(WorkspaceFeature || {});
|
|
799
810
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -1122,6 +1133,14 @@ var CapturedEffectKind = {
|
|
|
1122
1133
|
};
|
|
1123
1134
|
|
|
1124
1135
|
// src/types/generated/test_chat_run_inbound.ts
|
|
1136
|
+
var FaxDocumentRefusal = {
|
|
1137
|
+
fax_document_invalid: "fax_document_invalid"
|
|
1138
|
+
};
|
|
1139
|
+
var FaxRunRefusal = {
|
|
1140
|
+
fax_run_on_the_fax_channel: "fax_run_on_the_fax_channel",
|
|
1141
|
+
fax_run_is_manual: "fax_run_is_manual",
|
|
1142
|
+
fax_run_takes_no_identity: "fax_run_takes_no_identity"
|
|
1143
|
+
};
|
|
1125
1144
|
var InboundRefusal = {
|
|
1126
1145
|
run_not_found: "run_not_found",
|
|
1127
1146
|
run_ended: "run_ended",
|
|
@@ -1510,6 +1529,7 @@ var AbilityTypeSlugs = {
|
|
|
1510
1529
|
// Tools
|
|
1511
1530
|
TOOLKITS: "tools:toolkits",
|
|
1512
1531
|
WEB_SEARCH: "tools:web_search",
|
|
1532
|
+
WEB_BROWSER: "tools:web_browser",
|
|
1513
1533
|
CONVERSATION_HISTORY: "tools:conversation_history",
|
|
1514
1534
|
MEMBER_MEMORY: "memory:member_memory",
|
|
1515
1535
|
IMAGE_GENERATION: "tools:image_generation",
|
|
@@ -2090,10 +2110,60 @@ var MetricUnit = {
|
|
|
2090
2110
|
custom: "custom"
|
|
2091
2111
|
};
|
|
2092
2112
|
|
|
2113
|
+
// src/types/generated/phone_voice_trust.ts
|
|
2114
|
+
var VoiceIntegrityUseCase = {
|
|
2115
|
+
"Identify_&_Verification": "Identify & Verification",
|
|
2116
|
+
Asset_Management: "Asset Management",
|
|
2117
|
+
Lead_Generation: "Lead Generation",
|
|
2118
|
+
Intelligent_Routing: "Intelligent Routing",
|
|
2119
|
+
Appointment_SchedulingDE: "Appointment SchedulingDE",
|
|
2120
|
+
Customer_Support: "Customer Support",
|
|
2121
|
+
"Self-Service": "Self-Service",
|
|
2122
|
+
Automated_Support: "Automated Support",
|
|
2123
|
+
Appointment_Reminders: "Appointment Reminders",
|
|
2124
|
+
Employee_Notifications: "Employee Notifications",
|
|
2125
|
+
Delivery_Notifications: "Delivery Notifications",
|
|
2126
|
+
Emergency_Notifications: "Emergency Notifications",
|
|
2127
|
+
Contactless_Delivery: "Contactless Delivery",
|
|
2128
|
+
Order_Notifications: "Order Notifications",
|
|
2129
|
+
Service_Alerts: "Service Alerts",
|
|
2130
|
+
Purchase_Confirmation: "Purchase Confirmation",
|
|
2131
|
+
Mass_Alerts: "Mass Alerts",
|
|
2132
|
+
Fraud_Alerts: "Fraud Alerts",
|
|
2133
|
+
Contact_Tracing: "Contact Tracing",
|
|
2134
|
+
Lead_Management: "Lead Management",
|
|
2135
|
+
Lead_Nurturing: "Lead Nurturing",
|
|
2136
|
+
Telemarketing: "Telemarketing",
|
|
2137
|
+
Marketing_Events: "Marketing Events",
|
|
2138
|
+
Rewards_Program: "Rewards Program",
|
|
2139
|
+
Lead_Alerts: "Lead Alerts",
|
|
2140
|
+
Lead_Distribution: "Lead Distribution",
|
|
2141
|
+
Abandoned_Cart: "Abandoned Cart",
|
|
2142
|
+
Call_Tracking: "Call Tracking",
|
|
2143
|
+
Outbound_Dialer: "Outbound Dialer",
|
|
2144
|
+
Click_to_Call: "Click to Call",
|
|
2145
|
+
Phone_System: "Phone System",
|
|
2146
|
+
"Meetings/Ccollaboration": "Meetings/Ccollaboration",
|
|
2147
|
+
Telehealth: "Telehealth",
|
|
2148
|
+
Distance_Learning: "Distance Learning",
|
|
2149
|
+
Shift_Management: "Shift Management",
|
|
2150
|
+
Field_Notifications: "Field Notifications",
|
|
2151
|
+
"Dating/Social": "Dating/Social",
|
|
2152
|
+
Remote_appointments: "Remote appointments",
|
|
2153
|
+
Group_Messaging: "Group Messaging",
|
|
2154
|
+
Exam_Proctoring: "Exam Proctoring",
|
|
2155
|
+
Tutoring: "Tutoring",
|
|
2156
|
+
"Therapy_(Individual+Group)": "Therapy (Individual+Group)",
|
|
2157
|
+
Pharmacy: "Pharmacy",
|
|
2158
|
+
First_Responder: "First Responder",
|
|
2159
|
+
"Survey/Research": "Survey/Research"
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2093
2162
|
// src/types/generated/ai_connector_policy.ts
|
|
2094
2163
|
var AiConnectorPolicy = {
|
|
2095
2164
|
any: "any",
|
|
2096
|
-
allowlist: "allowlist"
|
|
2165
|
+
allowlist: "allowlist",
|
|
2166
|
+
none: "none"
|
|
2097
2167
|
};
|
|
2098
2168
|
|
|
2099
2169
|
// src/types/generated/site.ts
|
|
@@ -2419,8 +2489,10 @@ var DEFAULT_CUSTOM_VOICE_MODEL = "xai:voice:lux";
|
|
|
2419
2489
|
var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
2420
2490
|
ScopeCategory2["WORKSPACE"] = "workspace";
|
|
2421
2491
|
ScopeCategory2["MEMBERS"] = "members";
|
|
2492
|
+
ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
|
|
2422
2493
|
ScopeCategory2["MEMBER_ROLES"] = "member_roles";
|
|
2423
2494
|
ScopeCategory2["CHATS"] = "chats";
|
|
2495
|
+
ScopeCategory2["DEMOS"] = "demos";
|
|
2424
2496
|
ScopeCategory2["DM"] = "dm";
|
|
2425
2497
|
ScopeCategory2["WORKFLOWS"] = "workflows";
|
|
2426
2498
|
ScopeCategory2["ASSIGNMENTS"] = "assignments";
|
|
@@ -2490,6 +2562,24 @@ var SCOPES = {
|
|
|
2490
2562
|
implies: ["members:write"],
|
|
2491
2563
|
dangerous: true
|
|
2492
2564
|
},
|
|
2565
|
+
"medical_billing:read": {
|
|
2566
|
+
name: "medical_billing:read",
|
|
2567
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
2568
|
+
description: "View medical billing coverage, charges and claims"
|
|
2569
|
+
},
|
|
2570
|
+
"medical_billing:write": {
|
|
2571
|
+
name: "medical_billing:write",
|
|
2572
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
2573
|
+
description: "Create and update medical billing and submit claims",
|
|
2574
|
+
implies: ["medical_billing:read"]
|
|
2575
|
+
},
|
|
2576
|
+
"medical_billing:admin": {
|
|
2577
|
+
name: "medical_billing:admin",
|
|
2578
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
2579
|
+
description: "Administer medical billing",
|
|
2580
|
+
implies: ["medical_billing:write"],
|
|
2581
|
+
dangerous: true
|
|
2582
|
+
},
|
|
2493
2583
|
// =========================================================================
|
|
2494
2584
|
// MEMBER ROLES
|
|
2495
2585
|
// =========================================================================
|
|
@@ -2519,6 +2609,11 @@ var SCOPES = {
|
|
|
2519
2609
|
category: "chats" /* CHATS */,
|
|
2520
2610
|
description: "View all conversations"
|
|
2521
2611
|
},
|
|
2612
|
+
"demos:run": {
|
|
2613
|
+
name: "demos:run",
|
|
2614
|
+
category: "demos" /* DEMOS */,
|
|
2615
|
+
description: "Start and interact with your own synthetic patient demos"
|
|
2616
|
+
},
|
|
2522
2617
|
"chats:write": {
|
|
2523
2618
|
name: "chats:write",
|
|
2524
2619
|
category: "chats" /* CHATS */,
|
|
@@ -3408,6 +3503,9 @@ ${formattedErrors}`, response.status);
|
|
|
3408
3503
|
const headers = new Headers({
|
|
3409
3504
|
...options?.headers || {}
|
|
3410
3505
|
});
|
|
3506
|
+
if (typeof options?.body === "string" && !headers.has("Content-Type")) {
|
|
3507
|
+
headers.set("Content-Type", "application/json");
|
|
3508
|
+
}
|
|
3411
3509
|
if (this.apiKey) {
|
|
3412
3510
|
headers.set("Authorization", `Bearer ${this.apiKey}`);
|
|
3413
3511
|
}
|
|
@@ -3608,13 +3706,13 @@ var ResourceWorkflowsApi = class extends BaseApiClient {
|
|
|
3608
3706
|
* pin a Workflow item; archived Workflows are excluded unless asked for.
|
|
3609
3707
|
*/
|
|
3610
3708
|
async listResourceWorkflows(wid, params) {
|
|
3611
|
-
const
|
|
3612
|
-
if (params?.page !== void 0)
|
|
3613
|
-
if (params?.pageSize !== void 0)
|
|
3709
|
+
const query2 = new URLSearchParams();
|
|
3710
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3711
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3614
3712
|
if (params?.includeArchived !== void 0) {
|
|
3615
|
-
|
|
3713
|
+
query2.set("includeArchived", String(params.includeArchived));
|
|
3616
3714
|
}
|
|
3617
|
-
const qs =
|
|
3715
|
+
const qs = query2.toString();
|
|
3618
3716
|
return this.fetch(
|
|
3619
3717
|
`w/${encodeURIComponent(wid)}/resource-workflows${qs ? `?${qs}` : ""}`
|
|
3620
3718
|
);
|
|
@@ -3628,10 +3726,10 @@ function bundlesPath(wid, ...segments) {
|
|
|
3628
3726
|
return tail ? `${base}/${tail}` : base;
|
|
3629
3727
|
}
|
|
3630
3728
|
function pageQuery(params) {
|
|
3631
|
-
const
|
|
3632
|
-
if (params?.page !== void 0)
|
|
3633
|
-
if (params?.pageSize !== void 0)
|
|
3634
|
-
const qs =
|
|
3729
|
+
const query2 = new URLSearchParams();
|
|
3730
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3731
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3732
|
+
const qs = query2.toString();
|
|
3635
3733
|
return qs ? `?${qs}` : "";
|
|
3636
3734
|
}
|
|
3637
3735
|
var BundlesApi = class extends BaseApiClient {
|
|
@@ -3825,9 +3923,9 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
3825
3923
|
* between. `to` must be newer than the version the installation holds.
|
|
3826
3924
|
*/
|
|
3827
3925
|
async previewInstallationUpgrade(wid, installationUuid, to) {
|
|
3828
|
-
const
|
|
3926
|
+
const query2 = new URLSearchParams({ to: String(to) });
|
|
3829
3927
|
return this.fetch(
|
|
3830
|
-
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${
|
|
3928
|
+
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${query2.toString()}`
|
|
3831
3929
|
);
|
|
3832
3930
|
}
|
|
3833
3931
|
/**
|
|
@@ -4422,6 +4520,18 @@ var AuthApi = class extends BaseApiClient {
|
|
|
4422
4520
|
async getUserAccount() {
|
|
4423
4521
|
return this.fetch("account");
|
|
4424
4522
|
}
|
|
4523
|
+
/** Active, undismissed product notices for this account across workspaces. */
|
|
4524
|
+
async getAccountNotices() {
|
|
4525
|
+
return this.fetch("account/notices");
|
|
4526
|
+
}
|
|
4527
|
+
async viewAccountNotice(id) {
|
|
4528
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/view`, { method: "PUT" });
|
|
4529
|
+
}
|
|
4530
|
+
async dismissAccountNotice(id) {
|
|
4531
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/dismiss`, {
|
|
4532
|
+
method: "PUT"
|
|
4533
|
+
});
|
|
4534
|
+
}
|
|
4425
4535
|
/** Update the authenticated user's account information. */
|
|
4426
4536
|
async updateUserAccount(info) {
|
|
4427
4537
|
return this.fetch("account", {
|
|
@@ -5018,9 +5128,9 @@ var CalendarsApi = class extends BaseApiClient {
|
|
|
5018
5128
|
const params = new URLSearchParams();
|
|
5019
5129
|
if (options?.page !== void 0) params.set("page", String(options.page));
|
|
5020
5130
|
if (options?.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
|
|
5021
|
-
const
|
|
5131
|
+
const query2 = params.size ? `?${params}` : "";
|
|
5022
5132
|
return this.fetch(
|
|
5023
|
-
`w/${wid}/calendar-event-types${
|
|
5133
|
+
`w/${wid}/calendar-event-types${query2}`
|
|
5024
5134
|
);
|
|
5025
5135
|
}
|
|
5026
5136
|
/** Get a single calendar event type by ID. */
|
|
@@ -5523,24 +5633,6 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
5523
5633
|
`w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
|
|
5524
5634
|
);
|
|
5525
5635
|
}
|
|
5526
|
-
/** List the background-work thread hanging off a message.
|
|
5527
|
-
*
|
|
5528
|
-
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
5529
|
-
* background (ADR-11 / forked trajectories), writing its messages as a
|
|
5530
|
-
* child thread parented at the fork point. Main-history reads exclude
|
|
5531
|
-
* them, so this is how the "show work" affordance fetches them — lazily,
|
|
5532
|
-
* only when a message with a non-zero `childMessageCount` is expanded.
|
|
5533
|
-
* Returns the thread in chronological order, empty when there is none.
|
|
5534
|
-
*
|
|
5535
|
-
* `messageUuid` is the fork point's `ChatMessage.id`. */
|
|
5536
|
-
async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
|
|
5537
|
-
const params = new URLSearchParams();
|
|
5538
|
-
params.append("limit", limit.toString());
|
|
5539
|
-
params.append("offset", offset.toString());
|
|
5540
|
-
return this.fetch(
|
|
5541
|
-
`w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
|
|
5542
|
-
);
|
|
5543
|
-
}
|
|
5544
5636
|
/** List messages associated with a specific tool call in a chat. */
|
|
5545
5637
|
async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
|
|
5546
5638
|
const params = new URLSearchParams();
|
|
@@ -5763,9 +5855,9 @@ var ConfluenceApi = class extends BaseApiClient {
|
|
|
5763
5855
|
const qs = new URLSearchParams();
|
|
5764
5856
|
if (params?.cursor) qs.set("cursor", params.cursor);
|
|
5765
5857
|
if (params?.limit) qs.set("limit", String(params.limit));
|
|
5766
|
-
const
|
|
5858
|
+
const query2 = qs.toString();
|
|
5767
5859
|
return this.fetch(
|
|
5768
|
-
`w/${wid}/app-connections/confluence/spaces${
|
|
5860
|
+
`w/${wid}/app-connections/confluence/spaces${query2 ? `?${query2}` : ""}`
|
|
5769
5861
|
);
|
|
5770
5862
|
}
|
|
5771
5863
|
async listConfluencePages(wid, spaceId, params) {
|
|
@@ -5897,9 +5989,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
5897
5989
|
async getDashboardChannelStats(wid, options) {
|
|
5898
5990
|
const params = new URLSearchParams();
|
|
5899
5991
|
if (options?.hours !== void 0) params.append("hours", options.hours.toString());
|
|
5900
|
-
const
|
|
5992
|
+
const query2 = params.toString();
|
|
5901
5993
|
return this.fetch(
|
|
5902
|
-
`w/${wid}/dashboards/stats/channels${
|
|
5994
|
+
`w/${wid}/dashboards/stats/channels${query2 ? `?${query2}` : ""}`
|
|
5903
5995
|
);
|
|
5904
5996
|
}
|
|
5905
5997
|
/**
|
|
@@ -5911,9 +6003,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
5911
6003
|
async getDashboardWorkflowAssignmentStats(wid, options) {
|
|
5912
6004
|
const params = new URLSearchParams();
|
|
5913
6005
|
if (options?.hours != null) params.append("hours", options.hours.toString());
|
|
5914
|
-
const
|
|
6006
|
+
const query2 = params.toString();
|
|
5915
6007
|
return this.fetch(
|
|
5916
|
-
`w/${wid}/dashboards/stats/workflow-assignments${
|
|
6008
|
+
`w/${wid}/dashboards/stats/workflow-assignments${query2 ? `?${query2}` : ""}`
|
|
5917
6009
|
);
|
|
5918
6010
|
}
|
|
5919
6011
|
/**
|
|
@@ -5937,9 +6029,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
5937
6029
|
if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
|
|
5938
6030
|
if (options?.check !== void 0) params.append("check", options.check);
|
|
5939
6031
|
if (options?.severity !== void 0) params.append("severity", options.severity);
|
|
5940
|
-
const
|
|
6032
|
+
const query2 = params.toString();
|
|
5941
6033
|
return this.fetch(
|
|
5942
|
-
`w/${wid}/configuration-health${
|
|
6034
|
+
`w/${wid}/configuration-health${query2 ? `?${query2}` : ""}`
|
|
5943
6035
|
);
|
|
5944
6036
|
}
|
|
5945
6037
|
};
|
|
@@ -6009,9 +6101,9 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
6009
6101
|
if (options?.beforeVersion !== void 0)
|
|
6010
6102
|
params.set("beforeVersion", String(options.beforeVersion));
|
|
6011
6103
|
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
6012
|
-
const
|
|
6104
|
+
const query2 = params.toString();
|
|
6013
6105
|
return this.fetch(
|
|
6014
|
-
`w/${wid}/data-types/${id}/schema-versions${
|
|
6106
|
+
`w/${wid}/data-types/${id}/schema-versions${query2 ? `?${query2}` : ""}`
|
|
6015
6107
|
);
|
|
6016
6108
|
}
|
|
6017
6109
|
/** List all data types for a workspace, optionally filtering by archived status. */
|
|
@@ -6323,12 +6415,6 @@ var DiscordBotsApi = class extends BaseApiClient {
|
|
|
6323
6415
|
async getDiscordBot(wid, botId) {
|
|
6324
6416
|
return this.fetch(`w/${wid}/app-connections/discord/bots/${botId}`);
|
|
6325
6417
|
}
|
|
6326
|
-
/**
|
|
6327
|
-
* Get a Discord bot by UUID.
|
|
6328
|
-
*/
|
|
6329
|
-
async getDiscordBotByUuid(wid, uuid) {
|
|
6330
|
-
return this.fetch(`w/${wid}/app-connections/discord/bots/uuid/${uuid}`);
|
|
6331
|
-
}
|
|
6332
6418
|
/**
|
|
6333
6419
|
* Create a new Discord bot configuration.
|
|
6334
6420
|
*/
|
|
@@ -6645,10 +6731,11 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
6645
6731
|
var EventsApi = class extends BaseApiClient {
|
|
6646
6732
|
/** List event rules in the workspace, paginated. */
|
|
6647
6733
|
async getEventRules(wid, params) {
|
|
6648
|
-
const
|
|
6649
|
-
if (params?.
|
|
6650
|
-
if (params?.
|
|
6651
|
-
|
|
6734
|
+
const query2 = new URLSearchParams();
|
|
6735
|
+
if (params?.search) query2.set("search", params.search);
|
|
6736
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6737
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6738
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6652
6739
|
return this.fetch(`w/${wid}/event-rules${qs}`);
|
|
6653
6740
|
}
|
|
6654
6741
|
/** Get the available action types that can be used in event rules. */
|
|
@@ -6860,11 +6947,11 @@ var EventsApi = class extends BaseApiClient {
|
|
|
6860
6947
|
var ExperimentsApi = class extends BaseApiClient {
|
|
6861
6948
|
/** List experiments with group summaries and assignment counts. */
|
|
6862
6949
|
async getExperiments(wid, params) {
|
|
6863
|
-
const
|
|
6864
|
-
if (params?.page !== void 0)
|
|
6865
|
-
if (params?.pageSize !== void 0)
|
|
6866
|
-
if (params?.
|
|
6867
|
-
const qs =
|
|
6950
|
+
const query2 = new URLSearchParams();
|
|
6951
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6952
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6953
|
+
if (params?.archived !== void 0) query2.set("archived", String(params.archived));
|
|
6954
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6868
6955
|
return this.fetch(`w/${wid}/experiments${qs}`);
|
|
6869
6956
|
}
|
|
6870
6957
|
/** Get a single experiment by ID (includes groups). */
|
|
@@ -7002,6 +7089,22 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
7002
7089
|
async getFhirConnectionByUuid(wid, uuid) {
|
|
7003
7090
|
return this.fetch(`w/${wid}/app-connections/fhir/connections/uuid/${uuid}`);
|
|
7004
7091
|
}
|
|
7092
|
+
/**
|
|
7093
|
+
* The connection's sync configuration, with the eCW encounter-sync runtime
|
|
7094
|
+
* state (`connectionParams.ecwEncounterSyncState`) typed.
|
|
7095
|
+
*
|
|
7096
|
+
* This is the generic connector sync-config route (the same one
|
|
7097
|
+
* `ConnectionSyncApi.getConnectionSyncConfig` wraps), not a FHIR-only
|
|
7098
|
+
* path. It is the one read that still returns the encounter
|
|
7099
|
+
* watermark for a workspace whose eCW feature flag is off: the
|
|
7100
|
+
* encounter-sync status route is flag-gated, while this route requires
|
|
7101
|
+
* only `apps:read`.
|
|
7102
|
+
*/
|
|
7103
|
+
async getFhirConnectionSyncConfig(wid, connectionId) {
|
|
7104
|
+
return this.fetch(
|
|
7105
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
7106
|
+
);
|
|
7107
|
+
}
|
|
7005
7108
|
/**
|
|
7006
7109
|
* Create a new FHIR connection configuration.
|
|
7007
7110
|
*/
|
|
@@ -7181,11 +7284,11 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
7181
7284
|
}
|
|
7182
7285
|
// ==================== Member Sync ====================
|
|
7183
7286
|
async fhirListLinkedMembers(wid, connectionId, params) {
|
|
7184
|
-
const
|
|
7185
|
-
if (params?.page !== void 0)
|
|
7186
|
-
if (params?.pageSize !== void 0)
|
|
7187
|
-
if (params?.search?.trim())
|
|
7188
|
-
const qs =
|
|
7287
|
+
const query2 = new URLSearchParams();
|
|
7288
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
7289
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
7290
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
7291
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7189
7292
|
return this.fetch(
|
|
7190
7293
|
`w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members${qs}`
|
|
7191
7294
|
);
|
|
@@ -7307,6 +7410,18 @@ var ClaimMdApi = class extends BaseApiClient {
|
|
|
7307
7410
|
}
|
|
7308
7411
|
};
|
|
7309
7412
|
|
|
7413
|
+
// src/api/stedi.ts
|
|
7414
|
+
var StediApi = class extends BaseApiClient {
|
|
7415
|
+
async getStediConnections(wid) {
|
|
7416
|
+
return this.fetch(`w/${wid}/app-connections/stedi/status`);
|
|
7417
|
+
}
|
|
7418
|
+
async getStediConnectionStatus(wid, connectionUuid) {
|
|
7419
|
+
return this.fetch(
|
|
7420
|
+
`w/${wid}/app-connections/stedi/${connectionUuid}/status`
|
|
7421
|
+
);
|
|
7422
|
+
}
|
|
7423
|
+
};
|
|
7424
|
+
|
|
7310
7425
|
// src/api/documo-fax.ts
|
|
7311
7426
|
var DocumoFaxApi = class extends BaseApiClient {
|
|
7312
7427
|
async getDocumoFaxStatus(wid) {
|
|
@@ -7328,13 +7443,13 @@ var DocumoFaxApi = class extends BaseApiClient {
|
|
|
7328
7443
|
* failures an operator filtering by date is hunting for.
|
|
7329
7444
|
*/
|
|
7330
7445
|
async listDocumoFaxes(wid, params) {
|
|
7331
|
-
const
|
|
7332
|
-
if (params?.page !== void 0)
|
|
7333
|
-
if (params?.pageSize !== void 0)
|
|
7334
|
-
params?.status?.forEach((value) =>
|
|
7335
|
-
if (params?.receivedAfter)
|
|
7336
|
-
if (params?.receivedBefore)
|
|
7337
|
-
const suffix2 =
|
|
7446
|
+
const query2 = new URLSearchParams();
|
|
7447
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
7448
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
7449
|
+
params?.status?.forEach((value) => query2.append("status", value));
|
|
7450
|
+
if (params?.receivedAfter) query2.set("receivedAfter", params.receivedAfter);
|
|
7451
|
+
if (params?.receivedBefore) query2.set("receivedBefore", params.receivedBefore);
|
|
7452
|
+
const suffix2 = query2.toString() === "" ? "" : `?${query2.toString()}`;
|
|
7338
7453
|
return this.fetch(
|
|
7339
7454
|
`w/${wid}/app-connections/documo-fax/faxes${suffix2}`
|
|
7340
7455
|
);
|
|
@@ -7409,20 +7524,20 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
7409
7524
|
);
|
|
7410
7525
|
}
|
|
7411
7526
|
async getLinkedHealthieMembers(wid, params) {
|
|
7412
|
-
const
|
|
7413
|
-
if (params?.page !== void 0)
|
|
7414
|
-
if (params?.pageSize !== void 0)
|
|
7415
|
-
if (params?.search?.trim())
|
|
7416
|
-
const qs =
|
|
7527
|
+
const query2 = new URLSearchParams();
|
|
7528
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
7529
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
7530
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
7531
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7417
7532
|
return this.fetch(
|
|
7418
7533
|
`w/${wid}/app-connections/healthie/reconciliation/linked${qs}`
|
|
7419
7534
|
);
|
|
7420
7535
|
}
|
|
7421
7536
|
async getHealthieReconciliationMatches(wid, params) {
|
|
7422
|
-
const
|
|
7423
|
-
if (params?.limit !== void 0)
|
|
7424
|
-
if (params?.offset !== void 0)
|
|
7425
|
-
const qs =
|
|
7537
|
+
const query2 = new URLSearchParams();
|
|
7538
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
7539
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
7540
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7426
7541
|
return this.fetch(
|
|
7427
7542
|
`w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
|
|
7428
7543
|
);
|
|
@@ -7439,17 +7554,17 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
7439
7554
|
});
|
|
7440
7555
|
}
|
|
7441
7556
|
async listHealthieAppointmentTypes(wid, providerId) {
|
|
7442
|
-
const
|
|
7443
|
-
if (providerId)
|
|
7444
|
-
const qs =
|
|
7557
|
+
const query2 = new URLSearchParams();
|
|
7558
|
+
if (providerId) query2.set("provider_id", providerId);
|
|
7559
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7445
7560
|
return this.fetch(
|
|
7446
7561
|
`w/${wid}/app-connections/healthie/appointment-types${qs}`
|
|
7447
7562
|
);
|
|
7448
7563
|
}
|
|
7449
7564
|
async listHealthiePatients(wid, keywords) {
|
|
7450
|
-
const
|
|
7451
|
-
if (keywords?.trim())
|
|
7452
|
-
const qs =
|
|
7565
|
+
const query2 = new URLSearchParams();
|
|
7566
|
+
if (keywords?.trim()) query2.set("keywords", keywords.trim());
|
|
7567
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7453
7568
|
return this.fetch(
|
|
7454
7569
|
`w/${wid}/app-connections/healthie/patients${qs}`
|
|
7455
7570
|
);
|
|
@@ -7664,6 +7779,21 @@ var FilesApi = class extends BaseApiClient {
|
|
|
7664
7779
|
method: "DELETE"
|
|
7665
7780
|
});
|
|
7666
7781
|
}
|
|
7782
|
+
/** Queue indexing of an individual File, including a File without a folder. */
|
|
7783
|
+
async reindexFile(wid, id) {
|
|
7784
|
+
return this.fetch(`w/${wid}/files/${id}/reindex`, {
|
|
7785
|
+
method: "POST",
|
|
7786
|
+
body: JSON.stringify({})
|
|
7787
|
+
});
|
|
7788
|
+
}
|
|
7789
|
+
/** Search the current indexed version of an individual File. */
|
|
7790
|
+
async searchFile(wid, id, params) {
|
|
7791
|
+
const searchParams = new URLSearchParams({ query: params.query });
|
|
7792
|
+
if (params.topK !== void 0) searchParams.append("top_k", params.topK.toString());
|
|
7793
|
+
return this.fetch(
|
|
7794
|
+
`w/${wid}/files/${id}/search?${searchParams.toString()}`
|
|
7795
|
+
);
|
|
7796
|
+
}
|
|
7667
7797
|
/** Trigger reindexing of a folder's contents for search. */
|
|
7668
7798
|
async reindexFolder(wid, id) {
|
|
7669
7799
|
return this.fetch(`w/${wid}/folders/${id}/reindex`, {
|
|
@@ -7824,9 +7954,20 @@ function bytesToBase64(bytes) {
|
|
|
7824
7954
|
|
|
7825
7955
|
// src/api/inboxes.ts
|
|
7826
7956
|
var InboxesApi = class extends BaseApiClient {
|
|
7827
|
-
/**
|
|
7828
|
-
|
|
7829
|
-
|
|
7957
|
+
/**
|
|
7958
|
+
* List inboxes in a workspace.
|
|
7959
|
+
*
|
|
7960
|
+
* `isArchived` picks the half of the archive switch: omitted (or `false`) is
|
|
7961
|
+
* the Active list, `true` the Archived one. The server defaults to active,
|
|
7962
|
+
* so a caller that never passes it sees usable inboxes only.
|
|
7963
|
+
*/
|
|
7964
|
+
async getInboxes(wid, options) {
|
|
7965
|
+
const params = new URLSearchParams();
|
|
7966
|
+
if (options?.isArchived !== void 0) {
|
|
7967
|
+
params.set("is_archived", String(options.isArchived));
|
|
7968
|
+
}
|
|
7969
|
+
const query2 = params.toString();
|
|
7970
|
+
return this.fetch(`w/${wid}/inboxes${query2 ? `?${query2}` : ""}`);
|
|
7830
7971
|
}
|
|
7831
7972
|
/**
|
|
7832
7973
|
* Get an inbox by ID or UUID.
|
|
@@ -7853,17 +7994,45 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
7853
7994
|
body: JSON.stringify(inbox)
|
|
7854
7995
|
});
|
|
7855
7996
|
}
|
|
7856
|
-
/** Delete an inbox. */
|
|
7997
|
+
/** Delete an inbox and its emails. Prefer {@link archiveInbox}. */
|
|
7857
7998
|
async deleteInbox(wid, id) {
|
|
7858
7999
|
return this.fetch(`w/${wid}/inboxes/${id}`, {
|
|
7859
8000
|
method: "DELETE"
|
|
7860
8001
|
});
|
|
7861
8002
|
}
|
|
7862
|
-
/**
|
|
8003
|
+
/**
|
|
8004
|
+
* Archive an inbox: it leaves the Active list, refuses new mail and new
|
|
8005
|
+
* sends, and keeps every email it already holds. One-way.
|
|
8006
|
+
*
|
|
8007
|
+
* Refused with a 400 while a Workflow uses the inbox as its default or an
|
|
8008
|
+
* EventRule sends from it — read {@link getInboxArchiveBlockers} first to
|
|
8009
|
+
* explain that before committing.
|
|
8010
|
+
*/
|
|
8011
|
+
async archiveInbox(wid, id) {
|
|
8012
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive`, {
|
|
8013
|
+
method: "POST",
|
|
8014
|
+
// The route requires a JSON body as a CSRF barrier; `{}` is enough.
|
|
8015
|
+
body: JSON.stringify({})
|
|
8016
|
+
});
|
|
8017
|
+
}
|
|
8018
|
+
/**
|
|
8019
|
+
* What still points at this inbox: Workflows whose default inbox it is, and
|
|
8020
|
+
* EventRules that send from it. `canArchive` is the authoritative answer.
|
|
8021
|
+
*/
|
|
8022
|
+
async getInboxArchiveBlockers(wid, id) {
|
|
8023
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive-blockers`);
|
|
8024
|
+
}
|
|
8025
|
+
/**
|
|
8026
|
+
* List emails in an inbox with pagination, optional attachment inclusion,
|
|
8027
|
+
* a `search` term (sender or subject) and a sort.
|
|
8028
|
+
*/
|
|
7863
8029
|
async getInboxEmails(wid, inboxId, options = {}) {
|
|
7864
8030
|
const params = new URLSearchParams();
|
|
7865
8031
|
if (options.page) params.append("page", options.page.toString());
|
|
7866
8032
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
8033
|
+
if (options.search) params.append("search", options.search);
|
|
8034
|
+
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
8035
|
+
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
7867
8036
|
if (options.includeAttachments)
|
|
7868
8037
|
params.append("include_attachments", options.includeAttachments.toString());
|
|
7869
8038
|
return this.fetch(
|
|
@@ -7972,14 +8141,20 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
7972
8141
|
const params = new URLSearchParams();
|
|
7973
8142
|
if (period.dateFrom) params.append("date_from", period.dateFrom);
|
|
7974
8143
|
if (period.dateTo) params.append("date_to", period.dateTo);
|
|
7975
|
-
const
|
|
8144
|
+
const query2 = params.toString();
|
|
7976
8145
|
return this.fetch(
|
|
7977
|
-
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${
|
|
8146
|
+
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
|
|
7978
8147
|
);
|
|
7979
8148
|
}
|
|
7980
|
-
/** List email threads in an inbox
|
|
7981
|
-
async getInboxThreads(wid, inboxId) {
|
|
7982
|
-
|
|
8149
|
+
/** List email threads in an inbox, `limit` threads from `offset`. */
|
|
8150
|
+
async getInboxThreads(wid, inboxId, options = {}) {
|
|
8151
|
+
const params = new URLSearchParams();
|
|
8152
|
+
if (options.limit !== void 0) params.append("limit", options.limit.toString());
|
|
8153
|
+
if (options.offset) params.append("offset", options.offset.toString());
|
|
8154
|
+
const query2 = params.toString();
|
|
8155
|
+
return this.fetch(
|
|
8156
|
+
`w/${wid}/inboxes/${inboxId}/threads${query2 ? `?${query2}` : ""}`
|
|
8157
|
+
);
|
|
7983
8158
|
}
|
|
7984
8159
|
/** List emails in a thread by assignment ID with pagination. */
|
|
7985
8160
|
async getThreadEmails(wid, inboxId, assignmentId, options = {}) {
|
|
@@ -8379,10 +8554,10 @@ var MembersApi = class extends BaseApiClient {
|
|
|
8379
8554
|
});
|
|
8380
8555
|
}
|
|
8381
8556
|
/** List workspace members with pagination, filtering, and sorting. */
|
|
8382
|
-
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId,
|
|
8557
|
+
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query2) {
|
|
8383
8558
|
const params = new URLSearchParams();
|
|
8384
8559
|
if (memberFilterId != null) params.append("memberFilterId", memberFilterId.toString());
|
|
8385
|
-
if (
|
|
8560
|
+
if (query2 != null) params.append("query", JSON.stringify(query2));
|
|
8386
8561
|
if (page) params.append("page", page.toString());
|
|
8387
8562
|
if (pageSize) params.append("pageSize", pageSize.toString());
|
|
8388
8563
|
if (sortBy) params.append("sortBy", sortBy);
|
|
@@ -9212,8 +9387,8 @@ var MotdApi = class extends BaseApiClient {
|
|
|
9212
9387
|
const params = new URLSearchParams();
|
|
9213
9388
|
if (options?.date !== void 0) params.append("date", options.date);
|
|
9214
9389
|
if (options?.offset !== void 0) params.append("offset", options.offset.toString());
|
|
9215
|
-
const
|
|
9216
|
-
return this.fetch(`w/${wid}/motd${
|
|
9390
|
+
const query2 = params.toString();
|
|
9391
|
+
return this.fetch(`w/${wid}/motd${query2 ? `?${query2}` : ""}`);
|
|
9217
9392
|
}
|
|
9218
9393
|
};
|
|
9219
9394
|
|
|
@@ -9323,21 +9498,21 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
9323
9498
|
});
|
|
9324
9499
|
}
|
|
9325
9500
|
async getLinkedMondayMembers(wid, params) {
|
|
9326
|
-
const
|
|
9327
|
-
if (params?.board_id)
|
|
9328
|
-
if (params?.page !== void 0)
|
|
9329
|
-
if (params?.pageSize !== void 0)
|
|
9330
|
-
if (params?.search?.trim())
|
|
9331
|
-
const qs =
|
|
9501
|
+
const query2 = new URLSearchParams();
|
|
9502
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
9503
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
9504
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
9505
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
9506
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9332
9507
|
return this.fetch(
|
|
9333
9508
|
`w/${wid}/app-connections/monday/reconciliation/linked${qs}`
|
|
9334
9509
|
);
|
|
9335
9510
|
}
|
|
9336
9511
|
async getMondayReconciliationMatches(wid, params) {
|
|
9337
|
-
const
|
|
9338
|
-
if (params?.limit !== void 0)
|
|
9339
|
-
if (params?.offset !== void 0)
|
|
9340
|
-
const qs =
|
|
9512
|
+
const query2 = new URLSearchParams();
|
|
9513
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
9514
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
9515
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9341
9516
|
return this.fetch(
|
|
9342
9517
|
`w/${wid}/app-connections/monday/reconciliation/matches${qs}`
|
|
9343
9518
|
);
|
|
@@ -9361,11 +9536,11 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
9361
9536
|
);
|
|
9362
9537
|
}
|
|
9363
9538
|
async getLinkedRecords(wid, params) {
|
|
9364
|
-
const
|
|
9365
|
-
if (params?.board_id)
|
|
9366
|
-
if (params?.page !== void 0)
|
|
9367
|
-
if (params?.pageSize !== void 0)
|
|
9368
|
-
const qs =
|
|
9539
|
+
const query2 = new URLSearchParams();
|
|
9540
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
9541
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
9542
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
9543
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9369
9544
|
return this.fetch(
|
|
9370
9545
|
`w/${wid}/app-connections/monday/linked-records${qs}`
|
|
9371
9546
|
);
|
|
@@ -9388,10 +9563,10 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
9388
9563
|
* connection is parked for re-authorization.
|
|
9389
9564
|
*/
|
|
9390
9565
|
async getMondaySyncLogs(wid, params) {
|
|
9391
|
-
const
|
|
9392
|
-
if (params?.pageSize)
|
|
9393
|
-
if (params?.cursor)
|
|
9394
|
-
const qs =
|
|
9566
|
+
const query2 = new URLSearchParams();
|
|
9567
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
9568
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
9569
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9395
9570
|
return this.fetch(
|
|
9396
9571
|
`w/${wid}/app-connections/monday/sync/logs${qs}`
|
|
9397
9572
|
);
|
|
@@ -9406,13 +9581,13 @@ var InterventionRequestsApi = class extends BaseApiClient {
|
|
|
9406
9581
|
}
|
|
9407
9582
|
/** List intervention requests in a workspace, newest first. */
|
|
9408
9583
|
async getInterventionRequests(wid, params = {}) {
|
|
9409
|
-
const
|
|
9410
|
-
if (params.kind)
|
|
9411
|
-
if (params.openOnly)
|
|
9412
|
-
if (params.chatId !== void 0)
|
|
9413
|
-
if (params.unroutedOnly)
|
|
9414
|
-
if (params.limit !== void 0)
|
|
9415
|
-
const qs =
|
|
9584
|
+
const query2 = new URLSearchParams();
|
|
9585
|
+
if (params.kind) query2.set("kind", params.kind);
|
|
9586
|
+
if (params.openOnly) query2.set("openOnly", "true");
|
|
9587
|
+
if (params.chatId !== void 0) query2.set("chatId", String(params.chatId));
|
|
9588
|
+
if (params.unroutedOnly) query2.set("unroutedOnly", "true");
|
|
9589
|
+
if (params.limit !== void 0) query2.set("limit", String(params.limit));
|
|
9590
|
+
const qs = query2.toString();
|
|
9416
9591
|
return this.fetch(
|
|
9417
9592
|
`w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
|
|
9418
9593
|
);
|
|
@@ -9533,6 +9708,47 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
9533
9708
|
|
|
9534
9709
|
// src/api/org.ts
|
|
9535
9710
|
var OrgApi = class extends BaseApiClient {
|
|
9711
|
+
async getOrgManagerChats(org, cursor) {
|
|
9712
|
+
return this.fetch(
|
|
9713
|
+
`o/${encodeURIComponent(org)}/manager/chats${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`
|
|
9714
|
+
);
|
|
9715
|
+
}
|
|
9716
|
+
async createOrgManagerChat(org, title) {
|
|
9717
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
9718
|
+
method: "POST",
|
|
9719
|
+
body: JSON.stringify({ title })
|
|
9720
|
+
});
|
|
9721
|
+
}
|
|
9722
|
+
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
9723
|
+
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
9724
|
+
method: "POST",
|
|
9725
|
+
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
9726
|
+
cache: "no-store"
|
|
9727
|
+
});
|
|
9728
|
+
}
|
|
9729
|
+
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
9730
|
+
return this.fetch(
|
|
9731
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
9732
|
+
{ cache: "no-store" }
|
|
9733
|
+
);
|
|
9734
|
+
}
|
|
9735
|
+
async getOrgManagerMessages(org, chatId, before) {
|
|
9736
|
+
return this.fetch(
|
|
9737
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
|
|
9738
|
+
);
|
|
9739
|
+
}
|
|
9740
|
+
async stopOrgManagerTurn(org, chatId) {
|
|
9741
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/stop`, {
|
|
9742
|
+
method: "POST",
|
|
9743
|
+
body: JSON.stringify({})
|
|
9744
|
+
});
|
|
9745
|
+
}
|
|
9746
|
+
async startOrgManagerTurn(org, chatId, body) {
|
|
9747
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/turns`, {
|
|
9748
|
+
method: "POST",
|
|
9749
|
+
body: JSON.stringify(body)
|
|
9750
|
+
});
|
|
9751
|
+
}
|
|
9536
9752
|
/**
|
|
9537
9753
|
* Get organization by ID or UUID.
|
|
9538
9754
|
* Returns different response based on user's role:
|
|
@@ -9601,7 +9817,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9601
9817
|
async getOrgAiConnectorPolicy(orgIdOrUuid) {
|
|
9602
9818
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
|
|
9603
9819
|
}
|
|
9604
|
-
/** Set the AI connector mode: `any` or `
|
|
9820
|
+
/** Set the AI connector mode: `any`, `allowlist` or `none`. Requires `org:admin`. */
|
|
9605
9821
|
async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
|
|
9606
9822
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
|
|
9607
9823
|
method: "PUT",
|
|
@@ -9782,6 +9998,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9782
9998
|
if (options?.page) params.set("page", String(options.page));
|
|
9783
9999
|
if (options?.pageSize) params.set("pageSize", String(options.pageSize));
|
|
9784
10000
|
if (options?.search) params.set("search", options.search);
|
|
10001
|
+
if (options?.label) params.set("label", options.label);
|
|
9785
10002
|
return this.fetch(
|
|
9786
10003
|
`o/${orgIdOrUuid}/workspaces/summary?${params}`
|
|
9787
10004
|
);
|
|
@@ -9849,16 +10066,17 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9849
10066
|
});
|
|
9850
10067
|
}
|
|
9851
10068
|
/**
|
|
9852
|
-
* Search
|
|
10069
|
+
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
10070
|
+
* for US; the server defaults to US local when the type is omitted.
|
|
9853
10071
|
*/
|
|
9854
10072
|
async searchPhoneNumbers(orgUuid, params) {
|
|
9855
|
-
const
|
|
9856
|
-
if (params?.country)
|
|
9857
|
-
if (params?.numberType)
|
|
9858
|
-
if (params?.areaCode)
|
|
9859
|
-
if (params?.contains)
|
|
9860
|
-
if (params?.limit)
|
|
9861
|
-
const qs =
|
|
10073
|
+
const query2 = new URLSearchParams();
|
|
10074
|
+
if (params?.country) query2.set("country", params.country);
|
|
10075
|
+
if (params?.numberType) query2.set("number_type", params.numberType);
|
|
10076
|
+
if (params?.areaCode) query2.set("area_code", params.areaCode);
|
|
10077
|
+
if (params?.contains) query2.set("contains", params.contains);
|
|
10078
|
+
if (params?.limit) query2.set("limit", String(params.limit));
|
|
10079
|
+
const qs = query2.toString();
|
|
9862
10080
|
return this.fetch(
|
|
9863
10081
|
`o/${orgUuid}/phone-numbers/search${qs ? `?${qs}` : ""}`
|
|
9864
10082
|
);
|
|
@@ -9866,8 +10084,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9866
10084
|
/**
|
|
9867
10085
|
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
9868
10086
|
*
|
|
9869
|
-
*
|
|
9870
|
-
*
|
|
10087
|
+
* Australian mobile numbers require an approved business registration. Pass
|
|
10088
|
+
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
10089
|
+
* `bundleSid` or `addressSid` for Australian purchases.
|
|
9871
10090
|
*/
|
|
9872
10091
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
9873
10092
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -9876,11 +10095,31 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9876
10095
|
phoneNumber,
|
|
9877
10096
|
numberType,
|
|
9878
10097
|
country: opts?.country,
|
|
10098
|
+
legalEntityUuid: opts?.legalEntityUuid,
|
|
9879
10099
|
bundleSid: opts?.bundleSid,
|
|
9880
10100
|
addressSid: opts?.addressSid
|
|
9881
10101
|
})
|
|
9882
10102
|
});
|
|
9883
10103
|
}
|
|
10104
|
+
async getNumberRegistration(orgUuid, entityUuid) {
|
|
10105
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration`);
|
|
10106
|
+
}
|
|
10107
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
10108
|
+
const body = new FormData();
|
|
10109
|
+
body.append("file", file);
|
|
10110
|
+
body.append("documentType", documentType);
|
|
10111
|
+
body.append("requirementName", requirementName);
|
|
10112
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents`, {
|
|
10113
|
+
method: "POST",
|
|
10114
|
+
body
|
|
10115
|
+
});
|
|
10116
|
+
}
|
|
10117
|
+
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
10118
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit`, {
|
|
10119
|
+
method: "POST",
|
|
10120
|
+
body: JSON.stringify({})
|
|
10121
|
+
});
|
|
10122
|
+
}
|
|
9884
10123
|
/**
|
|
9885
10124
|
* Delete a phone number from the org (releases from Twilio).
|
|
9886
10125
|
*/
|
|
@@ -9927,7 +10166,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9927
10166
|
* Delete a registered organization domain.
|
|
9928
10167
|
*/
|
|
9929
10168
|
async deleteOrgDomain(orgIdOrUuid, domainUuid) {
|
|
9930
|
-
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
10169
|
+
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
10170
|
+
method: "DELETE"
|
|
10171
|
+
});
|
|
9931
10172
|
}
|
|
9932
10173
|
/**
|
|
9933
10174
|
* Enable email DNS provisioning for a verified org domain.
|
|
@@ -9958,9 +10199,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9958
10199
|
* Disable email support for an org domain.
|
|
9959
10200
|
*/
|
|
9960
10201
|
async disableOrgDomainEmail(orgIdOrUuid, domainUuid, confirm = false) {
|
|
9961
|
-
const
|
|
10202
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
9962
10203
|
const response = await this.fetchRaw(
|
|
9963
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/email${
|
|
10204
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/email${query2}`,
|
|
9964
10205
|
{ method: "DELETE" },
|
|
9965
10206
|
[409]
|
|
9966
10207
|
);
|
|
@@ -10041,9 +10282,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10041
10282
|
* Disable custom site routing for an org domain.
|
|
10042
10283
|
*/
|
|
10043
10284
|
async disableOrgDomainSite(orgIdOrUuid, domainUuid, confirm = false) {
|
|
10044
|
-
const
|
|
10285
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
10045
10286
|
const response = await this.fetchRaw(
|
|
10046
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/site${
|
|
10287
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/site${query2}`,
|
|
10047
10288
|
{ method: "DELETE" },
|
|
10048
10289
|
[409]
|
|
10049
10290
|
);
|
|
@@ -10101,17 +10342,20 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10101
10342
|
});
|
|
10102
10343
|
}
|
|
10103
10344
|
/**
|
|
10104
|
-
*
|
|
10105
|
-
* brand's
|
|
10106
|
-
*
|
|
10107
|
-
*
|
|
10345
|
+
* Enable sending on a workspace-assigned number: attach it to the
|
|
10346
|
+
* Messaging Service of the given brand's campaign (A2P 10DLC).
|
|
10347
|
+
*
|
|
10348
|
+
* `campaignUuid` names the campaign to attach the number to, including the
|
|
10349
|
+
* brand's first; omit it to target the brand's first campaign. Preconditions
|
|
10350
|
+
* (412 otherwise): campaign VERIFIED, brand has a Messaging Service, phone
|
|
10351
|
+
* assigned to a workspace with a Twilio SID.
|
|
10108
10352
|
*/
|
|
10109
|
-
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
|
|
10353
|
+
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid, campaignUuid) {
|
|
10110
10354
|
return this.fetch(
|
|
10111
10355
|
`o/${orgUuid}/phone-numbers/a2p/activate-number`,
|
|
10112
10356
|
{
|
|
10113
10357
|
method: "POST",
|
|
10114
|
-
body: JSON.stringify({ providerPhoneUuid, brandUuid })
|
|
10358
|
+
body: JSON.stringify({ providerPhoneUuid, brandUuid, campaignUuid })
|
|
10115
10359
|
}
|
|
10116
10360
|
);
|
|
10117
10361
|
}
|
|
@@ -10128,7 +10372,10 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10128
10372
|
* entity's business profile must be approved (400 otherwise).
|
|
10129
10373
|
*/
|
|
10130
10374
|
async attachPhoneVoiceTrust(orgUuid, providerPhoneUuid, legalEntityUuid) {
|
|
10131
|
-
const body = {
|
|
10375
|
+
const body = {
|
|
10376
|
+
providerPhoneUuid,
|
|
10377
|
+
legalEntityUuid
|
|
10378
|
+
};
|
|
10132
10379
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/attach`, {
|
|
10133
10380
|
method: "POST",
|
|
10134
10381
|
body: JSON.stringify(body)
|
|
@@ -10292,23 +10539,53 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10292
10539
|
`o/${orgUuid}/a2p-brands/${brandUuid}/use-cases`
|
|
10293
10540
|
);
|
|
10294
10541
|
}
|
|
10542
|
+
/**
|
|
10543
|
+
* Add a draft campaign to a brand. `sourceCampaignUuid` goes in an optional
|
|
10544
|
+
* JSON body; omitting it copies the brand's first campaign. The draft
|
|
10545
|
+
* reaches no provider until it is submitted. A sole-proprietor brand is
|
|
10546
|
+
* refused.
|
|
10547
|
+
*/
|
|
10548
|
+
async createA2PCampaign(orgUuid, brandUuid, data = {}) {
|
|
10549
|
+
return this.fetch(`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns`, {
|
|
10550
|
+
method: "POST",
|
|
10551
|
+
body: JSON.stringify(data)
|
|
10552
|
+
});
|
|
10553
|
+
}
|
|
10554
|
+
/**
|
|
10555
|
+
* Submit a later campaign that has never been submitted. The caller must be
|
|
10556
|
+
* an org admin with recent 2FA, and the billing owner on subscription
|
|
10557
|
+
* billing (the submission buys the campaign's vetting). The brand's first
|
|
10558
|
+
* campaign is submitted by approving its sample messages during registration;
|
|
10559
|
+
* an ineligible campaign comes back as a structured 409 with a `code`. A brand
|
|
10560
|
+
* that no longer reads approved at the carrier, or a use case it no longer
|
|
10561
|
+
* allows, is a 400 with no `code`.
|
|
10562
|
+
*/
|
|
10563
|
+
async submitA2PCampaign(orgUuid, brandUuid, campaignUuid) {
|
|
10564
|
+
return this.fetch(
|
|
10565
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns/${encodeURIComponent(campaignUuid)}/submit`,
|
|
10566
|
+
{ method: "POST" }
|
|
10567
|
+
);
|
|
10568
|
+
}
|
|
10295
10569
|
/**
|
|
10296
10570
|
* Fetch a brand's resolved A2P campaign config. The response carries both the
|
|
10297
10571
|
* raw `overrides` and the `resolved` payload (defaults + overrides) the editor
|
|
10298
|
-
* previews — including the canonical SMS consent text.
|
|
10572
|
+
* previews — including the canonical SMS consent text. `campaignUuid` names
|
|
10573
|
+
* one of the brand's campaigns; without it the brand's first is read.
|
|
10299
10574
|
*/
|
|
10300
|
-
async getA2PCampaignConfig(orgUuid, brandUuid) {
|
|
10575
|
+
async getA2PCampaignConfig(orgUuid, brandUuid, options) {
|
|
10301
10576
|
return this.fetch(
|
|
10302
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`
|
|
10577
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`
|
|
10303
10578
|
);
|
|
10304
10579
|
}
|
|
10305
10580
|
/**
|
|
10306
10581
|
* Partial-update a brand's A2P campaign config. Returns the freshly resolved
|
|
10307
10582
|
* config so the editor's live preview updates without a second round-trip.
|
|
10583
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10584
|
+
* first is updated.
|
|
10308
10585
|
*/
|
|
10309
|
-
async updateA2PCampaignConfig(orgUuid, brandUuid, data) {
|
|
10586
|
+
async updateA2PCampaignConfig(orgUuid, brandUuid, data, options) {
|
|
10310
10587
|
return this.fetch(
|
|
10311
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`,
|
|
10588
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`,
|
|
10312
10589
|
{
|
|
10313
10590
|
method: "PUT",
|
|
10314
10591
|
body: JSON.stringify(data)
|
|
@@ -10318,10 +10595,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10318
10595
|
/**
|
|
10319
10596
|
* Resubmit a campaign the carrier rejected, with the brand's current
|
|
10320
10597
|
* campaign copy. Edits the campaign in place, so no second vetting fee.
|
|
10598
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10599
|
+
* first is resubmitted.
|
|
10321
10600
|
*/
|
|
10322
|
-
async resubmitA2PCampaign(orgUuid, brandUuid) {
|
|
10601
|
+
async resubmitA2PCampaign(orgUuid, brandUuid, options) {
|
|
10323
10602
|
return this.fetch(
|
|
10324
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign`,
|
|
10603
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign${campaignQuery(options)}`,
|
|
10325
10604
|
{ method: "POST" }
|
|
10326
10605
|
);
|
|
10327
10606
|
}
|
|
@@ -10337,11 +10616,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10337
10616
|
}
|
|
10338
10617
|
/**
|
|
10339
10618
|
* Link the brand to a published enrollment Site (sets `site_uuid`). Returns
|
|
10340
|
-
* the refreshed campaign config.
|
|
10619
|
+
* the refreshed campaign config. `campaignUuid` names one of the brand's
|
|
10620
|
+
* campaigns; without it the brand's first campaign is written. Only a first
|
|
10621
|
+
* campaign may link a site.
|
|
10341
10622
|
*/
|
|
10342
|
-
async linkA2PEnrollmentSite(orgUuid, brandUuid, data) {
|
|
10623
|
+
async linkA2PEnrollmentSite(orgUuid, brandUuid, data, options) {
|
|
10343
10624
|
return this.fetch(
|
|
10344
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
10625
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
10345
10626
|
{
|
|
10346
10627
|
method: "PUT",
|
|
10347
10628
|
body: JSON.stringify(data)
|
|
@@ -10353,20 +10634,25 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10353
10634
|
* the explicit counterpart to the automatic provisioning at brand
|
|
10354
10635
|
* registration. `workspaceUuid` is required only when the org has multiple
|
|
10355
10636
|
* workspaces. Returns the refreshed campaign config. Idempotent.
|
|
10637
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10638
|
+
* first campaign is written. Only a first campaign may link a site.
|
|
10356
10639
|
*/
|
|
10357
|
-
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}) {
|
|
10640
|
+
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}, options) {
|
|
10358
10641
|
return this.fetch(
|
|
10359
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision`,
|
|
10642
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision${campaignQuery(options)}`,
|
|
10360
10643
|
{
|
|
10361
10644
|
method: "POST",
|
|
10362
10645
|
body: JSON.stringify(data)
|
|
10363
10646
|
}
|
|
10364
10647
|
);
|
|
10365
10648
|
}
|
|
10366
|
-
/**
|
|
10367
|
-
|
|
10649
|
+
/**
|
|
10650
|
+
* Clear the brand's enrollment-site link. `campaignUuid` names one of the
|
|
10651
|
+
* brand's campaigns; without it the brand's first campaign is cleared.
|
|
10652
|
+
*/
|
|
10653
|
+
async unlinkA2PEnrollmentSite(orgUuid, brandUuid, options) {
|
|
10368
10654
|
return this.fetch(
|
|
10369
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
10655
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
10370
10656
|
{ method: "DELETE" }
|
|
10371
10657
|
);
|
|
10372
10658
|
}
|
|
@@ -10374,10 +10660,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10374
10660
|
* Stage one A2P opt-in evidence file: get a presigned POST to send the bytes
|
|
10375
10661
|
* straight to storage. Nothing is recorded on the brand until
|
|
10376
10662
|
* {@link registerA2PEvidenceUpload} reads the object back and normalizes it.
|
|
10663
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
10664
|
+
* first campaign is written.
|
|
10377
10665
|
*/
|
|
10378
|
-
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data) {
|
|
10666
|
+
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data, options) {
|
|
10379
10667
|
return this.fetch(
|
|
10380
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url`,
|
|
10668
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url${campaignQuery(options)}`,
|
|
10381
10669
|
{
|
|
10382
10670
|
method: "POST",
|
|
10383
10671
|
body: JSON.stringify(data)
|
|
@@ -10385,25 +10673,29 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10385
10673
|
);
|
|
10386
10674
|
}
|
|
10387
10675
|
/**
|
|
10388
|
-
* Normalize a staged evidence upload and record it on the
|
|
10389
|
-
* refreshed campaign config, so the editor's evidence list updates
|
|
10390
|
-
* second round trip.
|
|
10676
|
+
* Normalize a staged evidence upload and record it on the campaign. Returns
|
|
10677
|
+
* the refreshed campaign config, so the editor's evidence list updates
|
|
10678
|
+
* without a second round trip. `campaignUuid` names one of the brand's
|
|
10679
|
+
* campaigns; without it the brand's first campaign is written.
|
|
10391
10680
|
*/
|
|
10392
|
-
async registerA2PEvidenceUpload(orgUuid, brandUuid, data) {
|
|
10681
|
+
async registerA2PEvidenceUpload(orgUuid, brandUuid, data, options) {
|
|
10393
10682
|
return this.fetch(
|
|
10394
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments`,
|
|
10683
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments${campaignQuery(options)}`,
|
|
10395
10684
|
{
|
|
10396
10685
|
method: "POST",
|
|
10397
10686
|
body: JSON.stringify(data)
|
|
10398
10687
|
}
|
|
10399
10688
|
);
|
|
10400
10689
|
}
|
|
10401
|
-
/**
|
|
10402
|
-
|
|
10690
|
+
/**
|
|
10691
|
+
* Remove one uploaded evidence artifact. `campaignUuid` names one of the
|
|
10692
|
+
* brand's campaigns; without it the brand's first campaign is written.
|
|
10693
|
+
*/
|
|
10694
|
+
async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid, options) {
|
|
10403
10695
|
return this.fetch(
|
|
10404
10696
|
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/${encodeURIComponent(
|
|
10405
10697
|
attachmentUuid
|
|
10406
|
-
)}`,
|
|
10698
|
+
)}${campaignQuery(options)}`,
|
|
10407
10699
|
{ method: "DELETE" }
|
|
10408
10700
|
);
|
|
10409
10701
|
}
|
|
@@ -10459,9 +10751,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10459
10751
|
method: "DELETE"
|
|
10460
10752
|
});
|
|
10461
10753
|
}
|
|
10462
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
10754
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0, filters = {}) {
|
|
10755
|
+
const params = new URLSearchParams({ limit: String(limit), offset: String(offset) });
|
|
10756
|
+
if (filters.status) params.set("status", filters.status);
|
|
10757
|
+
if (filters.occurredAfter) params.set("occurredAfter", filters.occurredAfter);
|
|
10758
|
+
if (filters.occurredBefore) params.set("occurredBefore", filters.occurredBefore);
|
|
10463
10759
|
return this.fetch(
|
|
10464
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries
|
|
10760
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?${params}`
|
|
10465
10761
|
);
|
|
10466
10762
|
}
|
|
10467
10763
|
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
@@ -10519,9 +10815,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10519
10815
|
* endpoint and sit in a workspace it actually covers.
|
|
10520
10816
|
*/
|
|
10521
10817
|
async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
|
|
10522
|
-
const
|
|
10818
|
+
const query2 = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
|
|
10523
10819
|
return this.fetch(
|
|
10524
|
-
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${
|
|
10820
|
+
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query2}`
|
|
10525
10821
|
);
|
|
10526
10822
|
}
|
|
10527
10823
|
/**
|
|
@@ -10628,6 +10924,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
10628
10924
|
function businessProfilePath(orgUuid, legalEntityUuid) {
|
|
10629
10925
|
return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
|
|
10630
10926
|
}
|
|
10927
|
+
function campaignQuery(options) {
|
|
10928
|
+
return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
|
|
10929
|
+
}
|
|
10631
10930
|
|
|
10632
10931
|
// src/api/oauth.ts
|
|
10633
10932
|
function getOAuthPath(providerSlug, action) {
|
|
@@ -10744,6 +11043,13 @@ function appendAnalyticsFilters(params, filters) {
|
|
|
10744
11043
|
filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
|
|
10745
11044
|
filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
|
|
10746
11045
|
}
|
|
11046
|
+
function appendPhoneLogFilters(params, filters) {
|
|
11047
|
+
if (!filters) return;
|
|
11048
|
+
if (filters.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
11049
|
+
if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
11050
|
+
if (filters.dateTo) params.set("dateTo", filters.dateTo);
|
|
11051
|
+
if (filters.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
11052
|
+
}
|
|
10747
11053
|
var PhoneNumbersApi = class extends BaseApiClient {
|
|
10748
11054
|
/** List phone numbers in a workspace, optionally including archived. */
|
|
10749
11055
|
async getPhoneNumbers(wid, options) {
|
|
@@ -10751,8 +11057,8 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
10751
11057
|
if (options?.isArchived !== void 0) {
|
|
10752
11058
|
params.set("is_archived", String(options.isArchived));
|
|
10753
11059
|
}
|
|
10754
|
-
const
|
|
10755
|
-
return this.fetch(`w/${wid}/phone-numbers${
|
|
11060
|
+
const query2 = params.toString();
|
|
11061
|
+
return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
|
|
10756
11062
|
}
|
|
10757
11063
|
/** List phone numbers available for provisioning. */
|
|
10758
11064
|
async getAvailablePhoneNumbers(wid) {
|
|
@@ -10818,16 +11124,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
10818
11124
|
if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
10819
11125
|
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
10820
11126
|
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
11127
|
+
if (filters?.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
10821
11128
|
if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
|
|
10822
11129
|
return this.fetch(`w/${wid}/calls?${params}`);
|
|
10823
11130
|
}
|
|
11131
|
+
/**
|
|
11132
|
+
* One time-ordered page over a number's calls, texts and voicemails.
|
|
11133
|
+
*
|
|
11134
|
+
* Paged by keyset: pass the previous page's `nextCursor` as `cursor` to get
|
|
11135
|
+
* the entries after it. A new entry at the head cannot repeat or skip one.
|
|
11136
|
+
* `modalities` limits the feed to some of the logs.
|
|
11137
|
+
*/
|
|
11138
|
+
async getPhoneNumberActivity(wid, id, options = {}) {
|
|
11139
|
+
const params = new URLSearchParams({ pageSize: String(options.pageSize ?? 25) });
|
|
11140
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
11141
|
+
options.modalities?.forEach((modality) => params.append("modality", modality));
|
|
11142
|
+
appendPhoneLogFilters(params, options);
|
|
11143
|
+
return this.fetch(`w/${wid}/phone-numbers/${id}/activity?${params}`);
|
|
11144
|
+
}
|
|
10824
11145
|
/** List paginated voicemails for a phone number. */
|
|
10825
|
-
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status) {
|
|
11146
|
+
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status, filters) {
|
|
10826
11147
|
const params = new URLSearchParams({
|
|
10827
11148
|
page: String(page),
|
|
10828
11149
|
page_size: String(pageSize)
|
|
10829
11150
|
});
|
|
10830
11151
|
if (status) params.set("status", status);
|
|
11152
|
+
appendPhoneLogFilters(params, filters);
|
|
10831
11153
|
return this.fetch(
|
|
10832
11154
|
`w/${wid}/phone-numbers/${id}/voicemails?${params}`
|
|
10833
11155
|
);
|
|
@@ -10853,9 +11175,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
10853
11175
|
pageSize: String(pageSize)
|
|
10854
11176
|
});
|
|
10855
11177
|
if (filters?.status) params.set("status", filters.status);
|
|
10856
|
-
|
|
10857
|
-
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
10858
|
-
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
11178
|
+
appendPhoneLogFilters(params, filters);
|
|
10859
11179
|
return this.fetch(
|
|
10860
11180
|
`w/${wid}/phone-numbers/${id}/messages?${params}`
|
|
10861
11181
|
);
|
|
@@ -10909,9 +11229,9 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
10909
11229
|
async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
|
|
10910
11230
|
const params = new URLSearchParams();
|
|
10911
11231
|
appendAnalyticsFilters(params, filters);
|
|
10912
|
-
const
|
|
11232
|
+
const query2 = params.toString();
|
|
10913
11233
|
return this.fetch(
|
|
10914
|
-
`w/${wid}/phone-numbers/${id}/analytics/summary${
|
|
11234
|
+
`w/${wid}/phone-numbers/${id}/analytics/summary${query2 ? `?${query2}` : ""}`
|
|
10915
11235
|
);
|
|
10916
11236
|
}
|
|
10917
11237
|
/**
|
|
@@ -11120,6 +11440,7 @@ var PersonasApi = class extends BaseApiClient {
|
|
|
11120
11440
|
body: JSON.stringify(data)
|
|
11121
11441
|
});
|
|
11122
11442
|
}
|
|
11443
|
+
/** Archives the Persona and its current test Member. Returns 409 while a test chat is open. */
|
|
11123
11444
|
async archivePersona(wid, id) {
|
|
11124
11445
|
return this.fetch(`w/${wid}/personas/${id}/archive`, {
|
|
11125
11446
|
method: "POST",
|
|
@@ -11144,8 +11465,7 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
11144
11465
|
const q = new URLSearchParams();
|
|
11145
11466
|
if (params?.page !== void 0) q.set("page", String(params.page));
|
|
11146
11467
|
if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
|
|
11147
|
-
if (params?.
|
|
11148
|
-
q.set("includeArchived", String(params.includeArchived));
|
|
11468
|
+
if (params?.archived !== void 0) q.set("archived", String(params.archived));
|
|
11149
11469
|
if (params?.source) q.set("source", params.source);
|
|
11150
11470
|
const qs = q.toString() ? `?${q.toString()}` : "";
|
|
11151
11471
|
return this.fetch(`w/${wid}/metrics${qs}`);
|
|
@@ -11189,6 +11509,18 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
11189
11509
|
`w/${wid}/metrics/${metricId}/series?${q.toString()}`
|
|
11190
11510
|
);
|
|
11191
11511
|
}
|
|
11512
|
+
/**
|
|
11513
|
+
* Series for several metrics in one request, each with its default
|
|
11514
|
+
* aggregation. Items come back in the order the ids were given.
|
|
11515
|
+
*/
|
|
11516
|
+
async getMetricSeriesBatch(wid, params) {
|
|
11517
|
+
const q = new URLSearchParams();
|
|
11518
|
+
for (const id of params.metricIds) q.append("metricIds", String(id));
|
|
11519
|
+
q.set("start", params.start);
|
|
11520
|
+
q.set("end", params.end);
|
|
11521
|
+
if (params.bucket) q.set("bucket", params.bucket);
|
|
11522
|
+
return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
|
|
11523
|
+
}
|
|
11192
11524
|
/** On-demand compute of enabled chat-source metrics for one chat. */
|
|
11193
11525
|
async computeChatMetrics(wid, data) {
|
|
11194
11526
|
return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
|
|
@@ -11222,24 +11554,24 @@ var QueriesApi = class extends BaseApiClient {
|
|
|
11222
11554
|
});
|
|
11223
11555
|
}
|
|
11224
11556
|
/** Structure / field / access / cost validation without execution. */
|
|
11225
|
-
async validateQuery(wid,
|
|
11557
|
+
async validateQuery(wid, query2) {
|
|
11226
11558
|
return this.fetch(`w/${wid}/queries/validate`, {
|
|
11227
11559
|
method: "POST",
|
|
11228
|
-
body: JSON.stringify({ query })
|
|
11560
|
+
body: JSON.stringify({ query: query2 })
|
|
11229
11561
|
});
|
|
11230
11562
|
}
|
|
11231
11563
|
/** Bounded sample run (limit capped server-side). */
|
|
11232
|
-
async previewQuery(wid,
|
|
11564
|
+
async previewQuery(wid, query2, mode) {
|
|
11233
11565
|
return this.fetch(`w/${wid}/queries/preview`, {
|
|
11234
11566
|
method: "POST",
|
|
11235
|
-
body: JSON.stringify({ query, mode })
|
|
11567
|
+
body: JSON.stringify({ query: query2, mode })
|
|
11236
11568
|
});
|
|
11237
11569
|
}
|
|
11238
11570
|
/** Execute a query (rows / count / aggregate). */
|
|
11239
|
-
async runQuery(wid,
|
|
11571
|
+
async runQuery(wid, query2, mode) {
|
|
11240
11572
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
11241
11573
|
method: "POST",
|
|
11242
|
-
body: JSON.stringify({ query, mode })
|
|
11574
|
+
body: JSON.stringify({ query: query2, mode })
|
|
11243
11575
|
});
|
|
11244
11576
|
}
|
|
11245
11577
|
};
|
|
@@ -11300,10 +11632,10 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
11300
11632
|
}
|
|
11301
11633
|
/** List qualifications in a workspace, paginated. */
|
|
11302
11634
|
async getQualifications(wid, params) {
|
|
11303
|
-
const
|
|
11304
|
-
if (params?.page !== void 0)
|
|
11305
|
-
if (params?.pageSize !== void 0)
|
|
11306
|
-
const qs =
|
|
11635
|
+
const query2 = new URLSearchParams();
|
|
11636
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
11637
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
11638
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11307
11639
|
return this.fetch(`w/${wid}/qualifications${qs}`);
|
|
11308
11640
|
}
|
|
11309
11641
|
/** Get a single qualification by ID. */
|
|
@@ -11318,9 +11650,9 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
11318
11650
|
}
|
|
11319
11651
|
// ===== Scenarios =====
|
|
11320
11652
|
async listScenarios(wid, qualificationId, params) {
|
|
11321
|
-
const
|
|
11322
|
-
if (params?.includeArchived)
|
|
11323
|
-
const qs =
|
|
11653
|
+
const query2 = new URLSearchParams();
|
|
11654
|
+
if (params?.includeArchived) query2.set("include_archived", "true");
|
|
11655
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11324
11656
|
return this.fetch(`w/${wid}/qualifications/${qualificationId}/scenarios${qs}`);
|
|
11325
11657
|
}
|
|
11326
11658
|
async createScenario(wid, qualificationId, data) {
|
|
@@ -11353,19 +11685,19 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
11353
11685
|
* `workflowRevisionId`. Omitting both keeps the unfiltered list.
|
|
11354
11686
|
*/
|
|
11355
11687
|
async listTestChatRuns(wid, workflowId, params) {
|
|
11356
|
-
const
|
|
11357
|
-
if (params?.scenarioId !== void 0)
|
|
11688
|
+
const query2 = new URLSearchParams();
|
|
11689
|
+
if (params?.scenarioId !== void 0) query2.set("scenarioId", String(params.scenarioId));
|
|
11358
11690
|
if (params?.assistantChatModelId !== void 0) {
|
|
11359
|
-
|
|
11691
|
+
query2.set("assistantChatModelId", params.assistantChatModelId);
|
|
11360
11692
|
}
|
|
11361
|
-
if (params?.limit !== void 0)
|
|
11693
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
11362
11694
|
if (params?.workflowRevisionId !== void 0) {
|
|
11363
|
-
|
|
11695
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
11364
11696
|
}
|
|
11365
11697
|
if (params?.includeEarlierRevisions !== void 0) {
|
|
11366
|
-
|
|
11698
|
+
query2.set("include_earlier_revisions", String(params.includeEarlierRevisions));
|
|
11367
11699
|
}
|
|
11368
|
-
const qs =
|
|
11700
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11369
11701
|
return this.fetch(
|
|
11370
11702
|
`w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs${qs}`
|
|
11371
11703
|
);
|
|
@@ -11380,11 +11712,11 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
11380
11712
|
* revision it describes and whether it is the current one.
|
|
11381
11713
|
*/
|
|
11382
11714
|
async listScenarioHealthSummaries(wid, workflowId, params) {
|
|
11383
|
-
const
|
|
11715
|
+
const query2 = new URLSearchParams();
|
|
11384
11716
|
if (params?.workflowRevisionId !== void 0) {
|
|
11385
|
-
|
|
11717
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
11386
11718
|
}
|
|
11387
|
-
const qs =
|
|
11719
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11388
11720
|
return this.fetch(
|
|
11389
11721
|
`w/${wid}/qualifications/workflows/${workflowId}/scenario-health-summaries${qs}`
|
|
11390
11722
|
);
|
|
@@ -11464,9 +11796,12 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
11464
11796
|
);
|
|
11465
11797
|
}
|
|
11466
11798
|
async evaluateTestChatRun(wid, runId) {
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11799
|
+
return this.fetch(
|
|
11800
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`,
|
|
11801
|
+
{
|
|
11802
|
+
method: "POST"
|
|
11803
|
+
}
|
|
11804
|
+
);
|
|
11470
11805
|
}
|
|
11471
11806
|
/** Manually end a test chat run (for human-driven runs, which have no
|
|
11472
11807
|
* simulator workflow to mark them completed). */
|
|
@@ -11561,9 +11896,9 @@ var RoutingRulesApi = class extends BaseApiClient {
|
|
|
11561
11896
|
async getRoutingRules(wid, filters) {
|
|
11562
11897
|
const params = new URLSearchParams();
|
|
11563
11898
|
appendFilters(params, filters);
|
|
11564
|
-
const
|
|
11899
|
+
const query2 = params.toString();
|
|
11565
11900
|
return this.fetch(
|
|
11566
|
-
`w/${wid}/routing${
|
|
11901
|
+
`w/${wid}/routing${query2 ? `?${query2}` : ""}`
|
|
11567
11902
|
);
|
|
11568
11903
|
}
|
|
11569
11904
|
/** Read one rule. Requires the rule's endpoint read permission (`phones:read`, or `inboxes:read`). */
|
|
@@ -11669,10 +12004,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
11669
12004
|
});
|
|
11670
12005
|
}
|
|
11671
12006
|
async getSalesforceReconciliationMatches(wid, params) {
|
|
11672
|
-
const
|
|
11673
|
-
if (params?.limit !== void 0)
|
|
11674
|
-
if (params?.offset !== void 0)
|
|
11675
|
-
const qs =
|
|
12007
|
+
const query2 = new URLSearchParams();
|
|
12008
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
12009
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
12010
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11676
12011
|
return this.fetch(
|
|
11677
12012
|
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
11678
12013
|
);
|
|
@@ -11709,11 +12044,11 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
11709
12044
|
});
|
|
11710
12045
|
}
|
|
11711
12046
|
async getLinkedSalesforceMembers(wid, params) {
|
|
11712
|
-
const
|
|
11713
|
-
if (params?.page !== void 0)
|
|
11714
|
-
if (params?.pageSize !== void 0)
|
|
11715
|
-
if (params?.search?.trim())
|
|
11716
|
-
const qs =
|
|
12047
|
+
const query2 = new URLSearchParams();
|
|
12048
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
12049
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
12050
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
12051
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11717
12052
|
return this.fetch(
|
|
11718
12053
|
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
11719
12054
|
);
|
|
@@ -11791,10 +12126,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
11791
12126
|
* connection is parked for re-authorization.
|
|
11792
12127
|
*/
|
|
11793
12128
|
async getSalesforceSyncLogs(wid, params) {
|
|
11794
|
-
const
|
|
11795
|
-
if (params?.pageSize)
|
|
11796
|
-
if (params?.cursor)
|
|
11797
|
-
const qs =
|
|
12129
|
+
const query2 = new URLSearchParams();
|
|
12130
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
12131
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
12132
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11798
12133
|
return this.fetch(
|
|
11799
12134
|
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
11800
12135
|
);
|
|
@@ -11834,12 +12169,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
11834
12169
|
);
|
|
11835
12170
|
}
|
|
11836
12171
|
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
|
|
11837
|
-
const
|
|
12172
|
+
const query2 = new URLSearchParams({
|
|
11838
12173
|
direction,
|
|
11839
12174
|
sync_key: syncKey
|
|
11840
12175
|
});
|
|
11841
12176
|
return this.fetch(
|
|
11842
|
-
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${
|
|
12177
|
+
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
11843
12178
|
);
|
|
11844
12179
|
}
|
|
11845
12180
|
/**
|
|
@@ -11877,11 +12212,29 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
11877
12212
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
11878
12213
|
);
|
|
11879
12214
|
}
|
|
11880
|
-
|
|
12215
|
+
/**
|
|
12216
|
+
* One page of a run's items. ``cursor`` is the previous page's
|
|
12217
|
+
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
12218
|
+
* from ``hasMore``, never from the returned row count.
|
|
12219
|
+
*/
|
|
12220
|
+
async getSyncRunItemsPage(wid, connectionId, runId, options) {
|
|
12221
|
+
const params = new URLSearchParams();
|
|
12222
|
+
if (options?.limit != null) params.set("limit", String(options.limit));
|
|
12223
|
+
if (options?.newestFirst) params.set("newest_first", "true");
|
|
12224
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
12225
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
11881
12226
|
return this.fetch(
|
|
11882
|
-
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items
|
|
12227
|
+
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items${qs}`
|
|
11883
12228
|
);
|
|
11884
12229
|
}
|
|
12230
|
+
/**
|
|
12231
|
+
* The run's items as a flat list. Kept for the published CLI surface; the
|
|
12232
|
+
* server returns the canonical cursor page, and this unwraps its ``items``.
|
|
12233
|
+
*/
|
|
12234
|
+
async getSyncRunItems(wid, connectionId, runId, limit = 500) {
|
|
12235
|
+
const page = await this.getSyncRunItemsPage(wid, connectionId, runId, { limit });
|
|
12236
|
+
return page.items;
|
|
12237
|
+
}
|
|
11885
12238
|
/**
|
|
11886
12239
|
* Clear a manual-unlink exclusion for a member on a connection so
|
|
11887
12240
|
* subsequent outbound syncs stop silently skipping them. Idempotent:
|
|
@@ -11889,9 +12242,9 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
11889
12242
|
* ``boardId`` is only meaningful for multi-scope connectors (Monday).
|
|
11890
12243
|
*/
|
|
11891
12244
|
async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
|
|
11892
|
-
const
|
|
12245
|
+
const query2 = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
|
|
11893
12246
|
return this.fetch(
|
|
11894
|
-
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${
|
|
12247
|
+
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query2}`,
|
|
11895
12248
|
{ method: "DELETE" }
|
|
11896
12249
|
);
|
|
11897
12250
|
}
|
|
@@ -11983,12 +12336,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
11983
12336
|
}
|
|
11984
12337
|
/** Vendor lists a `vendor_list` import can name (configuration only). */
|
|
11985
12338
|
async listSubsetImportVendorLists(wid, connectionId, options) {
|
|
11986
|
-
const
|
|
12339
|
+
const query2 = new URLSearchParams({
|
|
11987
12340
|
query: options?.query ?? "",
|
|
11988
12341
|
limit: String(options?.limit ?? 50)
|
|
11989
12342
|
});
|
|
11990
12343
|
return this.fetch(
|
|
11991
|
-
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${
|
|
12344
|
+
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
|
|
11992
12345
|
);
|
|
11993
12346
|
}
|
|
11994
12347
|
/** Remote fields a `field_filter` import can name, with their operators. */
|
|
@@ -12050,10 +12403,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
12050
12403
|
});
|
|
12051
12404
|
}
|
|
12052
12405
|
async getHubspotReconciliationMatches(wid, params) {
|
|
12053
|
-
const
|
|
12054
|
-
if (params?.limit !== void 0)
|
|
12055
|
-
if (params?.offset !== void 0)
|
|
12056
|
-
const qs =
|
|
12406
|
+
const query2 = new URLSearchParams();
|
|
12407
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
12408
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
12409
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12057
12410
|
return this.fetch(
|
|
12058
12411
|
`w/${wid}/app-connections/hubspot/reconciliation/matches${qs}`
|
|
12059
12412
|
);
|
|
@@ -12076,11 +12429,11 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
12076
12429
|
});
|
|
12077
12430
|
}
|
|
12078
12431
|
async getLinkedHubspotMembers(wid, params) {
|
|
12079
|
-
const
|
|
12080
|
-
if (params?.page !== void 0)
|
|
12081
|
-
if (params?.pageSize !== void 0)
|
|
12082
|
-
if (params?.search?.trim())
|
|
12083
|
-
const qs =
|
|
12432
|
+
const query2 = new URLSearchParams();
|
|
12433
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
12434
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
12435
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
12436
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12084
12437
|
return this.fetch(
|
|
12085
12438
|
`w/${wid}/app-connections/hubspot/reconciliation/linked${qs}`
|
|
12086
12439
|
);
|
|
@@ -12140,10 +12493,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
12140
12493
|
* and Monday twins return), with cursor pagination.
|
|
12141
12494
|
*/
|
|
12142
12495
|
async getHubspotSyncLogs(wid, params) {
|
|
12143
|
-
const
|
|
12144
|
-
if (params?.pageSize)
|
|
12145
|
-
if (params?.cursor)
|
|
12146
|
-
const qs =
|
|
12496
|
+
const query2 = new URLSearchParams();
|
|
12497
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
12498
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
12499
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12147
12500
|
return this.fetch(
|
|
12148
12501
|
`w/${wid}/app-connections/hubspot/sync/logs${qs}`
|
|
12149
12502
|
);
|
|
@@ -12157,6 +12510,37 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
12157
12510
|
|
|
12158
12511
|
// src/api/sites.ts
|
|
12159
12512
|
var SitesApi = class extends BaseApiClient {
|
|
12513
|
+
/** Start a fresh synthetic patient session on the Site's configured Workflow. */
|
|
12514
|
+
async startPublicDemo(wid, siteUuid, request) {
|
|
12515
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
|
|
12516
|
+
method: "POST",
|
|
12517
|
+
body: JSON.stringify(request)
|
|
12518
|
+
});
|
|
12519
|
+
}
|
|
12520
|
+
/** Read only a demo the acting Member drives. */
|
|
12521
|
+
async getPublicDemo(wid, siteUuid, runId) {
|
|
12522
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
|
|
12523
|
+
}
|
|
12524
|
+
/** End this visitor's run and release its test resources. */
|
|
12525
|
+
async endPublicDemo(wid, siteUuid, runId) {
|
|
12526
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
|
|
12527
|
+
method: "POST",
|
|
12528
|
+
keepalive: true,
|
|
12529
|
+
body: JSON.stringify({})
|
|
12530
|
+
});
|
|
12531
|
+
}
|
|
12532
|
+
async sendPublicDemoMessage(wid, siteUuid, runId, request) {
|
|
12533
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
|
|
12534
|
+
method: "POST",
|
|
12535
|
+
body: JSON.stringify(request)
|
|
12536
|
+
});
|
|
12537
|
+
}
|
|
12538
|
+
async submitPublicDemoForm(wid, siteUuid, runId, request) {
|
|
12539
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
|
|
12540
|
+
method: "PUT",
|
|
12541
|
+
body: JSON.stringify(request)
|
|
12542
|
+
});
|
|
12543
|
+
}
|
|
12160
12544
|
/** List all sites in a workspace. */
|
|
12161
12545
|
async getSites(wid) {
|
|
12162
12546
|
return this.fetch(`w/${wid}/sites`);
|
|
@@ -12196,6 +12580,15 @@ var SitesApi = class extends BaseApiClient {
|
|
|
12196
12580
|
async getSiteSource(wid, siteId) {
|
|
12197
12581
|
return this.fetch(`w/${wid}/sites/${siteId}/source`);
|
|
12198
12582
|
}
|
|
12583
|
+
/** List source release revisions from newest to oldest. */
|
|
12584
|
+
async getSiteSourceReleases(wid, siteId, options = {}) {
|
|
12585
|
+
const params = new URLSearchParams();
|
|
12586
|
+
if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
|
|
12587
|
+
if (options.limit != null) params.set("limit", String(options.limit));
|
|
12588
|
+
return this.fetch(
|
|
12589
|
+
`w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
|
|
12590
|
+
);
|
|
12591
|
+
}
|
|
12199
12592
|
/** Starter templates the caller may seed (superuser-only ones filtered server-side). */
|
|
12200
12593
|
async getSiteSourceTemplates(wid, siteId) {
|
|
12201
12594
|
return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
|
|
@@ -12277,8 +12670,8 @@ var SitesApi = class extends BaseApiClient {
|
|
|
12277
12670
|
* (e.g. one the builder has selected but not yet saved).
|
|
12278
12671
|
*/
|
|
12279
12672
|
async getThemeSettings(wid, siteId, theme) {
|
|
12280
|
-
const
|
|
12281
|
-
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${
|
|
12673
|
+
const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
|
|
12674
|
+
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
|
|
12282
12675
|
}
|
|
12283
12676
|
/** Save values for the active theme's settings (validated against the schema). */
|
|
12284
12677
|
async updateThemeSettings(wid, siteId, values) {
|
|
@@ -12424,9 +12817,9 @@ var SitesApi = class extends BaseApiClient {
|
|
|
12424
12817
|
if (parentId !== void 0 && parentId !== null) {
|
|
12425
12818
|
params.append("parent_id", parentId.toString());
|
|
12426
12819
|
}
|
|
12427
|
-
const
|
|
12820
|
+
const query2 = params.toString();
|
|
12428
12821
|
return this.fetch(
|
|
12429
|
-
`w/${wid}/sites/${siteId}/menu/items${
|
|
12822
|
+
`w/${wid}/sites/${siteId}/menu/items${query2 ? `?${query2}` : ""}`
|
|
12430
12823
|
);
|
|
12431
12824
|
}
|
|
12432
12825
|
/** Create a new menu item in a site's navigation. */
|
|
@@ -12667,8 +13060,8 @@ function supportRequestParams(params) {
|
|
|
12667
13060
|
if (params?.linearLinked !== void 0) {
|
|
12668
13061
|
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
12669
13062
|
}
|
|
12670
|
-
const
|
|
12671
|
-
return
|
|
13063
|
+
const query2 = searchParams.toString();
|
|
13064
|
+
return query2 ? `?${query2}` : "";
|
|
12672
13065
|
}
|
|
12673
13066
|
var SupportRequestsApi = class extends BaseApiClient {
|
|
12674
13067
|
async listSupportRequests(params) {
|
|
@@ -13060,8 +13453,8 @@ function withFilters(params, options) {
|
|
|
13060
13453
|
return params;
|
|
13061
13454
|
}
|
|
13062
13455
|
function suffix(params) {
|
|
13063
|
-
const
|
|
13064
|
-
return
|
|
13456
|
+
const query2 = params.toString();
|
|
13457
|
+
return query2 ? `?${query2}` : "";
|
|
13065
13458
|
}
|
|
13066
13459
|
var TrackedLinksApi = class extends BaseApiClient {
|
|
13067
13460
|
/** Header counters plus whether shortening is configured and enabled. */
|
|
@@ -13194,8 +13587,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13194
13587
|
* for is the state it is in.
|
|
13195
13588
|
*/
|
|
13196
13589
|
async deleteJourneyDraft(wid, journeyId, expectedUpdatedAt) {
|
|
13197
|
-
const
|
|
13198
|
-
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${
|
|
13590
|
+
const query2 = new URLSearchParams({ expectedUpdatedAt });
|
|
13591
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query2.toString()}`, {
|
|
13199
13592
|
method: "DELETE"
|
|
13200
13593
|
});
|
|
13201
13594
|
}
|
|
@@ -13206,11 +13599,13 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13206
13599
|
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
13207
13600
|
*/
|
|
13208
13601
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
13209
|
-
const
|
|
13210
|
-
if (includeArchived)
|
|
13211
|
-
if (pageOpts?.
|
|
13212
|
-
if (pageOpts?.
|
|
13213
|
-
|
|
13602
|
+
const query2 = new URLSearchParams();
|
|
13603
|
+
if (includeArchived) query2.set("include_archived", "true");
|
|
13604
|
+
if (pageOpts?.search) query2.set("search", pageOpts.search);
|
|
13605
|
+
if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
|
|
13606
|
+
if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
|
|
13607
|
+
if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
|
|
13608
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
13214
13609
|
return this.fetch(`w/${wid}/journeys${qs}`);
|
|
13215
13610
|
}
|
|
13216
13611
|
/**
|
|
@@ -13336,9 +13731,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13336
13731
|
* `additionalMembers` is the size of a batch about to be enrolled.
|
|
13337
13732
|
*/
|
|
13338
13733
|
async getJourneySendEstimate(wid, journeyId, additionalMembers = 0) {
|
|
13339
|
-
const
|
|
13734
|
+
const query2 = new URLSearchParams({ additionalMembers: String(additionalMembers) });
|
|
13340
13735
|
return this.fetch(
|
|
13341
|
-
`w/${wid}/journeys/${journeyId}/send-estimate?${
|
|
13736
|
+
`w/${wid}/journeys/${journeyId}/send-estimate?${query2.toString()}`
|
|
13342
13737
|
);
|
|
13343
13738
|
}
|
|
13344
13739
|
/** Create a step within a journey. */
|
|
@@ -13427,9 +13822,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13427
13822
|
qs.set("currentTaskId", String(params.currentTaskId));
|
|
13428
13823
|
if (params?.runtimeFailureEdgeId !== void 0)
|
|
13429
13824
|
qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
|
|
13430
|
-
const
|
|
13825
|
+
const query2 = qs.toString();
|
|
13431
13826
|
return this.fetch(
|
|
13432
|
-
`w/${wid}/journeys/${journeyId}/members${
|
|
13827
|
+
`w/${wid}/journeys/${journeyId}/members${query2 ? `?${query2}` : ""}`
|
|
13433
13828
|
);
|
|
13434
13829
|
}
|
|
13435
13830
|
/** Enroll one or more members in a journey. */
|
|
@@ -13488,9 +13883,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13488
13883
|
if (params.zeroEmissionOnly !== void 0) {
|
|
13489
13884
|
qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
|
|
13490
13885
|
}
|
|
13491
|
-
const
|
|
13886
|
+
const query2 = qs.toString();
|
|
13492
13887
|
return this.fetch(
|
|
13493
|
-
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (
|
|
13888
|
+
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query2 ? `?${query2}` : "")
|
|
13494
13889
|
);
|
|
13495
13890
|
}
|
|
13496
13891
|
/** List members currently or historically associated with one journey step. */
|
|
@@ -13500,9 +13895,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13500
13895
|
if (params.mode) qs.set("mode", params.mode);
|
|
13501
13896
|
if (params.page) qs.set("page", String(params.page));
|
|
13502
13897
|
if (params.pageSize) qs.set("pageSize", String(params.pageSize));
|
|
13503
|
-
const
|
|
13898
|
+
const query2 = qs.toString();
|
|
13504
13899
|
return this.fetch(
|
|
13505
|
-
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${
|
|
13900
|
+
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query2 ? `?${query2}` : ""}`
|
|
13506
13901
|
);
|
|
13507
13902
|
}
|
|
13508
13903
|
/** Get member counts by status for each journey step. */
|
|
@@ -13564,6 +13959,12 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
13564
13959
|
|
|
13565
13960
|
// src/api/workflows.ts
|
|
13566
13961
|
var WorkflowsApi = class extends BaseApiClient {
|
|
13962
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
13963
|
+
const body = new FormData();
|
|
13964
|
+
body.append("file", file, relativePath.split("/").pop());
|
|
13965
|
+
body.append("relativePath", relativePath);
|
|
13966
|
+
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
13967
|
+
}
|
|
13567
13968
|
/** List all workflows in a workspace, optionally including archived ones. */
|
|
13568
13969
|
async getWorkflows(wid, options = {}) {
|
|
13569
13970
|
const params = new URLSearchParams();
|
|
@@ -13612,8 +14013,8 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
13612
14013
|
* portion so the active count can be derived.
|
|
13613
14014
|
*/
|
|
13614
14015
|
async getWorkflowDiagram(wid, id, options = {}) {
|
|
13615
|
-
const
|
|
13616
|
-
return this.fetch(`w/${wid}/workflows/${id}/diagram${
|
|
14016
|
+
const query2 = options.includeArchived ? "?include_archived=true" : "";
|
|
14017
|
+
return this.fetch(`w/${wid}/workflows/${id}/diagram${query2}`);
|
|
13617
14018
|
}
|
|
13618
14019
|
/**
|
|
13619
14020
|
* The outline a Workflow's diagram is drawn from: its active Tasks, its
|
|
@@ -13927,36 +14328,36 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
13927
14328
|
};
|
|
13928
14329
|
|
|
13929
14330
|
// src/api/workflow-notes.ts
|
|
13930
|
-
function notesPath(wid, workflowId, noteId,
|
|
14331
|
+
function notesPath(wid, workflowId, noteId, query2) {
|
|
13931
14332
|
const base = noteId == null ? `w/${wid}/workflows/${workflowId}/notes` : `w/${wid}/workflows/${workflowId}/notes/${noteId}`;
|
|
13932
|
-
if (
|
|
14333
|
+
if (query2?.workflowRevisionId == null) return base;
|
|
13933
14334
|
const params = new URLSearchParams({
|
|
13934
|
-
workflowRevisionId: String(
|
|
14335
|
+
workflowRevisionId: String(query2.workflowRevisionId)
|
|
13935
14336
|
});
|
|
13936
14337
|
return `${base}?${params.toString()}`;
|
|
13937
14338
|
}
|
|
13938
14339
|
var WorkflowNotesApi = class extends BaseApiClient {
|
|
13939
14340
|
/** List notes for a workflow root (draft unless `workflowRevisionId` is set). */
|
|
13940
|
-
async getWorkflowNotes(wid, workflowId,
|
|
13941
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
14341
|
+
async getWorkflowNotes(wid, workflowId, query2) {
|
|
14342
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2));
|
|
13942
14343
|
}
|
|
13943
14344
|
/** Create a new note on a workflow's draft (or a pinned draft revision). */
|
|
13944
|
-
async createWorkflowNote(wid, workflowId, data,
|
|
13945
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
14345
|
+
async createWorkflowNote(wid, workflowId, data, query2) {
|
|
14346
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2), {
|
|
13946
14347
|
method: "POST",
|
|
13947
14348
|
body: JSON.stringify(data)
|
|
13948
14349
|
});
|
|
13949
14350
|
}
|
|
13950
14351
|
/** Update an existing workflow note with partial data. */
|
|
13951
|
-
async updateWorkflowNote(wid, workflowId, noteId, data,
|
|
13952
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
14352
|
+
async updateWorkflowNote(wid, workflowId, noteId, data, query2) {
|
|
14353
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
13953
14354
|
method: "PUT",
|
|
13954
14355
|
body: JSON.stringify(data)
|
|
13955
14356
|
});
|
|
13956
14357
|
}
|
|
13957
14358
|
/** Delete a workflow note by ID. */
|
|
13958
|
-
async deleteWorkflowNote(wid, workflowId, noteId,
|
|
13959
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
14359
|
+
async deleteWorkflowNote(wid, workflowId, noteId, query2) {
|
|
14360
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
13960
14361
|
method: "DELETE"
|
|
13961
14362
|
});
|
|
13962
14363
|
}
|
|
@@ -14324,19 +14725,12 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
14324
14725
|
}
|
|
14325
14726
|
/** List client workspaces managed by this reseller workspace, paginated. */
|
|
14326
14727
|
async getResellerWorkspaces(wid, params) {
|
|
14327
|
-
const
|
|
14328
|
-
if (params?.page !== void 0)
|
|
14329
|
-
if (params?.pageSize !== void 0)
|
|
14330
|
-
const qs =
|
|
14728
|
+
const query2 = new URLSearchParams();
|
|
14729
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
14730
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
14731
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
14331
14732
|
return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
|
|
14332
14733
|
}
|
|
14333
|
-
/** Create a new client workspace under a reseller workspace. */
|
|
14334
|
-
async createClientWorkspace(wid, data) {
|
|
14335
|
-
return this.fetch(`w/${wid}/reseller/workspaces`, {
|
|
14336
|
-
method: "POST",
|
|
14337
|
-
body: JSON.stringify(data)
|
|
14338
|
-
});
|
|
14339
|
-
}
|
|
14340
14734
|
/** Get a single client workspace by ID. */
|
|
14341
14735
|
async getClientWorkspace(wid, workspaceId) {
|
|
14342
14736
|
return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
|
|
@@ -14446,7 +14840,9 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
14446
14840
|
searchParams.set("revision_mode", "active");
|
|
14447
14841
|
}
|
|
14448
14842
|
const qs = searchParams.toString();
|
|
14449
|
-
const data = await this.fetch(
|
|
14843
|
+
const data = await this.fetch(
|
|
14844
|
+
`w/${wid}/export${qs ? `?${qs}` : ""}`
|
|
14845
|
+
);
|
|
14450
14846
|
this.verifyExportSelection(data, workflowId, options);
|
|
14451
14847
|
return data;
|
|
14452
14848
|
}
|
|
@@ -14737,6 +15133,81 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
14737
15133
|
}
|
|
14738
15134
|
};
|
|
14739
15135
|
|
|
15136
|
+
// src/api/medical-billing.ts
|
|
15137
|
+
function query(params) {
|
|
15138
|
+
const values = new URLSearchParams();
|
|
15139
|
+
if (params?.after != null) values.set("after", String(params.after));
|
|
15140
|
+
if (params?.limit != null) values.set("limit", String(params.limit));
|
|
15141
|
+
if (params?.memberId != null) values.set("member_id", String(params.memberId));
|
|
15142
|
+
if (params?.connectionId != null) values.set("connection_id", String(params.connectionId));
|
|
15143
|
+
return values.size ? `?${values}` : "";
|
|
15144
|
+
}
|
|
15145
|
+
var MedicalBillingApi = class extends BaseApiClient {
|
|
15146
|
+
listMedicalBillingConnections(wid) {
|
|
15147
|
+
return this.fetch(`w/${wid}/medical-billing/connections`);
|
|
15148
|
+
}
|
|
15149
|
+
submitMedicalClaim(wid, body) {
|
|
15150
|
+
return this.fetch(`w/${wid}/medical-billing/claim-submissions`, {
|
|
15151
|
+
method: "POST",
|
|
15152
|
+
body: JSON.stringify(body)
|
|
15153
|
+
});
|
|
15154
|
+
}
|
|
15155
|
+
listMedicalBillingProviders(wid, params) {
|
|
15156
|
+
return this.fetch(`w/${wid}/medical-billing/providers${query(params)}`);
|
|
15157
|
+
}
|
|
15158
|
+
listMedicalCoverages(wid, params) {
|
|
15159
|
+
return this.fetch(`w/${wid}/medical-billing/coverages${query(params)}`);
|
|
15160
|
+
}
|
|
15161
|
+
createMedicalCoverage(wid, body) {
|
|
15162
|
+
return this.fetch(`w/${wid}/medical-billing/coverages`, {
|
|
15163
|
+
method: "POST",
|
|
15164
|
+
body: JSON.stringify(body)
|
|
15165
|
+
});
|
|
15166
|
+
}
|
|
15167
|
+
updateMedicalCoverage(wid, id, body) {
|
|
15168
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}`, {
|
|
15169
|
+
method: "PATCH",
|
|
15170
|
+
body: JSON.stringify(body)
|
|
15171
|
+
});
|
|
15172
|
+
}
|
|
15173
|
+
setMedicalPayerRoute(wid, id, body) {
|
|
15174
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}/payer-routes`, {
|
|
15175
|
+
method: "POST",
|
|
15176
|
+
body: JSON.stringify(body)
|
|
15177
|
+
});
|
|
15178
|
+
}
|
|
15179
|
+
listMedicalCharges(wid, params) {
|
|
15180
|
+
return this.fetch(`w/${wid}/medical-billing/charges${query(params)}`);
|
|
15181
|
+
}
|
|
15182
|
+
createMedicalCharge(wid, body) {
|
|
15183
|
+
return this.fetch(`w/${wid}/medical-billing/charges`, {
|
|
15184
|
+
method: "POST",
|
|
15185
|
+
body: JSON.stringify(body)
|
|
15186
|
+
});
|
|
15187
|
+
}
|
|
15188
|
+
updateMedicalCharge(wid, id, body) {
|
|
15189
|
+
return this.fetch(`w/${wid}/medical-billing/charges/${id}`, {
|
|
15190
|
+
method: "PATCH",
|
|
15191
|
+
body: JSON.stringify(body)
|
|
15192
|
+
});
|
|
15193
|
+
}
|
|
15194
|
+
listMedicalClaims(wid, params) {
|
|
15195
|
+
return this.fetch(`w/${wid}/medical-billing/claims${query(params)}`);
|
|
15196
|
+
}
|
|
15197
|
+
getMedicalClaim(wid, id) {
|
|
15198
|
+
return this.fetch(`w/${wid}/medical-billing/claims/${encodeURIComponent(id)}`);
|
|
15199
|
+
}
|
|
15200
|
+
listMedicalEligibilityChecks(wid, params) {
|
|
15201
|
+
return this.fetch(`w/${wid}/medical-billing/eligibility-checks${query(params)}`);
|
|
15202
|
+
}
|
|
15203
|
+
listMedicalRemittances(wid, params) {
|
|
15204
|
+
return this.fetch(`w/${wid}/medical-billing/remittances${query(params)}`);
|
|
15205
|
+
}
|
|
15206
|
+
getMedicalRemittance(wid, id) {
|
|
15207
|
+
return this.fetch(`w/${wid}/medical-billing/remittances/${id}`);
|
|
15208
|
+
}
|
|
15209
|
+
};
|
|
15210
|
+
|
|
14740
15211
|
// src/client/api-modules.ts
|
|
14741
15212
|
function createApiModules(apiKey, baseUrl, customFetch) {
|
|
14742
15213
|
return {
|
|
@@ -14772,6 +15243,8 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
14772
15243
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
14773
15244
|
documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
|
|
14774
15245
|
claimMd: new ClaimMdApi(apiKey, baseUrl, customFetch),
|
|
15246
|
+
stedi: new StediApi(apiKey, baseUrl, customFetch),
|
|
15247
|
+
medicalBilling: new MedicalBillingApi(apiKey, baseUrl, customFetch),
|
|
14775
15248
|
hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
|
|
14776
15249
|
features: new FeaturesApi(apiKey, baseUrl, customFetch),
|
|
14777
15250
|
files: new FilesApi(apiKey, baseUrl, customFetch),
|
|
@@ -14836,6 +15309,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14836
15309
|
"archiveMemberByExternalId",
|
|
14837
15310
|
"archiveMemberRelationship",
|
|
14838
15311
|
"archivePersona",
|
|
15312
|
+
"archiveInbox",
|
|
14839
15313
|
"archivePhoneNumber",
|
|
14840
15314
|
"archiveStep",
|
|
14841
15315
|
"archiveTask",
|
|
@@ -14909,7 +15383,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14909
15383
|
"createChatCompletion",
|
|
14910
15384
|
"createChatFilter",
|
|
14911
15385
|
"createChatLabel",
|
|
14912
|
-
"createClientWorkspace",
|
|
14913
15386
|
"createConnection",
|
|
14914
15387
|
"createContactPermission",
|
|
14915
15388
|
"createCustomTool",
|
|
@@ -15117,6 +15590,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15117
15590
|
"getApiKeys",
|
|
15118
15591
|
"getArchiveBlockers",
|
|
15119
15592
|
"getAthenaPlatformApp",
|
|
15593
|
+
"getFhirConnectionSyncConfig",
|
|
15120
15594
|
"getAssignment",
|
|
15121
15595
|
"getAssignmentCelContext",
|
|
15122
15596
|
"getAssignmentMessages",
|
|
@@ -15175,7 +15649,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15175
15649
|
"getChats",
|
|
15176
15650
|
"getChatsDailyCreationStats",
|
|
15177
15651
|
"getChatsNeedsResponse",
|
|
15178
|
-
"getChildThreadMessages",
|
|
15179
15652
|
"getClientWorkspace",
|
|
15180
15653
|
"getConfigurationHealth",
|
|
15181
15654
|
"getConfluenceStatus",
|
|
@@ -15217,11 +15690,27 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15217
15690
|
"getDevices",
|
|
15218
15691
|
"getDiscordBot",
|
|
15219
15692
|
"getDiscordBotAccounts",
|
|
15220
|
-
"getDiscordBotByUuid",
|
|
15221
15693
|
"getDiscordBots",
|
|
15222
15694
|
"getDiscordGuilds",
|
|
15223
15695
|
"getDiscordThreads",
|
|
15224
15696
|
"getClaimMdStatus",
|
|
15697
|
+
"listMedicalBillingConnections",
|
|
15698
|
+
"submitMedicalClaim",
|
|
15699
|
+
"listMedicalBillingProviders",
|
|
15700
|
+
"listMedicalCoverages",
|
|
15701
|
+
"createMedicalCoverage",
|
|
15702
|
+
"updateMedicalCoverage",
|
|
15703
|
+
"setMedicalPayerRoute",
|
|
15704
|
+
"listMedicalCharges",
|
|
15705
|
+
"createMedicalCharge",
|
|
15706
|
+
"updateMedicalCharge",
|
|
15707
|
+
"listMedicalClaims",
|
|
15708
|
+
"getMedicalClaim",
|
|
15709
|
+
"listMedicalEligibilityChecks",
|
|
15710
|
+
"listMedicalRemittances",
|
|
15711
|
+
"getMedicalRemittance",
|
|
15712
|
+
"getStediConnections",
|
|
15713
|
+
"getStediConnectionStatus",
|
|
15225
15714
|
"getDocumoFaxSetup",
|
|
15226
15715
|
"listDocumoFaxes",
|
|
15227
15716
|
"getDocumoFaxStatus",
|
|
@@ -15247,6 +15736,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15247
15736
|
"getQueryFields",
|
|
15248
15737
|
"getSiteSharing",
|
|
15249
15738
|
"getSiteSource",
|
|
15739
|
+
"getSiteSourceReleases",
|
|
15250
15740
|
"getSiteSourceTemplates",
|
|
15251
15741
|
"getThemeSettings",
|
|
15252
15742
|
"importSiteSourceZip",
|
|
@@ -15303,6 +15793,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15303
15793
|
"getInbox",
|
|
15304
15794
|
"getInboxEmail",
|
|
15305
15795
|
"getInboxEmails",
|
|
15796
|
+
"getInboxArchiveBlockers",
|
|
15306
15797
|
"getInboxOutboundEmailStats",
|
|
15307
15798
|
"getInboxThreads",
|
|
15308
15799
|
"getInboxes",
|
|
@@ -15378,6 +15869,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15378
15869
|
"getPhoneCalls",
|
|
15379
15870
|
"getPhoneCallByUuid",
|
|
15380
15871
|
"getPhoneNumber",
|
|
15872
|
+
"getPhoneNumberActivity",
|
|
15381
15873
|
"getPhoneNumberCalls",
|
|
15382
15874
|
"getPhoneNumberFaxes",
|
|
15383
15875
|
"getPhoneNumberMessages",
|
|
@@ -15431,6 +15923,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15431
15923
|
"getSupervisor",
|
|
15432
15924
|
"getSupervisors",
|
|
15433
15925
|
"getSyncRunItems",
|
|
15926
|
+
"getSyncRunItemsPage",
|
|
15434
15927
|
"getSyncRuns",
|
|
15435
15928
|
"getTask",
|
|
15436
15929
|
"getTaskChats",
|
|
@@ -15553,6 +16046,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
15553
16046
|
"deleteMetric",
|
|
15554
16047
|
"listMetricObservations",
|
|
15555
16048
|
"getMetricSeries",
|
|
16049
|
+
"getMetricSeriesBatch",
|
|
15556
16050
|
"computeChatMetrics",
|
|
15557
16051
|
"listPushSubscriptions",
|
|
15558
16052
|
"listResourceWorkflows",
|
|
@@ -15883,7 +16377,6 @@ function bindChatsMethods(target, chats) {
|
|
|
15883
16377
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
15884
16378
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
15885
16379
|
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
15886
|
-
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
15887
16380
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
15888
16381
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
15889
16382
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -16124,7 +16617,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
16124
16617
|
target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
|
|
16125
16618
|
target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
|
|
16126
16619
|
target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
|
|
16127
|
-
target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
|
|
16128
16620
|
target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
|
|
16129
16621
|
target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
|
|
16130
16622
|
target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
|
|
@@ -16181,6 +16673,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
16181
16673
|
|
|
16182
16674
|
// src/client/bindings/auth.ts
|
|
16183
16675
|
function bindAuthMethods(target, auth, assignments) {
|
|
16676
|
+
target.getAccountNotices = auth.getAccountNotices.bind(auth);
|
|
16677
|
+
target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
|
|
16678
|
+
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
16184
16679
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
16185
16680
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
16186
16681
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
@@ -16242,6 +16737,11 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
16242
16737
|
|
|
16243
16738
|
// src/client/bindings/sites.ts
|
|
16244
16739
|
function bindSitesMethods(target, sites) {
|
|
16740
|
+
target.endPublicDemo = sites.endPublicDemo.bind(sites);
|
|
16741
|
+
target.startPublicDemo = sites.startPublicDemo.bind(sites);
|
|
16742
|
+
target.getPublicDemo = sites.getPublicDemo.bind(sites);
|
|
16743
|
+
target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
|
|
16744
|
+
target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
|
|
16245
16745
|
target.getSites = sites.getSites.bind(sites);
|
|
16246
16746
|
target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
|
|
16247
16747
|
target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
|
|
@@ -16249,6 +16749,7 @@ function bindSitesMethods(target, sites) {
|
|
|
16249
16749
|
target.getSiteSharing = sites.getSiteSharing.bind(sites);
|
|
16250
16750
|
target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
|
|
16251
16751
|
target.getSiteSource = sites.getSiteSource.bind(sites);
|
|
16752
|
+
target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
|
|
16252
16753
|
target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
|
|
16253
16754
|
target.createSiteSource = sites.createSiteSource.bind(sites);
|
|
16254
16755
|
target.buildSiteSource = sites.buildSiteSource.bind(sites);
|
|
@@ -16309,6 +16810,8 @@ function bindFilesMethods(target, files) {
|
|
|
16309
16810
|
target.createFolder = files.createFolder.bind(files);
|
|
16310
16811
|
target.updateFolder = files.updateFolder.bind(files);
|
|
16311
16812
|
target.deleteFolder = files.deleteFolder.bind(files);
|
|
16813
|
+
target.reindexFile = files.reindexFile.bind(files);
|
|
16814
|
+
target.searchFile = files.searchFile.bind(files);
|
|
16312
16815
|
target.reindexFolder = files.reindexFolder.bind(files);
|
|
16313
16816
|
target.searchFolder = files.searchFolder.bind(files);
|
|
16314
16817
|
target.getFileLabels = files.getFileLabels.bind(files);
|
|
@@ -16396,6 +16899,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
16396
16899
|
target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
|
|
16397
16900
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
16398
16901
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
16902
|
+
target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
|
|
16399
16903
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
16400
16904
|
target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
|
|
16401
16905
|
target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
|
|
@@ -16487,6 +16991,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
16487
16991
|
target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
|
|
16488
16992
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
16489
16993
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
16994
|
+
target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
|
|
16490
16995
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
16491
16996
|
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
16492
16997
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
@@ -16500,6 +17005,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
16500
17005
|
target.createInbox = inboxes.createInbox.bind(inboxes);
|
|
16501
17006
|
target.updateInbox = inboxes.updateInbox.bind(inboxes);
|
|
16502
17007
|
target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
|
|
17008
|
+
target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
|
|
17009
|
+
target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
|
|
16503
17010
|
target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
|
|
16504
17011
|
target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
|
|
16505
17012
|
target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
|
|
@@ -16631,7 +17138,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
16631
17138
|
}
|
|
16632
17139
|
|
|
16633
17140
|
// src/client/bindings/integrations.ts
|
|
16634
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
17141
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, stedi, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
16635
17142
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
16636
17143
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
16637
17144
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
@@ -16661,7 +17168,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
16661
17168
|
target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
|
|
16662
17169
|
target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
|
|
16663
17170
|
target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
|
|
16664
|
-
target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
|
|
16665
17171
|
target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
|
|
16666
17172
|
target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
|
|
16667
17173
|
target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
|
|
@@ -16726,6 +17232,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
16726
17232
|
target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
|
|
16727
17233
|
target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
|
|
16728
17234
|
target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
|
|
17235
|
+
target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
|
|
16729
17236
|
target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
|
|
16730
17237
|
target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
|
|
16731
17238
|
target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
|
|
@@ -16743,6 +17250,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
16743
17250
|
target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
|
|
16744
17251
|
target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
|
|
16745
17252
|
target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
|
|
17253
|
+
target.getStediConnections = stedi.getStediConnections.bind(stedi);
|
|
17254
|
+
target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
|
|
16746
17255
|
target.configureHealthie = healthie.configureHealthie.bind(healthie);
|
|
16747
17256
|
target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
|
|
16748
17257
|
target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
|
|
@@ -16818,6 +17327,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
16818
17327
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
16819
17328
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
16820
17329
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
17330
|
+
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
16821
17331
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
16822
17332
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
16823
17333
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
@@ -16864,6 +17374,13 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
16864
17374
|
|
|
16865
17375
|
// src/client/bindings/org.ts
|
|
16866
17376
|
function bindOrgMethods(target, org) {
|
|
17377
|
+
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
17378
|
+
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
17379
|
+
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
17380
|
+
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
17381
|
+
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
17382
|
+
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
17383
|
+
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
16867
17384
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
16868
17385
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
16869
17386
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -17077,6 +17594,7 @@ function bindMetricsMethods(target, metrics) {
|
|
|
17077
17594
|
target.deleteMetric = metrics.deleteMetric.bind(metrics);
|
|
17078
17595
|
target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
|
|
17079
17596
|
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
17597
|
+
target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
|
|
17080
17598
|
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
17081
17599
|
}
|
|
17082
17600
|
|
|
@@ -17160,6 +17678,21 @@ var GravityRailClient = class {
|
|
|
17160
17678
|
// WorkspaceInvitations is exposed publicly for backward compatibility
|
|
17161
17679
|
workspaceInvitations;
|
|
17162
17680
|
// Store all API modules for cross-cutting operations
|
|
17681
|
+
listMedicalBillingProviders;
|
|
17682
|
+
listMedicalCoverages;
|
|
17683
|
+
createMedicalCoverage;
|
|
17684
|
+
updateMedicalCoverage;
|
|
17685
|
+
setMedicalPayerRoute;
|
|
17686
|
+
listMedicalCharges;
|
|
17687
|
+
createMedicalCharge;
|
|
17688
|
+
updateMedicalCharge;
|
|
17689
|
+
listMedicalClaims;
|
|
17690
|
+
getMedicalClaim;
|
|
17691
|
+
listMedicalEligibilityChecks;
|
|
17692
|
+
listMedicalRemittances;
|
|
17693
|
+
getMedicalRemittance;
|
|
17694
|
+
listMedicalBillingConnections;
|
|
17695
|
+
submitMedicalClaim;
|
|
17163
17696
|
apis;
|
|
17164
17697
|
// Tasks API
|
|
17165
17698
|
getTasks;
|
|
@@ -17211,7 +17744,6 @@ var GravityRailClient = class {
|
|
|
17211
17744
|
summarizeChat;
|
|
17212
17745
|
getChatMessages;
|
|
17213
17746
|
getChatTaskTransitions;
|
|
17214
|
-
getChildThreadMessages;
|
|
17215
17747
|
getChatToolCallMessages;
|
|
17216
17748
|
getChatTools;
|
|
17217
17749
|
initiateOutboundCall;
|
|
@@ -17419,6 +17951,7 @@ var GravityRailClient = class {
|
|
|
17419
17951
|
deleteMetric;
|
|
17420
17952
|
listMetricObservations;
|
|
17421
17953
|
getMetricSeries;
|
|
17954
|
+
getMetricSeriesBatch;
|
|
17422
17955
|
computeChatMetrics;
|
|
17423
17956
|
// Dashboards API
|
|
17424
17957
|
getDashboards;
|
|
@@ -17612,7 +18145,6 @@ var GravityRailClient = class {
|
|
|
17612
18145
|
dismissNotification;
|
|
17613
18146
|
dismissAllNotifications;
|
|
17614
18147
|
getResellerWorkspaces;
|
|
17615
|
-
createClientWorkspace;
|
|
17616
18148
|
getClientWorkspace;
|
|
17617
18149
|
updateClientWorkspace;
|
|
17618
18150
|
deleteClientWorkspace;
|
|
@@ -17648,6 +18180,13 @@ var GravityRailClient = class {
|
|
|
17648
18180
|
upsertWidgetDomain;
|
|
17649
18181
|
deleteWidgetDomain;
|
|
17650
18182
|
// Org API
|
|
18183
|
+
getOrgManagerCredentialResponse;
|
|
18184
|
+
authorizeOrgManagerDelegation;
|
|
18185
|
+
getOrgManagerChats;
|
|
18186
|
+
createOrgManagerChat;
|
|
18187
|
+
getOrgManagerMessages;
|
|
18188
|
+
startOrgManagerTurn;
|
|
18189
|
+
stopOrgManagerTurn;
|
|
17651
18190
|
listOrgDomains;
|
|
17652
18191
|
registerOrgDomain;
|
|
17653
18192
|
getOrgDomain;
|
|
@@ -17722,6 +18261,9 @@ var GravityRailClient = class {
|
|
|
17722
18261
|
declineInvitation;
|
|
17723
18262
|
// Auth API
|
|
17724
18263
|
getUserAccount;
|
|
18264
|
+
getAccountNotices;
|
|
18265
|
+
viewAccountNotice;
|
|
18266
|
+
dismissAccountNotice;
|
|
17725
18267
|
updateUserAccount;
|
|
17726
18268
|
recordAcquisition;
|
|
17727
18269
|
login;
|
|
@@ -17779,6 +18321,11 @@ var GravityRailClient = class {
|
|
|
17779
18321
|
getAssignmentTools;
|
|
17780
18322
|
executeAssignmentTool;
|
|
17781
18323
|
// Sites API
|
|
18324
|
+
startPublicDemo;
|
|
18325
|
+
endPublicDemo;
|
|
18326
|
+
getPublicDemo;
|
|
18327
|
+
sendPublicDemoMessage;
|
|
18328
|
+
submitPublicDemoForm;
|
|
17782
18329
|
getSites;
|
|
17783
18330
|
checkSiteSlugAvailability;
|
|
17784
18331
|
checkSiteDomainAvailability;
|
|
@@ -17786,6 +18333,7 @@ var GravityRailClient = class {
|
|
|
17786
18333
|
getSiteSharing;
|
|
17787
18334
|
updateSiteSharing;
|
|
17788
18335
|
getSiteSource;
|
|
18336
|
+
getSiteSourceReleases;
|
|
17789
18337
|
getSiteSourceTemplates;
|
|
17790
18338
|
createSiteSource;
|
|
17791
18339
|
buildSiteSource;
|
|
@@ -17848,6 +18396,8 @@ var GravityRailClient = class {
|
|
|
17848
18396
|
createFolder;
|
|
17849
18397
|
updateFolder;
|
|
17850
18398
|
deleteFolder;
|
|
18399
|
+
reindexFile;
|
|
18400
|
+
searchFile;
|
|
17851
18401
|
reindexFolder;
|
|
17852
18402
|
searchFolder;
|
|
17853
18403
|
getFileLabels;
|
|
@@ -17904,6 +18454,7 @@ var GravityRailClient = class {
|
|
|
17904
18454
|
getWorkflowsOutlineBatch;
|
|
17905
18455
|
createWorkflow;
|
|
17906
18456
|
updateWorkflow;
|
|
18457
|
+
uploadWorkflowKnowledge;
|
|
17907
18458
|
getWorkflowDeletionPreview;
|
|
17908
18459
|
deleteWorkflow;
|
|
17909
18460
|
archiveWorkflow;
|
|
@@ -17989,6 +18540,7 @@ var GravityRailClient = class {
|
|
|
17989
18540
|
getPhoneNumberOutboundAnalyticsSummary;
|
|
17990
18541
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
17991
18542
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
18543
|
+
getPhoneNumberActivity;
|
|
17992
18544
|
getPhoneNumberMessages;
|
|
17993
18545
|
getPhoneNumberFaxes;
|
|
17994
18546
|
getPhoneNumberVoicemails;
|
|
@@ -18002,6 +18554,8 @@ var GravityRailClient = class {
|
|
|
18002
18554
|
createInbox;
|
|
18003
18555
|
updateInbox;
|
|
18004
18556
|
deleteInbox;
|
|
18557
|
+
archiveInbox;
|
|
18558
|
+
getInboxArchiveBlockers;
|
|
18005
18559
|
getInboxEmails;
|
|
18006
18560
|
getInboxEmail;
|
|
18007
18561
|
markEmailAsRead;
|
|
@@ -18160,7 +18714,6 @@ var GravityRailClient = class {
|
|
|
18160
18714
|
// Discord Bots API
|
|
18161
18715
|
getDiscordBots;
|
|
18162
18716
|
getDiscordBot;
|
|
18163
|
-
getDiscordBotByUuid;
|
|
18164
18717
|
createDiscordBot;
|
|
18165
18718
|
updateDiscordBot;
|
|
18166
18719
|
deleteDiscordBot;
|
|
@@ -18228,6 +18781,7 @@ var GravityRailClient = class {
|
|
|
18228
18781
|
fhirGetEncounterSyncRuns;
|
|
18229
18782
|
fhirRefreshEncounterPatient;
|
|
18230
18783
|
fhirBackfillEncounterSync;
|
|
18784
|
+
getFhirConnectionSyncConfig;
|
|
18231
18785
|
getAthenaPlatformApp;
|
|
18232
18786
|
verifyAthenaAccess;
|
|
18233
18787
|
connectAthena;
|
|
@@ -18243,6 +18797,8 @@ var GravityRailClient = class {
|
|
|
18243
18797
|
installClaimMd;
|
|
18244
18798
|
configureClaimMd;
|
|
18245
18799
|
verifyClaimMdKey;
|
|
18800
|
+
getStediConnections;
|
|
18801
|
+
getStediConnectionStatus;
|
|
18246
18802
|
configurePatientSync;
|
|
18247
18803
|
getPatientSyncStatus;
|
|
18248
18804
|
deletePatientSyncConnection;
|
|
@@ -18325,6 +18881,7 @@ var GravityRailClient = class {
|
|
|
18325
18881
|
startSyncRun;
|
|
18326
18882
|
getSyncRuns;
|
|
18327
18883
|
getSyncRunItems;
|
|
18884
|
+
getSyncRunItemsPage;
|
|
18328
18885
|
getMemberSyncSummary;
|
|
18329
18886
|
getConnectionFieldHomes;
|
|
18330
18887
|
getInboundRecordStatus;
|
|
@@ -18415,6 +18972,39 @@ var GravityRailClient = class {
|
|
|
18415
18972
|
constructor(apiKey, baseUrl, customFetch) {
|
|
18416
18973
|
const apis = createApiModules(apiKey, baseUrl, customFetch);
|
|
18417
18974
|
this.apis = apis;
|
|
18975
|
+
this.listMedicalBillingConnections = apis.medicalBilling.listMedicalBillingConnections.bind(
|
|
18976
|
+
apis.medicalBilling
|
|
18977
|
+
);
|
|
18978
|
+
this.submitMedicalClaim = apis.medicalBilling.submitMedicalClaim.bind(apis.medicalBilling);
|
|
18979
|
+
this.listMedicalBillingProviders = apis.medicalBilling.listMedicalBillingProviders.bind(
|
|
18980
|
+
apis.medicalBilling
|
|
18981
|
+
);
|
|
18982
|
+
this.listMedicalCoverages = apis.medicalBilling.listMedicalCoverages.bind(
|
|
18983
|
+
apis.medicalBilling
|
|
18984
|
+
);
|
|
18985
|
+
this.createMedicalCoverage = apis.medicalBilling.createMedicalCoverage.bind(
|
|
18986
|
+
apis.medicalBilling
|
|
18987
|
+
);
|
|
18988
|
+
this.updateMedicalCoverage = apis.medicalBilling.updateMedicalCoverage.bind(
|
|
18989
|
+
apis.medicalBilling
|
|
18990
|
+
);
|
|
18991
|
+
this.setMedicalPayerRoute = apis.medicalBilling.setMedicalPayerRoute.bind(
|
|
18992
|
+
apis.medicalBilling
|
|
18993
|
+
);
|
|
18994
|
+
this.listMedicalCharges = apis.medicalBilling.listMedicalCharges.bind(apis.medicalBilling);
|
|
18995
|
+
this.createMedicalCharge = apis.medicalBilling.createMedicalCharge.bind(apis.medicalBilling);
|
|
18996
|
+
this.updateMedicalCharge = apis.medicalBilling.updateMedicalCharge.bind(apis.medicalBilling);
|
|
18997
|
+
this.listMedicalClaims = apis.medicalBilling.listMedicalClaims.bind(apis.medicalBilling);
|
|
18998
|
+
this.getMedicalClaim = apis.medicalBilling.getMedicalClaim.bind(apis.medicalBilling);
|
|
18999
|
+
this.listMedicalEligibilityChecks = apis.medicalBilling.listMedicalEligibilityChecks.bind(
|
|
19000
|
+
apis.medicalBilling
|
|
19001
|
+
);
|
|
19002
|
+
this.listMedicalRemittances = apis.medicalBilling.listMedicalRemittances.bind(
|
|
19003
|
+
apis.medicalBilling
|
|
19004
|
+
);
|
|
19005
|
+
this.getMedicalRemittance = apis.medicalBilling.getMedicalRemittance.bind(
|
|
19006
|
+
apis.medicalBilling
|
|
19007
|
+
);
|
|
18418
19008
|
this.workspaceInvitations = apis.workspaceInvitations;
|
|
18419
19009
|
bindTasksMethods(this, apis.tasks, apis.abilities);
|
|
18420
19010
|
bindChatsMethods(this, apis.chats);
|
|
@@ -18480,6 +19070,7 @@ var GravityRailClient = class {
|
|
|
18480
19070
|
apis.healthie,
|
|
18481
19071
|
apis.documoFax,
|
|
18482
19072
|
apis.claimMd,
|
|
19073
|
+
apis.stedi,
|
|
18483
19074
|
apis.salesforce,
|
|
18484
19075
|
apis.hubspot,
|
|
18485
19076
|
apis.appConnections,
|
|
@@ -18789,6 +19380,8 @@ function pathDraftToStorage(draft, original) {
|
|
|
18789
19380
|
EventRuleEventType,
|
|
18790
19381
|
EventRuleObjectType,
|
|
18791
19382
|
EventsApi,
|
|
19383
|
+
FaxDocumentRefusal,
|
|
19384
|
+
FaxRunRefusal,
|
|
18792
19385
|
FeatureCategory,
|
|
18793
19386
|
FeatureVisibility,
|
|
18794
19387
|
FeaturesApi,
|
|
@@ -18956,6 +19549,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
18956
19549
|
UpdateMemberContactPointRequestPurpose,
|
|
18957
19550
|
UpdateMemberContactPointRequestSharing,
|
|
18958
19551
|
VoiceApi,
|
|
19552
|
+
VoiceIntegrityUseCase,
|
|
18959
19553
|
WIDGET_SLUGS,
|
|
18960
19554
|
WorkflowNotesApi,
|
|
18961
19555
|
WorkflowRoutingMode,
|