@remnawave/backend-contract 2.8.25 → 2.8.27

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.
Files changed (47) hide show
  1. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +5 -5
  2. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +5 -5
  3. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +5 -5
  4. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +8 -8
  5. package/build/backend/commands/hosts/create.command.d.ts +8 -8
  6. package/build/backend/commands/hosts/create.command.js +1 -1
  7. package/build/backend/commands/hosts/get-all.command.d.ts +5 -5
  8. package/build/backend/commands/hosts/get-one.command.d.ts +5 -5
  9. package/build/backend/commands/hosts/reorder.command.d.ts +1 -1
  10. package/build/backend/commands/hosts/update.command.d.ts +9 -9
  11. package/build/backend/commands/hosts/update.command.js +1 -1
  12. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +31 -21
  13. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  14. package/build/backend/commands/infra-billing/create-billing-node.command.js +2 -2
  15. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +34 -14
  16. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
  17. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +22 -15
  18. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
  19. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +22 -15
  20. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
  21. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +34 -14
  22. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
  23. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +42 -18
  24. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
  25. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +22 -15
  26. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  27. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +34 -14
  28. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
  29. package/build/backend/constants/errors/errors.d.ts +5 -0
  30. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  31. package/build/backend/constants/errors/errors.js +5 -0
  32. package/build/backend/models/hosts.schema.d.ts +3 -3
  33. package/build/backend/models/hosts.schema.js +1 -1
  34. package/build/backend/models/infra-billing-node.schema.d.ts +10 -7
  35. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  36. package/build/backend/models/infra-billing-node.schema.js +3 -2
  37. package/build/backend/models/infra-provider.schema.d.ts +26 -10
  38. package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
  39. package/build/backend/models/infra-provider.schema.js +6 -2
  40. package/build/frontend/commands/hosts/create.command.js +1 -1
  41. package/build/frontend/commands/hosts/update.command.js +1 -1
  42. package/build/frontend/commands/infra-billing/create-billing-node.command.js +2 -2
  43. package/build/frontend/constants/errors/errors.js +5 -0
  44. package/build/frontend/models/hosts.schema.js +1 -1
  45. package/build/frontend/models/infra-billing-node.schema.js +3 -2
  46. package/build/frontend/models/infra-provider.schema.js +6 -2
  47. package/package.json +1 -1
@@ -19,7 +19,8 @@ export declare namespace UpdateInfraBillingNodeCommand {
19
19
  totalBillingNodes: z.ZodNumber;
20
20
  billingNodes: z.ZodArray<z.ZodObject<{
21
21
  uuid: z.ZodString;
22
- nodeUuid: z.ZodString;
22
+ nodeUuid: z.ZodNullable<z.ZodString>;
23
+ name: z.ZodNullable<z.ZodString>;
23
24
  providerUuid: z.ZodString;
24
25
  provider: z.ZodObject<Pick<{
25
26
  uuid: z.ZodString;
@@ -39,7 +40,7 @@ export declare namespace UpdateInfraBillingNodeCommand {
39
40
  faviconLink: string | null;
40
41
  loginUrl: string | null;
41
42
  }>;
42
- node: z.ZodObject<Pick<{
43
+ node: z.ZodNullable<z.ZodObject<Pick<{
43
44
  uuid: z.ZodString;
44
45
  name: z.ZodString;
45
46
  address: z.ZodString;
@@ -299,7 +300,7 @@ export declare namespace UpdateInfraBillingNodeCommand {
299
300
  uuid: string;
300
301
  countryCode: string;
301
302
  name: string;
302
- }>;
303
+ }>>;
303
304
  nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
304
305
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
305
306
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -311,14 +312,15 @@ export declare namespace UpdateInfraBillingNodeCommand {
311
312
  uuid: string;
312
313
  countryCode: string;
313
314
  name: string;
314
- };
315
+ } | null;
315
316
  provider: {
316
317
  uuid: string;
317
318
  name: string;
318
319
  faviconLink: string | null;
319
320
  loginUrl: string | null;
320
321
  };
321
- nodeUuid: string;
322
+ nodeUuid: string | null;
323
+ name: string | null;
322
324
  providerUuid: string;
323
325
  nextBillingAt: Date;
324
326
  }, {
@@ -329,14 +331,15 @@ export declare namespace UpdateInfraBillingNodeCommand {
329
331
  uuid: string;
330
332
  countryCode: string;
331
333
  name: string;
332
- };
334
+ } | null;
333
335
  provider: {
334
336
  uuid: string;
335
337
  name: string;
336
338
  faviconLink: string | null;
337
339
  loginUrl: string | null;
338
340
  };
339
- nodeUuid: string;
341
+ nodeUuid: string | null;
342
+ name: string | null;
340
343
  providerUuid: string;
341
344
  nextBillingAt: string;
342
345
  }>, "many">;
@@ -629,14 +632,15 @@ export declare namespace UpdateInfraBillingNodeCommand {
629
632
  uuid: string;
630
633
  countryCode: string;
631
634
  name: string;
632
- };
635
+ } | null;
633
636
  provider: {
634
637
  uuid: string;
635
638
  name: string;
636
639
  faviconLink: string | null;
637
640
  loginUrl: string | null;
638
641
  };
