@gravity-rail/sdk 0.42.0 → 0.44.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-C9dD0qbD.d.ts → chat-interaction-RFnlmlbW.d.ts} +822 -54
- package/dist/{chat-interaction-BBBeSKGl.d.cts → chat-interaction-WwLDUIWO.d.cts} +822 -54
- package/dist/{chunk-JTOMGNUO.js → chunk-JKML6WOA.js} +258 -10
- package/dist/chunk-JKML6WOA.js.map +1 -0
- package/dist/helpers.d.cts +4 -4
- package/dist/helpers.d.ts +4 -4
- package/dist/index.cjs +265 -9
- 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 +17 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +265 -9
- 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-DuuRwvkZ.d.ts} +30 -3
- package/dist/{revision-state-QkNQXWJC.d.ts → revision-state-DykZ8uuN.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
package/dist/internal.cjs
CHANGED
|
@@ -63,8 +63,11 @@ __export(internal_exports, {
|
|
|
63
63
|
CalendarScheduleRecurrence: () => CalendarScheduleRecurrence,
|
|
64
64
|
CalendarSource: () => CalendarSource,
|
|
65
65
|
CalendarsApi: () => CalendarsApi,
|
|
66
|
+
CallNotAnsweredBranch: () => CallNotAnsweredBranch,
|
|
66
67
|
CallsApi: () => CallsApi,
|
|
67
68
|
CapabilityClass: () => CapabilityClass,
|
|
69
|
+
CapturedEffectDirection: () => CapturedEffectDirection,
|
|
70
|
+
CapturedEffectKind: () => CapturedEffectKind,
|
|
68
71
|
ChannelMessageDirection: () => ChannelMessageDirection,
|
|
69
72
|
ChannelMessageSource: () => ChannelMessageSource,
|
|
70
73
|
ChannelMessagesUnavailableReason: () => ChannelMessagesUnavailableReason,
|
|
@@ -130,6 +133,7 @@ __export(internal_exports, {
|
|
|
130
133
|
ImportSkippedRuleResponseParentKind: () => ImportSkippedRuleResponseParentKind,
|
|
131
134
|
ImportSkippedRuleResponseReasonCode: () => ImportSkippedRuleResponseReasonCode,
|
|
132
135
|
ImportSkippedRuleResponseStatus: () => ImportSkippedRuleResponseStatus,
|
|
136
|
+
InboundRefusal: () => InboundRefusal,
|
|
133
137
|
InboxesApi: () => InboxesApi,
|
|
134
138
|
IndexStatus: () => IndexStatus,
|
|
135
139
|
InquiriesApi: () => InquiriesApi,
|
|
@@ -143,6 +147,7 @@ __export(internal_exports, {
|
|
|
143
147
|
McpServerState: () => McpServerState,
|
|
144
148
|
McpServersApi: () => McpServersApi,
|
|
145
149
|
MemberFeature: () => MemberFeature,
|
|
150
|
+
MemberImportIssueCode: () => MemberImportIssueCode,
|
|
146
151
|
MemberImportMatchInfoMatchType: () => MemberImportMatchInfoMatchType,
|
|
147
152
|
MemberImportPreviewRowAction: () => MemberImportPreviewRowAction,
|
|
148
153
|
MemberRelationshipKind: () => MemberRelationshipKind,
|
|
@@ -191,6 +196,7 @@ __export(internal_exports, {
|
|
|
191
196
|
PhiPostureReasonCode: () => PhiPostureReasonCode,
|
|
192
197
|
PhiPostureTransitionResponseTargetType: () => PhiPostureTransitionResponseTargetType,
|
|
193
198
|
PhoneNumbersApi: () => PhoneNumbersApi,
|
|
199
|
+
PhoneRunRefusal: () => PhoneRunRefusal,
|
|
194
200
|
PilotRelationshipType: () => PilotRelationshipType,
|
|
195
201
|
PilotStage: () => PilotStage,
|
|
196
202
|
ProductType: () => ProductType,
|
|
@@ -205,6 +211,7 @@ __export(internal_exports, {
|
|
|
205
211
|
REALTIME_MODEL_OPENAI: () => REALTIME_MODEL_OPENAI,
|
|
206
212
|
REALTIME_MODEL_OPENAI_2: () => REALTIME_MODEL_OPENAI_2,
|
|
207
213
|
REALTIME_MODEL_OPENAI_MINI: () => REALTIME_MODEL_OPENAI_MINI,
|
|
214
|
+
RecordChangeKind: () => RecordChangeKind,
|
|
208
215
|
RefResolutionStatus: () => RefResolutionStatus,
|
|
209
216
|
Region: () => Region,
|
|
210
217
|
RegistrationIdentifier: () => RegistrationIdentifier,
|
|
@@ -251,6 +258,7 @@ __export(internal_exports, {
|
|
|
251
258
|
TTS_MODEL_DEEPGRAM_AURA_2: () => TTS_MODEL_DEEPGRAM_AURA_2,
|
|
252
259
|
TTS_MODEL_XAI_V1: () => TTS_MODEL_XAI_V1,
|
|
253
260
|
TTS_PREVIEW_PROVIDERS: () => TTS_PREVIEW_PROVIDERS,
|
|
261
|
+
TaskTransitionInitiator: () => TaskTransitionInitiator,
|
|
254
262
|
TasksApi: () => TasksApi,
|
|
255
263
|
TemplatesApi: () => TemplatesApi,
|
|
256
264
|
TestChatRunLane: () => TestChatRunLane,
|
|
@@ -489,6 +497,34 @@ var BulkMemberResultStatus = {
|
|
|
489
497
|
conflict: "conflict",
|
|
490
498
|
skipped: "skipped"
|
|
491
499
|
};
|
|
500
|
+
var MemberImportIssueCode = {
|
|
501
|
+
csv_unreadable: "csv_unreadable",
|
|
502
|
+
too_many_rows: "too_many_rows",
|
|
503
|
+
duplicate_column: "duplicate_column",
|
|
504
|
+
form_column_format: "form_column_format",
|
|
505
|
+
form_data_type_unknown: "form_data_type_unknown",
|
|
506
|
+
form_field_unknown: "form_field_unknown",
|
|
507
|
+
member_field_column_format: "member_field_column_format",
|
|
508
|
+
salesforce_not_connected: "salesforce_not_connected",
|
|
509
|
+
member_keys_unknown: "member_keys_unknown",
|
|
510
|
+
member_keys_uncorroborated: "member_keys_uncorroborated",
|
|
511
|
+
notify_value_invalid: "notify_value_invalid",
|
|
512
|
+
consent_date_invalid: "consent_date_invalid",
|
|
513
|
+
date_of_birth_invalid: "date_of_birth_invalid",
|
|
514
|
+
conflict_resolution_invalid: "conflict_resolution_invalid",
|
|
515
|
+
salesforce_id_invalid: "salesforce_id_invalid",
|
|
516
|
+
member_id_invalid: "member_id_invalid",
|
|
517
|
+
member_uuid_invalid: "member_uuid_invalid",
|
|
518
|
+
member_id_not_found: "member_id_not_found",
|
|
519
|
+
member_uuid_not_found: "member_uuid_not_found",
|
|
520
|
+
member_key_conflict: "member_key_conflict",
|
|
521
|
+
phone_invalid: "phone_invalid",
|
|
522
|
+
email_ambiguous: "email_ambiguous",
|
|
523
|
+
member_archived: "member_archived",
|
|
524
|
+
role_requires_account: "role_requires_account",
|
|
525
|
+
contact_required: "contact_required",
|
|
526
|
+
row_invalid: "row_invalid"
|
|
527
|
+
};
|
|
492
528
|
var MemberImportMatchInfoMatchType = {
|
|
493
529
|
id: "id",
|
|
494
530
|
uuid: "uuid",
|
|
@@ -1031,6 +1067,7 @@ var TestChatRunLane = {
|
|
|
1031
1067
|
text: "text",
|
|
1032
1068
|
web_realtime: "web_realtime",
|
|
1033
1069
|
core_agent_only: "core_agent_only",
|
|
1070
|
+
phone_call: "phone_call",
|
|
1034
1071
|
unsupported: "unsupported",
|
|
1035
1072
|
unknown: "unknown"
|
|
1036
1073
|
};
|
|
@@ -1044,6 +1081,56 @@ var TestChatRunOutcome = {
|
|
|
1044
1081
|
instrument_failure: "instrument_failure"
|
|
1045
1082
|
};
|
|
1046
1083
|
|
|
1084
|
+
// src/types/generated/captured_effect.ts
|
|
1085
|
+
var CapturedEffectDirection = {
|
|
1086
|
+
outbound: "outbound",
|
|
1087
|
+
inbound: "inbound"
|
|
1088
|
+
};
|
|
1089
|
+
var CapturedEffectKind = {
|
|
1090
|
+
sms: "sms",
|
|
1091
|
+
whatsapp: "whatsapp",
|
|
1092
|
+
email: "email",
|
|
1093
|
+
phone_call: "phone_call",
|
|
1094
|
+
notification: "notification",
|
|
1095
|
+
escalation: "escalation"
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
// src/types/generated/test_call_routing.ts
|
|
1099
|
+
var CallNotAnsweredBranch = {
|
|
1100
|
+
voice_disabled: "voice_disabled",
|
|
1101
|
+
fax_line: "fax_line",
|
|
1102
|
+
rings_operators: "rings_operators",
|
|
1103
|
+
forwards: "forwards",
|
|
1104
|
+
voicemail: "voicemail",
|
|
1105
|
+
plays_message: "plays_message",
|
|
1106
|
+
no_route: "no_route",
|
|
1107
|
+
voice_unavailable: "voice_unavailable",
|
|
1108
|
+
entry_denied: "entry_denied"
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
// src/types/generated/test_chat_run_inbound.ts
|
|
1112
|
+
var InboundRefusal = {
|
|
1113
|
+
run_not_found: "run_not_found",
|
|
1114
|
+
run_ended: "run_ended",
|
|
1115
|
+
sender_not_synthetic: "sender_not_synthetic",
|
|
1116
|
+
sender_is_anonymous: "sender_is_anonymous",
|
|
1117
|
+
sender_has_no_phone: "sender_has_no_phone",
|
|
1118
|
+
destination_not_in_workspace: "destination_not_in_workspace"
|
|
1119
|
+
};
|
|
1120
|
+
var PhoneRunRefusal = {
|
|
1121
|
+
call_not_answered: "call_not_answered",
|
|
1122
|
+
number_routes_to_other_workflow: "number_routes_to_other_workflow",
|
|
1123
|
+
phone_run_needs_a_person: "phone_run_needs_a_person",
|
|
1124
|
+
number_needs_the_phone_channel: "number_needs_the_phone_channel"
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
// src/types/generated/record_change.ts
|
|
1128
|
+
var RecordChangeKind = {
|
|
1129
|
+
created: "created",
|
|
1130
|
+
updated: "updated",
|
|
1131
|
+
deleted: "deleted"
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1047
1134
|
// src/types/generated/qualification_health_service.ts
|
|
1048
1135
|
var ScenarioHealthCaption = {
|
|
1049
1136
|
recent_passes: "recent_passes",
|
|
@@ -1078,7 +1165,6 @@ var RevisionHistorySegment = {
|
|
|
1078
1165
|
|
|
1079
1166
|
// src/types/generated/qualification_run_identity.ts
|
|
1080
1167
|
var ScenarioRunBlocker = {
|
|
1081
|
-
missing_persona: "missing_persona",
|
|
1082
1168
|
archived_persona: "archived_persona"
|
|
1083
1169
|
};
|
|
1084
1170
|
|
|
@@ -1892,6 +1978,15 @@ var ChatMuteReason = {
|
|
|
1892
1978
|
not_mine: "not_mine"
|
|
1893
1979
|
};
|
|
1894
1980
|
|
|
1981
|
+
// src/types/generated/assignment_task_transition.ts
|
|
1982
|
+
var TaskTransitionInitiator = {
|
|
1983
|
+
member: "member",
|
|
1984
|
+
agent: "agent",
|
|
1985
|
+
event_rule: "event_rule",
|
|
1986
|
+
auto_next: "auto_next",
|
|
1987
|
+
system: "system"
|
|
1988
|
+
};
|
|
1989
|
+
|
|
1895
1990
|
// src/types/generated/ehr_writeback.ts
|
|
1896
1991
|
var EhrWritebackOutcomeResponseStatus = {
|
|
1897
1992
|
accepted: "accepted",
|
|
@@ -1968,7 +2063,6 @@ var AbilityConfigIssueCode = {
|
|
|
1968
2063
|
feature_disabled: "feature_disabled",
|
|
1969
2064
|
missing_connection: "missing_connection",
|
|
1970
2065
|
external_drift: "external_drift",
|
|
1971
|
-
missing_task_instructions: "missing_task_instructions",
|
|
1972
2066
|
no_qualification_scenarios: "no_qualification_scenarios"
|
|
1973
2067
|
};
|
|
1974
2068
|
var AbilityConfigIssueSeverity = {
|
|
@@ -3582,6 +3676,27 @@ var BundlesApi = class extends BaseApiClient {
|
|
|
3582
3676
|
async listBundleWorkflowCandidates(wid) {
|
|
3583
3677
|
return this.fetch(bundlesPath(wid, "workflow-candidates"));
|
|
3584
3678
|
}
|
|
3679
|
+
/**
|
|
3680
|
+
* This workspace's Journeys for the Bundle picker, by name. Nothing is built
|
|
3681
|
+
* for the list. `available` is false while the server refuses Journey items.
|
|
3682
|
+
* Requires `workflows:admin` and `journeys:write`.
|
|
3683
|
+
*/
|
|
3684
|
+
async listBundleJourneyCandidates(wid) {
|
|
3685
|
+
return this.fetch(bundlesPath(wid, "journey-candidates"));
|
|
3686
|
+
}
|
|
3687
|
+
/**
|
|
3688
|
+
* One Journey as the Bundle item that adds it: the whole Journey item the
|
|
3689
|
+
* server built (`item`), the Forms its conditions read and the Workflows its
|
|
3690
|
+
* actions start, or the `problems` that name what the Journey must change
|
|
3691
|
+
* first. The item never carries enrollment; `enrollmentOmitted` says the
|
|
3692
|
+
* Journey has automatic enrollment that was left out. Requires
|
|
3693
|
+
* `workflows:admin` and `journeys:write`.
|
|
3694
|
+
*/
|
|
3695
|
+
async getBundleJourneyCandidate(wid, journeyUuid) {
|
|
3696
|
+
return this.fetch(
|
|
3697
|
+
bundlesPath(wid, "journey-candidates", journeyUuid)
|
|
3698
|
+
);
|
|
3699
|
+
}
|
|
3585
3700
|
/** Create an empty Bundle owned by this workspace. */
|
|
3586
3701
|
async createBundle(wid, data) {
|
|
3587
3702
|
return this.fetch(bundlesPath(wid), {
|
|
@@ -3675,9 +3790,18 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
3675
3790
|
{ method: "POST", body: JSON.stringify(data) }
|
|
3676
3791
|
);
|
|
3677
3792
|
}
|
|
3678
|
-
/**
|
|
3679
|
-
|
|
3680
|
-
|
|
3793
|
+
/**
|
|
3794
|
+
* Every attached installation this workspace holds, oldest first.
|
|
3795
|
+
*
|
|
3796
|
+
* With `includeDetached`, detached installations are listed too
|
|
3797
|
+
* (`subscribed: false`). A detached Bundle cannot be installed again at the
|
|
3798
|
+
* version its row holds.
|
|
3799
|
+
*/
|
|
3800
|
+
async listInstallations(wid, options = {}) {
|
|
3801
|
+
const path = installationsPath(wid);
|
|
3802
|
+
return this.fetch(
|
|
3803
|
+
options.includeDetached ? `${path}?includeDetached=true` : path
|
|
3804
|
+
);
|
|
3681
3805
|
}
|
|
3682
3806
|
async getInstallation(wid, installationUuid) {
|
|
3683
3807
|
return this.fetch(installationsPath(wid, installationUuid));
|
|
@@ -4973,9 +5097,25 @@ var CallsApi = class extends BaseApiClient {
|
|
|
4973
5097
|
`w/${wid}/calls${params.toString() ? `?${params.toString()}` : ""}`
|
|
4974
5098
|
);
|
|
4975
5099
|
}
|
|
4976
|
-
/**
|
|
4977
|
-
|
|
4978
|
-
|
|
5100
|
+
/**
|
|
5101
|
+
* Get message timing data for a chat recording. `source` selects whose
|
|
5102
|
+
* timeline the offsets are measured against; omitted means `standard`.
|
|
5103
|
+
*/
|
|
5104
|
+
async getMessageTiming(wid, chatId, options = {}) {
|
|
5105
|
+
const params = new URLSearchParams();
|
|
5106
|
+
if (options.source) params.set("source", options.source);
|
|
5107
|
+
return this.fetch(
|
|
5108
|
+
`w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
|
|
5109
|
+
);
|
|
5110
|
+
}
|
|
5111
|
+
/**
|
|
5112
|
+
* Staff-only discovery of retained edge-stream capture for a chat:
|
|
5113
|
+
* whether any is retained, its aggregate coverage status, the interval it
|
|
5114
|
+
* covers, and closed reason codes. `available: false` when nothing is
|
|
5115
|
+
* retained; 403 for anyone who is not Gravity Rail staff.
|
|
5116
|
+
*/
|
|
5117
|
+
async getEdgeCaptureInfo(wid, chatId) {
|
|
5118
|
+
return this.fetch(`w/${wid}/recordings/chat/${chatId}/edge-capture`);
|
|
4979
5119
|
}
|
|
4980
5120
|
/**
|
|
4981
5121
|
* Get PHI-safe provenance metadata for the recording served by
|
|
@@ -5345,6 +5485,19 @@ var ChatsApi = class extends BaseApiClient {
|
|
|
5345
5485
|
`w/${wid}/chats/${id}/messages${params.toString() ? `?${params.toString()}` : ""}`
|
|
5346
5486
|
);
|
|
5347
5487
|
}
|
|
5488
|
+
/** Who moved the chat's Assignment between Tasks, for a time window.
|
|
5489
|
+
* Pair it with `getChatMessages`: pass the window the message page covers as
|
|
5490
|
+
* `after` / `before` (ISO-8601, inclusive). The newest `limit` moves in the
|
|
5491
|
+
* window come back, oldest first. */
|
|
5492
|
+
async getChatTaskTransitions(wid, id, options) {
|
|
5493
|
+
const params = new URLSearchParams();
|
|
5494
|
+
if (options?.after) params.append("after", options.after);
|
|
5495
|
+
if (options?.before) params.append("before", options.before);
|
|
5496
|
+
if (options?.limit) params.append("limit", options.limit.toString());
|
|
5497
|
+
return this.fetch(
|
|
5498
|
+
`w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
|
|
5499
|
+
);
|
|
5500
|
+
}
|
|
5348
5501
|
/** List the background-work thread hanging off a message.
|
|
5349
5502
|
*
|
|
5350
5503
|
* When a tool trajectory outgrows its turn it detaches and runs in the
|
|
@@ -9239,7 +9392,8 @@ var OrgApi = class extends BaseApiClient {
|
|
|
9239
9392
|
return this.fetch(`o/${orgIdOrUuid}/bundles`);
|
|
9240
9393
|
}
|
|
9241
9394
|
/**
|
|
9242
|
-
* Update the settings an org admin owns: name, slug
|
|
9395
|
+
* Update the settings an org admin owns: name, slug, contact details and
|
|
9396
|
+
* the security contact.
|
|
9243
9397
|
*
|
|
9244
9398
|
* Deliberately NOT the admin organization update — `enforceCreditLimit`
|
|
9245
9399
|
* is superuser-only and is not a field on this endpoint's request model
|
|
@@ -10838,6 +10992,32 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
10838
10992
|
async getTestChatRun(wid, runId) {
|
|
10839
10993
|
return this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}`);
|
|
10840
10994
|
}
|
|
10995
|
+
/**
|
|
10996
|
+
* What a test run sent and received on other channels: each SMS, WhatsApp
|
|
10997
|
+
* message, email, call, notification and escalation it prepared, and each
|
|
10998
|
+
* message its Persona sent to the workspace, with content, oldest first.
|
|
10999
|
+
* `chatId` is the run's Chat. The list covers the whole run, including the
|
|
11000
|
+
* other Chats it produced. One entry per Member reached, naming the Member
|
|
11001
|
+
* and the workspace phone number or inbox used. Nothing in the list was
|
|
11002
|
+
* delivered. `truncated` means the list is incomplete. A Chat that is not
|
|
11003
|
+
* a test run's Chat has an empty list. Read access is the Chat's own.
|
|
11004
|
+
*/
|
|
11005
|
+
async listChatCapturedEffects(wid, chatId) {
|
|
11006
|
+
return this.fetch(`w/${wid}/chats/${chatId}/captured-effects`);
|
|
11007
|
+
}
|
|
11008
|
+
/**
|
|
11009
|
+
* What a test run did to its test Member's records: each record created,
|
|
11010
|
+
* each update and each deletion from the run's start, oldest first, with
|
|
11011
|
+
* the fields touched and their values before and after. `chatId` is the
|
|
11012
|
+
* run's Chat. A scenario's seeded records are the first changes. One entry
|
|
11013
|
+
* per operation on one record, naming the Form and the Member who acted.
|
|
11014
|
+
* `truncated` means the list is incomplete. A Chat that is not a test
|
|
11015
|
+
* run's Chat has an empty list. Requires `records:read` and read access to
|
|
11016
|
+
* the Chat; a Form, record or field the caller may not read is left out.
|
|
11017
|
+
*/
|
|
11018
|
+
async listChatRecordChanges(wid, chatId) {
|
|
11019
|
+
return this.fetch(`w/${wid}/chats/${chatId}/record-changes`);
|
|
11020
|
+
}
|
|
10841
11021
|
async startTestChatRun(wid, workflowId, data = {}) {
|
|
10842
11022
|
return this.fetch(
|
|
10843
11023
|
`w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs`,
|
|
@@ -10847,6 +11027,36 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
10847
11027
|
}
|
|
10848
11028
|
);
|
|
10849
11029
|
}
|
|
11030
|
+
/**
|
|
11031
|
+
* Take an email turn in the run's own Chat as its Persona. The email is a
|
|
11032
|
+
* Message of that Chat and the email Agent turn runs on it; no Inbox and no
|
|
11033
|
+
* routing is involved. The call returns after the Agent's turn with the
|
|
11034
|
+
* reply the run captured, which is never sent.
|
|
11035
|
+
*/
|
|
11036
|
+
async takeTestChatRunEmailTurn(wid, runId, data) {
|
|
11037
|
+
return this.fetch(
|
|
11038
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/persona-turn/email`,
|
|
11039
|
+
{
|
|
11040
|
+
method: "POST",
|
|
11041
|
+
body: JSON.stringify(data)
|
|
11042
|
+
}
|
|
11043
|
+
);
|
|
11044
|
+
}
|
|
11045
|
+
/**
|
|
11046
|
+
* Take a text turn in the run's own Chat as its Persona. The text is a
|
|
11047
|
+
* Message of that Chat and the SMS turn runs on it; no workspace phone
|
|
11048
|
+
* number and no routing is involved. The call returns after the Agent's
|
|
11049
|
+
* turn with the reply the run captured, which is never sent.
|
|
11050
|
+
*/
|
|
11051
|
+
async takeTestChatRunSmsTurn(wid, runId, data) {
|
|
11052
|
+
return this.fetch(
|
|
11053
|
+
`w/${wid}/qualifications/test-chat-runs/${runId}/persona-turn/sms`,
|
|
11054
|
+
{
|
|
11055
|
+
method: "POST",
|
|
11056
|
+
body: JSON.stringify(data)
|
|
11057
|
+
}
|
|
11058
|
+
);
|
|
11059
|
+
}
|
|
10850
11060
|
async evaluateTestChatRun(wid, runId) {
|
|
10851
11061
|
await this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`, {
|
|
10852
11062
|
method: "POST"
|
|
@@ -12936,6 +13146,17 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
12936
13146
|
`w/${wid}/workflows/${workflowId}/validate-config`
|
|
12937
13147
|
);
|
|
12938
13148
|
}
|
|
13149
|
+
/**
|
|
13150
|
+
* Classify the prompts of a Workflow's draft revision.
|
|
13151
|
+
*
|
|
13152
|
+
* A decision model reads each Task that has a prompt and reports which
|
|
13153
|
+
* prompt classifications probably apply. Each call asks the model again.
|
|
13154
|
+
*/
|
|
13155
|
+
async getWorkflowPromptClassifications(wid, workflowId) {
|
|
13156
|
+
return this.fetch(
|
|
13157
|
+
`w/${wid}/workflows/${workflowId}/prompt-classifications`
|
|
13158
|
+
);
|
|
13159
|
+
}
|
|
12939
13160
|
/**
|
|
12940
13161
|
* Replay automatic routing for a Chat without performing the transition.
|
|
12941
13162
|
*
|
|
@@ -14229,6 +14450,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14229
14450
|
"getInstallationReadiness",
|
|
14230
14451
|
"getThemeSettingsSchema",
|
|
14231
14452
|
"getBundleDraft",
|
|
14453
|
+
"getBundleJourneyCandidate",
|
|
14232
14454
|
"getBundle",
|
|
14233
14455
|
"getBundleVersion",
|
|
14234
14456
|
"getBusinessHoursStatus",
|
|
@@ -14260,6 +14482,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14260
14482
|
"getChatLabels",
|
|
14261
14483
|
"getChatMachineResources",
|
|
14262
14484
|
"getChatMessages",
|
|
14485
|
+
"getChatTaskTransitions",
|
|
14263
14486
|
"getChatModelOverride",
|
|
14264
14487
|
"getChatPhoneCalls",
|
|
14265
14488
|
"getChatSkills",
|
|
@@ -14317,6 +14540,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14317
14540
|
"getDocumoFaxSetup",
|
|
14318
14541
|
"listDocumoFaxes",
|
|
14319
14542
|
"getDocumoFaxStatus",
|
|
14543
|
+
"getEdgeCaptureInfo",
|
|
14320
14544
|
"getEnrollmentStatusLog",
|
|
14321
14545
|
"getEventRule",
|
|
14322
14546
|
"getEventRules",
|
|
@@ -14539,6 +14763,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14539
14763
|
"getWorkflowActivity",
|
|
14540
14764
|
"getWorkflowConfigValidation",
|
|
14541
14765
|
"getWorkflowFeedback",
|
|
14766
|
+
"getWorkflowPromptClassifications",
|
|
14542
14767
|
"getWorkflowContributors",
|
|
14543
14768
|
"getWorkflowDeletionPreview",
|
|
14544
14769
|
"getWorkflowDiagram",
|
|
@@ -14597,6 +14822,7 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14597
14822
|
"listAvailableAppConnections",
|
|
14598
14823
|
"listInstallations",
|
|
14599
14824
|
"listBundleGrants",
|
|
14825
|
+
"listBundleJourneyCandidates",
|
|
14600
14826
|
"listBundleVersions",
|
|
14601
14827
|
"listBundles",
|
|
14602
14828
|
"listBundleWorkflowCandidates",
|
|
@@ -14633,6 +14859,10 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
14633
14859
|
"listSalesforceObjects",
|
|
14634
14860
|
"listScenarioHealthSummaries",
|
|
14635
14861
|
"listScenarios",
|
|
14862
|
+
"listChatCapturedEffects",
|
|
14863
|
+
"listChatRecordChanges",
|
|
14864
|
+
"takeTestChatRunEmailTurn",
|
|
14865
|
+
"takeTestChatRunSmsTurn",
|
|
14636
14866
|
"listTestChatRuns",
|
|
14637
14867
|
"listWidgetDomains",
|
|
14638
14868
|
"listWorkspaceInvitationsAdmin",
|
|
@@ -14942,6 +15172,7 @@ function bindChatsMethods(target, chats) {
|
|
|
14942
15172
|
target.updateChatMute = chats.updateChatMute.bind(chats);
|
|
14943
15173
|
target.summarizeChat = chats.summarizeChat.bind(chats);
|
|
14944
15174
|
target.getChatMessages = chats.getChatMessages.bind(chats);
|
|
15175
|
+
target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
|
|
14945
15176
|
target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
|
|
14946
15177
|
target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
|
|
14947
15178
|
target.getChatTools = chats.getChatTools.bind(chats);
|
|
@@ -14976,6 +15207,7 @@ function bindCallsMethods(target, calls, cel) {
|
|
|
14976
15207
|
target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
|
|
14977
15208
|
target.getMessageTiming = calls.getMessageTiming.bind(calls);
|
|
14978
15209
|
target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
|
|
15210
|
+
target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
|
|
14979
15211
|
target.listChatRecordings = calls.listChatRecordings.bind(calls);
|
|
14980
15212
|
target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
|
|
14981
15213
|
target.getCelContext = cel.getCelContext.bind(cel);
|
|
@@ -15462,6 +15694,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
15462
15694
|
target.getWorkflowTaskAssignmentStats = workflows.getWorkflowTaskAssignmentStats.bind(workflows);
|
|
15463
15695
|
target.getTaskChats = workflows.getTaskChats.bind(workflows);
|
|
15464
15696
|
target.getWorkflowConfigValidation = workflows.getWorkflowConfigValidation.bind(workflows);
|
|
15697
|
+
target.getWorkflowPromptClassifications = workflows.getWorkflowPromptClassifications.bind(workflows);
|
|
15465
15698
|
target.getWorkflowNotes = workflowNotes.getWorkflowNotes.bind(workflowNotes);
|
|
15466
15699
|
target.createWorkflowNote = workflowNotes.createWorkflowNote.bind(workflowNotes);
|
|
15467
15700
|
target.updateWorkflowNote = workflowNotes.updateWorkflowNote.bind(workflowNotes);
|
|
@@ -15948,6 +16181,8 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
|
|
|
15948
16181
|
target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
|
|
15949
16182
|
target.listBundles = bundles.listBundles.bind(bundles);
|
|
15950
16183
|
target.listBundleWorkflowCandidates = bundles.listBundleWorkflowCandidates.bind(bundles);
|
|
16184
|
+
target.listBundleJourneyCandidates = bundles.listBundleJourneyCandidates.bind(bundles);
|
|
16185
|
+
target.getBundleJourneyCandidate = bundles.getBundleJourneyCandidate.bind(bundles);
|
|
15951
16186
|
target.createBundle = bundles.createBundle.bind(bundles);
|
|
15952
16187
|
target.getBundleDraft = bundles.getBundleDraft.bind(bundles);
|
|
15953
16188
|
target.replaceBundleDraft = bundles.replaceBundleDraft.bind(bundles);
|
|
@@ -16035,6 +16270,10 @@ function bindQualificationsMethods(target, qualifications) {
|
|
|
16035
16270
|
target.listTestChatRuns = qualifications.listTestChatRuns.bind(qualifications);
|
|
16036
16271
|
target.listScenarioHealthSummaries = qualifications.listScenarioHealthSummaries.bind(qualifications);
|
|
16037
16272
|
target.getTestChatRun = qualifications.getTestChatRun.bind(qualifications);
|
|
16273
|
+
target.listChatCapturedEffects = qualifications.listChatCapturedEffects.bind(qualifications);
|
|
16274
|
+
target.listChatRecordChanges = qualifications.listChatRecordChanges.bind(qualifications);
|
|
16275
|
+
target.takeTestChatRunEmailTurn = qualifications.takeTestChatRunEmailTurn.bind(qualifications);
|
|
16276
|
+
target.takeTestChatRunSmsTurn = qualifications.takeTestChatRunSmsTurn.bind(qualifications);
|
|
16038
16277
|
target.startTestChatRun = qualifications.startTestChatRun.bind(qualifications);
|
|
16039
16278
|
target.evaluateTestChatRun = qualifications.evaluateTestChatRun.bind(qualifications);
|
|
16040
16279
|
target.endTestChatRun = qualifications.endTestChatRun.bind(qualifications);
|
|
@@ -16187,6 +16426,7 @@ var GravityRailClient = class {
|
|
|
16187
16426
|
updateChatMute;
|
|
16188
16427
|
summarizeChat;
|
|
16189
16428
|
getChatMessages;
|
|
16429
|
+
getChatTaskTransitions;
|
|
16190
16430
|
getChildThreadMessages;
|
|
16191
16431
|
getChatToolCallMessages;
|
|
16192
16432
|
getChatTools;
|
|
@@ -16218,6 +16458,7 @@ var GravityRailClient = class {
|
|
|
16218
16458
|
getPhoneCalls;
|
|
16219
16459
|
getMessageTiming;
|
|
16220
16460
|
getRecordingInfo;
|
|
16461
|
+
getEdgeCaptureInfo;
|
|
16221
16462
|
listChatRecordings;
|
|
16222
16463
|
getCallRecordingDownloadUrl;
|
|
16223
16464
|
getCelContext;
|
|
@@ -16361,6 +16602,10 @@ var GravityRailClient = class {
|
|
|
16361
16602
|
listTestChatRuns;
|
|
16362
16603
|
listScenarioHealthSummaries;
|
|
16363
16604
|
getTestChatRun;
|
|
16605
|
+
listChatCapturedEffects;
|
|
16606
|
+
listChatRecordChanges;
|
|
16607
|
+
takeTestChatRunEmailTurn;
|
|
16608
|
+
takeTestChatRunSmsTurn;
|
|
16364
16609
|
startTestChatRun;
|
|
16365
16610
|
evaluateTestChatRun;
|
|
16366
16611
|
endTestChatRun;
|
|
@@ -16479,6 +16724,8 @@ var GravityRailClient = class {
|
|
|
16479
16724
|
getPublicBundle;
|
|
16480
16725
|
listBundles;
|
|
16481
16726
|
listBundleWorkflowCandidates;
|
|
16727
|
+
listBundleJourneyCandidates;
|
|
16728
|
+
getBundleJourneyCandidate;
|
|
16482
16729
|
createBundle;
|
|
16483
16730
|
getBundleDraft;
|
|
16484
16731
|
replaceBundleDraft;
|
|
@@ -16855,6 +17102,7 @@ var GravityRailClient = class {
|
|
|
16855
17102
|
getWorkflowTaskAssignmentStats;
|
|
16856
17103
|
getTaskChats;
|
|
16857
17104
|
getWorkflowConfigValidation;
|
|
17105
|
+
getWorkflowPromptClassifications;
|
|
16858
17106
|
getWorkflowNotes;
|
|
16859
17107
|
createWorkflowNote;
|
|
16860
17108
|
updateWorkflowNote;
|
|
@@ -17554,8 +17802,11 @@ var ChatInteractionController = class {
|
|
|
17554
17802
|
CalendarScheduleRecurrence,
|
|
17555
17803
|
CalendarSource,
|
|
17556
17804
|
CalendarsApi,
|
|
17805
|
+
CallNotAnsweredBranch,
|
|
17557
17806
|
CallsApi,
|
|
17558
17807
|
CapabilityClass,
|
|
17808
|
+
CapturedEffectDirection,
|
|
17809
|
+
CapturedEffectKind,
|
|
17559
17810
|
ChannelMessageDirection,
|
|
17560
17811
|
ChannelMessageSource,
|
|
17561
17812
|
ChannelMessagesUnavailableReason,
|
|
@@ -17621,6 +17872,7 @@ var ChatInteractionController = class {
|
|
|
17621
17872
|
ImportSkippedRuleResponseParentKind,
|
|
17622
17873
|
ImportSkippedRuleResponseReasonCode,
|
|
17623
17874
|
ImportSkippedRuleResponseStatus,
|
|
17875
|
+
InboundRefusal,
|
|
17624
17876
|
InboxesApi,
|
|
17625
17877
|
IndexStatus,
|
|
17626
17878
|
InquiriesApi,
|
|
@@ -17634,6 +17886,7 @@ var ChatInteractionController = class {
|
|
|
17634
17886
|
McpServerState,
|
|
17635
17887
|
McpServersApi,
|
|
17636
17888
|
MemberFeature,
|
|
17889
|
+
MemberImportIssueCode,
|
|
17637
17890
|
MemberImportMatchInfoMatchType,
|
|
17638
17891
|
MemberImportPreviewRowAction,
|
|
17639
17892
|
MemberRelationshipKind,
|
|
@@ -17682,6 +17935,7 @@ var ChatInteractionController = class {
|
|
|
17682
17935
|
PhiPostureReasonCode,
|
|
17683
17936
|
PhiPostureTransitionResponseTargetType,
|
|
17684
17937
|
PhoneNumbersApi,
|
|
17938
|
+
PhoneRunRefusal,
|
|
17685
17939
|
PilotRelationshipType,
|
|
17686
17940
|
PilotStage,
|
|
17687
17941
|
ProductType,
|
|
@@ -17696,6 +17950,7 @@ var ChatInteractionController = class {
|
|
|
17696
17950
|
REALTIME_MODEL_OPENAI,
|
|
17697
17951
|
REALTIME_MODEL_OPENAI_2,
|
|
17698
17952
|
REALTIME_MODEL_OPENAI_MINI,
|
|
17953
|
+
RecordChangeKind,
|
|
17699
17954
|
RefResolutionStatus,
|
|
17700
17955
|
Region,
|
|
17701
17956
|
RegistrationIdentifier,
|
|
@@ -17742,6 +17997,7 @@ var ChatInteractionController = class {
|
|
|
17742
17997
|
TTS_MODEL_DEEPGRAM_AURA_2,
|
|
17743
17998
|
TTS_MODEL_XAI_V1,
|
|
17744
17999
|
TTS_PREVIEW_PROVIDERS,
|
|
18000
|
+
TaskTransitionInitiator,
|
|
17745
18001
|
TasksApi,
|
|
17746
18002
|
TemplatesApi,
|
|
17747
18003
|
TestChatRunLane,
|