@gravity-rail/sdk 0.40.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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/{chat-interaction-BB3ap8_u.d.ts → chat-interaction-DKt3ggnZ.d.cts} +1156 -51
  3. package/dist/{chat-interaction-Bj1pciwo.d.cts → chat-interaction-DMd-Wtcg.d.ts} +1156 -51
  4. package/dist/{chunk-ZTUOB4V2.js → chunk-G32MQGJD.js} +396 -48
  5. package/dist/chunk-G32MQGJD.js.map +1 -0
  6. package/dist/helpers.d.cts +4 -4
  7. package/dist/helpers.d.ts +4 -4
  8. package/dist/index.cjs +406 -35
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.cts +6 -6
  11. package/dist/index.d.ts +6 -6
  12. package/dist/index.js +36 -5
  13. package/dist/index.js.map +1 -1
  14. package/dist/internal.cjs +390 -42
  15. package/dist/internal.cjs.map +1 -1
  16. package/dist/internal.d.cts +7 -21
  17. package/dist/internal.d.ts +7 -21
  18. package/dist/internal.js +19 -8
  19. package/dist/internal.js.map +1 -1
  20. package/dist/{member-import-D8fZr2Pd.d.cts → member-import-D6KvS3Zg.d.cts} +1 -1
  21. package/dist/{member-import-YNk9MlEl.d.ts → member-import-mE0BhGIw.d.ts} +1 -1
  22. package/dist/{revision-state-CL11FA-T.d.cts → revision-state-BrRxp9qZ.d.ts} +30 -3
  23. package/dist/{revision-state-BaJTq3Or.d.ts → revision-state-Ci5a5NLH.d.cts} +30 -3
  24. package/dist/schemas.cjs +12 -3
  25. package/dist/schemas.cjs.map +1 -1
  26. package/dist/schemas.d.cts +10 -2
  27. package/dist/schemas.d.ts +10 -2
  28. package/dist/schemas.js +12 -3
  29. package/dist/schemas.js.map +1 -1
  30. package/dist/{tasks-ByJCQ5BI.d.cts → tasks-DAPby6cw.d.cts} +325 -2
  31. package/dist/{tasks-ByJCQ5BI.d.ts → tasks-DAPby6cw.d.ts} +325 -2
  32. package/package.json +1 -1
  33. package/dist/chunk-ZTUOB4V2.js.map +0 -1
@@ -130,11 +130,15 @@ function pageQuery(params) {
130
130
  return qs ? `?${qs}` : "";
131
131
  }
