@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
@@ -1,126 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdateInfraProviderCommand {
3
- const url: "/api/infra-billing/providers";
4
- const TSQ_url: "/api/infra-billing/providers";
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const RequestSchema: z.ZodObject<{
7
- uuid: z.ZodString;
8
- name: z.ZodOptional<z.ZodString>;
9
- faviconLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- loginUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- }, "strip", z.ZodTypeAny, {
12
- uuid: string;
13
- name?: string | undefined;
14
- faviconLink?: string | null | undefined;
15
- loginUrl?: string | null | undefined;
16
- }, {
17
- uuid: string;
18
- name?: string | undefined;
19
- faviconLink?: string | null | undefined;
20
- loginUrl?: string | null | undefined;
21
- }>;
22
- type Request = z.infer<typeof RequestSchema>;
23
- const ResponseSchema: z.ZodObject<{
24
- response: z.ZodObject<{
25
- uuid: z.ZodString;
26
- name: z.ZodString;
27
- faviconLink: z.ZodNullable<z.ZodString>;
28
- loginUrl: z.ZodNullable<z.ZodString>;
29
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
30
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
31
- billingHistory: z.ZodObject<{
32
- totalAmount: z.ZodNumber;
33
- totalBills: z.ZodNumber;
34
- }, "strip", z.ZodTypeAny, {
35
- totalAmount: number;
36
- totalBills: number;
37
- }, {
38
- totalAmount: number;
39
- totalBills: number;
40
- }>;
41
- billingNodes: z.ZodArray<z.ZodObject<{
42
- nodeUuid: z.ZodString;
43
- name: z.ZodString;
44
- countryCode: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
46
- name: string;
47
- countryCode: string;
48
- nodeUuid: string;
49
- }, {
50
- name: string;
51
- countryCode: string;
52
- nodeUuid: string;
53
- }>, "many">;
54
- }, "strip", z.ZodTypeAny, {
55
- uuid: string;
56
- createdAt: Date;
57
- updatedAt: Date;
58
- name: string;
59
- faviconLink: string | null;
60
- loginUrl: string | null;
61
- billingHistory: {
62
- totalAmount: number;
63
- totalBills: number;
64
- };
65
- billingNodes: {
66
- name: string;
67
- countryCode: string;
68
- nodeUuid: string;
69
- }[];
70
- }, {
71
- uuid: string;
72
- createdAt: string;
73
- updatedAt: string;
74
- name: string;
75
- faviconLink: string | null;
76
- loginUrl: string | null;
77
- billingHistory: {
78
- totalAmount: number;
79
- totalBills: number;
80
- };
81
- billingNodes: {
82
- name: string;
83
- countryCode: string;
84
- nodeUuid: string;
85
- }[];
86
- }>;
87
- }, "strip", z.ZodTypeAny, {
88
- response: {
89
- uuid: string;
90
- createdAt: Date;
91
- updatedAt: Date;
92
- name: string;
93
- faviconLink: string | null;
94
- loginUrl: string | null;
95
- billingHistory: {
96
- totalAmount: number;
97
- totalBills: number;
98
- };
99
- billingNodes: {
100
- name: string;
101
- countryCode: string;
102
- nodeUuid: string;
103
- }[];
104
- };
105
- }, {
106
- response: {
107
- uuid: string;
108
- createdAt: string;
109
- updatedAt: string;
110
- name: string;
111
- faviconLink: string | null;
112
- loginUrl: string | null;
113
- billingHistory: {
114
- totalAmount: number;
115
- totalBills: number;
116
- };
117
- billingNodes: {
118
- name: string;
119
- countryCode: string;
120
- nodeUuid: string;
121
- }[];
122
- };
123
- }>;
124
- type Response = z.infer<typeof ResponseSchema>;
125
- }
126
- //# sourceMappingURL=update-infra-provider.command.d.ts.map
@@ -1 +0,0 @@
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,2CAI3B,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,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateInfraProviderCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
8
- var UpdateInfraProviderCommand;
9
- (function (UpdateInfraProviderCommand) {
10
- UpdateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_PROVIDER;
11
- UpdateInfraProviderCommand.TSQ_url = UpdateInfraProviderCommand.url;
12
- UpdateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_PROVIDER, 'patch', 'Update infra provider');
13
- UpdateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
15
- name: zod_1.z
16
- .string()
17
- .min(2, 'Name must be at least 2 characters')
18
- .max(30, 'Name must be less than 255 characters')
19
- .optional(),
20
- faviconLink: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
21
- loginUrl: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
22
- });
23
- UpdateInfraProviderCommand.ResponseSchema = zod_1.z.object({
24
- response: models_1.InfraProviderSchema,
25
- });
26
- })(UpdateInfraProviderCommand || (exports.UpdateInfraProviderCommand = UpdateInfraProviderCommand = {}));
@@ -1,114 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetUserAccessibleNodesCommand {
3
- const url: (uuid: string) => string;
4
- const TSQ_url: string;
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const RequestSchema: z.ZodObject<{
7
- uuid: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- uuid: string;
10
- }, {
11
- uuid: string;
12
- }>;
13
- type Request = z.infer<typeof RequestSchema>;
14
- const ResponseSchema: z.ZodObject<{
15
- response: z.ZodObject<{
16
- userUuid: z.ZodString;
17
- activeNodes: z.ZodArray<z.ZodObject<{
18
- uuid: z.ZodString;
19
- nodeName: z.ZodString;
20
- countryCode: z.ZodString;
21
- configProfileUuid: z.ZodString;
22
- configProfileName: z.ZodString;
23
- activeSquads: z.ZodArray<z.ZodObject<{
24
- squadName: z.ZodString;
25
- activeInbounds: z.ZodArray<z.ZodString, "many">;
26
- }, "strip", z.ZodTypeAny, {
27
- activeInbounds: string[];
28
- squadName: string;
29
- }, {
30
- activeInbounds: string[];
31
- squadName: string;
32
- }>, "many">;
33
- }, "strip", z.ZodTypeAny, {
34
- uuid: string;
35
- countryCode: string;
36
- nodeName: string;
37
- configProfileUuid: string;
38
- configProfileName: string;
39
- activeSquads: {
40
- activeInbounds: string[];
41
- squadName: string;
42
- }[];
43
- }, {
44
- uuid: string;
45
- countryCode: string;
46
- nodeName: string;
47
- configProfileUuid: string;
48
- configProfileName: string;
49
- activeSquads: {
50
- activeInbounds: string[];
51
- squadName: string;
52
- }[];
53
- }>, "many">;
54
- }, "strip", z.ZodTypeAny, {
55
- userUuid: string;
56
- activeNodes: {
57
- uuid: string;
58
- countryCode: string;
59
- nodeName: string;
60
- configProfileUuid: string;
61
- configProfileName: string;
62
- activeSquads: {
63
- activeInbounds: string[];
64
- squadName: string;
65
- }[];
66
- }[];
67
- }, {
68
- userUuid: string;
69
- activeNodes: {
70
- uuid: string;
71
- countryCode: string;
72
- nodeName: string;
73
- configProfileUuid: string;
74
- configProfileName: string;
75
- activeSquads: {
76
- activeInbounds: string[];
77
- squadName: string;
78
- }[];
79
- }[];
80
- }>;
81
- }, "strip", z.ZodTypeAny, {
82
- response: {
83
- userUuid: string;
84
- activeNodes: {
85
- uuid: string;
86
- countryCode: string;
87
- nodeName: string;
88
- configProfileUuid: string;
89
- configProfileName: string;
90
- activeSquads: {
91
- activeInbounds: string[];
92
- squadName: string;
93
- }[];
94
- }[];
95
- };
96
- }, {
97
- response: {
98
- userUuid: string;
99
- activeNodes: {
100
- uuid: string;
101
- countryCode: string;
102
- nodeName: string;
103
- configProfileUuid: string;
104
- configProfileName: string;
105
- activeSquads: {
106
- activeInbounds: string[];
107
- squadName: string;
108
- }[];
109
- }[];
110
- };
111
- }>;
112
- type Response = z.infer<typeof ResponseSchema>;
113
- }
114
- //# sourceMappingURL=get-user-accessible-nodes.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetUserAccessibleNodesCommand = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../../constants");
6
- const api_1 = require("../../api");
7
- var GetUserAccessibleNodesCommand;
8
- (function (GetUserAccessibleNodesCommand) {
9
- GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
10
- GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':uuid');
11
- GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':uuid'), 'get', 'Get user accessible nodes');
12
- GetUserAccessibleNodesCommand.RequestSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid(),
14
- });
15
- GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- userUuid: zod_1.z.string().uuid(),
18
- activeNodes: zod_1.z.array(zod_1.z.object({
19
- uuid: zod_1.z.string().uuid(),
20
- nodeName: zod_1.z.string(),
21
- countryCode: zod_1.z.string(),
22
- configProfileUuid: zod_1.z.string().uuid(),
23
- configProfileName: zod_1.z.string(),
24
- activeSquads: zod_1.z.array(zod_1.z.object({
25
- squadName: zod_1.z.string(),
26
- activeInbounds: zod_1.z.array(zod_1.z.string()),
27
- })),
28
- })),
29
- }),
30
- });
31
- })(GetUserAccessibleNodesCommand || (exports.GetUserAccessibleNodesCommand = GetUserAccessibleNodesCommand = {}));
@@ -1,90 +0,0 @@
1
- export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pick<{
2
- uuid: import("zod").ZodString;
3
- name: import("zod").ZodString;
4
- address: import("zod").ZodString;
5
- port: import("zod").ZodNullable<import("zod").ZodNumber>;
6
- isConnected: import("zod").ZodBoolean;
7
- isDisabled: import("zod").ZodBoolean;
8
- isConnecting: import("zod").ZodBoolean;
9
- isNodeOnline: import("zod").ZodBoolean;
10
- isXrayRunning: import("zod").ZodBoolean;
11
- lastStatusChange: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, Date, string>>;
12
- lastStatusMessage: import("zod").ZodNullable<import("zod").ZodString>;
13
- xrayVersion: import("zod").ZodNullable<import("zod").ZodString>;
14
- xrayUptime: import("zod").ZodString;
15
- isTrafficTrackingActive: import("zod").ZodBoolean;
16
- trafficResetDay: import("zod").ZodNullable<import("zod").ZodNumber>;
17
- trafficLimitBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
18
- trafficUsedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
19
- notifyPercent: import("zod").ZodNullable<import("zod").ZodNumber>;
20
- usersOnline: import("zod").ZodNullable<import("zod").ZodNumber>;
21
- viewPosition: import("zod").ZodNumber;
22
- countryCode: import("zod").ZodString;
23
- consumptionMultiplier: import("zod").ZodNumber;
24
- cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
25
- cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
26
- totalRam: import("zod").ZodNullable<import("zod").ZodString>;
27
- createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
28
- updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
29
- activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
30
- activeInbounds: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
31
- uuid: import("zod").ZodString;
32
- profileUuid: import("zod").ZodString;
33
- tag: import("zod").ZodString;
34
- type: import("zod").ZodString;
35
- network: import("zod").ZodNullable<import("zod").ZodString>;
36
- security: import("zod").ZodNullable<import("zod").ZodString>;
37
- port: import("zod").ZodNullable<import("zod").ZodNumber>;
38
- rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
39
- }, "strip", import("zod").ZodTypeAny, {
40
- type: string;
41
- uuid: string;
42
- profileUuid: string;
43
- tag: string;
44
- network: string | null;
45
- security: string | null;
46
- port: number | null;
47
- rawInbound?: unknown;
48
- }, {
49
- type: string;
50
- uuid: string;
51
- profileUuid: string;
52
- tag: string;
53
- network: string | null;
54
- security: string | null;
55
- port: number | null;
56
- rawInbound?: unknown;
57
- }>, "many">>;
58
- providerUuid: import("zod").ZodNullable<import("zod").ZodString>;
59
- provider: import("zod").ZodNullable<import("zod").ZodObject<{
60
- uuid: import("zod").ZodString;
61
- name: import("zod").ZodString;
62
- faviconLink: import("zod").ZodNullable<import("zod").ZodString>;
63
- loginUrl: import("zod").ZodNullable<import("zod").ZodString>;
64
- createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
65
- updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
66
- }, "strip", import("zod").ZodTypeAny, {
67
- uuid: string;
68
- createdAt: Date;
69
- updatedAt: Date;
70
- name: string;
71
- faviconLink: string | null;
72
- loginUrl: string | null;
73
- }, {
74
- uuid: string;
75
- createdAt: string;
76
- updatedAt: string;
77
- name: string;
78
- faviconLink: string | null;
79
- loginUrl: string | null;
80
- }>>;
81
- }, "uuid" | "name" | "countryCode">, "strip", import("zod").ZodTypeAny, {
82
- uuid: string;
83
- name: string;
84
- countryCode: string;
85
- }, {
86
- uuid: string;
87
- name: string;
88
- countryCode: string;
89
- }>;
90
- //# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InfraBillingAvailableNodeSchema = void 0;
4
- const nodes_schema_1 = require("./nodes.schema");
5
- exports.InfraBillingAvailableNodeSchema = nodes_schema_1.NodesSchema.pick({
6
- uuid: true,
7
- name: true,
8
- countryCode: true,
9
- });
@@ -1,44 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const InfraBillingHistoryRecordSchema: z.ZodObject<{
3
- uuid: z.ZodString;
4
- providerUuid: z.ZodString;
5
- amount: z.ZodNumber;
6
- billedAt: z.ZodEffects<z.ZodString, Date, string>;
7
- provider: z.ZodObject<Omit<{
8
- uuid: z.ZodString;
9
- name: z.ZodString;
10
- faviconLink: z.ZodNullable<z.ZodString>;
11
- loginUrl: z.ZodNullable<z.ZodString>;
12
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
13
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
14
- }, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
15
- uuid: string;
16
- name: string;
17
- faviconLink: string | null;
18
- }, {
19
- uuid: string;
20
- name: string;
21
- faviconLink: string | null;
22
- }>;
23
- }, "strip", z.ZodTypeAny, {
24
- uuid: string;
25
- providerUuid: string;
26
- provider: {
27
- uuid: string;
28
- name: string;
29
- faviconLink: string | null;
30
- };
31
- amount: number;
32
- billedAt: Date;
33
- }, {
34
- uuid: string;
35
- providerUuid: string;
36
- provider: {
37
- uuid: string;
38
- name: string;
39
- faviconLink: string | null;
40
- };
41
- amount: number;
42
- billedAt: string;
43
- }>;
44
- //# sourceMappingURL=infra-billing-history-record.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infra-billing-history-record.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-history-record.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1C,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InfraBillingHistoryRecordSchema = void 0;
4
- const zod_1 = require("zod");
5
- const infra_provider_schema_1 = require("./infra-provider.schema");
6
- exports.InfraBillingHistoryRecordSchema = zod_1.z.object({
7
- uuid: zod_1.z.string().uuid(),
8
- providerUuid: zod_1.z.string().uuid(),
9
- amount: zod_1.z.number(),
10
- billedAt: zod_1.z
11
- .string()
12
- .datetime()
13
- .transform((str) => new Date(str)),
14
- provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
15
- createdAt: true,
16
- updatedAt: true,
17
- loginUrl: true,
18
- }),
19
- });
@@ -1,153 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const InfraBillingNodeSchema: z.ZodObject<{
3
- uuid: z.ZodString;
4
- nodeUuid: z.ZodString;
5
- providerUuid: z.ZodString;
6
- provider: z.ZodObject<Pick<{
7
- uuid: z.ZodString;
8
- name: z.ZodString;
9
- faviconLink: z.ZodNullable<z.ZodString>;
10
- loginUrl: z.ZodNullable<z.ZodString>;
11
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
12
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
13
- }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
14
- uuid: string;
15
- name: string;
16
- faviconLink: string | null;
17
- loginUrl: string | null;
18
- }, {
19
- uuid: string;
20
- name: string;
21
- faviconLink: string | null;
22
- loginUrl: string | null;
23
- }>;
24
- node: z.ZodObject<Pick<{
25
- uuid: z.ZodString;
26
- name: z.ZodString;
27
- address: z.ZodString;
28
- port: z.ZodNullable<z.ZodNumber>;
29
- isConnected: z.ZodBoolean;
30
- isDisabled: z.ZodBoolean;
31
- isConnecting: z.ZodBoolean;
32
- isNodeOnline: z.ZodBoolean;
33
- isXrayRunning: z.ZodBoolean;
34
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
35
- lastStatusMessage: z.ZodNullable<z.ZodString>;
36
- xrayVersion: z.ZodNullable<z.ZodString>;
37
- xrayUptime: z.ZodString;
38
- isTrafficTrackingActive: z.ZodBoolean;
39
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
40
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
41
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
42
- notifyPercent: z.ZodNullable<z.ZodNumber>;
43
- usersOnline: z.ZodNullable<z.ZodNumber>;
44
- viewPosition: z.ZodNumber;
45
- countryCode: z.ZodString;
46
- consumptionMultiplier: z.ZodNumber;
47
- cpuCount: z.ZodNullable<z.ZodNumber>;
48
- cpuModel: z.ZodNullable<z.ZodString>;
49
- totalRam: z.ZodNullable<z.ZodString>;
50
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
51
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
52
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
53
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
54
- uuid: z.ZodString;
55
- profileUuid: z.ZodString;
56
- tag: z.ZodString;
57
- type: z.ZodString;
58
- network: z.ZodNullable<z.ZodString>;
59
- security: z.ZodNullable<z.ZodString>;
60
- port: z.ZodNullable<z.ZodNumber>;
61
- rawInbound: z.ZodNullable<z.ZodUnknown>;
62
- }, "strip", z.ZodTypeAny, {
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
- type: string;
73
- uuid: string;
74
- profileUuid: string;
75
- tag: string;
76
- network: string | null;
77
- security: string | null;
78
- port: number | null;
79
- rawInbound?: unknown;
80
- }>, "many">>;
81
- providerUuid: z.ZodNullable<z.ZodString>;
82
- provider: z.ZodNullable<z.ZodObject<{
83
- uuid: z.ZodString;
84
- name: z.ZodString;
85
- faviconLink: z.ZodNullable<z.ZodString>;
86
- loginUrl: z.ZodNullable<z.ZodString>;
87
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
88
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
89
- }, "strip", z.ZodTypeAny, {
90
- uuid: string;
91
- createdAt: Date;
92
- updatedAt: Date;
93
- name: string;
94
- faviconLink: string | null;
95
- loginUrl: string | null;
96
- }, {
97
- uuid: string;
98
- createdAt: string;
99
- updatedAt: string;
100
- name: string;
101
- faviconLink: string | null;
102
- loginUrl: string | null;
103
- }>>;
104
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
105
- uuid: string;
106
- name: string;
107
- countryCode: string;
108
- }, {
109
- uuid: string;
110
- name: string;
111
- countryCode: string;
112
- }>;
113
- nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
114
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
115
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
116
- }, "strip", z.ZodTypeAny, {
117
- uuid: string;
118
- createdAt: Date;
119
- updatedAt: Date;
120
- nodeUuid: string;
121
- providerUuid: string;
122
- provider: {
123
- uuid: string;
124
- name: string;
125
- faviconLink: string | null;
126
- loginUrl: string | null;
127
- };
128
- node: {
129
- uuid: string;
130
- name: string;
131
- countryCode: string;
132
- };
133
- nextBillingAt: Date;
134
- }, {
135
- uuid: string;
136
- createdAt: string;
137
- updatedAt: string;
138
- nodeUuid: string;
139
- providerUuid: string;
140
- provider: {
141
- uuid: string;
142
- name: string;
143
- faviconLink: string | null;
144
- loginUrl: string | null;
145
- };
146
- node: {
147
- uuid: string;
148
- name: string;
149
- countryCode: string;
150
- };
151
- nextBillingAt: string;
152
- }>;
153
- //# sourceMappingURL=infra-billing-node.schema.d.ts.map
@@ -1 +0,0 @@
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,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InfraBillingNodeSchema = void 0;
4
- const zod_1 = require("zod");
5
- const infra_provider_schema_1 = require("./infra-provider.schema");
6
- const nodes_schema_1 = require("./nodes.schema");
7
- exports.InfraBillingNodeSchema = zod_1.z.object({
8
- uuid: zod_1.z.string().uuid(),
9
- nodeUuid: zod_1.z.string().uuid(),
10
- providerUuid: zod_1.z.string().uuid(),
11
- provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
12
- uuid: true,
13
- name: true,
14
- loginUrl: true,
15
- faviconLink: true,
16
- }),
17
- node: nodes_schema_1.NodesSchema.pick({
18
- uuid: true,
19
- name: true,
20
- countryCode: true,
21
- }),
22
- nextBillingAt: zod_1.z
23
- .string()
24
- .datetime()
25
- .transform((str) => new Date(str)),
26
- createdAt: zod_1.z
27
- .string()
28
- .datetime()
29
- .transform((str) => new Date(str)),
30
- updatedAt: zod_1.z
31
- .string()
32
- .datetime()
33
- .transform((str) => new Date(str)),
34
- });