@teneo-protocol/sdk 2.2.2 → 3.0.1
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/ISSUE_TEMPLATE/config.yml +1 -1
- package/CHANGELOG.md +366 -15
- package/CONCEPTS.md +182 -44
- package/README.md +524 -94
- package/dist/constants.d.ts +3 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -3
- package/dist/constants.js.map +1 -1
- package/dist/core/websocket-client.d.ts.map +1 -1
- package/dist/core/websocket-client.js +9 -5
- package/dist/core/websocket-client.js.map +1 -1
- package/dist/formatters/response-formatter.d.ts +6 -6
- package/dist/handlers/message-handlers/agent-details-response-handler.d.ts +1080 -756
- package/dist/handlers/message-handlers/agent-details-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/agent-details-response-handler.js +2 -2
- package/dist/handlers/message-handlers/agent-details-response-handler.js.map +1 -1
- package/dist/handlers/message-handlers/agent-error-handler.d.ts +91 -0
- package/dist/handlers/message-handlers/agent-error-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/agent-error-handler.js +44 -0
- package/dist/handlers/message-handlers/agent-error-handler.js.map +1 -0
- package/dist/handlers/message-handlers/agent-selected-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/agent-selected-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/agent-status-update-handler.d.ts +1080 -756
- package/dist/handlers/message-handlers/agent-status-update-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/agent-status-update-handler.js +2 -7
- package/dist/handlers/message-handlers/agent-status-update-handler.js.map +1 -1
- package/dist/handlers/message-handlers/all-agents-response-handler.d.ts +135 -54
- package/dist/handlers/message-handlers/all-agents-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/all-agents-response-handler.js +2 -2
- package/dist/handlers/message-handlers/all-agents-response-handler.js.map +1 -1
- package/dist/handlers/message-handlers/auth-error-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/auth-error-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-message-handler.js +6 -1
- package/dist/handlers/message-handlers/auth-message-handler.js.map +1 -1
- package/dist/handlers/message-handlers/auth-required-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/auth-required-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-success-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/auth-success-handler.js +6 -1
- package/dist/handlers/message-handlers/auth-success-handler.js.map +1 -1
- package/dist/handlers/message-handlers/base-handler.d.ts +2 -1
- package/dist/handlers/message-handlers/base-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/base-handler.js +24 -4
- package/dist/handlers/message-handlers/base-handler.js.map +1 -1
- package/dist/handlers/message-handlers/challenge-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/challenge-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/error-message-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/error-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/index.d.ts +4 -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 +1116 -756
- package/dist/handlers/message-handlers/list-available-agents-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/list-available-agents-handler.js +23 -10
- package/dist/handlers/message-handlers/list-available-agents-handler.js.map +1 -1
- package/dist/handlers/message-handlers/list-room-agents-handler.d.ts +1080 -756
- package/dist/handlers/message-handlers/list-room-agents-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/list-room-agents-handler.js +2 -6
- package/dist/handlers/message-handlers/list-room-agents-handler.js.map +1 -1
- package/dist/handlers/message-handlers/list-rooms-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/list-rooms-response-handler.js +2 -5
- package/dist/handlers/message-handlers/list-rooms-response-handler.js.map +1 -1
- package/dist/handlers/message-handlers/ping-pong-handler.d.ts +52 -4
- package/dist/handlers/message-handlers/ping-pong-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/ping-pong-handler.js +23 -4
- package/dist/handlers/message-handlers/ping-pong-handler.js.map +1 -1
- package/dist/handlers/message-handlers/rate-limit-notification-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/rate-limit-notification-handler.js +3 -2
- package/dist/handlers/message-handlers/rate-limit-notification-handler.js.map +1 -1
- package/dist/handlers/message-handlers/regular-message-handler.d.ts +6 -0
- package/dist/handlers/message-handlers/regular-message-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/subscribe-response-handler.d.ts +12 -6
- package/dist/handlers/message-handlers/subscribe-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/success-handler.d.ts +82 -0
- package/dist/handlers/message-handlers/success-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/success-handler.js +24 -0
- package/dist/handlers/message-handlers/success-handler.js.map +1 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.d.ts +110 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.js +46 -0
- package/dist/handlers/message-handlers/task-confirmed-handler.js.map +1 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.d.ts +244 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.d.ts.map +1 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.js +58 -0
- package/dist/handlers/message-handlers/trigger-wallet-tx-handler.js.map +1 -0
- package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts +12 -6
- package/dist/handlers/message-handlers/unsubscribe-response-handler.d.ts.map +1 -1
- package/dist/handlers/message-handlers/user-authenticated-handler.js +2 -2
- package/dist/handlers/message-handlers/user-authenticated-handler.js.map +1 -1
- package/dist/handlers/message-handlers/user-count-handler.js +2 -2
- package/dist/handlers/message-handlers/user-count-handler.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/managers/admin-manager.d.ts +3 -1
- package/dist/managers/admin-manager.d.ts.map +1 -1
- package/dist/managers/admin-manager.js +4 -3
- package/dist/managers/admin-manager.js.map +1 -1
- package/dist/managers/agent-room-manager.d.ts +89 -11
- package/dist/managers/agent-room-manager.d.ts.map +1 -1
- package/dist/managers/agent-room-manager.js +99 -35
- package/dist/managers/agent-room-manager.js.map +1 -1
- package/dist/managers/index.d.ts +1 -1
- package/dist/managers/index.d.ts.map +1 -1
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/message-router.d.ts +45 -5
- package/dist/managers/message-router.d.ts.map +1 -1
- package/dist/managers/message-router.js +96 -24
- package/dist/managers/message-router.js.map +1 -1
- package/dist/managers/room-manager.d.ts +29 -7
- package/dist/managers/room-manager.d.ts.map +1 -1
- package/dist/managers/room-manager.js +37 -11
- package/dist/managers/room-manager.js.map +1 -1
- package/dist/payments/index.d.ts +3 -1
- package/dist/payments/index.d.ts.map +1 -1
- package/dist/payments/index.js +17 -3
- package/dist/payments/index.js.map +1 -1
- package/dist/payments/networks.d.ts +59 -0
- package/dist/payments/networks.d.ts.map +1 -0
- package/dist/payments/networks.js +192 -0
- package/dist/payments/networks.js.map +1 -0
- package/dist/payments/payment-client.d.ts +55 -10
- package/dist/payments/payment-client.d.ts.map +1 -1
- package/dist/payments/payment-client.js +172 -51
- package/dist/payments/payment-client.js.map +1 -1
- package/dist/teneo-sdk.d.ts +215 -41
- package/dist/teneo-sdk.d.ts.map +1 -1
- package/dist/teneo-sdk.js +361 -84
- package/dist/teneo-sdk.js.map +1 -1
- package/dist/types/config.d.ts +334 -25
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +114 -22
- package/dist/types/config.js.map +1 -1
- package/dist/types/events.d.ts +60 -14
- 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 +11 -4
- package/dist/types/index.js.map +1 -1
- package/dist/types/messages.d.ts +13110 -7451
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/messages.js +195 -44
- package/dist/types/messages.js.map +1 -1
- package/dist/utils/pricing-resolver.d.ts +1 -1
- package/dist/utils/pricing-resolver.d.ts.map +1 -1
- package/dist/utils/pricing-resolver.js +9 -1
- package/dist/utils/pricing-resolver.js.map +1 -1
- package/examples/agent-room-management-example.ts +5 -5
- package/examples/basic-usage.ts +26 -6
- package/examples/claude-agent-x-follower/index.ts +1 -1
- package/examples/minimal-chat.ts +4 -3
- package/examples/n8n-teneo/index.ts +2 -2
- package/examples/nestjs-dashboard/README.md +1 -1
- package/examples/nestjs-dashboard/src/teneo/agents.controller.ts +3 -3
- package/examples/nestjs-dashboard/src/teneo/rooms.controller.ts +5 -5
- package/examples/nestjs-dashboard/src/teneo/teneo.service.ts +8 -8
- package/examples/openai-teneo/index.ts +1 -1
- package/examples/payment-flow.ts +143 -0
- package/examples/production-dashboard/README.md +6 -8
- package/examples/production-dashboard/server.ts +22 -10
- package/examples/room-management-example.ts +2 -2
- package/examples/usage/01-connect.ts +0 -3
- package/examples/usage/02-list-agents.ts +0 -2
- package/examples/usage/03-pick-agent.ts +3 -4
- package/examples/usage/04-find-by-capability.ts +10 -12
- package/examples/usage/05-webhook-example.ts +2 -4
- package/examples/usage/06-simple-api-server.ts +13 -9
- package/examples/usage/07-event-listener.ts +1 -13
- package/examples/usage/README.md +33 -7
- package/examples/webhook-integration.ts +9 -9
- package/examples/x-influencer-battle-server.ts +1 -1
- package/package.json +1 -1
- package/scripts/diagnose-connection.ts +86 -0
- package/scripts/investigate-payload.ts +163 -0
- package/scripts/list-agents.ts +58 -0
- package/scripts/live-multi-network-test.ts +230 -0
- package/src/constants.ts +5 -3
- package/src/core/websocket-client.ts +10 -9
- package/src/handlers/message-handlers/agent-details-response-handler.ts +2 -2
- package/src/handlers/message-handlers/agent-error-handler.ts +47 -0
- package/src/handlers/message-handlers/agent-status-update-handler.ts +2 -7
- package/src/handlers/message-handlers/all-agents-response-handler.ts +2 -2
- package/src/handlers/message-handlers/auth-message-handler.ts +7 -1
- package/src/handlers/message-handlers/auth-success-handler.ts +7 -1
- package/src/handlers/message-handlers/base-handler.ts +24 -4
- package/src/handlers/message-handlers/index.ts +24 -0
- package/src/handlers/message-handlers/list-available-agents-handler.ts +24 -11
- package/src/handlers/message-handlers/list-room-agents-handler.ts +2 -6
- package/src/handlers/message-handlers/list-rooms-response-handler.ts +2 -5
- package/src/handlers/message-handlers/ping-pong-handler.ts +29 -4
- package/src/handlers/message-handlers/rate-limit-notification-handler.ts +3 -2
- package/src/handlers/message-handlers/success-handler.ts +26 -0
- package/src/handlers/message-handlers/task-confirmed-handler.ts +49 -0
- package/src/handlers/message-handlers/trigger-wallet-tx-handler.ts +62 -0
- package/src/handlers/message-handlers/user-authenticated-handler.ts +2 -2
- package/src/handlers/message-handlers/user-count-handler.ts +2 -2
- package/src/index.ts +12 -4
- package/src/managers/admin-manager.ts +6 -3
- package/src/managers/agent-room-manager.ts +155 -26
- package/src/managers/index.ts +6 -1
- package/src/managers/message-router.ts +122 -27
- package/src/managers/room-manager.ts +39 -11
- package/src/payments/index.ts +20 -5
- package/src/payments/networks.ts +208 -0
- package/src/payments/payment-client.ts +211 -56
- package/src/teneo-sdk.ts +402 -71
- package/src/types/config.test.ts +24 -4
- package/src/types/config.ts +123 -25
- package/src/types/events.ts +36 -2
- package/src/types/index.ts +16 -3
- package/src/types/messages.ts +235 -60
- package/src/utils/pricing-resolver.ts +10 -2
- package/tests/direct-agent-test.ts +1 -1
- package/tests/integration/real-server.test.ts +1 -1
- package/tests/integration/websocket.test.ts +3 -3
- package/tests/multi-network-payment.test.ts +309 -0
- package/tests/multi-network.test.ts +296 -0
- package/tests/payment-flow-test.ts +6 -4
- package/tests/unit/handlers/agent-error-handler.test.ts +388 -0
- package/tests/unit/handlers/agent-room-operation-response-handler.test.ts +9 -6
- package/tests/unit/handlers/agent-status-update-handler.test.ts +11 -16
- package/tests/unit/handlers/list-available-agents-handler.test.ts +11 -14
- package/tests/unit/handlers/list-room-agents-handler.test.ts +11 -15
- package/tests/unit/handlers/room-operation-response-handler.test.ts +9 -6
- package/tests/unit/handlers/trigger-wallet-tx-handler.test.ts +431 -0
- package/tests/unit/managers/admin-manager.test.ts +183 -0
- package/tests/unit/managers/agent-room-manager.test.ts +189 -33
- package/tests/unit/sdk-new-methods.test.ts +221 -0
|
@@ -1 +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
|
|
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,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CAqCtF"}
|
|
@@ -36,12 +36,8 @@ class ListRoomAgentsHandler extends base_handler_1.BaseMessageHandler {
|
|
|
36
36
|
}
|
|
37
37
|
// Emit success event
|
|
38
38
|
this.emit(context, "agent_room:agents_listed", room_id, agentList);
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
room_id,
|
|
42
|
-
agents: agentList,
|
|
43
|
-
count: agentList.length
|
|
44
|
-
});
|
|
39
|
+
// Note: This is a query response, not sent via webhook
|
|
40
|
+
// Users can listen to the 'agent_room:agents_listed' event if needed
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
43
|
exports.ListRoomAgentsHandler = ListRoomAgentsHandler;
|
|
@@ -1 +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;IACtE,IAAI,GAAG,sBAA+B,CAAC;IACvC,MAAM,GAAG,gCAAwB,CAAC;IAEjC,eAAe,CAAC,OAA2B,EAAE,OAAuB;QAC5E,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,GAAG,OAAO,CAAC,gBAAgB,CAAC;QAClD,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,
|
|
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;IACtE,IAAI,GAAG,sBAA+B,CAAC;IACvC,MAAM,GAAG,gCAAwB,CAAC;IAEjC,eAAe,CAAC,OAA2B,EAAE,OAAuB;QAC5E,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,GAAG,OAAO,CAAC,gBAAgB,CAAC;QAClD,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,uDAAuD;QACvD,qEAAqE;IACvE,CAAC;CACF;AAzCD,sDAyCC"}
|
|
@@ -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,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,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,oBAAoB,CAAU;IAE9C,QAAQ,CAAC,MAAM,EAA8B,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE1E,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;
|
|
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,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,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,oBAAoB,CAAU;IAE9C,QAAQ,CAAC,MAAM,EAA8B,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE1E,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CAWrF"}
|
|
@@ -17,11 +17,8 @@ class ListRoomsResponseHandler extends base_handler_1.BaseMessageHandler {
|
|
|
17
17
|
});
|
|
18
18
|
// Emit room:list event with room info array
|
|
19
19
|
this.emit(context, "room:list", message.data.rooms);
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
rooms: message.data.rooms,
|
|
23
|
-
count: message.data.rooms.length
|
|
24
|
-
});
|
|
20
|
+
// Note: This is a query response, not sent via webhook
|
|
21
|
+
// Users can listen to the 'room:list' event if needed
|
|
25
22
|
}
|
|
26
23
|
}
|
|
27
24
|
exports.ListRoomsResponseHandler = ListRoomsResponseHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-rooms-response-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/list-rooms-response-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uCAAyE;AACzE,iDAAoD;AAGpD,MAAa,wBAAyB,SAAQ,iCAAqC;IACxE,IAAI,GAAG,oBAA6B,CAAC;IAC9C,uEAAuE;IAC9D,MAAM,GAAG,+BAAuD,CAAC;IAEhE,eAAe,CAAC,OAA0B,EAAE,OAAuB;QAC3E,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE;YAClD,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;SACrC,CAAC,CAAC;QAEH,4CAA4C;QAC5C,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEpD,
|
|
1
|
+
{"version":3,"file":"list-rooms-response-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/list-rooms-response-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,uCAAyE;AACzE,iDAAoD;AAGpD,MAAa,wBAAyB,SAAQ,iCAAqC;IACxE,IAAI,GAAG,oBAA6B,CAAC;IAC9C,uEAAuE;IAC9D,MAAM,GAAG,+BAAuD,CAAC;IAEhE,eAAe,CAAC,OAA0B,EAAE,OAAuB;QAC3E,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE;YAClD,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;SACrC,CAAC,CAAC;QAEH,4CAA4C;QAC5C,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEpD,uDAAuD;QACvD,sDAAsD;IACxD,CAAC;CACF;AAhBD,4DAgBC"}
|
|
@@ -20,6 +20,8 @@ export declare class PingHandler extends BaseMessageHandler<PingMessage> {
|
|
|
20
20
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
21
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
22
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
25
|
} & {
|
|
24
26
|
type: import("zod").ZodLiteral<"ping">;
|
|
25
27
|
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
@@ -35,6 +37,8 @@ export declare class PingHandler extends BaseMessageHandler<PingMessage> {
|
|
|
35
37
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
38
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
39
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
42
|
} & {
|
|
39
43
|
type: import("zod").ZodLiteral<"ping">;
|
|
40
44
|
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
@@ -50,6 +54,8 @@ export declare class PingHandler extends BaseMessageHandler<PingMessage> {
|
|
|
50
54
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
55
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
56
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
59
|
} & {
|
|
54
60
|
type: import("zod").ZodLiteral<"ping">;
|
|
55
61
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
@@ -64,14 +70,28 @@ export declare class PongHandler extends BaseMessageHandler<PongMessage> {
|
|
|
64
70
|
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
71
|
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
72
|
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
67
|
-
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
68
73
|
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
69
74
|
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
70
75
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
76
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
77
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
73
80
|
} & {
|
|
74
81
|
type: import("zod").ZodLiteral<"pong">;
|
|
82
|
+
data: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUndefined, import("zod").ZodObject<{
|
|
83
|
+
room_id: import("zod").ZodString;
|
|
84
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
85
|
+
timestamp: import("zod").ZodString;
|
|
86
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
87
|
+
room_id: import("zod").ZodString;
|
|
88
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
89
|
+
timestamp: import("zod").ZodString;
|
|
90
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
91
|
+
room_id: import("zod").ZodString;
|
|
92
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
93
|
+
timestamp: import("zod").ZodString;
|
|
94
|
+
}, import("zod").ZodTypeAny, "passthrough">>]>>;
|
|
75
95
|
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
76
96
|
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
77
97
|
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
@@ -79,14 +99,28 @@ export declare class PongHandler extends BaseMessageHandler<PongMessage> {
|
|
|
79
99
|
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
100
|
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
101
|
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
-
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
83
102
|
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
103
|
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
104
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
105
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
106
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
107
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
109
|
} & {
|
|
89
110
|
type: import("zod").ZodLiteral<"pong">;
|
|
111
|
+
data: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUndefined, import("zod").ZodObject<{
|
|
112
|
+
room_id: import("zod").ZodString;
|
|
113
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
114
|
+
timestamp: import("zod").ZodString;
|
|
115
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
116
|
+
room_id: import("zod").ZodString;
|
|
117
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
118
|
+
timestamp: import("zod").ZodString;
|
|
119
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
120
|
+
room_id: import("zod").ZodString;
|
|
121
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
122
|
+
timestamp: import("zod").ZodString;
|
|
123
|
+
}, import("zod").ZodTypeAny, "passthrough">>]>>;
|
|
90
124
|
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
91
125
|
content: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
92
126
|
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
@@ -94,15 +128,29 @@ export declare class PongHandler extends BaseMessageHandler<PongMessage> {
|
|
|
94
128
|
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
129
|
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
130
|
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
-
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
98
131
|
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
132
|
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
133
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
134
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
135
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
136
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
138
|
} & {
|
|
104
139
|
type: import("zod").ZodLiteral<"pong">;
|
|
140
|
+
data: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUndefined, import("zod").ZodObject<{
|
|
141
|
+
room_id: import("zod").ZodString;
|
|
142
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
143
|
+
timestamp: import("zod").ZodString;
|
|
144
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
145
|
+
room_id: import("zod").ZodString;
|
|
146
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
147
|
+
timestamp: import("zod").ZodString;
|
|
148
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
149
|
+
room_id: import("zod").ZodString;
|
|
150
|
+
live_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
151
|
+
timestamp: import("zod").ZodString;
|
|
152
|
+
}, import("zod").ZodTypeAny, "passthrough">>]>>;
|
|
105
153
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
106
|
-
protected handleValidated(
|
|
154
|
+
protected handleValidated(message: PongMessage, context: HandlerContext): Promise<void>;
|
|
107
155
|
}
|
|
108
156
|
//# 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,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CA8B9F"}
|
|
@@ -20,10 +20,29 @@ exports.PingHandler = PingHandler;
|
|
|
20
20
|
class PongHandler extends base_handler_1.BaseMessageHandler {
|
|
21
21
|
type = "pong";
|
|
22
22
|
schema = types_1.PongMessageSchema;
|
|
23
|
-
async handleValidated(
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
async handleValidated(message, context) {
|
|
24
|
+
// Check if this is a room pong (has room data) or regular pong
|
|
25
|
+
if (message.data && typeof message.data === "object" && "room_id" in message.data) {
|
|
26
|
+
// Room pong - server responds to room_ping with live user count
|
|
27
|
+
const roomData = message.data;
|
|
28
|
+
context.logger.debug("Received room pong", {
|
|
29
|
+
roomId: roomData.room_id,
|
|
30
|
+
liveCount: roomData.live_count,
|
|
31
|
+
timestamp: roomData.timestamp
|
|
32
|
+
});
|
|
33
|
+
// Emit room pong event
|
|
34
|
+
this.emit(context, "room:pong", {
|
|
35
|
+
roomId: roomData.room_id,
|
|
36
|
+
liveCount: roomData.live_count ?? 0,
|
|
37
|
+
timestamp: roomData.timestamp
|
|
38
|
+
});
|
|
39
|
+
// Note: room_pong is an internal keepalive/user-count event, not sent via webhook
|
|
40
|
+
// Users can listen to the 'room:pong' event if needed
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
// Regular pong - handled at the WebSocket level (ws library)
|
|
44
|
+
context.logger.debug("Received pong");
|
|
45
|
+
}
|
|
27
46
|
}
|
|
28
47
|
}
|
|
29
48
|
exports.PongHandler = PongHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-pong-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/ping-pong-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAA6F;AAC7F,iDAAoD;AAGpD,MAAa,WAAY,SAAQ,iCAA+B;IACrD,IAAI,GAAG,MAAe,CAAC;IACvB,MAAM,GAAG,yBAAiB,CAAC;IAE1B,KAAK,CAAC,eAAe,CAAC,QAAqB,EAAE,OAAuB;QAC5E,gEAAgE;QAChE,oCAAoC;QACpC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACxC,CAAC;CACF;AATD,kCASC;AAED,MAAa,WAAY,SAAQ,iCAA+B;IACrD,IAAI,GAAG,MAAe,CAAC;IACvB,MAAM,GAAG,yBAAiB,CAAC;IAE1B,KAAK,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"ping-pong-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/ping-pong-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAA6F;AAC7F,iDAAoD;AAGpD,MAAa,WAAY,SAAQ,iCAA+B;IACrD,IAAI,GAAG,MAAe,CAAC;IACvB,MAAM,GAAG,yBAAiB,CAAC;IAE1B,KAAK,CAAC,eAAe,CAAC,QAAqB,EAAE,OAAuB;QAC5E,gEAAgE;QAChE,oCAAoC;QACpC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACxC,CAAC;CACF;AATD,kCASC;AAED,MAAa,WAAY,SAAQ,iCAA+B;IACrD,IAAI,GAAG,MAAe,CAAC;IACvB,MAAM,GAAG,yBAAiB,CAAC;IAE1B,KAAK,CAAC,eAAe,CAAC,OAAoB,EAAE,OAAuB;QAC3E,+DAA+D;QAC/D,IAAI,OAAO,CAAC,IAAI,IAAI,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,SAAS,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YAClF,gEAAgE;YAChE,MAAM,QAAQ,GAAG,OAAO,CAAC,IAIxB,CAAC;YAEF,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,EAAE;gBACzC,MAAM,EAAE,QAAQ,CAAC,OAAO;gBACxB,SAAS,EAAE,QAAQ,CAAC,UAAU;gBAC9B,SAAS,EAAE,QAAQ,CAAC,SAAS;aAC9B,CAAC,CAAC;YAEH,uBAAuB;YACvB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE;gBAC9B,MAAM,EAAE,QAAQ,CAAC,OAAO;gBACxB,SAAS,EAAE,QAAQ,CAAC,UAAU,IAAI,CAAC;gBACnC,SAAS,EAAE,QAAQ,CAAC,SAAS;aAC9B,CAAC,CAAC;YAEH,kFAAkF;YAClF,sDAAsD;QACxD,CAAC;aAAM,CAAC;YACN,6DAA6D;YAC7D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF;AAlCD,kCAkCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate-limit-notification-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/rate-limit-notification-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,4BAA4B,EAAsC,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,4BAA6B,SAAQ,kBAAkB,CAAC,4BAA4B,CAAC;IAChG,QAAQ,CAAC,IAAI,EAAG,yBAAyB,CAAU;IACnD,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAsC;IAErD,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,4BAA4B,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"rate-limit-notification-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/rate-limit-notification-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,4BAA4B,EAAsC,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,4BAA6B,SAAQ,kBAAkB,CAAC,4BAA4B,CAAC;IAChG,QAAQ,CAAC,IAAI,EAAG,yBAAyB,CAAU;IACnD,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAsC;IAErD,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,4BAA4B,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CAgChG"}
|
|
@@ -27,8 +27,9 @@ class RateLimitNotificationHandler extends base_handler_1.BaseMessageHandler {
|
|
|
27
27
|
limitType: limit_type,
|
|
28
28
|
resetAt: reset_at
|
|
29
29
|
});
|
|
30
|
-
//
|
|
31
|
-
|
|
30
|
+
// Note: Rate limits are already logged and handled internally
|
|
31
|
+
// Sending via webhook would be redundant
|
|
32
|
+
// Users can listen to the 'rate_limit' event if needed
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
exports.RateLimitNotificationHandler = RateLimitNotificationHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate-limit-notification-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/rate-limit-notification-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAA+F;AAC/F,iDAAoD;AAGpD,MAAa,4BAA6B,SAAQ,iCAAgD;IACvF,IAAI,GAAG,yBAAkC,CAAC;IAC1C,MAAM,GAAG,0CAAkC,CAAC;IAE3C,eAAe,CAAC,OAAqC,EAAE,OAAuB;QACtF,MAAM,EACJ,KAAK,EACL,OAAO,EAAE,GAAG,EACZ,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EACT,GAAG,OAAO,CAAC,IAAI,CAAC;QAEjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtD,KAAK;YACL,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC,CAAC;QAEH,kDAAkD;QAClD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE;YAC/B,KAAK;YACL,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,YAAY;YACzB,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC,CAAC;QAEH,
|
|
1
|
+
{"version":3,"file":"rate-limit-notification-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/rate-limit-notification-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAA+F;AAC/F,iDAAoD;AAGpD,MAAa,4BAA6B,SAAQ,iCAAgD;IACvF,IAAI,GAAG,yBAAkC,CAAC;IAC1C,MAAM,GAAG,0CAAkC,CAAC;IAE3C,eAAe,CAAC,OAAqC,EAAE,OAAuB;QACtF,MAAM,EACJ,KAAK,EACL,OAAO,EAAE,GAAG,EACZ,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EACT,GAAG,OAAO,CAAC,IAAI,CAAC;QAEjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtD,KAAK;YACL,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC,CAAC;QAEH,kDAAkD;QAClD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE;YAC/B,KAAK;YACL,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,YAAY;YACzB,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,QAAQ;SAClB,CAAC,CAAC;QAEH,8DAA8D;QAC9D,yCAAyC;QACzC,uDAAuD;IACzD,CAAC;CACF;AApCD,oEAoCC"}
|
|
@@ -18,6 +18,8 @@ export declare class RegularMessageHandler extends BaseMessageHandler<UserMessag
|
|
|
18
18
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
19
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
20
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
23
|
} & {
|
|
22
24
|
type: import("zod").ZodLiteral<"message">;
|
|
23
25
|
content: import("zod").ZodString;
|
|
@@ -33,6 +35,8 @@ export declare class RegularMessageHandler extends BaseMessageHandler<UserMessag
|
|
|
33
35
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
36
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
37
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
39
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
40
|
} & {
|
|
37
41
|
type: import("zod").ZodLiteral<"message">;
|
|
38
42
|
content: import("zod").ZodString;
|
|
@@ -48,6 +52,8 @@ export declare class RegularMessageHandler extends BaseMessageHandler<UserMessag
|
|
|
48
52
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
53
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
54
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
57
|
} & {
|
|
52
58
|
type: import("zod").ZodLiteral<"message">;
|
|
53
59
|
content: import("zod").ZodString;
|
|
@@ -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,EAA0C,MAAM,aAAa,CAAC;AAElF,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,EAA0C,MAAM,aAAa,CAAC;AAElF,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;CAoD9F"}
|
|
@@ -19,6 +19,8 @@ export declare class SubscribeResponseHandler extends BaseMessageHandler<Subscri
|
|
|
19
19
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
20
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
21
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
24
|
} & {
|
|
23
25
|
type: import("zod").ZodLiteral<"subscribe">;
|
|
24
26
|
data: import("zod").ZodObject<{
|
|
@@ -28,13 +30,13 @@ export declare class SubscribeResponseHandler extends BaseMessageHandler<Subscri
|
|
|
28
30
|
subscriptions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
29
31
|
}, "strip", import("zod").ZodTypeAny, {
|
|
30
32
|
message: string;
|
|
31
|
-
room_id: string;
|
|
32
33
|
success: boolean;
|
|
34
|
+
room_id: string;
|
|
33
35
|
subscriptions?: string[] | undefined;
|
|
34
36
|
}, {
|
|
35
37
|
message: string;
|
|
36
|
-
room_id: string;
|
|
37
38
|
success: boolean;
|
|
39
|
+
room_id: string;
|
|
38
40
|
subscriptions?: string[] | undefined;
|
|
39
41
|
}>;
|
|
40
42
|
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
@@ -49,6 +51,8 @@ export declare class SubscribeResponseHandler extends BaseMessageHandler<Subscri
|
|
|
49
51
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
52
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
53
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
56
|
} & {
|
|
53
57
|
type: import("zod").ZodLiteral<"subscribe">;
|
|
54
58
|
data: import("zod").ZodObject<{
|
|
@@ -58,13 +62,13 @@ export declare class SubscribeResponseHandler extends BaseMessageHandler<Subscri
|
|
|
58
62
|
subscriptions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
59
63
|
}, "strip", import("zod").ZodTypeAny, {
|
|
60
64
|
message: string;
|
|
61
|
-
room_id: string;
|
|
62
65
|
success: boolean;
|
|
66
|
+
room_id: string;
|
|
63
67
|
subscriptions?: string[] | undefined;
|
|
64
68
|
}, {
|
|
65
69
|
message: string;
|
|
66
|
-
room_id: string;
|
|
67
70
|
success: boolean;
|
|
71
|
+
room_id: string;
|
|
68
72
|
subscriptions?: string[] | undefined;
|
|
69
73
|
}>;
|
|
70
74
|
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
@@ -79,6 +83,8 @@ export declare class SubscribeResponseHandler extends BaseMessageHandler<Subscri
|
|
|
79
83
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
84
|
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
85
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
88
|
} & {
|
|
83
89
|
type: import("zod").ZodLiteral<"subscribe">;
|
|
84
90
|
data: import("zod").ZodObject<{
|
|
@@ -88,13 +94,13 @@ export declare class SubscribeResponseHandler extends BaseMessageHandler<Subscri
|
|
|
88
94
|
subscriptions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
89
95
|
}, "strip", import("zod").ZodTypeAny, {
|
|
90
96
|
message: string;
|
|
91
|
-
room_id: string;
|
|
92
97
|
success: boolean;
|
|
98
|
+
room_id: string;
|
|
93
99
|
subscriptions?: string[] | undefined;
|
|
94
100
|
}, {
|
|
95
101
|
message: string;
|
|
96
|
-
room_id: string;
|
|
97
102
|
success: boolean;
|
|
103
|
+
room_id: string;
|
|
98
104
|
subscriptions?: string[] | undefined;
|
|
99
105
|
}>;
|
|
100
106
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-response-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/subscribe-response-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAsC,MAAM,aAAa,CAAC;AAEpF,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,WAAW,CAAU;IACrC,QAAQ,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"subscribe-response-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/subscribe-response-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAsC,MAAM,aAAa,CAAC;AAEpF,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,WAAW,CAAU;IACrC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA2B;IAE1C,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CA0CrF"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handler for success messages
|
|
3
|
+
* Server sends generic success confirmations that can be displayed to users
|
|
4
|
+
*/
|
|
5
|
+
import { SuccessMessage } from "../../types";
|
|
6
|
+
import { BaseMessageHandler } from "./base-handler";
|
|
7
|
+
import { HandlerContext } from "./types";
|
|
8
|
+
export declare class SuccessHandler extends BaseMessageHandler<SuccessMessage> {
|
|
9
|
+
readonly type: "success";
|
|
10
|
+
readonly schema: import("zod").ZodObject<{
|
|
11
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
12
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
} & {
|
|
23
|
+
type: import("zod").ZodLiteral<"success">;
|
|
24
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
from: import("zod").ZodOptional<import("zod").ZodLiteral<"system">>;
|
|
26
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
27
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
29
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
31
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
33
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
34
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
35
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
39
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
} & {
|
|
46
|
+
type: import("zod").ZodLiteral<"success">;
|
|
47
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
from: import("zod").ZodOptional<import("zod").ZodLiteral<"system">>;
|
|
49
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
50
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
52
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
54
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
56
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
57
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<["text/plain", "text/markdown", "text/html", "application/json", "image/*", "STRING", "JSON", "MD", "ARRAY"]>>;
|
|
58
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
room: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
signature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
publicKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
|
+
payment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
67
|
+
request_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
+
} & {
|
|
69
|
+
type: import("zod").ZodLiteral<"success">;
|
|
70
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
|
+
from: import("zod").ZodOptional<import("zod").ZodLiteral<"system">>;
|
|
72
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
73
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
74
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
75
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
76
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
77
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
79
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
80
|
+
protected handleValidated(message: SuccessMessage, context: HandlerContext): void;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=success-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"success-handler.d.ts","sourceRoot":"","sources":["../../../src/handlers/message-handlers/success-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,cAAe,SAAQ,kBAAkB,CAAC,cAAc,CAAC;IACpE,QAAQ,CAAC,IAAI,EAAG,SAAS,CAAU;IACnC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAwB;IAEvC,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;CAYlF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Handler for success messages
|
|
4
|
+
* Server sends generic success confirmations that can be displayed to users
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.SuccessHandler = void 0;
|
|
8
|
+
const types_1 = require("../../types");
|
|
9
|
+
const base_handler_1 = require("./base-handler");
|
|
10
|
+
class SuccessHandler extends base_handler_1.BaseMessageHandler {
|
|
11
|
+
type = "success";
|
|
12
|
+
schema = types_1.SuccessMessageSchema;
|
|
13
|
+
handleValidated(message, context) {
|
|
14
|
+
const content = message.content || message.data?.content;
|
|
15
|
+
context.logger.debug("Handling success message", { content });
|
|
16
|
+
// Emit success event
|
|
17
|
+
this.emit(context, "success", content || "Operation successful");
|
|
18
|
+
// Note: Generic success messages are too vague for webhooks
|
|
19
|
+
// Specific success events (room_operation, etc.) have their own handlers
|
|
20
|
+
// Users can listen to the 'success' event if needed
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.SuccessHandler = SuccessHandler;
|
|
24
|
+
//# sourceMappingURL=success-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"success-handler.js","sourceRoot":"","sources":["../../../src/handlers/message-handlers/success-handler.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uCAAmE;AACnE,iDAAoD;AAGpD,MAAa,cAAe,SAAQ,iCAAkC;IAC3D,IAAI,GAAG,SAAkB,CAAC;IAC1B,MAAM,GAAG,4BAAoB,CAAC;IAE7B,eAAe,CAAC,OAAuB,EAAE,OAAuB;QACxE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;QAEzD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QAE9D,qBAAqB;QACrB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC;QAEjE,4DAA4D;QAC5D,yEAAyE;QACzE,oDAAoD;IACtD,CAAC;CACF;AAhBD,wCAgBC"}
|