132
132
  var BundlesApi = class extends BaseApiClient {
133
- /** Official solution metadata, independent of the default workspace Library. */
134
- async getSolutionRelease(slug) {
135
- return this.fetch(`solutions/${encodeURIComponent(slug)}`);
133
+ /** Bundles shared with everyone. Needs no session. */
134
+ async listPublicBundles(params) {
135
+ return this.fetch(`bundles/public${pageQuery(params)}`);
136
136
  }
137
- /** Read an authorized Bundle by UUID, including official solutions hidden from discovery. */
137
+ /** The outline of one Bundle shared with everyone. Needs no session; 404 otherwise. */
138
+ async getPublicBundle(bundleUuid) {
139
+ return this.fetch(`bundles/${encodeURIComponent(bundleUuid)}/public`);
140
+ }
141
+ /** Read an authorized Bundle by UUID. */
138
142
  async getBundle(wid, bundleUuid) {
139
143
  return this.fetch(bundlesPath(wid, bundleUuid));
140
144
  }
@@ -170,6 +174,27 @@ var BundlesApi = class extends BaseApiClient {
170
174
  async listBundleWorkflowCandidates(wid) {
171
175
  return this.fetch(bundlesPath(wid, "workflow-candidates"));
172
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
+ }
173
198
  /** Create an empty Bundle owned by this workspace. */
174
199
  async createBundle(wid, data) {
175
200
  return this.fetch(bundlesPath(wid), {
@@ -219,9 +244,9 @@ var BundlesApi = class extends BaseApiClient {
219
244
  return this.fetch(bundlesPath(wid, bundleUuid, "grants"));
220
245
  }
221
246
  /**
222
- * Share throughout the publisher's organization with organization-admin authority.
223
- * Workspace-specific and global author grants are refused. Official public
224
- * solutions use the separate staff approval API.
247
+ * Share throughout the publisher's organization with organization-admin authority,
248
+ * or with everyone (`granteeType: "global"`) as a superuser. Workspace-specific
249
+ * grants are refused.
225
250
  */
226
251
  async grantBundle(wid, bundleUuid, data) {
227
252
  return this.fetch(bundlesPath(wid, bundleUuid, "grants"), {
@@ -237,6 +262,126 @@ var BundlesApi = class extends BaseApiClient {
237
262
  }
238
263
  };
239
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
+
240
385
  // src/api/installations.ts
241
386
  function installationsPath(wid, ...segments) {
242
387
  const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
@@ -1561,9 +1706,25 @@ var CallsApi = class extends BaseApiClient {
1561
1706
  `w/${wid}/calls${params.toString() ? `?${params.toString()}` : ""}`
1562
1707
  );
1563
1708
  }
1564
- /** Get message timing data for a chat recording. */
1565
- async getMessageTiming(wid, chatId) {
1566
- return this.fetch(`w/${wid}/recordings/chat/${chatId}/message-timing`);
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`);
1567
1728
  }
1568
1729
  /**
1569
1730
  * Get PHI-safe provenance metadata for the recording served by
@@ -1933,6 +2094,19 @@ var ChatsApi = class extends BaseApiClient {
1933
2094
  `w/${wid}/chats/${id}/messages${params.toString() ? `?${params.toString()}` : ""}`
1934
2095
  );
1935
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
+ }
1936
2110
  /** List the background-work thread hanging off a message.
1937
2111
  *
1938
2112
  * When a tool trajectory outgrows its turn it detaches and runs in the
@@ -5256,7 +5430,8 @@ var OrgApi = class extends BaseApiClient {
5256
5430
  return this.fetch(`o/${orgIdOrUuid}/bundles`);
5257
5431
  }
5258
5432
  /**
5259
- * Update the settings an org admin owns: name, slug and contact details.
5433
+ * Update the settings an org admin owns: name, slug, contact details and
5434
+ * the security contact.
5260
5435
  *
5261
5436
  * Deliberately NOT the admin organization update — `enforceCreditLimit`
5262
5437
  * is superuser-only and is not a field on this endpoint's request model
@@ -6757,6 +6932,18 @@ var QualificationsApi = class extends BaseApiClient {
6757
6932
  async getTestChatRun(wid, runId) {
6758
6933
  return this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}`);
6759
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
+ }
6760
6947
  async startTestChatRun(wid, workflowId, data = {}) {
6761
6948
  return this.fetch(
6762
6949
  `w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs`,
@@ -6766,6 +6953,50 @@ var QualificationsApi = class extends BaseApiClient {
6766
6953
  }
6767
6954
  );
6768
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
+ }
6769
7000
  async evaluateTestChatRun(wid, runId) {
6770
7001
  await this.fetch(`w/${wid}/qualifications/test-chat-runs/${runId}/evaluate`, {
6771
7002
  method: "POST"
@@ -8678,15 +8909,11 @@ var WorkflowsApi = class extends BaseApiClient {
8678
8909
  return this.fetch(`w/${wid}/workflows/${id}/diagram${query}`);
8679
8910
  }
8680
8911
  /**
8681
- * Get workflow thumbnail URL.
8682
- * For cross-domain setups, returns a same-origin proxy URL to ensure cookies are sent.
8683
- * For same-origin setups, returns the direct API URL.
8912
+ * The outline a Workflow's diagram is drawn from: its active Tasks, its
8913
+ * start Task, the moves between Tasks and its Ability types.
8684
8914
  */
8685
- getWorkflowThumbnailUrl(wid, id) {
8686
- if (this.isCrossDomain) {
8687
- return `/api/v2/w/${wid}/workflows/${id}/thumbnail`;
8688
- }
8689
- return `${this.baseUrl}/api/v2/w/${wid}/workflows/${id}/thumbnail`;
8915
+ async getWorkflowOutline(wid, id) {
8916
+ return this.fetch(`w/${wid}/workflows/${id}/outline`);
8690
8917
  }
8691
8918
  /** Create a new workflow in a workspace. */
8692
8919
  async createWorkflow(wid, workflow) {
@@ -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
 
@@ -11424,25 +11725,6 @@ var TrackedLinksApi = class extends BaseApiClient {
11424
11725
  }
11425
11726
  };
11426
11727
 
11427
- // src/types/generated/bundle_contract.ts
11428
- var BundleGrantRequestGranteeType = {
11429
- organization: "organization",
11430
- global: "global"
11431
- };
11432
- var FormBundleItemRecordScope = {
11433
- member: "member",
11434
- workspace: "workspace",
11435
- anonymous: "anonymous"
11436
- };
11437
- var SolutionReleaseResponseSlug = {
11438
- "member-enrollment": "member-enrollment",
11439
- "member-reengagement": "member-reengagement",
11440
- "treatment-adherence": "treatment-adherence",
11441
- "heart-health": "heart-health",
11442
- "recovery-checkins": "recovery-checkins",
11443
- "care-coordination": "care-coordination"
11444
- };
11445
-
11446
11728
  // src/app-context.ts
11447
11729
  function formatAppContextAsMarkdown(context) {
11448
11730
  if (!context) {
@@ -11520,6 +11802,7 @@ function createApiModules(apiKey, baseUrl, customFetch) {
11520
11802
  auth: new AuthApi(apiKey, baseUrl, customFetch),
11521
11803
  builders: new BuildersApi(apiKey, baseUrl, customFetch),
11522
11804
  bundles: new BundlesApi(apiKey, baseUrl, customFetch),
11805
+ demos: new DemosApi(apiKey, baseUrl, customFetch),
11523
11806
  installations: new InstallationsApi(apiKey, baseUrl, customFetch),
11524
11807
  calendars: new CalendarsApi(apiKey, baseUrl, customFetch),
11525
11808
  calls: new CallsApi(apiKey, baseUrl, customFetch),
@@ -11883,6 +12166,7 @@ var WORKSPACE_METHOD_NAMES = [
11883
12166
  "getInstallationReadiness",
11884
12167
  "getThemeSettingsSchema",
11885
12168
  "getBundleDraft",
12169
+ "getBundleJourneyCandidate",
11886
12170
  "getBundle",
11887
12171
  "getBundleVersion",
11888
12172
  "getBusinessHoursStatus",
@@ -11914,6 +12198,7 @@ var WORKSPACE_METHOD_NAMES = [
11914
12198
  "getChatLabels",
11915
12199
  "getChatMachineResources",
11916
12200
  "getChatMessages",
12201
+ "getChatTaskTransitions",
11917
12202
  "getChatModelOverride",
11918
12203
  "getChatPhoneCalls",
11919
12204
  "getChatSkills",
@@ -11971,6 +12256,7 @@ var WORKSPACE_METHOD_NAMES = [
11971
12256
  "getDocumoFaxSetup",
11972
12257
  "listDocumoFaxes",
11973
12258
  "getDocumoFaxStatus",
12259
+ "getEdgeCaptureInfo",
11974
12260
  "getEnrollmentStatusLog",
11975
12261
  "getEventRule",
11976
12262
  "getEventRules",
@@ -12197,11 +12483,11 @@ var WORKSPACE_METHOD_NAMES = [
12197
12483
  "getWorkflowDeletionPreview",
12198
12484
  "getWorkflowDiagram",
12199
12485
  "getWorkflowNotes",
12486
+ "getWorkflowOutline",
12200
12487
  "getWorkflowRevision",
12201
12488
  "getWorkflowRevisions",
12202
12489
  "getWorkflowTaskAssignmentStats",
12203
12490
  "getWorkflowTemplates",
12204
- "getWorkflowThumbnailUrl",
12205
12491
  "getWorkflows",
12206
12492
  "getWorkflowsActivityBatch",
12207
12493
  "getWorkspace",
@@ -12251,6 +12537,7 @@ var WORKSPACE_METHOD_NAMES = [
12251
12537
  "listAvailableAppConnections",
12252
12538
  "listInstallations",
12253
12539
  "listBundleGrants",
12540
+ "listBundleJourneyCandidates",
12254
12541
  "listBundleVersions",
12255
12542
  "listBundles",
12256
12543
  "listBundleWorkflowCandidates",
@@ -12287,6 +12574,10 @@ var WORKSPACE_METHOD_NAMES = [
12287
12574
  "listSalesforceObjects",
12288
12575
  "listScenarioHealthSummaries",
12289
12576
  "listScenarios",
12577
+ "listTestChatRunCapturedEffects",
12578
+ "deliverTestChatRunSms",
12579
+ "deliverTestChatRunEmail",
12580
+ "placeTestChatRunCall",
12290
12581
  "listTestChatRuns",
12291
12582
  "listWidgetDomains",
12292
12583
  "listWorkspaceInvitationsAdmin",
@@ -12596,6 +12887,7 @@ function bindChatsMethods(target, chats) {
12596
12887
  target.updateChatMute = chats.updateChatMute.bind(chats);
12597
12888
  target.summarizeChat = chats.summarizeChat.bind(chats);
12598
12889
  target.getChatMessages = chats.getChatMessages.bind(chats);
12890
+ target.getChatTaskTransitions = chats.getChatTaskTransitions.bind(chats);
12599
12891
  target.getChildThreadMessages = chats.getChildThreadMessages.bind(chats);
12600
12892
  target.getChatToolCallMessages = chats.getChatToolCallMessages.bind(chats);
12601
12893
  target.getChatTools = chats.getChatTools.bind(chats);
@@ -12630,6 +12922,7 @@ function bindCallsMethods(target, calls, cel) {
12630
12922
  target.getPhoneCalls = calls.getPhoneCalls.bind(calls);
12631
12923
  target.getMessageTiming = calls.getMessageTiming.bind(calls);
12632
12924
  target.getRecordingInfo = calls.getRecordingInfo.bind(calls);
12925
+ target.getEdgeCaptureInfo = calls.getEdgeCaptureInfo.bind(calls);
12633
12926
  target.listChatRecordings = calls.listChatRecordings.bind(calls);
12634
12927
  target.getCallRecordingDownloadUrl = calls.getCallRecordingDownloadUrl.bind(calls);
12635
12928
  target.getCelContext = cel.getCelContext.bind(cel);
@@ -13103,7 +13396,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
13103
13396
  target.getWorkflowActivity = workflows.getWorkflowActivity.bind(workflows);
13104
13397
  target.getWorkflowsActivityBatch = workflows.getWorkflowsActivityBatch.bind(workflows);
13105
13398
  target.getWorkflowDiagram = workflows.getWorkflowDiagram.bind(workflows);
13106
- target.getWorkflowThumbnailUrl = workflows.getWorkflowThumbnailUrl.bind(workflows);
13399
+ target.getWorkflowOutline = workflows.getWorkflowOutline.bind(workflows);
13107
13400
  target.createWorkflow = workflows.createWorkflow.bind(workflows);
13108
13401
  target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
13109
13402
  target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
@@ -13596,11 +13889,14 @@ function bindResourceWorkflowsMethods(target, resourceWorkflows) {
13596
13889
  // src/client/bindings/bundles.ts
13597
13890
  function bindBundlesMethods(target, bundles, resourceWorkflows) {
13598
13891
  bindResourceWorkflowsMethods(target, resourceWorkflows);
13599
- target.getSolutionRelease = bundles.getSolutionRelease.bind(bundles);
13892
+ target.listPublicBundles = bundles.listPublicBundles.bind(bundles);
13893
+ target.getPublicBundle = bundles.getPublicBundle.bind(bundles);
13600
13894
  target.updateBundle = bundles.updateBundle.bind(bundles);
13601
13895
  target.listBundleInstallations = bundles.listBundleInstallations.bind(bundles);
13602
13896
  target.listBundles = bundles.listBundles.bind(bundles);
13603
13897
  target.listBundleWorkflowCandidates = bundles.listBundleWorkflowCandidates.bind(bundles);
13898
+ target.listBundleJourneyCandidates = bundles.listBundleJourneyCandidates.bind(bundles);
13899
+ target.getBundleJourneyCandidate = bundles.getBundleJourneyCandidate.bind(bundles);
13604
13900
  target.createBundle = bundles.createBundle.bind(bundles);
13605
13901
  target.getBundleDraft = bundles.getBundleDraft.bind(bundles);
13606
13902
  target.replaceBundleDraft = bundles.replaceBundleDraft.bind(bundles);
@@ -13614,6 +13910,17 @@ function bindBundlesMethods(target, bundles, resourceWorkflows) {
13614
13910
  target.listResourceWorkflows = resourceWorkflows.listResourceWorkflows.bind(resourceWorkflows);
13615
13911
  }
13616
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
+
13617
13924
  // src/client/bindings/installations.ts
13618
13925
  function bindInstallationsMethods(target, installations) {
13619
13926
  target.preflightBundleInstallation = installations.preflightBundleInstallation.bind(installations);
@@ -13688,6 +13995,10 @@ function bindQualificationsMethods(target, qualifications) {
13688
13995
  target.listTestChatRuns = qualifications.listTestChatRuns.bind(qualifications);
13689
13996
  target.listScenarioHealthSummaries = qualifications.listScenarioHealthSummaries.bind(qualifications);
13690
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);
13691
14002
  target.startTestChatRun = qualifications.startTestChatRun.bind(qualifications);
13692
14003
  target.evaluateTestChatRun = qualifications.evaluateTestChatRun.bind(qualifications);
13693
14004
  target.endTestChatRun = qualifications.endTestChatRun.bind(qualifications);
@@ -13840,6 +14151,7 @@ var GravityRailClient = class {
13840
14151
  updateChatMute;
13841
14152
  summarizeChat;
13842
14153
  getChatMessages;
14154
+ getChatTaskTransitions;
13843
14155
  getChildThreadMessages;
13844
14156
  getChatToolCallMessages;
13845
14157
  getChatTools;
@@ -13871,6 +14183,7 @@ var GravityRailClient = class {
13871
14183
  getPhoneCalls;
13872
14184
  getMessageTiming;
13873
14185
  getRecordingInfo;
14186
+ getEdgeCaptureInfo;
13874
14187
  listChatRecordings;
13875
14188
  getCallRecordingDownloadUrl;
13876
14189
  getCelContext;
@@ -14014,6 +14327,10 @@ var GravityRailClient = class {
14014
14327
  listTestChatRuns;
14015
14328
  listScenarioHealthSummaries;
14016
14329
  getTestChatRun;
14330
+ listTestChatRunCapturedEffects;
14331
+ deliverTestChatRunSms;
14332
+ deliverTestChatRunEmail;
14333
+ placeTestChatRunCall;
14017
14334
  startTestChatRun;
14018
14335
  evaluateTestChatRun;
14019
14336
  endTestChatRun;
@@ -14125,12 +14442,23 @@ var GravityRailClient = class {
14125
14442
  createJourneyNote;
14126
14443
  updateJourneyNote;
14127
14444
  deleteJourneyNote;
14445
+ // Demos API
14446
+ getDemo;
14447
+ startDemoSession;
14448
+ sendDemoSessionSms;
14449
+ sendDemoSessionEmail;
14450
+ placeDemoSessionCall;
14451
+ getDemoSessionTimeline;
14452
+ endDemoSession;
14128
14453
  updateBundle;
14129
14454
  listBundleInstallations;
14130
14455
  // Bundles API
14131
- getSolutionRelease;
14456
+ listPublicBundles;
14457
+ getPublicBundle;
14132
14458
  listBundles;
14133
14459
  listBundleWorkflowCandidates;
14460
+ listBundleJourneyCandidates;
14461
+ getBundleJourneyCandidate;
14134
14462
  createBundle;
14135
14463
  getBundleDraft;
14136
14464
  replaceBundleDraft;
@@ -14494,7 +14822,7 @@ var GravityRailClient = class {
14494
14822
  getWorkflowActivity;
14495
14823
  getWorkflowsActivityBatch;
14496
14824
  getWorkflowDiagram;
14497
- getWorkflowThumbnailUrl;
14825
+ getWorkflowOutline;
14498
14826
  createWorkflow;
14499
14827
  updateWorkflow;
14500
14828
  getWorkflowDeletionPreview;
@@ -14984,6 +15312,7 @@ var GravityRailClient = class {
14984
15312
  bindTrackedLinksMethods(this, apis.trackedLinks);
14985
15313
  bindJourneysMethods(this, apis.journeys);
14986
15314
  bindBundlesMethods(this, apis.bundles, apis.resourceWorkflows);
15315
+ bindDemosMethods(this, apis.demos);
14987
15316
  bindInstallationsMethods(this, apis.installations);
14988
15317
  bindExperimentsMethods(this, apis.experiments);
14989
15318
  bindOperatorMethods(this, apis.operatorGroups);
@@ -15216,6 +15545,15 @@ var ChatMuteReason = {
15216
15545
  not_mine: "not_mine"
15217
15546
  };
15218
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
+
15219
15557
  // src/types/generated/ehr_writeback.ts
15220
15558
  var EhrWritebackOutcomeResponseStatus = {
15221
15559
  accepted: "accepted",
@@ -16411,6 +16749,11 @@ export {
16411
16749
  AbilitiesApi,
16412
16750
  ResourceWorkflowsApi,
16413
16751
  BundlesApi,
16752
+ DemoCallOutcome,
16753
+ DemoRefusalCode,
16754
+ DemoSessionState,
16755
+ DemoRequestError,
16756
+ DemosApi,
16414
16757
  InstallationsApi,
16415
16758
  AccessGrantsApi,
16416
16759
  AgentTasksApi,
@@ -16491,6 +16834,7 @@ export {
16491
16834
  encodePermissions,
16492
16835
  Scope,
16493
16836
  BulkMemberResultStatus,
16837
+ MemberImportIssueCode,
16494
16838
  MemberImportMatchInfoMatchType,
16495
16839
  MemberImportPreviewRowAction,
16496
16840
  MergeMemberRolesRequestAccessStrategy,
@@ -16550,6 +16894,11 @@ export {
16550
16894
  RunHealthCategory,
16551
16895
  TestChatRunLane,
16552
16896
  TestChatRunOutcome,
16897
+ CapturedEffectDirection,
16898
+ CapturedEffectKind,
16899
+ CallNotAnsweredBranch,
16900
+ InboundRefusal,
16901
+ PhoneRunRefusal,
16553
16902
  ScenarioHealthCaption,
16554
16903
  ScenarioHealthHeadline,
16555
16904
  ScenarioHealthSampleNote,
@@ -16576,9 +16925,6 @@ export {
16576
16925
  TERMINAL_TASK_STATES,
16577
16926
  WorkspaceInvitationsApi,
16578
16927
  WorkspacesApi,
16579
- BundleGrantRequestGranteeType,
16580
- FormBundleItemRecordScope,
16581
- SolutionReleaseResponseSlug,
16582
16928
  formatAppContextAsMarkdown,
16583
16929
  createApiModules,
16584
16930
  createWorkspaceClient,
@@ -16614,6 +16960,7 @@ export {
16614
16960
  bindOrgMethods,
16615
16961
  bindPronunciationsMethods,
16616
16962
  bindBundlesMethods,
16963
+ bindDemosMethods,
16617
16964
  bindInstallationsMethods,
16618
16965
  bindJourneysMethods,
16619
16966
  bindQualificationsMethods,
@@ -16637,6 +16984,7 @@ export {
16637
16984
  ChannelMessageSource,
16638
16985
  ChannelMessagesUnavailableReason,
16639
16986
  ChatMuteReason,
16987
+ TaskTransitionInitiator,
16640
16988
  EhrWritebackOutcomeResponseStatus,
16641
16989
  SMS_DELIVERY_FAILURE_STATUSES,
16642
16990
  isSMSDeliveryFailureStatus,
@@ -16709,4 +17057,4 @@ export {
16709
17057
  SCOPE_PRESETS,
16710
17058
  getRevisionState
16711
17059
  };
16712
- //# sourceMappingURL=chunk-ZTUOB4V2.js.map
17060
+ //# sourceMappingURL=chunk-G32MQGJD.js.map