@remnawave/backend-contract 0.0.67 → 0.0.69

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.
@@ -4,10 +4,16 @@ export declare namespace GetSubscriptionByShortUuidCommand {
4
4
  const TSQ_url: string;
5
5
  const RequestSchema: z.ZodObject<{
6
6
  shortUuid: z.ZodString;
7
+ type: z.ZodOptional<z.ZodString>;
8
+ encodedTag: z.ZodOptional<z.ZodString>;
7
9
  }, "strip", z.ZodTypeAny, {
8
10
  shortUuid: string;
11
+ type?: string | undefined;
12
+ encodedTag?: string | undefined;
9
13
  }, {
10
14
  shortUuid: string;
15
+ type?: string | undefined;
16
+ encodedTag?: string | undefined;
11
17
  }>;
12
18
  type Request = z.infer<typeof RequestSchema>;
13
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAA4B,CAAC;IACtC,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;CACvD"}
1
+ {"version":3,"file":"get-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAA4B,CAAC;IACtC,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;;;;;;;MAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;CACvD"}
@@ -9,5 +9,7 @@ var GetSubscriptionByShortUuidCommand;
9
9
  GetSubscriptionByShortUuidCommand.TSQ_url = GetSubscriptionByShortUuidCommand.url(':shortUuid');
10
10
  GetSubscriptionByShortUuidCommand.RequestSchema = zod_1.z.object({
11
11
  shortUuid: zod_1.z.string(),
12
+ type: zod_1.z.optional(zod_1.z.string()),
13
+ encodedTag: zod_1.z.optional(zod_1.z.string()),
12
14
  });
13
15
  })(GetSubscriptionByShortUuidCommand || (exports.GetSubscriptionByShortUuidCommand = GetSubscriptionByShortUuidCommand = {}));
@@ -11,7 +11,7 @@ export declare namespace GetUserByUuidCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<{
14
+ response: z.ZodObject<z.objectUtil.extendShape<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -45,7 +45,9 @@ export declare namespace GetUserByUuidCommand {
45
45
  type: string;
46
46
  tag: string;
47
47
  }>, "many">;
48
- }, "strip", z.ZodTypeAny, {
48
+ }, {
49
+ subscriptionUrl: z.ZodString;
50
+ }>, "strip", z.ZodTypeAny, {
49
51
  uuid: string;
50
52
  username: string;
51
53
  status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
@@ -71,6 +73,7 @@ export declare namespace GetUserByUuidCommand {
71
73
  type: string;
72
74
  tag: string;
73
75
  }[];
76
+ subscriptionUrl: string;
74
77
  }, {
75
78
  uuid: string;
76
79
  username: string;
@@ -94,6 +97,7 @@ export declare namespace GetUserByUuidCommand {
94
97
  type: string;
95
98
  tag: string;
96
99
  }[];
100
+ subscriptionUrl: string;
97
101
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
98
102
  trafficLimitBytes?: number | undefined;
99
103
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -125,6 +129,7 @@ export declare namespace GetUserByUuidCommand {
125
129
  type: string;
126
130
  tag: string;
127
131
  }[];
132
+ subscriptionUrl: string;
128
133
  };
129
134
  }, {
130
135
  response: {
@@ -150,6 +155,7 @@ export declare namespace GetUserByUuidCommand {
150
155
  type: string;
151
156
  tag: string;
152
157
  }[];
158
+ subscriptionUrl: string;
153
159
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
154
160
  trafficLimitBytes?: number | undefined;
155
161
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -12,6 +12,8 @@ var GetUserByUuidCommand;
12
12
  uuid: zod_1.z.string().uuid(),
13
13
  });
14
14
  GetUserByUuidCommand.ResponseSchema = zod_1.z.object({
15
- response: users_schema_1.UsersSchema,
15
+ response: users_schema_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ }),
16
18
  });
17
19
  })(GetUserByUuidCommand || (exports.GetUserByUuidCommand = GetUserByUuidCommand = {}));
@@ -20,6 +20,7 @@ export declare const EVENTS: {
20
20
  CONNECTION_LOST: string;
21
21
  CONNECTION_RESTORED: string;
22
22
  RESTARTED: string;
23
+ TRAFFIC_NOTIFY: string;
23
24
  };
24
25
  };
25
26
  //# 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;;;;;;;;;;;;;;;;;;;;;;;CAuBlB,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAwBlB,CAAC"}
@@ -23,5 +23,6 @@ exports.EVENTS = {
23
23
  CONNECTION_LOST: 'node.connection_lost',
24
24
  CONNECTION_RESTORED: 'node.connection_restored',
25
25
  RESTARTED: 'node.restarted',
26
+ TRAFFIC_NOTIFY: 'node.traffic_notify',
26
27
  },
27
28
  };
@@ -9,5 +9,7 @@ var GetSubscriptionByShortUuidCommand;
9
9
  GetSubscriptionByShortUuidCommand.TSQ_url = GetSubscriptionByShortUuidCommand.url(':shortUuid');
10
10
  GetSubscriptionByShortUuidCommand.RequestSchema = zod_1.z.object({
11
11
  shortUuid: zod_1.z.string(),
12
+ type: zod_1.z.optional(zod_1.z.string()),
13
+ encodedTag: zod_1.z.optional(zod_1.z.string()),
12
14
  });
13
15
  })(GetSubscriptionByShortUuidCommand || (exports.GetSubscriptionByShortUuidCommand = GetSubscriptionByShortUuidCommand = {}));
@@ -12,6 +12,8 @@ var GetUserByUuidCommand;
12
12
  uuid: zod_1.z.string().uuid(),
13
13
  });
14
14
  GetUserByUuidCommand.ResponseSchema = zod_1.z.object({
15
- response: users_schema_1.UsersSchema,
15
+ response: users_schema_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ }),
16
18
  });
17
19
  })(GetUserByUuidCommand || (exports.GetUserByUuidCommand = GetUserByUuidCommand = {}));
@@ -23,5 +23,6 @@ exports.EVENTS = {
23
23
  CONNECTION_LOST: 'node.connection_lost',
24
24
  CONNECTION_RESTORED: 'node.connection_restored',
25
25
  RESTARTED: 'node.restarted',
26
+ TRAFFIC_NOTIFY: 'node.traffic_notify',
26
27
  },
27
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "public": true,
5
5
  "description": "A contract library for Remnawave",
6
6
  "author": "REMNAWAVE <github.com/remnawave>",