@remnawave/backend-contract 0.7.13 → 0.7.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BxB,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":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BxB,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"}
@@ -27,7 +27,7 @@ var UpdateSubscriptionSettingsCommand;
27
27
  expiredUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
28
28
  limitedUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
29
29
  disabledUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
30
- customResponseHeaders: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
30
+ customResponseHeaders: zod_1.z.optional(zod_1.z.record(zod_1.z.string().regex(/^[!#$%&'*+-.^_`|~0-9a-zA-Z]+$/, 'Invalid header name'), zod_1.z.string())),
31
31
  randomizeHosts: zod_1.z.optional(zod_1.z.boolean()),
32
32
  });
33
33
  UpdateSubscriptionSettingsCommand.ResponseSchema = zod_1.z.object({
@@ -86,7 +86,7 @@ var CreateUserCommand;
86
86
  invalid_type_error: 'Enabled inbounds must be an array',
87
87
  })
88
88
  .optional()
89
- .describe('Optional.Array of UUIDs representing enabled inbound connections.'),
89
+ .describe('Optional. Array of UUIDs representing enabled inbound connections.'),
90
90
  expireAt: zod_1.z
91
91
  .string({
92
92
  required_error: 'Expiration date is required',
@@ -554,5 +554,10 @@ export declare const ERRORS: {
554
554
  readonly message: "Trigger threshold notification error";
555
555
  readonly httpCode: 500;
556
556
  };
557
+ readonly BULK_DELETE_BY_STATUS_ERROR: {
558
+ readonly code: "A106";
559
+ readonly message: "Bulk delete by status error";
560
+ readonly httpCode: 500;
561
+ };
557
562
  };
558
563
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+N3B,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoO3B,CAAC"}
@@ -525,4 +525,9 @@ exports.ERRORS = {
525
525
  message: 'Trigger threshold notification error',
526
526
  httpCode: 500,
527
527
  },
528
+ BULK_DELETE_BY_STATUS_ERROR: {
529
+ code: 'A106',
530
+ message: 'Bulk delete by status error',
531
+ httpCode: 500,
532
+ },
528
533
  };
@@ -27,7 +27,7 @@ var UpdateSubscriptionSettingsCommand;
27
27
  expiredUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
28
28
  limitedUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
29
29
  disabledUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
30
- customResponseHeaders: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
30
+ customResponseHeaders: zod_1.z.optional(zod_1.z.record(zod_1.z.string().regex(/^[!#$%&'*+-.^_`|~0-9a-zA-Z]+$/, 'Invalid header name'), zod_1.z.string())),
31
31
  randomizeHosts: zod_1.z.optional(zod_1.z.boolean()),
32
32
  });
33
33
  UpdateSubscriptionSettingsCommand.ResponseSchema = zod_1.z.object({
@@ -86,7 +86,7 @@ var CreateUserCommand;
86
86
  invalid_type_error: 'Enabled inbounds must be an array',
87
87
  })
88
88
  .optional()
89
- .describe('Optional.Array of UUIDs representing enabled inbound connections.'),
89
+ .describe('Optional. Array of UUIDs representing enabled inbound connections.'),
90
90
  expireAt: zod_1.z
91
91
  .string({
92
92
  required_error: 'Expiration date is required',
@@ -525,4 +525,9 @@ exports.ERRORS = {
525
525
  message: 'Trigger threshold notification error',
526
526
  httpCode: 500,
527
527
  },
528
+ BULK_DELETE_BY_STATUS_ERROR: {
529
+ code: 'A106',
530
+ message: 'Bulk delete by status error',
531
+ httpCode: 500,
532
+ },
528
533
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
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.",