@remnawave/backend-contract 2.0.0-alpha.18 → 2.0.0-alpha.2

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 (138) hide show
  1. package/build/backend/api/controllers/index.d.ts +0 -1
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +0 -1
  4. package/build/backend/api/controllers/users.d.ts +0 -1
  5. package/build/backend/api/controllers/users.d.ts.map +1 -1
  6. package/build/backend/api/controllers/users.js +0 -1
  7. package/build/backend/api/routes.d.ts +0 -15
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +0 -15
  10. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  11. package/build/backend/commands/hosts/create.command.d.ts +6 -6
  12. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  13. package/build/backend/commands/hosts/create.command.js +2 -4
  14. package/build/backend/commands/index.d.ts +0 -1
  15. package/build/backend/commands/index.d.ts.map +1 -1
  16. package/build/backend/commands/index.js +0 -1
  17. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  18. package/build/backend/commands/nodes/actions/disable.command.d.ts +0 -59
  19. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  20. package/build/backend/commands/nodes/actions/enable.command.d.ts +0 -59
  21. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  22. package/build/backend/commands/nodes/actions/reorder.command.d.ts +0 -82
  23. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  24. package/build/backend/commands/nodes/create.command.d.ts +0 -62
  25. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/nodes/create.command.js +0 -1
  27. package/build/backend/commands/nodes/get-all.command.d.ts +0 -59
  28. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/nodes/get-one.command.d.ts +0 -59
  30. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  32. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  33. package/build/backend/commands/nodes/update.command.d.ts +0 -85
  34. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/nodes/update.command.js +0 -1
  36. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  37. package/build/backend/commands/users/index.d.ts +0 -1
  38. package/build/backend/commands/users/index.d.ts.map +1 -1
  39. package/build/backend/commands/users/index.js +0 -1
  40. package/build/backend/constants/errors/errors.d.ts +0 -70
  41. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  42. package/build/backend/constants/errors/errors.js +0 -70
  43. package/build/backend/models/index.d.ts +0 -4
  44. package/build/backend/models/index.d.ts.map +1 -1
  45. package/build/backend/models/index.js +0 -4
  46. package/build/backend/models/nodes.schema.d.ts +0 -41
  47. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  48. package/build/backend/models/nodes.schema.js +0 -3
  49. package/build/frontend/api/controllers/index.js +0 -1
  50. package/build/frontend/api/controllers/users.js +0 -1
  51. package/build/frontend/api/routes.js +0 -15
  52. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  53. package/build/frontend/commands/hosts/create.command.js +2 -4
  54. package/build/frontend/commands/index.js +0 -1
  55. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  56. package/build/frontend/commands/nodes/create.command.js +0 -1
  57. package/build/frontend/commands/nodes/update.command.js +0 -1
  58. package/build/frontend/commands/users/index.js +0 -1
  59. package/build/frontend/constants/errors/errors.js +0 -70
  60. package/build/frontend/models/index.js +0 -4
  61. package/build/frontend/models/nodes.schema.js +0 -3
  62. package/package.json +1 -1
  63. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  64. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  65. package/build/backend/api/controllers/infra-billing.js +0 -18
  66. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  67. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  68. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  69. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -413
  70. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  71. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  72. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  73. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  74. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  75. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  76. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  77. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  78. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -407
  79. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  80. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  81. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  82. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  83. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  84. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  85. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  86. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  87. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +0 -399
  88. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +0 -1
  89. package/build/backend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  90. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  91. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  92. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  93. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  94. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  95. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  96. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  97. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  98. package/build/backend/commands/infra-billing/index.js +0 -28
  99. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -410
  100. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  101. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  102. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  103. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  104. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  105. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  106. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  107. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  108. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -90
  109. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  110. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  111. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  112. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  113. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  114. package/build/backend/models/infra-billing-node.schema.d.ts +0 -153
  115. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  116. package/build/backend/models/infra-billing-node.schema.js +0 -34
  117. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  118. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  119. package/build/backend/models/infra-provider.schema.js +0 -41
  120. package/build/frontend/api/controllers/infra-billing.js +0 -18
  121. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  122. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  123. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  124. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  125. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  126. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  127. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  128. package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  129. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  130. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  131. package/build/frontend/commands/infra-billing/index.js +0 -28
  132. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  133. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  134. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  135. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  136. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  137. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  138. package/build/frontend/models/infra-provider.schema.js +0 -41
