@gravity-rail/sdk 0.42.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-interaction-BBBeSKGl.d.cts → chat-interaction-DKt3ggnZ.d.cts} +904 -17
- package/dist/{chat-interaction-C9dD0qbD.d.ts → chat-interaction-DMd-Wtcg.d.ts} +904 -17
- package/dist/{chunk-JTOMGNUO.js → chunk-G32MQGJD.js} +374 -6
- package/dist/chunk-G32MQGJD.js.map +1 -0
- package/dist/helpers.d.cts +4 -4
- package/dist/helpers.d.ts +4 -4
- package/dist/index.cjs +384 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +366 -5
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +5 -5
- package/dist/internal.d.ts +5 -5
- package/dist/internal.js +17 -1
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-BXReoljG.d.cts → member-import-D6KvS3Zg.d.cts} +1 -1
- package/dist/{member-import-jjfQHlWl.d.ts → member-import-mE0BhGIw.d.ts} +1 -1
- package/dist/{revision-state-Bp7WKk6z.d.cts → revision-state-BrRxp9qZ.d.ts} +30 -3
- package/dist/{revision-state-QkNQXWJC.d.ts → revision-state-Ci5a5NLH.d.cts} +30 -3
- package/dist/schemas.cjs +12 -3
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +10 -2
- package/dist/schemas.d.ts +10 -2
- package/dist/schemas.js +12 -3
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-BsLI-h11.d.cts → tasks-DAPby6cw.d.cts} +60 -1
- package/dist/{tasks-BsLI-h11.d.ts → tasks-DAPby6cw.d.ts} +60 -1
- package/package.json +1 -1
- package/dist/chunk-JTOMGNUO.js.map +0 -1
|
@@ -174,6 +174,27 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
174
174
|
async listBundleWorkflowCandidates(wid) {
|
|
175
175
|
return this.fetch(bundlesPath(wid, "workflow-candidates"));
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* This workspace's Journeys for the Bundle picker, by name. Nothing is built
|
|
179
|
+
* for the list. `available` is false while the server refuses Journey items.
|
|
180
|
+
* Requires `workflows:admin` and `journeys:write`.
|
|
181
|
+
*/
|
|
182
|
+
async listBundleJourneyCandidates(wid) {
|
|
183
|
+
return this.fetch(bundlesPath(wid, "journey-candidates"));
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* One Journey as the Bundle item that adds it: the whole Journey item the
|
|
187
|
+
* server built (`item`), the Forms its conditions read and the Workflows its
|
|
188
|
+
* actions start, or the `problems` that name what the Journey must change
|
|
189
|
+
* first. The item never carries enrollment; `enrollmentOmitted` says the
|
|
190
|
+
* Journey has automatic enrollment that was left out. Requires
|
|
191
|
+
* `workflows:admin` and `journeys:write`.
|
|
192
|
+
*/
|
|
193
|
+
async getBundleJourneyCandidate(wid, journeyUuid) {
|
|
194
|
+
return this.fetch(
|
|
195
|
+
bundlesPath(wid, "journey-candidates", journeyUuid)
|
|
196
|
+
);
|
|
197
|
+
}
|
|
177
198
|
/** Create an empty Bundle owned by this workspace. */
|
|
178
199
|
async createBundle(wid, data) {
|
|
179
200
|
return this.fetch(bundlesPath(wid), {
|
|
@@ -241,6 +262,126 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
241
262
|
}
|
|
242
263
|
};
|
|
243
264
|
|
|
265
|
+
// src/types/generated/demo.ts
|
|
266
|
+
var DemoCallOutcome = {
|
|
267
|
+
answered: "answered",
|
|
268
|
+
not_answered: "not_answered"
|
|
269
|
+
};
|
|
270
|
+
var DemoRefusalCode = {
|
|
271
|
+
session_expired: "session_expired",
|
|
272
|
+
session_capped: "session_capped",
|
|
273
|
+
calls_capped: "calls_capped",
|
|
274
|
+
session_ended: "session_ended",
|
|
275
|
+
destination_not_allowed: "destination_not_allowed",
|
|
276
|
+
sender_cannot_send: "sender_cannot_send",
|
|
277
|
+
demo_not_available: "demo_not_available"
|
|
278
|
+
};
|
|
279
|
+
var DemoSessionState = {
|
|
280
|
+
active: "active",
|
|
281
|
+
capped: "capped",
|
|
282
|
+
expired: "expired",
|
|
283
|
+
ended: "ended"
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
// src/api/demos.ts
|
|
287
|
+
var REFUSAL_CODES = Object.values(DemoRefusalCode);
|
|
288
|
+
var DemoRequestError = class extends ApiError {
|
|
289
|
+
code;
|
|
290
|
+
constructor(message, statusCode, code) {
|
|
291
|
+
super(message, statusCode);
|
|
292
|
+
this.name = "DemoRequestError";
|
|
293
|
+
this.code = code;
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
function refusalCode(value) {
|
|
297
|
+
return typeof value === "string" && REFUSAL_CODES.includes(value) ? value : void 0;
|
|
298
|
+
}
|
|
299
|
+
var DemosApi = class extends BaseApiClient {
|
|
300
|
+
/** Whether a Bundle has a Demo, and what a visitor may contact in it. Needs no session. */
|
|
301
|
+
async getDemo(bundleUuid) {
|
|
302
|
+
return this.anonymous(`demos/${encodeURIComponent(bundleUuid)}`, {
|
|
303
|
+
method: "GET"
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/** Start a Demo session. Needs no session; `recaptchaToken` is required where reCAPTCHA is enforced. */
|
|
307
|
+
async startDemoSession(bundleUuid, data = {}) {
|
|
308
|
+
return this.anonymous(
|
|
309
|
+
`demos/${encodeURIComponent(bundleUuid)}/sessions`,
|
|
310
|
+
{ method: "POST", body: JSON.stringify(data) }
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
/** Text one of the Demo's numbers as the session's Persona. */
|
|
314
|
+
async sendDemoSessionSms(sessionToken, data) {
|
|
315
|
+
return this.anonymous(
|
|
316
|
+
"demos/sessions/sms",
|
|
317
|
+
{ method: "POST", body: JSON.stringify(data) },
|
|
318
|
+
sessionToken
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
/** Email one of the Demo's inboxes as the session's Persona. Returns after the Agent's turn. */
|
|
322
|
+
async sendDemoSessionEmail(sessionToken, data) {
|
|
323
|
+
return this.anonymous(
|
|
324
|
+
"demos/sessions/email",
|
|
325
|
+
{ method: "POST", body: JSON.stringify(data) },
|
|
326
|
+
sessionToken
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Call one of the Demo's numbers as the session's Persona.
|
|
331
|
+
*
|
|
332
|
+
* For an `answered` call, `join` holds what a browser opens the call with:
|
|
333
|
+
* the web voice socket `url`, a single-use login `token` for this call's
|
|
334
|
+
* Chat, and `chatId`. Send them in `voice.login`. For a `not_answered`
|
|
335
|
+
* call, `notAnsweredBranch` says what the number does and nothing connects.
|
|
336
|
+
*/
|
|
337
|
+
async placeDemoSessionCall(sessionToken, data) {
|
|
338
|
+
return this.anonymous(
|
|
339
|
+
"demos/sessions/call",
|
|
340
|
+
{ method: "POST", body: JSON.stringify(data) },
|
|
341
|
+
sessionToken
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* The session's own messages, oldest first, and its state. `after` returns
|
|
346
|
+
* only the rows after that row id, so a poll reads what is new.
|
|
347
|
+
*/
|
|
348
|
+
async getDemoSessionTimeline(sessionToken, params) {
|
|
349
|
+
const query = params?.after !== void 0 ? `?after=${encodeURIComponent(params.after)}` : "";
|
|
350
|
+
return this.anonymous(
|
|
351
|
+
`demos/sessions/timeline${query}`,
|
|
352
|
+
{ method: "GET" },
|
|
353
|
+
sessionToken
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
/** End the session. Nothing further is captured on it. */
|
|
357
|
+
async endDemoSession(sessionToken) {
|
|
358
|
+
return this.anonymous(
|
|
359
|
+
"demos/sessions/end",
|
|
360
|
+
{ method: "POST" },
|
|
361
|
+
sessionToken
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* A request that carries the Demo session token, or no credential at all.
|
|
366
|
+
* It never sends this client's API key or the browser's cookies.
|
|
367
|
+
*/
|
|
368
|
+
async anonymous(endpoint, init, sessionToken) {
|
|
369
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
370
|
+
if (sessionToken) headers.set("Authorization", `Bearer ${sessionToken}`);
|
|
371
|
+
const response = await this.fetchFunction(`${this.baseUrl}/api/v2/${endpoint}`, {
|
|
372
|
+
...init,
|
|
373
|
+
headers,
|
|
374
|
+
credentials: "omit"
|
|
375
|
+
});
|
|
376
|
+
if (!response.ok) {
|
|
377
|
+
const body = await response.json().catch(() => ({}));
|
|
378
|
+
const detail = typeof body.detail === "string" ? body.detail : `Request failed (${response.status})`;
|
|
379
|
+
throw new DemoRequestError(detail, response.status, refusalCode(body.code));
|
|
380
|
+
}
|
|
381
|
+
return await response.json();
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
|
|
244
385
|
// src/api/installations.ts
|
|
245
386
|
function installationsPath(wid, ...segments) {
|
|
246
387
|
const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
|
|
@@ -1565,9 +1706,25 @@ var CallsApi = class extends BaseApiClient {
|
|
|
1565
1706
|
`w/${wid}/calls${params.toString() ? `?${params.toString()}` : ""}`
|
|
1566
1707
|
);
|
|
1567
1708
|
}
|
|
1568
|
-
/**
|
|
1569
|
-
|
|
1570
|
-
|
|
1709
|
+
/**
|
|
1710
|
+
* Get message timing data for a chat recording. `source` selects whose
|
|
1711
|
+
* timeline the offsets are measured against; omitted means `standard`.
|
|
1712
|
+
*/
|
|
1713
|
+
async getMessageTiming(wid, chatId, options = {}) {
|
|
1714
|
+
const params = new URLSearchParams();
|
|
1715
|
+
if (options.source) params.set("source", options.source);
|
|
1716
|
+
return this.fetch(
|
|
1717
|
+
`w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
|
|
1718
|
+
);
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* Staff-only discovery of retained edge-stream capture for a chat:
|
|
1722
|
+
* whether any is retained, its aggregate coverage status, the interval it
|
|
1723
|
+
* covers, and closed reason codes. `available: false` when nothing is
|
|
1724
|
+
* retained; 403 for anyone who is not Gravity Rail staff.
|
|
1725
|
+
*/
|
|
1726
|
+
async getEdgeCaptureInfo(wid, chatId) {
|
|
1727
|
+
return this.fetch(`w/${wid}/recordings/chat/${chatId}/edge-capture`);
|
|
1571
1728
|
}
|
|
1572
1729
|
/**
|
|
1573
1730
|
* Get PHI-safe provenance metadata for the recording served by
|
|
@@ -1937,6 +2094,19 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
1937
2094
|
`w/${wid}/chats/${id}/messages${params.toString() ? `?${params.toString()}` : ""}`
|
|
1938
2095
|
);
|
|
1939
2096
|
}
|
|
2097
|
+
/** Who moved the chat's Assignment between Tasks, for a time window.
|
|
2098
|
+
* Pair it with `getChatMessages`: pass the window the message page covers as
|
|
2099
|
+
* `after` / `before` (ISO-8601, inclusive). The newest `limit` moves in the
|
|
2100
|
+
* window come back, oldest first. */
|
|
2101
|
+
async getChatTaskTransitions(wid, id, options) {
|
|
2102
|
+
const params = new URLSearchParams();
|
|
2103
|
+
if (options?.after) params.append("after", options.after);
|
|
2104
|
+
if (options?.before) params.append("before", options.before);
|
|
2105
|
+
if (options?.limit) params.append("limit", options.limit.toString());
|
|
2106
|
+
return this.fetch(
|
|
2107
|
+
`w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
|
|
2108
|
+
);
|
|
2109
|
+
}
|
|
1940
2110
|
/** List the background-work thread hanging off a message.
|
|
1941
2111
|
*
|
|
1942
2112
|
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
@@ -5260,7 +5430,8 @@ var OrgApi = class extends BaseApiClient {
|
|
|
5260
5430
|
return this.fetch(`o/${orgIdOrUuid}/bundles`);
|
|
5261
5431
|
}
|
|
5262
5432
|
/**
|
|
5263
|
-
* Update the settings an org admin owns: name, slug
|
|
5433
|
+
* Update the settings an org admin owns: name, slug, contact details and
|
|
5434
|
+
* the security contact.
|
|
5264
5435
|
*
|
|
5265
5436
|
* Deliberately NOT the admin organization update — `enforceCreditLimit`
|
|
5266
5437
|
* is superuser-only and is not a field on this endpoint's request model
|
|
@@ -6761,6 +6932,18 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
6761
6932
|
async getTestChatRun(wid, runId) {
|
|
6762
6933
|
return this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}`);
|
|
6763
6934
|
}
|
|
6935
|
+
/**
|
|
6936
|
+
* What a test run would have sent: the SMS, WhatsApp, email, call,
|
|
6937
|
+
* notification and escalation it prepared, with content, oldest first.
|
|
6938
|
+
* One entry per Member reached, naming the Member and the workspace phone
|
|
6939
|
+
* number or inbox used. Nothing in the list was delivered. `truncated` means the list is
|
|
6940
|
+
* incomplete.
|
|
6941
|
+
*/
|
|
6942
|
+
async listTestChatRunCapturedEffects(wid, runId) {
|
|
6943
|
+
return this.fetch(
|
|
6944
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/captured-effects`
|
|
6945
|
+
);
|
|
6946
|
+
}
|
|
6764
6947
|
async startTestChatRun(wid, workflowId, data = {}) {
|
|
6765
6948
|
return this.fetch(
|
|
6766
6949
|
`w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs`,
|
|
@@ -6770,6 +6953,50 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
6770
6953
|
}
|
|
6771
6954
|
);
|
|
6772
6955
|
}
|
|
6956
|
+
/**
|
|
6957
|
+
* Text a workspace phone number as the run's Persona. The text enters the
|
|
6958
|
+
* inbound SMS pipeline; the Agent's reply is captured on the run and never
|
|
6959
|
+
* sent. `chatId` is the Chat the text landed in.
|
|
6960
|
+
*/
|
|
6961
|
+
async deliverTestChatRunSms(wid, runId, data) {
|
|
6962
|
+
return this.fetch(
|
|
6963
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/inbound/sms`,
|
|
6964
|
+
{
|
|
6965
|
+
method: "POST",
|
|
6966
|
+
body: JSON.stringify(data)
|
|
6967
|
+
}
|
|
6968
|
+
);
|
|
6969
|
+
}
|
|
6970
|
+
/**
|
|
6971
|
+
* Email a workspace inbox as the run's Persona. The email enters the
|
|
6972
|
+
* inbound email pipeline; the call returns after the Agent's turn, and the
|
|
6973
|
+
* reply is captured on the run and never sent.
|
|
6974
|
+
*/
|
|
6975
|
+
async deliverTestChatRunEmail(wid, runId, data) {
|
|
6976
|
+
return this.fetch(
|
|
6977
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/inbound/email`,
|
|
6978
|
+
{
|
|
6979
|
+
method: "POST",
|
|
6980
|
+
body: JSON.stringify(data)
|
|
6981
|
+
}
|
|
6982
|
+
);
|
|
6983
|
+
}
|
|
6984
|
+
/**
|
|
6985
|
+
* Call a workspace phone number as the run's Persona. When the Agent
|
|
6986
|
+
* answers (`answered: true`), `chatId` is the test Chat a browser joins
|
|
6987
|
+
* over the web voice socket (`voice.login` with that Chat id). Otherwise
|
|
6988
|
+
* `notAnsweredBranch` names what the number does with the call, and
|
|
6989
|
+
* nothing is run. No carrier is dialed.
|
|
6990
|
+
*/
|
|
6991
|
+
async placeTestChatRunCall(wid, runId, data) {
|
|
6992
|
+
return this.fetch(
|
|
6993
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/inbound/call`,
|
|
6994
|
+
{
|
|
6995
|
+
method: "POST",
|
|
6996
|
+
body: JSON.stringify(data)
|
|
6997
|
+
}
|
|
6998
|
+
);
|
|
6999
|
+
}
|
|
6773
7000
|
async evaluateTestChatRun(wid, runId) {
|
|
6774
7001
|
await this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`, {
|
|
6775
7002
|
method: "POST"
|
|
@@ -9127,6 +9354,34 @@ var BulkMemberResultStatus = {
|
|
|
9127
9354
|
conflict: "conflict",
|
|
9128
9355
|
skipped: "skipped"
|
|
9129
9356
|
};
|
|
9357
|
+
var MemberImportIssueCode = {
|
|
9358
|
+
csv_unreadable: "csv_unreadable",
|
|
9359
|
+
too_many_rows: "too_many_rows",
|
|
9360
|
+
duplicate_column: "duplicate_column",
|
|
9361
|
+
form_column_format: "form_column_format",
|
|
9362
|
+
form_data_type_unknown: "form_data_type_unknown",
|
|
9363
|
+
form_field_unknown: "form_field_unknown",
|
|
9364
|
+
member_field_column_format: "member_field_column_format",
|
|
9365
|
+
salesforce_not_connected: "salesforce_not_connected",
|
|
9366
|
+
member_keys_unknown: "member_keys_unknown",
|
|
9367
|
+
member_keys_uncorroborated: "member_keys_uncorroborated",
|
|
9368
|
+
notify_value_invalid: "notify_value_invalid",
|
|
9369
|
+
consent_date_invalid: "consent_date_invalid",
|
|
9370
|
+
date_of_birth_invalid: "date_of_birth_invalid",
|
|
9371
|
+
conflict_resolution_invalid: "conflict_resolution_invalid",
|
|
9372
|
+
salesforce_id_invalid: "salesforce_id_invalid",
|
|
9373
|
+
member_id_invalid: "member_id_invalid",
|
|
9374
|
+
member_uuid_invalid: "member_uuid_invalid",
|
|
9375
|
+
member_id_not_found: "member_id_not_found",
|
|
9376
|
+
member_uuid_not_found: "member_uuid_not_found",
|
|
9377
|
+
member_key_conflict: "member_key_conflict",
|
|
9378
|
+
phone_invalid: "phone_invalid",
|
|
9379
|
+
email_ambiguous: "email_ambiguous",
|
|
9380
|
+
member_archived: "member_archived",
|
|
9381
|
+
role_requires_account: "role_requires_account",
|
|
9382
|
+
contact_required: "contact_required",
|
|
9383
|
+
row_invalid: "row_invalid"
|
|
9384
|
+
};
|
|
9130
9385
|
var MemberImportMatchInfoMatchType = {
|
|
9131
9386
|
id: "id",
|
|
9132
9387
|
uuid: "uuid",
|
|
@@ -9561,6 +9816,7 @@ var TestChatRunLane = {
|
|
|
9561
9816
|
text: "text",
|
|
9562
9817
|
web_realtime: "web_realtime",
|
|
9563
9818
|
core_agent_only: "core_agent_only",
|
|
9819
|
+
phone_call: "phone_call",
|
|
9564
9820
|
unsupported: "unsupported",
|
|
9565
9821
|
unknown: "unknown"
|
|
9566
9822
|
};
|
|
@@ -9574,6 +9830,52 @@ var TestChatRunOutcome = {
|
|
|
9574
9830
|
instrument_failure: "instrument_failure"
|
|
9575
9831
|
};
|
|
9576
9832
|
|
|
9833
|
+
// src/types/generated/captured_effect.ts
|
|
9834
|
+
var CapturedEffectDirection = {
|
|
9835
|
+
outbound: "outbound",
|
|
9836
|
+
inbound: "inbound"
|
|
9837
|
+
};
|
|
9838
|
+
var CapturedEffectKind = {
|
|
9839
|
+
sms: "sms",
|
|
9840
|
+
whatsapp: "whatsapp",
|
|
9841
|
+
email: "email",
|
|
9842
|
+
phone_call: "phone_call",
|
|
9843
|
+
notification: "notification",
|
|
9844
|
+
escalation: "escalation"
|
|
9845
|
+
};
|
|
9846
|
+
|
|
9847
|
+
// src/types/generated/test_call_routing.ts
|
|
9848
|
+
var CallNotAnsweredBranch = {
|
|
9849
|
+
voice_disabled: "voice_disabled",
|
|
9850
|
+
fax_line: "fax_line",
|
|
9851
|
+
rings_operators: "rings_operators",
|
|
9852
|
+
forwards: "forwards",
|
|
9853
|
+
voicemail: "voicemail",
|
|
9854
|
+
plays_message: "plays_message",
|
|
9855
|
+
no_route: "no_route",
|
|
9856
|
+
voice_unavailable: "voice_unavailable",
|
|
9857
|
+
entry_denied: "entry_denied"
|
|
9858
|
+
};
|
|
9859
|
+
|
|
9860
|
+
// src/types/generated/test_chat_run_inbound.ts
|
|
9861
|
+
var InboundRefusal = {
|
|
9862
|
+
run_not_found: "run_not_found",
|
|
9863
|
+
run_ended: "run_ended",
|
|
9864
|
+
sender_not_synthetic: "sender_not_synthetic",
|
|
9865
|
+
sender_is_anonymous: "sender_is_anonymous",
|
|
9866
|
+
sender_has_no_phone: "sender_has_no_phone",
|
|
9867
|
+
sender_has_no_email: "sender_has_no_email",
|
|
9868
|
+
destination_not_in_workspace: "destination_not_in_workspace",
|
|
9869
|
+
reply_target_not_test: "reply_target_not_test"
|
|
9870
|
+
};
|
|
9871
|
+
var PhoneRunRefusal = {
|
|
9872
|
+
call_not_answered: "call_not_answered",
|
|
9873
|
+
number_routes_to_other_workflow: "number_routes_to_other_workflow",
|
|
9874
|
+
phone_run_needs_a_person: "phone_run_needs_a_person",
|
|
9875
|
+
phone_run_needs_a_number: "phone_run_needs_a_number",
|
|
9876
|
+
number_needs_the_phone_channel: "number_needs_the_phone_channel"
|
|
9877
|
+
};
|
|
9878
|
+
|
|
9577
9879
|
// src/types/generated/qualification_health_service.ts
|
|
9578
9880
|
var ScenarioHealthCaption = {
|
|
9579
9881
|
recent_passes: "recent_passes",
|
|
@@ -9608,7 +9910,6 @@ var RevisionHistorySegment = {
|
|
|
9608
9910
|
|
|
9609
9911
|
// src/types/generated/qualification_run_identity.ts
|
|
9610
9912
|
var ScenarioRunBlocker = {
|
|
9611
|
-
missing_persona: "missing_persona",
|
|
9612
9913
|
archived_persona: "archived_persona"
|
|
9613
9914
|
};
|
|
9614
9915
|
|
|
@@ -11501,6 +11802,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
11501
11802
|
auth: new AuthApi(apiKey, baseUrl, customFetch),
|
|
11502
11803
|
builders: new BuildersApi(apiKey, baseUrl, customFetch),
|
|
11503
11804
|
bundles: new BundlesApi(apiKey, baseUrl, customFetch),
|
|
11805
|
+
demos: new DemosApi(apiKey, baseUrl, customFetch),
|
|
11504
11806
|
installations: new InstallationsApi(apiKey, baseUrl, customFetch),
|
|
11505
11807
|
calendars: new CalendarsApi(apiKey, baseUrl, customFetch),
|
|
11506
11808
|
calls: new CallsApi(apiKey, baseUrl, customFetch),
|
|
@@ -11864,6 +12166,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
11864
12166
|
"getInstallationReadiness",
|
|
11865
12167
|
"getThemeSettingsSchema",
|
|
11866
12168
|
"getBundleDraft",
|
|
12169
|
+
"getBundleJourneyCandidate",
|
|
11867
12170
|
"getBundle",
|
|
11868
12171
|
"getBundleVersion",
|
|
11869
12172
|
"getBusinessHoursStatus",
|
|
@@ -11895,6 +12198,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
11895
12198
|
"getChatLabels",
|
|
11896
12199
|
"getChatMachineResources",
|
|
11897
12200
|
"getChatMessages",
|
|
12201
|
+
"getChatTaskTransitions",
|
|
11898
12202
|
"getChatModelOverride",
|
|
11899
12203
|
"getChatPhoneCalls",
|
|
11900
12204
|
"getChatSkills",
|
|
@@ -11952,6 +12256,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
11952
12256
|
"getDocumoFaxSetup",
|
|
11953
12257
|
"listDocumoFaxes",
|
|
11954
12258
|
"getDocumoFaxStatus",
|
|
12259
|
+
"getEdgeCaptureInfo",
|
|
11955
12260
|
"getEnrollmentStatusLog",
|
|
11956
12261
|
"getEventRule",
|
|
11957
12262
|
"getEventRules",
|
|
@@ -12232,6 +12537,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12232
12537
|
"listAvailableAppConnections",
|
|
12233
12538
|
"listInstallations",
|
|
12234
12539
|
"listBundleGrants",
|
|
12540
|
+
"listBundleJourneyCandidates",
|
|
12235
12541
|
"listBundleVersions",
|
|
12236
12542
|
"listBundles",
|
|
12237
12543
|
"listBundleWorkflowCandidates",
|
|
@@ -12268,6 +12574,10 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
12268
12574
|
"listSalesforceObjects",
|
|
12269
12575
|
"listScenarioHealthSummaries",
|
|
12270
12576
|
"listScenarios",
|
|
12577
|
+
"listTestChatRunCapturedEffects",
|
|
12578
|
+
"deliverTestChatRunSms",
|
|
12579
|
+
"deliverTestChatRunEmail",
|
|
12580
|
+
"placeTestChatRunCall",
|
|
12271
12581
|
"listTestChatRuns",
|
|
12272
12582
|
"listWidgetDomains",
|
|
12273
12583
|
"listWorkspaceInvitationsAdmin",
|
|
@@ -12577,6 +12887,7 @@ function bindChatsMethods(target, chats) {
|
|
|
12577
12887
|
target.updateChatMute = chats.updateChatMute.bind(chats);
|
|
12578
12888
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
12579
12889
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
12890
|
+
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
12580
12891
|
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
12581
12892
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
12582
12893
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
@@ -12611,6 +12922,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
12611
12922
|
target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
|
|
12612
12923
|
target.getMessageTiming = calls.getMessageTiming.bind(calls);
|
|
12613
12924
|
target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
|
|
12925
|
+
target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
|
|
12614
12926
|
target.listChatRecordings = calls.listChatRecordings.bind(calls);
|
|
12615
12927
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
12616
12928
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
@@ -13583,6 +13895,8 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
|
13583
13895
|
target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
|
|
13584
13896
|
target.listBundles = bundles.listBundles.bind(bundles);
|
|
13585
13897
|
target.listBundleWorkflowCandidates = bundles.listBundleWorkflowCandidates.bind(bundles);
|
|
13898
|
+
target.listBundleJourneyCandidates = bundles.listBundleJourneyCandidates.bind(bundles);
|
|
13899
|
+
target.getBundleJourneyCandidate = bundles.getBundleJourneyCandidate.bind(bundles);
|
|
13586
13900
|
target.createBundle = bundles.createBundle.bind(bundles);
|
|
13587
13901
|
target.getBundleDraft = bundles.getBundleDraft.bind(bundles);
|
|
13588
13902
|
target.replaceBundleDraft = bundles.replaceBundleDraft.bind(bundles);
|
|
@@ -13596,6 +13910,17 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
|
13596
13910
|
target.listResourceWorkflows = resourceWorkflows.listResourceWorkflows.bind(resourceWorkflows);
|
|
13597
13911
|
}
|
|
13598
13912
|
|
|
13913
|
+
// src/client/bindings/demos.ts
|
|
13914
|
+
function bindDemosMethods(target, demos) {
|
|
13915
|
+
target.getDemo = demos.getDemo.bind(demos);
|
|
13916
|
+
target.startDemoSession = demos.startDemoSession.bind(demos);
|
|
13917
|
+
target.sendDemoSessionSms = demos.sendDemoSessionSms.bind(demos);
|
|
13918
|
+
target.sendDemoSessionEmail = demos.sendDemoSessionEmail.bind(demos);
|
|
13919
|
+
target.placeDemoSessionCall = demos.placeDemoSessionCall.bind(demos);
|
|
13920
|
+
target.getDemoSessionTimeline = demos.getDemoSessionTimeline.bind(demos);
|
|
13921
|
+
target.endDemoSession = demos.endDemoSession.bind(demos);
|
|
13922
|
+
}
|
|
13923
|
+
|
|
13599
13924
|
// src/client/bindings/installations.ts
|
|
13600
13925
|
function bindInstallationsMethods(target, installations) {
|
|
13601
13926
|
target.preflightBundleInstallation = installations.preflightBundleInstallation.bind(installations);
|
|
@@ -13670,6 +13995,10 @@ function bindQualificationsMethods(target, qualifications) {
|
|
|
13670
13995
|
target.listTestChatRuns = qualifications.listTestChatRuns.bind(qualifications);
|
|
13671
13996
|
target.listScenarioHealthSummaries = qualifications.listScenarioHealthSummaries.bind(qualifications);
|
|
13672
13997
|
target.getTestChatRun = qualifications.getTestChatRun.bind(qualifications);
|
|
13998
|
+
target.listTestChatRunCapturedEffects = qualifications.listTestChatRunCapturedEffects.bind(qualifications);
|
|
13999
|
+
target.deliverTestChatRunSms = qualifications.deliverTestChatRunSms.bind(qualifications);
|
|
14000
|
+
target.deliverTestChatRunEmail = qualifications.deliverTestChatRunEmail.bind(qualifications);
|
|
14001
|
+
target.placeTestChatRunCall = qualifications.placeTestChatRunCall.bind(qualifications);
|
|
13673
14002
|
target.startTestChatRun = qualifications.startTestChatRun.bind(qualifications);
|
|
13674
14003
|
target.evaluateTestChatRun = qualifications.evaluateTestChatRun.bind(qualifications);
|
|
13675
14004
|
target.endTestChatRun = qualifications.endTestChatRun.bind(qualifications);
|
|
@@ -13822,6 +14151,7 @@ var GravityRailClient = class {
|
|
|
13822
14151
|
updateChatMute;
|
|
13823
14152
|
summarizeChat;
|
|
13824
14153
|
getChatMessages;
|
|
14154
|
+
getChatTaskTransitions;
|
|
13825
14155
|
getChildThreadMessages;
|
|
13826
14156
|
getChatToolCallMessages;
|
|
13827
14157
|
getChatTools;
|
|
@@ -13853,6 +14183,7 @@ var GravityRailClient = class {
|
|
|
13853
14183
|
getPhoneCalls;
|
|
13854
14184
|
getMessageTiming;
|
|
13855
14185
|
getRecordingInfo;
|
|
14186
|
+
getEdgeCaptureInfo;
|
|
13856
14187
|
listChatRecordings;
|
|
13857
14188
|
getCallRecordingDownloadUrl;
|
|
13858
14189
|
getCelContext;
|
|
@@ -13996,6 +14327,10 @@ var GravityRailClient = class {
|
|
|
13996
14327
|
listTestChatRuns;
|
|
13997
14328
|
listScenarioHealthSummaries;
|
|
13998
14329
|
getTestChatRun;
|
|
14330
|
+
listTestChatRunCapturedEffects;
|
|
14331
|
+
deliverTestChatRunSms;
|
|
14332
|
+
deliverTestChatRunEmail;
|
|
14333
|
+
placeTestChatRunCall;
|
|
13999
14334
|
startTestChatRun;
|
|
14000
14335
|
evaluateTestChatRun;
|
|
14001
14336
|
endTestChatRun;
|
|
@@ -14107,6 +14442,14 @@ var GravityRailClient = class {
|
|
|
14107
14442
|
createJourneyNote;
|
|
14108
14443
|
updateJourneyNote;
|
|
14109
14444
|
deleteJourneyNote;
|
|
14445
|
+
// Demos API
|
|
14446
|
+
getDemo;
|
|
14447
|
+
startDemoSession;
|
|
14448
|
+
sendDemoSessionSms;
|
|
14449
|
+
sendDemoSessionEmail;
|
|
14450
|
+
placeDemoSessionCall;
|
|
14451
|
+
getDemoSessionTimeline;
|
|
14452
|
+
endDemoSession;
|
|
14110
14453
|
updateBundle;
|
|
14111
14454
|
listBundleInstallations;
|
|
14112
14455
|
// Bundles API
|
|
@@ -14114,6 +14457,8 @@ var GravityRailClient = class {
|
|
|
14114
14457
|
getPublicBundle;
|
|
14115
14458
|
listBundles;
|
|
14116
14459
|
listBundleWorkflowCandidates;
|
|
14460
|
+
listBundleJourneyCandidates;
|
|
14461
|
+
getBundleJourneyCandidate;
|
|
14117
14462
|
createBundle;
|
|
14118
14463
|
getBundleDraft;
|
|
14119
14464
|
replaceBundleDraft;
|
|
@@ -14967,6 +15312,7 @@ var GravityRailClient = class {
|
|
|
14967
15312
|
bindTrackedLinksMethods(this, apis.trackedLinks);
|
|
14968
15313
|
bindJourneysMethods(this, apis.journeys);
|
|
14969
15314
|
bindBundlesMethods(this, apis.bundles, apis.resourceWorkflows);
|
|
15315
|
+
bindDemosMethods(this, apis.demos);
|
|
14970
15316
|
bindInstallationsMethods(this, apis.installations);
|
|
14971
15317
|
bindExperimentsMethods(this, apis.experiments);
|
|
14972
15318
|
bindOperatorMethods(this, apis.operatorGroups);
|
|
@@ -15199,6 +15545,15 @@ var ChatMuteReason = {
|
|
|
15199
15545
|
not_mine: "not_mine"
|
|
15200
15546
|
};
|
|
15201
15547
|
|
|
15548
|
+
// src/types/generated/assignment_task_transition.ts
|
|
15549
|
+
var TaskTransitionInitiator = {
|
|
15550
|
+
member: "member",
|
|
15551
|
+
agent: "agent",
|
|
15552
|
+
event_rule: "event_rule",
|
|
15553
|
+
auto_next: "auto_next",
|
|
15554
|
+
system: "system"
|
|
15555
|
+
};
|
|
15556
|
+
|
|
15202
15557
|
// src/types/generated/ehr_writeback.ts
|
|
15203
15558
|
var EhrWritebackOutcomeResponseStatus = {
|
|
15204
15559
|
accepted: "accepted",
|
|
@@ -16394,6 +16749,11 @@ export {
|
|
|
16394
16749
|
AbilitiesApi,
|
|
16395
16750
|
ResourceWorkflowsApi,
|
|
16396
16751
|
BundlesApi,
|
|
16752
|
+
DemoCallOutcome,
|
|
16753
|
+
DemoRefusalCode,
|
|
16754
|
+
DemoSessionState,
|
|
16755
|
+
DemoRequestError,
|
|
16756
|
+
DemosApi,
|
|
16397
16757
|
InstallationsApi,
|
|
16398
16758
|
AccessGrantsApi,
|
|
16399
16759
|
AgentTasksApi,
|
|
@@ -16474,6 +16834,7 @@ export {
|
|
|
16474
16834
|
encodePermissions,
|
|
16475
16835
|
Scope,
|
|
16476
16836
|
BulkMemberResultStatus,
|
|
16837
|
+
MemberImportIssueCode,
|
|
16477
16838
|
MemberImportMatchInfoMatchType,
|
|
16478
16839
|
MemberImportPreviewRowAction,
|
|
16479
16840
|
MergeMemberRolesRequestAccessStrategy,
|
|
@@ -16533,6 +16894,11 @@ export {
|
|
|
16533
16894
|
RunHealthCategory,
|
|
16534
16895
|
TestChatRunLane,
|
|
16535
16896
|
TestChatRunOutcome,
|
|
16897
|
+
CapturedEffectDirection,
|
|
16898
|
+
CapturedEffectKind,
|
|
16899
|
+
CallNotAnsweredBranch,
|
|
16900
|
+
InboundRefusal,
|
|
16901
|
+
PhoneRunRefusal,
|
|
16536
16902
|
ScenarioHealthCaption,
|
|
16537
16903
|
ScenarioHealthHeadline,
|
|
16538
16904
|
ScenarioHealthSampleNote,
|
|
@@ -16594,6 +16960,7 @@ export {
|
|
|
16594
16960
|
bindOrgMethods,
|
|
16595
16961
|
bindPronunciationsMethods,
|
|
16596
16962
|
bindBundlesMethods,
|
|
16963
|
+
bindDemosMethods,
|
|
16597
16964
|
bindInstallationsMethods,
|
|
16598
16965
|
bindJourneysMethods,
|
|
16599
16966
|
bindQualificationsMethods,
|
|
@@ -16617,6 +16984,7 @@ export {
|
|
|
16617
16984
|
ChannelMessageSource,
|
|
16618
16985
|
ChannelMessagesUnavailableReason,
|
|
16619
16986
|
ChatMuteReason,
|
|
16987
|
+
TaskTransitionInitiator,
|
|
16620
16988
|
EhrWritebackOutcomeResponseStatus,
|
|
16621
16989
|
SMS_DELIVERY_FAILURE_STATUSES,
|
|
16622
16990
|
isSMSDeliveryFailureStatus,
|
|
@@ -16689,4 +17057,4 @@ export {
|
|
|
16689
17057
|
SCOPE_PRESETS,
|
|
16690
17058
|
getRevisionState
|
|
16691
17059
|
};
|
|
16692
|
-
//# sourceMappingURL=chunk-
|
|
17060
|
+
//# sourceMappingURL=chunk-G32MQGJD.js.map
|