@remnawave/backend-contract 2.0.0-alpha.27 → 2.0.0-alpha.3

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 (199) 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/internal-squads.d.ts +0 -4
  5. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  6. package/build/backend/api/controllers/internal-squads.js +0 -5
  7. package/build/backend/api/controllers/users.d.ts +0 -1
  8. package/build/backend/api/controllers/users.d.ts.map +1 -1
  9. package/build/backend/api/controllers/users.js +0 -1
  10. package/build/backend/api/routes.d.ts +0 -19
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +0 -19
  13. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  14. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -26
  15. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -26
  17. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -26
  19. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  20. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +10 -26
  21. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -26
  23. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  24. package/build/backend/commands/hosts/create.command.d.ts +19 -47
  25. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/create.command.js +13 -13
  27. package/build/backend/commands/hosts/get-all.command.d.ts +10 -26
  28. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/get-one.command.d.ts +10 -26
  30. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/hosts/reorder.command.d.ts +2 -10
  32. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  33. package/build/backend/commands/hosts/update.command.d.ts +21 -57
  34. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/hosts/update.command.js +11 -10
  36. package/build/backend/commands/index.d.ts +0 -1
  37. package/build/backend/commands/index.d.ts.map +1 -1
  38. package/build/backend/commands/index.js +0 -1
  39. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  40. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.d.ts → get-internal-squad-by-uuid..d.ts} +1 -1
  41. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
  42. package/build/backend/commands/internal-squads/index.d.ts +1 -2
  43. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  44. package/build/backend/commands/internal-squads/index.js +1 -2
  45. package/build/backend/commands/nodes/actions/disable.command.d.ts +64 -157
  46. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  47. package/build/backend/commands/nodes/actions/enable.command.d.ts +64 -157
  48. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  49. package/build/backend/commands/nodes/actions/reorder.command.d.ts +88 -230
  50. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  51. package/build/backend/commands/nodes/create.command.d.ts +70 -178
  52. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  53. package/build/backend/commands/nodes/create.command.js +4 -7
  54. package/build/backend/commands/nodes/get-all.command.d.ts +64 -157
  55. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  56. package/build/backend/commands/nodes/get-one.command.d.ts +64 -157
  57. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  58. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  59. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  60. package/build/backend/commands/nodes/update.command.d.ts +94 -251
  61. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  62. package/build/backend/commands/nodes/update.command.js +4 -9
  63. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  64. package/build/backend/commands/users/index.d.ts +0 -1
  65. package/build/backend/commands/users/index.d.ts.map +1 -1
  66. package/build/backend/commands/users/index.js +0 -1
  67. package/build/backend/constants/errors/errors.d.ts +0 -95
  68. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  69. package/build/backend/constants/errors/errors.js +0 -95
  70. package/build/backend/constants/events/events.d.ts +0 -11
  71. package/build/backend/constants/events/events.d.ts.map +1 -1
  72. package/build/backend/constants/events/events.js +0 -10
  73. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  74. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  75. package/build/backend/constants/templates/template-keys.js +0 -1
  76. package/build/backend/models/{extended-users.schema.d.ts → extented-users.schema.d.ts} +1 -1
  77. package/build/backend/models/{extended-users.schema.d.ts.map → extented-users.schema.d.ts.map} +1 -1
  78. package/build/backend/models/hosts.schema.d.ts +6 -18
  79. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  80. package/build/backend/models/hosts.schema.js +2 -4
  81. package/build/backend/models/index.d.ts +1 -5
  82. package/build/backend/models/index.d.ts.map +1 -1
  83. package/build/backend/models/index.js +1 -5
  84. package/build/backend/models/nodes.schema.d.ts +44 -115
  85. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  86. package/build/backend/models/nodes.schema.js +2 -7
  87. package/build/frontend/api/controllers/index.js +0 -1
  88. package/build/frontend/api/controllers/internal-squads.js +0 -5
  89. package/build/frontend/api/controllers/users.js +0 -1
  90. package/build/frontend/api/routes.js +0 -19
  91. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  92. package/build/frontend/commands/hosts/create.command.js +13 -13
  93. package/build/frontend/commands/hosts/update.command.js +11 -10
  94. package/build/frontend/commands/index.js +0 -1
  95. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  96. package/build/frontend/commands/internal-squads/index.js +1 -2
  97. package/build/frontend/commands/nodes/create.command.js +4 -7
  98. package/build/frontend/commands/nodes/update.command.js +4 -9
  99. package/build/frontend/commands/users/index.js +0 -1
  100. package/build/frontend/constants/errors/errors.js +0 -95
  101. package/build/frontend/constants/events/events.js +0 -10
  102. package/build/frontend/constants/templates/template-keys.js +0 -1
  103. package/build/frontend/models/hosts.schema.js +2 -4
  104. package/build/frontend/models/index.js +1 -5
  105. package/build/frontend/models/nodes.schema.js +2 -7
  106. package/package.json +1 -1
  107. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  108. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  109. package/build/backend/api/controllers/infra-billing.js +0 -18
  110. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  111. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  112. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  113. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -465
  114. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  115. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  116. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  117. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  118. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  119. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  120. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  121. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  122. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -459
  123. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  124. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  125. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  126. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  127. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  128. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  129. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  130. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  131. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +0 -451
  132. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +0 -1
  133. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  134. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  135. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  136. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  137. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  138. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  139. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  140. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  141. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  142. package/build/backend/commands/infra-billing/index.js +0 -28
  143. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -462
  144. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  145. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  146. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  147. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  148. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  149. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -33
  150. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +0 -1
  151. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  152. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -33
  153. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +0 -1
  154. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  155. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +0 -3
  156. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +0 -1
  157. package/build/backend/commands/internal-squads/bulk-actions/index.js +0 -18
  158. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +0 -1
  159. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  160. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  161. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  162. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -116
  163. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  164. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  165. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  166. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  167. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  168. package/build/backend/models/infra-billing-node.schema.d.ts +0 -179
  169. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  170. package/build/backend/models/infra-billing-node.schema.js +0 -34
  171. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  172. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  173. package/build/backend/models/infra-provider.schema.js +0 -41
  174. package/build/frontend/api/controllers/infra-billing.js +0 -18
  175. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  176. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  177. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  178. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  179. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  180. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  181. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  182. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  183. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  184. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  185. package/build/frontend/commands/infra-billing/index.js +0 -28
  186. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  187. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  188. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  189. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  190. package/build/frontend/commands/internal-squads/bulk-actions/index.js +0 -18
  191. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  192. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  193. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  194. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  195. package/build/frontend/models/infra-provider.schema.js +0 -41
  196. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  197. /package/build/backend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
  198. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  199. /package/build/frontend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