@@ -649,75 +649,5 @@ export declare const ERRORS: {
649
649
  readonly message: "Config profile inbound not found in specified profile";
650
650
  readonly httpCode: 404;
651
651
  };
652
- readonly GET_USER_ACCESSIBLE_NODES_ERROR: {
653
- readonly code: "A125";
654
- readonly message: "Get user accessible nodes error";
655
- readonly httpCode: 500;
656
- };
657
- readonly GET_INFRA_PROVIDERS_ERROR: {
658
- readonly code: "A126";
659
- readonly message: "Get infra providers error";
660
- readonly httpCode: 500;
661
- };
662
- readonly GET_INFRA_PROVIDER_BY_UUID_ERROR: {
663
- readonly code: "A127";
664
- readonly message: "Get infra provider by UUID error";
665
- readonly httpCode: 500;
666
- };
667
- readonly INFRA_PROVIDER_NOT_FOUND: {
668
- readonly code: "A128";
669
- readonly message: "Infra provider not found";
670
- readonly httpCode: 404;
671
- };
672
- readonly DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
673
- readonly code: "A129";
674
- readonly message: "Delete infra provider by UUID error";
675
- readonly httpCode: 500;
676
- };
677
- readonly CREATE_INFRA_PROVIDER_ERROR: {
678
- readonly code: "A130";
679
- readonly message: "Create infra provider error";
680
- readonly httpCode: 500;
681
- };
682
- readonly UPDATE_INFRA_PROVIDER_ERROR: {
683
- readonly code: "A131";
684
- readonly message: "Update infra provider error";
685
- readonly httpCode: 500;
686
- };
687
- readonly CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
688
- readonly code: "A132";
689
- readonly message: "Create infra billing history record error";
690
- readonly httpCode: 500;
691
- };
692
- readonly GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
693
- readonly code: "A133";
694
- readonly message: "Get infra billing history records error";
695
- readonly httpCode: 500;
696
- };
697
- readonly DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
698
- readonly code: "A134";
699
- readonly message: "Delete infra billing history record by UUID error";
700
- readonly httpCode: 500;
701
- };
702
- readonly GET_BILLING_NODES_ERROR: {
703
- readonly code: "A135";
704
- readonly message: "Get billing nodes error";
705
- readonly httpCode: 500;
706
- };
707
- readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
708
- readonly code: "A136";
709
- readonly message: "Update infra billing node error";
710
- readonly httpCode: 500;
711
- };
712
- readonly CREATE_INFRA_BILLING_NODE_ERROR: {
713
- readonly code: "A137";
714
- readonly message: "Create infra billing node error";
715
- readonly httpCode: 500;
716
- };
717
- readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
718
- readonly code: "A138";
719
- readonly message: "Delete infra billing node by UUID error";
720
- readonly httpCode: 500;
721
- };
722
652
  };
723
653
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqY3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+T3B,CAAC"}
@@ -620,74 +620,4 @@ exports.ERRORS = {
620
620
  message: 'Config profile inbound not found in specified profile',
621
621
  httpCode: 404,
622
622
  },