639
- nodeUuid: string;
642
+ nodeUuid: string | null;
643
+ name: string | null;
640
644
  providerUuid: string;
641
645
  nextBillingAt: Date;
642
646
  }[];
@@ -661,14 +665,15 @@ export declare namespace UpdateInfraBillingNodeCommand {
661
665
  uuid: string;
662
666
  countryCode: string;
663
667
  name: string;
664
- };
668
+ } | null;
665
669
  provider: {
666
670
  uuid: string;
667
671
  name: string;
668
672
  faviconLink: string | null;
669
673
  loginUrl: string | null;
670
674
  };
671
- nodeUuid: string;
675
+ nodeUuid: string | null;
676
+ name: string | null;
672
677
  providerUuid: string;
673
678
  nextBillingAt: string;
674
679
  }[];
@@ -695,14 +700,15 @@ export declare namespace UpdateInfraBillingNodeCommand {
695
700
  uuid: string;
696
701
  countryCode: string;
697
702
  name: string;
698
- };
703
+ } | null;
699
704
  provider: {
700
705
  uuid: string;
701
706
  name: string;
702
707
  faviconLink: string | null;
703
708
  loginUrl: string | null;
704
709
  };
705
- nodeUuid: string;
710
+ nodeUuid: string | null;
711
+ name: string | null;
706
712
  providerUuid: string;
707
713
  nextBillingAt: Date;
708
714
  }[];
@@ -729,14 +735,15 @@ export declare namespace UpdateInfraBillingNodeCommand {
729
735
  uuid: string;
730
736
  countryCode: string;
731
737
  name: string;
732
- };
738
+ } | null;
733
739
  provider: {
734
740
  uuid: string;
735
741
  name: string;
736
742
  faviconLink: string | null;
737
743
  loginUrl: string | null;
738
744
  };
739
- nodeUuid: string;
745
+ nodeUuid: string | null;
746
+ name: string | null;
740
747
  providerUuid: string;
741
748
  nextBillingAt: string;
742
749
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"update-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-billing-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,4BAA6C,CAAC;IACvD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAQxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CA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Bills: number;
40
40
  }>;
41
41
  billingNodes: z.ZodArray<z.ZodObject<{
42
- nodeUuid: z.ZodString;
43
42
  name: z.ZodString;
44
- countryCode: z.ZodString;
43
+ details: z.ZodNullable<z.ZodObject<{
44
+ nodeUuid: z.ZodString;
45
+ countryCode: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ nodeUuid: string;
48
+ countryCode: string;
49
+ }, {
50
+ nodeUuid: string;
51
+ countryCode: string;
52
+ }>>;
45
53
  }, "strip", z.ZodTypeAny, {
46
- nodeUuid: string;
47
- countryCode: string;
48
54
  name: string;
55
+ details: {
56
+ nodeUuid: string;
57
+ countryCode: string;
58
+ } | null;
49
59
  }, {
50
- nodeUuid: string;
51
- countryCode: string;
52
60
  name: string;
61
+ details: {
62
+ nodeUuid: string;
63
+ countryCode: string;
64
+ } | null;
53
65
  }>, "many">;