@@ -620,99 +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
- GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
694
- code: 'A139',
695
- message: 'Get billing nodes for notifications error',
696
- httpCode: 500,
697
- },
698
- ADD_USERS_TO_INTERNAL_SQUAD_ERROR: {
699
- code: 'A140',
700
- message: 'Add users to internal squad error',
701
- httpCode: 500,
702
- },
703
- INTERNAL_SQUAD_BULK_ACTIONS_ERROR: {
704
- code: 'A141',
705
- message: 'Internal squad bulk actions error',
706
- httpCode: 500,
707
- },
708
- REMOVE_USERS_FROM_INTERNAL_SQUAD_ERROR: {
709
- code: 'A142',
710
- message: 'Remove users from internal squad error',
711
- httpCode: 500,
712
- },
713
- DELETE_CONFIG_PROFILE_BY_UUID_ERROR: {
714
- code: 'A143',
715
- message: 'Delete config profile by UUID error',
716
- httpCode: 500,
717
- },
718
623
  };
@@ -36,24 +36,13 @@ export declare const EVENTS: {
36
36
  readonly ERRORS: {
37
37
  readonly BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: "errors.bandwidth_usage_threshold_reached_max_notifications";
38
38
  };
39
- readonly CRM: {
40
- readonly INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: "crm.infra_billing_node_payment_in_7_days";
41
- readonly INFRA_BILLING_NODE_PAYMENT_IN_48HRS: "crm.infra_billing_node_payment_in_48hrs";
42
- readonly INFRA_BILLING_NODE_PAYMENT_IN_24HRS: "crm.infra_billing_node_payment_in_24hrs";
43
- readonly INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: "crm.infra_billing_node_payment_due_today";
44
- readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: "crm.infra_billing_node_payment_overdue_24hrs";
45
- readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: "crm.infra_billing_node_payment_overdue_48hrs";
46
- readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: "crm.infra_billing_node_payment_overdue_7_days";
47
- };
48
39
  readonly CATCH_ALL_USER_EVENTS: "user.*";
49
40
  readonly CATCH_ALL_NODE_EVENTS: "node.*";
50
41
  readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
51
42
  readonly CATCH_ALL_ERRORS_EVENTS: "errors.*";
52
- readonly CATCH_ALL_CRM_EVENTS: "crm.*";
53
43
  };