623
- GET_USER_ACCESSIBLE_NODES_ERROR: {
624
- code: 'A125',
625
- message: 'Get user accessible nodes error',
626
- httpCode: 500,
627
- },
628
- GET_INFRA_PROVIDERS_ERROR: {
629
- code: 'A126',
630
- message: 'Get infra providers error',
631
- httpCode: 500,
632
- },
633
- GET_INFRA_PROVIDER_BY_UUID_ERROR: {
634
- code: 'A127',
635
- message: 'Get infra provider by UUID error',
636
- httpCode: 500,
637
- },
638
- INFRA_PROVIDER_NOT_FOUND: {
639
- code: 'A128',
640
- message: 'Infra provider not found',
641
- httpCode: 404,
642
- },
643
- DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
644
- code: 'A129',
645
- message: 'Delete infra provider by UUID error',
646
- httpCode: 500,
647
- },
648
- CREATE_INFRA_PROVIDER_ERROR: {
649
- code: 'A130',
650
- message: 'Create infra provider error',
651
- httpCode: 500,
652
- },
653
- UPDATE_INFRA_PROVIDER_ERROR: {
654
- code: 'A131',
655
- message: 'Update infra provider error',
656
- httpCode: 500,
657
- },
658
- CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
659
- code: 'A132',
660
- message: 'Create infra billing history record error',
661
- httpCode: 500,
662
- },
663
- GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
664
- code: 'A133',
665
- message: 'Get infra billing history records error',
666
- httpCode: 500,
667
- },
668
- DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
669
- code: 'A134',
670
- message: 'Delete infra billing history record by UUID error',
671
- httpCode: 500,
672
- },
673
- GET_BILLING_NODES_ERROR: {
674
- code: 'A135',
675
- message: 'Get billing nodes error',
676
- httpCode: 500,
677
- },
678
- UPDATE_INFRA_BILLING_NODE_ERROR: {
679
- code: 'A136',
680
- message: 'Update infra billing node error',
681
- httpCode: 500,
682
- },
683
- CREATE_INFRA_BILLING_NODE_ERROR: {
684
- code: 'A137',
685
- message: 'Create infra billing node error',
686
- httpCode: 500,
687
- },
688
- DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
689
- code: 'A138',
690
- message: 'Delete infra billing node by UUID error',
691
- httpCode: 500,
692
- },
693
623
  };
@@ -8,10 +8,6 @@ export * from './extented-users.schema';
8
8
  export * from './happ.schema';
9
9
  export * from './hosts.schema';
10
10
  export * from './hwid-user-device.schema';
11
- export * from './infra-billing-available-node.schema';
12
- export * from './infra-billing-history-record.schema';
13
- export * from './infra-billing-node.schema';
14
- export * from './infra-provider.schema';
15
11
  export * from './internal-squad.schema';
16
12
  export * from './last-connected-node.schema';
17
13
  export * from './nodes.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
@@ -24,10 +24,6 @@ __exportStar(require("./extented-users.schema"), exports);
24
24
  __exportStar(require("./happ.schema"), exports);
25
25
  __exportStar(require("./hosts.schema"), exports);
26
26
  __exportStar(require("./hwid-user-device.schema"), exports);
27
- __exportStar(require("./infra-billing-available-node.schema"), exports);
28
- __exportStar(require("./infra-billing-history-record.schema"), exports);
29
- __exportStar(require("./infra-billing-node.schema"), exports);
30
- __exportStar(require("./infra-provider.schema"), exports);
31
27
  __exportStar(require("./internal-squad.schema"), exports);
32
28
  __exportStar(require("./last-connected-node.schema"), exports);
33
29
  __exportStar(require("./nodes.schema"), exports);
@@ -56,29 +56,6 @@ export declare const NodesSchema: z.ZodObject<{
56
56
  port: number | null;
57
57
  rawInbound?: unknown;
58
58
  }>, "many">>;
59
- providerUuid: z.ZodNullable<z.ZodString>;
60
- provider: z.ZodNullable<z.ZodObject<{
61
- uuid: z.ZodString;
62
- name: z.ZodString;
63
- faviconLink: z.ZodNullable<z.ZodString>;
64
- loginUrl: z.ZodNullable<z.ZodString>;
65
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
66
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
67
- }, "strip", z.ZodTypeAny, {
68
- uuid: string;
69
- createdAt: Date;
70
- updatedAt: Date;
71
- name: string;
72
- faviconLink: string | null;
73
- loginUrl: string | null;
74
- }, {
75
- uuid: string;
76
- createdAt: string;
77
- updatedAt: string;
78
- name: string;
79
- faviconLink: string | null;
80
- loginUrl: string | null;
81
- }>>;
82
59
  }, "strip", z.ZodTypeAny, {
83
60
  uuid: string;
84
61
  createdAt: Date;
@@ -118,15 +95,6 @@ export declare const NodesSchema: z.ZodObject<{
118
95
  port: number | null;
119
96
  rawInbound?: unknown;
120
97
  }[] | null;
121
- providerUuid: string | null;
122
- provider: {
123
- uuid: string;
124
- createdAt: Date;
125
- updatedAt: Date;
126
- name: string;
127
- faviconLink: string | null;
128
- loginUrl: string | null;
129
- } | null;
130
98
  }, {
131
99
  uuid: string;
132
100
  createdAt: string;
@@ -166,14 +134,5 @@ export declare const NodesSchema: z.ZodObject<{
166
134
  port: number | null;
167
135
  rawInbound?: unknown;
168
136
  }[] | null;
169
- providerUuid: string | null;
170
- provider: {
171
- uuid: string;
172
- createdAt: string;
173
- updatedAt: string;
174
- name: string;
175
- faviconLink: string | null;
176
- loginUrl: string | null;
177
- } | null;
178
137
  }>;
