@wippy-fe/types-global-proxy 0.0.57 → 0.0.59
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/index.d.ts +48 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -347,6 +347,17 @@ var chat = {
|
|
|
347
347
|
startChatError: "Failed to start chat",
|
|
348
348
|
noAgents: "No agents available. Please contact your administrator.",
|
|
349
349
|
dropFiles: "Drop files here to upload"
|
|
350
|
+
},
|
|
351
|
+
contextMenu: {
|
|
352
|
+
copyConversation: "Copy conversation",
|
|
353
|
+
copySelection: "Copy selection",
|
|
354
|
+
copySessionLink: "Copy session link",
|
|
355
|
+
copySessionJson: "Copy session JSON (debug)",
|
|
356
|
+
copied: "Copied",
|
|
357
|
+
copiedDetail: "Copied to clipboard",
|
|
358
|
+
copyFailed: "Copy failed",
|
|
359
|
+
copyFailedDetail: "Could not copy to clipboard",
|
|
360
|
+
nothingToCopy: "Nothing to copy yet"
|
|
350
361
|
}
|
|
351
362
|
};
|
|
352
363
|
var customPage = {
|
|
@@ -528,6 +539,17 @@ interface HostConfig {
|
|
|
528
539
|
minFileSize: number;
|
|
529
540
|
allowHtml: boolean;
|
|
530
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* URL template for the chat context menu's "Copy session link" item.
|
|
544
|
+
* `{sessionId}` is substituted (URL-encoded); relative values resolve
|
|
545
|
+
* against the page base URL.
|
|
546
|
+
*
|
|
547
|
+
* Only needed when this host is embedded by a parent that does NOT
|
|
548
|
+
* mirror the host's own `/chat/:id` path — the host cannot read the
|
|
549
|
+
* parent's address bar, so without a template it would offer its own
|
|
550
|
+
* iframe URL. Unset means "derive from the router".
|
|
551
|
+
*/
|
|
552
|
+
sessionLinkTemplate?: string;
|
|
531
553
|
};
|
|
532
554
|
stateCache?: {
|
|
533
555
|
maxPages?: number;
|
|
@@ -823,6 +845,15 @@ interface Artifact {
|
|
|
823
845
|
status: ArtifactStatus;
|
|
824
846
|
}
|
|
825
847
|
|
|
848
|
+
interface SessionInteraction {
|
|
849
|
+
can_send: boolean;
|
|
850
|
+
revision: number;
|
|
851
|
+
}
|
|
852
|
+
interface SessionInput {
|
|
853
|
+
state: 'pending' | 'applied';
|
|
854
|
+
after_message_id?: string;
|
|
855
|
+
}
|
|
856
|
+
|
|
826
857
|
type ArtifactUUID = string;
|
|
827
858
|
type PageUUID = string;
|
|
828
859
|
type SessionUUID = string;
|
|
@@ -900,6 +931,8 @@ interface WsTopicTypes {
|
|
|
900
931
|
}
|
|
901
932
|
type WsTopic = WsTopicTypes[keyof WsTopicTypes];
|
|
902
933
|
declare enum WsMessageType {
|
|
934
|
+
/** Patch an existing message or session. */
|
|
935
|
+
UPDATE = "update",
|
|
903
936
|
/** Contains the actual content of the message */
|
|
904
937
|
CONTENT = "content",
|
|
905
938
|
/** Contains content of the message to append to current one */
|
|
@@ -1016,6 +1049,12 @@ interface WsMessageDataUser extends WsMessageDataBase {
|
|
|
1016
1049
|
text: string;
|
|
1017
1050
|
message_id: MessageUUID;
|
|
1018
1051
|
file_uuids?: string[];
|
|
1052
|
+
input?: SessionInput;
|
|
1053
|
+
}
|
|
1054
|
+
interface WsMessageDataUpdate extends WsMessageDataBase {
|
|
1055
|
+
type: WsMessageType.UPDATE;
|
|
1056
|
+
message_id: MessageUUID;
|
|
1057
|
+
input: SessionInput;
|
|
1019
1058
|
}
|
|
1020
1059
|
interface WsMessageDataDelegation extends WsMessageDataBase {
|
|
1021
1060
|
type: WsMessageType.DELEGATION;
|
|
@@ -1055,7 +1094,7 @@ interface WsMessageDataError extends WsMessageDataBase {
|
|
|
1055
1094
|
}
|
|
1056
1095
|
interface WsMessage_SessionMessage extends WsMessageBase {
|
|
1057
1096
|
topic: WsTopicTypes['SessionMessage'];
|
|
1058
|
-
data: (WsMessageDataUser | WsMessageDataContent | WsMessageDataChunk | WsMessageDataDelegation | WsMessageDataToolCall | WsMessageDataError | WsMessageDataInvalidate | WsMessageDataStarted | WsMessageDataToolSuccess | WsMessageDataArtifact | WsMessageDataToolError) & {
|
|
1097
|
+
data: (WsMessageDataUser | WsMessageDataContent | WsMessageDataChunk | WsMessageDataDelegation | WsMessageDataToolCall | WsMessageDataError | WsMessageDataInvalidate | WsMessageDataStarted | WsMessageDataToolSuccess | WsMessageDataArtifact | WsMessageDataToolError | WsMessageDataUpdate) & {
|
|
1059
1098
|
request_id?: string;
|
|
1060
1099
|
};
|
|
1061
1100
|
}
|
|
@@ -1063,19 +1102,24 @@ interface WsMessage_Session extends WsMessageBase {
|
|
|
1063
1102
|
topic: WsTopicTypes['Session'];
|
|
1064
1103
|
data: {
|
|
1065
1104
|
request_id?: string;
|
|
1105
|
+
session_id?: SessionUUID;
|
|
1066
1106
|
agent?: string;
|
|
1067
1107
|
last_message_date?: number;
|
|
1068
1108
|
model?: string;
|
|
1069
1109
|
status?: string;
|
|
1070
1110
|
title?: string;
|
|
1071
1111
|
type: 'update';
|
|
1112
|
+
interaction?: SessionInteraction;
|
|
1072
1113
|
public_meta?: Array<{
|
|
1073
1114
|
icon?: string;
|
|
1074
1115
|
id: string;
|
|
1075
1116
|
title: string;
|
|
1076
1117
|
url?: string;
|
|
1077
1118
|
}>;
|
|
1078
|
-
}
|
|
1119
|
+
} | (WsMessageDataError & {
|
|
1120
|
+
request_id?: string;
|
|
1121
|
+
session_id?: SessionUUID;
|
|
1122
|
+
});
|
|
1079
1123
|
}
|
|
1080
1124
|
interface WsMessage_Artifact extends WsMessageBase {
|
|
1081
1125
|
topic: WsTopicTypes['Artifact'];
|
|
@@ -1110,7 +1154,8 @@ interface SessionCloseCommand extends BaseWsCommand {
|
|
|
1110
1154
|
interface SessionMessageCommand extends BaseWsCommand {
|
|
1111
1155
|
type: 'session_message';
|
|
1112
1156
|
session_id: string;
|
|
1113
|
-
|
|
1157
|
+
/** Legacy fire-and-forget servers require this client-generated ID. */
|
|
1158
|
+
message_id?: string;
|
|
1114
1159
|
data: {
|
|
1115
1160
|
text: string;
|
|
1116
1161
|
file_uuids?: string[];
|
package/package.json
CHANGED