@gravity-rail/sdk 1.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/{chat-interaction-BWvViNx-.d.cts → chat-interaction-BPqj_KMO.d.cts} +3037 -1154
- package/dist/{chat-interaction-CRGcStD0.d.ts → chat-interaction-CDlei6KK.d.ts} +3037 -1154
- package/dist/{chunk-VBG6XUBN.js → chunk-LWRMGN4Z.js} +901 -311
- package/dist/chunk-LWRMGN4Z.js.map +1 -0
- package/dist/{chunk-GCN4OMYU.js → chunk-RLFS7O2L.js} +4 -1
- package/dist/{chunk-GCN4OMYU.js.map → chunk-RLFS7O2L.js.map} +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +6 -4
- package/dist/helpers.d.ts +6 -4
- package/dist/helpers.js +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +947 -334
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -10
- package/dist/index.d.ts +26 -10
- package/dist/index.js +49 -25
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +903 -309
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +99 -6
- package/dist/internal.d.ts +99 -6
- package/dist/internal.js +8 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-DcjopLJf.d.ts → member-import-BbWJzHSV.d.ts} +1 -1
- package/dist/{member-import-fQz-gVmQ.d.cts → member-import-DxBggQLc.d.cts} +1 -1
- package/dist/{path-BKAZ7CTT.d.ts → path-5DteJvEx.d.ts} +35 -3
- package/dist/{path-C5Cn4Kl7.d.cts → path-bqfiH1XI.d.cts} +35 -3
- package/dist/schemas.cjs +57 -6
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +77 -9
- package/dist/schemas.d.ts +77 -9
- package/dist/schemas.js +53 -6
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-DVm54e2a.d.cts → tasks-fAwwBZIX.d.cts} +53 -11
- package/dist/{tasks-DVm54e2a.d.ts → tasks-fAwwBZIX.d.ts} +53 -11
- package/package.json +10 -4
- package/dist/chunk-VBG6XUBN.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -94,6 +94,8 @@ __export(src_exports, {
|
|
|
94
94
|
EventRuleActionType: () => EventRuleActionType,
|
|
95
95
|
EventRuleEventType: () => EventRuleEventType,
|
|
96
96
|
EventRuleObjectType: () => EventRuleObjectType,
|
|
97
|
+
FaxDocumentRefusal: () => FaxDocumentRefusal,
|
|
98
|
+
FaxRunRefusal: () => FaxRunRefusal,
|
|
97
99
|
FeatureCategory: () => FeatureCategory,
|
|
98
100
|
FeatureVisibility: () => FeatureVisibility,
|
|
99
101
|
FeedCursorRejection: () => FeedCursorRejection,
|
|
@@ -121,6 +123,7 @@ __export(src_exports, {
|
|
|
121
123
|
MAX_EMAIL_SEND_RECIPIENTS: () => MAX_EMAIL_SEND_RECIPIENTS,
|
|
122
124
|
MEMBER_RELATIONSHIP_KINDS: () => MEMBER_RELATIONSHIP_KINDS,
|
|
123
125
|
McpServerState: () => McpServerState,
|
|
126
|
+
MedicalBillingApi: () => MedicalBillingApi,
|
|
124
127
|
MemberFeature: () => MemberFeature,
|
|
125
128
|
MemberFilterBuilder: () => MemberFilterBuilder,
|
|
126
129
|
MemberImportIssueCode: () => MemberImportIssueCode,
|
|
@@ -141,6 +144,7 @@ __export(src_exports, {
|
|
|
141
144
|
ORG_ONLY_RESOURCES: () => ORG_ONLY_RESOURCES,
|
|
142
145
|
OrgApi: () => OrgApi,
|
|
143
146
|
OrgFeature: () => OrgFeature,
|
|
147
|
+
OrgWebhookDeliveryStatus: () => OrgWebhookDeliveryResponseStatus,
|
|
144
148
|
PERMISSION_ADMIN: () => PERMISSION_ADMIN,
|
|
145
149
|
PERMISSION_CREATE: () => PERMISSION_CREATE,
|
|
146
150
|
PERMISSION_DELETE: () => PERMISSION_DELETE,
|
|
@@ -204,6 +208,7 @@ __export(src_exports, {
|
|
|
204
208
|
SendingStopState: () => SendingStopState,
|
|
205
209
|
SetInstallationPolicyRequestUpgradePolicy: () => SetInstallationPolicyRequestUpgradePolicy,
|
|
206
210
|
SiteDnsRecordType: () => SiteDnsRecordType,
|
|
211
|
+
StediApi: () => StediApi,
|
|
207
212
|
SupervisorsApi: () => SupervisorsApi,
|
|
208
213
|
TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
209
214
|
TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -226,6 +231,7 @@ __export(src_exports, {
|
|
|
226
231
|
UpdateMemberContactPointRequestContactType: () => UpdateMemberContactPointRequestContactType,
|
|
227
232
|
UpdateMemberContactPointRequestPurpose: () => UpdateMemberContactPointRequestPurpose,
|
|
228
233
|
UpdateMemberContactPointRequestSharing: () => UpdateMemberContactPointRequestSharing,
|
|
234
|
+
VoiceIntegrityUseCase: () => VoiceIntegrityUseCase,
|
|
229
235
|
WIDGET_SLUGS: () => WIDGET_SLUGS,
|
|
230
236
|
WorkflowBuilder: () => WorkflowBuilder,
|
|
231
237
|
WorkflowRoutingMode: () => WorkflowRoutingMode,
|
|
@@ -575,6 +581,9 @@ ${formattedErrors}`, response.status);
|
|
|
575
581
|
const headers = new Headers({
|
|
576
582
|
...options?.headers || {}
|
|
577
583
|
});
|
|
584
|
+
if (typeof options?.body === "string" && !headers.has("Content-Type")) {
|
|
585
|
+
headers.set("Content-Type", "application/json");
|
|
586
|
+
}
|
|
578
587
|
if (this.apiKey) {
|
|
579
588
|
headers.set("Authorization", `Bearer ${this.apiKey}`);
|
|
580
589
|
}
|
|
@@ -775,13 +784,13 @@ var ResourceWorkflowsApi = class extends BaseApiClient {
|
|
|
775
784
|
* pin a Workflow item; archived Workflows are excluded unless asked for.
|
|
776
785
|
*/
|
|
777
786
|
async listResourceWorkflows(wid, params) {
|
|
778
|
-
const
|
|
779
|
-
if (params?.page !== void 0)
|
|
780
|
-
if (params?.pageSize !== void 0)
|
|
787
|
+
const query2 = new URLSearchParams();
|
|
788
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
789
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
781
790
|
if (params?.includeArchived !== void 0) {
|
|
782
|
-
|
|
791
|
+
query2.set("includeArchived", String(params.includeArchived));
|
|
783
792
|
}
|
|
784
|
-
const qs =
|
|
793
|
+
const qs = query2.toString();
|
|
785
794
|
return this.fetch(
|
|
786
795
|
`w/${encodeURIComponent(wid)}/resource-workflows${qs ? `?${qs}` : ""}`
|
|
787
796
|
);
|
|
@@ -795,10 +804,10 @@ function bundlesPath(wid, ...segments) {
|
|
|
795
804
|
return tail ? `${base}/${tail}` : base;
|
|
796
805
|
}
|
|
797
806
|
function pageQuery(params) {
|
|
798
|
-
const
|
|
799
|
-
if (params?.page !== void 0)
|
|
800
|
-
if (params?.pageSize !== void 0)
|
|
801
|
-
const qs =
|
|
807
|
+
const query2 = new URLSearchParams();
|
|
808
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
809
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
810
|
+
const qs = query2.toString();
|
|
802
811
|
return qs ? `?${qs}` : "";
|
|
803
812
|
}
|
|
804
813
|
var BundlesApi = class extends BaseApiClient {
|
|
@@ -992,9 +1001,9 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
992
1001
|
* between. `to` must be newer than the version the installation holds.
|
|
993
1002
|
*/
|
|
994
1003
|
async previewInstallationUpgrade(wid, installationUuid, to) {
|
|
995
|
-
const
|
|
1004
|
+
const query2 = new URLSearchParams({ to: String(to) });
|
|
996
1005
|
return this.fetch(
|
|
997
|
-
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${
|
|
1006
|
+
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${query2.toString()}`
|
|
998
1007
|
);
|
|
999
1008
|
}
|
|
1000
1009
|
/**
|
|
@@ -1589,6 +1598,18 @@ var AuthApi = class extends BaseApiClient {
|
|
|
1589
1598
|
async getUserAccount() {
|
|
1590
1599
|
return this.fetch("account");
|
|
1591
1600
|
}
|
|
1601
|
+
/** Active, undismissed product notices for this account across workspaces. */
|
|
1602
|
+
async getAccountNotices() {
|
|
1603
|
+
return this.fetch("account/notices");
|
|
1604
|
+
}
|
|
1605
|
+
async viewAccountNotice(id) {
|
|
1606
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/view`, { method: "PUT" });
|
|
1607
|
+
}
|
|
1608
|
+
async dismissAccountNotice(id) {
|
|
1609
|
+
return this.fetch(`account/notices/${encodeURIComponent(id)}/dismiss`, {
|
|
1610
|
+
method: "PUT"
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1592
1613
|
/** Update the authenticated user's account information. */
|
|
1593
1614
|
async updateUserAccount(info) {
|
|
1594
1615
|
return this.fetch("account", {
|
|
@@ -2185,9 +2206,9 @@ var CalendarsApi = class extends BaseApiClient {
|
|
|
2185
2206
|
const params = new URLSearchParams();
|
|
2186
2207
|
if (options?.page !== void 0) params.set("page", String(options.page));
|
|
2187
2208
|
if (options?.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
|
|
2188
|
-
const
|
|
2209
|
+
const query2 = params.size ? `?${params}` : "";
|
|
2189
2210
|
return this.fetch(
|
|
2190
|
-
`w/${wid}/calendar-event-types${
|
|
2211
|
+
`w/${wid}/calendar-event-types${query2}`
|
|
2191
2212
|
);
|
|
2192
2213
|
}
|
|
2193
2214
|
/** Get a single calendar event type by ID. */
|
|
@@ -2690,24 +2711,6 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
2690
2711
|
`w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
|
|
2691
2712
|
);
|
|
2692
2713
|
}
|
|
2693
|
-
/** List the background-work thread hanging off a message.
|
|
2694
|
-
*
|
|
2695
|
-
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
2696
|
-
* background (ADR-11 / forked trajectories), writing its messages as a
|
|
2697
|
-
* child thread parented at the fork point. Main-history reads exclude
|
|
2698
|
-
* them, so this is how the "show work" affordance fetches them — lazily,
|
|
2699
|
-
* only when a message with a non-zero `childMessageCount` is expanded.
|
|
2700
|
-
* Returns the thread in chronological order, empty when there is none.
|
|
2701
|
-
*
|
|
2702
|
-
* `messageUuid` is the fork point's `ChatMessage.id`. */
|
|
2703
|
-
async getChildThreadMessages(wid, chatId, messageUuid, limit = 200, offset = 0) {
|
|
2704
|
-
const params = new URLSearchParams();
|
|
2705
|
-
params.append("limit", limit.toString());
|
|
2706
|
-
params.append("offset", offset.toString());
|
|
2707
|
-
return this.fetch(
|
|
2708
|
-
`w/${wid}/chats/${chatId}/messages/${messageUuid}/children?${params.toString()}`
|
|
2709
|
-
);
|
|
2710
|
-
}
|
|
2711
2714
|
/** List messages associated with a specific tool call in a chat. */
|
|
2712
2715
|
async getChatToolCallMessages(wid, chatId, callId, limit = 100, offset = 0) {
|
|
2713
2716
|
const params = new URLSearchParams();
|
|
@@ -2930,9 +2933,9 @@ var ConfluenceApi = class extends BaseApiClient {
|
|
|
2930
2933
|
const qs = new URLSearchParams();
|
|
2931
2934
|
if (params?.cursor) qs.set("cursor", params.cursor);
|
|
2932
2935
|
if (params?.limit) qs.set("limit", String(params.limit));
|
|
2933
|
-
const
|
|
2936
|
+
const query2 = qs.toString();
|
|
2934
2937
|
return this.fetch(
|
|
2935
|
-
`w/${wid}/app-connections/confluence/spaces${
|
|
2938
|
+
`w/${wid}/app-connections/confluence/spaces${query2 ? `?${query2}` : ""}`
|
|
2936
2939
|
);
|
|
2937
2940
|
}
|
|
2938
2941
|
async listConfluencePages(wid, spaceId, params) {
|
|
@@ -3064,9 +3067,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
3064
3067
|
async getDashboardChannelStats(wid, options) {
|
|
3065
3068
|
const params = new URLSearchParams();
|
|
3066
3069
|
if (options?.hours !== void 0) params.append("hours", options.hours.toString());
|
|
3067
|
-
const
|
|
3070
|
+
const query2 = params.toString();
|
|
3068
3071
|
return this.fetch(
|
|
3069
|
-
`w/${wid}/dashboards/stats/channels${
|
|
3072
|
+
`w/${wid}/dashboards/stats/channels${query2 ? `?${query2}` : ""}`
|
|
3070
3073
|
);
|
|
3071
3074
|
}
|
|
3072
3075
|
/**
|
|
@@ -3078,9 +3081,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
3078
3081
|
async getDashboardWorkflowAssignmentStats(wid, options) {
|
|
3079
3082
|
const params = new URLSearchParams();
|
|
3080
3083
|
if (options?.hours != null) params.append("hours", options.hours.toString());
|
|
3081
|
-
const
|
|
3084
|
+
const query2 = params.toString();
|
|
3082
3085
|
return this.fetch(
|
|
3083
|
-
`w/${wid}/dashboards/stats/workflow-assignments${
|
|
3086
|
+
`w/${wid}/dashboards/stats/workflow-assignments${query2 ? `?${query2}` : ""}`
|
|
3084
3087
|
);
|
|
3085
3088
|
}
|
|
3086
3089
|
/**
|
|
@@ -3104,9 +3107,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
3104
3107
|
if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
|
|
3105
3108
|
if (options?.check !== void 0) params.append("check", options.check);
|
|
3106
3109
|
if (options?.severity !== void 0) params.append("severity", options.severity);
|
|
3107
|
-
const
|
|
3110
|
+
const query2 = params.toString();
|
|
3108
3111
|
return this.fetch(
|
|
3109
|
-
`w/${wid}/configuration-health${
|
|
3112
|
+
`w/${wid}/configuration-health${query2 ? `?${query2}` : ""}`
|
|
3110
3113
|
);
|
|
3111
3114
|
}
|
|
3112
3115
|
};
|
|
@@ -3176,9 +3179,9 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
3176
3179
|
if (options?.beforeVersion !== void 0)
|
|
3177
3180
|
params.set("beforeVersion", String(options.beforeVersion));
|
|
3178
3181
|
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
3179
|
-
const
|
|
3182
|
+
const query2 = params.toString();
|
|
3180
3183
|
return this.fetch(
|
|
3181
|
-
`w/${wid}/data-types/${id}/schema-versions${
|
|
3184
|
+
`w/${wid}/data-types/${id}/schema-versions${query2 ? `?${query2}` : ""}`
|
|
3182
3185
|
);
|
|
3183
3186
|
}
|
|
3184
3187
|
/** List all data types for a workspace, optionally filtering by archived status. */
|
|
@@ -3490,12 +3493,6 @@ var DiscordBotsApi = class extends BaseApiClient {
|
|
|
3490
3493
|
async getDiscordBot(wid, botId) {
|
|
3491
3494
|
return this.fetch(`w/${wid}/app-connections/discord/bots/${botId}`);
|
|
3492
3495
|
}
|
|
3493
|
-
/**
|
|
3494
|
-
* Get a Discord bot by UUID.
|
|
3495
|
-
*/
|
|
3496
|
-
async getDiscordBotByUuid(wid, uuid) {
|
|
3497
|
-
return this.fetch(`w/${wid}/app-connections/discord/bots/uuid/${uuid}`);
|
|
3498
|
-
}
|
|
3499
3496
|
/**
|
|
3500
3497
|
* Create a new Discord bot configuration.
|
|
3501
3498
|
*/
|
|
@@ -3812,10 +3809,11 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
3812
3809
|
var EventsApi = class extends BaseApiClient {
|
|
3813
3810
|
/** List event rules in the workspace, paginated. */
|
|
3814
3811
|
async getEventRules(wid, params) {
|
|
3815
|
-
const
|
|
3816
|
-
if (params?.
|
|
3817
|
-
if (params?.
|
|
3818
|
-
|
|
3812
|
+
const query2 = new URLSearchParams();
|
|
3813
|
+
if (params?.search) query2.set("search", params.search);
|
|
3814
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3815
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3816
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3819
3817
|
return this.fetch(`w/${wid}/event-rules${qs}`);
|
|
3820
3818
|
}
|
|
3821
3819
|
/** Get the available action types that can be used in event rules. */
|
|
@@ -4027,11 +4025,11 @@ var EventsApi = class extends BaseApiClient {
|
|
|
4027
4025
|
var ExperimentsApi = class extends BaseApiClient {
|
|
4028
4026
|
/** List experiments with group summaries and assignment counts. */
|
|
4029
4027
|
async getExperiments(wid, params) {
|
|
4030
|
-
const
|
|
4031
|
-
if (params?.page !== void 0)
|
|
4032
|
-
if (params?.pageSize !== void 0)
|
|
4033
|
-
if (params?.
|
|
4034
|
-
const qs =
|
|
4028
|
+
const query2 = new URLSearchParams();
|
|
4029
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4030
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4031
|
+
if (params?.archived !== void 0) query2.set("archived", String(params.archived));
|
|
4032
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4035
4033
|
return this.fetch(`w/${wid}/experiments${qs}`);
|
|
4036
4034
|
}
|
|
4037
4035
|
/** Get a single experiment by ID (includes groups). */
|
|
@@ -4169,6 +4167,22 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
4169
4167
|
async getFhirConnectionByUuid(wid, uuid) {
|
|
4170
4168
|
return this.fetch(`w/${wid}/app-connections/fhir/connections/uuid/${uuid}`);
|
|
4171
4169
|
}
|
|
4170
|
+
/**
|
|
4171
|
+
* The connection's sync configuration, with the eCW encounter-sync runtime
|
|
4172
|
+
* state (`connectionParams.ecwEncounterSyncState`) typed.
|
|
4173
|
+
*
|
|
4174
|
+
* This is the generic connector sync-config route (the same one
|
|
4175
|
+
* `ConnectionSyncApi.getConnectionSyncConfig` wraps), not a FHIR-only
|
|
4176
|
+
* path. It is the one read that still returns the encounter
|
|
4177
|
+
* watermark for a workspace whose eCW feature flag is off: the
|
|
4178
|
+
* encounter-sync status route is flag-gated, while this route requires
|
|
4179
|
+
* only `apps:read`.
|
|
4180
|
+
*/
|
|
4181
|
+
async getFhirConnectionSyncConfig(wid, connectionId) {
|
|
4182
|
+
return this.fetch(
|
|
4183
|
+
`w/${wid}/app-connections/${connectionId}/sync-config`
|
|
4184
|
+
);
|
|
4185
|
+
}
|
|
4172
4186
|
/**
|
|
4173
4187
|
* Create a new FHIR connection configuration.
|
|
4174
4188
|
*/
|
|
@@ -4348,11 +4362,11 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
4348
4362
|
}
|
|
4349
4363
|
// ==================== Member Sync ====================
|
|
4350
4364
|
async fhirListLinkedMembers(wid, connectionId, params) {
|
|
4351
|
-
const
|
|
4352
|
-
if (params?.page !== void 0)
|
|
4353
|
-
if (params?.pageSize !== void 0)
|
|
4354
|
-
if (params?.search?.trim())
|
|
4355
|
-
const qs =
|
|
4365
|
+
const query2 = new URLSearchParams();
|
|
4366
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4367
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4368
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
4369
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4356
4370
|
return this.fetch(
|
|
4357
4371
|
`w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members${qs}`
|
|
4358
4372
|
);
|
|
@@ -4474,6 +4488,18 @@ var ClaimMdApi = class extends BaseApiClient {
|
|
|
4474
4488
|
}
|
|
4475
4489
|
};
|
|
4476
4490
|
|
|
4491
|
+
// src/api/stedi.ts
|
|
4492
|
+
var StediApi = class extends BaseApiClient {
|
|
4493
|
+
async getStediConnections(wid) {
|
|
4494
|
+
return this.fetch(`w/${wid}/app-connections/stedi/status`);
|
|
4495
|
+
}
|
|
4496
|
+
async getStediConnectionStatus(wid, connectionUuid) {
|
|
4497
|
+
return this.fetch(
|
|
4498
|
+
`w/${wid}/app-connections/stedi/${connectionUuid}/status`
|
|
4499
|
+
);
|
|
4500
|
+
}
|
|
4501
|
+
};
|
|
4502
|
+
|
|
4477
4503
|
// src/types/generated/inbound_fax.ts
|
|
4478
4504
|
var InboundFaxStatus = {
|
|
4479
4505
|
pending: "pending",
|
|
@@ -4502,13 +4528,13 @@ var DocumoFaxApi = class extends BaseApiClient {
|
|
|
4502
4528
|
* failures an operator filtering by date is hunting for.
|
|
4503
4529
|
*/
|
|
4504
4530
|
async listDocumoFaxes(wid, params) {
|
|
4505
|
-
const
|
|
4506
|
-
if (params?.page !== void 0)
|
|
4507
|
-
if (params?.pageSize !== void 0)
|
|
4508
|
-
params?.status?.forEach((value) =>
|
|
4509
|
-
if (params?.receivedAfter)
|
|
4510
|
-
if (params?.receivedBefore)
|
|
4511
|
-
const suffix2 =
|
|
4531
|
+
const query2 = new URLSearchParams();
|
|
4532
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4533
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4534
|
+
params?.status?.forEach((value) => query2.append("status", value));
|
|
4535
|
+
if (params?.receivedAfter) query2.set("receivedAfter", params.receivedAfter);
|
|
4536
|
+
if (params?.receivedBefore) query2.set("receivedBefore", params.receivedBefore);
|
|
4537
|
+
const suffix2 = query2.toString() === "" ? "" : `?${query2.toString()}`;
|
|
4512
4538
|
return this.fetch(
|
|
4513
4539
|
`w/${wid}/app-connections/documo-fax/faxes${suffix2}`
|
|
4514
4540
|
);
|
|
@@ -4583,20 +4609,20 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
4583
4609
|
);
|
|
4584
4610
|
}
|
|
4585
4611
|
async getLinkedHealthieMembers(wid, params) {
|
|
4586
|
-
const
|
|
4587
|
-
if (params?.page !== void 0)
|
|
4588
|
-
if (params?.pageSize !== void 0)
|
|
4589
|
-
if (params?.search?.trim())
|
|
4590
|
-
const qs =
|
|
4612
|
+
const query2 = new URLSearchParams();
|
|
4613
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4614
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4615
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
4616
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4591
4617
|
return this.fetch(
|
|
4592
4618
|
`w/${wid}/app-connections/healthie/reconciliation/linked${qs}`
|
|
4593
4619
|
);
|
|
4594
4620
|
}
|
|
4595
4621
|
async getHealthieReconciliationMatches(wid, params) {
|
|
4596
|
-
const
|
|
4597
|
-
if (params?.limit !== void 0)
|
|
4598
|
-
if (params?.offset !== void 0)
|
|
4599
|
-
const qs =
|
|
4622
|
+
const query2 = new URLSearchParams();
|
|
4623
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
4624
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
4625
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4600
4626
|
return this.fetch(
|
|
4601
4627
|
`w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
|
|
4602
4628
|
);
|
|
@@ -4613,17 +4639,17 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
4613
4639
|
});
|
|
4614
4640
|
}
|
|
4615
4641
|
async listHealthieAppointmentTypes(wid, providerId) {
|
|
4616
|
-
const
|
|
4617
|
-
if (providerId)
|
|
4618
|
-
const qs =
|
|
4642
|
+
const query2 = new URLSearchParams();
|
|
4643
|
+
if (providerId) query2.set("provider_id", providerId);
|
|
4644
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4619
4645
|
return this.fetch(
|
|
4620
4646
|
`w/${wid}/app-connections/healthie/appointment-types${qs}`
|
|
4621
4647
|
);
|
|
4622
4648
|
}
|
|
4623
4649
|
async listHealthiePatients(wid, keywords) {
|
|
4624
|
-
const
|
|
4625
|
-
if (keywords?.trim())
|
|
4626
|
-
const qs =
|
|
4650
|
+
const query2 = new URLSearchParams();
|
|
4651
|
+
if (keywords?.trim()) query2.set("keywords", keywords.trim());
|
|
4652
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4627
4653
|
return this.fetch(
|
|
4628
4654
|
`w/${wid}/app-connections/healthie/patients${qs}`
|
|
4629
4655
|
);
|
|
@@ -4838,6 +4864,21 @@ var FilesApi = class extends BaseApiClient {
|
|
|
4838
4864
|
method: "DELETE"
|
|
4839
4865
|
});
|
|
4840
4866
|
}
|
|
4867
|
+
/** Queue indexing of an individual File, including a File without a folder. */
|
|
4868
|
+
async reindexFile(wid, id) {
|
|
4869
|
+
return this.fetch(`w/${wid}/files/${id}/reindex`, {
|
|
4870
|
+
method: "POST",
|
|
4871
|
+
body: JSON.stringify({})
|
|
4872
|
+
});
|
|
4873
|
+
}
|
|
4874
|
+
/** Search the current indexed version of an individual File. */
|
|
4875
|
+
async searchFile(wid, id, params) {
|
|
4876
|
+
const searchParams = new URLSearchParams({ query: params.query });
|
|
4877
|
+
if (params.topK !== void 0) searchParams.append("top_k", params.topK.toString());
|
|
4878
|
+
return this.fetch(
|
|
4879
|
+
`w/${wid}/files/${id}/search?${searchParams.toString()}`
|
|
4880
|
+
);
|
|
4881
|
+
}
|
|
4841
4882
|
/** Trigger reindexing of a folder's contents for search. */
|
|
4842
4883
|
async reindexFolder(wid, id) {
|
|
4843
4884
|
return this.fetch(`w/${wid}/folders/${id}/reindex`, {
|
|
@@ -4998,9 +5039,20 @@ function bytesToBase64(bytes) {
|
|
|
4998
5039
|
|
|
4999
5040
|
// src/api/inboxes.ts
|
|
5000
5041
|
var InboxesApi = class extends BaseApiClient {
|
|
5001
|
-
/**
|
|
5002
|
-
|
|
5003
|
-
|
|
5042
|
+
/**
|
|
5043
|
+
* List inboxes in a workspace.
|
|
5044
|
+
*
|
|
5045
|
+
* `isArchived` picks the half of the archive switch: omitted (or `false`) is
|
|
5046
|
+
* the Active list, `true` the Archived one. The server defaults to active,
|
|
5047
|
+
* so a caller that never passes it sees usable inboxes only.
|
|
5048
|
+
*/
|
|
5049
|
+
async getInboxes(wid, options) {
|
|
5050
|
+
const params = new URLSearchParams();
|
|
5051
|
+
if (options?.isArchived !== void 0) {
|
|
5052
|
+
params.set("is_archived", String(options.isArchived));
|
|
5053
|
+
}
|
|
5054
|
+
const query2 = params.toString();
|
|
5055
|
+
return this.fetch(`w/${wid}/inboxes${query2 ? `?${query2}` : ""}`);
|
|
5004
5056
|
}
|
|
5005
5057
|
/**
|
|
5006
5058
|
* Get an inbox by ID or UUID.
|
|
@@ -5027,17 +5079,45 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
5027
5079
|
body: JSON.stringify(inbox)
|
|
5028
5080
|
});
|
|
5029
5081
|
}
|
|
5030
|
-
/** Delete an inbox. */
|
|
5082
|
+
/** Delete an inbox and its emails. Prefer {@link archiveInbox}. */
|
|
5031
5083
|
async deleteInbox(wid, id) {
|
|
5032
5084
|
return this.fetch(`w/${wid}/inboxes/${id}`, {
|
|
5033
5085
|
method: "DELETE"
|
|
5034
5086
|
});
|
|
5035
5087
|
}
|
|
5036
|
-
/**
|
|
5088
|
+
/**
|
|
5089
|
+
* Archive an inbox: it leaves the Active list, refuses new mail and new
|
|
5090
|
+
* sends, and keeps every email it already holds. One-way.
|
|
5091
|
+
*
|
|
5092
|
+
* Refused with a 400 while a Workflow uses the inbox as its default or an
|
|
5093
|
+
* EventRule sends from it — read {@link getInboxArchiveBlockers} first to
|
|
5094
|
+
* explain that before committing.
|
|
5095
|
+
*/
|
|
5096
|
+
async archiveInbox(wid, id) {
|
|
5097
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive`, {
|
|
5098
|
+
method: "POST",
|
|
5099
|
+
// The route requires a JSON body as a CSRF barrier; `{}` is enough.
|
|
5100
|
+
body: JSON.stringify({})
|
|
5101
|
+
});
|
|
5102
|
+
}
|
|
5103
|
+
/**
|
|
5104
|
+
* What still points at this inbox: Workflows whose default inbox it is, and
|
|
5105
|
+
* EventRules that send from it. `canArchive` is the authoritative answer.
|
|
5106
|
+
*/
|
|
5107
|
+
async getInboxArchiveBlockers(wid, id) {
|
|
5108
|
+
return this.fetch(`w/${wid}/inboxes/${id}/archive-blockers`);
|
|
5109
|
+
}
|
|
5110
|
+
/**
|
|
5111
|
+
* List emails in an inbox with pagination, optional attachment inclusion,
|
|
5112
|
+
* a `search` term (sender or subject) and a sort.
|
|
5113
|
+
*/
|
|
5037
5114
|
async getInboxEmails(wid, inboxId, options = {}) {
|
|
5038
5115
|
const params = new URLSearchParams();
|
|
5039
5116
|
if (options.page) params.append("page", options.page.toString());
|
|
5040
5117
|
if (options.pageSize) params.append("pageSize", options.pageSize.toString());
|
|
5118
|
+
if (options.search) params.append("search", options.search);
|
|
5119
|
+
if (options.sortBy) params.append("sortBy", options.sortBy);
|
|
5120
|
+
if (options.sortOrder) params.append("sortOrder", options.sortOrder);
|
|
5041
5121
|
if (options.includeAttachments)
|
|
5042
5122
|
params.append("include_attachments", options.includeAttachments.toString());
|
|
5043
5123
|
return this.fetch(
|
|
@@ -5146,14 +5226,20 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
5146
5226
|
const params = new URLSearchParams();
|
|
5147
5227
|
if (period.dateFrom) params.append("date_from", period.dateFrom);
|
|
5148
5228
|
if (period.dateTo) params.append("date_to", period.dateTo);
|
|
5149
|
-
const
|
|
5229
|
+
const query2 = params.toString();
|
|
5150
5230
|
return this.fetch(
|
|
5151
|
-
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${
|
|
5231
|
+
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
|
|
5152
5232
|
);
|
|
5153
5233
|
}
|
|
5154
|
-
/** List email threads in an inbox
|
|
5155
|
-
async getInboxThreads(wid, inboxId) {
|
|
5156
|
-
|
|
5234
|
+
/** List email threads in an inbox, `limit` threads from `offset`. */
|
|
5235
|
+
async getInboxThreads(wid, inboxId, options = {}) {
|
|
5236
|
+
const params = new URLSearchParams();
|
|
5237
|
+
if (options.limit !== void 0) params.append("limit", options.limit.toString());
|
|
5238
|
+
if (options.offset) params.append("offset", options.offset.toString());
|
|
5239
|
+
const query2 = params.toString();
|
|
5240
|
+
return this.fetch(
|
|
5241
|
+
`w/${wid}/inboxes/${inboxId}/threads${query2 ? `?${query2}` : ""}`
|
|
5242
|
+
);
|
|
5157
5243
|
}
|
|
5158
5244
|
/** List emails in a thread by assignment ID with pagination. */
|
|
5159
5245
|
async getThreadEmails(wid, inboxId, assignmentId, options = {}) {
|
|
@@ -5553,10 +5639,10 @@ var MembersApi = class extends BaseApiClient {
|
|
|
5553
5639
|
});
|
|
5554
5640
|
}
|
|
5555
5641
|
/** List workspace members with pagination, filtering, and sorting. */
|
|
5556
|
-
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId,
|
|
5642
|
+
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query2) {
|
|
5557
5643
|
const params = new URLSearchParams();
|
|
5558
5644
|
if (memberFilterId != null) params.append("memberFilterId", memberFilterId.toString());
|
|
5559
|
-
if (
|
|
5645
|
+
if (query2 != null) params.append("query", JSON.stringify(query2));
|
|
5560
5646
|
if (page) params.append("page", page.toString());
|
|
5561
5647
|
if (pageSize) params.append("pageSize", pageSize.toString());
|
|
5562
5648
|
if (sortBy) params.append("sortBy", sortBy);
|
|
@@ -6386,8 +6472,8 @@ var MotdApi = class extends BaseApiClient {
|
|
|
6386
6472
|
const params = new URLSearchParams();
|
|
6387
6473
|
if (options?.date !== void 0) params.append("date", options.date);
|
|
6388
6474
|
if (options?.offset !== void 0) params.append("offset", options.offset.toString());
|
|
6389
|
-
const
|
|
6390
|
-
return this.fetch(`w/${wid}/motd${
|
|
6475
|
+
const query2 = params.toString();
|
|
6476
|
+
return this.fetch(`w/${wid}/motd${query2 ? `?${query2}` : ""}`);
|
|
6391
6477
|
}
|
|
6392
6478
|
};
|
|
6393
6479
|
|
|
@@ -6497,21 +6583,21 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
6497
6583
|
});
|
|
6498
6584
|
}
|
|
6499
6585
|
async getLinkedMondayMembers(wid, params) {
|
|
6500
|
-
const
|
|
6501
|
-
if (params?.board_id)
|
|
6502
|
-
if (params?.page !== void 0)
|
|
6503
|
-
if (params?.pageSize !== void 0)
|
|
6504
|
-
if (params?.search?.trim())
|
|
6505
|
-
const qs =
|
|
6586
|
+
const query2 = new URLSearchParams();
|
|
6587
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
6588
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6589
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6590
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
6591
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6506
6592
|
return this.fetch(
|
|
6507
6593
|
`w/${wid}/app-connections/monday/reconciliation/linked${qs}`
|
|
6508
6594
|
);
|
|
6509
6595
|
}
|
|
6510
6596
|
async getMondayReconciliationMatches(wid, params) {
|
|
6511
|
-
const
|
|
6512
|
-
if (params?.limit !== void 0)
|
|
6513
|
-
if (params?.offset !== void 0)
|
|
6514
|
-
const qs =
|
|
6597
|
+
const query2 = new URLSearchParams();
|
|
6598
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
6599
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
6600
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6515
6601
|
return this.fetch(
|
|
6516
6602
|
`w/${wid}/app-connections/monday/reconciliation/matches${qs}`
|
|
6517
6603
|
);
|
|
@@ -6535,11 +6621,11 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
6535
6621
|
);
|
|
6536
6622
|
}
|
|
6537
6623
|
async getLinkedRecords(wid, params) {
|
|
6538
|
-
const
|
|
6539
|
-
if (params?.board_id)
|
|
6540
|
-
if (params?.page !== void 0)
|
|
6541
|
-
if (params?.pageSize !== void 0)
|
|
6542
|
-
const qs =
|
|
6624
|
+
const query2 = new URLSearchParams();
|
|
6625
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
6626
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6627
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6628
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6543
6629
|
return this.fetch(
|
|
6544
6630
|
`w/${wid}/app-connections/monday/linked-records${qs}`
|
|
6545
6631
|
);
|
|
@@ -6562,10 +6648,10 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
6562
6648
|
* connection is parked for re-authorization.
|
|
6563
6649
|
*/
|
|
6564
6650
|
async getMondaySyncLogs(wid, params) {
|
|
6565
|
-
const
|
|
6566
|
-
if (params?.pageSize)
|
|
6567
|
-
if (params?.cursor)
|
|
6568
|
-
const qs =
|
|
6651
|
+
const query2 = new URLSearchParams();
|
|
6652
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
6653
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
6654
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6569
6655
|
return this.fetch(
|
|
6570
6656
|
`w/${wid}/app-connections/monday/sync/logs${qs}`
|
|
6571
6657
|
);
|
|
@@ -6580,13 +6666,13 @@ var InterventionRequestsApi = class extends BaseApiClient {
|
|
|
6580
6666
|
}
|
|
6581
6667
|
/** List intervention requests in a workspace, newest first. */
|
|
6582
6668
|
async getInterventionRequests(wid, params = {}) {
|
|
6583
|
-
const
|
|
6584
|
-
if (params.kind)
|
|
6585
|
-
if (params.openOnly)
|
|
6586
|
-
if (params.chatId !== void 0)
|
|
6587
|
-
if (params.unroutedOnly)
|
|
6588
|
-
if (params.limit !== void 0)
|
|
6589
|
-
const qs =
|
|
6669
|
+
const query2 = new URLSearchParams();
|
|
6670
|
+
if (params.kind) query2.set("kind", params.kind);
|
|
6671
|
+
if (params.openOnly) query2.set("openOnly", "true");
|
|
6672
|
+
if (params.chatId !== void 0) query2.set("chatId", String(params.chatId));
|
|
6673
|
+
if (params.unroutedOnly) query2.set("unroutedOnly", "true");
|
|
6674
|
+
if (params.limit !== void 0) query2.set("limit", String(params.limit));
|
|
6675
|
+
const qs = query2.toString();
|
|
6590
6676
|
return this.fetch(
|
|
6591
6677
|
`w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
|
|
6592
6678
|
);
|
|
@@ -6707,6 +6793,47 @@ var OperatorApi = class extends BaseApiClient {
|
|
|
6707
6793
|
|
|
6708
6794
|
// src/api/org.ts
|
|
6709
6795
|
var OrgApi = class extends BaseApiClient {
|
|
6796
|
+
async getOrgManagerChats(org, cursor) {
|
|
6797
|
+
return this.fetch(
|
|
6798
|
+
`o/${encodeURIComponent(org)}/manager/chats${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`
|
|
6799
|
+
);
|
|
6800
|
+
}
|
|
6801
|
+
async createOrgManagerChat(org, title) {
|
|
6802
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats`, {
|
|
6803
|
+
method: "POST",
|
|
6804
|
+
body: JSON.stringify({ title })
|
|
6805
|
+
});
|
|
6806
|
+
}
|
|
6807
|
+
async authorizeOrgManagerDelegation(workspace, orgUuid, chatId, callId) {
|
|
6808
|
+
return this.fetch(`w/${encodeURIComponent(workspace)}/a2a/manager/delegation-credential`, {
|
|
6809
|
+
method: "POST",
|
|
6810
|
+
body: JSON.stringify({ orgUuid, chatId, callId }),
|
|
6811
|
+
cache: "no-store"
|
|
6812
|
+
});
|
|
6813
|
+
}
|
|
6814
|
+
async getOrgManagerCredentialResponse(org, chatId, deliveryId) {
|
|
6815
|
+
return this.fetch(
|
|
6816
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/credentials/${encodeURIComponent(deliveryId)}`,
|
|
6817
|
+
{ cache: "no-store" }
|
|
6818
|
+
);
|
|
6819
|
+
}
|
|
6820
|
+
async getOrgManagerMessages(org, chatId, before) {
|
|
6821
|
+
return this.fetch(
|
|
6822
|
+
`o/${encodeURIComponent(org)}/manager/chats/${chatId}/messages${before ? `?before=${before}` : ""}`
|
|
6823
|
+
);
|
|
6824
|
+
}
|
|
6825
|
+
async stopOrgManagerTurn(org, chatId) {
|
|
6826
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/stop`, {
|
|
6827
|
+
method: "POST",
|
|
6828
|
+
body: JSON.stringify({})
|
|
6829
|
+
});
|
|
6830
|
+
}
|
|
6831
|
+
async startOrgManagerTurn(org, chatId, body) {
|
|
6832
|
+
return this.fetch(`o/${encodeURIComponent(org)}/manager/chats/${chatId}/turns`, {
|
|
6833
|
+
method: "POST",
|
|
6834
|
+
body: JSON.stringify(body)
|
|
6835
|
+
});
|
|
6836
|
+
}
|
|
6710
6837
|
/**
|
|
6711
6838
|
* Get organization by ID or UUID.
|
|
6712
6839
|
* Returns different response based on user's role:
|
|
@@ -6775,7 +6902,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6775
6902
|
async getOrgAiConnectorPolicy(orgIdOrUuid) {
|
|
6776
6903
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
|
|
6777
6904
|
}
|
|
6778
|
-
/** Set the AI connector mode: `any` or `
|
|
6905
|
+
/** Set the AI connector mode: `any`, `allowlist` or `none`. Requires `org:admin`. */
|
|
6779
6906
|
async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
|
|
6780
6907
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
|
|
6781
6908
|
method: "PUT",
|
|
@@ -6956,6 +7083,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6956
7083
|
if (options?.page) params.set("page", String(options.page));
|
|
6957
7084
|
if (options?.pageSize) params.set("pageSize", String(options.pageSize));
|
|
6958
7085
|
if (options?.search) params.set("search", options.search);
|
|
7086
|
+
if (options?.label) params.set("label", options.label);
|
|
6959
7087
|
return this.fetch(
|
|
6960
7088
|
`o/${orgIdOrUuid}/workspaces/summary?${params}`
|
|
6961
7089
|
);
|
|
@@ -7023,16 +7151,17 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7023
7151
|
});
|
|
7024
7152
|
}
|
|
7025
7153
|
/**
|
|
7026
|
-
* Search
|
|
7154
|
+
* Search available numbers. Use `mobile` for AU and `local` or `toll_free`
|
|
7155
|
+
* for US; the server defaults to US local when the type is omitted.
|
|
7027
7156
|
*/
|
|
7028
7157
|
async searchPhoneNumbers(orgUuid, params) {
|
|
7029
|
-
const
|
|
7030
|
-
if (params?.country)
|
|
7031
|
-
if (params?.numberType)
|
|
7032
|
-
if (params?.areaCode)
|
|
7033
|
-
if (params?.contains)
|
|
7034
|
-
if (params?.limit)
|
|
7035
|
-
const qs =
|
|
7158
|
+
const query2 = new URLSearchParams();
|
|
7159
|
+
if (params?.country) query2.set("country", params.country);
|
|
7160
|
+
if (params?.numberType) query2.set("number_type", params.numberType);
|
|
7161
|
+
if (params?.areaCode) query2.set("area_code", params.areaCode);
|
|
7162
|
+
if (params?.contains) query2.set("contains", params.contains);
|
|
7163
|
+
if (params?.limit) query2.set("limit", String(params.limit));
|
|
7164
|
+
const qs = query2.toString();
|
|
7036
7165
|
return this.fetch(
|
|
7037
7166
|
`o/${orgUuid}/phone-numbers/search${qs ? `?${qs}` : ""}`
|
|
7038
7167
|
);
|
|
@@ -7040,8 +7169,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7040
7169
|
/**
|
|
7041
7170
|
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
7042
7171
|
*
|
|
7043
|
-
*
|
|
7044
|
-
*
|
|
7172
|
+
* Australian mobile numbers require an approved business registration. Pass
|
|
7173
|
+
* `legalEntityUuid`; the server resolves its bundle and address. Do not pass
|
|
7174
|
+
* `bundleSid` or `addressSid` for Australian purchases.
|
|
7045
7175
|
*/
|
|
7046
7176
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType, opts) {
|
|
7047
7177
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -7050,11 +7180,31 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7050
7180
|
phoneNumber,
|
|
7051
7181
|
numberType,
|
|
7052
7182
|
country: opts?.country,
|
|
7183
|
+
legalEntityUuid: opts?.legalEntityUuid,
|
|
7053
7184
|
bundleSid: opts?.bundleSid,
|
|
7054
7185
|
addressSid: opts?.addressSid
|
|
7055
7186
|
})
|
|
7056
7187
|
});
|
|
7057
7188
|
}
|
|
7189
|
+
async getNumberRegistration(orgUuid, entityUuid) {
|
|
7190
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration`);
|
|
7191
|
+
}
|
|
7192
|
+
async uploadNumberRegistrationDocument(orgUuid, entityUuid, file, documentType, requirementName) {
|
|
7193
|
+
const body = new FormData();
|
|
7194
|
+
body.append("file", file);
|
|
7195
|
+
body.append("documentType", documentType);
|
|
7196
|
+
body.append("requirementName", requirementName);
|
|
7197
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/documents`, {
|
|
7198
|
+
method: "POST",
|
|
7199
|
+
body
|
|
7200
|
+
});
|
|
7201
|
+
}
|
|
7202
|
+
async submitNumberRegistration(orgUuid, entityUuid) {
|
|
7203
|
+
return this.fetch(`o/${orgUuid}/legal-entities/${entityUuid}/number-registration/submit`, {
|
|
7204
|
+
method: "POST",
|
|
7205
|
+
body: JSON.stringify({})
|
|
7206
|
+
});
|
|
7207
|
+
}
|
|
7058
7208
|
/**
|
|
7059
7209
|
* Delete a phone number from the org (releases from Twilio).
|
|
7060
7210
|
*/
|
|
@@ -7101,7 +7251,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7101
7251
|
* Delete a registered organization domain.
|
|
7102
7252
|
*/
|
|
7103
7253
|
async deleteOrgDomain(orgIdOrUuid, domainUuid) {
|
|
7104
|
-
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
7254
|
+
await this.fetch(`o/${orgIdOrUuid}/domains/${domainUuid}`, {
|
|
7255
|
+
method: "DELETE"
|
|
7256
|
+
});
|
|
7105
7257
|
}
|
|
7106
7258
|
/**
|
|
7107
7259
|
* Enable email DNS provisioning for a verified org domain.
|
|
@@ -7132,9 +7284,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7132
7284
|
* Disable email support for an org domain.
|
|
7133
7285
|
*/
|
|
7134
7286
|
async disableOrgDomainEmail(orgIdOrUuid, domainUuid, confirm = false) {
|
|
7135
|
-
const
|
|
7287
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
7136
7288
|
const response = await this.fetchRaw(
|
|
7137
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/email${
|
|
7289
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/email${query2}`,
|
|
7138
7290
|
{ method: "DELETE" },
|
|
7139
7291
|
[409]
|
|
7140
7292
|
);
|
|
@@ -7215,9 +7367,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7215
7367
|
* Disable custom site routing for an org domain.
|
|
7216
7368
|
*/
|
|
7217
7369
|
async disableOrgDomainSite(orgIdOrUuid, domainUuid, confirm = false) {
|
|
7218
|
-
const
|
|
7370
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
7219
7371
|
const response = await this.fetchRaw(
|
|
7220
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/site${
|
|
7372
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/site${query2}`,
|
|
7221
7373
|
{ method: "DELETE" },
|
|
7222
7374
|
[409]
|
|
7223
7375
|
);
|
|
@@ -7275,17 +7427,20 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7275
7427
|
});
|
|
7276
7428
|
}
|
|
7277
7429
|
/**
|
|
7278
|
-
*
|
|
7279
|
-
* brand's
|
|
7280
|
-
*
|
|
7281
|
-
*
|
|
7430
|
+
* Enable sending on a workspace-assigned number: attach it to the
|
|
7431
|
+
* Messaging Service of the given brand's campaign (A2P 10DLC).
|
|
7432
|
+
*
|
|
7433
|
+
* `campaignUuid` names the campaign to attach the number to, including the
|
|
7434
|
+
* brand's first; omit it to target the brand's first campaign. Preconditions
|
|
7435
|
+
* (412 otherwise): campaign VERIFIED, brand has a Messaging Service, phone
|
|
7436
|
+
* assigned to a workspace with a Twilio SID.
|
|
7282
7437
|
*/
|
|
7283
|
-
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid) {
|
|
7438
|
+
async activateA2PNumber(orgUuid, providerPhoneUuid, brandUuid, campaignUuid) {
|
|
7284
7439
|
return this.fetch(
|
|
7285
7440
|
`o/${orgUuid}/phone-numbers/a2p/activate-number`,
|
|
7286
7441
|
{
|
|
7287
7442
|
method: "POST",
|
|
7288
|
-
body: JSON.stringify({ providerPhoneUuid, brandUuid })
|
|
7443
|
+
body: JSON.stringify({ providerPhoneUuid, brandUuid, campaignUuid })
|
|
7289
7444
|
}
|
|
7290
7445
|
);
|
|
7291
7446
|
}
|
|
@@ -7302,7 +7457,10 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7302
7457
|
* entity's business profile must be approved (400 otherwise).
|
|
7303
7458
|
*/
|
|
7304
7459
|
async attachPhoneVoiceTrust(orgUuid, providerPhoneUuid, legalEntityUuid) {
|
|
7305
|
-
const body = {
|
|
7460
|
+
const body = {
|
|
7461
|
+
providerPhoneUuid,
|
|
7462
|
+
legalEntityUuid
|
|
7463
|
+
};
|
|
7306
7464
|
return this.fetch(`o/${orgUuid}/phone-numbers/voice-trust/attach`, {
|
|
7307
7465
|
method: "POST",
|
|
7308
7466
|
body: JSON.stringify(body)
|
|
@@ -7466,23 +7624,53 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7466
7624
|
`o/${orgUuid}/a2p-brands/${brandUuid}/use-cases`
|
|
7467
7625
|
);
|
|
7468
7626
|
}
|
|
7627
|
+
/**
|
|
7628
|
+
* Add a draft campaign to a brand. `sourceCampaignUuid` goes in an optional
|
|
7629
|
+
* JSON body; omitting it copies the brand's first campaign. The draft
|
|
7630
|
+
* reaches no provider until it is submitted. A sole-proprietor brand is
|
|
7631
|
+
* refused.
|
|
7632
|
+
*/
|
|
7633
|
+
async createA2PCampaign(orgUuid, brandUuid, data = {}) {
|
|
7634
|
+
return this.fetch(`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns`, {
|
|
7635
|
+
method: "POST",
|
|
7636
|
+
body: JSON.stringify(data)
|
|
7637
|
+
});
|
|
7638
|
+
}
|
|
7639
|
+
/**
|
|
7640
|
+
* Submit a later campaign that has never been submitted. The caller must be
|
|
7641
|
+
* an org admin with recent 2FA, and the billing owner on subscription
|
|
7642
|
+
* billing (the submission buys the campaign's vetting). The brand's first
|
|
7643
|
+
* campaign is submitted by approving its sample messages during registration;
|
|
7644
|
+
* an ineligible campaign comes back as a structured 409 with a `code`. A brand
|
|
7645
|
+
* that no longer reads approved at the carrier, or a use case it no longer
|
|
7646
|
+
* allows, is a 400 with no `code`.
|
|
7647
|
+
*/
|
|
7648
|
+
async submitA2PCampaign(orgUuid, brandUuid, campaignUuid) {
|
|
7649
|
+
return this.fetch(
|
|
7650
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaigns/${encodeURIComponent(campaignUuid)}/submit`,
|
|
7651
|
+
{ method: "POST" }
|
|
7652
|
+
);
|
|
7653
|
+
}
|
|
7469
7654
|
/**
|
|
7470
7655
|
* Fetch a brand's resolved A2P campaign config. The response carries both the
|
|
7471
7656
|
* raw `overrides` and the `resolved` payload (defaults + overrides) the editor
|
|
7472
|
-
* previews — including the canonical SMS consent text.
|
|
7657
|
+
* previews — including the canonical SMS consent text. `campaignUuid` names
|
|
7658
|
+
* one of the brand's campaigns; without it the brand's first is read.
|
|
7473
7659
|
*/
|
|
7474
|
-
async getA2PCampaignConfig(orgUuid, brandUuid) {
|
|
7660
|
+
async getA2PCampaignConfig(orgUuid, brandUuid, options) {
|
|
7475
7661
|
return this.fetch(
|
|
7476
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`
|
|
7662
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`
|
|
7477
7663
|
);
|
|
7478
7664
|
}
|
|
7479
7665
|
/**
|
|
7480
7666
|
* Partial-update a brand's A2P campaign config. Returns the freshly resolved
|
|
7481
7667
|
* config so the editor's live preview updates without a second round-trip.
|
|
7668
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7669
|
+
* first is updated.
|
|
7482
7670
|
*/
|
|
7483
|
-
async updateA2PCampaignConfig(orgUuid, brandUuid, data) {
|
|
7671
|
+
async updateA2PCampaignConfig(orgUuid, brandUuid, data, options) {
|
|
7484
7672
|
return this.fetch(
|
|
7485
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config`,
|
|
7673
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/campaign-config${campaignQuery(options)}`,
|
|
7486
7674
|
{
|
|
7487
7675
|
method: "PUT",
|
|
7488
7676
|
body: JSON.stringify(data)
|
|
@@ -7492,10 +7680,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7492
7680
|
/**
|
|
7493
7681
|
* Resubmit a campaign the carrier rejected, with the brand's current
|
|
7494
7682
|
* campaign copy. Edits the campaign in place, so no second vetting fee.
|
|
7683
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7684
|
+
* first is resubmitted.
|
|
7495
7685
|
*/
|
|
7496
|
-
async resubmitA2PCampaign(orgUuid, brandUuid) {
|
|
7686
|
+
async resubmitA2PCampaign(orgUuid, brandUuid, options) {
|
|
7497
7687
|
return this.fetch(
|
|
7498
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign`,
|
|
7688
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/resubmit-campaign${campaignQuery(options)}`,
|
|
7499
7689
|
{ method: "POST" }
|
|
7500
7690
|
);
|
|
7501
7691
|
}
|
|
@@ -7511,11 +7701,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7511
7701
|
}
|
|
7512
7702
|
/**
|
|
7513
7703
|
* Link the brand to a published enrollment Site (sets `site_uuid`). Returns
|
|
7514
|
-
* the refreshed campaign config.
|
|
7704
|
+
* the refreshed campaign config. `campaignUuid` names one of the brand's
|
|
7705
|
+
* campaigns; without it the brand's first campaign is written. Only a first
|
|
7706
|
+
* campaign may link a site.
|
|
7515
7707
|
*/
|
|
7516
|
-
async linkA2PEnrollmentSite(orgUuid, brandUuid, data) {
|
|
7708
|
+
async linkA2PEnrollmentSite(orgUuid, brandUuid, data, options) {
|
|
7517
7709
|
return this.fetch(
|
|
7518
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
7710
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
7519
7711
|
{
|
|
7520
7712
|
method: "PUT",
|
|
7521
7713
|
body: JSON.stringify(data)
|
|
@@ -7527,20 +7719,25 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7527
7719
|
* the explicit counterpart to the automatic provisioning at brand
|
|
7528
7720
|
* registration. `workspaceUuid` is required only when the org has multiple
|
|
7529
7721
|
* workspaces. Returns the refreshed campaign config. Idempotent.
|
|
7722
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7723
|
+
* first campaign is written. Only a first campaign may link a site.
|
|
7530
7724
|
*/
|
|
7531
|
-
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}) {
|
|
7725
|
+
async provisionA2PEnrollmentSite(orgUuid, brandUuid, data = {}, options) {
|
|
7532
7726
|
return this.fetch(
|
|
7533
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision`,
|
|
7727
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site/provision${campaignQuery(options)}`,
|
|
7534
7728
|
{
|
|
7535
7729
|
method: "POST",
|
|
7536
7730
|
body: JSON.stringify(data)
|
|
7537
7731
|
}
|
|
7538
7732
|
);
|
|
7539
7733
|
}
|
|
7540
|
-
/**
|
|
7541
|
-
|
|
7734
|
+
/**
|
|
7735
|
+
* Clear the brand's enrollment-site link. `campaignUuid` names one of the
|
|
7736
|
+
* brand's campaigns; without it the brand's first campaign is cleared.
|
|
7737
|
+
*/
|
|
7738
|
+
async unlinkA2PEnrollmentSite(orgUuid, brandUuid, options) {
|
|
7542
7739
|
return this.fetch(
|
|
7543
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site`,
|
|
7740
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/enrollment-site${campaignQuery(options)}`,
|
|
7544
7741
|
{ method: "DELETE" }
|
|
7545
7742
|
);
|
|
7546
7743
|
}
|
|
@@ -7548,10 +7745,12 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7548
7745
|
* Stage one A2P opt-in evidence file: get a presigned POST to send the bytes
|
|
7549
7746
|
* straight to storage. Nothing is recorded on the brand until
|
|
7550
7747
|
* {@link registerA2PEvidenceUpload} reads the object back and normalizes it.
|
|
7748
|
+
* `campaignUuid` names one of the brand's campaigns; without it the brand's
|
|
7749
|
+
* first campaign is written.
|
|
7551
7750
|
*/
|
|
7552
|
-
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data) {
|
|
7751
|
+
async createA2PEvidenceUploadUrl(orgUuid, brandUuid, data, options) {
|
|
7553
7752
|
return this.fetch(
|
|
7554
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url`,
|
|
7753
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/upload-url${campaignQuery(options)}`,
|
|
7555
7754
|
{
|
|
7556
7755
|
method: "POST",
|
|
7557
7756
|
body: JSON.stringify(data)
|
|
@@ -7559,25 +7758,29 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7559
7758
|
);
|
|
7560
7759
|
}
|
|
7561
7760
|
/**
|
|
7562
|
-
* Normalize a staged evidence upload and record it on the
|
|
7563
|
-
* refreshed campaign config, so the editor's evidence list updates
|
|
7564
|
-
* second round trip.
|
|
7761
|
+
* Normalize a staged evidence upload and record it on the campaign. Returns
|
|
7762
|
+
* the refreshed campaign config, so the editor's evidence list updates
|
|
7763
|
+
* without a second round trip. `campaignUuid` names one of the brand's
|
|
7764
|
+
* campaigns; without it the brand's first campaign is written.
|
|
7565
7765
|
*/
|
|
7566
|
-
async registerA2PEvidenceUpload(orgUuid, brandUuid, data) {
|
|
7766
|
+
async registerA2PEvidenceUpload(orgUuid, brandUuid, data, options) {
|
|
7567
7767
|
return this.fetch(
|
|
7568
|
-
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments`,
|
|
7768
|
+
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments${campaignQuery(options)}`,
|
|
7569
7769
|
{
|
|
7570
7770
|
method: "POST",
|
|
7571
7771
|
body: JSON.stringify(data)
|
|
7572
7772
|
}
|
|
7573
7773
|
);
|
|
7574
7774
|
}
|
|
7575
|
-
/**
|
|
7576
|
-
|
|
7775
|
+
/**
|
|
7776
|
+
* Remove one uploaded evidence artifact. `campaignUuid` names one of the
|
|
7777
|
+
* brand's campaigns; without it the brand's first campaign is written.
|
|
7778
|
+
*/
|
|
7779
|
+
async deleteA2PEvidenceUpload(orgUuid, brandUuid, attachmentUuid, options) {
|
|
7577
7780
|
return this.fetch(
|
|
7578
7781
|
`o/${orgUuid}/a2p-brands/${brandUuid}/evidence-attachments/${encodeURIComponent(
|
|
7579
7782
|
attachmentUuid
|
|
7580
|
-
)}`,
|
|
7783
|
+
)}${campaignQuery(options)}`,
|
|
7581
7784
|
{ method: "DELETE" }
|
|
7582
7785
|
);
|
|
7583
7786
|
}
|
|
@@ -7633,9 +7836,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7633
7836
|
method: "DELETE"
|
|
7634
7837
|
});
|
|
7635
7838
|
}
|
|
7636
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
7839
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0, filters = {}) {
|
|
7840
|
+
const params = new URLSearchParams({ limit: String(limit), offset: String(offset) });
|
|
7841
|
+
if (filters.status) params.set("status", filters.status);
|
|
7842
|
+
if (filters.occurredAfter) params.set("occurredAfter", filters.occurredAfter);
|
|
7843
|
+
if (filters.occurredBefore) params.set("occurredBefore", filters.occurredBefore);
|
|
7637
7844
|
return this.fetch(
|
|
7638
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries
|
|
7845
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?${params}`
|
|
7639
7846
|
);
|
|
7640
7847
|
}
|
|
7641
7848
|
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
@@ -7693,9 +7900,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7693
7900
|
* endpoint and sit in a workspace it actually covers.
|
|
7694
7901
|
*/
|
|
7695
7902
|
async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
|
|
7696
|
-
const
|
|
7903
|
+
const query2 = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
|
|
7697
7904
|
return this.fetch(
|
|
7698
|
-
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${
|
|
7905
|
+
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query2}`
|
|
7699
7906
|
);
|
|
7700
7907
|
}
|
|
7701
7908
|
/**
|
|
@@ -7802,6 +8009,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7802
8009
|
function businessProfilePath(orgUuid, legalEntityUuid) {
|
|
7803
8010
|
return legalEntityUuid ? `o/${orgUuid}/legal-entities/${legalEntityUuid}/business-profile` : `o/${orgUuid}/business-profile`;
|
|
7804
8011
|
}
|
|
8012
|
+
function campaignQuery(options) {
|
|
8013
|
+
return options?.campaignUuid ? `?campaignUuid=${encodeURIComponent(options.campaignUuid)}` : "";
|
|
8014
|
+
}
|
|
7805
8015
|
|
|
7806
8016
|
// src/api/oauth.ts
|
|
7807
8017
|
function getOAuthPath(providerSlug, action) {
|
|
@@ -7918,6 +8128,13 @@ function appendAnalyticsFilters(params, filters) {
|
|
|
7918
8128
|
filters.answeredBy?.forEach((v) => params.append("answeredBy", v));
|
|
7919
8129
|
filters.memberLabel?.forEach((v) => params.append("memberLabel", v));
|
|
7920
8130
|
}
|
|
8131
|
+
function appendPhoneLogFilters(params, filters) {
|
|
8132
|
+
if (!filters) return;
|
|
8133
|
+
if (filters.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
8134
|
+
if (filters.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
8135
|
+
if (filters.dateTo) params.set("dateTo", filters.dateTo);
|
|
8136
|
+
if (filters.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
8137
|
+
}
|
|
7921
8138
|
var PhoneNumbersApi = class extends BaseApiClient {
|
|
7922
8139
|
/** List phone numbers in a workspace, optionally including archived. */
|
|
7923
8140
|
async getPhoneNumbers(wid, options) {
|
|
@@ -7925,8 +8142,8 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
7925
8142
|
if (options?.isArchived !== void 0) {
|
|
7926
8143
|
params.set("is_archived", String(options.isArchived));
|
|
7927
8144
|
}
|
|
7928
|
-
const
|
|
7929
|
-
return this.fetch(`w/${wid}/phone-numbers${
|
|
8145
|
+
const query2 = params.toString();
|
|
8146
|
+
return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
|
|
7930
8147
|
}
|
|
7931
8148
|
/** List phone numbers available for provisioning. */
|
|
7932
8149
|
async getAvailablePhoneNumbers(wid) {
|
|
@@ -7992,16 +8209,32 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
7992
8209
|
if (filters?.inbound !== void 0) params.set("inbound", String(filters.inbound));
|
|
7993
8210
|
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
7994
8211
|
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
8212
|
+
if (filters?.otherNumber) params.set("otherNumber", filters.otherNumber);
|
|
7995
8213
|
if (filters?.callId !== void 0) params.set("callId", String(filters.callId));
|
|
7996
8214
|
return this.fetch(`w/${wid}/calls?${params}`);
|
|
7997
8215
|
}
|
|
8216
|
+
/**
|
|
8217
|
+
* One time-ordered page over a number's calls, texts and voicemails.
|
|
8218
|
+
*
|
|
8219
|
+
* Paged by keyset: pass the previous page's `nextCursor` as `cursor` to get
|
|
8220
|
+
* the entries after it. A new entry at the head cannot repeat or skip one.
|
|
8221
|
+
* `modalities` limits the feed to some of the logs.
|
|
8222
|
+
*/
|
|
8223
|
+
async getPhoneNumberActivity(wid, id, options = {}) {
|
|
8224
|
+
const params = new URLSearchParams({ pageSize: String(options.pageSize ?? 25) });
|
|
8225
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
8226
|
+
options.modalities?.forEach((modality) => params.append("modality", modality));
|
|
8227
|
+
appendPhoneLogFilters(params, options);
|
|
8228
|
+
return this.fetch(`w/${wid}/phone-numbers/${id}/activity?${params}`);
|
|
8229
|
+
}
|
|
7998
8230
|
/** List paginated voicemails for a phone number. */
|
|
7999
|
-
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status) {
|
|
8231
|
+
async getPhoneNumberVoicemails(wid, id, page = 1, pageSize = 10, status, filters) {
|
|
8000
8232
|
const params = new URLSearchParams({
|
|
8001
8233
|
page: String(page),
|
|
8002
8234
|
page_size: String(pageSize)
|
|
8003
8235
|
});
|
|
8004
8236
|
if (status) params.set("status", status);
|
|
8237
|
+
appendPhoneLogFilters(params, filters);
|
|
8005
8238
|
return this.fetch(
|
|
8006
8239
|
`w/${wid}/phone-numbers/${id}/voicemails?${params}`
|
|
8007
8240
|
);
|
|
@@ -8027,9 +8260,7 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
8027
8260
|
pageSize: String(pageSize)
|
|
8028
8261
|
});
|
|
8029
8262
|
if (filters?.status) params.set("status", filters.status);
|
|
8030
|
-
|
|
8031
|
-
if (filters?.dateFrom) params.set("dateFrom", filters.dateFrom);
|
|
8032
|
-
if (filters?.dateTo) params.set("dateTo", filters.dateTo);
|
|
8263
|
+
appendPhoneLogFilters(params, filters);
|
|
8033
8264
|
return this.fetch(
|
|
8034
8265
|
`w/${wid}/phone-numbers/${id}/messages?${params}`
|
|
8035
8266
|
);
|
|
@@ -8083,9 +8314,9 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
8083
8314
|
async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
|
|
8084
8315
|
const params = new URLSearchParams();
|
|
8085
8316
|
appendAnalyticsFilters(params, filters);
|
|
8086
|
-
const
|
|
8317
|
+
const query2 = params.toString();
|
|
8087
8318
|
return this.fetch(
|
|
8088
|
-
`w/${wid}/phone-numbers/${id}/analytics/summary${
|
|
8319
|
+
`w/${wid}/phone-numbers/${id}/analytics/summary${query2 ? `?${query2}` : ""}`
|
|
8089
8320
|
);
|
|
8090
8321
|
}
|
|
8091
8322
|
/**
|
|
@@ -8294,6 +8525,7 @@ var PersonasApi = class extends BaseApiClient {
|
|
|
8294
8525
|
body: JSON.stringify(data)
|
|
8295
8526
|
});
|
|
8296
8527
|
}
|
|
8528
|
+
/** Archives the Persona and its current test Member. Returns 409 while a test chat is open. */
|
|
8297
8529
|
async archivePersona(wid, id) {
|
|
8298
8530
|
return this.fetch(`w/${wid}/personas/${id}/archive`, {
|
|
8299
8531
|
method: "POST",
|
|
@@ -8318,8 +8550,7 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
8318
8550
|
const q = new URLSearchParams();
|
|
8319
8551
|
if (params?.page !== void 0) q.set("page", String(params.page));
|
|
8320
8552
|
if (params?.pageSize !== void 0) q.set("pageSize", String(params.pageSize));
|
|
8321
|
-
if (params?.
|
|
8322
|
-
q.set("includeArchived", String(params.includeArchived));
|
|
8553
|
+
if (params?.archived !== void 0) q.set("archived", String(params.archived));
|
|
8323
8554
|
if (params?.source) q.set("source", params.source);
|
|
8324
8555
|
const qs = q.toString() ? `?${q.toString()}` : "";
|
|
8325
8556
|
return this.fetch(`w/${wid}/metrics${qs}`);
|
|
@@ -8363,6 +8594,18 @@ var MetricsApi = class extends BaseApiClient {
|
|
|
8363
8594
|
`w/${wid}/metrics/${metricId}/series?${q.toString()}`
|
|
8364
8595
|
);
|
|
8365
8596
|
}
|
|
8597
|
+
/**
|
|
8598
|
+
* Series for several metrics in one request, each with its default
|
|
8599
|
+
* aggregation. Items come back in the order the ids were given.
|
|
8600
|
+
*/
|
|
8601
|
+
async getMetricSeriesBatch(wid, params) {
|
|
8602
|
+
const q = new URLSearchParams();
|
|
8603
|
+
for (const id of params.metricIds) q.append("metricIds", String(id));
|
|
8604
|
+
q.set("start", params.start);
|
|
8605
|
+
q.set("end", params.end);
|
|
8606
|
+
if (params.bucket) q.set("bucket", params.bucket);
|
|
8607
|
+
return this.fetch(`w/${wid}/metrics/series?${q.toString()}`);
|
|
8608
|
+
}
|
|
8366
8609
|
/** On-demand compute of enabled chat-source metrics for one chat. */
|
|
8367
8610
|
async computeChatMetrics(wid, data) {
|
|
8368
8611
|
return this.fetch(`w/${wid}/metrics/compute-for-chat`, {
|
|
@@ -8396,24 +8639,24 @@ var QueriesApi = class extends BaseApiClient {
|
|
|
8396
8639
|
});
|
|
8397
8640
|
}
|
|
8398
8641
|
/** Structure / field / access / cost validation without execution. */
|
|
8399
|
-
async validateQuery(wid,
|
|
8642
|
+
async validateQuery(wid, query2) {
|
|
8400
8643
|
return this.fetch(`w/${wid}/queries/validate`, {
|
|
8401
8644
|
method: "POST",
|
|
8402
|
-
body: JSON.stringify({ query })
|
|
8645
|
+
body: JSON.stringify({ query: query2 })
|
|
8403
8646
|
});
|
|
8404
8647
|
}
|
|
8405
8648
|
/** Bounded sample run (limit capped server-side). */
|
|
8406
|
-
async previewQuery(wid,
|
|
8649
|
+
async previewQuery(wid, query2, mode) {
|
|
8407
8650
|
return this.fetch(`w/${wid}/queries/preview`, {
|
|
8408
8651
|
method: "POST",
|
|
8409
|
-
body: JSON.stringify({ query, mode })
|
|
8652
|
+
body: JSON.stringify({ query: query2, mode })
|
|
8410
8653
|
});
|
|
8411
8654
|
}
|
|
8412
8655
|
/** Execute a query (rows / count / aggregate). */
|
|
8413
|
-
async runQuery(wid,
|
|
8656
|
+
async runQuery(wid, query2, mode) {
|
|
8414
8657
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
8415
8658
|
method: "POST",
|
|
8416
|
-
body: JSON.stringify({ query, mode })
|
|
8659
|
+
body: JSON.stringify({ query: query2, mode })
|
|
8417
8660
|
});
|
|
8418
8661
|
}
|
|
8419
8662
|
};
|
|
@@ -8474,10 +8717,10 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8474
8717
|
}
|
|
8475
8718
|
/** List qualifications in a workspace, paginated. */
|
|
8476
8719
|
async getQualifications(wid, params) {
|
|
8477
|
-
const
|
|
8478
|
-
if (params?.page !== void 0)
|
|
8479
|
-
if (params?.pageSize !== void 0)
|
|
8480
|
-
const qs =
|
|
8720
|
+
const query2 = new URLSearchParams();
|
|
8721
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
8722
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
8723
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8481
8724
|
return this.fetch(`w/${wid}/qualifications${qs}`);
|
|
8482
8725
|
}
|
|
8483
8726
|
/** Get a single qualification by ID. */
|
|
@@ -8492,9 +8735,9 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8492
8735
|
}
|
|
8493
8736
|
// ===== Scenarios =====
|
|
8494
8737
|
async listScenarios(wid, qualificationId, params) {
|
|
8495
|
-
const
|
|
8496
|
-
if (params?.includeArchived)
|
|
8497
|
-
const qs =
|
|
8738
|
+
const query2 = new URLSearchParams();
|
|
8739
|
+
if (params?.includeArchived) query2.set("include_archived", "true");
|
|
8740
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8498
8741
|
return this.fetch(`w/${wid}/qualifications/${qualificationId}/scenarios${qs}`);
|
|
8499
8742
|
}
|
|
8500
8743
|
async createScenario(wid, qualificationId, data) {
|
|
@@ -8527,19 +8770,19 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8527
8770
|
* `workflowRevisionId`. Omitting both keeps the unfiltered list.
|
|
8528
8771
|
*/
|
|
8529
8772
|
async listTestChatRuns(wid, workflowId, params) {
|
|
8530
|
-
const
|
|
8531
|
-
if (params?.scenarioId !== void 0)
|
|
8773
|
+
const query2 = new URLSearchParams();
|
|
8774
|
+
if (params?.scenarioId !== void 0) query2.set("scenarioId", String(params.scenarioId));
|
|
8532
8775
|
if (params?.assistantChatModelId !== void 0) {
|
|
8533
|
-
|
|
8776
|
+
query2.set("assistantChatModelId", params.assistantChatModelId);
|
|
8534
8777
|
}
|
|
8535
|
-
if (params?.limit !== void 0)
|
|
8778
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
8536
8779
|
if (params?.workflowRevisionId !== void 0) {
|
|
8537
|
-
|
|
8780
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
8538
8781
|
}
|
|
8539
8782
|
if (params?.includeEarlierRevisions !== void 0) {
|
|
8540
|
-
|
|
8783
|
+
query2.set("include_earlier_revisions", String(params.includeEarlierRevisions));
|
|
8541
8784
|
}
|
|
8542
|
-
const qs =
|
|
8785
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8543
8786
|
return this.fetch(
|
|
8544
8787
|
`w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs${qs}`
|
|
8545
8788
|
);
|
|
@@ -8554,11 +8797,11 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8554
8797
|
* revision it describes and whether it is the current one.
|
|
8555
8798
|
*/
|
|
8556
8799
|
async listScenarioHealthSummaries(wid, workflowId, params) {
|
|
8557
|
-
const
|
|
8800
|
+
const query2 = new URLSearchParams();
|
|
8558
8801
|
if (params?.workflowRevisionId !== void 0) {
|
|
8559
|
-
|
|
8802
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
8560
8803
|
}
|
|
8561
|
-
const qs =
|
|
8804
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8562
8805
|
return this.fetch(
|
|
8563
8806
|
`w/${wid}/qualifications/workflows/${workflowId}/scenario-health-summaries${qs}`
|
|
8564
8807
|
);
|
|
@@ -8638,9 +8881,12 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8638
8881
|
);
|
|
8639
8882
|
}
|
|
8640
8883
|
async evaluateTestChatRun(wid, runId) {
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8884
|
+
return this.fetch(
|
|
8885
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`,
|
|
8886
|
+
{
|
|
8887
|
+
method: "POST"
|
|
8888
|
+
}
|
|
8889
|
+
);
|
|
8644
8890
|
}
|
|
8645
8891
|
/** Manually end a test chat run (for human-driven runs, which have no
|
|
8646
8892
|
* simulator workflow to mark them completed). */
|
|
@@ -8762,9 +9008,9 @@ var RoutingRulesApi = class extends BaseApiClient {
|
|
|
8762
9008
|
async getRoutingRules(wid, filters) {
|
|
8763
9009
|
const params = new URLSearchParams();
|
|
8764
9010
|
appendFilters(params, filters);
|
|
8765
|
-
const
|
|
9011
|
+
const query2 = params.toString();
|
|
8766
9012
|
return this.fetch(
|
|
8767
|
-
`w/${wid}/routing${
|
|
9013
|
+
`w/${wid}/routing${query2 ? `?${query2}` : ""}`
|
|
8768
9014
|
);
|
|
8769
9015
|
}
|
|
8770
9016
|
/** Read one rule. Requires the rule's endpoint read permission (`phones:read`, or `inboxes:read`). */
|
|
@@ -8870,10 +9116,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
8870
9116
|
});
|
|
8871
9117
|
}
|
|
8872
9118
|
async getSalesforceReconciliationMatches(wid, params) {
|
|
8873
|
-
const
|
|
8874
|
-
if (params?.limit !== void 0)
|
|
8875
|
-
if (params?.offset !== void 0)
|
|
8876
|
-
const qs =
|
|
9119
|
+
const query2 = new URLSearchParams();
|
|
9120
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
9121
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
9122
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8877
9123
|
return this.fetch(
|
|
8878
9124
|
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
8879
9125
|
);
|
|
@@ -8910,11 +9156,11 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
8910
9156
|
});
|
|
8911
9157
|
}
|
|
8912
9158
|
async getLinkedSalesforceMembers(wid, params) {
|
|
8913
|
-
const
|
|
8914
|
-
if (params?.page !== void 0)
|
|
8915
|
-
if (params?.pageSize !== void 0)
|
|
8916
|
-
if (params?.search?.trim())
|
|
8917
|
-
const qs =
|
|
9159
|
+
const query2 = new URLSearchParams();
|
|
9160
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
9161
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
9162
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
9163
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8918
9164
|
return this.fetch(
|
|
8919
9165
|
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
8920
9166
|
);
|
|
@@ -8992,10 +9238,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
8992
9238
|
* connection is parked for re-authorization.
|
|
8993
9239
|
*/
|
|
8994
9240
|
async getSalesforceSyncLogs(wid, params) {
|
|
8995
|
-
const
|
|
8996
|
-
if (params?.pageSize)
|
|
8997
|
-
if (params?.cursor)
|
|
8998
|
-
const qs =
|
|
9241
|
+
const query2 = new URLSearchParams();
|
|
9242
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
9243
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
9244
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8999
9245
|
return this.fetch(
|
|
9000
9246
|
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
9001
9247
|
);
|
|
@@ -9035,12 +9281,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9035
9281
|
);
|
|
9036
9282
|
}
|
|
9037
9283
|
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
|
|
9038
|
-
const
|
|
9284
|
+
const query2 = new URLSearchParams({
|
|
9039
9285
|
direction,
|
|
9040
9286
|
sync_key: syncKey
|
|
9041
9287
|
});
|
|
9042
9288
|
return this.fetch(
|
|
9043
|
-
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${
|
|
9289
|
+
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
9044
9290
|
);
|
|
9045
9291
|
}
|
|
9046
9292
|
/**
|
|
@@ -9078,11 +9324,29 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9078
9324
|
`w/${wid}/app-connections/${connectionId}/sync/member-summary`
|
|
9079
9325
|
);
|
|
9080
9326
|
}
|
|
9081
|
-
|
|
9327
|
+
/**
|
|
9328
|
+
* One page of a run's items. ``cursor`` is the previous page's
|
|
9329
|
+
* ``nextCursor`` and continues in the requested direction; exhaustion comes
|
|
9330
|
+
* from ``hasMore``, never from the returned row count.
|
|
9331
|
+
*/
|
|
9332
|
+
async getSyncRunItemsPage(wid, connectionId, runId, options) {
|
|
9333
|
+
const params = new URLSearchParams();
|
|
9334
|
+
if (options?.limit != null) params.set("limit", String(options.limit));
|
|
9335
|
+
if (options?.newestFirst) params.set("newest_first", "true");
|
|
9336
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
9337
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
9082
9338
|
return this.fetch(
|
|
9083
|
-
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items
|
|
9339
|
+
`w/${wid}/app-connections/${connectionId}/sync/runs/${runId}/items${qs}`
|
|
9084
9340
|
);
|
|
9085
9341
|
}
|
|
9342
|
+
/**
|
|
9343
|
+
* The run's items as a flat list. Kept for the published CLI surface; the
|
|
9344
|
+
* server returns the canonical cursor page, and this unwraps its ``items``.
|
|
9345
|
+
*/
|
|
9346
|
+
async getSyncRunItems(wid, connectionId, runId, limit = 500) {
|
|
9347
|
+
const page = await this.getSyncRunItemsPage(wid, connectionId, runId, { limit });
|
|
9348
|
+
return page.items;
|
|
9349
|
+
}
|
|
9086
9350
|
/**
|
|
9087
9351
|
* Clear a manual-unlink exclusion for a member on a connection so
|
|
9088
9352
|
* subsequent outbound syncs stop silently skipping them. Idempotent:
|
|
@@ -9090,9 +9354,9 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9090
9354
|
* ``boardId`` is only meaningful for multi-scope connectors (Monday).
|
|
9091
9355
|
*/
|
|
9092
9356
|
async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
|
|
9093
|
-
const
|
|
9357
|
+
const query2 = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
|
|
9094
9358
|
return this.fetch(
|
|
9095
|
-
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${
|
|
9359
|
+
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query2}`,
|
|
9096
9360
|
{ method: "DELETE" }
|
|
9097
9361
|
);
|
|
9098
9362
|
}
|
|
@@ -9184,12 +9448,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9184
9448
|
}
|
|
9185
9449
|
/** Vendor lists a `vendor_list` import can name (configuration only). */
|
|
9186
9450
|
async listSubsetImportVendorLists(wid, connectionId, options) {
|
|
9187
|
-
const
|
|
9451
|
+
const query2 = new URLSearchParams({
|
|
9188
9452
|
query: options?.query ?? "",
|
|
9189
9453
|
limit: String(options?.limit ?? 50)
|
|
9190
9454
|
});
|
|
9191
9455
|
return this.fetch(
|
|
9192
|
-
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${
|
|
9456
|
+
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
|
|
9193
9457
|
);
|
|
9194
9458
|
}
|
|
9195
9459
|
/** Remote fields a `field_filter` import can name, with their operators. */
|
|
@@ -9251,10 +9515,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9251
9515
|
});
|
|
9252
9516
|
}
|
|
9253
9517
|
async getHubspotReconciliationMatches(wid, params) {
|
|
9254
|
-
const
|
|
9255
|
-
if (params?.limit !== void 0)
|
|
9256
|
-
if (params?.offset !== void 0)
|
|
9257
|
-
const qs =
|
|
9518
|
+
const query2 = new URLSearchParams();
|
|
9519
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
9520
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
9521
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9258
9522
|
return this.fetch(
|
|
9259
9523
|
`w/${wid}/app-connections/hubspot/reconciliation/matches${qs}`
|
|
9260
9524
|
);
|
|
@@ -9277,11 +9541,11 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9277
9541
|
});
|
|
9278
9542
|
}
|
|
9279
9543
|
async getLinkedHubspotMembers(wid, params) {
|
|
9280
|
-
const
|
|
9281
|
-
if (params?.page !== void 0)
|
|
9282
|
-
if (params?.pageSize !== void 0)
|
|
9283
|
-
if (params?.search?.trim())
|
|
9284
|
-
const qs =
|
|
9544
|
+
const query2 = new URLSearchParams();
|
|
9545
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
9546
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
9547
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
9548
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9285
9549
|
return this.fetch(
|
|
9286
9550
|
`w/${wid}/app-connections/hubspot/reconciliation/linked${qs}`
|
|
9287
9551
|
);
|
|
@@ -9341,10 +9605,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9341
9605
|
* and Monday twins return), with cursor pagination.
|
|
9342
9606
|
*/
|
|
9343
9607
|
async getHubspotSyncLogs(wid, params) {
|
|
9344
|
-
const
|
|
9345
|
-
if (params?.pageSize)
|
|
9346
|
-
if (params?.cursor)
|
|
9347
|
-
const qs =
|
|
9608
|
+
const query2 = new URLSearchParams();
|
|
9609
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
9610
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
9611
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9348
9612
|
return this.fetch(
|
|
9349
9613
|
`w/${wid}/app-connections/hubspot/sync/logs${qs}`
|
|
9350
9614
|
);
|
|
@@ -9358,6 +9622,37 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9358
9622
|
|
|
9359
9623
|
// src/api/sites.ts
|
|
9360
9624
|
var SitesApi = class extends BaseApiClient {
|
|
9625
|
+
/** Start a fresh synthetic patient session on the Site's configured Workflow. */
|
|
9626
|
+
async startPublicDemo(wid, siteUuid, request) {
|
|
9627
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs`, {
|
|
9628
|
+
method: "POST",
|
|
9629
|
+
body: JSON.stringify(request)
|
|
9630
|
+
});
|
|
9631
|
+
}
|
|
9632
|
+
/** Read only a demo the acting Member drives. */
|
|
9633
|
+
async getPublicDemo(wid, siteUuid, runId) {
|
|
9634
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}`);
|
|
9635
|
+
}
|
|
9636
|
+
/** End this visitor's run and release its test resources. */
|
|
9637
|
+
async endPublicDemo(wid, siteUuid, runId) {
|
|
9638
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/end`, {
|
|
9639
|
+
method: "POST",
|
|
9640
|
+
keepalive: true,
|
|
9641
|
+
body: JSON.stringify({})
|
|
9642
|
+
});
|
|
9643
|
+
}
|
|
9644
|
+
async sendPublicDemoMessage(wid, siteUuid, runId, request) {
|
|
9645
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/messages`, {
|
|
9646
|
+
method: "POST",
|
|
9647
|
+
body: JSON.stringify(request)
|
|
9648
|
+
});
|
|
9649
|
+
}
|
|
9650
|
+
async submitPublicDemoForm(wid, siteUuid, runId, request) {
|
|
9651
|
+
return this.fetch(`w/${wid}/demos/${encodeURIComponent(siteUuid)}/runs/${runId}/form`, {
|
|
9652
|
+
method: "PUT",
|
|
9653
|
+
body: JSON.stringify(request)
|
|
9654
|
+
});
|
|
9655
|
+
}
|
|
9361
9656
|
/** List all sites in a workspace. */
|
|
9362
9657
|
async getSites(wid) {
|
|
9363
9658
|
return this.fetch(`w/${wid}/sites`);
|
|
@@ -9397,6 +9692,15 @@ var SitesApi = class extends BaseApiClient {
|
|
|
9397
9692
|
async getSiteSource(wid, siteId) {
|
|
9398
9693
|
return this.fetch(`w/${wid}/sites/${siteId}/source`);
|
|
9399
9694
|
}
|
|
9695
|
+
/** List source release revisions from newest to oldest. */
|
|
9696
|
+
async getSiteSourceReleases(wid, siteId, options = {}) {
|
|
9697
|
+
const params = new URLSearchParams();
|
|
9698
|
+
if (options.beforeVersion != null) params.set("beforeVersion", String(options.beforeVersion));
|
|
9699
|
+
if (options.limit != null) params.set("limit", String(options.limit));
|
|
9700
|
+
return this.fetch(
|
|
9701
|
+
`w/${wid}/sites/${siteId}/source/releases${params.size ? `?${params}` : ""}`
|
|
9702
|
+
);
|
|
9703
|
+
}
|
|
9400
9704
|
/** Starter templates the caller may seed (superuser-only ones filtered server-side). */
|
|
9401
9705
|
async getSiteSourceTemplates(wid, siteId) {
|
|
9402
9706
|
return this.fetch(`w/${wid}/sites/${siteId}/source/templates`);
|
|
@@ -9478,8 +9782,8 @@ var SitesApi = class extends BaseApiClient {
|
|
|
9478
9782
|
* (e.g. one the builder has selected but not yet saved).
|
|
9479
9783
|
*/
|
|
9480
9784
|
async getThemeSettings(wid, siteId, theme) {
|
|
9481
|
-
const
|
|
9482
|
-
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${
|
|
9785
|
+
const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
|
|
9786
|
+
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
|
|
9483
9787
|
}
|
|
9484
9788
|
/** Save values for the active theme's settings (validated against the schema). */
|
|
9485
9789
|
async updateThemeSettings(wid, siteId, values) {
|
|
@@ -9625,9 +9929,9 @@ var SitesApi = class extends BaseApiClient {
|
|
|
9625
9929
|
if (parentId !== void 0 && parentId !== null) {
|
|
9626
9930
|
params.append("parent_id", parentId.toString());
|
|
9627
9931
|
}
|
|
9628
|
-
const
|
|
9932
|
+
const query2 = params.toString();
|
|
9629
9933
|
return this.fetch(
|
|
9630
|
-
`w/${wid}/sites/${siteId}/menu/items${
|
|
9934
|
+
`w/${wid}/sites/${siteId}/menu/items${query2 ? `?${query2}` : ""}`
|
|
9631
9935
|
);
|
|
9632
9936
|
}
|
|
9633
9937
|
/** Create a new menu item in a site's navigation. */
|
|
@@ -9841,8 +10145,8 @@ function supportRequestParams(params) {
|
|
|
9841
10145
|
if (params?.linearLinked !== void 0) {
|
|
9842
10146
|
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
9843
10147
|
}
|
|
9844
|
-
const
|
|
9845
|
-
return
|
|
10148
|
+
const query2 = searchParams.toString();
|
|
10149
|
+
return query2 ? `?${query2}` : "";
|
|
9846
10150
|
}
|
|
9847
10151
|
var SupportRequestsApi = class extends BaseApiClient {
|
|
9848
10152
|
async listSupportRequests(params) {
|
|
@@ -10234,8 +10538,8 @@ function withFilters(params, options) {
|
|
|
10234
10538
|
return params;
|
|
10235
10539
|
}
|
|
10236
10540
|
function suffix(params) {
|
|
10237
|
-
const
|
|
10238
|
-
return
|
|
10541
|
+
const query2 = params.toString();
|
|
10542
|
+
return query2 ? `?${query2}` : "";
|
|
10239
10543
|
}
|
|
10240
10544
|
var TrackedLinksApi = class extends BaseApiClient {
|
|
10241
10545
|
/** Header counters plus whether shortening is configured and enabled. */
|
|
@@ -10368,8 +10672,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10368
10672
|
* for is the state it is in.
|
|
10369
10673
|
*/
|
|
10370
10674
|
async deleteJourneyDraft(wid, journeyId, expectedUpdatedAt) {
|
|
10371
|
-
const
|
|
10372
|
-
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${
|
|
10675
|
+
const query2 = new URLSearchParams({ expectedUpdatedAt });
|
|
10676
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query2.toString()}`, {
|
|
10373
10677
|
method: "DELETE"
|
|
10374
10678
|
});
|
|
10375
10679
|
}
|
|
@@ -10380,11 +10684,13 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10380
10684
|
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
10381
10685
|
*/
|
|
10382
10686
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
10383
|
-
const
|
|
10384
|
-
if (includeArchived)
|
|
10385
|
-
if (pageOpts?.
|
|
10386
|
-
if (pageOpts?.
|
|
10387
|
-
|
|
10687
|
+
const query2 = new URLSearchParams();
|
|
10688
|
+
if (includeArchived) query2.set("include_archived", "true");
|
|
10689
|
+
if (pageOpts?.search) query2.set("search", pageOpts.search);
|
|
10690
|
+
if (pageOpts?.archivedOnly) query2.set("archived_only", "true");
|
|
10691
|
+
if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
|
|
10692
|
+
if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
|
|
10693
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
10388
10694
|
return this.fetch(`w/${wid}/journeys${qs}`);
|
|
10389
10695
|
}
|
|
10390
10696
|
/**
|
|
@@ -10510,9 +10816,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10510
10816
|
* `additionalMembers` is the size of a batch about to be enrolled.
|
|
10511
10817
|
*/
|
|
10512
10818
|
async getJourneySendEstimate(wid, journeyId, additionalMembers = 0) {
|
|
10513
|
-
const
|
|
10819
|
+
const query2 = new URLSearchParams({ additionalMembers: String(additionalMembers) });
|
|
10514
10820
|
return this.fetch(
|
|
10515
|
-
`w/${wid}/journeys/${journeyId}/send-estimate?${
|
|
10821
|
+
`w/${wid}/journeys/${journeyId}/send-estimate?${query2.toString()}`
|
|
10516
10822
|
);
|
|
10517
10823
|
}
|
|
10518
10824
|
/** Create a step within a journey. */
|
|
@@ -10601,9 +10907,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10601
10907
|
qs.set("currentTaskId", String(params.currentTaskId));
|
|
10602
10908
|
if (params?.runtimeFailureEdgeId !== void 0)
|
|
10603
10909
|
qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
|
|
10604
|
-
const
|
|
10910
|
+
const query2 = qs.toString();
|
|
10605
10911
|
return this.fetch(
|
|
10606
|
-
`w/${wid}/journeys/${journeyId}/members${
|
|
10912
|
+
`w/${wid}/journeys/${journeyId}/members${query2 ? `?${query2}` : ""}`
|
|
10607
10913
|
);
|
|
10608
10914
|
}
|
|
10609
10915
|
/** Enroll one or more members in a journey. */
|
|
@@ -10662,9 +10968,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10662
10968
|
if (params.zeroEmissionOnly !== void 0) {
|
|
10663
10969
|
qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
|
|
10664
10970
|
}
|
|
10665
|
-
const
|
|
10971
|
+
const query2 = qs.toString();
|
|
10666
10972
|
return this.fetch(
|
|
10667
|
-
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (
|
|
10973
|
+
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query2 ? `?${query2}` : "")
|
|
10668
10974
|
);
|
|
10669
10975
|
}
|
|
10670
10976
|
/** List members currently or historically associated with one journey step. */
|
|
@@ -10674,9 +10980,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10674
10980
|
if (params.mode) qs.set("mode", params.mode);
|
|
10675
10981
|
if (params.page) qs.set("page", String(params.page));
|
|
10676
10982
|
if (params.pageSize) qs.set("pageSize", String(params.pageSize));
|
|
10677
|
-
const
|
|
10983
|
+
const query2 = qs.toString();
|
|
10678
10984
|
return this.fetch(
|
|
10679
|
-
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${
|
|
10985
|
+
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query2 ? `?${query2}` : ""}`
|
|
10680
10986
|
);
|
|
10681
10987
|
}
|
|
10682
10988
|
/** Get member counts by status for each journey step. */
|
|
@@ -10738,6 +11044,12 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10738
11044
|
|
|
10739
11045
|
// src/api/workflows.ts
|
|
10740
11046
|
var WorkflowsApi = class extends BaseApiClient {
|
|
11047
|
+
async uploadWorkflowKnowledge(wid, id, file, relativePath) {
|
|
11048
|
+
const body = new FormData();
|
|
11049
|
+
body.append("file", file, relativePath.split("/").pop());
|
|
11050
|
+
body.append("relativePath", relativePath);
|
|
11051
|
+
return this.fetch(`w/${wid}/workflows/${id}/knowledge/uploads`, { method: "POST", body });
|
|
11052
|
+
}
|
|
10741
11053
|
/** List all workflows in a workspace, optionally including archived ones. */
|
|
10742
11054
|
async getWorkflows(wid, options = {}) {
|
|
10743
11055
|
const params = new URLSearchParams();
|
|
@@ -10786,8 +11098,8 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
10786
11098
|
* portion so the active count can be derived.
|
|
10787
11099
|
*/
|
|
10788
11100
|
async getWorkflowDiagram(wid, id, options = {}) {
|
|
10789
|
-
const
|
|
10790
|
-
return this.fetch(`w/${wid}/workflows/${id}/diagram${
|
|
11101
|
+
const query2 = options.includeArchived ? "?include_archived=true" : "";
|
|
11102
|
+
return this.fetch(`w/${wid}/workflows/${id}/diagram${query2}`);
|
|
10791
11103
|
}
|
|
10792
11104
|
/**
|
|
10793
11105
|
* The outline a Workflow's diagram is drawn from: its active Tasks, its
|
|
@@ -11101,36 +11413,36 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
11101
11413
|
};
|
|
11102
11414
|
|
|
11103
11415
|
// src/api/workflow-notes.ts
|
|
11104
|
-
function notesPath(wid, workflowId, noteId,
|
|
11416
|
+
function notesPath(wid, workflowId, noteId, query2) {
|
|
11105
11417
|
const base = noteId == null ? `w/${wid}/workflows/${workflowId}/notes` : `w/${wid}/workflows/${workflowId}/notes/${noteId}`;
|
|
11106
|
-
if (
|
|
11418
|
+
if (query2?.workflowRevisionId == null) return base;
|
|
11107
11419
|
const params = new URLSearchParams({
|
|
11108
|
-
workflowRevisionId: String(
|
|
11420
|
+
workflowRevisionId: String(query2.workflowRevisionId)
|
|
11109
11421
|
});
|
|
11110
11422
|
return `${base}?${params.toString()}`;
|
|
11111
11423
|
}
|
|
11112
11424
|
var WorkflowNotesApi = class extends BaseApiClient {
|
|
11113
11425
|
/** List notes for a workflow root (draft unless `workflowRevisionId` is set). */
|
|
11114
|
-
async getWorkflowNotes(wid, workflowId,
|
|
11115
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
11426
|
+
async getWorkflowNotes(wid, workflowId, query2) {
|
|
11427
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2));
|
|
11116
11428
|
}
|
|
11117
11429
|
/** Create a new note on a workflow's draft (or a pinned draft revision). */
|
|
11118
|
-
async createWorkflowNote(wid, workflowId, data,
|
|
11119
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
11430
|
+
async createWorkflowNote(wid, workflowId, data, query2) {
|
|
11431
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2), {
|
|
11120
11432
|
method: "POST",
|
|
11121
11433
|
body: JSON.stringify(data)
|
|
11122
11434
|
});
|
|
11123
11435
|
}
|
|
11124
11436
|
/** Update an existing workflow note with partial data. */
|
|
11125
|
-
async updateWorkflowNote(wid, workflowId, noteId, data,
|
|
11126
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
11437
|
+
async updateWorkflowNote(wid, workflowId, noteId, data, query2) {
|
|
11438
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
11127
11439
|
method: "PUT",
|
|
11128
11440
|
body: JSON.stringify(data)
|
|
11129
11441
|
});
|
|
11130
11442
|
}
|
|
11131
11443
|
/** Delete a workflow note by ID. */
|
|
11132
|
-
async deleteWorkflowNote(wid, workflowId, noteId,
|
|
11133
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
11444
|
+
async deleteWorkflowNote(wid, workflowId, noteId, query2) {
|
|
11445
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
11134
11446
|
method: "DELETE"
|
|
11135
11447
|
});
|
|
11136
11448
|
}
|
|
@@ -11181,6 +11493,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
11181
11493
|
Scope2["WORKSPACE_READ"] = "workspace:read";
|
|
11182
11494
|
Scope2["WORKSPACE_WRITE"] = "workspace:write";
|
|
11183
11495
|
Scope2["WORKSPACE_ADMIN"] = "workspace:admin";
|
|
11496
|
+
Scope2["MEDICAL_BILLING_READ"] = "medical_billing:read";
|
|
11497
|
+
Scope2["MEDICAL_BILLING_WRITE"] = "medical_billing:write";
|
|
11498
|
+
Scope2["MEDICAL_BILLING_ADMIN"] = "medical_billing:admin";
|
|
11184
11499
|
Scope2["MEMBERS_READ"] = "members:read";
|
|
11185
11500
|
Scope2["MEMBERS_WRITE"] = "members:write";
|
|
11186
11501
|
Scope2["MEMBERS_ADMIN"] = "members:admin";
|
|
@@ -11190,6 +11505,7 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
11190
11505
|
Scope2["CHATS_READ"] = "chats:read";
|
|
11191
11506
|
Scope2["CHATS_WRITE"] = "chats:write";
|
|
11192
11507
|
Scope2["CHATS_ADMIN"] = "chats:admin";
|
|
11508
|
+
Scope2["DEMOS_RUN"] = "demos:run";
|
|
11193
11509
|
Scope2["DIRECT_MESSAGES_READ"] = "dm:read";
|
|
11194
11510
|
Scope2["DIRECT_MESSAGES_WRITE"] = "dm:write";
|
|
11195
11511
|
Scope2["DIRECT_MESSAGES_ADMIN"] = "dm:admin";
|
|
@@ -11440,6 +11756,7 @@ var EventRuleEventType = /* @__PURE__ */ ((EventRuleEventType2) => {
|
|
|
11440
11756
|
EventRuleEventType2["CHAT_SUMMARY"] = "chat:summary";
|
|
11441
11757
|
EventRuleEventType2["MESSAGE_CREATED"] = "message:created";
|
|
11442
11758
|
EventRuleEventType2["LINK_CLICKED"] = "link:clicked";
|
|
11759
|
+
EventRuleEventType2["SMS_DELIVERY_FAILED"] = "sms:delivery_failed";
|
|
11443
11760
|
EventRuleEventType2["CHAT_CALLBACK"] = "chat:callback";
|
|
11444
11761
|
EventRuleEventType2["MEMBER_UPDATED"] = "member:updated";
|
|
11445
11762
|
EventRuleEventType2["ROUTINE_TRIGGERED"] = "routine:triggered";
|
|
@@ -11531,9 +11848,6 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11531
11848
|
WorkspaceFeature2["BROWSER"] = "browser";
|
|
11532
11849
|
WorkspaceFeature2["WEB_SEARCH"] = "web_search";
|
|
11533
11850
|
WorkspaceFeature2["CALENDAR"] = "calendar";
|
|
11534
|
-
WorkspaceFeature2["JOURNEY_V2_EDITOR"] = "journey_v2_editor";
|
|
11535
|
-
WorkspaceFeature2["MAILBOX_USER_INPUT"] = "mailbox_user_input";
|
|
11536
|
-
WorkspaceFeature2["FORKED_TRAJECTORIES"] = "forked_trajectories";
|
|
11537
11851
|
WorkspaceFeature2["GMAIL"] = "gmail";
|
|
11538
11852
|
WorkspaceFeature2["GCALENDAR"] = "gcalendar";
|
|
11539
11853
|
WorkspaceFeature2["GDRIVE"] = "gdrive";
|
|
@@ -11541,6 +11855,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11541
11855
|
WorkspaceFeature2["MONDAY"] = "monday";
|
|
11542
11856
|
WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
|
|
11543
11857
|
WorkspaceFeature2["CLAIM_MD"] = "claim_md";
|
|
11858
|
+
WorkspaceFeature2["STEDI"] = "stedi";
|
|
11544
11859
|
WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
|
|
11545
11860
|
WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
|
|
11546
11861
|
WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
|
|
@@ -11552,6 +11867,11 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11552
11867
|
WorkspaceFeature2["CHARLESTON_NEPHROLOGY_PMD_PAGING"] = "charleston_nephrology_pmd_paging";
|
|
11553
11868
|
WorkspaceFeature2["PATIENTSYNC_TRANSFER"] = "patientsync_transfer";
|
|
11554
11869
|
WorkspaceFeature2["COSAN_PATHWAYS_SCHEDULING"] = "cosan_pathways_scheduling";
|
|
11870
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_PHONE_CALL"] = "outbound_call_intents_phone_call";
|
|
11871
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CREATE"] = "outbound_call_intents_chat_create";
|
|
11872
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_POST_CHAT_DIAL"] = "outbound_call_intents_post_chat_dial";
|
|
11873
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_CHAT_CALLBACK"] = "outbound_call_intents_chat_callback";
|
|
11874
|
+
WorkspaceFeature2["OUTBOUND_CALL_INTENTS_ROUTINE"] = "outbound_call_intents_routine";
|
|
11555
11875
|
return WorkspaceFeature2;
|
|
11556
11876
|
})(WorkspaceFeature || {});
|
|
11557
11877
|
var MemberFeature = /* @__PURE__ */ ((MemberFeature2) => {
|
|
@@ -11859,6 +12179,14 @@ var CapturedEffectKind = {
|
|
|
11859
12179
|
};
|
|
11860
12180
|
|
|
11861
12181
|
// src/types/generated/test_chat_run_inbound.ts
|
|
12182
|
+
var FaxDocumentRefusal = {
|
|
12183
|
+
fax_document_invalid: "fax_document_invalid"
|
|
12184
|
+
};
|
|
12185
|
+
var FaxRunRefusal = {
|
|
12186
|
+
fax_run_on_the_fax_channel: "fax_run_on_the_fax_channel",
|
|
12187
|
+
fax_run_is_manual: "fax_run_is_manual",
|
|
12188
|
+
fax_run_takes_no_identity: "fax_run_takes_no_identity"
|
|
12189
|
+
};
|
|
11862
12190
|
var InboundRefusal = {
|
|
11863
12191
|
run_not_found: "run_not_found",
|
|
11864
12192
|
run_ended: "run_ended",
|
|
@@ -12580,19 +12908,12 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12580
12908
|
}
|
|
12581
12909
|
/** List client workspaces managed by this reseller workspace, paginated. */
|
|
12582
12910
|
async getResellerWorkspaces(wid, params) {
|
|
12583
|
-
const
|
|
12584
|
-
if (params?.page !== void 0)
|
|
12585
|
-
if (params?.pageSize !== void 0)
|
|
12586
|
-
const qs =
|
|
12911
|
+
const query2 = new URLSearchParams();
|
|
12912
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
12913
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
12914
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12587
12915
|
return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
|
|
12588
12916
|
}
|
|
12589
|
-
/** Create a new client workspace under a reseller workspace. */
|
|
12590
|
-
async createClientWorkspace(wid, data) {
|
|
12591
|
-
return this.fetch(`w/${wid}/reseller/workspaces`, {
|
|
12592
|
-
method: "POST",
|
|
12593
|
-
body: JSON.stringify(data)
|
|
12594
|
-
});
|
|
12595
|
-
}
|
|
12596
12917
|
/** Get a single client workspace by ID. */
|
|
12597
12918
|
async getClientWorkspace(wid, workspaceId) {
|
|
12598
12919
|
return this.fetch(`w/${wid}/reseller/workspaces/${workspaceId}`);
|
|
@@ -12702,7 +13023,9 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12702
13023
|
searchParams.set("revision_mode", "active");
|
|
12703
13024
|
}
|
|
12704
13025
|
const qs = searchParams.toString();
|
|
12705
|
-
const data = await this.fetch(
|
|
13026
|
+
const data = await this.fetch(
|
|
13027
|
+
`w/${wid}/export${qs ? `?${qs}` : ""}`
|
|
13028
|
+
);
|
|
12706
13029
|
this.verifyExportSelection(data, workflowId, options);
|
|
12707
13030
|
return data;
|
|
12708
13031
|
}
|
|
@@ -12993,6 +13316,90 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12993
13316
|
}
|
|
12994
13317
|
};
|
|
12995
13318
|
|
|
13319
|
+
// src/api/medical-billing.ts
|
|
13320
|
+
function query(params) {
|
|
13321
|
+
const values = new URLSearchParams();
|
|
13322
|
+
if (params?.after != null) values.set("after", String(params.after));
|
|
13323
|
+
if (params?.limit != null) values.set("limit", String(params.limit));
|
|
13324
|
+
if (params?.memberId != null) values.set("member_id", String(params.memberId));
|
|
13325
|
+
if (params?.connectionId != null) values.set("connection_id", String(params.connectionId));
|
|
13326
|
+
return values.size ? `?${values}` : "";
|
|
13327
|
+
}
|
|
13328
|
+
var MedicalBillingApi = class extends BaseApiClient {
|
|
13329
|
+
listMedicalBillingConnections(wid) {
|
|
13330
|
+
return this.fetch(`w/${wid}/medical-billing/connections`);
|
|
13331
|
+
}
|
|
13332
|
+
submitMedicalClaim(wid, body) {
|
|
13333
|
+
return this.fetch(`w/${wid}/medical-billing/claim-submissions`, {
|
|
13334
|
+
method: "POST",
|
|
13335
|
+
body: JSON.stringify(body)
|
|
13336
|
+
});
|
|
13337
|
+
}
|
|
13338
|
+
listMedicalBillingProviders(wid, params) {
|
|
13339
|
+
return this.fetch(`w/${wid}/medical-billing/providers${query(params)}`);
|
|
13340
|
+
}
|
|
13341
|
+
listMedicalCoverages(wid, params) {
|
|
13342
|
+
return this.fetch(`w/${wid}/medical-billing/coverages${query(params)}`);
|
|
13343
|
+
}
|
|
13344
|
+
createMedicalCoverage(wid, body) {
|
|
13345
|
+
return this.fetch(`w/${wid}/medical-billing/coverages`, {
|
|
13346
|
+
method: "POST",
|
|
13347
|
+
body: JSON.stringify(body)
|
|
13348
|
+
});
|
|
13349
|
+
}
|
|
13350
|
+
updateMedicalCoverage(wid, id, body) {
|
|
13351
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}`, {
|
|
13352
|
+
method: "PATCH",
|
|
13353
|
+
body: JSON.stringify(body)
|
|
13354
|
+
});
|
|
13355
|
+
}
|
|
13356
|
+
setMedicalPayerRoute(wid, id, body) {
|
|
13357
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}/payer-routes`, {
|
|
13358
|
+
method: "POST",
|
|
13359
|
+
body: JSON.stringify(body)
|
|
13360
|
+
});
|
|
13361
|
+
}
|
|
13362
|
+
listMedicalCharges(wid, params) {
|
|
13363
|
+
return this.fetch(`w/${wid}/medical-billing/charges${query(params)}`);
|
|
13364
|
+
}
|
|
13365
|
+
createMedicalCharge(wid, body) {
|
|
13366
|
+
return this.fetch(`w/${wid}/medical-billing/charges`, {
|
|
13367
|
+
method: "POST",
|
|
13368
|
+
body: JSON.stringify(body)
|
|
13369
|
+
});
|
|
13370
|
+
}
|
|
13371
|
+
updateMedicalCharge(wid, id, body) {
|
|
13372
|
+
return this.fetch(`w/${wid}/medical-billing/charges/${id}`, {
|
|
13373
|
+
method: "PATCH",
|
|
13374
|
+
body: JSON.stringify(body)
|
|
13375
|
+
});
|
|
13376
|
+
}
|
|
13377
|
+
listMedicalClaims(wid, params) {
|
|
13378
|
+
return this.fetch(`w/${wid}/medical-billing/claims${query(params)}`);
|
|
13379
|
+
}
|
|
13380
|
+
getMedicalClaim(wid, id) {
|
|
13381
|
+
return this.fetch(`w/${wid}/medical-billing/claims/${encodeURIComponent(id)}`);
|
|
13382
|
+
}
|
|
13383
|
+
listMedicalEligibilityChecks(wid, params) {
|
|
13384
|
+
return this.fetch(`w/${wid}/medical-billing/eligibility-checks${query(params)}`);
|
|
13385
|
+
}
|
|
13386
|
+
listMedicalRemittances(wid, params) {
|
|
13387
|
+
return this.fetch(`w/${wid}/medical-billing/remittances${query(params)}`);
|
|
13388
|
+
}
|
|
13389
|
+
getMedicalRemittance(wid, id) {
|
|
13390
|
+
return this.fetch(`w/${wid}/medical-billing/remittances/${id}`);
|
|
13391
|
+
}
|
|
13392
|
+
};
|
|
13393
|
+
|
|
13394
|
+
// src/types/generated/organization_webhook.ts
|
|
13395
|
+
var OrgWebhookDeliveryResponseStatus = {
|
|
13396
|
+
pending: "pending",
|
|
13397
|
+
processing: "processing",
|
|
13398
|
+
sent: "sent",
|
|
13399
|
+
dead_letter: "dead_letter",
|
|
13400
|
+
expired: "expired"
|
|
13401
|
+
};
|
|
13402
|
+
|
|
12996
13403
|
// src/types/generated/bundle_contract.ts
|
|
12997
13404
|
var BundleGrantRequestGranteeType = {
|
|
12998
13405
|
organization: "organization",
|
|
@@ -13132,6 +13539,8 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
13132
13539
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
13133
13540
|
documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
|
|
13134
13541
|
claimMd: new ClaimMdApi(apiKey, baseUrl, customFetch),
|
|
13542
|
+
stedi: new StediApi(apiKey, baseUrl, customFetch),
|
|
13543
|
+
medicalBilling: new MedicalBillingApi(apiKey, baseUrl, customFetch),
|
|
13135
13544
|
hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
|
|
13136
13545
|
features: new FeaturesApi(apiKey, baseUrl, customFetch),
|
|
13137
13546
|
files: new FilesApi(apiKey, baseUrl, customFetch),
|
|
@@ -13196,6 +13605,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13196
13605
|
"archiveMemberByExternalId",
|
|
13197
13606
|
"archiveMemberRelationship",
|
|
13198
13607
|
"archivePersona",
|
|
13608
|
+
"archiveInbox",
|
|
13199
13609
|
"archivePhoneNumber",
|
|
13200
13610
|
"archiveStep",
|
|
13201
13611
|
"archiveTask",
|
|
@@ -13269,7 +13679,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13269
13679
|
"createChatCompletion",
|
|
13270
13680
|
"createChatFilter",
|
|
13271
13681
|
"createChatLabel",
|
|
13272
|
-
"createClientWorkspace",
|
|
13273
13682
|
"createConnection",
|
|
13274
13683
|
"createContactPermission",
|
|
13275
13684
|
"createCustomTool",
|
|
@@ -13477,6 +13886,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13477
13886
|
"getApiKeys",
|
|
13478
13887
|
"getArchiveBlockers",
|
|
13479
13888
|
"getAthenaPlatformApp",
|
|
13889
|
+
"getFhirConnectionSyncConfig",
|
|
13480
13890
|
"getAssignment",
|
|
13481
13891
|
"getAssignmentCelContext",
|
|
13482
13892
|
"getAssignmentMessages",
|
|
@@ -13535,7 +13945,6 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13535
13945
|
"getChats",
|
|
13536
13946
|
"getChatsDailyCreationStats",
|
|
13537
13947
|
"getChatsNeedsResponse",
|
|
13538
|
-
"getChildThreadMessages",
|
|
13539
13948
|
"getClientWorkspace",
|
|
13540
13949
|
"getConfigurationHealth",
|
|
13541
13950
|
"getConfluenceStatus",
|
|
@@ -13577,11 +13986,27 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13577
13986
|
"getDevices",
|
|
13578
13987
|
"getDiscordBot",
|
|
13579
13988
|
"getDiscordBotAccounts",
|
|
13580
|
-
"getDiscordBotByUuid",
|
|
13581
13989
|
"getDiscordBots",
|
|
13582
13990
|
"getDiscordGuilds",
|
|
13583
13991
|
"getDiscordThreads",
|
|
13584
13992
|
"getClaimMdStatus",
|
|
13993
|
+
"listMedicalBillingConnections",
|
|
13994
|
+
"submitMedicalClaim",
|
|
13995
|
+
"listMedicalBillingProviders",
|
|
13996
|
+
"listMedicalCoverages",
|
|
13997
|
+
"createMedicalCoverage",
|
|
13998
|
+
"updateMedicalCoverage",
|
|
13999
|
+
"setMedicalPayerRoute",
|
|
14000
|
+
"listMedicalCharges",
|
|
14001
|
+
"createMedicalCharge",
|
|
14002
|
+
"updateMedicalCharge",
|
|
14003
|
+
"listMedicalClaims",
|
|
14004
|
+
"getMedicalClaim",
|
|
14005
|
+
"listMedicalEligibilityChecks",
|
|
14006
|
+
"listMedicalRemittances",
|
|
14007
|
+
"getMedicalRemittance",
|
|
14008
|
+
"getStediConnections",
|
|
14009
|
+
"getStediConnectionStatus",
|
|
13585
14010
|
"getDocumoFaxSetup",
|
|
13586
14011
|
"listDocumoFaxes",
|
|
13587
14012
|
"getDocumoFaxStatus",
|
|
@@ -13607,6 +14032,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13607
14032
|
"getQueryFields",
|
|
13608
14033
|
"getSiteSharing",
|
|
13609
14034
|
"getSiteSource",
|
|
14035
|
+
"getSiteSourceReleases",
|
|
13610
14036
|
"getSiteSourceTemplates",
|
|
13611
14037
|
"getThemeSettings",
|
|
13612
14038
|
"importSiteSourceZip",
|
|
@@ -13663,6 +14089,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13663
14089
|
"getInbox",
|
|
13664
14090
|
"getInboxEmail",
|
|
13665
14091
|
"getInboxEmails",
|
|
14092
|
+
"getInboxArchiveBlockers",
|
|
13666
14093
|
"getInboxOutboundEmailStats",
|
|
13667
14094
|
"getInboxThreads",
|
|
13668
14095
|
"getInboxes",
|
|
@@ -13738,6 +14165,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13738
14165
|
"getPhoneCalls",
|
|
13739
14166
|
"getPhoneCallByUuid",
|
|
13740
14167
|
"getPhoneNumber",
|
|
14168
|
+
"getPhoneNumberActivity",
|
|
13741
14169
|
"getPhoneNumberCalls",
|
|
13742
14170
|
"getPhoneNumberFaxes",
|
|
13743
14171
|
"getPhoneNumberMessages",
|
|
@@ -13791,6 +14219,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13791
14219
|
"getSupervisor",
|
|
13792
14220
|
"getSupervisors",
|
|
13793
14221
|
"getSyncRunItems",
|
|
14222
|
+
"getSyncRunItemsPage",
|
|
13794
14223
|
"getSyncRuns",
|
|
13795
14224
|
"getTask",
|
|
13796
14225
|
"getTaskChats",
|
|
@@ -13913,6 +14342,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13913
14342
|
"deleteMetric",
|
|
13914
14343
|
"listMetricObservations",
|
|
13915
14344
|
"getMetricSeries",
|
|
14345
|
+
"getMetricSeriesBatch",
|
|
13916
14346
|
"computeChatMetrics",
|
|
13917
14347
|
"listPushSubscriptions",
|
|
13918
14348
|
"listResourceWorkflows",
|
|
@@ -14243,7 +14673,6 @@ function bindChatsMethods(target, chats) {
|
|
|
14243
14673
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
14244
14674
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
14245
14675
|
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
14246
|
-
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
14247
14676
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
14248
14677
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
14249
14678
|
target.initiateOutboundCall = chats.initiateOutboundCall.bind(chats);
|
|
@@ -14484,7 +14913,6 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14484
14913
|
target.dismissNotification = workspaces.dismissNotification.bind(workspaces);
|
|
14485
14914
|
target.dismissAllNotifications = workspaces.dismissAllNotifications.bind(workspaces);
|
|
14486
14915
|
target.getResellerWorkspaces = workspaces.getResellerWorkspaces.bind(workspaces);
|
|
14487
|
-
target.createClientWorkspace = workspaces.createClientWorkspace.bind(workspaces);
|
|
14488
14916
|
target.getClientWorkspace = workspaces.getClientWorkspace.bind(workspaces);
|
|
14489
14917
|
target.updateClientWorkspace = workspaces.updateClientWorkspace.bind(workspaces);
|
|
14490
14918
|
target.deleteClientWorkspace = workspaces.deleteClientWorkspace.bind(workspaces);
|
|
@@ -14541,6 +14969,9 @@ function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
|
14541
14969
|
|
|
14542
14970
|
// src/client/bindings/auth.ts
|
|
14543
14971
|
function bindAuthMethods(target, auth, assignments) {
|
|
14972
|
+
target.getAccountNotices = auth.getAccountNotices.bind(auth);
|
|
14973
|
+
target.viewAccountNotice = auth.viewAccountNotice.bind(auth);
|
|
14974
|
+
target.dismissAccountNotice = auth.dismissAccountNotice.bind(auth);
|
|
14544
14975
|
target.getUserAccount = auth.getUserAccount.bind(auth);
|
|
14545
14976
|
target.updateUserAccount = auth.updateUserAccount.bind(auth);
|
|
14546
14977
|
target.recordAcquisition = auth.recordAcquisition.bind(auth);
|
|
@@ -14602,6 +15033,11 @@ function bindAuthMethods(target, auth, assignments) {
|
|
|
14602
15033
|
|
|
14603
15034
|
// src/client/bindings/sites.ts
|
|
14604
15035
|
function bindSitesMethods(target, sites) {
|
|
15036
|
+
target.endPublicDemo = sites.endPublicDemo.bind(sites);
|
|
15037
|
+
target.startPublicDemo = sites.startPublicDemo.bind(sites);
|
|
15038
|
+
target.getPublicDemo = sites.getPublicDemo.bind(sites);
|
|
15039
|
+
target.sendPublicDemoMessage = sites.sendPublicDemoMessage.bind(sites);
|
|
15040
|
+
target.submitPublicDemoForm = sites.submitPublicDemoForm.bind(sites);
|
|
14605
15041
|
target.getSites = sites.getSites.bind(sites);
|
|
14606
15042
|
target.checkSiteSlugAvailability = sites.checkSiteSlugAvailability.bind(sites);
|
|
14607
15043
|
target.checkSiteDomainAvailability = sites.checkSiteDomainAvailability.bind(sites);
|
|
@@ -14609,6 +15045,7 @@ function bindSitesMethods(target, sites) {
|
|
|
14609
15045
|
target.getSiteSharing = sites.getSiteSharing.bind(sites);
|
|
14610
15046
|
target.updateSiteSharing = sites.updateSiteSharing.bind(sites);
|
|
14611
15047
|
target.getSiteSource = sites.getSiteSource.bind(sites);
|
|
15048
|
+
target.getSiteSourceReleases = sites.getSiteSourceReleases.bind(sites);
|
|
14612
15049
|
target.getSiteSourceTemplates = sites.getSiteSourceTemplates.bind(sites);
|
|
14613
15050
|
target.createSiteSource = sites.createSiteSource.bind(sites);
|
|
14614
15051
|
target.buildSiteSource = sites.buildSiteSource.bind(sites);
|
|
@@ -14669,6 +15106,8 @@ function bindFilesMethods(target, files) {
|
|
|
14669
15106
|
target.createFolder = files.createFolder.bind(files);
|
|
14670
15107
|
target.updateFolder = files.updateFolder.bind(files);
|
|
14671
15108
|
target.deleteFolder = files.deleteFolder.bind(files);
|
|
15109
|
+
target.reindexFile = files.reindexFile.bind(files);
|
|
15110
|
+
target.searchFile = files.searchFile.bind(files);
|
|
14672
15111
|
target.reindexFolder = files.reindexFolder.bind(files);
|
|
14673
15112
|
target.searchFolder = files.searchFolder.bind(files);
|
|
14674
15113
|
target.getFileLabels = files.getFileLabels.bind(files);
|
|
@@ -14756,6 +15195,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
14756
15195
|
target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
|
|
14757
15196
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
14758
15197
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
15198
|
+
target.uploadWorkflowKnowledge = workflows.uploadWorkflowKnowledge.bind(workflows);
|
|
14759
15199
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
14760
15200
|
target.deleteWorkflow = workflows.deleteWorkflow.bind(workflows);
|
|
14761
15201
|
target.archiveWorkflow = workflows.archiveWorkflow.bind(workflows);
|
|
@@ -14847,6 +15287,7 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14847
15287
|
target.getPhoneNumberOutboundAnalyticsSummary = phoneNumbers.getPhoneNumberOutboundAnalyticsSummary.bind(phoneNumbers);
|
|
14848
15288
|
target.getPhoneNumberOutboundAnalyticsCalls = phoneNumbers.getPhoneNumberOutboundAnalyticsCalls.bind(phoneNumbers);
|
|
14849
15289
|
target.exportPhoneNumberOutboundAnalyticsCsv = phoneNumbers.exportPhoneNumberOutboundAnalyticsCsv.bind(phoneNumbers);
|
|
15290
|
+
target.getPhoneNumberActivity = phoneNumbers.getPhoneNumberActivity.bind(phoneNumbers);
|
|
14850
15291
|
target.getPhoneNumberMessages = phoneNumbers.getPhoneNumberMessages.bind(phoneNumbers);
|
|
14851
15292
|
target.getPhoneNumberFaxes = phoneNumbers.getPhoneNumberFaxes.bind(phoneNumbers);
|
|
14852
15293
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
@@ -14860,6 +15301,8 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
14860
15301
|
target.createInbox = inboxes.createInbox.bind(inboxes);
|
|
14861
15302
|
target.updateInbox = inboxes.updateInbox.bind(inboxes);
|
|
14862
15303
|
target.deleteInbox = inboxes.deleteInbox.bind(inboxes);
|
|
15304
|
+
target.archiveInbox = inboxes.archiveInbox.bind(inboxes);
|
|
15305
|
+
target.getInboxArchiveBlockers = inboxes.getInboxArchiveBlockers.bind(inboxes);
|
|
14863
15306
|
target.getInboxEmails = inboxes.getInboxEmails.bind(inboxes);
|
|
14864
15307
|
target.getInboxEmail = inboxes.getInboxEmail.bind(inboxes);
|
|
14865
15308
|
target.markEmailAsRead = inboxes.markEmailAsRead.bind(inboxes);
|
|
@@ -14991,7 +15434,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
14991
15434
|
}
|
|
14992
15435
|
|
|
14993
15436
|
// src/client/bindings/integrations.ts
|
|
14994
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
15437
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, stedi, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
14995
15438
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
14996
15439
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
14997
15440
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
@@ -15021,7 +15464,6 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15021
15464
|
target.autoCreateDataTypeFromBoard = mondayIntegration.autoCreateDataTypeFromBoard.bind(mondayIntegration);
|
|
15022
15465
|
target.getDiscordBots = discordBots.getDiscordBots.bind(discordBots);
|
|
15023
15466
|
target.getDiscordBot = discordBots.getDiscordBot.bind(discordBots);
|
|
15024
|
-
target.getDiscordBotByUuid = discordBots.getDiscordBotByUuid.bind(discordBots);
|
|
15025
15467
|
target.createDiscordBot = discordBots.createDiscordBot.bind(discordBots);
|
|
15026
15468
|
target.updateDiscordBot = discordBots.updateDiscordBot.bind(discordBots);
|
|
15027
15469
|
target.deleteDiscordBot = discordBots.deleteDiscordBot.bind(discordBots);
|
|
@@ -15086,6 +15528,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15086
15528
|
target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
|
|
15087
15529
|
target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
|
|
15088
15530
|
target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
|
|
15531
|
+
target.getFhirConnectionSyncConfig = fhirConnections.getFhirConnectionSyncConfig.bind(fhirConnections);
|
|
15089
15532
|
target.getAthenaPlatformApp = fhirConnections.getAthenaPlatformApp.bind(fhirConnections);
|
|
15090
15533
|
target.verifyAthenaAccess = fhirConnections.verifyAthenaAccess.bind(fhirConnections);
|
|
15091
15534
|
target.connectAthena = fhirConnections.connectAthena.bind(fhirConnections);
|
|
@@ -15103,6 +15546,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15103
15546
|
target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
|
|
15104
15547
|
target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
|
|
15105
15548
|
target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
|
|
15549
|
+
target.getStediConnections = stedi.getStediConnections.bind(stedi);
|
|
15550
|
+
target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
|
|
15106
15551
|
target.configureHealthie = healthie.configureHealthie.bind(healthie);
|
|
15107
15552
|
target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
|
|
15108
15553
|
target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
|
|
@@ -15178,6 +15623,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15178
15623
|
target.startSyncRun = connectionSync.startSyncRun.bind(connectionSync);
|
|
15179
15624
|
target.getSyncRuns = connectionSync.getSyncRuns.bind(connectionSync);
|
|
15180
15625
|
target.getSyncRunItems = connectionSync.getSyncRunItems.bind(connectionSync);
|
|
15626
|
+
target.getSyncRunItemsPage = connectionSync.getSyncRunItemsPage.bind(connectionSync);
|
|
15181
15627
|
target.getMemberSyncSummary = connectionSync.getMemberSyncSummary.bind(connectionSync);
|
|
15182
15628
|
target.getConnectionFieldHomes = connectionSync.getConnectionFieldHomes.bind(connectionSync);
|
|
15183
15629
|
target.getInboundRecordStatus = connectionSync.getInboundRecordStatus.bind(connectionSync);
|
|
@@ -15224,6 +15670,13 @@ function bindOperatorMethods(target, operatorGroups) {
|
|
|
15224
15670
|
|
|
15225
15671
|
// src/client/bindings/org.ts
|
|
15226
15672
|
function bindOrgMethods(target, org) {
|
|
15673
|
+
target.authorizeOrgManagerDelegation = org.authorizeOrgManagerDelegation.bind(org);
|
|
15674
|
+
target.getOrgManagerCredentialResponse = org.getOrgManagerCredentialResponse.bind(org);
|
|
15675
|
+
target.stopOrgManagerTurn = org.stopOrgManagerTurn.bind(org);
|
|
15676
|
+
target.getOrgManagerChats = org.getOrgManagerChats.bind(org);
|
|
15677
|
+
target.createOrgManagerChat = org.createOrgManagerChat.bind(org);
|
|
15678
|
+
target.getOrgManagerMessages = org.getOrgManagerMessages.bind(org);
|
|
15679
|
+
target.startOrgManagerTurn = org.startOrgManagerTurn.bind(org);
|
|
15227
15680
|
target.listOrgDomains = org.listOrgDomains.bind(org);
|
|
15228
15681
|
target.registerOrgDomain = org.registerOrgDomain.bind(org);
|
|
15229
15682
|
target.getOrgDomain = org.getOrgDomain.bind(org);
|
|
@@ -15437,6 +15890,7 @@ function bindMetricsMethods(target, metrics) {
|
|
|
15437
15890
|
target.deleteMetric = metrics.deleteMetric.bind(metrics);
|
|
15438
15891
|
target.listMetricObservations = metrics.listMetricObservations.bind(metrics);
|
|
15439
15892
|
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
15893
|
+
target.getMetricSeriesBatch = metrics.getMetricSeriesBatch.bind(metrics);
|
|
15440
15894
|
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
15441
15895
|
}
|
|
15442
15896
|
|
|
@@ -15520,6 +15974,21 @@ var GravityRailClient = class {
|
|
|
15520
15974
|
// WorkspaceInvitations is exposed publicly for backward compatibility
|
|
15521
15975
|
workspaceInvitations;
|
|
15522
15976
|
// Store all API modules for cross-cutting operations
|
|
15977
|
+
listMedicalBillingProviders;
|
|
15978
|
+
listMedicalCoverages;
|
|
15979
|
+
createMedicalCoverage;
|
|
15980
|
+
updateMedicalCoverage;
|
|
15981
|
+
setMedicalPayerRoute;
|
|
15982
|
+
listMedicalCharges;
|
|
15983
|
+
createMedicalCharge;
|
|
15984
|
+
updateMedicalCharge;
|
|
15985
|
+
listMedicalClaims;
|
|
15986
|
+
getMedicalClaim;
|
|
15987
|
+
listMedicalEligibilityChecks;
|
|
15988
|
+
listMedicalRemittances;
|
|
15989
|
+
getMedicalRemittance;
|
|
15990
|
+
listMedicalBillingConnections;
|
|
15991
|
+
submitMedicalClaim;
|
|
15523
15992
|
apis;
|
|
15524
15993
|
// Tasks API
|
|
15525
15994
|
getTasks;
|
|
@@ -15571,7 +16040,6 @@ var GravityRailClient = class {
|
|
|
15571
16040
|
summarizeChat;
|
|
15572
16041
|
getChatMessages;
|
|
15573
16042
|
getChatTaskTransitions;
|
|
15574
|
-
getChildThreadMessages;
|
|
15575
16043
|
getChatToolCallMessages;
|
|
15576
16044
|
getChatTools;
|
|
15577
16045
|
initiateOutboundCall;
|
|
@@ -15779,6 +16247,7 @@ var GravityRailClient = class {
|
|
|
15779
16247
|
deleteMetric;
|
|
15780
16248
|
listMetricObservations;
|
|
15781
16249
|
getMetricSeries;
|
|
16250
|
+
getMetricSeriesBatch;
|
|
15782
16251
|
computeChatMetrics;
|
|
15783
16252
|
// Dashboards API
|
|
15784
16253
|
getDashboards;
|
|
@@ -15972,7 +16441,6 @@ var GravityRailClient = class {
|
|
|
15972
16441
|
dismissNotification;
|
|
15973
16442
|
dismissAllNotifications;
|
|
15974
16443
|
getResellerWorkspaces;
|
|
15975
|
-
createClientWorkspace;
|
|
15976
16444
|
getClientWorkspace;
|
|
15977
16445
|
updateClientWorkspace;
|
|
15978
16446
|
deleteClientWorkspace;
|
|
@@ -16008,6 +16476,13 @@ var GravityRailClient = class {
|
|
|
16008
16476
|
upsertWidgetDomain;
|
|
16009
16477
|
deleteWidgetDomain;
|
|
16010
16478
|
// Org API
|
|
16479
|
+
getOrgManagerCredentialResponse;
|
|
16480
|
+
authorizeOrgManagerDelegation;
|
|
16481
|
+
getOrgManagerChats;
|
|
16482
|
+
createOrgManagerChat;
|
|
16483
|
+
getOrgManagerMessages;
|
|
16484
|
+
startOrgManagerTurn;
|
|
16485
|
+
stopOrgManagerTurn;
|
|
16011
16486
|
listOrgDomains;
|
|
16012
16487
|
registerOrgDomain;
|
|
16013
16488
|
getOrgDomain;
|
|
@@ -16082,6 +16557,9 @@ var GravityRailClient = class {
|
|
|
16082
16557
|
declineInvitation;
|
|
16083
16558
|
// Auth API
|
|
16084
16559
|
getUserAccount;
|
|
16560
|
+
getAccountNotices;
|
|
16561
|
+
viewAccountNotice;
|
|
16562
|
+
dismissAccountNotice;
|
|
16085
16563
|
updateUserAccount;
|
|
16086
16564
|
recordAcquisition;
|
|
16087
16565
|
login;
|
|
@@ -16139,6 +16617,11 @@ var GravityRailClient = class {
|
|
|
16139
16617
|
getAssignmentTools;
|
|
16140
16618
|
executeAssignmentTool;
|
|
16141
16619
|
// Sites API
|
|
16620
|
+
startPublicDemo;
|
|
16621
|
+
endPublicDemo;
|
|
16622
|
+
getPublicDemo;
|
|
16623
|
+
sendPublicDemoMessage;
|
|
16624
|
+
submitPublicDemoForm;
|
|
16142
16625
|
getSites;
|
|
16143
16626
|
checkSiteSlugAvailability;
|
|
16144
16627
|
checkSiteDomainAvailability;
|
|
@@ -16146,6 +16629,7 @@ var GravityRailClient = class {
|
|
|
16146
16629
|
getSiteSharing;
|
|
16147
16630
|
updateSiteSharing;
|
|
16148
16631
|
getSiteSource;
|
|
16632
|
+
getSiteSourceReleases;
|
|
16149
16633
|
getSiteSourceTemplates;
|
|
16150
16634
|
createSiteSource;
|
|
16151
16635
|
buildSiteSource;
|
|
@@ -16208,6 +16692,8 @@ var GravityRailClient = class {
|
|
|
16208
16692
|
createFolder;
|
|
16209
16693
|
updateFolder;
|
|
16210
16694
|
deleteFolder;
|
|
16695
|
+
reindexFile;
|
|
16696
|
+
searchFile;
|
|
16211
16697
|
reindexFolder;
|
|
16212
16698
|
searchFolder;
|
|
16213
16699
|
getFileLabels;
|
|
@@ -16264,6 +16750,7 @@ var GravityRailClient = class {
|
|
|
16264
16750
|
getWorkflowsOutlineBatch;
|
|
16265
16751
|
createWorkflow;
|
|
16266
16752
|
updateWorkflow;
|
|
16753
|
+
uploadWorkflowKnowledge;
|
|
16267
16754
|
getWorkflowDeletionPreview;
|
|
16268
16755
|
deleteWorkflow;
|
|
16269
16756
|
archiveWorkflow;
|
|
@@ -16349,6 +16836,7 @@ var GravityRailClient = class {
|
|
|
16349
16836
|
getPhoneNumberOutboundAnalyticsSummary;
|
|
16350
16837
|
getPhoneNumberOutboundAnalyticsCalls;
|
|
16351
16838
|
exportPhoneNumberOutboundAnalyticsCsv;
|
|
16839
|
+
getPhoneNumberActivity;
|
|
16352
16840
|
getPhoneNumberMessages;
|
|
16353
16841
|
getPhoneNumberFaxes;
|
|
16354
16842
|
getPhoneNumberVoicemails;
|
|
@@ -16362,6 +16850,8 @@ var GravityRailClient = class {
|
|
|
16362
16850
|
createInbox;
|
|
16363
16851
|
updateInbox;
|
|
16364
16852
|
deleteInbox;
|
|
16853
|
+
archiveInbox;
|
|
16854
|
+
getInboxArchiveBlockers;
|
|
16365
16855
|
getInboxEmails;
|
|
16366
16856
|
getInboxEmail;
|
|
16367
16857
|
markEmailAsRead;
|
|
@@ -16520,7 +17010,6 @@ var GravityRailClient = class {
|
|
|
16520
17010
|
// Discord Bots API
|
|
16521
17011
|
getDiscordBots;
|
|
16522
17012
|
getDiscordBot;
|
|
16523
|
-
getDiscordBotByUuid;
|
|
16524
17013
|
createDiscordBot;
|
|
16525
17014
|
updateDiscordBot;
|
|
16526
17015
|
deleteDiscordBot;
|
|
@@ -16588,6 +17077,7 @@ var GravityRailClient = class {
|
|
|
16588
17077
|
fhirGetEncounterSyncRuns;
|
|
16589
17078
|
fhirRefreshEncounterPatient;
|
|
16590
17079
|
fhirBackfillEncounterSync;
|
|
17080
|
+
getFhirConnectionSyncConfig;
|
|
16591
17081
|
getAthenaPlatformApp;
|
|
16592
17082
|
verifyAthenaAccess;
|
|
16593
17083
|
connectAthena;
|
|
@@ -16603,6 +17093,8 @@ var GravityRailClient = class {
|
|
|
16603
17093
|
installClaimMd;
|
|
16604
17094
|
configureClaimMd;
|
|
16605
17095
|
verifyClaimMdKey;
|
|
17096
|
+
getStediConnections;
|
|
17097
|
+
getStediConnectionStatus;
|
|
16606
17098
|
configurePatientSync;
|
|
16607
17099
|
getPatientSyncStatus;
|
|
16608
17100
|
deletePatientSyncConnection;
|
|
@@ -16685,6 +17177,7 @@ var GravityRailClient = class {
|
|
|
16685
17177
|
startSyncRun;
|
|
16686
17178
|
getSyncRuns;
|
|
16687
17179
|
getSyncRunItems;
|
|
17180
|
+
getSyncRunItemsPage;
|
|
16688
17181
|
getMemberSyncSummary;
|
|
16689
17182
|
getConnectionFieldHomes;
|
|
16690
17183
|
getInboundRecordStatus;
|
|
@@ -16775,6 +17268,39 @@ var GravityRailClient = class {
|
|
|
16775
17268
|
constructor(apiKey, baseUrl, customFetch) {
|
|
16776
17269
|
const apis = createApiModules(apiKey, baseUrl, customFetch);
|
|
16777
17270
|
this.apis = apis;
|
|
17271
|
+
this.listMedicalBillingConnections = apis.medicalBilling.listMedicalBillingConnections.bind(
|
|
17272
|
+
apis.medicalBilling
|
|
17273
|
+
);
|
|
17274
|
+
this.submitMedicalClaim = apis.medicalBilling.submitMedicalClaim.bind(apis.medicalBilling);
|
|
17275
|
+
this.listMedicalBillingProviders = apis.medicalBilling.listMedicalBillingProviders.bind(
|
|
17276
|
+
apis.medicalBilling
|
|
17277
|
+
);
|
|
17278
|
+
this.listMedicalCoverages = apis.medicalBilling.listMedicalCoverages.bind(
|
|
17279
|
+
apis.medicalBilling
|
|
17280
|
+
);
|
|
17281
|
+
this.createMedicalCoverage = apis.medicalBilling.createMedicalCoverage.bind(
|
|
17282
|
+
apis.medicalBilling
|
|
17283
|
+
);
|
|
17284
|
+
this.updateMedicalCoverage = apis.medicalBilling.updateMedicalCoverage.bind(
|
|
17285
|
+
apis.medicalBilling
|
|
17286
|
+
);
|
|
17287
|
+
this.setMedicalPayerRoute = apis.medicalBilling.setMedicalPayerRoute.bind(
|
|
17288
|
+
apis.medicalBilling
|
|
17289
|
+
);
|
|
17290
|
+
this.listMedicalCharges = apis.medicalBilling.listMedicalCharges.bind(apis.medicalBilling);
|
|
17291
|
+
this.createMedicalCharge = apis.medicalBilling.createMedicalCharge.bind(apis.medicalBilling);
|
|
17292
|
+
this.updateMedicalCharge = apis.medicalBilling.updateMedicalCharge.bind(apis.medicalBilling);
|
|
17293
|
+
this.listMedicalClaims = apis.medicalBilling.listMedicalClaims.bind(apis.medicalBilling);
|
|
17294
|
+
this.getMedicalClaim = apis.medicalBilling.getMedicalClaim.bind(apis.medicalBilling);
|
|
17295
|
+
this.listMedicalEligibilityChecks = apis.medicalBilling.listMedicalEligibilityChecks.bind(
|
|
17296
|
+
apis.medicalBilling
|
|
17297
|
+
);
|
|
17298
|
+
this.listMedicalRemittances = apis.medicalBilling.listMedicalRemittances.bind(
|
|
17299
|
+
apis.medicalBilling
|
|
17300
|
+
);
|
|
17301
|
+
this.getMedicalRemittance = apis.medicalBilling.getMedicalRemittance.bind(
|
|
17302
|
+
apis.medicalBilling
|
|
17303
|
+
);
|
|
16778
17304
|
this.workspaceInvitations = apis.workspaceInvitations;
|
|
16779
17305
|
bindTasksMethods(this, apis.tasks, apis.abilities);
|
|
16780
17306
|
bindChatsMethods(this, apis.chats);
|
|
@@ -16840,6 +17366,7 @@ var GravityRailClient = class {
|
|
|
16840
17366
|
apis.healthie,
|
|
16841
17367
|
apis.documoFax,
|
|
16842
17368
|
apis.claimMd,
|
|
17369
|
+
apis.stedi,
|
|
16843
17370
|
apis.salesforce,
|
|
16844
17371
|
apis.hubspot,
|
|
16845
17372
|
apis.appConnections,
|
|
@@ -17040,8 +17567,8 @@ var MemberFilterBuilder = class extends WorkspaceBuilderResource {
|
|
|
17040
17567
|
* Anywhere the IR wants a numeric id you may pass the builder that will own
|
|
17041
17568
|
* it (e.g. a label in a `member.labelId` value); refs resolve at apply time.
|
|
17042
17569
|
*/
|
|
17043
|
-
setQuery(
|
|
17044
|
-
this.query =
|
|
17570
|
+
setQuery(query2) {
|
|
17571
|
+
this.query = query2;
|
|
17045
17572
|
return this;
|
|
17046
17573
|
}
|
|
17047
17574
|
planLine() {
|
|
@@ -17495,6 +18022,13 @@ var StartStepBuilder = class extends JourneyStepBuilder {
|
|
|
17495
18022
|
async apply() {
|
|
17496
18023
|
}
|
|
17497
18024
|
};
|
|
18025
|
+
var LEGACY_JOURNEY_CREATION_GUIDANCE = "New legacy Journeys can no longer be created. Author a new Journey with ws.journeyV2() instead; ws.journey() only adopts and edits a legacy Journey that already exists in this workspace under the same name.";
|
|
18026
|
+
var LegacyJourneyCreationError = class extends Error {
|
|
18027
|
+
constructor() {
|
|
18028
|
+
super(LEGACY_JOURNEY_CREATION_GUIDANCE);
|
|
18029
|
+
this.name = "LegacyJourneyCreationError";
|
|
18030
|
+
}
|
|
18031
|
+
};
|
|
17498
18032
|
var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
17499
18033
|
constructor(name, options = {}) {
|
|
17500
18034
|
super();
|
|
@@ -17622,24 +18156,9 @@ var JourneyBuilder = class extends WorkspaceBuilderResource {
|
|
|
17622
18156
|
if (this.goals.length) parts.push(`${this.goals.length} goals`);
|
|
17623
18157
|
return `Journey: ${this.name}${parts.length ? ` (${parts.join(", ")})` : ""}`;
|
|
17624
18158
|
}
|
|
17625
|
-
async apply(
|
|
18159
|
+
async apply(_client) {
|
|
17626
18160
|
if (this._existed) return;
|
|
17627
|
-
|
|
17628
|
-
name: this.name,
|
|
17629
|
-
description: this.description
|
|
17630
|
-
});
|
|
17631
|
-
this._id = result.id;
|
|
17632
|
-
this._uuid = result.uuid;
|
|
17633
|
-
this._created = true;
|
|
17634
|
-
const startStep = (result.steps ?? []).find(
|
|
17635
|
-
(step) => step.id === result.startStepId || step.name === "Start"
|
|
17636
|
-
);
|
|
17637
|
-
if (!startStep) {
|
|
17638
|
-
throw new Error(
|
|
17639
|
-
`Journey '${this.name}' was created without a Start step; edges from journey.start cannot be wired.`
|
|
17640
|
-
);
|
|
17641
|
-
}
|
|
17642
|
-
this.start.adopt(startStep);
|
|
18161
|
+
throw new LegacyJourneyCreationError();
|
|
17643
18162
|
}
|
|
17644
18163
|
};
|
|
17645
18164
|
function buildJourneyConnectionPayload(connection) {
|
|
@@ -18270,9 +18789,8 @@ var JourneyV2Builder = class extends WorkspaceBuilderResource {
|
|
|
18270
18789
|
const created = await client.createJourney({
|
|
18271
18790
|
name: this.name,
|
|
18272
18791
|
description: this.description,
|
|
18273
|
-
// Explicit, always
|
|
18274
|
-
//
|
|
18275
|
-
// legacy Journey that happens to look like a timeline.
|
|
18792
|
+
// Explicit, always: the v2 builder states its engine rather than
|
|
18793
|
+
// relying on whatever the server's omitted-value default is.
|
|
18276
18794
|
executionModel: "v2"
|
|
18277
18795
|
});
|
|
18278
18796
|
this._id = created.id;
|
|
@@ -18705,6 +19223,14 @@ var WorkspaceBuilder = class {
|
|
|
18705
19223
|
this.resources.push(label);
|
|
18706
19224
|
return label;
|
|
18707
19225
|
}
|
|
19226
|
+
/**
|
|
19227
|
+
* The legacy (additive step graph) builder, for EXISTING legacy Journeys.
|
|
19228
|
+
*
|
|
19229
|
+
* It adopts a stored legacy Journey by exact name and edits it. It never
|
|
19230
|
+
* creates one: when the workspace holds no Journey of that name, `apply()`
|
|
19231
|
+
* refuses before any write with guidance to use {@link journeyV2}. The
|
|
19232
|
+
* refusal happens at apply, not here, because adoption is resolved then.
|
|
19233
|
+
*/
|
|
18708
19234
|
journey(name, options = {}) {
|
|
18709
19235
|
const journey = new JourneyBuilder(name, options);
|
|
18710
19236
|
this.resources.push(journey);
|
|
@@ -18716,9 +19242,8 @@ var WorkspaceBuilder = class {
|
|
|
18716
19242
|
*
|
|
18717
19243
|
* A separate factory rather than an option on {@link journey}, because the
|
|
18718
19244
|
* two return different builders with different vocabularies — `.touch()`
|
|
18719
|
-
* and `.ending()` versus `.step()` and `.connectsTo()`.
|
|
18720
|
-
*
|
|
18721
|
-
* compatibility requirement.
|
|
19245
|
+
* and `.ending()` versus `.step()` and `.connectsTo()`. This is the builder
|
|
19246
|
+
* that authors NEW Journeys; {@link journey} only edits existing legacy ones.
|
|
18722
19247
|
*/
|
|
18723
19248
|
journeyV2(name, options = {}) {
|
|
18724
19249
|
const journey = new JourneyV2Builder(name, options);
|
|
@@ -19459,6 +19984,9 @@ function summarizeError(err) {
|
|
|
19459
19984
|
}
|
|
19460
19985
|
return msg.length > 240 ? `${msg.slice(0, 237)}...` : msg;
|
|
19461
19986
|
}
|
|
19987
|
+
if (err instanceof LegacyJourneyCreationError) {
|
|
19988
|
+
return LEGACY_JOURNEY_CREATION_GUIDANCE;
|
|
19989
|
+
}
|
|
19462
19990
|
if (err instanceof Error) {
|
|
19463
19991
|
return err.name || "Error";
|
|
19464
19992
|
}
|
|
@@ -19486,6 +20014,7 @@ var AbilityTypeSlugs = {
|
|
|
19486
20014
|
// Tools
|
|
19487
20015
|
TOOLKITS: "tools:toolkits",
|
|
19488
20016
|
WEB_SEARCH: "tools:web_search",
|
|
20017
|
+
WEB_BROWSER: "tools:web_browser",
|
|
19489
20018
|
CONVERSATION_HISTORY: "tools:conversation_history",
|
|
19490
20019
|
MEMBER_MEMORY: "memory:member_memory",
|
|
19491
20020
|
IMAGE_GENERATION: "tools:image_generation",
|
|
@@ -19714,10 +20243,60 @@ var SiteDnsRecordType = {
|
|
|
19714
20243
|
TXT: "TXT"
|
|
19715
20244
|
};
|
|
19716
20245
|
|
|
20246
|
+
// src/types/generated/phone_voice_trust.ts
|
|
20247
|
+
var VoiceIntegrityUseCase = {
|
|
20248
|
+
"Identify_&_Verification": "Identify & Verification",
|
|
20249
|
+
Asset_Management: "Asset Management",
|
|
20250
|
+
Lead_Generation: "Lead Generation",
|
|
20251
|
+
Intelligent_Routing: "Intelligent Routing",
|
|
20252
|
+
Appointment_SchedulingDE: "Appointment SchedulingDE",
|
|
20253
|
+
Customer_Support: "Customer Support",
|
|
20254
|
+
"Self-Service": "Self-Service",
|
|
20255
|
+
Automated_Support: "Automated Support",
|
|
20256
|
+
Appointment_Reminders: "Appointment Reminders",
|
|
20257
|
+
Employee_Notifications: "Employee Notifications",
|
|
20258
|
+
Delivery_Notifications: "Delivery Notifications",
|
|
20259
|
+
Emergency_Notifications: "Emergency Notifications",
|
|
20260
|
+
Contactless_Delivery: "Contactless Delivery",
|
|
20261
|
+
Order_Notifications: "Order Notifications",
|
|
20262
|
+
Service_Alerts: "Service Alerts",
|
|
20263
|
+
Purchase_Confirmation: "Purchase Confirmation",
|
|
20264
|
+
Mass_Alerts: "Mass Alerts",
|
|
20265
|
+
Fraud_Alerts: "Fraud Alerts",
|
|
20266
|
+
Contact_Tracing: "Contact Tracing",
|
|
20267
|
+
Lead_Management: "Lead Management",
|
|
20268
|
+
Lead_Nurturing: "Lead Nurturing",
|
|
20269
|
+
Telemarketing: "Telemarketing",
|
|
20270
|
+
Marketing_Events: "Marketing Events",
|
|
20271
|
+
Rewards_Program: "Rewards Program",
|
|
20272
|
+
Lead_Alerts: "Lead Alerts",
|
|
20273
|
+
Lead_Distribution: "Lead Distribution",
|
|
20274
|
+
Abandoned_Cart: "Abandoned Cart",
|
|
20275
|
+
Call_Tracking: "Call Tracking",
|
|
20276
|
+
Outbound_Dialer: "Outbound Dialer",
|
|
20277
|
+
Click_to_Call: "Click to Call",
|
|
20278
|
+
Phone_System: "Phone System",
|
|
20279
|
+
"Meetings/Ccollaboration": "Meetings/Ccollaboration",
|
|
20280
|
+
Telehealth: "Telehealth",
|
|
20281
|
+
Distance_Learning: "Distance Learning",
|
|
20282
|
+
Shift_Management: "Shift Management",
|
|
20283
|
+
Field_Notifications: "Field Notifications",
|
|
20284
|
+
"Dating/Social": "Dating/Social",
|
|
20285
|
+
Remote_appointments: "Remote appointments",
|
|
20286
|
+
Group_Messaging: "Group Messaging",
|
|
20287
|
+
Exam_Proctoring: "Exam Proctoring",
|
|
20288
|
+
Tutoring: "Tutoring",
|
|
20289
|
+
"Therapy_(Individual+Group)": "Therapy (Individual+Group)",
|
|
20290
|
+
Pharmacy: "Pharmacy",
|
|
20291
|
+
First_Responder: "First Responder",
|
|
20292
|
+
"Survey/Research": "Survey/Research"
|
|
20293
|
+
};
|
|
20294
|
+
|
|
19717
20295
|
// src/types/generated/ai_connector_policy.ts
|
|
19718
20296
|
var AiConnectorPolicy = {
|
|
19719
20297
|
any: "any",
|
|
19720
|
-
allowlist: "allowlist"
|
|
20298
|
+
allowlist: "allowlist",
|
|
20299
|
+
none: "none"
|
|
19721
20300
|
};
|
|
19722
20301
|
|
|
19723
20302
|
// src/types/generated/site.ts
|
|
@@ -20133,6 +20712,7 @@ var ActivityEventType = {
|
|
|
20133
20712
|
chatcall_ended: "chat.call_ended",
|
|
20134
20713
|
chatsummary: "chat.summary",
|
|
20135
20714
|
messagesent: "message.sent",
|
|
20715
|
+
messagesend_failed: "message.send_failed",
|
|
20136
20716
|
membermessage_received: "member.message_received",
|
|
20137
20717
|
escalationopened: "escalation.opened",
|
|
20138
20718
|
escalationresolved: "escalation.resolved",
|
|
@@ -20140,6 +20720,8 @@ var ActivityEventType = {
|
|
|
20140
20720
|
callcompleted: "call.completed",
|
|
20141
20721
|
callmissed: "call.missed",
|
|
20142
20722
|
callsummary: "call.summary",
|
|
20723
|
+
callqueued: "call.queued",
|
|
20724
|
+
callnot_placed: "call.not_placed",
|
|
20143
20725
|
presencewent_online: "presence.went_online",
|
|
20144
20726
|
presencewent_offline: "presence.went_offline",
|
|
20145
20727
|
operator_groupmember_added: "operator_group.member_added",
|
|
@@ -20220,8 +20802,10 @@ var EntityKind = {
|
|
|
20220
20802
|
var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
20221
20803
|
ScopeCategory2["WORKSPACE"] = "workspace";
|
|
20222
20804
|
ScopeCategory2["MEMBERS"] = "members";
|
|
20805
|
+
ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
|
|
20223
20806
|
ScopeCategory2["MEMBER_ROLES"] = "member_roles";
|
|
20224
20807
|
ScopeCategory2["CHATS"] = "chats";
|
|
20808
|
+
ScopeCategory2["DEMOS"] = "demos";
|
|
20225
20809
|
ScopeCategory2["DM"] = "dm";
|
|
20226
20810
|
ScopeCategory2["WORKFLOWS"] = "workflows";
|
|
20227
20811
|
ScopeCategory2["ASSIGNMENTS"] = "assignments";
|
|
@@ -20291,6 +20875,24 @@ var SCOPES = {
|
|
|
20291
20875
|
implies: ["members:write"],
|
|
20292
20876
|
dangerous: true
|
|
20293
20877
|
},
|
|
20878
|
+
"medical_billing:read": {
|
|
20879
|
+
name: "medical_billing:read",
|
|
20880
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
20881
|
+
description: "View medical billing coverage, charges and claims"
|
|
20882
|
+
},
|
|
20883
|
+
"medical_billing:write": {
|
|
20884
|
+
name: "medical_billing:write",
|
|
20885
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
20886
|
+
description: "Create and update medical billing and submit claims",
|
|
20887
|
+
implies: ["medical_billing:read"]
|
|
20888
|
+
},
|
|
20889
|
+
"medical_billing:admin": {
|
|
20890
|
+
name: "medical_billing:admin",
|
|
20891
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
20892
|
+
description: "Administer medical billing",
|
|
20893
|
+
implies: ["medical_billing:write"],
|
|
20894
|
+
dangerous: true
|
|
20895
|
+
},
|
|
20294
20896
|
// =========================================================================
|
|
20295
20897
|
// MEMBER ROLES
|
|
20296
20898
|
// =========================================================================
|
|
@@ -20320,6 +20922,11 @@ var SCOPES = {
|
|
|
20320
20922
|
category: "chats" /* CHATS */,
|
|
20321
20923
|
description: "View all conversations"
|
|
20322
20924
|
},
|
|
20925
|
+
"demos:run": {
|
|
20926
|
+
name: "demos:run",
|
|
20927
|
+
category: "demos" /* DEMOS */,
|
|
20928
|
+
description: "Start and interact with your own synthetic patient demos"
|
|
20929
|
+
},
|
|
20323
20930
|
"chats:write": {
|
|
20324
20931
|
name: "chats:write",
|
|
20325
20932
|
category: "chats" /* CHATS */,
|
|
@@ -21154,6 +21761,8 @@ function pathDraftToStorage(draft, original) {
|
|
|
21154
21761
|
EventRuleActionType,
|
|
21155
21762
|
EventRuleEventType,
|
|
21156
21763
|
EventRuleObjectType,
|
|
21764
|
+
FaxDocumentRefusal,
|
|
21765
|
+
FaxRunRefusal,
|
|
21157
21766
|
FeatureCategory,
|
|
21158
21767
|
FeatureVisibility,
|
|
21159
21768
|
FeedCursorRejection,
|
|
@@ -21181,6 +21790,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21181
21790
|
MAX_EMAIL_SEND_RECIPIENTS,
|
|
21182
21791
|
MEMBER_RELATIONSHIP_KINDS,
|
|
21183
21792
|
McpServerState,
|
|
21793
|
+
MedicalBillingApi,
|
|
21184
21794
|
MemberFeature,
|
|
21185
21795
|
MemberFilterBuilder,
|
|
21186
21796
|
MemberImportIssueCode,
|
|
@@ -21201,6 +21811,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21201
21811
|
ORG_ONLY_RESOURCES,
|
|
21202
21812
|
OrgApi,
|
|
21203
21813
|
OrgFeature,
|
|
21814
|
+
OrgWebhookDeliveryStatus,
|
|
21204
21815
|
PERMISSION_ADMIN,
|
|
21205
21816
|
PERMISSION_CREATE,
|
|
21206
21817
|
PERMISSION_DELETE,
|
|
@@ -21264,6 +21875,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21264
21875
|
SendingStopState,
|
|
21265
21876
|
SetInstallationPolicyRequestUpgradePolicy,
|
|
21266
21877
|
SiteDnsRecordType,
|
|
21878
|
+
StediApi,
|
|
21267
21879
|
SupervisorsApi,
|
|
21268
21880
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
21269
21881
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -21286,6 +21898,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21286
21898
|
UpdateMemberContactPointRequestContactType,
|
|
21287
21899
|
UpdateMemberContactPointRequestPurpose,
|
|
21288
21900
|
UpdateMemberContactPointRequestSharing,
|
|
21901
|
+
VoiceIntegrityUseCase,
|
|
21289
21902
|
WIDGET_SLUGS,
|
|
21290
21903
|
WorkflowBuilder,
|
|
21291
21904
|
WorkflowRoutingMode,
|