@remnawave/backend-contract 0.7.0 → 0.7.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.
@@ -26,9 +26,16 @@ export declare const EVENTS: {
26
26
  readonly CONNECTION_RESTORED: "node.connection_restored";
27
27
  readonly TRAFFIC_NOTIFY: "node.traffic_notify";
28
28
  };
29
+ readonly SERVICE: {
30
+ readonly PANEL_STARTED: "service.panel_started";
31
+ readonly LOGIN_ATTEMPT_FAILED: "service.login_attempt_failed";
32
+ readonly LOGIN_ATTEMPT_SUCCESS: "service.login_attempt_success";
33
+ };
29
34
  readonly CATCH_ALL_USER_EVENTS: "user.*";
30
35
  readonly CATCH_ALL_NODE_EVENTS: "node.*";
36
+ readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
31
37
  };
32
38
  export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
33
39
  export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
40
+ export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE];
34
41
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC"}
@@ -29,6 +29,12 @@ exports.EVENTS = {
29
29
  CONNECTION_RESTORED: 'node.connection_restored',
30
30
  TRAFFIC_NOTIFY: 'node.traffic_notify',
31
31
  },
32
+ SERVICE: {
33
+ PANEL_STARTED: 'service.panel_started',
34
+ LOGIN_ATTEMPT_FAILED: 'service.login_attempt_failed',
35
+ LOGIN_ATTEMPT_SUCCESS: 'service.login_attempt_success',
36
+ },
32
37
  CATCH_ALL_USER_EVENTS: 'user.*',
33
38
  CATCH_ALL_NODE_EVENTS: 'node.*',
39
+ CATCH_ALL_SERVICE_EVENTS: 'service.*',
34
40
  };
@@ -29,6 +29,12 @@ exports.EVENTS = {
29
29
  CONNECTION_RESTORED: 'node.connection_restored',
30
30
  TRAFFIC_NOTIFY: 'node.traffic_notify',
31
31
  },
32
+ SERVICE: {
33
+ PANEL_STARTED: 'service.panel_started',
34
+ LOGIN_ATTEMPT_FAILED: 'service.login_attempt_failed',
35
+ LOGIN_ATTEMPT_SUCCESS: 'service.login_attempt_success',
36
+ },
32
37
  CATCH_ALL_USER_EVENTS: 'user.*',
33
38
  CATCH_ALL_NODE_EVENTS: 'node.*',
39
+ CATCH_ALL_SERVICE_EVENTS: 'service.*',
34
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",