@remnawave/backend-contract 2.0.0-alpha.8 → 2.0.0
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.
- package/build/backend/api/controllers/auth.d.ts +2 -0
- package/build/backend/api/controllers/auth.d.ts.map +1 -1
- package/build/backend/api/controllers/auth.js +2 -0
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +18 -0
- package/build/backend/api/controllers/internal-squads.d.ts +4 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +5 -0
- package/build/backend/api/controllers/subscription.d.ts +1 -0
- package/build/backend/api/controllers/subscription.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription.js +1 -0
- package/build/backend/api/controllers/system.d.ts +1 -0
- package/build/backend/api/controllers/system.d.ts.map +1 -1
- package/build/backend/api/controllers/system.js +1 -0
- package/build/backend/api/routes.d.ts +22 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +22 -0
- package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/create.command.js +0 -1
- package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
- package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.d.ts +23 -0
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +3 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
- package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/index.js +2 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +52 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +13 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +63 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +10 -11
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +13 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/index.js +28 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/index.d.ts +2 -1
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +2 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +166 -68
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +166 -68
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +240 -92
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +187 -74
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +7 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +166 -68
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +166 -68
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +261 -98
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +9 -4
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +354 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
- package/build/backend/commands/subscription/index.d.ts +1 -0
- package/build/backend/commands/subscription/index.d.ts.map +1 -1
- package/build/backend/commands/subscription/index.js +1 -0
- package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
- package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/backend/commands/system/index.d.ts +1 -0
- package/build/backend/commands/system/index.d.ts.map +1 -1
- package/build/backend/commands/system/index.js +1 -0
- package/build/backend/commands/users/create-user.command.d.ts +6 -6
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +2 -4
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/constants/errors/errors.d.ts +115 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +115 -0
- package/build/backend/constants/events/events.d.ts +11 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +10 -0
- package/build/backend/constants/headers/headers.constants.d.ts +3 -0
- package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
- package/build/backend/constants/headers/headers.constants.js +5 -0
- package/build/backend/constants/headers/index.d.ts +2 -0
- package/build/backend/constants/headers/index.d.ts.map +1 -0
- package/build/backend/constants/headers/index.js +17 -0
- package/build/backend/constants/index.d.ts +3 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +3 -0
- package/build/backend/constants/messaging/index.d.ts +2 -0
- package/build/backend/constants/messaging/index.d.ts.map +1 -0
- package/build/backend/constants/messaging/index.js +17 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
- package/build/backend/constants/messaging/messaging.constants.js +19 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
- package/build/backend/constants/metrics/metric-names.constant.js +17 -0
- package/build/backend/constants/oauth2/index.d.ts +2 -0
- package/build/backend/constants/oauth2/index.d.ts.map +1 -0
- package/build/backend/constants/oauth2/index.js +17 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
- package/build/backend/constants/oauth2/providers.contants.js +9 -0
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +1 -0
- package/build/backend/models/api-tokens.schema.d.ts +0 -3
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +0 -1
- package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
- package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
- package/build/backend/models/hosts.schema.d.ts +21 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +5 -2
- package/build/backend/models/index.d.ts +5 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +5 -1
- package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-history-record.schema.js +19 -0
- package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-node.schema.js +34 -0
- package/build/backend/models/infra-provider.schema.d.ts +87 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +41 -0
- package/build/backend/models/nodes.schema.d.ts +120 -46
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +8 -2
- package/build/frontend/api/controllers/auth.js +2 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/infra-billing.js +18 -0
- package/build/frontend/api/controllers/internal-squads.js +5 -0
- package/build/frontend/api/controllers/subscription.js +1 -0
- package/build/frontend/api/controllers/system.js +1 -0
- package/build/frontend/api/routes.js +22 -0
- package/build/frontend/commands/api-tokens/create.command.js +0 -1
- package/build/frontend/commands/auth/get-status.command.js +3 -0
- package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/frontend/commands/auth/oauth2/index.js +2 -0
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +13 -13
- package/build/frontend/commands/hosts/update.command.js +10 -11
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/infra-billing/index.js +28 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/internal-squads/index.js +2 -1
- package/build/frontend/commands/nodes/create.command.js +7 -4
- package/build/frontend/commands/nodes/update.command.js +9 -4
- package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
- package/build/frontend/commands/subscription/index.js +1 -0
- package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/frontend/commands/system/index.js +1 -0
- package/build/frontend/commands/users/create-user.command.js +2 -4
- package/build/frontend/constants/errors/errors.js +115 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/headers/headers.constants.js +5 -0
- package/build/frontend/constants/headers/index.js +17 -0
- package/build/frontend/constants/index.js +3 -0
- package/build/frontend/constants/messaging/index.js +17 -0
- package/build/frontend/constants/messaging/messaging.constants.js +19 -0
- package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
- package/build/frontend/constants/oauth2/index.js +17 -0
- package/build/frontend/constants/oauth2/providers.contants.js +9 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/api-tokens.schema.js +0 -1
- package/build/frontend/models/hosts.schema.js +5 -2
- package/build/frontend/models/index.js +5 -1
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/build/frontend/models/infra-provider.schema.js +41 -0
- package/build/frontend/models/nodes.schema.js +8 -2
- package/package.json +2 -2
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
- /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
- /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
@@ -17,9 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./endpoint-details"), exports);
|
18
18
|
__exportStar(require("./errors"), exports);
|
19
19
|
__exportStar(require("./events"), exports);
|
20
|
+
__exportStar(require("./headers"), exports);
|
20
21
|
__exportStar(require("./hosts"), exports);
|
22
|
+
__exportStar(require("./messaging"), exports);
|
21
23
|
__exportStar(require("./metrics"), exports);
|
22
24
|
__exportStar(require("./nodes"), exports);
|
25
|
+
__exportStar(require("./oauth2"), exports);
|
23
26
|
__exportStar(require("./roles"), exports);
|
24
27
|
__exportStar(require("./subscription-template"), exports);
|
25
28
|
__exportStar(require("./templates"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/messaging/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./messaging.constants"), exports);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare enum MessagingChannels {
|
2
|
+
EVENT = "redis-event"
|
3
|
+
}
|
4
|
+
export declare enum MessagingBuses {
|
5
|
+
EVENT = "event.bus"
|
6
|
+
}
|
7
|
+
export declare enum MessagingQueues {
|
8
|
+
EVENT = "event-queue"
|
9
|
+
}
|
10
|
+
export declare enum MessagingMessages {
|
11
|
+
NODE_METRICS = "node.metrics"
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=messaging.constants.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"messaging.constants.d.ts","sourceRoot":"","sources":["../../../../constants/messaging/messaging.constants.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IACzB,KAAK,gBAAgB;CACxB;AAED,oBAAY,cAAc;IACtB,KAAK,cAAc;CACtB;AAED,oBAAY,eAAe;IACvB,KAAK,gBAAgB;CACxB;AAED,oBAAY,iBAAiB;IACzB,YAAY,iBAAiB;CAChC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MessagingMessages = exports.MessagingQueues = exports.MessagingBuses = exports.MessagingChannels = void 0;
|
4
|
+
var MessagingChannels;
|
5
|
+
(function (MessagingChannels) {
|
6
|
+
MessagingChannels["EVENT"] = "redis-event";
|
7
|
+
})(MessagingChannels || (exports.MessagingChannels = MessagingChannels = {}));
|
8
|
+
var MessagingBuses;
|
9
|
+
(function (MessagingBuses) {
|
10
|
+
MessagingBuses["EVENT"] = "event.bus";
|
11
|
+
})(MessagingBuses || (exports.MessagingBuses = MessagingBuses = {}));
|
12
|
+
var MessagingQueues;
|
13
|
+
(function (MessagingQueues) {
|
14
|
+
MessagingQueues["EVENT"] = "event-queue";
|
15
|
+
})(MessagingQueues || (exports.MessagingQueues = MessagingQueues = {}));
|
16
|
+
var MessagingMessages;
|
17
|
+
(function (MessagingMessages) {
|
18
|
+
MessagingMessages["NODE_METRICS"] = "node.metrics";
|
19
|
+
})(MessagingMessages || (exports.MessagingMessages = MessagingMessages = {}));
|
@@ -2,7 +2,24 @@ export declare const METRIC_NAMES: {
|
|
2
2
|
readonly NODE_ONLINE_USERS: "node_online_users";
|
3
3
|
readonly NODE_STATUS: "node_status";
|
4
4
|
readonly USERS_STATUS: "users_status";
|
5
|
+
readonly USERS_ONLINE_STATS: "users_online_stats";
|
5
6
|
readonly USERS_TOTAL: "users_total";
|
7
|
+
readonly NODE_INBOUND_UPLOAD_BYTES: "node_inbound_upload_bytes";
|
8
|
+
readonly NODE_INBOUND_DOWNLOAD_BYTES: "node_inbound_download_bytes";
|
9
|
+
readonly NODE_OUTBOUND_UPLOAD_BYTES: "node_outbound_upload_bytes";
|
10
|
+
readonly NODE_OUTBOUND_DOWNLOAD_BYTES: "node_outbound_download_bytes";
|
11
|
+
readonly NODEJS_HEAP_USED_BYTES: "nodejs_heap_used_bytes";
|
12
|
+
readonly NODEJS_HEAP_TOTAL_BYTES: "nodejs_heap_total_bytes";
|
13
|
+
readonly NODEJS_HEAP_USAGE_PERCENT: "nodejs_heap_usage_percent";
|
14
|
+
readonly NODEJS_ACTIVE_HANDLERS: "nodejs_active_handlers";
|
15
|
+
readonly NODEJS_ACTIVE_REQUESTS: "nodejs_active_requests";
|
16
|
+
readonly NODEJS_CPU_USAGE_PERCENT: "nodejs_cpu_usage_percent";
|
17
|
+
readonly NODEJS_MEMORY_USAGE_BYTES: "nodejs_memory_usage_bytes";
|
18
|
+
readonly NODEJS_EVENT_LOOP_LATENCY_P50: "nodejs_event_loop_latency_p50";
|
19
|
+
readonly NODEJS_EVENT_LOOP_LATENCY_P95: "nodejs_event_loop_latency_p95";
|
20
|
+
readonly NODEJS_HTTP_REQ_RATE: "nodejs_http_req_rate";
|
21
|
+
readonly NODEJS_HTTP_REQ_LATENCY_P95: "nodejs_http_req_latency_p95";
|
22
|
+
readonly NODEJS_HTTP_REQ_LATENCY_P50: "nodejs_http_req_latency_p50";
|
6
23
|
};
|
7
24
|
export type TMetricNames = typeof METRIC_NAMES;
|
8
25
|
export type TMetricNamesKeys = (typeof METRIC_NAMES)[keyof typeof METRIC_NAMES];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;CAsBf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
@@ -5,5 +5,22 @@ exports.METRIC_NAMES = {
|
|
5
5
|
NODE_ONLINE_USERS: 'node_online_users',
|
6
6
|
NODE_STATUS: 'node_status',
|
7
7
|
USERS_STATUS: 'users_status',
|
8
|
+
USERS_ONLINE_STATS: 'users_online_stats',
|
8
9
|
USERS_TOTAL: 'users_total',
|
10
|
+
NODE_INBOUND_UPLOAD_BYTES: 'node_inbound_upload_bytes',
|
11
|
+
NODE_INBOUND_DOWNLOAD_BYTES: 'node_inbound_download_bytes',
|
12
|
+
NODE_OUTBOUND_UPLOAD_BYTES: 'node_outbound_upload_bytes',
|
13
|
+
NODE_OUTBOUND_DOWNLOAD_BYTES: 'node_outbound_download_bytes',
|
14
|
+
NODEJS_HEAP_USED_BYTES: 'nodejs_heap_used_bytes',
|
15
|
+
NODEJS_HEAP_TOTAL_BYTES: 'nodejs_heap_total_bytes',
|
16
|
+
NODEJS_HEAP_USAGE_PERCENT: 'nodejs_heap_usage_percent',
|
17
|
+
NODEJS_ACTIVE_HANDLERS: 'nodejs_active_handlers',
|
18
|
+
NODEJS_ACTIVE_REQUESTS: 'nodejs_active_requests',
|
19
|
+
NODEJS_CPU_USAGE_PERCENT: 'nodejs_cpu_usage_percent',
|
20
|
+
NODEJS_MEMORY_USAGE_BYTES: 'nodejs_memory_usage_bytes',
|
21
|
+
NODEJS_EVENT_LOOP_LATENCY_P50: 'nodejs_event_loop_latency_p50',
|
22
|
+
NODEJS_EVENT_LOOP_LATENCY_P95: 'nodejs_event_loop_latency_p95',
|
23
|
+
NODEJS_HTTP_REQ_RATE: 'nodejs_http_req_rate',
|
24
|
+
NODEJS_HTTP_REQ_LATENCY_P95: 'nodejs_http_req_latency_p95',
|
25
|
+
NODEJS_HTTP_REQ_LATENCY_P50: 'nodejs_http_req_latency_p50',
|
9
26
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./providers.contants"), exports);
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare const OAUTH2_PROVIDERS: {
|
2
|
+
readonly GITHUB: "github";
|
3
|
+
readonly POCKETID: "pocketid";
|
4
|
+
readonly YANDEX: "yandex";
|
5
|
+
};
|
6
|
+
export type TOAuth2Providers = [keyof typeof OAUTH2_PROVIDERS][number];
|
7
|
+
export type TOAuth2ProvidersKeys = (typeof OAUTH2_PROVIDERS)[keyof typeof OAUTH2_PROVIDERS];
|
8
|
+
export declare const OAUTH2_PROVIDERS_VALUES: ("github" | "pocketid" | "yandex")[];
|
9
|
+
//# sourceMappingURL=providers.contants.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAC5F,eAAO,MAAM,uBAAuB,sCAAkC,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OAUTH2_PROVIDERS_VALUES = exports.OAUTH2_PROVIDERS = void 0;
|
4
|
+
exports.OAUTH2_PROVIDERS = {
|
5
|
+
GITHUB: 'github',
|
6
|
+
POCKETID: 'pocketid',
|
7
|
+
YANDEX: 'yandex',
|
8
|
+
};
|
9
|
+
exports.OAUTH2_PROVIDERS_VALUES = Object.values(exports.OAUTH2_PROVIDERS);
|
@@ -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"];
|
1
|
+
export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG"];
|
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,
|
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"}
|
@@ -3,19 +3,16 @@ export declare const ApiTokensSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
4
4
|
token: z.ZodString;
|
5
5
|
tokenName: z.ZodString;
|
6
|
-
tokenDescription: z.ZodNullable<z.ZodString>;
|
7
6
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
8
7
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
10
9
|
tokenName: string;
|
11
|
-
tokenDescription: string | null;
|
12
10
|
token: string;
|
13
11
|
uuid: string;
|
14
12
|
createdAt: Date;
|
15
13
|
updatedAt: Date;
|
16
14
|
}, {
|
17
15
|
tokenName: string;
|
18
|
-
tokenDescription: string | null;
|
19
16
|
token: string;
|
20
17
|
uuid: string;
|
21
18
|
createdAt: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api-tokens.schema.d.ts","sourceRoot":"","sources":["../../../models/api-tokens.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe
|
1
|
+
{"version":3,"file":"api-tokens.schema.d.ts","sourceRoot":"","sources":["../../../models/api-tokens.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAa1B,CAAC"}
|
@@ -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=
|
147
|
+
//# sourceMappingURL=extended-users.schema.d.ts.map
|
package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
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"}
|
@@ -17,8 +17,17 @@ export declare const HostsSchema: z.ZodObject<{
|
|
17
17
|
readonly NONE: "NONE";
|
18
18
|
}>>;
|
19
19
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
20
|
-
|
21
|
-
|
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
|
+
}>;
|
30
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
22
31
|
}, "strip", z.ZodTypeAny, {
|
23
32
|
path: string | null;
|
24
33
|
uuid: string;
|
@@ -32,8 +41,11 @@ export declare const HostsSchema: z.ZodObject<{
|
|
32
41
|
fingerprint: string | null;
|
33
42
|
isDisabled: boolean;
|
34
43
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
35
|
-
|
36
|
-
|
44
|
+
inbound: {
|
45
|
+
configProfileUuid: string | null;
|
46
|
+
configProfileInboundUuid: string | null;
|
47
|
+
};
|
48
|
+
serverDescription: string | null;
|
37
49
|
xHttpExtraParams?: unknown;
|
38
50
|
}, {
|
39
51
|
path: string | null;
|
@@ -46,8 +58,11 @@ export declare const HostsSchema: z.ZodObject<{
|
|
46
58
|
host: string | null;
|
47
59
|
alpn: string | null;
|
48
60
|
fingerprint: string | null;
|
49
|
-
|
50
|
-
|
61
|
+
inbound: {
|
62
|
+
configProfileUuid: string | null;
|
63
|
+
configProfileInboundUuid: string | null;
|
64
|
+
};
|
65
|
+
serverDescription: string | null;
|
51
66
|
isDisabled?: boolean | undefined;
|
52
67
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
53
68
|
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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBtB,CAAC"}
|
@@ -17,6 +17,9 @@ 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
|
-
|
21
|
-
|
20
|
+
inbound: zod_1.z.object({
|
21
|
+
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
22
|
+
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
23
|
+
}),
|
24
|
+
serverDescription: zod_1.z.string().nullable(),
|
22
25
|
});
|
@@ -4,10 +4,14 @@ 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 './
|
7
|
+
export * from './extended-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';
|
11
15
|
export * from './internal-squad.schema';
|
12
16
|
export * from './last-connected-node.schema';
|
13
17
|
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,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,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"}
|
@@ -20,10 +20,14 @@ __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("./
|
23
|
+
__exportStar(require("./extended-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);
|
27
31
|
__exportStar(require("./internal-squad.schema"), exports);
|
28
32
|
__exportStar(require("./last-connected-node.schema"), exports);
|
29
33
|
__exportStar(require("./nodes.schema"), exports);
|
@@ -0,0 +1,117 @@
|
|
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
|
+
nodeVersion: import("zod").ZodNullable<import("zod").ZodString>;
|
15
|
+
xrayUptime: import("zod").ZodString;
|
16
|
+
isTrafficTrackingActive: import("zod").ZodBoolean;
|
17
|
+
trafficResetDay: import("zod").ZodNullable<import("zod").ZodNumber>;
|
18
|
+
trafficLimitBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
19
|
+
trafficUsedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20
|
+
notifyPercent: import("zod").ZodNullable<import("zod").ZodNumber>;
|
21
|
+
usersOnline: import("zod").ZodNullable<import("zod").ZodNumber>;
|
22
|
+
viewPosition: import("zod").ZodNumber;
|
23
|
+
countryCode: import("zod").ZodString;
|
24
|
+
consumptionMultiplier: import("zod").ZodNumber;
|
25
|
+
cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
26
|
+
cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
|
27
|
+
totalRam: import("zod").ZodNullable<import("zod").ZodString>;
|
28
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
29
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
30
|
+
configProfile: import("zod").ZodObject<{
|
31
|
+
activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
32
|
+
activeInbounds: import("zod").ZodArray<import("zod").ZodObject<{
|
33
|
+
uuid: import("zod").ZodString;
|
34
|
+
profileUuid: import("zod").ZodString;
|
35
|
+
tag: import("zod").ZodString;
|
36
|
+
type: import("zod").ZodString;
|
37
|
+
network: import("zod").ZodNullable<import("zod").ZodString>;
|
38
|
+
security: import("zod").ZodNullable<import("zod").ZodString>;
|
39
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
40
|
+
rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
|
41
|
+
}, "strip", import("zod").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", import("zod").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: import("zod").ZodNullable<import("zod").ZodString>;
|
86
|
+
provider: import("zod").ZodNullable<import("zod").ZodObject<{
|
87
|
+
uuid: import("zod").ZodString;
|
88
|
+
name: import("zod").ZodString;
|
89
|
+
faviconLink: import("zod").ZodNullable<import("zod").ZodString>;
|
90
|
+
loginUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
91
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
92
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
93
|
+
}, "strip", import("zod").ZodTypeAny, {
|
94
|
+
uuid: string;
|
95
|
+
createdAt: Date;
|
96
|
+
updatedAt: Date;
|
97
|
+
name: string;
|
98
|
+
faviconLink: string | null;
|
99
|
+
loginUrl: string | null;
|
100
|
+
}, {
|
101
|
+
uuid: string;
|
102
|
+
createdAt: string;
|
103
|
+
updatedAt: string;
|
104
|
+
name: string;
|
105
|
+
faviconLink: string | null;
|
106
|
+
loginUrl: string | null;
|
107
|
+
}>>;
|
108
|
+
}, "uuid" | "name" | "countryCode">, "strip", import("zod").ZodTypeAny, {
|
109
|
+
uuid: string;
|
110
|
+
name: string;
|
111
|
+
countryCode: string;
|
112
|
+
}, {
|
113
|
+
uuid: string;
|
114
|
+
name: string;
|
115
|
+
countryCode: string;
|
116
|
+
}>;
|
117
|
+
//# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1,9 @@
|
|
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
|
+
});
|
@@ -0,0 +1,44 @@
|
|
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
|
+
provider: {
|
26
|
+
uuid: string;
|
27
|
+
name: string;
|
28
|
+
faviconLink: string | null;
|
29
|
+
};
|
30
|
+
providerUuid: string;
|
31
|
+
amount: number;
|
32
|
+
billedAt: Date;
|
33
|
+
}, {
|
34
|
+
uuid: string;
|
35
|
+
provider: {
|
36
|
+
uuid: string;
|
37
|
+
name: string;
|
38
|
+
faviconLink: string | null;
|
39
|
+
};
|
40
|
+
providerUuid: string;
|
41
|
+
amount: number;
|
42
|
+
billedAt: string;
|
43
|
+
}>;
|
44
|
+
//# sourceMappingURL=infra-billing-history-record.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
});
|