@remnawave/backend-contract 2.0.0-alpha.9 → 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/infra-billing.d.ts +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
- package/build/backend/api/controllers/infra-billing.js +1 -5
- 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 +9 -1
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +9 -1
- 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/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/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 +59 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
- 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/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 +59 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.d.ts +7 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +7 -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 +59 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
- 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/{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 +140 -101
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +158 -107
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +6 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
- 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 +212 -134
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +8 -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 +85 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +85 -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 +4 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -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 +63 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
- package/build/backend/models/infra-provider.schema.js +24 -1
- package/build/backend/models/nodes.schema.d.ts +96 -63
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -3
- package/build/frontend/api/controllers/auth.js +2 -0
- package/build/frontend/api/controllers/infra-billing.js +1 -5
- 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 +9 -1
- 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/hosts/create.command.js +13 -13
- package/build/frontend/commands/hosts/update.command.js +10 -11
- 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 +1 -1
- 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/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/index.js +7 -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 +1 -1
- 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/index.js +2 -1
- package/build/frontend/commands/nodes/create.command.js +6 -4
- package/build/frontend/commands/nodes/update.command.js +8 -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 +85 -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 +4 -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 +24 -1
- package/build/frontend/models/nodes.schema.js +6 -3
- 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
@@ -5,6 +5,8 @@ export declare const AUTH_ROUTES: {
|
|
5
5
|
readonly GET_STATUS: "status";
|
6
6
|
readonly OAUTH2: {
|
7
7
|
readonly TELEGRAM_CALLBACK: "oauth2/tg/callback";
|
8
|
+
readonly AUTHORIZE: "oauth2/authorize";
|
9
|
+
readonly CALLBACK: "oauth2/callback";
|
8
10
|
};
|
9
11
|
};
|
10
12
|
//# sourceMappingURL=auth.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../api/controllers/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../api/controllers/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;;;;;;CAUd,CAAC"}
|
@@ -7,7 +7,7 @@ export declare const INFRA_BILLING_ROUTES: {
|
|
7
7
|
readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
|
8
8
|
readonly GET_BILLING_NODES: "nodes";
|
9
9
|
readonly CREATE_BILLING_NODE: "nodes";
|
10
|
-
readonly UPDATE_BILLING_NODE:
|
10
|
+
readonly UPDATE_BILLING_NODE: "nodes";
|
11
11
|
readonly DELETE_BILLING_NODE: (uuid: string) => string;
|
12
12
|
readonly GET_BILLING_HISTORY: "history";
|
13
13
|
readonly CREATE_BILLING_HISTORY: "history";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM
|
1
|
+
{"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM;;;;yCAKP,MAAM;;;4CAIH,MAAM;CAC/B,CAAC"}
|
@@ -10,13 +10,9 @@ exports.INFRA_BILLING_ROUTES = {
|
|
10
10
|
GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
|
11
11
|
GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
|
12
12
|
CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
|
13
|
-
UPDATE_BILLING_NODE:
|
13
|
+
UPDATE_BILLING_NODE: 'nodes', // Update node billing by uuid // patch
|
14
14
|
DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
|
15
15
|
GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
|
16
16
|
CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
|
17
17
|
DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
|
18
|
-
// GET_BILLING_HISTORY_BY_NODE_UUID: (nodeUuid: string) => `history/${nodeUuid}`, // Get list of all nodes billing history by node uuid // get
|
19
|
-
// GET_BILLING_HISTORY_BY_PROVIDER_UUID: (providerUuid: string) => `history/${providerUuid}`, // Get list of all nodes billing history by provider uuid // get
|
20
|
-
// GET_BILLING_HISTORY_BY_NODE_UUID_AND_PROVIDER_UUID: (nodeUuid: string, providerUuid: string) =>
|
21
|
-
// `history/${nodeUuid}/${providerUuid}`, // Get list of all nodes billing history by node uuid and provider uuid // get
|
22
18
|
};
|
@@ -5,5 +5,9 @@ export declare const INTERNAL_SQUADS_ROUTES: {
|
|
5
5
|
readonly UPDATE: "";
|
6
6
|
readonly GET_BY_UUID: (uuid: string) => string;
|
7
7
|
readonly DELETE: (uuid: string) => string;
|
8
|
+
readonly BULK_ACTIONS: {
|
9
|
+
readonly ADD_USERS: (uuid: string) => string;
|
10
|
+
readonly REMOVE_USERS: (uuid: string) => string;
|
11
|
+
};
|
8
12
|
};
|
9
13
|
//# sourceMappingURL=internal-squads.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"internal-squads.d.ts","sourceRoot":"","sources":["../../../../api/controllers/internal-squads.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;
|
1
|
+
{"version":3,"file":"internal-squads.d.ts","sourceRoot":"","sources":["../../../../api/controllers/internal-squads.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAIrE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;;mCAGC,MAAM;sCACH,MAAM;;CAEzB,CAAC"}
|
@@ -2,10 +2,15 @@
|
|
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';
|
5
6
|
exports.INTERNAL_SQUADS_ROUTES = {
|
6
7
|
GET: '', // Get list of all internal squads // get
|
7
8
|
CREATE: '', // Create new internal squad // post
|
8
9
|
UPDATE: '', // Update internal squad by uuid // patch
|
9
10
|
GET_BY_UUID: (uuid) => `${uuid}`, // Get internal squad by uuid // get
|
10
11
|
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
|
+
},
|
11
16
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,KAAc,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;mCAGN,MAAM;
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,KAAc,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;mCAGN,MAAM;kCACP,MAAM;CACrB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../api/controllers/system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../api/controllers/system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;;;;;;;CAQhB,CAAC"}
|
@@ -8,6 +8,8 @@ export declare const REST_API: {
|
|
8
8
|
readonly GET_STATUS: "/api/auth/status";
|
9
9
|
readonly OAUTH2: {
|
10
10
|
readonly TELEGRAM_CALLBACK: "/api/auth/oauth2/tg/callback";
|
11
|
+
readonly AUTHORIZE: "/api/auth/oauth2/authorize";
|
12
|
+
readonly CALLBACK: "/api/auth/oauth2/callback";
|
11
13
|
};
|
12
14
|
};
|
13
15
|
readonly API_TOKENS: {
|
@@ -81,6 +83,7 @@ export declare const REST_API: {
|
|
81
83
|
readonly GET: (shortUuid: string) => string;
|
82
84
|
readonly GET_OUTLINE: (shortUuid: string) => string;
|
83
85
|
readonly GET_INFO: (shortUuid: string) => string;
|
86
|
+
readonly GET_RAW: (shortUuid: string) => string;
|
84
87
|
};
|
85
88
|
readonly HOSTS: {
|
86
89
|
readonly CREATE: "/api/hosts/";
|
@@ -105,6 +108,7 @@ export declare const REST_API: {
|
|
105
108
|
readonly SYSTEM_STATS: "/api/system/stats";
|
106
109
|
readonly BANDWIDTH_STATS: "/api/system/stats/bandwidth";
|
107
110
|
readonly NODES_STATS: "/api/system/stats/nodes";
|
111
|
+
readonly NODES_METRICS: "/api/system/nodes/metrics";
|
108
112
|
};
|
109
113
|
};
|
110
114
|
readonly SUBSCRIPTION_TEMPLATE: {
|
@@ -141,6 +145,10 @@ export declare const REST_API: {
|
|
141
145
|
readonly UPDATE: "/api/internal-squads/";
|
142
146
|
readonly GET_BY_UUID: (uuid: string) => string;
|
143
147
|
readonly DELETE: (uuid: string) => string;
|
148
|
+
readonly BULK_ACTIONS: {
|
149
|
+
readonly ADD_USERS: (uuid: string) => string;
|
150
|
+
readonly REMOVE_USERS: (uuid: string) => string;
|
151
|
+
};
|
144
152
|
};
|
145
153
|
readonly INFRA_BILLING: {
|
146
154
|
readonly GET_PROVIDERS: "/api/infra-billing/providers";
|
@@ -150,7 +158,7 @@ export declare const REST_API: {
|
|
150
158
|
readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
|
151
159
|
readonly GET_BILLING_NODES: "/api/infra-billing/nodes";
|
152
160
|
readonly CREATE_BILLING_NODE: "/api/infra-billing/nodes";
|
153
|
-
readonly UPDATE_BILLING_NODE:
|
161
|
+
readonly UPDATE_BILLING_NODE: "/api/infra-billing/nodes";
|
154
162
|
readonly DELETE_BILLING_NODE: (uuid: string) => string;
|
155
163
|
readonly GET_BILLING_HISTORY: "/api/infra-billing/history";
|
156
164
|
readonly CREATE_BILLING_HISTORY: "/api/infra-billing/history";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;sCAIP,MAAM;;;;;;qCASP,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;qCAwBD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;0CASf,MAAM;;;;;;;qCAUX,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;;uCAMC,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;CAGnC,CAAC"}
|
@@ -45,6 +45,8 @@ exports.REST_API = {
|
|
45
45
|
GET_STATUS: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.GET_STATUS}`,
|
46
46
|
OAUTH2: {
|
47
47
|
TELEGRAM_CALLBACK: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.OAUTH2.TELEGRAM_CALLBACK}`,
|
48
|
+
AUTHORIZE: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.OAUTH2.AUTHORIZE}`,
|
49
|
+
CALLBACK: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.OAUTH2.CALLBACK}`,
|
48
50
|
},
|
49
51
|
},
|
50
52
|
API_TOKENS: {
|
@@ -118,6 +120,7 @@ exports.REST_API = {
|
|
118
120
|
GET: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET}${shortUuid}`,
|
119
121
|
GET_OUTLINE: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_OUTLINE}/${shortUuid}`,
|
120
122
|
GET_INFO: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_INFO(shortUuid)}`,
|
123
|
+
GET_RAW: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_RAW(shortUuid)}`,
|
121
124
|
},
|
122
125
|
HOSTS: {
|
123
126
|
CREATE: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.CREATE}`,
|
@@ -142,6 +145,7 @@ exports.REST_API = {
|
|
142
145
|
SYSTEM_STATS: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.STATS.SYSTEM_STATS}`,
|
143
146
|
BANDWIDTH_STATS: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.STATS.BANDWIDTH_STATS}`,
|
144
147
|
NODES_STATS: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.STATS.NODES_STATS}`,
|
148
|
+
NODES_METRICS: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.STATS.NODES_METRICS}`,
|
145
149
|
},
|
146
150
|
},
|
147
151
|
SUBSCRIPTION_TEMPLATE: {
|
@@ -178,6 +182,10 @@ exports.REST_API = {
|
|
178
182
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.UPDATE}`,
|
179
183
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.GET_BY_UUID(uuid)}`,
|
180
184
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.DELETE(uuid)}`,
|
185
|
+
BULK_ACTIONS: {
|
186
|
+
ADD_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_USERS(uuid)}`,
|
187
|
+
REMOVE_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(uuid)}`,
|
188
|
+
},
|
181
189
|
},
|
182
190
|
INFRA_BILLING: {
|
183
191
|
GET_PROVIDERS: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDERS}`,
|
@@ -187,7 +195,7 @@ exports.REST_API = {
|
|
187
195
|
GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
|
188
196
|
GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
|
189
197
|
CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
|
190
|
-
UPDATE_BILLING_NODE:
|
198
|
+
UPDATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE}`,
|
191
199
|
DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
|
192
200
|
GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
|
193
201
|
CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
|
@@ -5,13 +5,10 @@ export declare namespace CreateApiTokenCommand {
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
tokenName: z.ZodString;
|
8
|
-
tokenDescription: z.ZodNullable<z.ZodString>;
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
10
9
|
tokenName: string;
|
11
|
-
tokenDescription: string | null;
|
12
10
|
}, {
|
13
11
|
tokenName: string;
|
14
|
-
tokenDescription: string | null;
|
15
12
|
}>;
|
16
13
|
type Request = z.infer<typeof RequestSchema>;
|
17
14
|
const ResponseSchema: z.ZodObject<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gBAA6B,CAAC;IACvC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gBAA6B,CAAC;IACvC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -11,7 +11,6 @@ var CreateApiTokenCommand;
|
|
11
11
|
CreateApiTokenCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.API_TOKENS_ROUTES.CREATE, 'post', 'Create a new API token', 'This endpoint is forbidden to use via "API-key". It can only be used with an admin JWT-token.');
|
12
12
|
CreateApiTokenCommand.RequestSchema = zod_1.z.object({
|
13
13
|
tokenName: zod_1.z.string(),
|
14
|
-
tokenDescription: zod_1.z.string().nullable(),
|
15
14
|
});
|
16
15
|
CreateApiTokenCommand.ResponseSchema = zod_1.z.object({
|
17
16
|
response: zod_1.z.object({
|
@@ -9,19 +9,16 @@ export declare namespace FindAllApiTokensCommand {
|
|
9
9
|
uuid: z.ZodString;
|
10
10
|
token: z.ZodString;
|
11
11
|
tokenName: z.ZodString;
|
12
|
-
tokenDescription: z.ZodNullable<z.ZodString>;
|
13
12
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
14
13
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
15
14
|
}, "strip", z.ZodTypeAny, {
|
16
15
|
tokenName: string;
|
17
|
-
tokenDescription: string | null;
|
18
16
|
token: string;
|
19
17
|
uuid: string;
|
20
18
|
createdAt: Date;
|
21
19
|
updatedAt: Date;
|
22
20
|
}, {
|
23
21
|
tokenName: string;
|
24
|
-
tokenDescription: string | null;
|
25
22
|
token: string;
|
26
23
|
uuid: string;
|
27
24
|
createdAt: string;
|
@@ -43,7 +40,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
43
40
|
}, "strip", z.ZodTypeAny, {
|
44
41
|
apiKeys: {
|
45
42
|
tokenName: string;
|
46
|
-
tokenDescription: string | null;
|
47
43
|
token: string;
|
48
44
|
uuid: string;
|
49
45
|
createdAt: Date;
|
@@ -57,7 +53,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
57
53
|
}, {
|
58
54
|
apiKeys: {
|
59
55
|
tokenName: string;
|
60
|
-
tokenDescription: string | null;
|
61
56
|
token: string;
|
62
57
|
uuid: string;
|
63
58
|
createdAt: string;
|
@@ -73,7 +68,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
73
68
|
response: {
|
74
69
|
apiKeys: {
|
75
70
|
tokenName: string;
|
76
|
-
tokenDescription: string | null;
|
77
71
|
token: string;
|
78
72
|
uuid: string;
|
79
73
|
createdAt: Date;
|
@@ -89,7 +83,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
89
83
|
response: {
|
90
84
|
apiKeys: {
|
91
85
|
tokenName: string;
|
92
|
-
tokenDescription: string | null;
|
93
86
|
token: string;
|
94
87
|
uuid: string;
|
95
88
|
createdAt: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"find.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/find.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,gBAA0B,CAAC;IACpC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,cAAc
|
1
|
+
{"version":3,"file":"find.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/find.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,gBAA0B,CAAC;IACpC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -14,18 +14,35 @@ export declare namespace GetStatusCommand {
|
|
14
14
|
}, {
|
15
15
|
botId: number;
|
16
16
|
}>>;
|
17
|
+
oauth2: z.ZodObject<{
|
18
|
+
providers: z.ZodRecord<z.ZodNativeEnum<{
|
19
|
+
readonly GITHUB: "github";
|
20
|
+
readonly POCKETID: "pocketid";
|
21
|
+
readonly YANDEX: "yandex";
|
22
|
+
}>, z.ZodBoolean>;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
25
|
+
}, {
|
26
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
27
|
+
}>;
|
17
28
|
}, "strip", z.ZodTypeAny, {
|
18
29
|
isLoginAllowed: boolean;
|
19
30
|
isRegisterAllowed: boolean;
|
20
31
|
tgAuth: {
|
21
32
|
botId: number;
|
22
33
|
} | null;
|
34
|
+
oauth2: {
|
35
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
36
|
+
};
|
23
37
|
}, {
|
24
38
|
isLoginAllowed: boolean;
|
25
39
|
isRegisterAllowed: boolean;
|
26
40
|
tgAuth: {
|
27
41
|
botId: number;
|
28
42
|
} | null;
|
43
|
+
oauth2: {
|
44
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
45
|
+
};
|
29
46
|
}>;
|
30
47
|
}, "strip", z.ZodTypeAny, {
|
31
48
|
response: {
|
@@ -34,6 +51,9 @@ export declare namespace GetStatusCommand {
|
|
34
51
|
tgAuth: {
|
35
52
|
botId: number;
|
36
53
|
} | null;
|
54
|
+
oauth2: {
|
55
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
56
|
+
};
|
37
57
|
};
|
38
58
|
}, {
|
39
59
|
response: {
|
@@ -42,6 +62,9 @@ export declare namespace GetStatusCommand {
|
|
42
62
|
tgAuth: {
|
43
63
|
botId: number;
|
44
64
|
} | null;
|
65
|
+
oauth2: {
|
66
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
67
|
+
};
|
45
68
|
};
|
46
69
|
}>;
|
47
70
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -18,6 +18,9 @@ var GetStatusCommand;
|
|
18
18
|
botId: zod_1.z.number(),
|
19
19
|
})
|
20
20
|
.nullable(),
|
21
|
+
oauth2: zod_1.z.object({
|
22
|
+
providers: zod_1.z.record(zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS), zod_1.z.boolean()),
|
23
|
+
}),
|
21
24
|
}),
|
22
25
|
});
|
23
26
|
})(GetStatusCommand || (exports.GetStatusCommand = GetStatusCommand = {}));
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace OAuth2AuthorizeCommand {
|
3
|
+
const url: "/api/auth/oauth2/authorize";
|
4
|
+
const TSQ_url: "/api/auth/oauth2/authorize";
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
provider: z.ZodNativeEnum<{
|
8
|
+
readonly GITHUB: "github";
|
9
|
+
readonly POCKETID: "pocketid";
|
10
|
+
readonly YANDEX: "yandex";
|
11
|
+
}>;
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
13
|
+
provider: "github" | "pocketid" | "yandex";
|
14
|
+
}, {
|
15
|
+
provider: "github" | "pocketid" | "yandex";
|
16
|
+
}>;
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
18
|
+
response: z.ZodObject<{
|
19
|
+
authorizationUrl: z.ZodNullable<z.ZodString>;
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
21
|
+
authorizationUrl: string | null;
|
22
|
+
}, {
|
23
|
+
authorizationUrl: string | null;
|
24
|
+
}>;
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
26
|
+
response: {
|
27
|
+
authorizationUrl: string | null;
|
28
|
+
};
|
29
|
+
}, {
|
30
|
+
response: {
|
31
|
+
authorizationUrl: string | null;
|
32
|
+
};
|
33
|
+
}>;
|
34
|
+
type Response = z.infer<typeof ResponseSchema>;
|
35
|
+
}
|
36
|
+
//# sourceMappingURL=authorize.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"authorize.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/authorize.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;MAExB,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OAuth2AuthorizeCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const api_1 = require("../../../api");
|
7
|
+
var OAuth2AuthorizeCommand;
|
8
|
+
(function (OAuth2AuthorizeCommand) {
|
9
|
+
OAuth2AuthorizeCommand.url = api_1.REST_API.AUTH.OAUTH2.AUTHORIZE;
|
10
|
+
OAuth2AuthorizeCommand.TSQ_url = OAuth2AuthorizeCommand.url;
|
11
|
+
OAuth2AuthorizeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.OAUTH2.AUTHORIZE, 'post', 'Initiate OAuth2 authorization');
|
12
|
+
OAuth2AuthorizeCommand.RequestSchema = zod_1.z.object({
|
13
|
+
provider: zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS),
|
14
|
+
});
|
15
|
+
OAuth2AuthorizeCommand.ResponseSchema = zod_1.z.object({
|
16
|
+
response: zod_1.z.object({
|
17
|
+
authorizationUrl: zod_1.z.nullable(zod_1.z.string().url()),
|
18
|
+
}),
|
19
|
+
});
|
20
|
+
})(OAuth2AuthorizeCommand || (exports.OAuth2AuthorizeCommand = OAuth2AuthorizeCommand = {}));
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace OAuth2CallbackCommand {
|
3
|
+
const url: "/api/auth/oauth2/callback";
|
4
|
+
const TSQ_url: "/api/auth/oauth2/callback";
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
provider: z.ZodNativeEnum<{
|
8
|
+
readonly GITHUB: "github";
|
9
|
+
readonly POCKETID: "pocketid";
|
10
|
+
readonly YANDEX: "yandex";
|
11
|
+
}>;
|
12
|
+
code: z.ZodString;
|
13
|
+
state: z.ZodString;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
code: string;
|
16
|
+
provider: "github" | "pocketid" | "yandex";
|
17
|
+
state: string;
|
18
|
+
}, {
|
19
|
+
code: string;
|
20
|
+
provider: "github" | "pocketid" | "yandex";
|
21
|
+
state: string;
|
22
|
+
}>;
|
23
|
+
type Request = z.infer<typeof RequestSchema>;
|
24
|
+
const ResponseSchema: z.ZodObject<{
|
25
|
+
response: z.ZodObject<{
|
26
|
+
accessToken: z.ZodString;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
accessToken: string;
|
29
|
+
}, {
|
30
|
+
accessToken: string;
|
31
|
+
}>;
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
33
|
+
response: {
|
34
|
+
accessToken: string;
|
35
|
+
};
|
36
|
+
}, {
|
37
|
+
response: {
|
38
|
+
accessToken: string;
|
39
|
+
};
|
40
|
+
}>;
|
41
|
+
type Response = z.infer<typeof ResponseSchema>;
|
42
|
+
}
|
43
|
+
//# sourceMappingURL=callback.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"callback.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/callback.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,6BAAgC,CAAC;IAC1C,MAAM,OAAO,6BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;MAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OAuth2CallbackCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const api_1 = require("../../../api");
|
7
|
+
var OAuth2CallbackCommand;
|
8
|
+
(function (OAuth2CallbackCommand) {
|
9
|
+
OAuth2CallbackCommand.url = api_1.REST_API.AUTH.OAUTH2.CALLBACK;
|
10
|
+
OAuth2CallbackCommand.TSQ_url = OAuth2CallbackCommand.url;
|
11
|
+
OAuth2CallbackCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.OAUTH2.CALLBACK, 'post', 'Callback from OAuth2');
|
12
|
+
OAuth2CallbackCommand.RequestSchema = zod_1.z.object({
|
13
|
+
provider: zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS),
|
14
|
+
code: zod_1.z.string(),
|
15
|
+
state: zod_1.z.string(),
|
16
|
+
});
|
17
|
+
OAuth2CallbackCommand.ResponseSchema = zod_1.z.object({
|
18
|
+
response: zod_1.z.object({
|
19
|
+
accessToken: zod_1.z.string(),
|
20
|
+
}),
|
21
|
+
});
|
22
|
+
})(OAuth2CallbackCommand || (exports.OAuth2CallbackCommand = OAuth2CallbackCommand = {}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC"}
|
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./authorize.command"), exports);
|
18
|
+
__exportStar(require("./callback.command"), exports);
|
17
19
|
__exportStar(require("./telegram-callback.command"), exports);
|
@@ -30,8 +30,17 @@ export declare namespace BulkDeleteHostsCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
inbound: z.ZodObject<{
|
34
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
35
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
configProfileUuid: string | null;
|
38
|
+
configProfileInboundUuid: string | null;
|
39
|
+
}, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}>;
|
43
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
35
44
|
}, "strip", z.ZodTypeAny, {
|
36
45
|
path: string | null;
|
37
46
|
uuid: string;
|
@@ -45,8 +54,11 @@ export declare namespace BulkDeleteHostsCommand {
|
|
45
54
|
fingerprint: string | null;
|
46
55
|
isDisabled: boolean;
|
47
56
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
57
|
+
inbound: {
|
58
|
+
configProfileUuid: string | null;
|
59
|
+
configProfileInboundUuid: string | null;
|
60
|
+
};
|
61
|
+
serverDescription: string | null;
|
50
62
|
xHttpExtraParams?: unknown;
|
51
63
|
}, {
|
52
64
|
path: string | null;
|
@@ -59,8 +71,11 @@ export declare namespace BulkDeleteHostsCommand {
|
|
59
71
|
host: string | null;
|
60
72
|
alpn: string | null;
|
61
73
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
74
|
+
inbound: {
|
75
|
+
configProfileUuid: string | null;
|
76
|
+
configProfileInboundUuid: string | null;
|
77
|
+
};
|
78
|
+
serverDescription: string | null;
|
64
79
|
isDisabled?: boolean | undefined;
|
65
80
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
81
|
xHttpExtraParams?: unknown;
|
@@ -79,8 +94,11 @@ export declare namespace BulkDeleteHostsCommand {
|
|
79
94
|
fingerprint: string | null;
|
80
95
|
isDisabled: boolean;
|
81
96
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
97
|
+
inbound: {
|
98
|
+
configProfileUuid: string | null;
|
99
|
+
configProfileInboundUuid: string | null;
|
100
|
+
};
|
101
|
+
serverDescription: string | null;
|
84
102
|
xHttpExtraParams?: unknown;
|
85
103
|
}[];
|
86
104
|
}, {
|
@@ -95,8 +113,11 @@ export declare namespace BulkDeleteHostsCommand {
|
|
95
113
|
host: string | null;
|
96
114
|
alpn: string | null;
|
97
115
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
116
|
+
inbound: {
|
117
|
+
configProfileUuid: string | null;
|
118
|
+
configProfileInboundUuid: string | null;
|
119
|
+
};
|
120
|
+
serverDescription: string | null;
|
100
121
|
isDisabled?: boolean | undefined;
|
101
122
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
123
|
xHttpExtraParams?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"delete-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/delete-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"delete-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/delete-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
|