scout-types 1.0.12 → 1.0.13

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.
@@ -11,8 +11,8 @@ export declare class Message {
11
11
  readonly scout_id: string;
12
12
  readonly conversation_id: string;
13
13
  readonly time: string;
14
- readonly mode: "chat" | "write";
15
- readonly role: "user" | "scout";
14
+ readonly mode: "CHAT" | "WRITE";
15
+ readonly role: "USER" | "SCOUT";
16
16
  readonly system_prompt?: string;
17
17
  readonly grok_text?: string;
18
18
  readonly fragments?: Fragment[];
@@ -52,8 +52,8 @@ export class Message {
52
52
  typeof message.scout_id === "string" &&
53
53
  typeof message.conversation_id === "string" &&
54
54
  typeof message.time === "string" &&
55
- ["chat", "write"].includes(message.mode) &&
56
- ["user", "scout"].includes(message.role) &&
55
+ ["CHAT", "WRITE"].includes(message.mode) &&
56
+ ["USER", "SCOUT"].includes(message.role) &&
57
57
  (message.system_prompt === undefined || typeof message.system_prompt === "string") &&
58
58
  (message.grok_text === undefined || typeof message.grok_text === "string") &&
59
59
  (message.fragments === undefined || Array.isArray(message.fragments) && message.fragments.every(Fragment.is)) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scout-types",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -27,8 +27,8 @@ export class Message {
27
27
  readonly scout_id : string
28
28
  readonly conversation_id : string
29
29
  readonly time : string
30
- readonly mode : "chat" | "write"
31
- readonly role : "user" | "scout"
30
+ readonly mode : "CHAT" | "WRITE"
31
+ readonly role : "USER" | "SCOUT"
32
32
  readonly system_prompt? : string
33
33
  readonly grok_text? : string
34
34
  readonly fragments? : Fragment[]
@@ -61,8 +61,8 @@ export class Message {
61
61
  typeof message.scout_id === "string" &&
62
62
  typeof message.conversation_id === "string" &&
63
63
  typeof message.time === "string" &&
64
- ["chat", "write"].includes(message.mode) &&
65
- ["user", "scout"].includes(message.role) &&
64
+ ["CHAT", "WRITE"].includes(message.mode) &&
65
+ ["USER", "SCOUT"].includes(message.role) &&
66
66
  (message.system_prompt === undefined || typeof message.system_prompt === "string") &&
67
67
  (message.grok_text === undefined || typeof message.grok_text === "string") &&
68
68
  (message.fragments === undefined || Array.isArray(message.fragments) && message.fragments.every(Fragment.is)) &&