@teneo-protocol/sdk 1.0.1 → 2.0.0
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/.github/workflows/publish-npm.yml +8 -6
- package/CHANGELOG.md +265 -0
- package/README.md +406 -53
- package/dist/core/websocket-client.d.ts +12 -0
- package/dist/core/websocket-client.d.ts.map +1 -1
- package/dist/core/websocket-client.js +22 -2
- package/dist/core/websocket-client.js.map +1 -1
- package/dist/handlers/message-handlers/agent-room-operation-response-handler.d.ts +76 -0
- package/dist/handlers/message-handlers/agent-room-operation-response-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/agent-room-operation-response-handler.js +70 -0
- package/dist/handlers/message-handlers/agent-room-operation-response-handler.js.map +1 -0
- package/dist/handlers/message-handlers/agent-selected-handler.d.ts +92 -38
- package/dist/handlers/message-handlers/agent-selected-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/agent-status-update-handler.d.ts +904 -0
- package/dist/handlers/message-handlers/agent-status-update-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/agent-status-update-handler.js +51 -0
- package/dist/handlers/message-handlers/agent-status-update-handler.js.map +1 -0
- package/dist/handlers/message-handlers/auth-error-handler.d.ts +45 -31
- package/dist/handlers/message-handlers/auth-error-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-message-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/auth-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-message-handler.js +65 -5
- package/dist/handlers/message-handlers/auth-message-handler.js.map +1 -1
- package/dist/handlers/message-handlers/auth-required-handler.d.ts +49 -31
- package/dist/handlers/message-handlers/auth-required-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-success-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/auth-success-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-success-handler.js +46 -4
- package/dist/handlers/message-handlers/auth-success-handler.js.map +1 -1
- package/dist/handlers/message-handlers/challenge-handler.d.ts +45 -31
- package/dist/handlers/message-handlers/challenge-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/error-message-handler.d.ts +49 -31
- package/dist/handlers/message-handlers/error-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/index.d.ts +5 -0
- package/dist/handlers/message-handlers/index.d.ts.map +1 -1
- package/dist/handlers/message-handlers/index.js +23 -1
- package/dist/handlers/message-handlers/index.js.map +1 -1
- package/dist/handlers/message-handlers/list-available-agents-handler.d.ts +877 -0
- package/dist/handlers/message-handlers/list-available-agents-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/list-available-agents-handler.js +38 -0
- package/dist/handlers/message-handlers/list-available-agents-handler.js.map +1 -0
- package/dist/handlers/message-handlers/list-room-agents-handler.d.ts +886 -0
- package/dist/handlers/message-handlers/list-room-agents-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/list-room-agents-handler.js +51 -0
- package/dist/handlers/message-handlers/list-room-agents-handler.js.map +1 -0
- package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts +178 -89
- package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/ping-pong-handler.d.ts +62 -58
- package/dist/handlers/message-handlers/ping-pong-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/regular-message-handler.d.ts +31 -29
- package/dist/handlers/message-handlers/regular-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/room-operation-response-handler.d.ts +328 -0
- package/dist/handlers/message-handlers/room-operation-response-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/room-operation-response-handler.js +92 -0
- package/dist/handlers/message-handlers/room-operation-response-handler.js.map +1 -0
- package/dist/handlers/message-handlers/subscribe-response-handler.d.ts +53 -31
- package/dist/handlers/message-handlers/subscribe-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/types.d.ts +2 -0
- package/dist/handlers/message-handlers/types.d.ts.map +1 -1
- package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts +53 -31
- package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts.map +1 -1
- package/dist/managers/agent-room-manager.d.ts +222 -0
- package/dist/managers/agent-room-manager.d.ts.map +1 -0
- package/dist/managers/agent-room-manager.js +508 -0
- package/dist/managers/agent-room-manager.js.map +1 -0
- package/dist/managers/index.d.ts +2 -0
- package/dist/managers/index.d.ts.map +1 -1
- package/dist/managers/index.js +5 -1
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/room-management-manager.d.ts +213 -0
- package/dist/managers/room-management-manager.d.ts.map +1 -0
- package/dist/managers/room-management-manager.js +440 -0
- package/dist/managers/room-management-manager.js.map +1 -0
- package/dist/managers/room-manager.d.ts +4 -4
- package/dist/managers/room-manager.d.ts.map +1 -1
- package/dist/managers/room-manager.js.map +1 -1
- package/dist/teneo-sdk.d.ts +333 -13
- package/dist/teneo-sdk.d.ts.map +1 -1
- package/dist/teneo-sdk.js +468 -1
- package/dist/teneo-sdk.js.map +1 -1
- package/dist/types/config.d.ts +63 -54
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +8 -4
- package/dist/types/config.js.map +1 -1
- package/dist/types/error-codes.d.ts +2 -0
- package/dist/types/error-codes.d.ts.map +1 -1
- package/dist/types/error-codes.js +3 -0
- package/dist/types/error-codes.js.map +1 -1
- package/dist/types/events.d.ts +132 -68
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/events.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +27 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/messages.d.ts +11396 -2559
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/messages.js +294 -27
- package/dist/types/messages.js.map +1 -1
- package/examples/.env.example +1 -1
- package/examples/agent-room-management-example.ts +334 -0
- package/examples/claude-agent-x-follower/.env.example +2 -2
- package/examples/claude-agent-x-follower/QUICKSTART.md +1 -1
- package/examples/claude-agent-x-follower/README.md +1 -1
- package/examples/n8n-teneo/.env.example +2 -2
- package/examples/n8n-teneo/README.md +1 -1
- package/examples/openai-teneo/.env.example +2 -2
- package/examples/openai-teneo/README.md +1 -1
- package/examples/production-dashboard/.env.example +2 -2
- package/examples/production-dashboard/README.md +89 -12
- package/examples/production-dashboard/public/dashboard.html +1173 -601
- package/examples/production-dashboard/server.ts +347 -5
- package/examples/room-management-example.ts +285 -0
- package/examples/usage/.env.example +1 -1
- package/examples/usage/01-connect.ts +1 -1
- package/examples/usage/02-list-agents.ts +1 -1
- package/examples/usage/03-pick-agent.ts +1 -1
- package/examples/usage/04-find-by-capability.ts +1 -1
- package/examples/usage/05-webhook-example.ts +1 -1
- package/examples/usage/06-simple-api-server.ts +1 -1
- package/examples/usage/07-event-listener.ts +1 -1
- package/examples/usage/README.md +1 -1
- package/package.json +9 -1
- package/src/core/websocket-client.ts +26 -2
- package/src/handlers/message-handlers/agent-room-operation-response-handler.ts +83 -0
- package/src/handlers/message-handlers/agent-status-update-handler.ts +58 -0
- package/src/handlers/message-handlers/auth-message-handler.ts +73 -5
- package/src/handlers/message-handlers/auth-success-handler.ts +58 -6
- package/src/handlers/message-handlers/index.ts +19 -0
- package/src/handlers/message-handlers/list-available-agents-handler.ts +41 -0
- package/src/handlers/message-handlers/list-room-agents-handler.ts +61 -0
- package/src/handlers/message-handlers/room-operation-response-handler.ts +105 -0
- package/src/handlers/message-handlers/types.ts +6 -0
- package/src/managers/agent-room-manager.ts +609 -0
- package/src/managers/index.ts +2 -0
- package/src/managers/room-management-manager.ts +523 -0
- package/src/managers/room-manager.ts +4 -5
- package/src/teneo-sdk.ts +505 -4
- package/src/types/config.ts +10 -5
- package/src/types/error-codes.ts +4 -0
- package/src/types/events.ts +24 -0
- package/src/types/index.ts +55 -0
- package/src/types/messages.ts +374 -41
- package/tests/integration/room-management.test.ts +514 -0
- package/tests/integration/websocket.test.ts +1 -1
- package/tests/unit/handlers/agent-room-operation-response-handler.test.ts +394 -0
- package/tests/unit/handlers/agent-status-update-handler.test.ts +407 -0
- package/tests/unit/handlers/auth-success-handler-rooms.test.ts +699 -0
- package/tests/unit/handlers/list-available-agents-handler.test.ts +256 -0
- package/tests/unit/handlers/list-room-agents-handler.test.ts +294 -0
- package/tests/unit/handlers/room-operation-response-handler.test.ts +527 -0
- package/tests/unit/managers/agent-room-manager.test.ts +534 -0
- package/tests/unit/managers/room-management-manager.test.ts +438 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-room-agents-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/list-room-agents-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAA4B,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAKzC,qBAAa,qBAAsB,SAAQ,kBAAkB,CAAC,kBAAkB,CAAC;IAC/E,QAAQ,CAAC,IAAI,EAAG,sBAAsB,CAAU;IAChD,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA4B;IAE3C,SAAS,CAAC,eAAe,CACvB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,cAAc,GACtB,IAAI;CAyCR"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Handler for room_agents_response messages (v2.0.0)
|
|
4
|
+
* Processes responses from list_room_agents requests
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ListRoomAgentsHandler = void 0;
|
|
8
|
+
const types_1 = require("../../types");
|
|
9
|
+
const base_handler_1 = require("./base-handler");
|
|
10
|
+
const events_1 = require("../../types/events");
|
|
11
|
+
const error_codes_1 = require("../../types/error-codes");
|
|
12
|
+
class ListRoomAgentsHandler extends base_handler_1.BaseMessageHandler {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.type = "room_agents_response";
|
|
16
|
+
this.schema = types_1.RoomAgentsResponseSchema;
|
|
17
|
+
}
|
|
18
|
+
handleValidated(message, context) {
|
|
19
|
+
const { room_id, agents } = message.data;
|
|
20
|
+
context.logger.debug("Handling room_agents_response", {
|
|
21
|
+
roomId: room_id,
|
|
22
|
+
agentCount: agents?.length || 0
|
|
23
|
+
});
|
|
24
|
+
if (!room_id) {
|
|
25
|
+
const error = new events_1.SDKError("Room agents response missing room_id", error_codes_1.ErrorCode.VALIDATION_ERROR);
|
|
26
|
+
this.emit(context, "agent_room:list_error", error, undefined);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
// Parse agents array (handle undefined as empty array)
|
|
30
|
+
const agentList = agents || [];
|
|
31
|
+
context.logger.info("Room agents listed", {
|
|
32
|
+
roomId: room_id,
|
|
33
|
+
count: agentList.length
|
|
34
|
+
});
|
|
35
|
+
// Cache via agent room manager if available
|
|
36
|
+
const agentRoomManager = context.agentRoomManager;
|
|
37
|
+
if (agentRoomManager && typeof agentRoomManager.cacheRoomAgents === "function") {
|
|
38
|
+
agentRoomManager.cacheRoomAgents(room_id, agentList);
|
|
39
|
+
}
|
|
40
|
+
// Emit success event
|
|
41
|
+
this.emit(context, "agent_room:agents_listed", room_id, agentList);
|
|
42
|
+
// Send webhook
|
|
43
|
+
this.sendWebhook(context, "room_agents_listed", {
|
|
44
|
+
room_id,
|
|
45
|
+
agents: agentList,
|
|
46
|
+
count: agentList.length
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ListRoomAgentsHandler = ListRoomAgentsHandler;
|
|
51
|
+
//# sourceMappingURL=list-room-agents-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-room-agents-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/list-room-agents-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAA2E;AAC3E,iDAAoD;AAEpD,+CAA8C;AAC9C,yDAAoD;AAGpD,MAAa,qBAAsB,SAAQ,iCAAsC;IAAjF;;QACW,SAAI,GAAG,sBAA+B,CAAC;QACvC,WAAM,GAAG,gCAAwB,CAAC;IA8C7C,CAAC;IA5CW,eAAe,CACvB,OAA2B,EAC3B,OAAuB;QAEvB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;QAEzC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE;YACpD,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;SAChC,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,KAAK,GAAG,IAAI,iBAAQ,CACxB,sCAAsC,EACtC,uBAAS,CAAC,gBAAgB,CAC3B,CAAC;YACF,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;YAC9D,OAAO;QACT,CAAC;QAED,uDAAuD;QACvD,MAAM,SAAS,GAAoB,MAAM,IAAI,EAAE,CAAC;QAEhD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,EAAE;YACxC,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,SAAS,CAAC,MAAM;SACxB,CAAC,CAAC;QAEH,4CAA4C;QAC5C,MAAM,gBAAgB,GAAI,OAAe,CAAC,gBAAgB,CAAC;QAC3D,IAAI,gBAAgB,IAAI,OAAO,gBAAgB,CAAC,eAAe,KAAK,UAAU,EAAE,CAAC;YAC/E,gBAAgB,CAAC,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACvD,CAAC;QAED,qBAAqB;QACrB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,0BAA0B,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAEnE,eAAe;QACf,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,oBAAoB,EAAE;YAC9C,OAAO;YACP,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,SAAS,CAAC,MAAM;SACxB,CAAC,CAAC;IACL,CAAC;CACF;AAhDD,sDAgDC"}
|
|
@@ -24,99 +24,188 @@ export declare class ListRoomsResponseHandler extends BaseMessageHandler<ListRoo
|
|
|
24
24
|
data: import("zod").ZodObject<{
|
|
25
25
|
rooms: import("zod").ZodArray<import("zod").ZodObject<{
|
|
26
26
|
id: import("zod").ZodString;
|
|
27
|
-
name: import("zod").ZodString
|
|
27
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
28
|
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
29
|
-
is_public: import("zod").ZodBoolean
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
id:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
30
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
34
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
35
|
+
id: import("zod").ZodString;
|
|
36
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
38
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
39
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
43
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
44
|
+
id: import("zod").ZodString;
|
|
45
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
47
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
48
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
52
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
53
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
54
|
+
rooms: import("zod").objectOutputType<{
|
|
55
|
+
id: import("zod").ZodString;
|
|
56
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
58
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
59
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
63
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
64
|
+
}, {
|
|
65
|
+
rooms: import("zod").objectInputType<{
|
|
66
|
+
id: import("zod").ZodString;
|
|
67
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
69
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
70
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
73
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
74
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
75
|
+
}>;
|
|
76
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
77
|
+
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
78
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
79
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
83
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
+
} & {
|
|
89
|
+
type: import("zod").ZodLiteral<"list_rooms">;
|
|
90
|
+
data: import("zod").ZodObject<{
|
|
91
|
+
rooms: import("zod").ZodArray<import("zod").ZodObject<{
|
|
92
|
+
id: import("zod").ZodString;
|
|
93
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
95
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
96
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
100
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
101
|
+
id: import("zod").ZodString;
|
|
102
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
104
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
105
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
106
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
107
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
109
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
110
|
+
id: import("zod").ZodString;
|
|
111
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
113
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
114
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
115
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
117
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
118
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
50
119
|
}, "strip", import("zod").ZodTypeAny, {
|
|
51
|
-
rooms: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
120
|
+
rooms: import("zod").objectOutputType<{
|
|
121
|
+
id: import("zod").ZodString;
|
|
122
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
123
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
124
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
125
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
126
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
127
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
128
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
129
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
130
|
+
}, {
|
|
131
|
+
rooms: import("zod").objectInputType<{
|
|
132
|
+
id: import("zod").ZodString;
|
|
133
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
134
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
135
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
136
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
138
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
139
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
140
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
141
|
+
}>;
|
|
142
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
143
|
+
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
144
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
145
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
146
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
147
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
149
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
150
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
151
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
152
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
+
} & {
|
|
155
|
+
type: import("zod").ZodLiteral<"list_rooms">;
|
|
156
|
+
data: import("zod").ZodObject<{
|
|
157
|
+
rooms: import("zod").ZodArray<import("zod").ZodObject<{
|
|
158
|
+
id: import("zod").ZodString;
|
|
159
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
160
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
161
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
162
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
163
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
164
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
165
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
166
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
167
|
+
id: import("zod").ZodString;
|
|
168
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
170
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
171
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
172
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
175
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
176
|
+
id: import("zod").ZodString;
|
|
177
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
179
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
180
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
184
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
185
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
186
|
+
rooms: import("zod").objectOutputType<{
|
|
187
|
+
id: import("zod").ZodString;
|
|
188
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
189
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
190
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
191
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
192
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
193
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
195
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
60
196
|
}, {
|
|
61
|
-
rooms: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
197
|
+
rooms: import("zod").objectInputType<{
|
|
198
|
+
id: import("zod").ZodString;
|
|
199
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
200
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
201
|
+
is_public: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
202
|
+
created_by: import("zod").ZodOptional<import("zod").ZodString>;
|
|
203
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
|
+
updated_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
205
|
+
is_owner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
206
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
70
207
|
}>;
|
|
71
|
-
},
|
|
72
|
-
type: "list_rooms";
|
|
73
|
-
data: {
|
|
74
|
-
rooms: {
|
|
75
|
-
name: string;
|
|
76
|
-
id: string;
|
|
77
|
-
is_public: boolean;
|
|
78
|
-
created_at: string;
|
|
79
|
-
updated_at: string;
|
|
80
|
-
is_owner: boolean;
|
|
81
|
-
description?: string | null | undefined;
|
|
82
|
-
}[];
|
|
83
|
-
};
|
|
84
|
-
id?: string | undefined;
|
|
85
|
-
room?: string | undefined;
|
|
86
|
-
content?: any;
|
|
87
|
-
content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
|
|
88
|
-
from?: string | undefined;
|
|
89
|
-
to?: string | undefined;
|
|
90
|
-
timestamp?: string | undefined;
|
|
91
|
-
signature?: string | undefined;
|
|
92
|
-
publicKey?: string | undefined;
|
|
93
|
-
reasoning?: string | undefined;
|
|
94
|
-
task_id?: string | undefined;
|
|
95
|
-
}, {
|
|
96
|
-
type: "list_rooms";
|
|
97
|
-
data: {
|
|
98
|
-
rooms: {
|
|
99
|
-
name: string;
|
|
100
|
-
id: string;
|
|
101
|
-
is_public: boolean;
|
|
102
|
-
created_at: string;
|
|
103
|
-
updated_at: string;
|
|
104
|
-
is_owner: boolean;
|
|
105
|
-
description?: string | null | undefined;
|
|
106
|
-
}[];
|
|
107
|
-
};
|
|
108
|
-
id?: string | undefined;
|
|
109
|
-
room?: string | undefined;
|
|
110
|
-
content?: any;
|
|
111
|
-
content_type?: "text/plain" | "text/markdown" | "text/html" | "application/json" | "image/*" | "STRING" | "JSON" | "MD" | "ARRAY" | undefined;
|
|
112
|
-
from?: string | undefined;
|
|
113
|
-
to?: string | undefined;
|
|
114
|
-
timestamp?: string | undefined;
|
|
115
|
-
signature?: string | undefined;
|
|
116
|
-
publicKey?: string | undefined;
|
|
117
|
-
reasoning?: string | undefined;
|
|
118
|
-
task_id?: string | undefined;
|
|
119
|
-
}>;
|
|
208
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
120
209
|
protected handleValidated(message: ListRoomsResponse, context: HandlerContext): void;
|
|
121
210
|
}
|
|
122
211
|
//# sourceMappingURL=list-rooms-response-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-rooms-response-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/list-rooms-response-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAA2B,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,wBAAyB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IACjF,QAAQ,CAAC,IAAI,EAAG,YAAY,CAAU;IACtC,QAAQ,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"list-rooms-response-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/list-rooms-response-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAA2B,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,wBAAyB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IACjF,QAAQ,CAAC,IAAI,EAAG,YAAY,CAAU;IACtC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA2B;IAE1C,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CAcrF"}
|
|
@@ -22,35 +22,37 @@ export declare class PingHandler extends BaseMessageHandler<PingMessage> {
|
|
|
22
22
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
23
|
} & {
|
|
24
24
|
type: import("zod").ZodLiteral<"ping">;
|
|
25
|
-
}, "
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
25
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
26
|
+
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
27
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
28
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
33
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
} & {
|
|
39
|
+
type: import("zod").ZodLiteral<"ping">;
|
|
40
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
41
|
+
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
42
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
43
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
48
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
} & {
|
|
54
|
+
type: import("zod").ZodLiteral<"ping">;
|
|
55
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
54
56
|
protected handleValidated(_message: PingMessage, context: HandlerContext): Promise<void>;
|
|
55
57
|
}
|
|
56
58
|
export declare class PongHandler extends BaseMessageHandler<PongMessage> {
|
|
@@ -70,35 +72,37 @@ export declare class PongHandler extends BaseMessageHandler<PongMessage> {
|
|
|
70
72
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
73
|
} & {
|
|
72
74
|
type: import("zod").ZodLiteral<"pong">;
|
|
73
|
-
}, "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
75
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
76
|
+
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
77
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
78
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
83
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
+
} & {
|
|
89
|
+
type: import("zod").ZodLiteral<"pong">;
|
|
90
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
91
|
+
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
92
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
93
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
98
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
} & {
|
|
104
|
+
type: import("zod").ZodLiteral<"pong">;
|
|
105
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
102
106
|
protected handleValidated(_message: PongMessage, context: HandlerContext): Promise<void>;
|
|
103
107
|
}
|
|
104
108
|
//# sourceMappingURL=ping-pong-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-pong-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/ping-pong-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAwC,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,WAAY,SAAQ,kBAAkB,CAAC,WAAW,CAAC;IAC9D,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAU;IAChC,QAAQ,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"ping-pong-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/ping-pong-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAwC,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,WAAY,SAAQ,kBAAkB,CAAC,WAAW,CAAC;IAC9D,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAU;IAChC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAqB;cAEpB,eAAe,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAK/F;AAED,qBAAa,WAAY,SAAQ,kBAAkB,CAAC,WAAW,CAAC;IAC9D,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAU;IAChC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAqB;cAEpB,eAAe,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAK/F"}
|
|
@@ -22,35 +22,37 @@ export declare class RegularMessageHandler extends BaseMessageHandler<UserMessag
|
|
|
22
22
|
type: import("zod").ZodLiteral<"message">;
|
|
23
23
|
content: import("zod").ZodString;
|
|
24
24
|
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
-
}, "
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
25
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
26
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
27
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
31
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
} & {
|
|
37
|
+
type: import("zod").ZodLiteral<"message">;
|
|
38
|
+
content: import("zod").ZodString;
|
|
39
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
41
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
42
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
46
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
} & {
|
|
52
|
+
type: import("zod").ZodLiteral<"message">;
|
|
53
|
+
content: import("zod").ZodString;
|
|
54
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
54
56
|
protected handleValidated(message: UserMessage, context: HandlerContext): Promise<void>;
|
|
55
57
|
}
|
|
56
58
|
//# sourceMappingURL=regular-message-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regular-message-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/regular-message-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAqB,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,qBAAsB,SAAQ,kBAAkB,CAAC,WAAW,CAAC;IACxE,QAAQ,CAAC,IAAI,EAAG,SAAS,CAAU;IACnC,QAAQ,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"regular-message-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/regular-message-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAqB,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,qBAAsB,SAAQ,kBAAkB,CAAC,WAAW,CAAC;IACxE,QAAQ,CAAC,IAAI,EAAG,SAAS,CAAU;IACnC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAqB;cAEpB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAmD9F"}
|