54
66
  }, "strip", z.ZodTypeAny, {
55
67
  uuid: string;
@@ -63,9 +75,11 @@ export declare namespace UpdateInfraProviderCommand {
63
75
  totalBills: number;
64
76
  };
65
77
  billingNodes: {
66
- nodeUuid: string;
67
- countryCode: string;
68
78
  name: string;
79
+ details: {
80
+ nodeUuid: string;
81
+ countryCode: string;
82
+ } | null;
69
83
  }[];
70
84
  }, {
71
85
  uuid: string;
@@ -79,9 +93,11 @@ export declare namespace UpdateInfraProviderCommand {
79
93
  totalBills: number;
80
94
  };
81
95
  billingNodes: {
82
- nodeUuid: string;
83
- countryCode: string;
84
96
  name: string;
97
+ details: {
98
+ nodeUuid: string;
99
+ countryCode: string;
100
+ } | null;
85
101
  }[];
86
102
  }>;
87
103
  }, "strip", z.ZodTypeAny, {
@@ -97,9 +113,11 @@ export declare namespace UpdateInfraProviderCommand {
97
113
  totalBills: number;
98
114
  };
99
115
  billingNodes: {
100
- nodeUuid: string;
101
- countryCode: string;
102
116
  name: string;
117
+ details: {
118
+ nodeUuid: string;
119
+ countryCode: string;
120
+ } | null;
103
121
  }[];
104
122
  };
105
123
  }, {
@@ -115,9 +133,11 @@ export declare namespace UpdateInfraProviderCommand {
115
133
  totalBills: number;
116
134
  };
117
135
  billingNodes: {
118
- nodeUuid: string;
119
- countryCode: string;
120
136
  name: string;
137
+ details: {
138
+ nodeUuid: string;
139
+ countryCode: string;
140
+ } | null;
121
141
  }[];
122
142
  };
123
143
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"update-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;MASxB,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-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;MASxB,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"}
@@ -1174,5 +1174,10 @@ export declare const ERRORS: {
1174
1174
  readonly message: "One or more provided API token scopes are invalid";
1175
1175
  readonly httpCode: 400;
1176
1176
  };
1177
+ readonly CREATE_INFRA_BILLING_NODE_MISSING_TARGET: {
1178
+ readonly code: "A230";
1179
+ readonly message: "Either nodeUuid or name must be provided";
1180
+ readonly httpCode: 400;
1181
+ };
1177
1182
  };
1178
1183
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;CAsK3B,CAAC"}
@@ -1145,4 +1145,9 @@ exports.ERRORS = {
1145
1145
  message: 'One or more provided API token scopes are invalid',
1146
1146
  httpCode: 400,
1147
1147
  },
1148
+ CREATE_INFRA_BILLING_NODE_MISSING_TARGET: {
1149
+ code: 'A230',
1150
+ message: 'Either nodeUuid or name must be provided',
1151
+ httpCode: 400,
1152
+ },
1148
1153
  };
@@ -23,7 +23,7 @@ export declare const HostsSchema: z.ZodObject<{
23
23
  readonly TLS: "TLS";
24
24
  readonly NONE: "NONE";
25
25
  }>>;
26
- xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
26
+ xhttpExtraParams: z.ZodNullable<z.ZodUnknown>;
27
27
  muxParams: z.ZodNullable<z.ZodUnknown>;
28
28
  sockoptParams: z.ZodNullable<z.ZodUnknown>;
29
29
  finalMask: z.ZodNullable<z.ZodUnknown>;
