@pitcher/js-api 1.22.0-beta.3 → 1.22.0-beta.4
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 +1 -1
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +1 -1
- package/js-api.umd.min.js.map +1 -1
- package/lib/sdk/api/modules/ui/types.ui.d.ts +3 -3
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ export declare const UI_MESSAGE_TYPES: {
|
|
|
39
39
|
readonly UI_SECTION_LIST_UPDATED: "ui_section_list_updated";
|
|
40
40
|
readonly UI_APP_SET_DATA: "ui_app_set_data";
|
|
41
41
|
readonly UI_APP_UPDATE_DATA: "ui_app_update_data";
|
|
42
|
-
readonly
|
|
42
|
+
readonly UI_PROMPT_PIA_RESPONSE_STREAMED: "ui_prompt_pia_response_streamed";
|
|
43
43
|
};
|
|
44
44
|
export declare const UI_NATIVE_MESSAGE_TYPES: readonly ["ui_app_set_data", "ui_app_update_data", "ui_canvas_updated"];
|
|
45
45
|
export type UiBroadcastRequest = Record<string, any>;
|
|
@@ -140,7 +140,7 @@ export type UiMessagePayloads = {
|
|
|
140
140
|
[UI_MESSAGE_TYPES.UI_APP_UPDATE_DATA]: UiAppUpdateDataPayload;
|
|
141
141
|
[UI_MESSAGE_TYPES.UI_CANVAS_UPDATED]: UiCanvasUpdatedPayload;
|
|
142
142
|
[UI_MESSAGE_TYPES.UI_SECTION_LIST_UPDATED]: UiSectionListUpdatedPayload;
|
|
143
|
-
[UI_MESSAGE_TYPES.
|
|
143
|
+
[UI_MESSAGE_TYPES.UI_PROMPT_PIA_RESPONSE_STREAMED]: UiPromptPiaResponseStreamedPayload;
|
|
144
144
|
};
|
|
145
145
|
export type UiMessageEnvelope<T extends (typeof UI_MESSAGE_TYPES)[keyof typeof UI_MESSAGE_TYPES] = (typeof UI_MESSAGE_TYPES)[keyof typeof UI_MESSAGE_TYPES]> = {
|
|
146
146
|
/** Message type */
|
|
@@ -198,7 +198,7 @@ export type UiSectionListUpdatedPayload = {
|
|
|
198
198
|
/** Canvas data */
|
|
199
199
|
canvas: CanvasRetrieve | null;
|
|
200
200
|
};
|
|
201
|
-
export type
|
|
201
|
+
export type UiPromptPiaResponseStreamedPayload = {
|
|
202
202
|
/** PIA response so far */
|
|
203
203
|
partial_response: string;
|
|
204
204
|
/** Current chunk of the response */
|