@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.
Files changed (32) hide show
  1. package/dist/{chat-interaction-BBBeSKGl.d.cts → chat-interaction-DKt3ggnZ.d.cts} +904 -17
  2. package/dist/{chat-interaction-C9dD0qbD.d.ts → chat-interaction-DMd-Wtcg.d.ts} +904 -17
  3. package/dist/{chunk-JTOMGNUO.js → chunk-G32MQGJD.js} +374 -6
  4. package/dist/chunk-G32MQGJD.js.map +1 -0
  5. package/dist/helpers.d.cts +4 -4
  6. package/dist/helpers.d.ts +4 -4
  7. package/dist/index.cjs +384 -5
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +6 -6
  10. package/dist/index.d.ts +6 -6
  11. package/dist/index.js +25 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/internal.cjs +366 -5
  14. package/dist/internal.cjs.map +1 -1
  15. package/dist/internal.d.cts +5 -5
  16. package/dist/internal.d.ts +5 -5
  17. package/dist/internal.js +17 -1
  18. package/dist/internal.js.map +1 -1
  19. package/dist/{member-import-BXReoljG.d.cts → member-import-D6KvS3Zg.d.cts} +1 -1
  20. package/dist/{member-import-jjfQHlWl.d.ts → member-import-mE0BhGIw.d.ts} +1 -1
  21. package/dist/{revision-state-Bp7WKk6z.d.cts → revision-state-BrRxp9qZ.d.ts} +30 -3
  22. package/dist/{revision-state-QkNQXWJC.d.ts → revision-state-Ci5a5NLH.d.cts} +30 -3
  23. package/dist/schemas.cjs +12 -3
  24. package/dist/schemas.cjs.map +1 -1
  25. package/dist/schemas.d.cts +10 -2
  26. package/dist/schemas.d.ts +10 -2
  27. package/dist/schemas.js +12 -3
  28. package/dist/schemas.js.map +1 -1
  29. package/dist/{tasks-BsLI-h11.d.cts → tasks-DAPby6cw.d.cts} +60 -1
  30. package/dist/{tasks-BsLI-h11.d.ts → tasks-DAPby6cw.d.ts} +60 -1
  31. package/package.json +1 -1
  32. 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,