179
138
  //# sourceMappingURL=nodes.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CtB,CAAC"}
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
6
- const infra_provider_schema_1 = require("./infra-provider.schema");
7
6
  exports.NodesSchema = zod_1.z.object({
8
7
  uuid: zod_1.z.string().uuid(),
9
8
  name: zod_1.z.string(),
@@ -43,6 +42,4 @@ exports.NodesSchema = zod_1.z.object({
43
42
  .transform((str) => new Date(str)),
44
43
  activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
45
44
  activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
46
- providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
47
- provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
48
45
  });
@@ -19,7 +19,6 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
- __exportStar(require("./infra-billing"), exports);
23
22
  __exportStar(require("./internal-squads"), exports);
24
23
  __exportStar(require("./keygen"), exports);
25
24
  __exportStar(require("./nodes"), exports);
@@ -9,7 +9,6 @@ exports.USERS_ROUTES = {
9
9
  GET: '',
10
10
  DELETE: (uuid) => `${uuid}`,
11
11
  GET_BY_UUID: (uuid) => `${uuid}`,
12
- ACCESSIBLE_NODES: (uuid) => `${uuid}/accessible-nodes`,
13
12
  ACTIONS: {
14
13
  ENABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/enable`,
15
14
  DISABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/disable`,
@@ -80,7 +80,6 @@ exports.REST_API = {
80
80
  GET: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET}`,
81
81
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.DELETE(uuid)}`,
82
82
  GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID(uuid)}`,
83
- ACCESSIBLE_NODES: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACCESSIBLE_NODES(uuid)}`,
84
83
  ACTIONS: {
85
84
  DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.DISABLE(uuid)}`,
86
85
  ENABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.ENABLE(uuid)}`,
@@ -179,18 +178,4 @@ exports.REST_API = {
179
178
  GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.GET_BY_UUID(uuid)}`,
180
179
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.DELETE(uuid)}`,
181
180
  },
182
- INFRA_BILLING: {
183
- GET_PROVIDERS: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDERS}`,
184
- CREATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_PROVIDER}`,
185
- UPDATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_PROVIDER}`,
186
- DELETE_PROVIDER: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_PROVIDER(uuid)}`,
187
- GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
188
- GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
189
- CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
190
- UPDATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE}`,
191
- DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
192
- GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
193
- CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
194
- DELETE_BILLING_HISTORY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(uuid)}`,
195
- },
196
181
  };
@@ -13,8 +13,8 @@ var CreateConfigProfileCommand;
13
13
  CreateConfigProfileCommand.RequestSchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(2, 'Name must be at least 2 characters')
17
- .max(20, 'Name must be less than 20 characters')
16
+ .min(6, 'Name must be at least 6 characters')
17
+ .max(16, 'Name must be less than 16 characters')
18
18
  .regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
19
19
  config: zod_1.z.object({}).passthrough(),
20
20
  });
@@ -15,14 +15,12 @@ var CreateHostCommand;
15
15
  .string({
16
16
  invalid_type_error: 'Config Profile UUID must be a string',
17
17
  })