@@ -97,7 +97,7 @@ export declare const HostsSchema: z.ZodObject<{
97
97
  xrayJsonTemplateUuid: string | null;
98
98
  excludedInternalSquads: string[];
99
99
  excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
100
- xHttpExtraParams?: unknown;
100
+ xhttpExtraParams?: unknown;
101
101
  muxParams?: unknown;
102
102
  sockoptParams?: unknown;
103
103
  finalMask?: unknown;
@@ -130,7 +130,7 @@ export declare const HostsSchema: z.ZodObject<{
130
130
  excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
131
131
  tags?: string[] | undefined;
132
132
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
133
- xHttpExtraParams?: unknown;
133
+ xhttpExtraParams?: unknown;
134
134
  muxParams?: unknown;
135
135
  sockoptParams?: unknown;
136
136
  finalMask?: unknown;
@@ -17,7 +17,7 @@ exports.HostsSchema = zod_1.z.object({
17
17
  fingerprint: zod_1.z.string().nullable(),
18
18
  isDisabled: zod_1.z.boolean(),
19
19
  securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
20
- xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
20
+ xhttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
21
21
  muxParams: zod_1.z.nullable(zod_1.z.unknown()),
22
22
  sockoptParams: zod_1.z.nullable(zod_1.z.unknown()),
23
23
  finalMask: zod_1.z.nullable(zod_1.z.unknown()),
@@ -1,7 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const InfraBillingNodeSchema: z.ZodObject<{
3
3
  uuid: z.ZodString;
4
- nodeUuid: z.ZodString;
4
+ nodeUuid: z.ZodNullable<z.ZodString>;
5
+ name: z.ZodNullable<z.ZodString>;
5
6
  providerUuid: z.ZodString;
6
7
  provider: z.ZodObject<Pick<{
7
8
  uuid: z.ZodString;
@@ -21,7 +22,7 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
21
22
  faviconLink: string | null;
22
23
  loginUrl: string | null;
23
24
  }>;
24
- node: z.ZodObject<Pick<{
25
+ node: z.ZodNullable<z.ZodObject<Pick<{
25
26
  uuid: z.ZodString;
26
27
  name: z.ZodString;
27
28
  address: z.ZodString;
@@ -281,7 +282,7 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
281
282
  uuid: string;
282
283
  countryCode: string;
283
284
  name: string;
284
- }>;
285
+ }>>;
285
286
  nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
286
287
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
287
288
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -293,14 +294,15 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
293
294
  uuid: string;
294
295
  countryCode: string;
295
296
  name: string;
296
- };
297
+ } | null;
297
298
  provider: {
298
299
  uuid: string;
299
300
  name: string;
300
301
  faviconLink: string | null;
301
302
  loginUrl: string | null;
302
303
  };
303
- nodeUuid: string;
304
+ nodeUuid: string | null;
305
+ name: string | null;
304
306
  providerUuid: string;
305
307
  nextBillingAt: Date;
306
308
  }, {
@@ -311,14 +313,15 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
311
313
  uuid: string;
312
314
  countryCode: string;
313
315
  name: string;
314
- };
316
+ } | null;
315
317
  provider: {
316
318
  uuid: string;
317
319
  name: string;
318
320
  faviconLink: string | null;
319
321
  loginUrl: string | null;
320
322
  };
321
- nodeUuid: string;
323
+ nodeUuid: string | null;
324
+ name: string | null;
322
325
  providerUuid: string;
323
326
  nextBillingAt: string;
324
327
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
1
+ {"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BjC,CAAC"}
@@ -6,7 +6,8 @@ const infra_provider_schema_1 = require("./infra-provider.schema");
6
6
  const nodes_schema_1 = require("./nodes.schema");
7
7
  exports.InfraBillingNodeSchema = zod_1.z.object({
8
8
  uuid: zod_1.z.string().uuid(),
9
- nodeUuid: zod_1.z.string().uuid(),
9
+ nodeUuid: zod_1.z.string().uuid().nullable(),
10
+ name: zod_1.z.string().nullable(),
10
11
  providerUuid: zod_1.z.string().uuid(),
11
12
  provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
12
13
  uuid: true,
@@ -18,7 +19,7 @@ exports.InfraBillingNodeSchema = zod_1.z.object({
18
19
  uuid: true,
19
20
  name: true,
20
21
  countryCode: true,
21
- }),
22
+ }).nullable(),
22
23
  nextBillingAt: zod_1.z
23
24
  .string()
24
25
  .datetime()
@@ -17,17 +17,29 @@ export declare const InfraProviderSchema: z.ZodObject<{
17
17
  totalBills: number;
18
18
  }>;
19
19
  billingNodes: z.ZodArray<z.ZodObject<{
20
- nodeUuid: z.ZodString;
21
20
  name: z.ZodString;
22
- countryCode: z.ZodString;
21
+ details: z.ZodNullable<z.ZodObject<{
22
+ nodeUuid: z.ZodString;
23
+ countryCode: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ nodeUuid: string;
26
+ countryCode: string;
27
+ }, {
28
+ nodeUuid: string;
29
+ countryCode: string;
30
+ }>>;
23
31
  }, "strip", z.ZodTypeAny, {
24
- nodeUuid: string;
25
- countryCode: string;
26
32
  name: string;
33
+ details: {
34
+ nodeUuid: string;
35
+ countryCode: string;
36
+ } | null;
27
37
  }, {
28
- nodeUuid: string;
29
- countryCode: string;
30
38
  name: string;
39
+ details: {
40
+ nodeUuid: string;
41
+ countryCode: string;
42
+ } | null;
31
43
  }>, "many">;
32
44
  }, "strip", z.ZodTypeAny, {
33
45
  uuid: string;
@@ -41,9 +53,11 @@ export declare const InfraProviderSchema: z.ZodObject<{
41
53
  totalBills: number;
42
54
  };
43
55
  billingNodes: {
44
- nodeUuid: string;
45
- countryCode: string;
46
56
  name: string;
57
+ details: {
58
+ nodeUuid: string;
59
+ countryCode: string;
60
+ } | null;
47
61
  }[];
48
62
  }, {
49
63
  uuid: string;
@@ -57,9 +71,11 @@ export declare const InfraProviderSchema: z.ZodObject<{
57
71
  totalBills: number;
58
72
  };
59
73
  billingNodes: {
60
- nodeUuid: string;
61
- countryCode: string;
62
74
  name: string;
75
+ details: {
76
+ nodeUuid: string;
77
+ countryCode: string;
78
+ } | null;
63
79
  }[];
64
80
  }>;
