cheshirecat-typescript-client 1.3.3 → 1.3.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.
@@ -3,7 +3,7 @@ export declare class MessageOutput extends MessageBase {
3
3
  text: string;
4
4
  image: string | null;
5
5
  type?: string | null;
6
- why: Why;
6
+ why?: Why | null;
7
7
  error?: boolean;
8
8
  readonly content: string;
9
9
  constructor(text?: string, image?: string | null);
@@ -6,7 +6,7 @@ class MessageOutput extends dtos_1.MessageBase {
6
6
  text;
7
7
  image;
8
8
  type = "chat";
9
- why;
9
+ why = null;
10
10
  error = false;
11
11
  content; // deprecated
12
12
  constructor(text = "", image = null) {
@@ -19,7 +19,7 @@ class MessageOutput extends dtos_1.MessageBase {
19
19
  return {
20
20
  ...super.toArray(),
21
21
  type: this.type,
22
- why: this.why.toArray(),
22
+ why: this.why?.toArray(),
23
23
  content: this.text,
24
24
  error: this.error,
25
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/models/api/messages.ts"],"names":[],"mappings":";;;AAAA,kCAAyC;AAEzC,MAAa,aAAc,SAAQ,kBAAW;IAMvB;IAA0B;IAL7C,IAAI,GAAmB,MAAM,CAAC;IAC9B,GAAG,CAAM;IACT,KAAK,GAAa,KAAK,CAAC;IACf,OAAO,CAAS,CAAC,aAAa;IAEvC,YAAmB,OAAe,EAAE,EAAS,QAAuB,IAAI;QACpE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QADJ,SAAI,GAAJ,IAAI,CAAa;QAAS,UAAK,GAAL,KAAK,CAAsB;QAEpE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACxB,CAAC;IAED,OAAO;QACH,OAAO;YACH,GAAG,KAAK,CAAC,OAAO,EAAE;YAClB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;YACvB,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC;IACN,CAAC;CACJ;AApBD,sCAoBC"}
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/models/api/messages.ts"],"names":[],"mappings":";;;AAAA,kCAAyC;AAEzC,MAAa,aAAc,SAAQ,kBAAW;IAMvB;IAA0B;IAL7C,IAAI,GAAmB,MAAM,CAAC;IAC9B,GAAG,GAAgB,IAAI,CAAC;IACxB,KAAK,GAAa,KAAK,CAAC;IACf,OAAO,CAAS,CAAC,aAAa;IAEvC,YAAmB,OAAe,EAAE,EAAS,QAAuB,IAAI;QACpE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QADJ,SAAI,GAAJ,IAAI,CAAa;QAAS,UAAK,GAAL,KAAK,CAAsB;QAEpE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACxB,CAAC;IAED,OAAO;QACH,OAAO;YACH,GAAG,KAAK,CAAC,OAAO,EAAE;YAClB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE;YACxB,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC;IACN,CAAC;CACJ;AApBD,sCAoBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cheshirecat-typescript-client",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "engines": {
5
5
  "node": "22.x"
6
6
  },