cheshirecat-typescript-client 1.7.8 → 1.7.10
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/models/api/messages.d.ts +0 -4
- package/dist/models/api/messages.js +0 -10
- package/dist/models/api/messages.js.map +1 -1
- package/dist/models/api/tokens.d.ts +2 -1
- package/dist/models/api/tokens.js +2 -5
- package/dist/models/api/tokens.js.map +1 -1
- package/dist/models/api/users.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { MessageBase, Why } from "../dtos";
|
|
2
2
|
export declare class MessageOutput extends MessageBase {
|
|
3
|
-
text: string;
|
|
4
|
-
image: string | null;
|
|
5
3
|
type?: string | null;
|
|
6
4
|
why?: Why | null;
|
|
7
5
|
error?: boolean;
|
|
8
|
-
readonly content: string;
|
|
9
|
-
constructor(text?: string, image?: string | null);
|
|
10
6
|
toArray(): Record<string, any>;
|
|
11
7
|
}
|
|
12
8
|
export interface ChatOutput {
|
|
@@ -3,24 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MessageOutput = void 0;
|
|
4
4
|
const dtos_1 = require("../dtos");
|
|
5
5
|
class MessageOutput extends dtos_1.MessageBase {
|
|
6
|
-
text;
|
|
7
|
-
image;
|
|
8
6
|
type = "chat";
|
|
9
7
|
why = null;
|
|
10
8
|
error = false;
|
|
11
|
-
content; // deprecated
|
|
12
|
-
constructor(text = "", image = null) {
|
|
13
|
-
super(text, image);
|
|
14
|
-
this.text = text;
|
|
15
|
-
this.image = image;
|
|
16
|
-
this.content = text;
|
|
17
|
-
}
|
|
18
9
|
toArray() {
|
|
19
10
|
return {
|
|
20
11
|
...super.toArray(),
|
|
21
12
|
type: this.type,
|
|
22
13
|
why: this.why?.toArray(),
|
|
23
|
-
content: this.text,
|
|
24
14
|
error: this.error,
|
|
25
15
|
};
|
|
26
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/models/api/messages.ts"],"names":[],"mappings":";;;AAAA,kCAAyC;AAEzC,MAAa,aAAc,SAAQ,kBAAW;
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/models/api/messages.ts"],"names":[],"mappings":";;;AAAA,kCAAyC;AAEzC,MAAa,aAAc,SAAQ,kBAAW;IAC1C,IAAI,GAAmB,MAAM,CAAC;IAC9B,GAAG,GAAgB,IAAI,CAAC;IACxB,KAAK,GAAa,KAAK,CAAC;IAExB,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,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC;IACN,CAAC;CACJ;AAbD,sCAaC"}
|
|
@@ -6,9 +6,10 @@ export declare class User {
|
|
|
6
6
|
id: string;
|
|
7
7
|
username: string;
|
|
8
8
|
permissions: Record<string, string[]>;
|
|
9
|
+
created_at: number | null;
|
|
10
|
+
updated_at: number | null;
|
|
9
11
|
}
|
|
10
12
|
export declare class AgentMatch {
|
|
11
|
-
agentId: string;
|
|
12
13
|
agentName: string;
|
|
13
14
|
agentDescription?: string | null;
|
|
14
15
|
user: User;
|
|
@@ -28,19 +28,16 @@ class User {
|
|
|
28
28
|
id;
|
|
29
29
|
username;
|
|
30
30
|
permissions;
|
|
31
|
+
created_at;
|
|
32
|
+
updated_at;
|
|
31
33
|
}
|
|
32
34
|
exports.User = User;
|
|
33
35
|
class AgentMatch {
|
|
34
|
-
agentId;
|
|
35
36
|
agentName;
|
|
36
37
|
agentDescription = null;
|
|
37
38
|
user;
|
|
38
39
|
}
|
|
39
40
|
exports.AgentMatch = AgentMatch;
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, decorators_1.SerializedName)("agent_id"),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], AgentMatch.prototype, "agentId", void 0);
|
|
44
41
|
__decorate([
|
|
45
42
|
(0, decorators_1.SerializedName)("agent_name"),
|
|
46
43
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/models/api/tokens.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAEhD,MAAa,WAAW;IAEpB,WAAW,CAAS;IAGpB,SAAS,GAAmB,QAAQ,CAAC;CACxC;AAND,kCAMC;AAJG;IADC,IAAA,2BAAc,EAAC,cAAc,CAAC;;gDACX;AAGpB;IADC,IAAA,2BAAc,EAAC,YAAY,CAAC;;8CACQ;AAGzC,MAAa,IAAI;IACb,EAAE,CAAS;IACX,QAAQ,CAAS;IACjB,WAAW,CAA2B;
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/models/api/tokens.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAEhD,MAAa,WAAW;IAEpB,WAAW,CAAS;IAGpB,SAAS,GAAmB,QAAQ,CAAC;CACxC;AAND,kCAMC;AAJG;IADC,IAAA,2BAAc,EAAC,cAAc,CAAC;;gDACX;AAGpB;IADC,IAAA,2BAAc,EAAC,YAAY,CAAC;;8CACQ;AAGzC,MAAa,IAAI;IACb,EAAE,CAAS;IACX,QAAQ,CAAS;IACjB,WAAW,CAA2B;IACtC,UAAU,CAAgB;IAC1B,UAAU,CAAgB;CAC7B;AAND,oBAMC;AAED,MAAa,UAAU;IAEnB,SAAS,CAAS;IAGlB,gBAAgB,GAAmB,IAAI,CAAC;IAExC,IAAI,CAAO;CACd;AARD,gCAQC;AANG;IADC,IAAA,2BAAc,EAAC,YAAY,CAAC;;6CACX;AAGlB;IADC,IAAA,2BAAc,EAAC,mBAAmB,CAAC;;oDACI;AAK5C,MAAa,QAAQ;IACjB,OAAO,CAAU;IAEjB,MAAM,CAAe;IAGrB,YAAY,CAAU;CACzB;AAPD,4BAOC;AADG;IADC,IAAA,2BAAc,EAAC,eAAe,CAAC;;8CACV"}
|