18
- .uuid('Config Profile UUID must be a valid UUID')
19
- .optional(),
18
+ .uuid('Config Profile UUID must be a valid UUID'),
20
19
  configProfileInboundUuid: zod_1.z
21
20
  .string({
22
21
  invalid_type_error: 'Inbound UUID must be a string',
23
22
  })
24
- .uuid('Inbound UUID must be a valid UUID')
25
- .optional(),
23
+ .uuid('Inbound UUID must be a valid UUID'),
26
24
  remark: zod_1.z
27
25
  .string({
28
26
  invalid_type_error: 'Remark must be a string',
@@ -19,7 +19,6 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
- __exportStar(require("./infra-billing"), exports);
23
22
  __exportStar(require("./internal-squads"), exports);
24
23
  __exportStar(require("./keygen"), exports);
25
24
  __exportStar(require("./nodes"), exports);
@@ -13,8 +13,8 @@ var CreateInternalSquadCommand;
13
13
  CreateInternalSquadCommand.RequestSchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(2, 'Name must be at least 2 characters')
17
- .max(20, 'Name must be less than 20 characters')
16
+ .min(6, 'Name must be at least 6 characters')
17
+ .max(16, 'Name must be less than 16 characters')
18
18
  .regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
19
19
  inbounds: zod_1.z.array(zod_1.z.string().uuid()),
20
20
  });
@@ -39,7 +39,6 @@ var CreateNodeCommand;
39
39
  activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
40
40
  invalid_type_error: 'Active inbounds must be an array of UUIDs',
41
41
  })),
42
- providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
43
42
  });
44
43
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
45
44
  response: models_1.NodesSchema,
@@ -35,7 +35,6 @@ var UpdateNodeCommand;
35
35
  activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
36
36
  invalid_type_error: 'Active inbounds must be an array of UUIDs',
37
37
  })),
38
- providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
39
38
  });
40
39
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
41
40
  response: models_1.NodesSchema,
@@ -21,7 +21,6 @@ __exportStar(require("./create-user.command"), exports);
21
21
  __exportStar(require("./delete-user.command"), exports);
22
22
  __exportStar(require("./get-all-users.command"), exports);
23
23
  __exportStar(require("./get-by"), exports);
24
- __exportStar(require("./get-user-accessible-nodes.command"), exports);
25
24
  __exportStar(require("./get-user-by-uuid.command"), exports);
26
25
  __exportStar(require("./get-user-usage-by-range.command"), exports);
27
26
  __exportStar(require("./tags"), exports);
@@ -620,74 +620,4 @@ exports.ERRORS = {
620
620
  message: 'Config profile inbound not found in specified profile',
621
621
  httpCode: 404,
622
622
  },
623
- GET_USER_ACCESSIBLE_NODES_ERROR: {
624
- code: 'A125',
625
- message: 'Get user accessible nodes error',
626
- httpCode: 500,
627
- },
628
- GET_INFRA_PROVIDERS_ERROR: {
629
- code: 'A126',
630
- message: 'Get infra providers error',
631
- httpCode: 500,
632
- },
633
- GET_INFRA_PROVIDER_BY_UUID_ERROR: {
634
- code: 'A127',
635
- message: 'Get infra provider by UUID error',
636
- httpCode: 500,
637
- },
638
- INFRA_PROVIDER_NOT_FOUND: {
639
- code: 'A128',
640
- message: 'Infra provider not found',
641
- httpCode: 404,
642
- },
643
- DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
644
- code: 'A129',
645
- message: 'Delete infra provider by UUID error',
646
- httpCode: 500,
647
- },
648
- CREATE_INFRA_PROVIDER_ERROR: {
649
- code: 'A130',
650
- message: 'Create infra provider error',
651
- httpCode: 500,
652
- },
653
- UPDATE_INFRA_PROVIDER_ERROR: {
654
- code: 'A131',
655
- message: 'Update infra provider error',
656
- httpCode: 500,
657
- },
658
- CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
659
- code: 'A132',
660
- message: 'Create infra billing history record error',
661
- httpCode: 500,
662
- },
663
- GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
664
- code: 'A133',
665
- message: 'Get infra billing history records error',
666
- httpCode: 500,
667
- },
668
- DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
669
- code: 'A134',
670
- message: 'Delete infra billing history record by UUID error',
671
- httpCode: 500,
672
- },
673
- GET_BILLING_NODES_ERROR: {
674
- code: 'A135',
675
- message: 'Get billing nodes error',
676
- httpCode: 500,
677
- },
678
- UPDATE_INFRA_BILLING_NODE_ERROR: {
679
- code: 'A136',
680
- message: 'Update infra billing node error',
681
- httpCode: 500,
682
- },
683
- CREATE_INFRA_BILLING_NODE_ERROR: {
684
- code: 'A137',
685
- message: 'Create infra billing node error',
686
- httpCode: 500,
687
- },
688
- DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
689
- code: 'A138',
690
- message: 'Delete infra billing node by UUID error',
691
- httpCode: 500,
692
- },
693
623
  };