54
44
  export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
55
45
  export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
56
46
  export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE];
57
47
  export type TErrorsEvents = (typeof EVENTS.ERRORS)[keyof typeof EVENTS.ERRORS];
58
- export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
59
48
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDT,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;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CT,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;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC"}
@@ -39,18 +39,8 @@ exports.EVENTS = {
39
39
  ERRORS: {
40
40
  BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: 'errors.bandwidth_usage_threshold_reached_max_notifications',
41
41
  },
42
- CRM: {
43
- INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: 'crm.infra_billing_node_payment_in_7_days',
44
- INFRA_BILLING_NODE_PAYMENT_IN_48HRS: 'crm.infra_billing_node_payment_in_48hrs',
45
- INFRA_BILLING_NODE_PAYMENT_IN_24HRS: 'crm.infra_billing_node_payment_in_24hrs',
46
- INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: 'crm.infra_billing_node_payment_due_today',
47
- INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: 'crm.infra_billing_node_payment_overdue_24hrs',
48
- INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: 'crm.infra_billing_node_payment_overdue_48hrs',
49
- INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: 'crm.infra_billing_node_payment_overdue_7_days',
50
- },
51
42
  CATCH_ALL_USER_EVENTS: 'user.*',
52
43
  CATCH_ALL_NODE_EVENTS: 'node.*',
53
44
  CATCH_ALL_SERVICE_EVENTS: 'service.*',
54
45
  CATCH_ALL_ERRORS_EVENTS: 'errors.*',
55
- CATCH_ALL_CRM_EVENTS: 'crm.*',
56
46
  };
@@ -1,3 +1,3 @@
1
- export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG"];
1
+ export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL"];
2
2
  export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
3
3
  //# sourceMappingURL=template-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kJAWhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,2IAUhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -11,5 +11,4 @@ exports.TEMPLATE_KEYS = [
11
11
  'EMAIL',
12
12
  'TELEGRAM_ID',
13
13
  'SUBSCRIPTION_URL',
14
- 'TAG',
15
14
  ];
@@ -144,4 +144,4 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
144
144
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
145
145
  lastTriggeredThreshold?: number | undefined;
146
146
  }>;
147
- //# sourceMappingURL=extended-users.schema.d.ts.map
147
+ //# sourceMappingURL=extented-users.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extended-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extended-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC"}
1
+ {"version":3,"file":"extented-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extented-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC"}
@@ -17,16 +17,8 @@ export declare const HostsSchema: z.ZodObject<{
17
17
  readonly NONE: "NONE";
18
18
  }>>;