65
81
  export declare const PartialInfraProviderSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
1
+ {"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8B9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
@@ -20,9 +20,13 @@ exports.InfraProviderSchema = zod_1.z.object({
20
20
  totalBills: zod_1.z.number(),
21
21
  }),
22
22
  billingNodes: zod_1.z.array(zod_1.z.object({
23
- nodeUuid: zod_1.z.string().uuid(),
24
23
  name: zod_1.z.string(),
25
- countryCode: zod_1.z.string(),
24
+ details: zod_1.z
25
+ .object({
26
+ nodeUuid: zod_1.z.string().uuid(),
27
+ countryCode: zod_1.z.string(),
28
+ })
29
+ .nullable(),
26
30
  })),
27
31
  });
28
32
  exports.PartialInfraProviderSchema = zod_1.z.object({
@@ -40,7 +40,7 @@ var CreateHostCommand;
40
40
  fingerprint: zod_1.z.string().nullish(),
41
41
  isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
42
42
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
43
- xHttpExtraParams: zod_1.z.unknown().nullish(),
43
+ xhttpExtraParams: zod_1.z.unknown().nullish(),
44
44
  muxParams: zod_1.z.unknown().nullish(),
45
45
  sockoptParams: zod_1.z.unknown().nullish(),
46
46
  finalMask: zod_1.z.unknown().nullish(),
@@ -45,7 +45,7 @@ var UpdateHostCommand;
45
45
  fingerprint: zod_1.z.string().nullish(),
46
46
  isDisabled: zod_1.z.boolean().default(false),
47
47
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
48
- xHttpExtraParams: zod_1.z.unknown().nullish(),
48
+ xhttpExtraParams: zod_1.z.unknown().nullish(),
49
49
  muxParams: zod_1.z.unknown().nullish(),
50
50
  sockoptParams: zod_1.z.unknown().nullish(),
51
51
  finalMask: zod_1.z.unknown().nullish(),
@@ -12,14 +12,14 @@ var CreateInfraBillingNodeCommand;
12
12
  CreateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE, 'post', 'Create infra billing node', { scope: 'create-billing-node', kind: 'write' });
13
13
  CreateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
14
14
  providerUuid: zod_1.z.string().uuid(),
15
- nodeUuid: zod_1.z.string().uuid(),
15
+ nodeUuid: zod_1.z.string().uuid().nullable(),
16
+ name: zod_1.z.string().min(1).max(255).nullable(),
16
17
  nextBillingAt: zod_1.z
17
18
  .string({
18
19
  invalid_type_error: 'Invalid date format',
19
20
  })
20
21
  .datetime({ message: 'Invalid date format', offset: true, local: true })
21
22
  .transform((str) => new Date(str))
22
- .optional()
23
23
  .describe('Next billing date. Format: 2025-01-17T15:38:45.065Z'),
24
24
  });
