@pitcher/js-api 1.22.0-beta.3 → 1.22.0-beta.5

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/js-api.esm.js CHANGED
@@ -3307,7 +3307,7 @@ const UI_MESSAGE_TYPES = {
3307
3307
  UI_SECTION_LIST_UPDATED: "ui_section_list_updated",
3308
3308
  UI_APP_SET_DATA: "ui_app_set_data",
3309
3309
  UI_APP_UPDATE_DATA: "ui_app_update_data",
3310
- UI_PROMPT_RESPONSE_STREAMED: "ui_prompt_response_streamed"
3310
+ UI_PROMPT_PIA_RESPONSE_STREAMED: "ui_prompt_pia_response_streamed"
3311
3311
  };
3312
3312
  const UI_NATIVE_MESSAGE_TYPES = [
3313
3313
  UI_MESSAGE_TYPES.UI_APP_SET_DATA,
@@ -3465,6 +3465,17 @@ const postCallUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
3465
3465
  stopMeeting
3466
3466
  }, Symbol.toStringTag, { value: 'Module' }));
3467
3467
 
3468
+ async function promptPia(payload) {
3469
+ const pr = await usePostRobot();
3470
+ const r = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_PROMPT_PIA, payload);
3471
+ return r.data;
3472
+ }
3473
+
3474
+ const piaUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3475
+ __proto__: null,
3476
+ promptPia
3477
+ }, Symbol.toStringTag, { value: 'Module' }));
3478
+
3468
3479
  async function onNative(type, handler) {
3469
3480
  const messageListener = (event) => {
3470
3481
  if (event.data.type === type) {
@@ -3517,7 +3528,8 @@ const ui = {
3517
3528
  ...locationUi,
3518
3529
  ...appErrorsUi,
3519
3530
  ...canvasUi,
3520
- ...postCallUi
3531
+ ...postCallUi,
3532
+ ...piaUi
3521
3533
  };
3522
3534
 
3523
3535
  const ADMIN_MESSAGE = "ADMIN_MESSAGE";