2023-08-04 13:34:18 +02:00
|
|
|
package app
|
|
|
|
|
2025-04-19 21:29:26 +02:00
|
|
|
// region misc-events
|
|
|
|
|
|
|
|
const TopicAuthLogin = "auth:login"
|
|
|
|
const TopicRouteUpdate = "route:update"
|
|
|
|
const TopicRouteRemove = "route:remove"
|
|
|
|
|
|
|
|
// endregion misc-events
|
|
|
|
|
|
|
|
// region user-events
|
|
|
|
|
2023-08-04 13:34:18 +02:00
|
|
|
const TopicUserCreated = "user:created"
|
2025-04-19 21:29:26 +02:00
|
|
|
const TopicUserDeleted = "user:deleted"
|
|
|
|
const TopicUserUpdated = "user:updated"
|
2025-01-11 18:44:55 +01:00
|
|
|
const TopicUserApiEnabled = "user:api:enabled"
|
|
|
|
const TopicUserApiDisabled = "user:api:disabled"
|
2023-08-04 13:34:18 +02:00
|
|
|
const TopicUserRegistered = "user:registered"
|
|
|
|
const TopicUserDisabled = "user:disabled"
|
2025-01-05 10:06:34 +01:00
|
|
|
const TopicUserEnabled = "user:enabled"
|
2025-04-19 21:29:26 +02:00
|
|
|
|
|
|
|
// endregion user-events
|
|
|
|
|
|
|
|
// region interface-events
|
|
|
|
|
|
|
|
const TopicInterfaceCreated = "interface:created"
|
2023-08-04 13:34:18 +02:00
|
|
|
const TopicInterfaceUpdated = "interface:updated"
|
2025-04-19 21:29:26 +02:00
|
|
|
const TopicInterfaceDeleted = "interface:deleted"
|
|
|
|
|
|
|
|
// endregion interface-events
|
|
|
|
|
|
|
|
// region peer-events
|
|
|
|
|
|
|
|
const TopicPeerCreated = "peer:created"
|
|
|
|
const TopicPeerDeleted = "peer:deleted"
|
|
|
|
const TopicPeerUpdated = "peer:updated"
|
2023-08-04 13:34:18 +02:00
|
|
|
const TopicPeerInterfaceUpdated = "peer:interface:updated"
|
2025-01-05 11:30:34 +01:00
|
|
|
const TopicPeerIdentifierUpdated = "peer:identifier:updated"
|
add webhook event for peer state change (#444) (#468)
* add webhook event for peer state change (#444)
new event types: connect and disconnect
example payload:
```json
{
"event": "connect",
"entity": "peer",
"identifier": "Fb5TaziAs1WrPBjC/MFbWsIelVXvi0hDKZ3YQM9wmU8=",
"payload": {
"PeerId": "Fb5TaziAs1WrPBjC/MFbWsIelVXvi0hDKZ3YQM9wmU8=",
"IsConnected": true,
"IsPingable": false,
"LastPing": null,
"BytesReceived": 1860,
"BytesTransmitted": 10824,
"LastHandshake": "2025-06-26T23:04:33.325216659+02:00",
"Endpoint": "10.55.66.77:33874",
"LastSessionStart": "2025-06-26T22:50:40.10221606+02:00"
}
}
```
* add webhook docs (#444)
2025-06-27 12:37:10 +02:00
|
|
|
const TopicPeerStateChanged = "peer:state:changed"
|
2025-03-29 16:42:31 +01:00
|
|
|
|
2025-04-19 21:29:26 +02:00
|
|
|
// endregion peer-events
|
|
|
|
|
|
|
|
// region audit-events
|
|
|
|
|
2025-03-29 16:42:31 +01:00
|
|
|
const TopicAuditLoginSuccess = "audit:login:success"
|
|
|
|
const TopicAuditLoginFailed = "audit:login:failed"
|
|
|
|
|
|
|
|
const TopicAuditInterfaceChanged = "audit:interface:changed"
|
|
|
|
const TopicAuditPeerChanged = "audit:peer:changed"
|
2025-04-19 21:29:26 +02:00
|
|
|
|
|
|
|
// endregion audit-events
|