@@ -251,6 +257,7 @@ __export(internal_exports, {
251
257
  TTS_MODEL_DEEPGRAM_AURA_2: () => TTS_MODEL_DEEPGRAM_AURA_2,
252
258
  TTS_MODEL_XAI_V1: () => TTS_MODEL_XAI_V1,
253
259
  TTS_PREVIEW_PROVIDERS: () => TTS_PREVIEW_PROVIDERS,
260
+ TaskTransitionInitiator: () => TaskTransitionInitiator,
254
261
  TasksApi: () => TasksApi,
255
262
  TemplatesApi: () => TemplatesApi,
256
263
  TestChatRunLane: () => TestChatRunLane,
@@ -290,6 +297,7 @@ __export(internal_exports, {
290
297
  bindCustomersMethods: () => bindCustomersMethods,
291
298
  bindDashboardsMethods: () => bindDashboardsMethods,
292
299
  bindDataTypesMethods: () => bindDataTypesMethods,
300
+ bindDemosMethods: () => bindDemosMethods,
293
301
  bindDevicesMethods: () => bindDevicesMethods,
294
302
  bindEventsMethods: () => bindEventsMethods,
295
303
  bindExperimentsMethods: () => bindExperimentsMethods,
@@ -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,52 @@ 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
+ sender_has_no_email: "sender_has_no_email",
1119
+ destination_not_in_workspace: "destination_not_in_workspace",
1120
+ reply_target_not_test: "reply_target_not_test"
1121
+ };
1122
+ var PhoneRunRefusal = {
1123
+ call_not_answered: "call_not_answered",
1124
+ number_routes_to_other_workflow: "number_routes_to_other_workflow",
1125
+ phone_run_needs_a_person: "phone_run_needs_a_person",
1126
+ phone_run_needs_a_number: "phone_run_needs_a_number",
1127
+ number_needs_the_phone_channel: "number_needs_the_phone_channel"
1128
+ };
1129
+
1047
1130
  // src/types/generated/qualification_health_service.ts
1048
1131
  var ScenarioHealthCaption = {
1049
1132
  recent_passes: "recent_passes",
@@ -1078,7 +1161,6 @@ var RevisionHistorySegment = {
1078
1161
 
1079
1162
  // src/types/generated/qualification_run_identity.ts
1080
1163
  var ScenarioRunBlocker = {
1081
- missing_persona: "missing_persona",
1082
1164
  archived_persona: "archived_persona"
1083
1165
  };
1084
1166
 
@@ -1892,6 +1974,15 @@ var ChatMuteReason = {
1892
1974
  not_mine: "not_mine"
1893
1975
  };
1894
1976
 
1977
+ // src/types/generated/assignment_task_transition.ts
1978
+ var TaskTransitionInitiator = {
1979
+ member: "member",
1980
+ agent: "agent",
1981
+ event_rule: "event_rule",
1982
+ auto_next: "auto_next",
1983
+ system: "system"
1984
+ };
1985
+
1895
1986
  // src/types/generated/ehr_writeback.ts
1896
1987
  var EhrWritebackOutcomeResponseStatus = {
1897
1988
  accepted: "accepted",
@@ -3582,6 +3673,27 @@ var BundlesApi = class extends BaseApiClient {
3582
3673
  async listBundleWorkflowCandidates(wid) {
3583
3674
  return this.fetch(bundlesPath(wid, "workflow-candidates"));
3584
3675
  }
3676
+ /**
3677
+ * This workspace's Journeys for the Bundle picker, by name. Nothing is built
3678
+ * for the list. `available` is false while the server refuses Journey items.
3679
+ * Requires `workflows:admin` and `journeys:write`.
3680
+ */
3681
+ async listBundleJourneyCandidates(wid) {
3682
+ return this.fetch(bundlesPath(wid, "journey-candidates"));
3683
+ }
3684
+ /**
3685
+ * One Journey as the Bundle item that adds it: the whole Journey item the
3686
+ * server built (`item`), the Forms its conditions read and the Workflows its
3687
+ * actions start, or the `problems` that name what the Journey must change
3688
+ * first. The item never carries enrollment; `enrollmentOmitted` says the
3689
+ * Journey has automatic enrollment that was left out. Requires
3690
+ * `workflows:admin` and `journeys:write`.
3691
+ */
3692
+ async getBundleJourneyCandidate(wid, journeyUuid) {
3693
+ return this.fetch(
3694
+ bundlesPath(wid, "journey-candidates", journeyUuid)
3695
+ );
3696
+ }
3585
3697
  /** Create an empty Bundle owned by this workspace. */
3586
3698
  async createBundle(wid, data) {
3587
3699
  return this.fetch(bundlesPath(wid), {
@@ -3649,6 +3761,116 @@ var BundlesApi = class extends BaseApiClient {
3649
3761
  }
3650
3762
  };
3651
3763
 
3764
+ // src/types/generated/demo.ts
3765
+ var DemoRefusalCode = {
3766
+ session_expired: "session_expired",
3767
+ session_capped: "session_capped",
3768
+ calls_capped: "calls_capped",
3769
+ session_ended: "session_ended",
3770
+ destination_not_allowed: "destination_not_allowed",
3771
+ sender_cannot_send: "sender_cannot_send",
3772
+ demo_not_available: "demo_not_available"
3773
+ };
3774
+
3775
+ // src/api/demos.ts
3776
+ var REFUSAL_CODES = Object.values(DemoRefusalCode);
3777
+ var DemoRequestError = class extends ApiError {
3778
+ code;
3779
+ constructor(message, statusCode, code) {
3780
+ super(message, statusCode);
3781
+ this.name = "DemoRequestError";
3782
+ this.code = code;
3783
+ }
3784
+ };
3785
+ function refusalCode(value) {
3786
+ return typeof value === "string" && REFUSAL_CODES.includes(value) ? value : void 0;
3787
+ }
3788
+ var DemosApi = class extends BaseApiClient {
3789
+ /** Whether a Bundle has a Demo, and what a visitor may contact in it. Needs no session. */
3790
+ async getDemo(bundleUuid) {
3791
+ return this.anonymous(`demos/${encodeURIComponent(bundleUuid)}`, {
3792
+ method: "GET"
3793
+ });
3794
+ }
3795
+ /** Start a Demo session. Needs no session; `recaptchaToken` is required where reCAPTCHA is enforced. */
3796
+ async startDemoSession(bundleUuid, data = {}) {
3797
+ return this.anonymous(
3798
+ `demos/${encodeURIComponent(bundleUuid)}/sessions`,
3799
+ { method: "POST", body: JSON.stringify(data) }
3800
+ );
3801
+ }
3802
+ /** Text one of the Demo's numbers as the session's Persona. */
3803
+ async sendDemoSessionSms(sessionToken, data) {
3804
+ return this.anonymous(
3805
+ "demos/sessions/sms",
3806
+ { method: "POST", body: JSON.stringify(data) },
3807
+ sessionToken
3808
+ );
3809
+ }
3810
+ /** Email one of the Demo's inboxes as the session's Persona. Returns after the Agent's turn. */
3811
+ async sendDemoSessionEmail(sessionToken, data) {
3812
+ return this.anonymous(
3813
+ "demos/sessions/email",
3814
+ { method: "POST", body: JSON.stringify(data) },
3815
+ sessionToken
3816
+ );
3817
+ }
3818
+ /**
3819
+ * Call one of the Demo's numbers as the session's Persona.
3820
+ *
3821
+ * For an `answered` call, `join` holds what a browser opens the call with:
3822
+ * the web voice socket `url`, a single-use login `token` for this call's
3823
+ * Chat, and `chatId`. Send them in `voice.login`. For a `not_answered`
3824
+ * call, `notAnsweredBranch` says what the number does and nothing connects.
3825
+ */
3826
+ async placeDemoSessionCall(sessionToken, data) {
3827
+ return this.anonymous(
3828
+ "demos/sessions/call",
3829
+ { method: "POST", body: JSON.stringify(data) },
3830
+ sessionToken
3831
+ );
3832
+ }
3833
+ /**
3834
+ * The session's own messages, oldest first, and its state. `after` returns
3835
+ * only the rows after that row id, so a poll reads what is new.
3836
+ */
3837
+ async getDemoSessionTimeline(sessionToken, params) {
3838
+ const query = params?.after !== void 0 ? `?after=${encodeURIComponent(params.after)}` : "";
3839
+ return this.anonymous(
3840
+ `demos/sessions/timeline${query}`,
3841
+ { method: "GET" },
3842
+ sessionToken
3843
+ );
3844
+ }
3845
+ /** End the session. Nothing further is captured on it. */
3846
+ async endDemoSession(sessionToken) {
3847
+ return this.anonymous(
3848
+ "demos/sessions/end",
3849
+ { method: "POST" },
3850
+ sessionToken
3851
+ );
3852
+ }
3853
+ /**
3854
+ * A request that carries the Demo session token, or no credential at all.
3855
+ * It never sends this client's API key or the browser's cookies.
3856
+ */
3857
+ async anonymous(endpoint, init, sessionToken) {
3858
+ const headers = new Headers({ "Content-Type": "application/json" });
3859
+ if (sessionToken) headers.set("Authorization", `Bearer ${sessionToken}`);
3860
+ const response = await this.fetchFunction(`${this.baseUrl}/api/v2/${endpoint}`, {
3861
+ ...init,
3862
+ headers,
3863
+ credentials: "omit"
3864
+ });
3865
+ if (!response.ok) {
3866
+ const body = await response.json().catch(() => ({}));
3867
+ const detail = typeof body.detail === "string" ? body.detail : `Request failed (${response.status})`;
3868
+ throw new DemoRequestError(detail, response.status, refusalCode(body.code));
3869
+ }
3870
+ return await response.json();
3871
+ }
3872
+ };
3873
+
3652
3874
  // src/api/installations.ts
3653
3875
  function installationsPath(wid, ...segments) {
3654
3876
  const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
@@ -4973,9 +5195,25 @@ var CallsApi = class extends BaseApiClient {
4973
5195
  `w/${wid}/calls${params.toString() ? `?${params.toString()}` : ""}`
4974
5196
  );
4975
5197
  }
4976
- /** Get message timing data for a chat recording. */
4977
- async getMessageTiming(wid, chatId) {
4978
- return this.fetch(`w/${wid}/recordings/chat/${chatId}/message-timing`);
5198
+ /**
5199
+ * Get message timing data for a chat recording. `source` selects whose
5200
+ * timeline the offsets are measured against; omitted means `standard`.
5201
+ */
5202
+ async getMessageTiming(wid, chatId, options = {}) {
5203
+ const params = new URLSearchParams();
5204
+ if (options.source) params.set("source", options.source);
5205
+ return this.fetch(
5206
+ `w/${wid}/recordings/chat/${chatId}/message-timing${params.toString() ? `?${params.toString()}` : ""}`
5207
+ );
5208
+ }
5209
+ /**
5210
+ * Staff-only discovery of retained edge-stream capture for a chat:
5211
+ * whether any is retained, its aggregate coverage status, the interval it
5212
+ * covers, and closed reason codes. `available: false` when nothing is
5213
+ * retained; 403 for anyone who is not Gravity Rail staff.
5214
+ */
5215
+ async getEdgeCaptureInfo(wid, chatId) {
5216
+ return this.fetch(`w/${wid}/recordings/chat/${chatId}/edge-capture`);
4979
5217
  }
4980
5218
  /**
4981
5219
  * Get PHI-safe provenance metadata for the recording served by
@@ -5345,6 +5583,19 @@ var ChatsApi = class extends BaseApiClient {
5345
5583
  `w/${wid}/chats/${id}/messages${params.toString() ? `?${params.toString()}` : ""}`
5346
5584
  );
5347
5585
  }
5586
+ /** Who moved the chat's Assignment between Tasks, for a time window.
5587
+ * Pair it with `getChatMessages`: pass the window the message page covers as
5588
+ * `after` / `before` (ISO-8601, inclusive). The newest `limit` moves in the
5589
+ * window come back, oldest first. */
5590
+ async getChatTaskTransitions(wid, id, options) {
5591
+ const params = new URLSearchParams();
5592
+ if (options?.after) params.append("after", options.after);
5593
+ if (options?.before) params.append("before", options.before);
5594
+ if (options?.limit) params.append("limit", options.limit.toString());
5595
+ return this.fetch(
5596
+ `w/${wid}/chats/${id}/task-transitions${params.toString() ? `?${params.toString()}` : ""}`
5597
+ );
5598
+ }
5348
5599
  /** List the background-work thread hanging off a message.
5349
5600
  *
5350
5601
  * When a tool trajectory outgrows its turn it detaches and runs in the
@@ -9239,7 +9490,8 @@ var OrgApi = class extends BaseApiClient {
9239
9490
  return this.fetch(`o/${orgIdOrUuid}/bundles`);
9240
9491
  }
9241
9492
  /**
9242
- * Update the settings an org admin owns: name, slug and contact details.
9493
+ * Update the settings an org admin owns: name, slug, contact details and
9494
+ * the security contact.
9243
9495
  *
9244
9496
  * Deliberately NOT the admin organization update — `enforceCreditLimit`
9245
9497
  * is superuser-only and is not a field on this endpoint's request model
@@ -10838,6 +11090,18 @@ var QualificationsApi = class extends BaseApiClient {
10838
11090
  async getTestChatRun(wid, runId) {
10839
11091
  return this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}`);
10840
11092
  }
11093
+ /**
11094
+ * What a test run would have sent: the SMS, WhatsApp, email, call,
11095
+ * notification and escalation it prepared, with content, oldest first.
11096
+ * One entry per Member reached, naming the Member and the workspace phone
11097
+ * number or inbox used. Nothing in the list was delivered. `truncated` means the list is
11098
+ * incomplete.
11099
+ */
11100
+ async listTestChatRunCapturedEffects(wid, runId) {
11101
+ return this.fetch(
11102
+ `w/${wid}/qualifications/test-chat-runs/${runId}/captured-effects`
11103
+ );
11104
+ }
10841
11105
  async startTestChatRun(wid, workflowId, data = {}) {
10842
11106
  return this.fetch(
10843
11107
  `w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs`,
@@ -10847,6 +11111,50 @@ var QualificationsApi = class extends BaseApiClient {
10847
11111
  }
10848
11112
  );
10849
11113
  }
11114
+ /**
11115
+ * Text a workspace phone number as the run's Persona. The text enters the
11116
+ * inbound SMS pipeline; the Agent's reply is captured on the run and never
11117
+ * sent. `chatId` is the Chat the text landed in.
11118
+ */
11119
+ async deliverTestChatRunSms(wid, runId, data) {
11120
+ return this.fetch(
11121
+ `w/${wid}/qualifications/test-chat-runs/${runId}/inbound/sms`,
11122
+ {
11123
+ method: "POST",
11124
+ body: JSON.stringify(data)
11125
+ }
11126
+ );
11127
+ }
11128
+ /**
11129
+ * Email a workspace inbox as the run's Persona. The email enters the
11130
+ * inbound email pipeline; the call returns after the Agent's turn, and the
11131
+ * reply is captured on the run and never sent.
11132
+ */
11133
+ async deliverTestChatRunEmail(wid, runId, data) {
11134
+ return this.fetch(
11135
+ `w/${wid}/qualifications/test-chat-runs/${runId}/inbound/email`,
11136
+ {
11137
+ method: "POST",
11138
+ body: JSON.stringify(data)
11139
+ }
11140
+ );
11141
+ }
11142
+ /**
11143
+ * Call a workspace phone number as the run's Persona. When the Agent
11144
+ * answers (`answered: true`), `chatId` is the test Chat a browser joins
11145
+ * over the web voice socket (`voice.login` with that Chat id). Otherwise
11146
+ * `notAnsweredBranch` names what the number does with the call, and
11147
+ * nothing is run. No carrier is dialed.
11148
+ */
11149
+ async placeTestChatRunCall(wid, runId, data) {
11150
+ return this.fetch(
11151
+ `w/${wid}/qualifications/test-chat-runs/${runId}/inbound/call`,
11152
+ {
11153
+ method: "POST",
11154
+ body: JSON.stringify(data)
11155
+ }
11156
+ );
11157
+ }
10850
11158
  async evaluateTestChatRun(wid, runId) {
10851
11159
  await this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`, {
10852
11160
  method: "POST"
@@ -13866,6 +14174,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
13866
14174
  auth: new AuthApi(apiKey, baseUrl, customFetch),
13867
14175
  builders: new BuildersApi(apiKey, baseUrl, customFetch),
13868
14176
  bundles: new BundlesApi(apiKey, baseUrl, customFetch),
14177
+ demos: new DemosApi(apiKey, baseUrl, customFetch),
13869
14178
  installations: new InstallationsApi(apiKey, baseUrl, customFetch),
13870
14179
  calendars: new CalendarsApi(apiKey, baseUrl, customFetch),
13871
14180
  calls: new CallsApi(apiKey, baseUrl, customFetch),
@@ -14229,6 +14538,7 @@ var WORKSPACE_METHOD_NAMES = [
14229
14538
  "getInstallationReadiness",
14230
14539
  "getThemeSettingsSchema",
14231
14540
  "getBundleDraft",
14541
+ "getBundleJourneyCandidate",
14232
14542
  "getBundle",
14233
14543
  "getBundleVersion",
14234
14544
  "getBusinessHoursStatus",
@@ -14260,6 +14570,7 @@ var WORKSPACE_METHOD_NAMES = [
14260
14570
  "getChatLabels",
14261
14571
  "getChatMachineResources",
14262
14572
  "getChatMessages",
14573
+ "getChatTaskTransitions",
14263
14574
  "getChatModelOverride",
14264
14575
  "getChatPhoneCalls",
14265
14576
  "getChatSkills",
@@ -14317,6 +14628,7 @@ var WORKSPACE_METHOD_NAMES = [
14317
14628
  "getDocumoFaxSetup",
14318
14629
  "listDocumoFaxes",
14319
14630
  "getDocumoFaxStatus",
14631
+ "getEdgeCaptureInfo",
14320
14632
  "getEnrollmentStatusLog",
14321
14633
  "getEventRule",
14322
14634
  "getEventRules",
@@ -14597,6 +14909,7 @@ var WORKSPACE_METHOD_NAMES = [
14597
14909
  "listAvailableAppConnections",
14598
14910
  "listInstallations",
14599
14911
  "listBundleGrants",
14912
+ "listBundleJourneyCandidates",
14600
14913
  "listBundleVersions",
14601
14914
  "listBundles",
14602
14915
  "listBundleWorkflowCandidates",
@@ -14633,6 +14946,10 @@ var WORKSPACE_METHOD_NAMES = [
14633
14946
  "listSalesforceObjects",
14634
14947
  "listScenarioHealthSummaries",
14635
14948
  "listScenarios",
14949
+ "listTestChatRunCapturedEffects",
14950
+ "deliverTestChatRunSms",
14951
+ "deliverTestChatRunEmail",
14952
+ "placeTestChatRunCall",
14636
14953
  "listTestChatRuns",
14637
14954
  "listWidgetDomains",
14638
14955
  "listWorkspaceInvitationsAdmin",
@@ -14942,6 +15259,7 @@ function bindChatsMethods(target, chats) {
14942
15259
  target.updateChatMute = chats.updateChatMute.bind(chats);
14943
15260
  target.summarizeChat = chats.summarizeChat.bind(chats);
14944
15261
  target.getChatMessages = chats.getChatMessages.bind(chats);
15262
+ target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
14945
15263
  target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
14946
15264
  target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
14947
15265
  target.getChatTools = chats.getChatTools.bind(chats);
@@ -14976,6 +15294,7 @@ function bindCallsMethods(target, calls, cel) {
14976
15294
  target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
14977
15295
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
14978
15296
  target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
15297
+ target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
14979
15298
  target.listChatRecordings = calls.listChatRecordings.bind(calls);
14980
15299
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
14981
15300
  target.getCelContext = cel.getCelContext.bind(cel);
@@ -15948,6 +16267,8 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
15948
16267
  target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
15949
16268
  target.listBundles = bundles.listBundles.bind(bundles);
15950
16269
  target.listBundleWorkflowCandidates = bundles.listBundleWorkflowCandidates.bind(bundles);
16270
+ target.listBundleJourneyCandidates = bundles.listBundleJourneyCandidates.bind(bundles);
16271
+ target.getBundleJourneyCandidate = bundles.getBundleJourneyCandidate.bind(bundles);
15951
16272
  target.createBundle = bundles.createBundle.bind(bundles);
15952
16273
  target.getBundleDraft = bundles.getBundleDraft.bind(bundles);
15953
16274
  target.replaceBundleDraft = bundles.replaceBundleDraft.bind(bundles);
@@ -15961,6 +16282,17 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
15961
16282
  target.listResourceWorkflows = resourceWorkflows.listResourceWorkflows.bind(resourceWorkflows);
15962
16283
  }
15963
16284
 
16285
+ // src/client/bindings/demos.ts
16286
+ function bindDemosMethods(target, demos) {
16287
+ target.getDemo = demos.getDemo.bind(demos);
16288
+ target.startDemoSession = demos.startDemoSession.bind(demos);
16289
+ target.sendDemoSessionSms = demos.sendDemoSessionSms.bind(demos);
16290
+ target.sendDemoSessionEmail = demos.sendDemoSessionEmail.bind(demos);
16291
+ target.placeDemoSessionCall = demos.placeDemoSessionCall.bind(demos);
16292
+ target.getDemoSessionTimeline = demos.getDemoSessionTimeline.bind(demos);
16293
+ target.endDemoSession = demos.endDemoSession.bind(demos);
16294
+ }
16295
+
15964
16296
  // src/client/bindings/installations.ts
15965
16297
  function bindInstallationsMethods(target, installations) {
15966
16298
  target.preflightBundleInstallation = installations.preflightBundleInstallation.bind(installations);
@@ -16035,6 +16367,10 @@ function bindQualificationsMethods(target, qualifications) {
16035
16367
  target.listTestChatRuns = qualifications.listTestChatRuns.bind(qualifications);
16036
16368
  target.listScenarioHealthSummaries = qualifications.listScenarioHealthSummaries.bind(qualifications);
16037
16369
  target.getTestChatRun = qualifications.getTestChatRun.bind(qualifications);
16370
+ target.listTestChatRunCapturedEffects = qualifications.listTestChatRunCapturedEffects.bind(qualifications);
16371
+ target.deliverTestChatRunSms = qualifications.deliverTestChatRunSms.bind(qualifications);
16372
+ target.deliverTestChatRunEmail = qualifications.deliverTestChatRunEmail.bind(qualifications);
16373
+ target.placeTestChatRunCall = qualifications.placeTestChatRunCall.bind(qualifications);
16038
16374
  target.startTestChatRun = qualifications.startTestChatRun.bind(qualifications);
16039
16375
  target.evaluateTestChatRun = qualifications.evaluateTestChatRun.bind(qualifications);
16040
16376
  target.endTestChatRun = qualifications.endTestChatRun.bind(qualifications);
@@ -16187,6 +16523,7 @@ var GravityRailClient = class {
16187
16523
  updateChatMute;
16188
16524
  summarizeChat;
16189
16525
  getChatMessages;
16526
+ getChatTaskTransitions;
16190
16527
  getChildThreadMessages;
16191
16528
  getChatToolCallMessages;
16192
16529
  getChatTools;
@@ -16218,6 +16555,7 @@ var GravityRailClient = class {
16218
16555
  getPhoneCalls;
16219
16556
  getMessageTiming;
16220
16557
  getRecordingInfo;
16558
+ getEdgeCaptureInfo;
16221
16559
  listChatRecordings;
16222
16560
  getCallRecordingDownloadUrl;
16223
16561
  getCelContext;
@@ -16361,6 +16699,10 @@ var GravityRailClient = class {
16361
16699
  listTestChatRuns;
16362
16700
  listScenarioHealthSummaries;
16363
16701
  getTestChatRun;
16702
+ listTestChatRunCapturedEffects;
16703
+ deliverTestChatRunSms;
16704
+ deliverTestChatRunEmail;
16705
+ placeTestChatRunCall;
16364
16706
  startTestChatRun;
16365
16707
  evaluateTestChatRun;
16366
16708
  endTestChatRun;
@@ -16472,6 +16814,14 @@ var GravityRailClient = class {
16472
16814
  createJourneyNote;
16473
16815
  updateJourneyNote;
16474
16816
  deleteJourneyNote;
16817
+ // Demos API
16818
+ getDemo;
16819
+ startDemoSession;
16820
+ sendDemoSessionSms;
16821
+ sendDemoSessionEmail;
16822
+ placeDemoSessionCall;
16823
+ getDemoSessionTimeline;
16824
+ endDemoSession;
16475
16825
  updateBundle;
16476
16826
  listBundleInstallations;
16477
16827
  // Bundles API
@@ -16479,6 +16829,8 @@ var GravityRailClient = class {
16479
16829
  getPublicBundle;
16480
16830
  listBundles;
16481
16831
  listBundleWorkflowCandidates;
16832
+ listBundleJourneyCandidates;
16833
+ getBundleJourneyCandidate;
16482
16834
  createBundle;
16483
16835
  getBundleDraft;
16484
16836
  replaceBundleDraft;
@@ -17332,6 +17684,7 @@ var GravityRailClient = class {
17332
17684
  bindTrackedLinksMethods(this, apis.trackedLinks);
17333
17685
  bindJourneysMethods(this, apis.journeys);
17334
17686
  bindBundlesMethods(this, apis.bundles, apis.resourceWorkflows);
17687
+ bindDemosMethods(this, apis.demos);
17335
17688
  bindInstallationsMethods(this, apis.installations);
17336
17689
  bindExperimentsMethods(this, apis.experiments);
17337
17690
  bindOperatorMethods(this, apis.operatorGroups);
@@ -17554,8 +17907,11 @@ var ChatInteractionController = class {
17554
17907
  CalendarScheduleRecurrence,
17555
17908
  CalendarSource,
17556
17909
  CalendarsApi,
17910
+ CallNotAnsweredBranch,
17557
17911
  CallsApi,
17558
17912
  CapabilityClass,
17913
+ CapturedEffectDirection,
17914
+ CapturedEffectKind,
17559
17915
  ChannelMessageDirection,
17560
17916
  ChannelMessageSource,
17561
17917
  ChannelMessagesUnavailableReason,
@@ -17621,6 +17977,7 @@ var ChatInteractionController = class {
17621
17977
  ImportSkippedRuleResponseParentKind,
17622
17978
  ImportSkippedRuleResponseReasonCode,
17623
17979
  ImportSkippedRuleResponseStatus,
17980
+ InboundRefusal,
17624
17981
  InboxesApi,
17625
17982
  IndexStatus,
17626
17983
  InquiriesApi,
@@ -17634,6 +17991,7 @@ var ChatInteractionController = class {
17634
17991
  McpServerState,
17635
17992
  McpServersApi,
17636
17993
  MemberFeature,
17994
+ MemberImportIssueCode,
17637
17995
  MemberImportMatchInfoMatchType,
17638
17996
  MemberImportPreviewRowAction,
17639
17997
  MemberRelationshipKind,
@@ -17682,6 +18040,7 @@ var ChatInteractionController = class {
17682
18040
  PhiPostureReasonCode,
17683
18041
  PhiPostureTransitionResponseTargetType,
17684
18042
  PhoneNumbersApi,
18043
+ PhoneRunRefusal,
17685
18044
  PilotRelationshipType,
17686
18045
  PilotStage,
17687
18046
  ProductType,
@@ -17742,6 +18101,7 @@ var ChatInteractionController = class {
17742
18101
  TTS_MODEL_DEEPGRAM_AURA_2,
17743
18102
  TTS_MODEL_XAI_V1,
17744
18103
  TTS_PREVIEW_PROVIDERS,
18104
+ TaskTransitionInitiator,
17745
18105
  TasksApi,
17746
18106
  TemplatesApi,
17747
18107
  TestChatRunLane,
@@ -17781,6 +18141,7 @@ var ChatInteractionController = class {
17781
18141
  bindCustomersMethods,
17782
18142
  bindDashboardsMethods,
17783
18143
  bindDataTypesMethods,
18144
+ bindDemosMethods,
17784
18145
  bindDevicesMethods,
17785
18146
  bindEventsMethods,
17786
18147
  bindExperimentsMethods,