@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
BaseApiClient
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RLFS7O2L.js";
|
|
5
5
|
|
|
6
6
|
// src/api/abilities.ts
|
|
7
7
|
var AbilitiesApi = class extends BaseApiClient {
|
|
@@ -103,13 +103,13 @@ var ResourceWorkflowsApi = class extends BaseApiClient {
|
|
|
103
103
|
* pin a Workflow item; archived Workflows are excluded unless asked for.
|
|
104
104
|
*/
|
|
105
105
|
async listResourceWorkflows(wid, params) {
|
|
106
|
-
const
|
|
107
|
-
if (params?.page !== void 0)
|
|
108
|
-
if (params?.pageSize !== void 0)
|
|
106
|
+
const query2 = new URLSearchParams();
|
|
107
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
108
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
109
109
|
if (params?.includeArchived !== void 0) {
|
|
110
|
-
|
|
110
|
+
query2.set("includeArchived", String(params.includeArchived));
|
|
111
111
|
}
|
|
112
|
-
const qs =
|
|
112
|
+
const qs = query2.toString();
|
|
113
113
|
return this.fetch(
|
|
114
114
|
`w/${encodeURIComponent(wid)}/resource-workflows${qs ? `?${qs}` : ""}`
|
|
115
115
|
);
|
|
@@ -123,10 +123,10 @@ function bundlesPath(wid, ...segments) {
|
|
|
123
123
|
return tail ? `${base}/${tail}` : base;
|
|
124
124
|
}
|
|
125
125
|
function pageQuery(params) {
|
|
126
|
-
const
|
|
127
|
-
if (params?.page !== void 0)
|
|
128
|
-
if (params?.pageSize !== void 0)
|
|
129
|
-
const qs =
|
|
126
|
+
const query2 = new URLSearchParams();
|
|
127
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
128
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
129
|
+
const qs = query2.toString();
|
|
130
130
|
return qs ? `?${qs}` : "";
|
|
131
131
|
}
|
|
132
132
|
var BundlesApi = class extends BaseApiClient {
|
|
@@ -320,9 +320,9 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
320
320
|
* between. `to` must be newer than the version the installation holds.
|
|
321
321
|
*/
|
|
322
322
|
async previewInstallationUpgrade(wid, installationUuid, to) {
|
|
323
|
-
const
|
|
323
|
+
const query2 = new URLSearchParams({ to: String(to) });
|
|
324
324
|
return this.fetch(
|
|
325
|
-
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${
|
|
325
|
+
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${query2.toString()}`
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
@@ -917,6 +917,18 @@ var AuthApi = class extends BaseApiClient {
|
|
|
917
917
|
async getUserAccount() {
|
|
918
918
|
return this.fetch("account");
|
|
919
919
|
}
|
|
920
|
+
/** Active, undismissed product notices for this account across workspaces. */
|
|
921
|
+
async getAccountNotices() {
|
|
922
|
+
return this.fetch("account/notices");
|
|
923
|
+
}
|
|
924
|
+
async viewAccountNotice(id) {
|
|
925
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/view`, { method: "PUT" });
|
|
926
|
+
}
|
|
927
|
+
async dismissAccountNotice(id) {
|
|
928
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/dismiss`, {
|
|
929
|
+
method: "PUT"
|
|
930
|
+
});
|
|
931
|
+
}
|
|
920
932
|
/** Update the authenticated user's account information. */
|
|
921
933
|
async updateUserAccount(info) {
|
|
922
934
|
return this.fetch("account", {
|
|
@@ -1513,9 +1525,9 @@ var CalendarsApi = class extends BaseApiClient {
|
|
|
1513
1525
|
const params = new URLSearchParams();
|
|
1514
1526
|
if (options?.page !== void 0) params.set("page", String(options.page));
|
|
1515
1527
|
if (options?.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
|
|
1516
|
-
const
|
|
1528
|
+
const query2 = params.size ? `?${params}` : "";
|
|
1517
1529
|
return this.fetch(
|
|
1518
|
-
`w/${wid}/calendar-event-types${
|
|
1530
|
+
`w/${wid}/calendar-event-types${query2}`
|
|
1519
1531
|
);
|
|
1520
1532
|
}
|
|
1521
1533
|
/** Get a single calendar event type by ID. */
|
|
@@ -2018,24 +2030,6 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2018
2030
|
`w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
|
|
2019
2031
|
);
|
|
2020
2032
|
}
|
|
2021
|
-
/** List the background-work thread hanging off a message.
|
|
2022
|
-
*
|
|
2023
|
-
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
2024
|
-
* background (ADR-11 / forked trajectories), writing its messages as a
|
|
2025
|
-
* child thread parented at the fork point. Main-history reads exclude
|
|
2026
|
-
* them, so this is how the "show work" affordance fetches them — lazily,
|
|
2027
|
-
* only when a message with a non-zero `childMessageCount` is expanded.
|
|
2028
|
-
* Returns the thread in chronological order, empty when there is none.
|
|
2029
|
-
*
|
|
2030
|
-
* `messageUuid` is the fork point's `ChatMessage.id`. */
|
|
2031
|
-
async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
|
|
2032
|
-
const params = new URLSearchParams();
|
|
2033
|
-
params.append("limit", limit.toString());
|
|
2034
|
-
params.append("offset", offset.toString());
|
|
2035
|
-
return this.fetch(
|
|
2036
|
-
`w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
|
|
2037
|
-
);
|
|
2038
|
-
}
|
|
2039
2033
|
/** List messages associated with a specific tool call in a chat. */
|
|
2040
2034
|
async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
|
|
2041
2035
|
const params = new URLSearchParams();
|
|
@@ -2258,9 +2252,9 @@ var ConfluenceApi = class extends BaseApiClient {
|
|
|
2258
2252
|
const qs = new URLSearchParams();
|
|
2259
2253
|
if (params?.cursor) qs.set("cursor", params.cursor);
|
|
2260
2254
|
if (params?.limit) qs.set("limit", String(params.limit));
|
|
2261
|
-
const
|
|
2255
|
+
const query2 = qs.toString();
|
|
2262
2256
|
return this.fetch(
|
|
2263
|
-
`w/${wid}/app-connections/confluence/spaces${
|
|
2257
|
+
`w/${wid}/app-connections/confluence/spaces${query2 ? `?${query2}` : ""}`
|
|
2264
2258
|
);
|
|
2265
2259
|
}
|
|
2266
2260
|
async listConfluencePages(wid, spaceId, params) {
|
|
@@ -2425,9 +2419,9 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
2425
2419
|
if (options?.beforeVersion !== void 0)
|
|
2426
2420
|
params.set("beforeVersion", String(options.beforeVersion));
|
|
2427
2421
|
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
2428
|
-
const
|
|
2422
|
+
const query2 = params.toString();
|
|
2429
2423
|
return this.fetch(
|
|
2430
|
-
`w/${wid}/data-types/${id}/schema-versions${
|
|
2424
|
+
`w/${wid}/data-types/${id}/schema-versions${query2 ? `?${query2}` : ""}`
|
|
2431
2425
|
);
|
|
2432
2426
|
}
|
|
2433
2427
|
/** List all data types for a workspace, optionally filtering by archived status. */
|
|
@@ -2702,12 +2696,6 @@ var DiscordBotsApi = class extends BaseApiClient {
|
|
|
2702
2696
|
async getDiscordBot(wid, botId) {
|
|
2703
2697
|
return this.fetch(`w/${wid}/app-connections/discord/bots/${botId}`);
|
|
2704
2698
|
}
|
|
2705
|
-
/**
|
|
2706
|
-
* Get a Discord bot by UUID.
|
|
2707
|
-
*/
|
|
2708
|
-
async getDiscordBotByUuid(wid, uuid) {
|
|
2709
|
-
return this.fetch(`w/${wid}/app-connections/discord/bots/uuid/${uuid}`);
|
|
2710
|
-
}
|
|
2711
2699
|
/**
|
|
2712
2700
|
* Create a new Discord bot configuration.
|
|
2713
2701
|
*/
|
|
@@ -2962,10 +2950,11 @@ var SlackAppsApi = class extends BaseApiClient {
|
|
|
2962
2950
|
var EventsApi = class extends BaseApiClient {
|
|
2963
2951
|
/** List event rules in the workspace, paginated. */
|
|
2964
2952
|
async getEventRules(wid, params) {
|
|
2965
|
-
const
|
|
2966
|
-
if (params?.
|
|
2967
|
-
if (params?.
|
|
2968
|
-
|
|
2953
|
+
const query2 = new URLSearchParams();
|
|
2954
|
+
if (params?.search) query2.set("search", params.search);
|
|
2955
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
2956
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
2957
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
2969
2958
|
return this.fetch(`w/${wid}/event-rules${qs}`);
|
|
2970
2959
|
}
|
|
2971
2960
|
/** Get the available action types that can be used in event rules. */
|
|
@@ -3226,6 +3215,22 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
3226
3215
|
async getFhirConnectionByUuid(wid, uuid) {
|
|
3227
3216
|
return this.fetch(`w/${wid}/app-connections/fhir/connections/uuid/${uuid}`);
|
|
3228
3217
|
}
|
|
3218
|
+
/**
|
|
3219
|
+
* The connection's sync configuration, with the eCW encounter-sync runtime
|
|
3220
|
+
* state (`connectionParams.ecwEncounterSyncState`) typed.
|
|
3221
|
+
*
|
|
3222
|
+
* This is the generic connector sync-config route (the same one
|
|
3223
|
+
* `ConnectionSyncApi.getConnectionSyncConfig` wraps), not a FHIR-only
|
|
3224
|
+
* path. It is the one read that still returns the encounter
|
|
3225
|
+
* watermark for a workspace whose eCW feature flag is off: the
|
|
3226
|
+
* encounter-sync status route is flag-gated, while this route requires
|
|
3227
|
+
* only `apps:read`.
|
|
3228
|
+
*/
|
|
3229
|
+
async getFhirConnectionSyncConfig(wid, connectionId) {
|
|
3230
|
+
return this.fetch(
|
|
3231
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
3232
|
+
);
|
|
3233
|
+
}
|
|
3229
3234
|
/**
|
|
3230
3235
|
* Create a new FHIR connection configuration.
|
|
3231
3236
|
*/
|
|
@@ -3405,11 +3410,11 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
3405
3410
|
}
|
|
3406
3411
|
// ==================== Member Sync ====================
|
|
3407
3412
|
async fhirListLinkedMembers(wid, connectionId, params) {
|
|
3408
|
-
const
|
|
3409
|
-
if (params?.page !== void 0)
|
|
3410
|
-
if (params?.pageSize !== void 0)
|
|
3411
|
-
if (params?.search?.trim())
|
|
3412
|
-
const qs =
|
|
3413
|
+
const query2 = new URLSearchParams();
|
|
3414
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3415
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3416
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
3417
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3413
3418
|
return this.fetch(
|
|
3414
3419
|
`w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members${qs}`
|
|
3415
3420
|
);
|
|
@@ -3485,6 +3490,18 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
3485
3490
|
}
|
|
3486
3491
|
};
|
|
3487
3492
|
|
|
3493
|
+
// src/api/stedi.ts
|
|
3494
|
+
var StediApi = class extends BaseApiClient {
|
|
3495
|
+
async getStediConnections(wid) {
|
|
3496
|
+
return this.fetch(`w/${wid}/app-connections/stedi/status`);
|
|
3497
|
+
}
|
|
3498
|
+
async getStediConnectionStatus(wid, connectionUuid) {
|
|
3499
|
+
return this.fetch(
|
|
3500
|
+
`w/${wid}/app-connections/stedi/${connectionUuid}/status`
|
|
3501
|
+
);
|
|
3502
|
+
}
|
|
3503
|
+
};
|
|
3504
|
+
|
|
3488
3505
|
// src/types/generated/inbound_fax.ts
|
|
3489
3506
|
var InboundFaxStatus = {
|
|
3490
3507
|
pending: "pending",
|
|
@@ -3513,13 +3530,13 @@ var DocumoFaxApi = class extends BaseApiClient {
|
|
|
3513
3530
|
* failures an operator filtering by date is hunting for.
|
|
3514
3531
|
*/
|
|
3515
3532
|
async listDocumoFaxes(wid, params) {
|
|
3516
|
-
const
|
|
3517
|
-
if (params?.page !== void 0)
|
|
3518
|
-
if (params?.pageSize !== void 0)
|
|
3519
|
-
params?.status?.forEach((value) =>
|
|
3520
|
-
if (params?.receivedAfter)
|
|
3521
|
-
if (params?.receivedBefore)
|
|
3522
|
-
const suffix2 =
|
|
3533
|
+
const query2 = new URLSearchParams();
|
|
3534
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3535
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3536
|
+
params?.status?.forEach((value) => query2.append("status", value));
|
|
3537
|
+
if (params?.receivedAfter) query2.set("receivedAfter", params.receivedAfter);
|
|
3538
|
+
if (params?.receivedBefore) query2.set("receivedBefore", params.receivedBefore);
|
|
3539
|
+
const suffix2 = query2.toString() === "" ? "" : `?${query2.toString()}`;
|
|
3523
3540
|
return this.fetch(
|
|
3524
3541
|
`w/${wid}/app-connections/documo-fax/faxes${suffix2}`
|
|
3525
3542
|
);
|
|
@@ -3594,20 +3611,20 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
3594
3611
|
);
|
|
3595
3612
|
}
|
|
3596
3613
|
async getLinkedHealthieMembers(wid, params) {
|
|
3597
|
-
const
|
|
3598
|
-
if (params?.page !== void 0)
|
|
3599
|
-
if (params?.pageSize !== void 0)
|
|
3600
|
-
if (params?.search?.trim())
|
|
3601
|
-
const qs =
|
|
3614
|
+
const query2 = new URLSearchParams();
|
|
3615
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3616
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3617
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
3618
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3602
3619
|
return this.fetch(
|
|
3603
3620
|
`w/${wid}/app-connections/healthie/reconciliation/linked${qs}`
|
|
3604
3621
|
);
|
|
3605
3622
|
}
|
|
3606
3623
|
async getHealthieReconciliationMatches(wid, params) {
|
|
3607
|
-
const
|
|
3608
|
-
if (params?.limit !== void 0)
|
|
3609
|
-
if (params?.offset !== void 0)
|
|
3610
|
-
const qs =
|
|
3624
|
+
const query2 = new URLSearchParams();
|
|
3625
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
3626
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
3627
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3611
3628
|
return this.fetch(
|
|
3612
3629
|
`w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
|
|
3613
3630
|
);
|
|
@@ -3624,17 +3641,17 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
3624
3641
|
});
|
|
3625
3642
|
}
|
|
3626
3643
|
async listHealthieAppointmentTypes(wid, providerId) {
|
|
3627
|
-
const
|
|
3628
|
-
if (providerId)
|
|
3629
|
-
const qs =
|
|
3644
|
+
const query2 = new URLSearchParams();
|
|
3645
|
+
if (providerId) query2.set("provider_id", providerId);
|
|
3646
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3630
3647
|
return this.fetch(
|
|
3631
3648
|
`w/${wid}/app-connections/healthie/appointment-types${qs}`
|
|
3632
3649
|
);
|
|
3633
3650
|
}
|
|
3634
3651
|
async listHealthiePatients(wid, keywords) {
|
|
3635
|
-
const
|
|
3636
|
-
if (keywords?.trim())
|
|
3637
|
-
const qs =
|
|
3652
|
+
const query2 = new URLSearchParams();
|
|
3653
|
+
if (keywords?.trim()) query2.set("keywords", keywords.trim());
|
|
3654
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3638
3655
|
return this.fetch(
|
|
3639
3656
|
`w/${wid}/app-connections/healthie/patients${qs}`
|
|
3640
3657
|
);
|
|
@@ -3849,6 +3866,21 @@ var FilesApi = class extends BaseApiClient {
|
|
|
3849
3866
|
method: "DELETE"
|
|
3850
3867
|
});
|
|
3851
3868
|
}
|
|
3869
|
+
/** Queue indexing of an individual File, including a File without a folder. */
|
|
3870
|
+
async reindexFile(wid, id) {
|
|
3871
|
+
return this.fetch(`w/${wid}/files/${id}/reindex`, {
|
|
3872
|
+
method: "POST",
|
|
3873
|
+
body: JSON.stringify({})
|
|
3874
|
+
});
|
|
3875
|
+
}
|
|
3876
|
+
/** Search the current indexed version of an individual File. */
|
|
3877
|
+
async searchFile(wid, id, params) {
|
|
3878
|
+
const searchParams = new URLSearchParams({ query: params.query });
|
|
3879
|
+
if (params.topK !== void 0) searchParams.append("top_k", params.topK.toString());
|
|
3880
|
+
return this.fetch(
|
|
3881
|
+
`w/${wid}/files/${id}/search?${searchParams.toString()}`
|
|
3882
|
+
);
|
|
3883
|
+
}
|
|
3852
3884
|
/** Trigger reindexing of a folder's contents for search. */
|
|
3853
3885
|
async reindexFolder(wid, id) {
|
|
3854
3886
|
return this.fetch(`w/${wid}/folders/${id}/reindex`, {
|
|
@@ -4009,9 +4041,20 @@ function bytesToBase64(bytes) {
|
|
|
4009
4041
|
|
|
4010
4042
|
// src/api/inboxes.ts
|
|
4011
4043
|
var InboxesApi = class extends BaseApiClient {
|
|
4012
|
-
/**
|
|
4013
|
-
|
|
4014
|
-
|
|
4044
|
+
/**
|
|
4045
|
+
* List inboxes in a workspace.
|
|
4046
|
+
*
|
|
4047
|
+
* `isArchived` picks the half of the archive switch: omitted (or `false`) is
|
|
4048
|
+
* the Active list, `true` the Archived one. The server defaults to active,
|
|
4049
|
+
* so a caller that never passes it sees usable inboxes only.
|
|
4050
|
+
*/
|
|
4051
|
+
async getInboxes(wid, options) {
|
|
4052
|
+
const params = new URLSearchParams();
|
|
4053
|
+
if (options?.isArchived !== void 0) {
|
|
4054
|
+
params.set("is_archived", String(options.isArchived));
|
|
4055
|
+
}
|
|
4056
|
+
const query2 = params.toString();
|
|
4057
|
+
return this.fetch(`w/${wid}/inboxes${query2 ? `?${query2}` : ""}`);
|
|
4015
4058
|
}
|
|
4016
4059
|
/**
|
|
4017
4060
|
* Get an inbox by ID or UUID.
|
|
@@ -4038,17 +4081,45 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
4038
4081
|
body: JSON.stringify(inbox)
|
|
4039
4082
|
});
|
|
4040
4083
|
}
|
|
4041
|
-
/** Delete an inbox. */
|
|
4084
|
+
/** Delete an inbox and its emails. Prefer {@link archiveInbox}. */
|
|
4042
4085
|
async deleteInbox(wid, id) {
|
|
4043
4086
|
return this.fetch(`w/${wid}/inboxes/${id}`, {
|
|
4044
4087
|
method: "DELETE"
|
|
4045
4088
|
});
|
|
4046
4089
|
}
|
|
4047
|
-
/**
|
|
4090
|
+
/**
|
|
4091
|
+
* Archive an inbox: it leaves the Active list, refuses new mail and new
|
|
4092
|
+
* sends, and keeps every email it already holds. One-way.
|
|
4093
|
+
*
|
|
4094
|
+
* Refused with a 400 while a Workflow uses the inbox as its default or an
|
|
4095
|
+
* EventRule sends from it — read {@link getInboxArchiveBlockers} first to
|
|
4096
|
+
* explain that before committing.
|
|
4097
|
+
*/
|
|
4098
|
+
async archiveInbox(wid, id) {
|
|
4099
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive`, {
|
|
4100
|
+
method: "POST",
|
|
4101
|
+
// The route requires a JSON body as a CSRF barrier; `{}` is enough.
|
|
4102
|
+
body: JSON.stringify({})
|
|
4103
|
+
});
|
|
4104
|
+
}
|
|
4105
|
+
/**
|
|
4106
|
+
* What still points at this inbox: Workflows whose default inbox it is, and
|
|
4107
|
+
* EventRules that send from it. `canArchive` is the authoritative answer.
|
|
4108
|
+
*/
|
|
4109
|
+
async getInboxArchiveBlockers(wid, id) {
|
|
4110
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive-blockers`);
|
|
4111
|
+
}
|
|
4112
|
+
/**
|
|
4113
|
+
* List emails in an inbox with pagination, optional attachment inclusion,
|
|
4114
|
+
* a `search` term (sender or subject) and a sort.
|
|
4115
|
+
*/
|
|
4048
4116
|
async getInboxEmails(wid, inboxId, options = {}) {
|
|
4049
4117
|
const params = new URLSearchParams();
|
|
4050
4118
|
if (options.page) params.append("page", options.page.toString());
|
|
4051
4119
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
4120
|
+
if (options.search) params.append("search", options.search);
|
|
4121
|
+
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
4122
|
+
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
4052
4123
|
if (options.includeAttachments)
|
|
4053
4124
|
params.append("include_attachments", options.includeAttachments.toString());
|
|
4054
4125
|
return this.fetch(
|
|
@@ -4157,14 +4228,20 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
4157
4228
|
const params = new URLSearchParams();
|
|
4158
4229
|
if (period.dateFrom) params.append("date_from", period.dateFrom);
|
|
4159
4230
|
if (period.dateTo) params.append("date_to", period.dateTo);
|
|
4160
|
-
const
|
|
4231
|
+
const query2 = params.toString();
|
|
4161
4232
|
return this.fetch(
|
|
4162
|
-
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${
|
|
4233
|
+
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
|
|
4163
4234
|
);
|
|
4164
4235
|
}
|
|
4165
|
-
/** List email threads in an inbox
|
|
4166
|
-
async getInboxThreads(wid, inboxId) {
|
|
4167
|
-
|
|
4236
|
+
/** List email threads in an inbox, `limit` threads from `offset`. */
|
|
4237
|
+
async getInboxThreads(wid, inboxId, options = {}) {
|
|
4238
|
+
const params = new URLSearchParams();
|
|
4239
|
+
if (options.limit !== void 0) params.append("limit", options.limit.toString());
|
|
4240
|
+
if (options.offset) params.append("offset", options.offset.toString());
|
|
4241
|
+
const query2 = params.toString();
|
|
4242
|
+
return this.fetch(
|
|
4243
|
+
`w/${wid}/inboxes/${inboxId}/threads${query2 ? `?${query2}` : ""}`
|
|
4244
|
+
);
|
|
4168
4245
|
}
|
|
4169
4246
|
/** List emails in a thread by assignment ID with pagination. */
|
|
4170
4247
|
async getThreadEmails(wid, inboxId, assignmentId, options = {}) {
|
|
@@ -4564,10 +4641,10 @@ var MembersApi = class extends BaseApiClient {
|
|
|
4564
4641
|
});
|
|
4565
4642
|
}
|
|
4566
4643
|
/** List workspace members with pagination, filtering, and sorting. */
|
|
4567
|
-
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId,
|
|
4644
|
+
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query2) {
|
|
4568
4645
|
const params = new URLSearchParams();
|
|
4569
4646
|
if (memberFilterId != null) params.append("memberFilterId", memberFilterId.toString());
|
|
4570
|
-
if (
|
|
4647
|
+
if (query2 != null) params.append("query", JSON.stringify(query2));
|
|
4571
4648
|
if (page) params.append("page", page.toString());
|
|
4572
4649
|
if (pageSize) params.append("pageSize", pageSize.toString());
|
|
4573
4650
|
if (sortBy) params.append("sortBy", sortBy);
|
|
@@ -5258,21 +5335,21 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
5258
5335
|
});
|
|
5259
5336
|
}
|
|
5260
5337
|
async getLinkedMondayMembers(wid, params) {
|
|
5261
|
-
const
|
|
5262
|
-
if (params?.board_id)
|
|
5263
|
-
if (params?.page !== void 0)
|
|
5264
|
-
if (params?.pageSize !== void 0)
|
|
5265
|
-
if (params?.search?.trim())
|
|
5266
|
-
const qs =
|
|
5338
|
+
const query2 = new URLSearchParams();
|
|
5339
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
5340
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
5341
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
5342
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
5343
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
5267
5344
|
return this.fetch(
|
|
5268
5345
|
`w/${wid}/app-connections/monday/reconciliation/linked${qs}`
|
|
5269
5346
|
);
|
|
5270
5347
|
}
|
|
5271
5348
|
async getMondayReconciliationMatches(wid, params) {
|
|
5272
|
-
const
|
|
5273
|
-
if (params?.limit !== void 0)
|
|
5274
|
-
if (params?.offset !== void 0)
|
|
5275
|
-
const qs =
|
|
5349
|
+
const query2 = new URLSearchParams();
|
|
5350
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
5351
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
5352
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
5276
5353
|
return this.fetch(
|
|
5277
5354
|
`w/${wid}/app-connections/monday/reconciliation/matches${qs}`
|
|
5278
5355
|
);
|
|
@@ -5296,11 +5373,11 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
5296
5373
|
);
|
|
5297
5374
|
}
|
|
5298
5375
|
async getLinkedRecords(wid, params) {
|
|
5299
|
-
const
|
|
5300
|
-
if (params?.board_id)
|
|
5301
|
-
if (params?.page !== void 0)
|
|
5302
|
-
if (params?.pageSize !== void 0)
|
|
5303
|
-
const qs =
|
|
5376
|
+
const query2 = new URLSearchParams();
|
|
5377
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
5378
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
5379
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
5380
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
5304
5381
|
return this.fetch(
|
|
5305
5382
|
`w/${wid}/app-connections/monday/linked-records${qs}`
|
|
5306
5383
|
);
|
|
@@ -5323,10 +5400,10 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
5323
5400
|
* connection is parked for re-authorization.
|
|
5324
5401
|
*/
|
|
5325
5402
|
async getMondaySyncLogs(wid, params) {
|
|
5326
|
-
const
|
|
5327
|
-
if (params?.pageSize)
|
|
5328
|
-
if (params?.cursor)
|
|
5329
|
-
const qs =
|
|
5403
|
+
const query2 = new URLSearchParams();
|
|
5404
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
5405
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
5406
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
5330
5407
|
return this.fetch(
|
|
5331
5408
|
`w/${wid}/app-connections/monday/sync/logs${qs}`
|
|
5332
5409
|
);
|
|
@@ -5430,6 +5507,47 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
5430
5507
|
|
|
5431
5508
|
// src/api/org.ts
|
|
5432
5509
|
var OrgApi = class extends BaseApiClient {
|
|
5510
|
+
async getOrgManagerChats(org, cursor) {
|
|
5511
|
+
return this.fetch(
|
|
5512
|
+
`o/${encodeURIComponent(org)}/manager/chats${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`
|
|
5513
|
+
);
|
|
5514
|
+
}
|
|
5515
|
+
async createOrgManagerChat(org, title) {
|
|
5516
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
5517
|
+
method: "POST",
|
|
5518
|
+
body: JSON.stringify({ title })
|
|
5519
|
+
});
|
|
5520
|
+
}
|
|
5521
|
+
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
5522
|
+
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
5523
|
+
method: "POST",
|
|
5524
|
+
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
5525
|
+
cache: "no-store"
|
|
5526
|
+
});
|
|
5527
|
+
}
|
|
5528
|
+
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
5529
|
+
return this.fetch(
|
|
5530
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
5531
|
+
{ cache: "no-store" }
|
|
5532
|
+
);
|
|
5533
|
+
}
|
|
5534
|
+
async getOrgManagerMessages(org, chatId, before) {
|
|
5535
|
+
return this.fetch(
|
|
5536
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
|
|
5537
|
+
);
|
|
5538
|
+
}
|
|
5539
|
+
async stopOrgManagerTurn(org, chatId) {
|
|
5540
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/stop`, {
|
|
5541
|
+
method: "POST",
|
|
5542
|
+
body: JSON.stringify({})
|
|
5543
|
+
});
|
|
5544
|
+
}
|
|
5545
|
+
async startOrgManagerTurn(org, chatId, body) {
|
|
5546
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/turns`, {
|
|
5547
|
+
method: "POST",
|
|
5548
|
+
body: JSON.stringify(body)
|
|
5549
|
+
});
|
|
5550
|
+
}
|
|
5433
5551
|
/**
|
|
5434
5552
|
* Get organization by ID or UUID.
|
|
5435
5553
|
* Returns different response based on user's role:
|
|
@@ -5498,7 +5616,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5498
5616
|
async getOrgAiConnectorPolicy(orgIdOrUuid) {
|
|
5499
5617
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
|
|
5500
5618
|
}
|
|
5501
|
-
/** Set the AI connector mode: `any` or `
|
|
5619
|
+
/** Set the AI connector mode: `any`, `allowlist` or `none`. Requires `org:admin`. */
|
|
5502
5620
|
async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
|
|
5503
5621
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
|
|
5504
5622
|
method: "PUT",
|
|
@@ -5679,6 +5797,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5679
5797
|
if (options?.page) params.set("page", String(options.page));
|
|
5680
5798
|
if (options?.pageSize) params.set("pageSize", String(options.pageSize));
|
|
5681
5799
|
if (options?.search) params.set("search", options.search);
|
|
5800
|
+
if (options?.label) params.set("label", options.label);
|
|
5682
5801
|
return this.fetch(
|
|
5683
5802
|
`o/${orgIdOrUuid}/workspaces/summary?${params}`
|
|
5684
5803
|
);
|
|
@@ -5746,16 +5865,17 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5746
5865
|
});
|
|
5747
5866
|
}
|
|
5748
5867
|
/**
|
|
5749
|
-
* Search
|
|
5868
|
+
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
5869
|
+
* for US; the server defaults to US local when the type is omitted.
|
|
5750
5870
|
*/
|
|
5751
5871
|
async searchPhoneNumbers(orgUuid, params) {
|
|
5752
|
-
const
|
|
5753
|
-
if (params?.country)
|
|
5754
|
-
if (params?.numberType)
|
|
5755
|
-
if (params?.areaCode)
|
|
5756
|
-
if (params?.contains)
|
|
5757
|
-
if (params?.limit)
|
|
5758
|
-
const qs =
|
|
5872
|
+
const query2 = new URLSearchParams();
|
|
5873
|
+
if (params?.country) query2.set("country", params.country);
|
|
5874
|
+
if (params?.numberType) query2.set("number_type", params.numberType);
|
|
5875
|
+
if (params?.areaCode) query2.set("area_code", params.areaCode);
|
|
5876
|
+
if (params?.contains) query2.set("contains", params.contains);
|
|
5877
|
+
if (params?.limit) query2.set("limit", String(params.limit));
|
|
5878
|
+
const qs = query2.toString();
|
|
5759
5879
|
return this.fetch(
|
|
5760
5880
|
`o/${orgUuid}/phone-numbers/search${qs ? `?${qs}` : ""}`
|
|
5761
5881
|
);
|
|
@@ -5763,8 +5883,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5763
5883
|
/**
|
|
5764
5884
|
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
5765
5885
|
*
|
|
5766
|
-
*
|
|
5767
|
-
*
|
|
5886
|
+
* Australian mobile numbers require an approved business registration. Pass
|
|
5887
|
+
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
5888
|
+
* `bundleSid` or `addressSid` for Australian purchases.
|
|
5768
5889
|
*/
|
|
5769
5890
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
5770
5891
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -5773,11 +5894,31 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5773
5894
|
phoneNumber,
|
|
5774
5895
|
numberType,
|
|
5775
5896
|
country: opts?.country,
|
|
5897
|
+
legalEntityUuid: opts?.legalEntityUuid,
|
|
5776
5898
|
bundleSid: opts?.bundleSid,
|
|
5777
5899
|
addressSid: opts?.addressSid
|
|
5778
5900
|
})
|
|
5779
5901
|
});
|
|
5780
5902
|
}
|
|
5903
|
+
async getNumberRegistration(orgUuid, entityUuid) {
|
|
5904
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration`);
|
|
5905
|
+
}
|
|
5906
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
5907
|
+
const body = new FormData();
|
|
5908
|
+
body.append("file", file);
|
|
5909
|
+
body.append("documentType", documentType);
|
|
5910
|
+
body.append("requirementName", requirementName);
|
|
5911
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents`, {
|
|
5912
|
+
method: "POST",
|
|
5913
|
+
body
|
|
5914
|
+
});
|
|
5915
|
+
}
|
|
5916
|
+
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
5917
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit`, {
|
|
5918
|
+
method: "POST",
|
|
5919
|
+
body: JSON.stringify({})
|
|
5920
|
+
});
|
|
5921
|
+
}
|
|
5781
5922
|
/**
|
|
5782
5923
|
* Delete a phone number from the org (releases from Twilio).
|
|
5783
5924
|
*/
|
|
@@ -5824,7 +5965,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5824
5965
|
* Delete a registered organization domain.
|
|
5825
5966
|
*/
|
|
5826
5967
|
async deleteOrgDomain(orgIdOrUuid, domainUuid) {
|
|
5827
|
-
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
5968
|
+
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
5969
|
+
method: "DELETE"
|
|
5970
|
+
});
|
|
5828
5971
|
}
|
|
5829
5972
|
/**
|
|
5830
5973
|
* Enable email DNS provisioning for a verified org domain.
|
|
@@ -5855,9 +5998,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5855
5998
|
* Disable email support for an org domain.
|
|
5856
5999
|
*/
|
|
5857
6000
|
async disableOrgDomainEmail(orgIdOrUuid, domainUuid, confirm = false) {
|
|
5858
|
-
const
|
|
6001
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
5859
6002
|
const response = await this.fetchRaw(
|
|
5860
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/email${
|
|
6003
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/email${query2}`,
|
|
5861
6004
|
{ method: "DELETE" },
|
|
5862
6005
|
[409]
|
|
5863
6006
|
);
|
|
@@ -5938,9 +6081,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5938
6081
|
* Disable custom site routing for an org domain.
|
|
5939
6082
|
*/
|
|
5940
6083
|
async disableOrgDomainSite(orgIdOrUuid, domainUuid, confirm = false) {
|
|
5941
|
-
const
|
|
6084
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
5942
6085
|
const response = await this.fetchRaw(
|
|
5943
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/site${
|
|
6086
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/site${query2}`,
|
|
5944
6087
|
{ method: "DELETE" },
|
|
5945
6088
|
[409]
|
|
5946
6089
|
);
|
|
@@ -5998,17 +6141,20 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5998
6141
|
});
|
|
5999
6142
|
}
|
|
6000
6143
|
/**
|
|
6001
|
-
*
|
|
6002
|
-
* brand's
|
|
6003
|
-
*
|
|
6004
|
-
*
|
|
6144
|
+
* Enable sending on a workspace-assigned number: attach it to the
|
|
6145
|
+
* Messaging Service of the given brand's campaign (A2P 10DLC).
|
|
6146
|
+
*
|
|
6147
|
+
* `campaignUuid` names the campaign to attach the number to, including the
|
|
6148
|
+
* brand's first; omit it to target the brand's first campaign. Preconditions
|
|
6149
|
+
* (412 otherwise): campaign VERIFIED, brand has a Messaging Service, phone
|
|
6150
|
+
* assigned to a workspace with a Twilio SID.
|
|
6005
6151
|
*/
|
|
6006
|
-
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
|
|
6152
|
+
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid, campaignUuid) {
|
|
6007
6153
|
return this.fetch(
|
|
6008
6154
|
`o/${orgUuid}/phone-numbers/a2p/activate-number`,
|
|
6009
6155
|
{
|
|
6010
6156
|
method: "POST",
|
|
6011
|
-
body: JSON.stringify({ providerPhoneUuid, brandUuid })
|
|
6157
|
+
body: JSON.stringify({ providerPhoneUuid, brandUuid, campaignUuid })
|
|
6012
6158
|
}
|
|
6013
6159
|
);
|
|
6014
6160
|
}
|
|
@@ -6025,7 +6171,10 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6025
6171
|
* entity's business profile must be approved (400 otherwise).
|
|
6026
6172
|
*/
|
|
6027
6173
|
async attachPhoneVoiceTrust(orgUuid, providerPhoneUuid, legalEntityUuid) {
|
|
6028
|
-
const body = {
|
|
6174
|
+
const body = {
|
|
6175
|
+
providerPhoneUuid,
|
|
6176
|
+
legalEntityUuid
|
|
6177
|
+
};
|
|
6029
6178
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/attach`, {
|
|
6030
6179
|
method: "POST",
|
|
6031
6180
|
body: JSON.stringify(body)
|
|
@@ -6189,23 +6338,53 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6189
6338
|
`o/${orgUuid}/a2p-brands/${brandUuid}/use-cases`
|
|
6190
6339
|
);
|
|
6191
6340
|
}
|
|
6341
|
+
/**
|
|
6342
|
+
* Add a draft campaign to a brand. `sourceCampaignUuid` goes in an optional
|
|
6343
|
+
* JSON body; omitting it copies the brand's first campaign. The draft
|
|
6344
|
+
* reaches no provider until it is submitted. A sole-proprietor brand is
|
|
6345
|
+
* refused.
|
|
6346
|
+
*/
|
|
6347
|
+
async createA2PCampaign(orgUuid, brandUuid, data = {}) {
|
|
6348
|
+
return this.fetch(`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns`, {
|
|
6349
|
+
method: "POST",
|
|
6350
|
+
body: JSON.stringify(data)
|
|
6351
|
+
});
|
|
6352
|
+
}
|
|
6353
|
+
/**
|
|
6354
|
+
* Submit a later campaign that has never been submitted. The caller must be
|
|
6355
|
+
* an org admin with recent 2FA, and the billing owner on subscription
|
|
6356
|
+
* billing (the submission buys the campaign's vetting). The brand's first
|
|
6357
|
+
* campaign is submitted by approving its sample messages during registration;
|
|
6358
|
+
* an ineligible campaign comes back as a structured 409 with a `code`. A brand
|
|
6359
|
+
* that no longer reads approved at the carrier, or a use case it no longer
|
|
6360
|
+
* allows, is a 400 with no `code`.
|
|
6361
|
+
*/
|
|
6362
|
+
async submitA2PCampaign(orgUuid, brandUuid, campaignUuid) {
|
|
6363
|
+
return this.fetch(
|
|
6364
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns/${encodeURIComponent(campaignUuid)}/submit`,
|
|
6365
|
+
{ method: "POST" }
|
|
6366
|
+
);
|
|
6367
|
+
}
|
|
6192
6368
|
/**
|
|
6193
6369
|
* Fetch a brand's resolved A2P campaign config. The response carries both the
|
|
6194
6370
|
* raw `overrides` and the `resolved` payload (defaults + overrides) the editor
|
|
6195
|
-
* previews — including the canonical SMS consent text.
|
|
6371
|
+
* previews — including the canonical SMS consent text. `campaignUuid` names
|
|
6372
|
+
* one of the brand's campaigns; without it the brand's first is read.
|
|
6196
6373
|
*/
|
|
6197
|
-
async getA2PCampaignConfig(orgUuid, brandUuid) {
|
|
6374
|
+
async getA2PCampaignConfig(orgUuid, brandUuid, options) {
|
|
6198
6375
|
return this.fetch(
|
|
6199
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`
|
|
6376
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`
|
|
6200
6377
|
);
|
|
6201
6378
|
}
|
|
6202
6379
|
/**
|
|
6203
6380
|
* Partial-update a brand's A2P campaign config. Returns the freshly resolved
|
|
6204
6381
|
* config so the editor's live preview updates without a second round-trip.
|
|
6382
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
6383
|
+
* first is updated.
|
|
6205
6384
|
*/
|
|
6206
|
-
async updateA2PCampaignConfig(orgUuid, brandUuid, data) {
|
|
6385
|
+
async updateA2PCampaignConfig(orgUuid, brandUuid, data, options) {
|
|
6207
6386
|
return this.fetch(
|
|
6208
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`,
|
|
6387
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`,
|
|
6209
6388
|
{
|
|
6210
6389
|
method: "PUT",
|
|
6211
6390
|
body: JSON.stringify(data)
|
|
@@ -6215,10 +6394,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6215
6394
|
/**
|
|
6216
6395
|
* Resubmit a campaign the carrier rejected, with the brand's current
|
|
6217
6396
|
* campaign copy. Edits the campaign in place, so no second vetting fee.
|
|
6397
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
6398
|
+
* first is resubmitted.
|
|
6218
6399
|
*/
|
|
6219
|
-
async resubmitA2PCampaign(orgUuid, brandUuid) {
|
|
6400
|
+
async resubmitA2PCampaign(orgUuid, brandUuid, options) {
|
|
6220
6401
|
return this.fetch(
|
|
6221
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign`,
|
|
6402
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign${campaignQuery(options)}`,
|
|
6222
6403
|
{ method: "POST" }
|
|
6223
6404
|
);
|
|
6224
6405
|
}
|
|
@@ -6234,11 +6415,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6234
6415
|
}
|
|
6235
6416
|
/**
|
|
6236
6417
|
* Link the brand to a published enrollment Site (sets `site_uuid`). Returns
|
|
6237
|
-
* the refreshed campaign config.
|
|
6418
|
+
* the refreshed campaign config. `campaignUuid` names one of the brand's
|
|
6419
|
+
* campaigns; without it the brand's first campaign is written. Only a first
|
|
6420
|
+
* campaign may link a site.
|
|
6238
6421
|
*/
|
|
6239
|
-
async linkA2PEnrollmentSite(orgUuid, brandUuid, data) {
|
|
6422
|
+
async linkA2PEnrollmentSite(orgUuid, brandUuid, data, options) {
|
|
6240
6423
|
return this.fetch(
|
|
6241
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
6424
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
6242
6425
|
{
|
|
6243
6426
|
method: "PUT",
|
|
6244
6427
|
body: JSON.stringify(data)
|
|
@@ -6250,20 +6433,25 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6250
6433
|
* the explicit counterpart to the automatic provisioning at brand
|
|
6251
6434
|
* registration. `workspaceUuid` is required only when the org has multiple
|
|
6252
6435
|
* workspaces. Returns the refreshed campaign config. Idempotent.
|
|
6436
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
6437
|
+
* first campaign is written. Only a first campaign may link a site.
|
|
6253
6438
|
*/
|
|
6254
|
-
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}) {
|
|
6439
|
+
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}, options) {
|
|
6255
6440
|
return this.fetch(
|
|
6256
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision`,
|
|
6441
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision${campaignQuery(options)}`,
|
|
6257
6442
|
{
|
|
6258
6443
|
method: "POST",
|
|
6259
6444
|
body: JSON.stringify(data)
|
|
6260
6445
|
}
|
|
6261
6446
|
);
|
|
6262
6447
|
}
|
|
6263
|
-
/**
|
|
6264
|
-
|
|
6448
|
+
/**
|
|
6449
|
+
* Clear the brand's enrollment-site link. `campaignUuid` names one of the
|
|
6450
|
+
* brand's campaigns; without it the brand's first campaign is cleared.
|
|
6451
|
+
*/
|
|
6452
|
+
async unlinkA2PEnrollmentSite(orgUuid, brandUuid, options) {
|
|
6265
6453
|
return this.fetch(
|
|
6266
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
6454
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
6267
6455
|
{ method: "DELETE" }
|
|
6268
6456
|
);
|
|
6269
6457
|
}
|
|
@@ -6271,10 +6459,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6271
6459
|
* Stage one A2P opt-in evidence file: get a presigned POST to send the bytes
|
|
6272
6460
|
* straight to storage. Nothing is recorded on the brand until
|
|
6273
6461
|
* {@link registerA2PEvidenceUpload} reads the object back and normalizes it.
|
|
6462
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
6463
|
+
* first campaign is written.
|
|
6274
6464
|
*/
|
|
6275
|
-
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data) {
|
|
6465
|
+
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data, options) {
|
|
6276
6466
|
return this.fetch(
|
|
6277
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url`,
|
|
6467
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url${campaignQuery(options)}`,
|
|
6278
6468
|
{
|
|
6279
6469
|
method: "POST",
|
|
6280
6470
|
body: JSON.stringify(data)
|
|
@@ -6282,25 +6472,29 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6282
6472
|
);
|
|
6283
6473
|
}
|
|
6284
6474
|
/**
|
|
6285
|
-
* Normalize a staged evidence upload and record it on the
|
|
6286
|
-
* refreshed campaign config, so the editor's evidence list updates
|
|
6287
|
-
* second round trip.
|
|
6475
|
+
* Normalize a staged evidence upload and record it on the campaign. Returns
|
|
6476
|
+
* the refreshed campaign config, so the editor's evidence list updates
|
|
6477
|
+
* without a second round trip. `campaignUuid` names one of the brand's
|
|
6478
|
+
* campaigns; without it the brand's first campaign is written.
|
|
6288
6479
|
*/
|
|
6289
|
-
async registerA2PEvidenceUpload(orgUuid, brandUuid, data) {
|
|
6480
|
+
async registerA2PEvidenceUpload(orgUuid, brandUuid, data, options) {
|
|
6290
6481
|
return this.fetch(
|
|
6291
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments`,
|
|
6482
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments${campaignQuery(options)}`,
|
|
6292
6483
|
{
|
|
6293
6484
|
method: "POST",
|
|
6294
6485
|
body: JSON.stringify(data)
|
|
6295
6486
|
}
|
|
6296
6487
|
);
|
|
6297
6488
|
}
|
|
6298
|
-
/**
|
|
6299
|
-
|
|
6489
|
+
/**
|
|
6490
|
+
* Remove one uploaded evidence artifact. `campaignUuid` names one of the
|
|
6491
|
+
* brand's campaigns; without it the brand's first campaign is written.
|
|
6492
|
+
*/
|
|
6493
|
+
async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid, options) {
|
|
6300
6494
|
return this.fetch(
|
|
6301
6495
|
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/${encodeURIComponent(
|
|
6302
6496
|
attachmentUuid
|
|
6303
|
-
)}`,
|
|
6497
|
+
)}${campaignQuery(options)}`,
|
|
6304
6498
|
{ method: "DELETE" }
|
|
6305
6499
|
);
|
|
6306
6500
|
}
|
|
@@ -6356,9 +6550,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6356
6550
|
method: "DELETE"
|
|
6357
6551
|
});
|
|
6358
6552
|
}
|
|
6359
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
6553
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0, filters = {}) {
|
|
6554
|
+
const params = new URLSearchParams({ limit: String(limit), offset: String(offset) });
|
|
6555
|
+
if (filters.status) params.set("status", filters.status);
|
|
6556
|
+
if (filters.occurredAfter) params.set("occurredAfter", filters.occurredAfter);
|
|
6557
|
+
if (filters.occurredBefore) params.set("occurredBefore", filters.occurredBefore);
|
|
6360
6558
|
return this.fetch(
|
|
6361
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries
|
|
6559
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?${params}`
|
|
6362
6560
|
);
|
|
6363
6561
|
}
|
|
6364
6562
|
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
@@ -6416,9 +6614,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6416
6614
|
* endpoint and sit in a workspace it actually covers.
|
|
6417
6615
|
*/
|
|
6418
6616
|
async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
|
|
6419
|
-
const
|
|
6617
|
+
const query2 = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
|
|
6420
6618
|
return this.fetch(
|
|
6421
|
-
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${
|
|
6619
|
+
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query2}`
|
|
6422
6620
|
);
|
|
6423
6621
|
}
|
|
6424
6622
|
/**
|
|
@@ -6525,6 +6723,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6525
6723
|
function businessProfilePath(orgUuid, legalEntityUuid) {
|
|
6526
6724
|
return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
|
|
6527
6725
|
}
|
|
6726
|
+
function campaignQuery(options) {
|
|
6727
|
+
return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
|
|
6728
|
+
}
|
|
6528
6729
|
|
|
6529
6730
|
// src/api/oauth.ts
|
|
6530
6731
|
function getOAuthPath(providerSlug, action) {
|
|
@@ -6641,6 +6842,13 @@ function appendAnalyticsFilters(params, filters) {
|
|
|
6641
6842
|
filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
|
|
6642
6843
|
filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
|
|
6643
6844
|
}
|
|
6845
|
+
function appendPhoneLogFilters(params, filters) {
|
|
6846
|
+
if (!filters) return;
|
|
6847
|
+
if (filters.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
6848
|
+
if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
6849
|
+
if (filters.dateTo) params.set("dateTo", filters.dateTo);
|
|
6850
|
+
if (filters.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
6851
|
+
}
|
|
6644
6852
|
var PhoneNumbersApi = class extends BaseApiClient {
|
|
6645
6853
|
/** List phone numbers in a workspace, optionally including archived. */
|
|
6646
6854
|
async getPhoneNumbers(wid, options) {
|
|
@@ -6648,8 +6856,8 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
6648
6856
|
if (options?.isArchived !== void 0) {
|
|
6649
6857
|
params.set("is_archived", String(options.isArchived));
|
|
6650
6858
|
}
|
|
6651
|
-
const
|
|
6652
|
-
return this.fetch(`w/${wid}/phone-numbers${
|
|
6859
|
+
const query2 = params.toString();
|
|
6860
|
+
return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
|
|
6653
6861
|
}
|
|
6654
6862
|
/** List phone numbers available for provisioning. */
|
|
6655
6863
|
async getAvailablePhoneNumbers(wid) {
|
|
@@ -6715,16 +6923,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
6715
6923
|
if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
6716
6924
|
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
6717
6925
|
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
6926
|
+
if (filters?.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
6718
6927
|
if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
|
|
6719
6928
|
return this.fetch(`w/${wid}/calls?${params}`);
|
|
6720
6929
|
}
|
|
6930
|
+
/**
|
|
6931
|
+
* One time-ordered page over a number's calls, texts and voicemails.
|
|
6932
|
+
*
|
|
6933
|
+
* Paged by keyset: pass the previous page's `nextCursor` as `cursor` to get
|
|
6934
|
+
* the entries after it. A new entry at the head cannot repeat or skip one.
|
|
6935
|
+
* `modalities` limits the feed to some of the logs.
|
|
6936
|
+
*/
|
|
6937
|
+
async getPhoneNumberActivity(wid, id, options = {}) {
|
|
6938
|
+
const params = new URLSearchParams({ pageSize: String(options.pageSize ?? 25) });
|
|
6939
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
6940
|
+
options.modalities?.forEach((modality) => params.append("modality", modality));
|
|
6941
|
+
appendPhoneLogFilters(params, options);
|
|
6942
|
+
return this.fetch(`w/${wid}/phone-numbers/${id}/activity?${params}`);
|
|
6943
|
+
}
|
|
6721
6944
|
/** List paginated voicemails for a phone number. */
|
|
6722
|
-
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status) {
|
|
6945
|
+
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status, filters) {
|
|
6723
6946
|
const params = new URLSearchParams({
|
|
6724
6947
|
page: String(page),
|
|
6725
6948
|
page_size: String(pageSize)
|
|
6726
6949
|
});
|
|
6727
6950
|
if (status) params.set("status", status);
|
|
6951
|
+
appendPhoneLogFilters(params, filters);
|
|
6728
6952
|
return this.fetch(
|
|
6729
6953
|
`w/${wid}/phone-numbers/${id}/voicemails?${params}`
|
|
6730
6954
|
);
|
|
@@ -6750,9 +6974,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
6750
6974
|
pageSize: String(pageSize)
|
|
6751
6975
|
});
|
|
6752
6976
|
if (filters?.status) params.set("status", filters.status);
|
|
6753
|
-
|
|
6754
|
-
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
6755
|
-
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
6977
|
+
appendPhoneLogFilters(params, filters);
|
|
6756
6978
|
return this.fetch(
|
|
6757
6979
|
`w/${wid}/phone-numbers/${id}/messages?${params}`
|
|
6758
6980
|
);
|
|
@@ -6806,9 +7028,9 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
6806
7028
|
async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
|
|
6807
7029
|
const params = new URLSearchParams();
|
|
6808
7030
|
appendAnalyticsFilters(params, filters);
|
|
6809
|
-
const
|
|
7031
|
+
const query2 = params.toString();
|
|
6810
7032
|
return this.fetch(
|
|
6811
|
-
`w/${wid}/phone-numbers/${id}/analytics/summary${
|
|
7033
|
+
`w/${wid}/phone-numbers/${id}/analytics/summary${query2 ? `?${query2}` : ""}`
|
|
6812
7034
|
);
|
|
6813
7035
|
}
|
|
6814
7036
|
/**
|
|
@@ -7017,6 +7239,7 @@ var PersonasApi = class extends BaseApiClient {
|
|
|
7017
7239
|
body: JSON.stringify(data)
|
|
7018
7240
|
});
|
|
7019
7241
|
}
|
|
7242
|
+
/** Archives the Persona and its current test Member. Returns 409 while a test chat is open. */
|
|
7020
7243
|
async archivePersona(wid, id) {
|
|
7021
7244
|
return this.fetch(`w/${wid}/personas/${id}/archive`, {
|
|
7022
7245
|
method: "POST",
|
|
@@ -7043,24 +7266,24 @@ var QueriesApi = class extends BaseApiClient {
|
|
|
7043
7266
|
});
|
|
7044
7267
|
}
|
|
7045
7268
|
/** Structure / field / access / cost validation without execution. */
|
|
7046
|
-
async validateQuery(wid,
|
|
7269
|
+
async validateQuery(wid, query2) {
|
|
7047
7270
|
return this.fetch(`w/${wid}/queries/validate`, {
|
|
7048
7271
|
method: "POST",
|
|
7049
|
-
body: JSON.stringify({ query })
|
|
7272
|
+
body: JSON.stringify({ query: query2 })
|
|
7050
7273
|
});
|
|
7051
7274
|
}
|
|
7052
7275
|
/** Bounded sample run (limit capped server-side). */
|
|
7053
|
-
async previewQuery(wid,
|
|
7276
|
+
async previewQuery(wid, query2, mode) {
|
|
7054
7277
|
return this.fetch(`w/${wid}/queries/preview`, {
|
|
7055
7278
|
method: "POST",
|
|
7056
|
-
body: JSON.stringify({ query, mode })
|
|
7279
|
+
body: JSON.stringify({ query: query2, mode })
|
|
7057
7280
|
});
|
|
7058
7281
|
}
|
|
7059
7282
|
/** Execute a query (rows / count / aggregate). */
|
|
7060
|
-
async runQuery(wid,
|
|
7283
|
+
async runQuery(wid, query2, mode) {
|
|
7061
7284
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
7062
7285
|
method: "POST",
|
|
7063
|
-
body: JSON.stringify({ query, mode })
|
|
7286
|
+
body: JSON.stringify({ query: query2, mode })
|
|
7064
7287
|
});
|
|
7065
7288
|
}
|
|
7066
7289
|
};
|
|
@@ -7084,10 +7307,10 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
7084
7307
|
}
|
|
7085
7308
|
/** List qualifications in a workspace, paginated. */
|
|
7086
7309
|
async getQualifications(wid, params) {
|
|
7087
|
-
const
|
|
7088
|
-
if (params?.page !== void 0)
|
|
7089
|
-
if (params?.pageSize !== void 0)
|
|
7090
|
-
const qs =
|
|
7310
|
+
const query2 = new URLSearchParams();
|
|
7311
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
7312
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
7313
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7091
7314
|
return this.fetch(`w/${wid}/qualifications${qs}`);
|
|
7092
7315
|
}
|
|
7093
7316
|
/** Get a single qualification by ID. */
|
|
@@ -7102,9 +7325,9 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
7102
7325
|
}
|
|
7103
7326
|
// ===== Scenarios =====
|
|
7104
7327
|
async listScenarios(wid, qualificationId, params) {
|
|
7105
|
-
const
|
|
7106
|
-
if (params?.includeArchived)
|
|
7107
|
-
const qs =
|
|
7328
|
+
const query2 = new URLSearchParams();
|
|
7329
|
+
if (params?.includeArchived) query2.set("include_archived", "true");
|
|
7330
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7108
7331
|
return this.fetch(`w/${wid}/qualifications/${qualificationId}/scenarios${qs}`);
|
|
7109
7332
|
}
|
|
7110
7333
|
async createScenario(wid, qualificationId, data) {
|
|
@@ -7137,19 +7360,19 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
7137
7360
|
* `workflowRevisionId`. Omitting both keeps the unfiltered list.
|
|
7138
7361
|
*/
|
|
7139
7362
|
async listTestChatRuns(wid, workflowId, params) {
|
|
7140
|
-
const
|
|
7141
|
-
if (params?.scenarioId !== void 0)
|
|
7363
|
+
const query2 = new URLSearchParams();
|
|
7364
|
+
if (params?.scenarioId !== void 0) query2.set("scenarioId", String(params.scenarioId));
|
|
7142
7365
|
if (params?.assistantChatModelId !== void 0) {
|
|
7143
|
-
|
|
7366
|
+
query2.set("assistantChatModelId", params.assistantChatModelId);
|
|
7144
7367
|
}
|
|
7145
|
-
if (params?.limit !== void 0)
|
|
7368
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
7146
7369
|
if (params?.workflowRevisionId !== void 0) {
|
|
7147
|
-
|
|
7370
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
7148
7371
|
}
|
|
7149
7372
|
if (params?.includeEarlierRevisions !== void 0) {
|
|
7150
|
-
|
|
7373
|
+
query2.set("include_earlier_revisions", String(params.includeEarlierRevisions));
|
|
7151
7374
|
}
|
|
7152
|
-
const qs =
|
|
7375
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7153
7376
|
return this.fetch(
|
|
7154
7377
|
`w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs${qs}`
|
|
7155
7378
|
);
|
|
@@ -7164,11 +7387,11 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
7164
7387
|
* revision it describes and whether it is the current one.
|
|
7165
7388
|
*/
|
|
7166
7389
|
async listScenarioHealthSummaries(wid, workflowId, params) {
|
|
7167
|
-
const
|
|
7390
|
+
const query2 = new URLSearchParams();
|
|
7168
7391
|
if (params?.workflowRevisionId !== void 0) {
|
|
7169
|
-
|
|
7392
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
7170
7393
|
}
|
|
7171
|
-
const qs =
|
|
7394
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7172
7395
|
return this.fetch(
|
|
7173
7396
|
`w/${wid}/qualifications/workflows/${workflowId}/scenario-health-summaries${qs}`
|
|
7174
7397
|
);
|
|
@@ -7248,9 +7471,12 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
7248
7471
|
);
|
|
7249
7472
|
}
|
|
7250
7473
|
async evaluateTestChatRun(wid, runId) {
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7474
|
+
return this.fetch(
|
|
7475
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`,
|
|
7476
|
+
{
|
|
7477
|
+
method: "POST"
|
|
7478
|
+
}
|
|
7479
|
+
);
|
|
7254
7480
|
}
|
|
7255
7481
|
/** Manually end a test chat run (for human-driven runs, which have no
|
|
7256
7482
|
* simulator workflow to mark them completed). */
|
|
@@ -7372,9 +7598,9 @@ var RoutingRulesApi = class extends BaseApiClient {
|
|
|
7372
7598
|
async getRoutingRules(wid, filters) {
|
|
7373
7599
|
const params = new URLSearchParams();
|
|
7374
7600
|
appendFilters(params, filters);
|
|
7375
|
-
const
|
|
7601
|
+
const query2 = params.toString();
|
|
7376
7602
|
return this.fetch(
|
|
7377
|
-
`w/${wid}/routing${
|
|
7603
|
+
`w/${wid}/routing${query2 ? `?${query2}` : ""}`
|
|
7378
7604
|
);
|
|
7379
7605
|
}
|
|
7380
7606
|
/** Read one rule. Requires the rule's endpoint read permission (`phones:read`, or `inboxes:read`). */
|
|
@@ -7480,10 +7706,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
7480
7706
|
});
|
|
7481
7707
|
}
|
|
7482
7708
|
async getSalesforceReconciliationMatches(wid, params) {
|
|
7483
|
-
const
|
|
7484
|
-
if (params?.limit !== void 0)
|
|
7485
|
-
if (params?.offset !== void 0)
|
|
7486
|
-
const qs =
|
|
7709
|
+
const query2 = new URLSearchParams();
|
|
7710
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
7711
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
7712
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7487
7713
|
return this.fetch(
|
|
7488
7714
|
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
7489
7715
|
);
|
|
@@ -7520,11 +7746,11 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
7520
7746
|
});
|
|
7521
7747
|
}
|
|
7522
7748
|
async getLinkedSalesforceMembers(wid, params) {
|
|
7523
|
-
const
|
|
7524
|
-
if (params?.page !== void 0)
|
|
7525
|
-
if (params?.pageSize !== void 0)
|
|
7526
|
-
if (params?.search?.trim())
|
|
7527
|
-
const qs =
|
|
7749
|
+
const query2 = new URLSearchParams();
|
|
7750
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
7751
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
7752
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
7753
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7528
7754
|
return this.fetch(
|
|
7529
7755
|
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
7530
7756
|
);
|
|
@@ -7602,10 +7828,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
7602
7828
|
* connection is parked for re-authorization.
|
|
7603
7829
|
*/
|
|
7604
7830
|
async getSalesforceSyncLogs(wid, params) {
|
|
7605
|
-
const
|
|
7606
|
-
if (params?.pageSize)
|
|
7607
|
-
if (params?.cursor)
|
|
7608
|
-
const qs =
|
|
7831
|
+
const query2 = new URLSearchParams();
|
|
7832
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
7833
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
7834
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7609
7835
|
return this.fetch(
|
|
7610
7836
|
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
7611
7837
|
);
|
|
@@ -7645,12 +7871,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
7645
7871
|
);
|
|
7646
7872
|
}
|
|
7647
7873
|
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
|
|
7648
|
-
const
|
|
7874
|
+
const query2 = new URLSearchParams({
|
|
7649
7875
|
direction,
|
|
7650
7876
|
sync_key: syncKey
|
|
7651
7877
|
});
|
|
7652
7878
|
return this.fetch(
|
|
7653
|
-
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${
|
|
7879
|
+
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
7654
7880
|
);
|
|
7655
7881
|
}
|
|
7656
7882
|
/**
|
|
@@ -7688,11 +7914,29 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
7688
7914
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
7689
7915
|
);
|
|
7690
7916
|
}
|
|
7691
|
-
|
|
7917
|
+
/**
|
|
7918
|
+
* One page of a run's items. ``cursor`` is the previous page's
|
|
7919
|
+
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
7920
|
+
* from ``hasMore``, never from the returned row count.
|
|
7921
|
+
*/
|
|
7922
|
+
async getSyncRunItemsPage(wid, connectionId, runId, options) {
|
|
7923
|
+
const params = new URLSearchParams();
|
|
7924
|
+
if (options?.limit != null) params.set("limit", String(options.limit));
|
|
7925
|
+
if (options?.newestFirst) params.set("newest_first", "true");
|
|
7926
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
7927
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
7692
7928
|
return this.fetch(
|
|
7693
|
-
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items
|
|
7929
|
+
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items${qs}`
|
|
7694
7930
|
);
|
|
7695
7931
|
}
|
|
7932
|
+
/**
|
|
7933
|
+
* The run's items as a flat list. Kept for the published CLI surface; the
|
|
7934
|
+
* server returns the canonical cursor page, and this unwraps its ``items``.
|
|
7935
|
+
*/
|
|
7936
|
+
async getSyncRunItems(wid, connectionId, runId, limit = 500) {
|
|
7937
|
+
const page = await this.getSyncRunItemsPage(wid, connectionId, runId, { limit });
|
|
7938
|
+
return page.items;
|
|
7939
|
+
}
|
|
7696
7940
|
/**
|
|
7697
7941
|
* Clear a manual-unlink exclusion for a member on a connection so
|
|
7698
7942
|
* subsequent outbound syncs stop silently skipping them. Idempotent:
|
|
@@ -7700,9 +7944,9 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
7700
7944
|
* ``boardId`` is only meaningful for multi-scope connectors (Monday).
|
|
7701
7945
|
*/
|
|
7702
7946
|
async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
|
|
7703
|
-
const
|
|
7947
|
+
const query2 = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
|
|
7704
7948
|
return this.fetch(
|
|
7705
|
-
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${
|
|
7949
|
+
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query2}`,
|
|
7706
7950
|
{ method: "DELETE" }
|
|
7707
7951
|
);
|
|
7708
7952
|
}
|
|
@@ -7794,12 +8038,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
7794
8038
|
}
|
|
7795
8039
|
/** Vendor lists a `vendor_list` import can name (configuration only). */
|
|
7796
8040
|
async listSubsetImportVendorLists(wid, connectionId, options) {
|
|
7797
|
-
const
|
|
8041
|
+
const query2 = new URLSearchParams({
|
|
7798
8042
|
query: options?.query ?? "",
|
|
7799
8043
|
limit: String(options?.limit ?? 50)
|
|
7800
8044
|
});
|
|
7801
8045
|
return this.fetch(
|
|
7802
|
-
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${
|
|
8046
|
+
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
|
|
7803
8047
|
);
|
|
7804
8048
|
}
|
|
7805
8049
|
/** Remote fields a `field_filter` import can name, with their operators. */
|
|
@@ -7861,10 +8105,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
7861
8105
|
});
|
|
7862
8106
|
}
|
|
7863
8107
|
async getHubspotReconciliationMatches(wid, params) {
|
|
7864
|
-
const
|
|
7865
|
-
if (params?.limit !== void 0)
|
|
7866
|
-
if (params?.offset !== void 0)
|
|
7867
|
-
const qs =
|
|
8108
|
+
const query2 = new URLSearchParams();
|
|
8109
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
8110
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
8111
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7868
8112
|
return this.fetch(
|
|
7869
8113
|
`w/${wid}/app-connections/hubspot/reconciliation/matches${qs}`
|
|
7870
8114
|
);
|
|
@@ -7887,11 +8131,11 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
7887
8131
|
});
|
|
7888
8132
|
}
|
|
7889
8133
|
async getLinkedHubspotMembers(wid, params) {
|
|
7890
|
-
const
|
|
7891
|
-
if (params?.page !== void 0)
|
|
7892
|
-
if (params?.pageSize !== void 0)
|
|
7893
|
-
if (params?.search?.trim())
|
|
7894
|
-
const qs =
|
|
8134
|
+
const query2 = new URLSearchParams();
|
|
8135
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
8136
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
8137
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
8138
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7895
8139
|
return this.fetch(
|
|
7896
8140
|
`w/${wid}/app-connections/hubspot/reconciliation/linked${qs}`
|
|
7897
8141
|
);
|
|
@@ -7951,10 +8195,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
7951
8195
|
* and Monday twins return), with cursor pagination.
|
|
7952
8196
|
*/
|
|
7953
8197
|
async getHubspotSyncLogs(wid, params) {
|
|
7954
|
-
const
|
|
7955
|
-
if (params?.pageSize)
|
|
7956
|
-
if (params?.cursor)
|
|
7957
|
-
const qs =
|
|
8198
|
+
const query2 = new URLSearchParams();
|
|
8199
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
8200
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
8201
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
7958
8202
|
return this.fetch(
|
|
7959
8203
|
`w/${wid}/app-connections/hubspot/sync/logs${qs}`
|
|
7960
8204
|
);
|
|
@@ -7968,6 +8212,37 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
7968
8212
|
|
|
7969
8213
|
// src/api/sites.ts
|
|
7970
8214
|
var SitesApi = class extends BaseApiClient {
|
|
8215
|
+
/** Start a fresh synthetic patient session on the Site's configured Workflow. */
|
|
8216
|
+
async startPublicDemo(wid, siteUuid, request) {
|
|
8217
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
|
|
8218
|
+
method: "POST",
|
|
8219
|
+
body: JSON.stringify(request)
|
|
8220
|
+
});
|
|
8221
|
+
}
|
|
8222
|
+
/** Read only a demo the acting Member drives. */
|
|
8223
|
+
async getPublicDemo(wid, siteUuid, runId) {
|
|
8224
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
|
|
8225
|
+
}
|
|
8226
|
+
/** End this visitor's run and release its test resources. */
|
|
8227
|
+
async endPublicDemo(wid, siteUuid, runId) {
|
|
8228
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
|
|
8229
|
+
method: "POST",
|
|
8230
|
+
keepalive: true,
|
|
8231
|
+
body: JSON.stringify({})
|
|
8232
|
+
});
|
|
8233
|
+
}
|
|
8234
|
+
async sendPublicDemoMessage(wid, siteUuid, runId, request) {
|
|
8235
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
|
|
8236
|
+
method: "POST",
|
|
8237
|
+
body: JSON.stringify(request)
|
|
8238
|
+
});
|
|
8239
|
+
}
|
|
8240
|
+
async submitPublicDemoForm(wid, siteUuid, runId, request) {
|
|
8241
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
|
|
8242
|
+
method: "PUT",
|
|
8243
|
+
body: JSON.stringify(request)
|
|
8244
|
+
});
|
|
8245
|
+
}
|
|
7971
8246
|
/** List all sites in a workspace. */
|
|
7972
8247
|
async getSites(wid) {
|
|
7973
8248
|
return this.fetch(`w/${wid}/sites`);
|
|
@@ -8007,6 +8282,15 @@ var SitesApi = class extends BaseApiClient {
|
|
|
8007
8282
|
async getSiteSource(wid, siteId) {
|
|
8008
8283
|
return this.fetch(`w/${wid}/sites/${siteId}/source`);
|
|
8009
8284
|
}
|
|
8285
|
+
/** List source release revisions from newest to oldest. */
|
|
8286
|
+
async getSiteSourceReleases(wid, siteId, options = {}) {
|
|
8287
|
+
const params = new URLSearchParams();
|
|
8288
|
+
if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
|
|
8289
|
+
if (options.limit != null) params.set("limit", String(options.limit));
|
|
8290
|
+
return this.fetch(
|
|
8291
|
+
`w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
|
|
8292
|
+
);
|
|
8293
|
+
}
|
|
8010
8294
|
/** Starter templates the caller may seed (superuser-only ones filtered server-side). */
|
|
8011
8295
|
async getSiteSourceTemplates(wid, siteId) {
|
|
8012
8296
|
return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
|
|
@@ -8088,8 +8372,8 @@ var SitesApi = class extends BaseApiClient {
|
|
|
8088
8372
|
* (e.g. one the builder has selected but not yet saved).
|
|
8089
8373
|
*/
|
|
8090
8374
|
async getThemeSettings(wid, siteId, theme) {
|
|
8091
|
-
const
|
|
8092
|
-
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${
|
|
8375
|
+
const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
|
|
8376
|
+
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
|
|
8093
8377
|
}
|
|
8094
8378
|
/** Save values for the active theme's settings (validated against the schema). */
|
|
8095
8379
|
async updateThemeSettings(wid, siteId, values) {
|
|
@@ -8235,9 +8519,9 @@ var SitesApi = class extends BaseApiClient {
|
|
|
8235
8519
|
if (parentId !== void 0 && parentId !== null) {
|
|
8236
8520
|
params.append("parent_id", parentId.toString());
|
|
8237
8521
|
}
|
|
8238
|
-
const
|
|
8522
|
+
const query2 = params.toString();
|
|
8239
8523
|
return this.fetch(
|
|
8240
|
-
`w/${wid}/sites/${siteId}/menu/items${
|
|
8524
|
+
`w/${wid}/sites/${siteId}/menu/items${query2 ? `?${query2}` : ""}`
|
|
8241
8525
|
);
|
|
8242
8526
|
}
|
|
8243
8527
|
/** Create a new menu item in a site's navigation. */
|
|
@@ -8478,8 +8762,8 @@ function supportRequestParams(params) {
|
|
|
8478
8762
|
if (params?.linearLinked !== void 0) {
|
|
8479
8763
|
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
8480
8764
|
}
|
|
8481
|
-
const
|
|
8482
|
-
return
|
|
8765
|
+
const query2 = searchParams.toString();
|
|
8766
|
+
return query2 ? `?${query2}` : "";
|
|
8483
8767
|
}
|
|
8484
8768
|
var SupportRequestsApi = class extends BaseApiClient {
|
|
8485
8769
|
async listSupportRequests(params) {
|
|
@@ -8893,8 +9177,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
8893
9177
|
* for is the state it is in.
|
|
8894
9178
|
*/
|
|
8895
9179
|
async deleteJourneyDraft(wid, journeyId, expectedUpdatedAt) {
|
|
8896
|
-
const
|
|
8897
|
-
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${
|
|
9180
|
+
const query2 = new URLSearchParams({ expectedUpdatedAt });
|
|
9181
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query2.toString()}`, {
|
|
8898
9182
|
method: "DELETE"
|
|
8899
9183
|
});
|
|
8900
9184
|
}
|
|
@@ -8905,11 +9189,13 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
8905
9189
|
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
8906
9190
|
*/
|
|
8907
9191
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
8908
|
-
const
|
|
8909
|
-
if (includeArchived)
|
|
8910
|
-
if (pageOpts?.
|
|
8911
|
-
if (pageOpts?.
|
|
8912
|
-
|
|
9192
|
+
const query2 = new URLSearchParams();
|
|
9193
|
+
if (includeArchived) query2.set("include_archived", "true");
|
|
9194
|
+
if (pageOpts?.search) query2.set("search", pageOpts.search);
|
|
9195
|
+
if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
|
|
9196
|
+
if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
|
|
9197
|
+
if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
|
|
9198
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8913
9199
|
return this.fetch(`w/${wid}/journeys${qs}`);
|
|
8914
9200
|
}
|
|
8915
9201
|
/**
|
|
@@ -9035,9 +9321,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9035
9321
|
* `additionalMembers` is the size of a batch about to be enrolled.
|
|
9036
9322
|
*/
|
|
9037
9323
|
async getJourneySendEstimate(wid, journeyId, additionalMembers = 0) {
|
|
9038
|
-
const
|
|
9324
|
+
const query2 = new URLSearchParams({ additionalMembers: String(additionalMembers) });
|
|
9039
9325
|
return this.fetch(
|
|
9040
|
-
`w/${wid}/journeys/${journeyId}/send-estimate?${
|
|
9326
|
+
`w/${wid}/journeys/${journeyId}/send-estimate?${query2.toString()}`
|
|
9041
9327
|
);
|
|
9042
9328
|
}
|
|
9043
9329
|
/** Create a step within a journey. */
|
|
@@ -9126,9 +9412,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9126
9412
|
qs.set("currentTaskId", String(params.currentTaskId));
|
|
9127
9413
|
if (params?.runtimeFailureEdgeId !== void 0)
|
|
9128
9414
|
qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
|
|
9129
|
-
const
|
|
9415
|
+
const query2 = qs.toString();
|
|
9130
9416
|
return this.fetch(
|
|
9131
|
-
`w/${wid}/journeys/${journeyId}/members${
|
|
9417
|
+
`w/${wid}/journeys/${journeyId}/members${query2 ? `?${query2}` : ""}`
|
|
9132
9418
|
);
|
|
9133
9419
|
}
|
|
9134
9420
|
/** Enroll one or more members in a journey. */
|
|
@@ -9187,9 +9473,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9187
9473
|
if (params.zeroEmissionOnly !== void 0) {
|
|
9188
9474
|
qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
|
|
9189
9475
|
}
|
|
9190
|
-
const
|
|
9476
|
+
const query2 = qs.toString();
|
|
9191
9477
|
return this.fetch(
|
|
9192
|
-
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (
|
|
9478
|
+
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query2 ? `?${query2}` : "")
|
|
9193
9479
|
);
|
|
9194
9480
|
}
|
|
9195
9481
|
/** List members currently or historically associated with one journey step. */
|
|
@@ -9199,9 +9485,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9199
9485
|
if (params.mode) qs.set("mode", params.mode);
|
|
9200
9486
|
if (params.page) qs.set("page", String(params.page));
|
|
9201
9487
|
if (params.pageSize) qs.set("pageSize", String(params.pageSize));
|
|
9202
|
-
const
|
|
9488
|
+
const query2 = qs.toString();
|
|
9203
9489
|
return this.fetch(
|
|
9204
|
-
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${
|
|
9490
|
+
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query2 ? `?${query2}` : ""}`
|
|
9205
9491
|
);
|
|
9206
9492
|
}
|
|
9207
9493
|
/** Get member counts by status for each journey step. */
|
|
@@ -9263,6 +9549,12 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
9263
9549
|
|
|
9264
9550
|
// src/api/workflows.ts
|
|
9265
9551
|
var WorkflowsApi = class extends BaseApiClient {
|
|
9552
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
9553
|
+
const body = new FormData();
|
|
9554
|
+
body.append("file", file, relativePath.split("/").pop());
|
|
9555
|
+
body.append("relativePath", relativePath);
|
|
9556
|
+
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
9557
|
+
}
|
|
9266
9558
|
/** List all workflows in a workspace, optionally including archived ones. */
|
|
9267
9559
|
async getWorkflows(wid, options = {}) {
|
|
9268
9560
|
const params = new URLSearchParams();
|
|
@@ -9311,8 +9603,8 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
9311
9603
|
* portion so the active count can be derived.
|
|
9312
9604
|
*/
|
|
9313
9605
|
async getWorkflowDiagram(wid, id, options = {}) {
|
|
9314
|
-
const
|
|
9315
|
-
return this.fetch(`w/${wid}/workflows/${id}/diagram${
|
|
9606
|
+
const query2 = options.includeArchived ? "?include_archived=true" : "";
|
|
9607
|
+
return this.fetch(`w/${wid}/workflows/${id}/diagram${query2}`);
|
|
9316
9608
|
}
|
|
9317
9609
|
/**
|
|
9318
9610
|
* The outline a Workflow's diagram is drawn from: its active Tasks, its
|
|
@@ -9626,36 +9918,36 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
9626
9918
|
};
|
|
9627
9919
|
|
|
9628
9920
|
// src/api/workflow-notes.ts
|
|
9629
|
-
function notesPath(wid, workflowId, noteId,
|
|
9921
|
+
function notesPath(wid, workflowId, noteId, query2) {
|
|
9630
9922
|
const base = noteId == null ? `w/${wid}/workflows/${workflowId}/notes` : `w/${wid}/workflows/${workflowId}/notes/${noteId}`;
|
|
9631
|
-
if (
|
|
9923
|
+
if (query2?.workflowRevisionId == null) return base;
|
|
9632
9924
|
const params = new URLSearchParams({
|
|
9633
|
-
workflowRevisionId: String(
|
|
9925
|
+
workflowRevisionId: String(query2.workflowRevisionId)
|
|
9634
9926
|
});
|
|
9635
9927
|
return `${base}?${params.toString()}`;
|
|
9636
9928
|
}
|
|
9637
9929
|
var WorkflowNotesApi = class extends BaseApiClient {
|
|
9638
9930
|
/** List notes for a workflow root (draft unless `workflowRevisionId` is set). */
|
|
9639
|
-
async getWorkflowNotes(wid, workflowId,
|
|
9640
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
9931
|
+
async getWorkflowNotes(wid, workflowId, query2) {
|
|
9932
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2));
|
|
9641
9933
|
}
|
|
9642
9934
|
/** Create a new note on a workflow's draft (or a pinned draft revision). */
|
|
9643
|
-
async createWorkflowNote(wid, workflowId, data,
|
|
9644
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
9935
|
+
async createWorkflowNote(wid, workflowId, data, query2) {
|
|
9936
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2), {
|
|
9645
9937
|
method: "POST",
|
|
9646
9938
|
body: JSON.stringify(data)
|
|
9647
9939
|
});
|
|
9648
9940
|
}
|
|
9649
9941
|
/** Update an existing workflow note with partial data. */
|
|
9650
|
-
async updateWorkflowNote(wid, workflowId, noteId, data,
|
|
9651
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
9942
|
+
async updateWorkflowNote(wid, workflowId, noteId, data, query2) {
|
|
9943
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
9652
9944
|
method: "PUT",
|
|
9653
9945
|
body: JSON.stringify(data)
|
|
9654
9946
|
});
|
|
9655
9947
|
}
|
|
9656
9948
|
/** Delete a workflow note by ID. */
|
|
9657
|
-
async deleteWorkflowNote(wid, workflowId, noteId,
|
|
9658
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
9949
|
+
async deleteWorkflowNote(wid, workflowId, noteId, query2) {
|
|
9950
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
9659
9951
|
method: "DELETE"
|
|
9660
9952
|
});
|
|
9661
9953
|
}
|
|
@@ -9706,6 +9998,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
9706
9998
|
Scope2["WORKSPACE_READ"] = "workspace:read";
|
|
9707
9999
|
Scope2["WORKSPACE_WRITE"] = "workspace:write";
|
|
9708
10000
|
Scope2["WORKSPACE_ADMIN"] = "workspace:admin";
|
|
10001
|
+
Scope2["MEDICAL_BILLING_READ"] = "medical_billing:read";
|
|
10002
|
+
Scope2["MEDICAL_BILLING_WRITE"] = "medical_billing:write";
|
|
10003
|
+
Scope2["MEDICAL_BILLING_ADMIN"] = "medical_billing:admin";
|
|
9709
10004
|
Scope2["MEMBERS_READ"] = "members:read";
|
|
9710
10005
|
Scope2["MEMBERS_WRITE"] = "members:write";
|
|
9711
10006
|
Scope2["MEMBERS_ADMIN"] = "members:admin";
|
|
@@ -9715,6 +10010,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
9715
10010
|
Scope2["CHATS_READ"] = "chats:read";
|
|
9716
10011
|
Scope2["CHATS_WRITE"] = "chats:write";
|
|
9717
10012
|
Scope2["CHATS_ADMIN"] = "chats:admin";
|
|
10013
|
+
Scope2["DEMOS_RUN"] = "demos:run";
|
|
9718
10014
|
Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
|
|
9719
10015
|
Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
|
|
9720
10016
|
Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
|
|
@@ -9965,6 +10261,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
9965
10261
|
EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
|
|
9966
10262
|
EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
|
|
9967
10263
|
EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
|
|
10264
|
+
EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
|
|
9968
10265
|
EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
|
|
9969
10266
|
EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
|
|
9970
10267
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
@@ -10056,9 +10353,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
10056
10353
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
10057
10354
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
10058
10355
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
10059
|
-
WorkspaceFeature2["JOURNEY_V2_EDITOR"] = "journey_v2_editor";
|
|
10060
|
-
WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
|
|
10061
|
-
WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
|
|
10062
10356
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
10063
10357
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
10064
10358
|
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
@@ -10066,6 +10360,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
10066
10360
|
WorkspaceFeature2["MONDAY"] = "monday";
|
|
10067
10361
|
WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
|
|
10068
10362
|
WorkspaceFeature2["CLAIM_MD"] = "claim_md";
|
|
10363
|
+
WorkspaceFeature2["STEDI"] = "stedi";
|
|
10069
10364
|
WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
|
|
10070
10365
|
WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
|
|
10071
10366
|
WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
|
|
@@ -10077,6 +10372,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
10077
10372
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
10078
10373
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
10079
10374
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
10375
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
10376
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
10377
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
10378
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
10379
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
10080
10380
|
return WorkspaceFeature2;
|
|
10081
10381
|
})(WorkspaceFeature || {});
|
|
10082
10382
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -10297,6 +10597,14 @@ var CapturedEffectKind = {
|
|
|
10297
10597
|
};
|
|
10298
10598
|
|
|
10299
10599
|
// src/types/generated/test_chat_run_inbound.ts
|
|
10600
|
+
var FaxDocumentRefusal = {
|
|
10601
|
+
fax_document_invalid: "fax_document_invalid"
|
|
10602
|
+
};
|
|
10603
|
+
var FaxRunRefusal = {
|
|
10604
|
+
fax_run_on_the_fax_channel: "fax_run_on_the_fax_channel",
|
|
10605
|
+
fax_run_is_manual: "fax_run_is_manual",
|
|
10606
|
+
fax_run_takes_no_identity: "fax_run_takes_no_identity"
|
|
10607
|
+
};
|
|
10300
10608
|
var InboundRefusal = {
|
|
10301
10609
|
run_not_found: "run_not_found",
|
|
10302
10610
|
run_ended: "run_ended",
|
|
@@ -11042,19 +11350,12 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11042
11350
|
}
|
|
11043
11351
|
/** List client workspaces managed by this reseller workspace, paginated. */
|
|
11044
11352
|
async getResellerWorkspaces(wid, params) {
|
|
11045
|
-
const
|
|
11046
|
-
if (params?.page !== void 0)
|
|
11047
|
-
if (params?.pageSize !== void 0)
|
|
11048
|
-
const qs =
|
|
11353
|
+
const query2 = new URLSearchParams();
|
|
11354
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
11355
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
11356
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11049
11357
|
return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
|
|
11050
11358
|
}
|
|
11051
|
-
/** Create a new client workspace under a reseller workspace. */
|
|
11052
|
-
async createClientWorkspace(wid, data) {
|
|
11053
|
-
return this.fetch(`w/${wid}/reseller/workspaces`, {
|
|
11054
|
-
method: "POST",
|
|
11055
|
-
body: JSON.stringify(data)
|
|
11056
|
-
});
|
|
11057
|
-
}
|
|
11058
11359
|
/** Get a single client workspace by ID. */
|
|
11059
11360
|
async getClientWorkspace(wid, workspaceId) {
|
|
11060
11361
|
return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
|
|
@@ -11164,7 +11465,9 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11164
11465
|
searchParams.set("revision_mode", "active");
|
|
11165
11466
|
}
|
|
11166
11467
|
const qs = searchParams.toString();
|
|
11167
|
-
const data = await this.fetch(
|
|
11468
|
+
const data = await this.fetch(
|
|
11469
|
+
`w/${wid}/export${qs ? `?${qs}` : ""}`
|
|
11470
|
+
);
|
|
11168
11471
|
this.verifyExportSelection(data, workflowId, options);
|
|
11169
11472
|
return data;
|
|
11170
11473
|
}
|
|
@@ -11455,6 +11758,81 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
11455
11758
|
}
|
|
11456
11759
|
};
|
|
11457
11760
|
|
|
11761
|
+
// src/api/medical-billing.ts
|
|
11762
|
+
function query(params) {
|
|
11763
|
+
const values = new URLSearchParams();
|
|
11764
|
+
if (params?.after != null) values.set("after", String(params.after));
|
|
11765
|
+
if (params?.limit != null) values.set("limit", String(params.limit));
|
|
11766
|
+
if (params?.memberId != null) values.set("member_id", String(params.memberId));
|
|
11767
|
+
if (params?.connectionId != null) values.set("connection_id", String(params.connectionId));
|
|
11768
|
+
return values.size ? `?${values}` : "";
|
|
11769
|
+
}
|
|
11770
|
+
var MedicalBillingApi = class extends BaseApiClient {
|
|
11771
|
+
listMedicalBillingConnections(wid) {
|
|
11772
|
+
return this.fetch(`w/${wid}/medical-billing/connections`);
|
|
11773
|
+
}
|
|
11774
|
+
submitMedicalClaim(wid, body) {
|
|
11775
|
+
return this.fetch(`w/${wid}/medical-billing/claim-submissions`, {
|
|
11776
|
+
method: "POST",
|
|
11777
|
+
body: JSON.stringify(body)
|
|
11778
|
+
});
|
|
11779
|
+
}
|
|
11780
|
+
listMedicalBillingProviders(wid, params) {
|
|
11781
|
+
return this.fetch(`w/${wid}/medical-billing/providers${query(params)}`);
|
|
11782
|
+
}
|
|
11783
|
+
listMedicalCoverages(wid, params) {
|
|
11784
|
+
return this.fetch(`w/${wid}/medical-billing/coverages${query(params)}`);
|
|
11785
|
+
}
|
|
11786
|
+
createMedicalCoverage(wid, body) {
|
|
11787
|
+
return this.fetch(`w/${wid}/medical-billing/coverages`, {
|
|
11788
|
+
method: "POST",
|
|
11789
|
+
body: JSON.stringify(body)
|
|
11790
|
+
});
|
|
11791
|
+
}
|
|
11792
|
+
updateMedicalCoverage(wid, id, body) {
|
|
11793
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}`, {
|
|
11794
|
+
method: "PATCH",
|
|
11795
|
+
body: JSON.stringify(body)
|
|
11796
|
+
});
|
|
11797
|
+
}
|
|
11798
|
+
setMedicalPayerRoute(wid, id, body) {
|
|
11799
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}/payer-routes`, {
|
|
11800
|
+
method: "POST",
|
|
11801
|
+
body: JSON.stringify(body)
|
|
11802
|
+
});
|
|
11803
|
+
}
|
|
11804
|
+
listMedicalCharges(wid, params) {
|
|
11805
|
+
return this.fetch(`w/${wid}/medical-billing/charges${query(params)}`);
|
|
11806
|
+
}
|
|
11807
|
+
createMedicalCharge(wid, body) {
|
|
11808
|
+
return this.fetch(`w/${wid}/medical-billing/charges`, {
|
|
11809
|
+
method: "POST",
|
|
11810
|
+
body: JSON.stringify(body)
|
|
11811
|
+
});
|
|
11812
|
+
}
|
|
11813
|
+
updateMedicalCharge(wid, id, body) {
|
|
11814
|
+
return this.fetch(`w/${wid}/medical-billing/charges/${id}`, {
|
|
11815
|
+
method: "PATCH",
|
|
11816
|
+
body: JSON.stringify(body)
|
|
11817
|
+
});
|
|
11818
|
+
}
|
|
11819
|
+
listMedicalClaims(wid, params) {
|
|
11820
|
+
return this.fetch(`w/${wid}/medical-billing/claims${query(params)}`);
|
|
11821
|
+
}
|
|
11822
|
+
getMedicalClaim(wid, id) {
|
|
11823
|
+
return this.fetch(`w/${wid}/medical-billing/claims/${encodeURIComponent(id)}`);
|
|
11824
|
+
}
|
|
11825
|
+
listMedicalEligibilityChecks(wid, params) {
|
|
11826
|
+
return this.fetch(`w/${wid}/medical-billing/eligibility-checks${query(params)}`);
|
|
11827
|
+
}
|
|
11828
|
+
listMedicalRemittances(wid, params) {
|
|
11829
|
+
return this.fetch(`w/${wid}/medical-billing/remittances${query(params)}`);
|
|
11830
|
+
}
|
|
11831
|
+
getMedicalRemittance(wid, id) {
|
|
11832
|
+
return this.fetch(`w/${wid}/medical-billing/remittances/${id}`);
|
|
11833
|
+
}
|
|
11834
|
+
};
|
|
11835
|
+
|
|
11458
11836
|
// src/api/dashboards.ts
|
|
11459
11837
|
var DashboardsApi = class extends BaseApiClient {
|
|
11460
11838
|
/** List all dashboards for the workspace, in tab order. */
|
|
@@ -11487,9 +11865,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
11487
11865
|
async getDashboardChannelStats(wid, options) {
|
|
11488
11866
|
const params = new URLSearchParams();
|
|
11489
11867
|
if (options?.hours !== void 0) params.append("hours", options.hours.toString());
|
|
11490
|
-
const
|
|
11868
|
+
const query2 = params.toString();
|
|
11491
11869
|
return this.fetch(
|
|
11492
|
-
`w/${wid}/dashboards/stats/channels${
|
|
11870
|
+
`w/${wid}/dashboards/stats/channels${query2 ? `?${query2}` : ""}`
|
|
11493
11871
|
);
|
|
11494
11872
|
}
|
|
11495
11873
|
/**
|
|
@@ -11501,9 +11879,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
11501
11879
|
async getDashboardWorkflowAssignmentStats(wid, options) {
|
|
11502
11880
|
const params = new URLSearchParams();
|
|
11503
11881
|
if (options?.hours != null) params.append("hours", options.hours.toString());
|
|
11504
|
-
const
|
|
11882
|
+
const query2 = params.toString();
|
|
11505
11883
|
return this.fetch(
|
|
11506
|
-
`w/${wid}/dashboards/stats/workflow-assignments${
|
|
11884
|
+
`w/${wid}/dashboards/stats/workflow-assignments${query2 ? `?${query2}` : ""}`
|
|
11507
11885
|
);
|
|
11508
11886
|
}
|
|
11509
11887
|
/**
|
|
@@ -11527,9 +11905,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
11527
11905
|
if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
|
|
11528
11906
|
if (options?.check !== void 0) params.append("check", options.check);
|
|
11529
11907
|
if (options?.severity !== void 0) params.append("severity", options.severity);
|
|
11530
|
-
const
|
|
11908
|
+
const query2 = params.toString();
|
|
11531
11909
|
return this.fetch(
|
|
11532
|
-
`w/${wid}/configuration-health${
|
|
11910
|
+
`w/${wid}/configuration-health${query2 ? `?${query2}` : ""}`
|
|
11533
11911
|
);
|
|
11534
11912
|
}
|
|
11535
11913
|
};
|
|
@@ -11637,11 +12015,11 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
11637
12015
|
var ExperimentsApi = class extends BaseApiClient {
|
|
11638
12016
|
/** List experiments with group summaries and assignment counts. */
|
|
11639
12017
|
async getExperiments(wid, params) {
|
|
11640
|
-
const
|
|
11641
|
-
if (params?.page !== void 0)
|
|
11642
|
-
if (params?.pageSize !== void 0)
|
|
11643
|
-
if (params?.
|
|
11644
|
-
const qs =
|
|
12018
|
+
const query2 = new URLSearchParams();
|
|
12019
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
12020
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
12021
|
+
if (params?.archived !== void 0) query2.set("archived", String(params.archived));
|
|
12022
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
11645
12023
|
return this.fetch(`w/${wid}/experiments${qs}`);
|
|
11646
12024
|
}
|
|
11647
12025
|
/** Get a single experiment by ID (includes groups). */
|
|
@@ -12017,8 +12395,8 @@ var MotdApi = class extends BaseApiClient {
|
|
|
12017
12395
|
const params = new URLSearchParams();
|
|
12018
12396
|
if (options?.date !== void 0) params.append("date", options.date);
|
|
12019
12397
|
if (options?.offset !== void 0) params.append("offset", options.offset.toString());
|
|
12020
|
-
const
|
|
12021
|
-
return this.fetch(`w/${wid}/motd${
|
|
12398
|
+
const query2 = params.toString();
|
|
12399
|
+
return this.fetch(`w/${wid}/motd${query2 ? `?${query2}` : ""}`);
|
|
12022
12400
|
}
|
|
12023
12401
|
};
|
|
12024
12402
|
|
|
@@ -12030,13 +12408,13 @@ var InterventionRequestsApi = class extends BaseApiClient {
|
|
|
12030
12408
|
}
|
|
12031
12409
|
/** List intervention requests in a workspace, newest first. */
|
|
12032
12410
|
async getInterventionRequests(wid, params = {}) {
|
|
12033
|
-
const
|
|
12034
|
-
if (params.kind)
|
|
12035
|
-
if (params.openOnly)
|
|
12036
|
-
if (params.chatId !== void 0)
|
|
12037
|
-
if (params.unroutedOnly)
|
|
12038
|
-
if (params.limit !== void 0)
|
|
12039
|
-
const qs =
|
|
12411
|
+
const query2 = new URLSearchParams();
|
|
12412
|
+
if (params.kind) query2.set("kind", params.kind);
|
|
12413
|
+
if (params.openOnly) query2.set("openOnly", "true");
|
|
12414
|
+
if (params.chatId !== void 0) query2.set("chatId", String(params.chatId));
|
|
12415
|
+
if (params.unroutedOnly) query2.set("unroutedOnly", "true");
|
|
12416
|
+
if (params.limit !== void 0) query2.set("limit", String(params.limit));
|
|
12417
|
+
const qs = query2.toString();
|
|
12040
12418
|
return this.fetch(
|
|
12041
12419
|
`w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
|
|
12042
12420
|
);
|
|
@@ -12067,8 +12445,7 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
12067
12445
|
const q = new URLSearchParams();
|
|
12068
12446
|
if (params?.page !== void 0) q.set("page", String(params.page));
|
|
12069
12447
|
if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
|
|
12070
|
-
if (params?.
|
|
12071
|
-
q.set("includeArchived", String(params.includeArchived));
|
|
12448
|
+
if (params?.archived !== void 0) q.set("archived", String(params.archived));
|
|
12072
12449
|
if (params?.source) q.set("source", params.source);
|
|
12073
12450
|
const qs = q.toString() ? `?${q.toString()}` : "";
|
|
12074
12451
|
return this.fetch(`w/${wid}/metrics${qs}`);
|
|
@@ -12112,6 +12489,18 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
12112
12489
|
`w/${wid}/metrics/${metricId}/series?${q.toString()}`
|
|
12113
12490
|
);
|
|
12114
12491
|
}
|
|
12492
|
+
/**
|
|
12493
|
+
* Series for several metrics in one request, each with its default
|
|
12494
|
+
* aggregation. Items come back in the order the ids were given.
|
|
12495
|
+
*/
|
|
12496
|
+
async getMetricSeriesBatch(wid, params) {
|
|
12497
|
+
const q = new URLSearchParams();
|
|
12498
|
+
for (const id of params.metricIds) q.append("metricIds", String(id));
|
|
12499
|
+
q.set("start", params.start);
|
|
12500
|
+
q.set("end", params.end);
|
|
12501
|
+
if (params.bucket) q.set("bucket", params.bucket);
|
|
12502
|
+
return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
|
|
12503
|
+
}
|
|
12115
12504
|
/** On-demand compute of enabled chat-source metrics for one chat. */
|
|
12116
12505
|
async computeChatMetrics(wid, data) {
|
|
12117
12506
|
return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
|
|
@@ -12181,8 +12570,8 @@ function withFilters(params, options) {
|
|
|
12181
12570
|
return params;
|
|
12182
12571
|
}
|
|
12183
12572
|
function suffix(params) {
|
|
12184
|
-
const
|
|
12185
|
-
return
|
|
12573
|
+
const query2 = params.toString();
|
|
12574
|
+
return query2 ? `?${query2}` : "";
|
|
12186
12575
|
}
|
|
12187
12576
|
var TrackedLinksApi = class extends BaseApiClient {
|
|
12188
12577
|
/** Header counters plus whether shortening is configured and enabled. */
|
|
@@ -12383,6 +12772,8 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
12383
12772
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
12384
12773
|
documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
|
|
12385
12774
|
claimMd: new ClaimMdApi(apiKey, baseUrl, customFetch),
|
|
12775
|
+
stedi: new StediApi(apiKey, baseUrl, customFetch),
|
|
12776
|
+
medicalBilling: new MedicalBillingApi(apiKey, baseUrl, customFetch),
|
|
12386
12777
|
hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
|
|
12387
12778
|
features: new FeaturesApi(apiKey, baseUrl, customFetch),
|
|
12388
12779
|
files: new FilesApi(apiKey, baseUrl, customFetch),
|
|
@@ -12447,6 +12838,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12447
12838
|
"archiveMemberByExternalId",
|
|
12448
12839
|
"archiveMemberRelationship",
|
|
12449
12840
|
"archivePersona",
|
|
12841
|
+
"archiveInbox",
|
|
12450
12842
|
"archivePhoneNumber",
|
|
12451
12843
|
"archiveStep",
|
|
12452
12844
|
"archiveTask",
|
|
@@ -12520,7 +12912,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12520
12912
|
"createChatCompletion",
|
|
12521
12913
|
"createChatFilter",
|
|
12522
12914
|
"createChatLabel",
|
|
12523
|
-
"createClientWorkspace",
|
|
12524
12915
|
"createConnection",
|
|
12525
12916
|
"createContactPermission",
|
|
12526
12917
|
"createCustomTool",
|
|
@@ -12728,6 +13119,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12728
13119
|
"getApiKeys",
|
|
12729
13120
|
"getArchiveBlockers",
|
|
12730
13121
|
"getAthenaPlatformApp",
|
|
13122
|
+
"getFhirConnectionSyncConfig",
|
|
12731
13123
|
"getAssignment",
|
|
12732
13124
|
"getAssignmentCelContext",
|
|
12733
13125
|
"getAssignmentMessages",
|
|
@@ -12786,7 +13178,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12786
13178
|
"getChats",
|
|
12787
13179
|
"getChatsDailyCreationStats",
|
|
12788
13180
|
"getChatsNeedsResponse",
|
|
12789
|
-
"getChildThreadMessages",
|
|
12790
13181
|
"getClientWorkspace",
|
|
12791
13182
|
"getConfigurationHealth",
|
|
12792
13183
|
"getConfluenceStatus",
|
|
@@ -12828,11 +13219,27 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12828
13219
|
"getDevices",
|
|
12829
13220
|
"getDiscordBot",
|
|
12830
13221
|
"getDiscordBotAccounts",
|
|
12831
|
-
"getDiscordBotByUuid",
|
|
12832
13222
|
"getDiscordBots",
|
|
12833
13223
|
"getDiscordGuilds",
|
|
12834
13224
|
"getDiscordThreads",
|
|
12835
13225
|
"getClaimMdStatus",
|
|
13226
|
+
"listMedicalBillingConnections",
|
|
13227
|
+
"submitMedicalClaim",
|
|
13228
|
+
"listMedicalBillingProviders",
|
|
13229
|
+
"listMedicalCoverages",
|
|
13230
|
+
"createMedicalCoverage",
|
|
13231
|
+
"updateMedicalCoverage",
|
|
13232
|
+
"setMedicalPayerRoute",
|
|
13233
|
+
"listMedicalCharges",
|
|
13234
|
+
"createMedicalCharge",
|
|
13235
|
+
"updateMedicalCharge",
|
|
13236
|
+
"listMedicalClaims",
|
|
13237
|
+
"getMedicalClaim",
|
|
13238
|
+
"listMedicalEligibilityChecks",
|
|
13239
|
+
"listMedicalRemittances",
|
|
13240
|
+
"getMedicalRemittance",
|
|
13241
|
+
"getStediConnections",
|
|
13242
|
+
"getStediConnectionStatus",
|
|
12836
13243
|
"getDocumoFaxSetup",
|
|
12837
13244
|
"listDocumoFaxes",
|
|
12838
13245
|
"getDocumoFaxStatus",
|
|
@@ -12858,6 +13265,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12858
13265
|
"getQueryFields",
|
|
12859
13266
|
"getSiteSharing",
|
|
12860
13267
|
"getSiteSource",
|
|
13268
|
+
"getSiteSourceReleases",
|
|
12861
13269
|
"getSiteSourceTemplates",
|
|
12862
13270
|
"getThemeSettings",
|
|
12863
13271
|
"importSiteSourceZip",
|
|
@@ -12914,6 +13322,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12914
13322
|
"getInbox",
|
|
12915
13323
|
"getInboxEmail",
|
|
12916
13324
|
"getInboxEmails",
|
|
13325
|
+
"getInboxArchiveBlockers",
|
|
12917
13326
|
"getInboxOutboundEmailStats",
|
|
12918
13327
|
"getInboxThreads",
|
|
12919
13328
|
"getInboxes",
|
|
@@ -12989,6 +13398,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12989
13398
|
"getPhoneCalls",
|
|
12990
13399
|
"getPhoneCallByUuid",
|
|
12991
13400
|
"getPhoneNumber",
|
|
13401
|
+
"getPhoneNumberActivity",
|
|
12992
13402
|
"getPhoneNumberCalls",
|
|
12993
13403
|
"getPhoneNumberFaxes",
|
|
12994
13404
|
"getPhoneNumberMessages",
|
|
@@ -13042,6 +13452,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13042
13452
|
"getSupervisor",
|
|
13043
13453
|
"getSupervisors",
|
|
13044
13454
|
"getSyncRunItems",
|
|
13455
|
+
"getSyncRunItemsPage",
|
|
13045
13456
|
"getSyncRuns",
|
|
13046
13457
|
"getTask",
|
|
13047
13458
|
"getTaskChats",
|
|
@@ -13164,6 +13575,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13164
13575
|
"deleteMetric",
|
|
13165
13576
|
"listMetricObservations",
|
|
13166
13577
|
"getMetricSeries",
|
|
13578
|
+
"getMetricSeriesBatch",
|
|
13167
13579
|
"computeChatMetrics",
|
|
13168
13580
|
"listPushSubscriptions",
|
|
13169
13581
|
"listResourceWorkflows",
|
|
@@ -13494,7 +13906,6 @@ function bindChatsMethods(target, chats) {
|
|
|
13494
13906
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
13495
13907
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
13496
13908
|
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
13497
|
-
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
13498
13909
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
13499
13910
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
13500
13911
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -13735,7 +14146,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
13735
14146
|
target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
|
|
13736
14147
|
target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
|
|
13737
14148
|
target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
|
|
13738
|
-
target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
|
|
13739
14149
|
target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
|
|
13740
14150
|
target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
|
|
13741
14151
|
target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
|
|
@@ -13792,6 +14202,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
13792
14202
|
|
|
13793
14203
|
// src/client/bindings/auth.ts
|
|
13794
14204
|
function bindAuthMethods(target, auth, assignments) {
|
|
14205
|
+
target.getAccountNotices = auth.getAccountNotices.bind(auth);
|
|
14206
|
+
target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
|
|
14207
|
+
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
13795
14208
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
13796
14209
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
13797
14210
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
@@ -13853,6 +14266,11 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
13853
14266
|
|
|
13854
14267
|
// src/client/bindings/sites.ts
|
|
13855
14268
|
function bindSitesMethods(target, sites) {
|
|
14269
|
+
target.endPublicDemo = sites.endPublicDemo.bind(sites);
|
|
14270
|
+
target.startPublicDemo = sites.startPublicDemo.bind(sites);
|
|
14271
|
+
target.getPublicDemo = sites.getPublicDemo.bind(sites);
|
|
14272
|
+
target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
|
|
14273
|
+
target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
|
|
13856
14274
|
target.getSites = sites.getSites.bind(sites);
|
|
13857
14275
|
target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
|
|
13858
14276
|
target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
|
|
@@ -13860,6 +14278,7 @@ function bindSitesMethods(target, sites) {
|
|
|
13860
14278
|
target.getSiteSharing = sites.getSiteSharing.bind(sites);
|
|
13861
14279
|
target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
|
|
13862
14280
|
target.getSiteSource = sites.getSiteSource.bind(sites);
|
|
14281
|
+
target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
|
|
13863
14282
|
target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
|
|
13864
14283
|
target.createSiteSource = sites.createSiteSource.bind(sites);
|
|
13865
14284
|
target.buildSiteSource = sites.buildSiteSource.bind(sites);
|
|
@@ -13920,6 +14339,8 @@ function bindFilesMethods(target, files) {
|
|
|
13920
14339
|
target.createFolder = files.createFolder.bind(files);
|
|
13921
14340
|
target.updateFolder = files.updateFolder.bind(files);
|
|
13922
14341
|
target.deleteFolder = files.deleteFolder.bind(files);
|
|
14342
|
+
target.reindexFile = files.reindexFile.bind(files);
|
|
14343
|
+
target.searchFile = files.searchFile.bind(files);
|
|
13923
14344
|
target.reindexFolder = files.reindexFolder.bind(files);
|
|
13924
14345
|
target.searchFolder = files.searchFolder.bind(files);
|
|
13925
14346
|
target.getFileLabels = files.getFileLabels.bind(files);
|
|
@@ -14007,6 +14428,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
14007
14428
|
target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
|
|
14008
14429
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
14009
14430
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
14431
|
+
target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
|
|
14010
14432
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
14011
14433
|
target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
|
|
14012
14434
|
target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
|
|
@@ -14098,6 +14520,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14098
14520
|
target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
|
|
14099
14521
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
14100
14522
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
14523
|
+
target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
|
|
14101
14524
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
14102
14525
|
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
14103
14526
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
@@ -14111,6 +14534,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14111
14534
|
target.createInbox = inboxes.createInbox.bind(inboxes);
|
|
14112
14535
|
target.updateInbox = inboxes.updateInbox.bind(inboxes);
|
|
14113
14536
|
target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
|
|
14537
|
+
target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
|
|
14538
|
+
target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
|
|
14114
14539
|
target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
|
|
14115
14540
|
target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
|
|
14116
14541
|
target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
|
|
@@ -14242,7 +14667,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
14242
14667
|
}
|
|
14243
14668
|
|
|
14244
14669
|
// src/client/bindings/integrations.ts
|
|
14245
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
14670
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, stedi, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
14246
14671
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
14247
14672
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
14248
14673
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
@@ -14272,7 +14697,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14272
14697
|
target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
|
|
14273
14698
|
target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
|
|
14274
14699
|
target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
|
|
14275
|
-
target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
|
|
14276
14700
|
target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
|
|
14277
14701
|
target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
|
|
14278
14702
|
target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
|
|
@@ -14337,6 +14761,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14337
14761
|
target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
|
|
14338
14762
|
target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
|
|
14339
14763
|
target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
|
|
14764
|
+
target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
|
|
14340
14765
|
target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
|
|
14341
14766
|
target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
|
|
14342
14767
|
target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
|
|
@@ -14354,6 +14779,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14354
14779
|
target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
|
|
14355
14780
|
target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
|
|
14356
14781
|
target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
|
|
14782
|
+
target.getStediConnections = stedi.getStediConnections.bind(stedi);
|
|
14783
|
+
target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
|
|
14357
14784
|
target.configureHealthie = healthie.configureHealthie.bind(healthie);
|
|
14358
14785
|
target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
|
|
14359
14786
|
target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
|
|
@@ -14429,6 +14856,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
14429
14856
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
14430
14857
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
14431
14858
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
14859
|
+
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
14432
14860
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
14433
14861
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
14434
14862
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
@@ -14475,6 +14903,13 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
14475
14903
|
|
|
14476
14904
|
// src/client/bindings/org.ts
|
|
14477
14905
|
function bindOrgMethods(target, org) {
|
|
14906
|
+
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
14907
|
+
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
14908
|
+
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
14909
|
+
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
14910
|
+
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
14911
|
+
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
14912
|
+
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
14478
14913
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
14479
14914
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
14480
14915
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -14688,6 +15123,7 @@ function bindMetricsMethods(target, metrics) {
|
|
|
14688
15123
|
target.deleteMetric = metrics.deleteMetric.bind(metrics);
|
|
14689
15124
|
target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
|
|
14690
15125
|
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
15126
|
+
target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
|
|
14691
15127
|
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
14692
15128
|
}
|
|
14693
15129
|
|
|
@@ -14771,6 +15207,21 @@ var GravityRailClient = class {
|
|
|
14771
15207
|
// WorkspaceInvitations is exposed publicly for backward compatibility
|
|
14772
15208
|
workspaceInvitations;
|
|
14773
15209
|
// Store all API modules for cross-cutting operations
|
|
15210
|
+
listMedicalBillingProviders;
|
|
15211
|
+
listMedicalCoverages;
|
|
15212
|
+
createMedicalCoverage;
|
|
15213
|
+
updateMedicalCoverage;
|
|
15214
|
+
setMedicalPayerRoute;
|
|
15215
|
+
listMedicalCharges;
|
|
15216
|
+
createMedicalCharge;
|
|
15217
|
+
updateMedicalCharge;
|
|
15218
|
+
listMedicalClaims;
|
|
15219
|
+
getMedicalClaim;
|
|
15220
|
+
listMedicalEligibilityChecks;
|
|
15221
|
+
listMedicalRemittances;
|
|
15222
|
+
getMedicalRemittance;
|
|
15223
|
+
listMedicalBillingConnections;
|
|
15224
|
+
submitMedicalClaim;
|
|
14774
15225
|
apis;
|
|
14775
15226
|
// Tasks API
|
|
14776
15227
|
getTasks;
|
|
@@ -14822,7 +15273,6 @@ var GravityRailClient = class {
|
|
|
14822
15273
|
summarizeChat;
|
|
14823
15274
|
getChatMessages;
|
|
14824
15275
|
getChatTaskTransitions;
|
|
14825
|
-
getChildThreadMessages;
|
|
14826
15276
|
getChatToolCallMessages;
|
|
14827
15277
|
getChatTools;
|
|
14828
15278
|
initiateOutboundCall;
|
|
@@ -15030,6 +15480,7 @@ var GravityRailClient = class {
|
|
|
15030
15480
|
deleteMetric;
|
|
15031
15481
|
listMetricObservations;
|
|
15032
15482
|
getMetricSeries;
|
|
15483
|
+
getMetricSeriesBatch;
|
|
15033
15484
|
computeChatMetrics;
|
|
15034
15485
|
// Dashboards API
|
|
15035
15486
|
getDashboards;
|
|
@@ -15223,7 +15674,6 @@ var GravityRailClient = class {
|
|
|
15223
15674
|
dismissNotification;
|
|
15224
15675
|
dismissAllNotifications;
|
|
15225
15676
|
getResellerWorkspaces;
|
|
15226
|
-
createClientWorkspace;
|
|
15227
15677
|
getClientWorkspace;
|
|
15228
15678
|
updateClientWorkspace;
|
|
15229
15679
|
deleteClientWorkspace;
|
|
@@ -15259,6 +15709,13 @@ var GravityRailClient = class {
|
|
|
15259
15709
|
upsertWidgetDomain;
|
|
15260
15710
|
deleteWidgetDomain;
|
|
15261
15711
|
// Org API
|
|
15712
|
+
getOrgManagerCredentialResponse;
|
|
15713
|
+
authorizeOrgManagerDelegation;
|
|
15714
|
+
getOrgManagerChats;
|
|
15715
|
+
createOrgManagerChat;
|
|
15716
|
+
getOrgManagerMessages;
|
|
15717
|
+
startOrgManagerTurn;
|
|
15718
|
+
stopOrgManagerTurn;
|
|
15262
15719
|
listOrgDomains;
|
|
15263
15720
|
registerOrgDomain;
|
|
15264
15721
|
getOrgDomain;
|
|
@@ -15333,6 +15790,9 @@ var GravityRailClient = class {
|
|
|
15333
15790
|
declineInvitation;
|
|
15334
15791
|
// Auth API
|
|
15335
15792
|
getUserAccount;
|
|
15793
|
+
getAccountNotices;
|
|
15794
|
+
viewAccountNotice;
|
|
15795
|
+
dismissAccountNotice;
|
|
15336
15796
|
updateUserAccount;
|
|
15337
15797
|
recordAcquisition;
|
|
15338
15798
|
login;
|
|
@@ -15390,6 +15850,11 @@ var GravityRailClient = class {
|
|
|
15390
15850
|
getAssignmentTools;
|
|
15391
15851
|
executeAssignmentTool;
|
|
15392
15852
|
// Sites API
|
|
15853
|
+
startPublicDemo;
|
|
15854
|
+
endPublicDemo;
|
|
15855
|
+
getPublicDemo;
|
|
15856
|
+
sendPublicDemoMessage;
|
|
15857
|
+
submitPublicDemoForm;
|
|
15393
15858
|
getSites;
|
|
15394
15859
|
checkSiteSlugAvailability;
|
|
15395
15860
|
checkSiteDomainAvailability;
|
|
@@ -15397,6 +15862,7 @@ var GravityRailClient = class {
|
|
|
15397
15862
|
getSiteSharing;
|
|
15398
15863
|
updateSiteSharing;
|
|
15399
15864
|
getSiteSource;
|
|
15865
|
+
getSiteSourceReleases;
|
|
15400
15866
|
getSiteSourceTemplates;
|
|
15401
15867
|
createSiteSource;
|
|
15402
15868
|
buildSiteSource;
|
|
@@ -15459,6 +15925,8 @@ var GravityRailClient = class {
|
|
|
15459
15925
|
createFolder;
|
|
15460
15926
|
updateFolder;
|
|
15461
15927
|
deleteFolder;
|
|
15928
|
+
reindexFile;
|
|
15929
|
+
searchFile;
|
|
15462
15930
|
reindexFolder;
|
|
15463
15931
|
searchFolder;
|
|
15464
15932
|
getFileLabels;
|
|
@@ -15515,6 +15983,7 @@ var GravityRailClient = class {
|
|
|
15515
15983
|
getWorkflowsOutlineBatch;
|
|
15516
15984
|
createWorkflow;
|
|
15517
15985
|
updateWorkflow;
|
|
15986
|
+
uploadWorkflowKnowledge;
|
|
15518
15987
|
getWorkflowDeletionPreview;
|
|
15519
15988
|
deleteWorkflow;
|
|
15520
15989
|
archiveWorkflow;
|
|
@@ -15600,6 +16069,7 @@ var GravityRailClient = class {
|
|
|
15600
16069
|
getPhoneNumberOutboundAnalyticsSummary;
|
|
15601
16070
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
15602
16071
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
16072
|
+
getPhoneNumberActivity;
|
|
15603
16073
|
getPhoneNumberMessages;
|
|
15604
16074
|
getPhoneNumberFaxes;
|
|
15605
16075
|
getPhoneNumberVoicemails;
|
|
@@ -15613,6 +16083,8 @@ var GravityRailClient = class {
|
|
|
15613
16083
|
createInbox;
|
|
15614
16084
|
updateInbox;
|
|
15615
16085
|
deleteInbox;
|
|
16086
|
+
archiveInbox;
|
|
16087
|
+
getInboxArchiveBlockers;
|
|
15616
16088
|
getInboxEmails;
|
|
15617
16089
|
getInboxEmail;
|
|
15618
16090
|
markEmailAsRead;
|
|
@@ -15771,7 +16243,6 @@ var GravityRailClient = class {
|
|
|
15771
16243
|
// Discord Bots API
|
|
15772
16244
|
getDiscordBots;
|
|
15773
16245
|
getDiscordBot;
|
|
15774
|
-
getDiscordBotByUuid;
|
|
15775
16246
|
createDiscordBot;
|
|
15776
16247
|
updateDiscordBot;
|
|
15777
16248
|
deleteDiscordBot;
|
|
@@ -15839,6 +16310,7 @@ var GravityRailClient = class {
|
|
|
15839
16310
|
fhirGetEncounterSyncRuns;
|
|
15840
16311
|
fhirRefreshEncounterPatient;
|
|
15841
16312
|
fhirBackfillEncounterSync;
|
|
16313
|
+
getFhirConnectionSyncConfig;
|
|
15842
16314
|
getAthenaPlatformApp;
|
|
15843
16315
|
verifyAthenaAccess;
|
|
15844
16316
|
connectAthena;
|
|
@@ -15854,6 +16326,8 @@ var GravityRailClient = class {
|
|
|
15854
16326
|
installClaimMd;
|
|
15855
16327
|
configureClaimMd;
|
|
15856
16328
|
verifyClaimMdKey;
|
|
16329
|
+
getStediConnections;
|
|
16330
|
+
getStediConnectionStatus;
|
|
15857
16331
|
configurePatientSync;
|
|
15858
16332
|
getPatientSyncStatus;
|
|
15859
16333
|
deletePatientSyncConnection;
|
|
@@ -15936,6 +16410,7 @@ var GravityRailClient = class {
|
|
|
15936
16410
|
startSyncRun;
|
|
15937
16411
|
getSyncRuns;
|
|
15938
16412
|
getSyncRunItems;
|
|
16413
|
+
getSyncRunItemsPage;
|
|
15939
16414
|
getMemberSyncSummary;
|
|
15940
16415
|
getConnectionFieldHomes;
|
|
15941
16416
|
getInboundRecordStatus;
|
|
@@ -16026,6 +16501,39 @@ var GravityRailClient = class {
|
|
|
16026
16501
|
constructor(apiKey, baseUrl, customFetch) {
|
|
16027
16502
|
const apis = createApiModules(apiKey, baseUrl, customFetch);
|
|
16028
16503
|
this.apis = apis;
|
|
16504
|
+
this.listMedicalBillingConnections = apis.medicalBilling.listMedicalBillingConnections.bind(
|
|
16505
|
+
apis.medicalBilling
|
|
16506
|
+
);
|
|
16507
|
+
this.submitMedicalClaim = apis.medicalBilling.submitMedicalClaim.bind(apis.medicalBilling);
|
|
16508
|
+
this.listMedicalBillingProviders = apis.medicalBilling.listMedicalBillingProviders.bind(
|
|
16509
|
+
apis.medicalBilling
|
|
16510
|
+
);
|
|
16511
|
+
this.listMedicalCoverages = apis.medicalBilling.listMedicalCoverages.bind(
|
|
16512
|
+
apis.medicalBilling
|
|
16513
|
+
);
|
|
16514
|
+
this.createMedicalCoverage = apis.medicalBilling.createMedicalCoverage.bind(
|
|
16515
|
+
apis.medicalBilling
|
|
16516
|
+
);
|
|
16517
|
+
this.updateMedicalCoverage = apis.medicalBilling.updateMedicalCoverage.bind(
|
|
16518
|
+
apis.medicalBilling
|
|
16519
|
+
);
|
|
16520
|
+
this.setMedicalPayerRoute = apis.medicalBilling.setMedicalPayerRoute.bind(
|
|
16521
|
+
apis.medicalBilling
|
|
16522
|
+
);
|
|
16523
|
+
this.listMedicalCharges = apis.medicalBilling.listMedicalCharges.bind(apis.medicalBilling);
|
|
16524
|
+
this.createMedicalCharge = apis.medicalBilling.createMedicalCharge.bind(apis.medicalBilling);
|
|
16525
|
+
this.updateMedicalCharge = apis.medicalBilling.updateMedicalCharge.bind(apis.medicalBilling);
|
|
16526
|
+
this.listMedicalClaims = apis.medicalBilling.listMedicalClaims.bind(apis.medicalBilling);
|
|
16527
|
+
this.getMedicalClaim = apis.medicalBilling.getMedicalClaim.bind(apis.medicalBilling);
|
|
16528
|
+
this.listMedicalEligibilityChecks = apis.medicalBilling.listMedicalEligibilityChecks.bind(
|
|
16529
|
+
apis.medicalBilling
|
|
16530
|
+
);
|
|
16531
|
+
this.listMedicalRemittances = apis.medicalBilling.listMedicalRemittances.bind(
|
|
16532
|
+
apis.medicalBilling
|
|
16533
|
+
);
|
|
16534
|
+
this.getMedicalRemittance = apis.medicalBilling.getMedicalRemittance.bind(
|
|
16535
|
+
apis.medicalBilling
|
|
16536
|
+
);
|
|
16029
16537
|
this.workspaceInvitations = apis.workspaceInvitations;
|
|
16030
16538
|
bindTasksMethods(this, apis.tasks, apis.abilities);
|
|
16031
16539
|
bindChatsMethods(this, apis.chats);
|
|
@@ -16091,6 +16599,7 @@ var GravityRailClient = class {
|
|
|
16091
16599
|
apis.healthie,
|
|
16092
16600
|
apis.documoFax,
|
|
16093
16601
|
apis.claimMd,
|
|
16602
|
+
apis.stedi,
|
|
16094
16603
|
apis.salesforce,
|
|
16095
16604
|
apis.hubspot,
|
|
16096
16605
|
apis.appConnections,
|
|
@@ -16186,6 +16695,7 @@ var AbilityTypeSlugs = {
|
|
|
16186
16695
|
// Tools
|
|
16187
16696
|
TOOLKITS: "tools:toolkits",
|
|
16188
16697
|
WEB_SEARCH: "tools:web_search",
|
|
16698
|
+
WEB_BROWSER: "tools:web_browser",
|
|
16189
16699
|
CONVERSATION_HISTORY: "tools:conversation_history",
|
|
16190
16700
|
MEMBER_MEMORY: "memory:member_memory",
|
|
16191
16701
|
IMAGE_GENERATION: "tools:image_generation",
|
|
@@ -16419,10 +16929,60 @@ var SiteDnsRecordType = {
|
|
|
16419
16929
|
TXT: "TXT"
|
|
16420
16930
|
};
|
|
16421
16931
|
|
|
16932
|
+
// src/types/generated/phone_voice_trust.ts
|
|
16933
|
+
var VoiceIntegrityUseCase = {
|
|
16934
|
+
"Identify_&_Verification": "Identify & Verification",
|
|
16935
|
+
Asset_Management: "Asset Management",
|
|
16936
|
+
Lead_Generation: "Lead Generation",
|
|
16937
|
+
Intelligent_Routing: "Intelligent Routing",
|
|
16938
|
+
Appointment_SchedulingDE: "Appointment SchedulingDE",
|
|
16939
|
+
Customer_Support: "Customer Support",
|
|
16940
|
+
"Self-Service": "Self-Service",
|
|
16941
|
+
Automated_Support: "Automated Support",
|
|
16942
|
+
Appointment_Reminders: "Appointment Reminders",
|
|
16943
|
+
Employee_Notifications: "Employee Notifications",
|
|
16944
|
+
Delivery_Notifications: "Delivery Notifications",
|
|
16945
|
+
Emergency_Notifications: "Emergency Notifications",
|
|
16946
|
+
Contactless_Delivery: "Contactless Delivery",
|
|
16947
|
+
Order_Notifications: "Order Notifications",
|
|
16948
|
+
Service_Alerts: "Service Alerts",
|
|
16949
|
+
Purchase_Confirmation: "Purchase Confirmation",
|
|
16950
|
+
Mass_Alerts: "Mass Alerts",
|
|
16951
|
+
Fraud_Alerts: "Fraud Alerts",
|
|
16952
|
+
Contact_Tracing: "Contact Tracing",
|
|
16953
|
+
Lead_Management: "Lead Management",
|
|
16954
|
+
Lead_Nurturing: "Lead Nurturing",
|
|
16955
|
+
Telemarketing: "Telemarketing",
|
|
16956
|
+
Marketing_Events: "Marketing Events",
|
|
16957
|
+
Rewards_Program: "Rewards Program",
|
|
16958
|
+
Lead_Alerts: "Lead Alerts",
|
|
16959
|
+
Lead_Distribution: "Lead Distribution",
|
|
16960
|
+
Abandoned_Cart: "Abandoned Cart",
|
|
16961
|
+
Call_Tracking: "Call Tracking",
|
|
16962
|
+
Outbound_Dialer: "Outbound Dialer",
|
|
16963
|
+
Click_to_Call: "Click to Call",
|
|
16964
|
+
Phone_System: "Phone System",
|
|
16965
|
+
"Meetings/Ccollaboration": "Meetings/Ccollaboration",
|
|
16966
|
+
Telehealth: "Telehealth",
|
|
16967
|
+
Distance_Learning: "Distance Learning",
|
|
16968
|
+
Shift_Management: "Shift Management",
|
|
16969
|
+
Field_Notifications: "Field Notifications",
|
|
16970
|
+
"Dating/Social": "Dating/Social",
|
|
16971
|
+
Remote_appointments: "Remote appointments",
|
|
16972
|
+
Group_Messaging: "Group Messaging",
|
|
16973
|
+
Exam_Proctoring: "Exam Proctoring",
|
|
16974
|
+
Tutoring: "Tutoring",
|
|
16975
|
+
"Therapy_(Individual+Group)": "Therapy (Individual+Group)",
|
|
16976
|
+
Pharmacy: "Pharmacy",
|
|
16977
|
+
First_Responder: "First Responder",
|
|
16978
|
+
"Survey/Research": "Survey/Research"
|
|
16979
|
+
};
|
|
16980
|
+
|
|
16422
16981
|
// src/types/generated/ai_connector_policy.ts
|
|
16423
16982
|
var AiConnectorPolicy = {
|
|
16424
16983
|
any: "any",
|
|
16425
|
-
allowlist: "allowlist"
|
|
16984
|
+
allowlist: "allowlist",
|
|
16985
|
+
none: "none"
|
|
16426
16986
|
};
|
|
16427
16987
|
|
|
16428
16988
|
// src/types/generated/site.ts
|
|
@@ -16827,8 +17387,10 @@ var RefResolutionStatus = {
|
|
|
16827
17387
|
var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
16828
17388
|
ScopeCategory2["WORKSPACE"] = "workspace";
|
|
16829
17389
|
ScopeCategory2["MEMBERS"] = "members";
|
|
17390
|
+
ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
|
|
16830
17391
|
ScopeCategory2["MEMBER_ROLES"] = "member_roles";
|
|
16831
17392
|
ScopeCategory2["CHATS"] = "chats";
|
|
17393
|
+
ScopeCategory2["DEMOS"] = "demos";
|
|
16832
17394
|
ScopeCategory2["DM"] = "dm";
|
|
16833
17395
|
ScopeCategory2["WORKFLOWS"] = "workflows";
|
|
16834
17396
|
ScopeCategory2["ASSIGNMENTS"] = "assignments";
|
|
@@ -16898,6 +17460,24 @@ var SCOPES = {
|
|
|
16898
17460
|
implies: ["members:write"],
|
|
16899
17461
|
dangerous: true
|
|
16900
17462
|
},
|
|
17463
|
+
"medical_billing:read": {
|
|
17464
|
+
name: "medical_billing:read",
|
|
17465
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
17466
|
+
description: "View medical billing coverage, charges and claims"
|
|
17467
|
+
},
|
|
17468
|
+
"medical_billing:write": {
|
|
17469
|
+
name: "medical_billing:write",
|
|
17470
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
17471
|
+
description: "Create and update medical billing and submit claims",
|
|
17472
|
+
implies: ["medical_billing:read"]
|
|
17473
|
+
},
|
|
17474
|
+
"medical_billing:admin": {
|
|
17475
|
+
name: "medical_billing:admin",
|
|
17476
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
17477
|
+
description: "Administer medical billing",
|
|
17478
|
+
implies: ["medical_billing:write"],
|
|
17479
|
+
dangerous: true
|
|
17480
|
+
},
|
|
16901
17481
|
// =========================================================================
|
|
16902
17482
|
// MEMBER ROLES
|
|
16903
17483
|
// =========================================================================
|
|
@@ -16927,6 +17507,11 @@ var SCOPES = {
|
|
|
16927
17507
|
category: "chats" /* CHATS */,
|
|
16928
17508
|
description: "View all conversations"
|
|
16929
17509
|
},
|
|
17510
|
+
"demos:run": {
|
|
17511
|
+
name: "demos:run",
|
|
17512
|
+
category: "demos" /* DEMOS */,
|
|
17513
|
+
description: "Start and interact with your own synthetic patient demos"
|
|
17514
|
+
},
|
|
16930
17515
|
"chats:write": {
|
|
16931
17516
|
name: "chats:write",
|
|
16932
17517
|
category: "chats" /* CHATS */,
|
|
@@ -17626,6 +18211,7 @@ export {
|
|
|
17626
18211
|
EventsApi,
|
|
17627
18212
|
FeaturesApi,
|
|
17628
18213
|
FhirConnectionsApi,
|
|
18214
|
+
StediApi,
|
|
17629
18215
|
InboundFaxStatus,
|
|
17630
18216
|
HealthieApi,
|
|
17631
18217
|
FilesApi,
|
|
@@ -17752,6 +18338,8 @@ export {
|
|
|
17752
18338
|
TestChatRunOutcome,
|
|
17753
18339
|
CapturedEffectDirection,
|
|
17754
18340
|
CapturedEffectKind,
|
|
18341
|
+
FaxDocumentRefusal,
|
|
18342
|
+
FaxRunRefusal,
|
|
17755
18343
|
InboundRefusal,
|
|
17756
18344
|
PhoneRunRefusal,
|
|
17757
18345
|
RecordChangeKind,
|
|
@@ -17781,6 +18369,7 @@ export {
|
|
|
17781
18369
|
TERMINAL_TASK_STATES,
|
|
17782
18370
|
WorkspaceInvitationsApi,
|
|
17783
18371
|
WorkspacesApi,
|
|
18372
|
+
MedicalBillingApi,
|
|
17784
18373
|
formatAppContextAsMarkdown,
|
|
17785
18374
|
createApiModules,
|
|
17786
18375
|
createWorkspaceClient,
|
|
@@ -17857,6 +18446,7 @@ export {
|
|
|
17857
18446
|
Region,
|
|
17858
18447
|
RegistrationIdentifier,
|
|
17859
18448
|
SiteDnsRecordType,
|
|
18449
|
+
VoiceIntegrityUseCase,
|
|
17860
18450
|
AiConnectorPolicy,
|
|
17861
18451
|
MenuItemResponseItemType,
|
|
17862
18452
|
AbilityConfigIssueCode,
|
|
@@ -17918,4 +18508,4 @@ export {
|
|
|
17918
18508
|
pathDraftFromStorage,
|
|
17919
18509
|
pathDraftToStorage
|
|
17920
18510
|
};
|
|
17921
|
-
//# sourceMappingURL=chunk-
|
|
18511
|
+
//# sourceMappingURL=chunk-LWRMGN4Z.js.map
|