iframe-pubsub 1.0.17 → 1.0.18
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/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +9 -0
- package/dist/index.mjs +9 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -89,6 +89,7 @@ declare enum AIChatNameEnum {
|
|
89
89
|
SET_CUSTOM_HEADERS = "setCustomHeaders",
|
90
90
|
SET_CUSTOM_PAYLOAD = "setCustomPayload",
|
91
91
|
SET_METADATA = "setMetadata",
|
92
|
+
ADD_SYSTEM_MESSAGE = "addSystemMessage",
|
92
93
|
SET_SUGGESTIONS = "setSuggestions",
|
93
94
|
SHOW_SUGGESTIONS = "showSuggestions",
|
94
95
|
SHOW_CHAT_MESSAGE = "showChatMessage",
|
@@ -143,6 +144,12 @@ declare class AIChatClient extends Client {
|
|
143
144
|
* @param metadata JSON object containing metadata for the AI Chat component.
|
144
145
|
*/
|
145
146
|
setMetadata(metadata: any): void;
|
147
|
+
/**
|
148
|
+
* Add a system message to the AI Chat component.
|
149
|
+
*
|
150
|
+
* @param systemMessage The system message to add.
|
151
|
+
*/
|
152
|
+
addSystemMessage(systemMessage: string): void;
|
146
153
|
/**
|
147
154
|
* Show suggestions in the AI Chat component.
|
148
155
|
*
|
package/dist/index.d.ts
CHANGED
@@ -89,6 +89,7 @@ declare enum AIChatNameEnum {
|
|
89
89
|
SET_CUSTOM_HEADERS = "setCustomHeaders",
|
90
90
|
SET_CUSTOM_PAYLOAD = "setCustomPayload",
|
91
91
|
SET_METADATA = "setMetadata",
|
92
|
+
ADD_SYSTEM_MESSAGE = "addSystemMessage",
|
92
93
|
SET_SUGGESTIONS = "setSuggestions",
|
93
94
|
SHOW_SUGGESTIONS = "showSuggestions",
|
94
95
|
SHOW_CHAT_MESSAGE = "showChatMessage",
|
@@ -143,6 +144,12 @@ declare class AIChatClient extends Client {
|
|
143
144
|
* @param metadata JSON object containing metadata for the AI Chat component.
|
144
145
|
*/
|
145
146
|
setMetadata(metadata: any): void;
|
147
|
+
/**
|
148
|
+
* Add a system message to the AI Chat component.
|
149
|
+
*
|
150
|
+
* @param systemMessage The system message to add.
|
151
|
+
*/
|
152
|
+
addSystemMessage(systemMessage: string): void;
|
146
153
|
/**
|
147
154
|
* Show suggestions in the AI Chat component.
|
148
155
|
*
|
package/dist/index.js
CHANGED
@@ -323,6 +323,7 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
|
|
323
323
|
AIChatNameEnum2["SET_CUSTOM_HEADERS"] = "setCustomHeaders";
|
324
324
|
AIChatNameEnum2["SET_CUSTOM_PAYLOAD"] = "setCustomPayload";
|
325
325
|
AIChatNameEnum2["SET_METADATA"] = "setMetadata";
|
326
|
+
AIChatNameEnum2["ADD_SYSTEM_MESSAGE"] = "addSystemMessage";
|
326
327
|
AIChatNameEnum2["SET_SUGGESTIONS"] = "setSuggestions";
|
327
328
|
AIChatNameEnum2["SHOW_SUGGESTIONS"] = "showSuggestions";
|
328
329
|
AIChatNameEnum2["SHOW_CHAT_MESSAGE"] = "showChatMessage";
|
@@ -401,6 +402,14 @@ var AIChatClient = class extends Client {
|
|
401
402
|
setMetadata(metadata) {
|
402
403
|
this.sendAIChatPubsubMethod("setMetadata" /* SET_METADATA */, metadata);
|
403
404
|
}
|
405
|
+
/**
|
406
|
+
* Add a system message to the AI Chat component.
|
407
|
+
*
|
408
|
+
* @param systemMessage The system message to add.
|
409
|
+
*/
|
410
|
+
addSystemMessage(systemMessage) {
|
411
|
+
this.sendAIChatPubsubMethod("addSystemMessage" /* ADD_SYSTEM_MESSAGE */, systemMessage);
|
412
|
+
}
|
404
413
|
/**
|
405
414
|
* Show suggestions in the AI Chat component.
|
406
415
|
*
|
package/dist/index.mjs
CHANGED
@@ -296,6 +296,7 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
|
|
296
296
|
AIChatNameEnum2["SET_CUSTOM_HEADERS"] = "setCustomHeaders";
|
297
297
|
AIChatNameEnum2["SET_CUSTOM_PAYLOAD"] = "setCustomPayload";
|
298
298
|
AIChatNameEnum2["SET_METADATA"] = "setMetadata";
|
299
|
+
AIChatNameEnum2["ADD_SYSTEM_MESSAGE"] = "addSystemMessage";
|
299
300
|
AIChatNameEnum2["SET_SUGGESTIONS"] = "setSuggestions";
|
300
301
|
AIChatNameEnum2["SHOW_SUGGESTIONS"] = "showSuggestions";
|
301
302
|
AIChatNameEnum2["SHOW_CHAT_MESSAGE"] = "showChatMessage";
|
@@ -374,6 +375,14 @@ var AIChatClient = class extends Client {
|
|
374
375
|
setMetadata(metadata) {
|
375
376
|
this.sendAIChatPubsubMethod("setMetadata" /* SET_METADATA */, metadata);
|
376
377
|
}
|
378
|
+
/**
|
379
|
+
* Add a system message to the AI Chat component.
|
380
|
+
*
|
381
|
+
* @param systemMessage The system message to add.
|
382
|
+
*/
|
383
|
+
addSystemMessage(systemMessage) {
|
384
|
+
this.sendAIChatPubsubMethod("addSystemMessage" /* ADD_SYSTEM_MESSAGE */, systemMessage);
|
385
|
+
}
|
377
386
|
/**
|
378
387
|
* Show suggestions in the AI Chat component.
|
379
388
|
*
|