19
19
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
20
- inbound: z.ZodObject<{
21
- configProfileUuid: z.ZodNullable<z.ZodString>;
22
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- configProfileUuid: string | null;
25
- configProfileInboundUuid: string | null;
26
- }, {
27
- configProfileUuid: string | null;
28
- configProfileInboundUuid: string | null;
29
- }>;
20
+ configProfileUuid: z.ZodNullable<z.ZodString>;
21
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
30
22
  }, "strip", z.ZodTypeAny, {
31
23
  path: string | null;
32
24
  uuid: string;
@@ -40,10 +32,8 @@ export declare const HostsSchema: z.ZodObject<{
40
32
  fingerprint: string | null;
41
33
  isDisabled: boolean;
42
34
  securityLayer: "DEFAULT" | "TLS" | "NONE";
43
- inbound: {
44
- configProfileUuid: string | null;
45
- configProfileInboundUuid: string | null;
46
- };
35
+ configProfileUuid: string | null;
36
+ configProfileInboundUuid: string | null;
47
37
  xHttpExtraParams?: unknown;
48
38
  }, {
49
39
  path: string | null;
@@ -56,10 +46,8 @@ export declare const HostsSchema: z.ZodObject<{
56
46
  host: string | null;
57
47
  alpn: string | null;
58
48
  fingerprint: string | null;
59
- inbound: {
60
- configProfileUuid: string | null;
61
- configProfileInboundUuid: string | null;
62
- };
49
+ configProfileUuid: string | null;
50
+ configProfileInboundUuid: string | null;
63
51
  isDisabled?: boolean | undefined;
64
52
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
65
53
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC"}
1
+ {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtB,CAAC"}
@@ -17,8 +17,6 @@ exports.HostsSchema = zod_1.z.object({
17
17
  isDisabled: zod_1.z.boolean().default(false),
18
18
  securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
19
19
  xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
20
- inbound: zod_1.z.object({
21
- configProfileUuid: zod_1.z.string().uuid().nullable(),
22
- configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
23
- }),
20
+ configProfileUuid: zod_1.z.string().uuid().nullable(),
21
+ configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
24
22
  });
@@ -4,14 +4,10 @@ export * from './base-internal-squad.schema';
4
4
  export * from './base-stat.schema';
5
5
  export * from './config-profile-inbounds.schema';
6
6
  export * from './config-profile.schema';
7
- export * from './extended-users.schema';
7
+ 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"}
@@ -20,14 +20,10 @@ __exportStar(require("./base-internal-squad.schema"), exports);
20
20
  __exportStar(require("./base-stat.schema"), exports);
21
21
  __exportStar(require("./config-profile-inbounds.schema"), exports);
22
22
  __exportStar(require("./config-profile.schema"), exports);
23
- __exportStar(require("./extended-users.schema"), exports);
23
+ __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);
@@ -27,84 +27,35 @@ export declare const NodesSchema: z.ZodObject<{
27
27
  totalRam: z.ZodNullable<z.ZodString>;
28
28
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
29
29
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
30
- configProfile: z.ZodObject<{
31
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
32
- activeInbounds: z.ZodArray<z.ZodObject<{
33
- uuid: z.ZodString;
34
- profileUuid: z.ZodString;
35
- tag: z.ZodString;
36
- type: z.ZodString;
37
- network: z.ZodNullable<z.ZodString>;
38
- security: z.ZodNullable<z.ZodString>;
39
- port: z.ZodNullable<z.ZodNumber>;
40
- rawInbound: z.ZodNullable<z.ZodUnknown>;
41
- }, "strip", z.ZodTypeAny, {
42
- type: string;
43
- uuid: string;
44
- profileUuid: string;
45
- tag: string;
46
- network: string | null;
47
- security: string | null;
48
- port: number | null;
49
- rawInbound?: unknown;
50
- }, {
51
- type: string;
52
- uuid: string;
53
- profileUuid: string;
54
- tag: string;
55
- network: string | null;
56
- security: string | null;
57
- port: number | null;
58
- rawInbound?: unknown;
59
- }>, "many">;
60
- }, "strip", z.ZodTypeAny, {
61
- activeConfigProfileUuid: string | null;
62
- activeInbounds: {
63
- type: string;
64
- uuid: string;
65
- profileUuid: string;
66
- tag: string;
67
- network: string | null;
68
- security: string | null;
69
- port: number | null;
70
- rawInbound?: unknown;
71
- }[];
72
- }, {
73
- activeConfigProfileUuid: string | null;
74
- activeInbounds: {
75
- type: string;
76
- uuid: string;
77
- profileUuid: string;
78
- tag: string;
79
- network: string | null;
80
- security: string | null;
81
- port: number | null;
82
- rawInbound?: unknown;
83
- }[];
84
- }>;
85
- providerUuid: z.ZodNullable<z.ZodString>;
86
- provider: z.ZodNullable<z.ZodObject<{
30
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
31
+ activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
87
32
  uuid: z.ZodString;
88
- name: z.ZodString;
89
- faviconLink: z.ZodNullable<z.ZodString>;
90
- loginUrl: z.ZodNullable<z.ZodString>;
91
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
92
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
33
+ profileUuid: z.ZodString;
34
+ tag: z.ZodString;
35
+ type: z.ZodString;
36
+ network: z.ZodNullable<z.ZodString>;
37
+ security: z.ZodNullable<z.ZodString>;
38
+ port: z.ZodNullable<z.ZodNumber>;
39
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
93
40
  }, "strip", z.ZodTypeAny, {
41
+ type: string;
94
42
  uuid: string;
95
- createdAt: Date;
96
- updatedAt: Date;
97
- name: string;
98
- faviconLink: string | null;
99
- loginUrl: string | null;
43
+ profileUuid: string;
44
+ tag: string;
45
+ network: string | null;
46
+ security: string | null;
47
+ port: number | null;
48
+ rawInbound?: unknown;
100
49
  }, {
50
+ type: string;
101
51
  uuid: string;
102
- createdAt: string;
103
- updatedAt: string;
104
- name: string;
105
- faviconLink: string | null;
106
- loginUrl: string | null;
107
- }>>;
52
+ profileUuid: string;
53
+ tag: string;
54
+ network: string | null;
55
+ security: string | null;
56
+ port: number | null;
57
+ rawInbound?: unknown;
58
+ }>, "many">>;
108
59
  }, "strip", z.ZodTypeAny, {
109
60
  uuid: string;
110
61
  createdAt: Date;
@@ -133,28 +84,17 @@ export declare const NodesSchema: z.ZodObject<{
133
84
  cpuCount: number | null;
134
85
  cpuModel: string | null;
135
86
  totalRam: string | null;
136
- configProfile: {
137
- activeConfigProfileUuid: string | null;
138
- activeInbounds: {
139
- type: string;
140
- uuid: string;
141
- profileUuid: string;
142
- tag: string;
143
- network: string | null;
144
- security: string | null;
145
- port: number | null;
146
- rawInbound?: unknown;
147
- }[];
148
- };
149
- providerUuid: string | null;
150
- provider: {
87
+ activeConfigProfileUuid: string | null;
88
+ activeInbounds: {
89
+ type: string;
151
90
  uuid: string;
152
- createdAt: Date;
153
- updatedAt: Date;
154
- name: string;
155
- faviconLink: string | null;
156
- loginUrl: string | null;
157
- } | null;
91
+ profileUuid: string;
92
+ tag: string;
93
+ network: string | null;
94
+ security: string | null;
95
+ port: number | null;
96
+ rawInbound?: unknown;
97
+ }[] | null;
158
98
  }, {
159
99
  uuid: string;
160
100
  createdAt: string;
@@ -183,27 +123,16 @@ export declare const NodesSchema: z.ZodObject<{
183
123
  cpuCount: number | null;
184
124
  cpuModel: string | null;
185
125
  totalRam: string | null;
186
- configProfile: {
187
- activeConfigProfileUuid: string | null;
188
- activeInbounds: {
189
- type: string;
190
- uuid: string;
191
- profileUuid: string;
192
- tag: string;
193
- network: string | null;
194
- security: string | null;
195
- port: number | null;
196
- rawInbound?: unknown;
197
- }[];
198
- };
199
- providerUuid: string | null;
200
- provider: {
126
+ activeConfigProfileUuid: string | null;
127
+ activeInbounds: {
128
+ type: string;
201
129
  uuid: string;
202
- createdAt: string;
203
- updatedAt: string;
204
- name: string;
205
- faviconLink: string | null;
206
- loginUrl: string | null;
207
- } | null;
130
+ profileUuid: string;
131
+ tag: string;
132
+ network: string | null;
133
+ security: string | null;
134
+ port: number | null;
135
+ rawInbound?: unknown;
136
+ }[] | null;
208
137
  }>;
209
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDtB,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(),
@@ -41,10 +40,6 @@ exports.NodesSchema = zod_1.z.object({
41
40
  .string()
42
41
  .datetime()
43
42
  .transform((str) => new Date(str)),
44
- configProfile: zod_1.z.object({
45
- activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
46
- activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
47
- }),
48
- providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
49
- provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
43
+ activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
44
+ activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
50
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);
@@ -2,15 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.INTERNAL_SQUADS_ROUTES = exports.INTERNAL_SQUADS_CONTROLLER = void 0;
4
4
  exports.INTERNAL_SQUADS_CONTROLLER = 'internal-squads';
5
- const BULK_ACTIONS_ROUTE = 'bulk-actions';
6
5
  exports.INTERNAL_SQUADS_ROUTES = {
7
6
  GET: '', // Get list of all internal squads // get
8
7
  CREATE: '', // Create new internal squad // post
9
8
  UPDATE: '', // Update internal squad by uuid // patch
10
9
  GET_BY_UUID: (uuid) => `${uuid}`, // Get internal squad by uuid // get
11
10
  DELETE: (uuid) => `${uuid}`, // Delete internal squad by uuid // delete
12
- BULK_ACTIONS: {
13
- ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to internal squad // post
14
- REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from internal squad // delete
15
- },
16
11
  };
@@ -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)}`,
@@ -178,23 +177,5 @@ exports.REST_API = {
178
177
  UPDATE: `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.UPDATE}`,
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
- BULK_ACTIONS: {
182
- ADD_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_USERS(uuid)}`,
183
- REMOVE_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(uuid)}`,
184
- },
185
- },
186
- INFRA_BILLING: {
187
- GET_PROVIDERS: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDERS}`,
188
- CREATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_PROVIDER}`,
189
- UPDATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_PROVIDER}`,
190
- DELETE_PROVIDER: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_PROVIDER(uuid)}`,
191
- GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
192
- GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
193
- CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
194
- UPDATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE}`,
195
- DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
196
- GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
197
- CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
198
- DELETE_BILLING_HISTORY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(uuid)}`,
199
180
  },
200
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
  });
@@ -11,16 +11,21 @@ var CreateHostCommand;
11
11
  CreateHostCommand.TSQ_url = CreateHostCommand.url;
12
12
  CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host');
13
13
  CreateHostCommand.RequestSchema = zod_1.z.object({
14
- inbound: zod_1.z.object({
15
- configProfileUuid: zod_1.z.string().uuid(),
16
- configProfileInboundUuid: zod_1.z.string().uuid(),
17
- }),
14
+ configProfileUuid: zod_1.z
15
+ .string({
16
+ invalid_type_error: 'Config Profile UUID must be a string',
17
+ })
18
+ .uuid('Config Profile UUID must be a valid UUID')
19
+ .optional(),
20
+ configProfileInboundUuid: zod_1.z
21
+ .string({
22
+ invalid_type_error: 'Inbound UUID must be a string',
23
+ })
24
+ .uuid('Inbound UUID must be a valid UUID')
25
+ .optional(),
18
26
  remark: zod_1.z
19
27
  .string({
20
28
  invalid_type_error: 'Remark must be a string',
21
- })
22
- .min(1, {
23
- message: 'Remark must be at least 1 character',
24
29
  })
25
30
  .max(40, {
26
31
  message: 'Remark must be less than 40 characters',
@@ -38,15 +43,10 @@ var CreateHostCommand;
38
43
  host: zod_1.z.string().optional(),
39
44
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
40
45
  fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
46
+ allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
41
47
  isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
42
48
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
43
49
  xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
44
- serverDescription: zod_1.z.optional(zod_1.z
45
- .string()
46
- .max(30, {
47
- message: 'Server description must be less than 30 characters',
48
- })
49
- .nullable()),
50
50
  });
51
51
  CreateHostCommand.ResponseSchema = zod_1.z.object({
52
52
  response: models_1.HostsSchema,