25
25
  CreateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
@@ -1145,4 +1145,9 @@ exports.ERRORS = {
1145
1145
  message: 'One or more provided API token scopes are invalid',
1146
1146
  httpCode: 400,
1147
1147
  },
1148
+ CREATE_INFRA_BILLING_NODE_MISSING_TARGET: {
1149
+ code: 'A230',
1150
+ message: 'Either nodeUuid or name must be provided',
1151
+ httpCode: 400,
1152
+ },
1148
1153
  };
@@ -17,7 +17,7 @@ exports.HostsSchema = zod_1.z.object({
17
17
  fingerprint: zod_1.z.string().nullable(),
18
18
  isDisabled: zod_1.z.boolean(),
19
19
  securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
20
- xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
20
+ xhttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
21
21
  muxParams: zod_1.z.nullable(zod_1.z.unknown()),
22
22
  sockoptParams: zod_1.z.nullable(zod_1.z.unknown()),
23
23
  finalMask: zod_1.z.nullable(zod_1.z.unknown()),
@@ -6,7 +6,8 @@ const infra_provider_schema_1 = require("./infra-provider.schema");
6
6
  const nodes_schema_1 = require("./nodes.schema");
7
7
  exports.InfraBillingNodeSchema = zod_1.z.object({
8
8
  uuid: zod_1.z.string().uuid(),
9
- nodeUuid: zod_1.z.string().uuid(),
9
+ nodeUuid: zod_1.z.string().uuid().nullable(),
10
+ name: zod_1.z.string().nullable(),
10
11
  providerUuid: zod_1.z.string().uuid(),
11
12
  provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
12
13
  uuid: true,
@@ -18,7 +19,7 @@ exports.InfraBillingNodeSchema = zod_1.z.object({
18
19
  uuid: true,
19
20
  name: true,
20
21
  countryCode: true,
21
- }),
22
+ }).nullable(),
22
23
  nextBillingAt: zod_1.z
23
24
  .string()
24
25
  .datetime()
@@ -20,9 +20,13 @@ exports.InfraProviderSchema = zod_1.z.object({
20
20
  totalBills: zod_1.z.number(),
21
21
  }),
22
22
  billingNodes: zod_1.z.array(zod_1.z.object({
23
- nodeUuid: zod_1.z.string().uuid(),
24
23
  name: zod_1.z.string(),
25
- countryCode: zod_1.z.string(),
24
+ details: zod_1.z
25
+ .object({
26
+ nodeUuid: zod_1.z.string().uuid(),
27
+ countryCode: zod_1.z.string(),
28
+ })
29
+ .nullable(),
26
30
  })),
27
31
  });
28
32
  exports.PartialInfraProviderSchema = zod_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.8.25",
3
+ "version": "2.8.27",
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.",