@@ -24,10 +24,6 @@ __exportStar(require("./extented-users.schema"), exports);
24
24
  __exportStar(require("./happ.schema"), exports);
25
25
  __exportStar(require("./hosts.schema"), exports);
26
26
  __exportStar(require("./hwid-user-device.schema"), exports);
27
- __exportStar(require("./infra-billing-available-node.schema"), exports);
28
- __exportStar(require("./infra-billing-history-record.schema"), exports);
29
- __exportStar(require("./infra-billing-node.schema"), exports);
30
- __exportStar(require("./infra-provider.schema"), exports);
31
27
  __exportStar(require("./internal-squad.schema"), exports);
32
28
  __exportStar(require("./last-connected-node.schema"), exports);
33
29
  __exportStar(require("./nodes.schema"), exports);
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
6
- const infra_provider_schema_1 = require("./infra-provider.schema");
7
6
  exports.NodesSchema = zod_1.z.object({
8
7
  uuid: zod_1.z.string().uuid(),
9
8
  name: zod_1.z.string(),
@@ -43,6 +42,4 @@ exports.NodesSchema = zod_1.z.object({
43
42
  .transform((str) => new Date(str)),
44
43
  activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
45
44
  activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
46
- providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
47
- provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
48
45
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.0.0-alpha.18",
3
+ "version": "2.0.0-alpha.2",
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.",
@@ -1,16 +0,0 @@
1
- export declare const INFRA_BILLING_CONTROLLER: "infra-billing";
2
- export declare const INFRA_BILLING_ROUTES: {
3
- readonly GET_PROVIDERS: "providers";
4
- readonly CREATE_PROVIDER: "providers";
5
- readonly UPDATE_PROVIDER: "providers";
6
- readonly DELETE_PROVIDER: (uuid: string) => string;
7
- readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
8
- readonly GET_BILLING_NODES: "nodes";
9
- readonly CREATE_BILLING_NODE: "nodes";
10
- readonly UPDATE_BILLING_NODE: "nodes";
11
- readonly DELETE_BILLING_NODE: (uuid: string) => string;
12
- readonly GET_BILLING_HISTORY: "history";
13
- readonly CREATE_BILLING_HISTORY: "history";
14
- readonly DELETE_BILLING_HISTORY: (uuid: string) => string;
15
- };
16
- //# sourceMappingURL=infra-billing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM;;;;yCAKP,MAAM;;;4CAIH,MAAM;CAC/B,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INFRA_BILLING_ROUTES = exports.INFRA_BILLING_CONTROLLER = void 0;
4
- exports.INFRA_BILLING_CONTROLLER = 'infra-billing';
5
- exports.INFRA_BILLING_ROUTES = {
6
- GET_PROVIDERS: 'providers', // Get list of all providers // get
7
- CREATE_PROVIDER: 'providers', // Create new provider // post
8
- UPDATE_PROVIDER: 'providers', // Update provider by uuid // patch
9
- DELETE_PROVIDER: (uuid) => `providers/${uuid}`, // Delete provider by uuid // delete
10
- GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
11
- GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
12
- CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
13
- UPDATE_BILLING_NODE: 'nodes', // Update node billing by uuid // patch
14
- DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
15
- GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
16
- CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
17
- DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
18
- };