@remnawave/backend-contract 2.9.3 → 2.9.5
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/commands/api-tokens/create.command.d.ts +9 -54
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/delete.command.d.ts +2 -6
- package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/delete.command.js +1 -1
- package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts +9 -91
- package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/get-scopes.command.d.ts +21 -144
- package/build/backend/commands/api-tokens/get-scopes.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.d.ts +8 -122
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +1 -1
- package/build/backend/commands/auth/login.command.d.ts +3 -21
- package/build/backend/commands/auth/login.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +5 -21
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/authorize.command.js +2 -2
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +4 -24
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/callback.command.js +1 -1
- package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts +1 -5
- package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts.map +1 -1
- package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts +3 -19
- package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts.map +1 -1
- package/build/backend/commands/auth/register.command.d.ts +3 -21
- package/build/backend/commands/auth/register.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts +10 -48
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts +10 -52
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts +11 -67
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts +13 -123
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts +11 -67
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +15 -129
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +17 -252
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +13 -141
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/create-config-profile.command.js +1 -1
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +2 -6
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/delete-config-profile.command.js +1 -1
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +6 -83
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-all-inbounds.command.js +1 -1
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +13 -135
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +13 -135
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +12 -186
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +8 -89
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +14 -140
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/update-config-profile.command.js +2 -2
- package/build/backend/commands/connections/connections-by-node-result.command.d.ts +8 -110
- package/build/backend/commands/connections/connections-by-node-result.command.d.ts.map +1 -1
- package/build/backend/commands/connections/connections-by-node-result.command.js +2 -3
- package/build/backend/commands/connections/connections-by-node.command.d.ts +4 -20
- package/build/backend/commands/connections/connections-by-node.command.d.ts.map +1 -1
- package/build/backend/commands/connections/connections-by-node.command.js +1 -1
- package/build/backend/commands/connections/connections-by-user-result.command.d.ts +10 -162
- package/build/backend/commands/connections/connections-by-user-result.command.d.ts.map +1 -1
- package/build/backend/commands/connections/connections-by-user-result.command.js +3 -4
- package/build/backend/commands/connections/connections-by-user.command.d.ts +4 -20
- package/build/backend/commands/connections/connections-by-user.command.d.ts.map +1 -1
- package/build/backend/commands/connections/connections-by-user.command.js +1 -1
- package/build/backend/commands/connections/drop-connections.command.d.ts +19 -91
- package/build/backend/commands/connections/drop-connections.command.d.ts.map +1 -1
- package/build/backend/commands/connections/drop-connections.command.js +3 -3
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts +29 -482
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +2 -6
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +2 -6
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +24 -262
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +2 -6
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/delete-external-squad.command.js +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +25 -263
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +24 -356
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +41 -403
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.js +8 -8
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +2 -6
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +2 -6
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +2 -6
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +16 -93
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +33 -261
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +12 -17
- package/build/backend/commands/hosts/delete.command.d.ts +2 -6
- package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/delete.command.js +1 -1
- package/build/backend/commands/hosts/get-host.command.d.ts +20 -178
- package/build/backend/commands/hosts/get-host.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-host.command.js +1 -1
- package/build/backend/commands/hosts/get-hosts.command.d.ts +18 -172
- package/build/backend/commands/hosts/get-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/host.response.d.ts +18 -172
- package/build/backend/commands/hosts/host.response.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +7 -98
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts +3 -15
- package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +35 -330
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +12 -17
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +7 -99
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts +7 -87
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +7 -89
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts +5 -93
- package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-hwid-devices.command.d.ts +13 -127
- package/build/backend/commands/hwid/get-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts +7 -59
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +7 -87
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +12 -107
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +4 -7
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +23 -739
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.js +4 -7
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +12 -120
- 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 +2 -2
- package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts +2 -6
- package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-bill-record.command.js +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts +2 -6
- package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node.command.js +1 -1
- package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts +2 -6
- package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-infra-provider.command.js +1 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -105
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.js +2 -2
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +19 -725
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts +11 -115
- package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-provider.command.js +1 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +10 -158
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +22 -734
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.js +3 -6
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +13 -123
- 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 +4 -8
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +16 -233
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +2 -6
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +2 -6
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +12 -126
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +3 -3
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +2 -6
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/delete-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +9 -71
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
- package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts +12 -124
- package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +11 -171
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +13 -129
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/update-internal-squad.command.js +2 -2
- package/build/backend/commands/keygen/get-node-secret-key.command.d.ts +2 -14
- package/build/backend/commands/keygen/get-node-secret-key.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts +5 -29
- package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/node/get-node-metadata.command.js +2 -2
- package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts +7 -39
- package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
- package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts +5 -29
- package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/user/get-user-metadata.command.js +2 -2
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts +7 -39
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +5 -34
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +8 -72
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +4 -32
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts +2 -6
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/delete-node-plugin.command.js +1 -1
- package/build/backend/commands/node-plugins/executor.command.d.ts +23 -137
- package/build/backend/commands/node-plugins/executor.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/executor.command.js +3 -3
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +5 -34
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/get-node-plugin.command.js +1 -1
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +4 -50
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +7 -123
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +23 -725
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +5 -38
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/update-node-plugin.command.js +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +32 -532
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.js +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +32 -532
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.js +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +35 -796
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +2 -6
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reset-traffic.command.js +1 -1
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts +1 -5
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/restart.command.d.ts +3 -11
- package/build/backend/commands/nodes/actions/restart.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/restart.command.js +1 -1
- package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts +3 -9
- package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/actions.command.js +2 -2
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +8 -46
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts +5 -23
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
- package/build/backend/commands/nodes/create.command.d.ts +42 -584
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +16 -36
- package/build/backend/commands/nodes/delete.command.d.ts +2 -6
- package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/delete.command.js +1 -1
- package/build/backend/commands/nodes/get-node.command.d.ts +32 -532
- package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-node.command.js +1 -1
- package/build/backend/commands/nodes/get-nodes.command.d.ts +30 -526
- package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/node.response.d.ts +30 -526
- package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
- package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts +3 -15
- package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +41 -836
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +17 -29
- package/build/backend/commands/passkeys/delete-passkey.command.d.ts +1 -5
- package/build/backend/commands/passkeys/delete-passkey.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/get-passkeys.command.d.ts +5 -47
- package/build/backend/commands/passkeys/get-passkeys.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/get-passkeys.command.js +4 -10
- package/build/backend/commands/passkeys/get-registration-options.command.d.ts +1 -5
- package/build/backend/commands/passkeys/get-registration-options.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/update-passkey.command.d.ts +6 -54
- package/build/backend/commands/passkeys/update-passkey.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/update-passkey.command.js +6 -8
- package/build/backend/commands/passkeys/verify-registration.command.d.ts +3 -19
- package/build/backend/commands/passkeys/verify-registration.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +25 -457
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +49 -789
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/create-snippet.command.d.ts +5 -45
- package/build/backend/commands/snippets/create-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/create-snippet.command.js +3 -3
- package/build/backend/commands/snippets/delete-snippet.command.d.ts +1 -5
- package/build/backend/commands/snippets/delete-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/get-snippets.command.d.ts +3 -37
- package/build/backend/commands/snippets/get-snippets.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/update-snippet.command.d.ts +5 -45
- package/build/backend/commands/snippets/update-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/update-snippet.command.js +3 -3
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts +2 -8
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
- package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts +1 -5
- package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +8 -124
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +5 -34
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +8 -72
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +4 -32
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts +2 -6
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +5 -34
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +4 -50
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +5 -38
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts +5 -57
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +12 -102
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +31 -492
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +59 -847
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +9 -94
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.d.ts +6 -44
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.js +3 -3
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +2 -6
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/delete-subscription-template.command.js +1 -1
- package/build/backend/commands/subscription-template/get-template.command.d.ts +6 -42
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +1 -1
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +5 -63
- package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.d.ts +7 -49
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +4 -4
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts +7 -31
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +102 -1301
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts +8 -124
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +8 -124
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts +9 -125
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
- package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts +11 -181
- package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-subscriptions.command.js +5 -8
- package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts +5 -29
- package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +8 -160
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-metadata.command.d.ts +6 -118
- package/build/backend/commands/system/get-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +5 -129
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-nodes-statistics.d.ts +4 -44
- package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
- package/build/backend/commands/system/get-recap.command.d.ts +5 -89
- package/build/backend/commands/system/get-recap.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-recap.command.js +1 -3
- package/build/backend/commands/system/get-remnawave-health.command.d.ts +3 -99
- package/build/backend/commands/system/get-remnawave-health.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.d.ts +14 -151
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.js +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +35 -545
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.js +1 -1
- package/build/backend/commands/system/tools/generate-x25519.command.d.ts +3 -33
- package/build/backend/commands/system/tools/generate-x25519.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.d.ts +26 -193
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.js +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +26 -193
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.js +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +26 -193
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.js +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +28 -204
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.js +3 -3
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts +3 -7
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +2 -6
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.js +1 -4
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts +3 -9
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +2 -6
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +2 -6
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts +3 -9
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +10 -60
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +11 -26
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts +2 -6
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +7 -27
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
- package/build/backend/commands/users/create-user.command.d.ts +38 -241
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +25 -63
- package/build/backend/commands/users/delete-user.command.d.ts +2 -6
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/delete-user.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts +26 -193
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-id.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +25 -192
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +25 -192
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +10 -96
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +4 -4
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +26 -193
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +6 -62
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.js +2 -4
- package/build/backend/commands/users/get-users-stream.command.d.ts +33 -300
- package/build/backend/commands/users/get-users-stream.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-users-stream.command.js +10 -11
- package/build/backend/commands/users/get-users.command.d.ts +33 -316
- package/build/backend/commands/users/get-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/resolve-user.command.d.ts +6 -50
- package/build/backend/commands/users/resolve-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/resolve-user.command.js +3 -3
- package/build/backend/commands/users/tags/get-users-tags.command.d.ts +3 -15
- package/build/backend/commands/users/tags/get-users-tags.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +38 -254
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +14 -39
- package/build/backend/commands/users/user.response.d.ts +24 -187
- package/build/backend/commands/users/user.response.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.d.ts +6 -20
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +4 -10
- package/build/backend/models/auth.schema.d.ts +1 -5
- package/build/backend/models/auth.schema.d.ts.map +1 -1
- package/build/backend/models/base-internal-squad.schema.d.ts +2 -8
- package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/base-internal-squad.schema.js +1 -1
- package/build/backend/models/base-stat.schema.d.ts +1 -9
- package/build/backend/models/base-stat.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile-inbounds.schema.d.ts +3 -21
- package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile-inbounds.schema.js +2 -2
- package/build/backend/models/config-profile.schema.d.ts +10 -80
- package/build/backend/models/config-profile.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile.schema.js +5 -9
- package/build/backend/models/extended-users.schema.d.ts +23 -112
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.d.ts +22 -166
- package/build/backend/models/external-squad.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.js +7 -11
- package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts +2 -8
- package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts.map +1 -1
- package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts +2 -22
- package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +17 -95
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +13 -13
- package/build/backend/models/hwid-user-device.schema.d.ts +3 -23
- package/build/backend/models/hwid-user-device.schema.d.ts.map +1 -1
- package/build/backend/models/hwid-user-device.schema.js +2 -6
- package/build/backend/models/infra-billing-available-node.schema.d.ts +3 -259
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-history-record.schema.d.ts +7 -38
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-history-record.schema.js +3 -5
- package/build/backend/models/infra-billing-node.schema.d.ts +13 -319
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.js +6 -12
- package/build/backend/models/infra-provider.schema.d.ts +12 -86
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
- package/build/backend/models/infra-provider.schema.js +7 -15
- package/build/backend/models/internal-squad.schema.d.ts +9 -73
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/internal-squad.schema.js +4 -8
- package/build/backend/models/last-connected-node.schema.d.ts +2 -10
- package/build/backend/models/last-connected-node.schema.d.ts.map +1 -1
- package/build/backend/models/last-connected-node.schema.js +1 -3
- package/build/backend/models/node-plugin.schema.d.ts +2 -12
- package/build/backend/models/node-plugin.schema.d.ts.map +1 -1
- package/build/backend/models/node-plugin.schema.js +1 -1
- package/build/backend/models/node-system.schema.d.ts +14 -194
- package/build/backend/models/node-system.schema.d.ts.map +1 -1
- package/build/backend/models/node-system.schema.js +1 -1
- package/build/backend/models/nodes.schema.d.ts +29 -361
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +11 -17
- package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts +1 -7
- package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts +18 -188
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts +3 -11
- package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts +1 -5
- package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +24 -332
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.d.ts +168 -1224
- package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.js +18 -18
- package/build/backend/models/response-rules/response-rule-condition.schema.d.ts +2 -12
- package/build/backend/models/response-rules/response-rule-condition.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule-condition.schema.js +1 -1
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +14 -58
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule-settings.schema.d.ts +1 -5
- package/build/backend/models/response-rules/response-rule-settings.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule.schema.d.ts +28 -246
- package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule.schema.js +2 -2
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +17 -200
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rules-config.schema.js +2 -2
- package/build/backend/models/snippets.schema.d.ts +1 -7
- package/build/backend/models/snippets.schema.d.ts.map +1 -1
- package/build/backend/models/subscripion-page-config.schema.d.ts +2 -12
- package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -1
- package/build/backend/models/subscripion-page-config.schema.js +1 -1
- package/build/backend/models/subscription-info.schema.d.ts +6 -74
- package/build/backend/models/subscription-info.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-info.schema.js +3 -5
- package/build/backend/models/subscription-request-history.schema.d.ts +2 -14
- package/build/backend/models/subscription-request-history.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-request-history.schema.js +1 -4
- package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts +7 -21
- package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts +1 -9
- package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.d.ts +30 -361
- package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.js +4 -13
- package/build/backend/models/subscription-template.schema.d.ts +3 -17
- package/build/backend/models/subscription-template.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-template.schema.js +2 -2
- package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts +1 -7
- package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts.map +1 -1
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts +8 -46
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts.map +1 -1
- package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts +1 -7
- package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts.map +1 -1
- package/build/backend/models/torrent-blocker-report.schema.d.ts +13 -505
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
- package/build/backend/models/torrent-blocker-report.schema.js +3 -8
- package/build/backend/models/user-traffic.schema.d.ts +4 -16
- package/build/backend/models/user-traffic.schema.d.ts.map +1 -1
- package/build/backend/models/user-traffic.schema.js +3 -9
- package/build/backend/models/users.schema.d.ts +17 -63
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +14 -33
- package/build/backend/models/webhook/webhook.schema.d.ts +441 -4845
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.js +2 -2
- package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts +31 -197
- package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts.map +1 -1
- package/build/backend/models/xray-json-advanced/remnawave-injector.schema.js +1 -1
- package/build/frontend/commands/api-tokens/delete.command.js +1 -1
- package/build/frontend/commands/auth/get-status.command.js +1 -1
- package/build/frontend/commands/auth/oauth2/authorize.command.js +2 -2
- package/build/frontend/commands/auth/oauth2/callback.command.js +1 -1
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
- package/build/frontend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +1 -1
- package/build/frontend/commands/config-profiles/delete-config-profile.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
- package/build/frontend/commands/config-profiles/update-config-profile.command.js +2 -2
- package/build/frontend/commands/connections/connections-by-node-result.command.js +2 -3
- package/build/frontend/commands/connections/connections-by-node.command.js +1 -1
- package/build/frontend/commands/connections/connections-by-user-result.command.js +3 -4
- package/build/frontend/commands/connections/connections-by-user.command.js +1 -1
- package/build/frontend/commands/connections/drop-connections.command.js +3 -3
- package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
- package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
- package/build/frontend/commands/external-squads/delete-external-squad.command.js +1 -1
- package/build/frontend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
- package/build/frontend/commands/external-squads/update-external-squad.command.js +8 -8
- package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/create.command.js +12 -17
- package/build/frontend/commands/hosts/delete.command.js +1 -1
- package/build/frontend/commands/hosts/get-host.command.js +1 -1
- package/build/frontend/commands/hosts/update.command.js +12 -17
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
- package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +4 -7
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +4 -7
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +2 -2
- package/build/frontend/commands/infra-billing/delete-bill-record.command.js +1 -1
- package/build/frontend/commands/infra-billing/delete-billing-node.command.js +1 -1
- package/build/frontend/commands/infra-billing/delete-infra-provider.command.js +1 -1
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +2 -2
- package/build/frontend/commands/infra-billing/get-infra-provider.command.js +1 -1
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +3 -6
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +4 -8
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +3 -3
- package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
- package/build/frontend/commands/internal-squads/get-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/update-internal-squad.command.js +2 -2
- package/build/frontend/commands/metadata/node/get-node-metadata.command.js +2 -2
- package/build/frontend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
- package/build/frontend/commands/metadata/user/get-user-metadata.command.js +2 -2
- package/build/frontend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
- package/build/frontend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
- package/build/frontend/commands/node-plugins/delete-node-plugin.command.js +1 -1
- package/build/frontend/commands/node-plugins/executor.command.js +3 -3
- package/build/frontend/commands/node-plugins/get-node-plugin.command.js +1 -1
- package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
- package/build/frontend/commands/node-plugins/update-node-plugin.command.js +1 -1
- package/build/frontend/commands/nodes/actions/disable.command.js +1 -1
- package/build/frontend/commands/nodes/actions/enable.command.js +1 -1
- package/build/frontend/commands/nodes/actions/reset-traffic.command.js +1 -1
- package/build/frontend/commands/nodes/actions/restart.command.js +1 -1
- package/build/frontend/commands/nodes/bulk-actions/actions.command.js +2 -2
- package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
- package/build/frontend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
- package/build/frontend/commands/nodes/create.command.js +16 -36
- package/build/frontend/commands/nodes/delete.command.js +1 -1
- package/build/frontend/commands/nodes/get-node.command.js +1 -1
- package/build/frontend/commands/nodes/update.command.js +17 -29
- package/build/frontend/commands/passkeys/get-passkeys.command.js +4 -10
- package/build/frontend/commands/passkeys/update-passkey.command.js +6 -8
- package/build/frontend/commands/snippets/create-snippet.command.js +3 -3
- package/build/frontend/commands/snippets/update-snippet.command.js +3 -3
- package/build/frontend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
- package/build/frontend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
- package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
- package/build/frontend/commands/subscription-template/create-template.command.js +3 -3
- package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +1 -1
- package/build/frontend/commands/subscription-template/get-template.command.js +1 -1
- package/build/frontend/commands/subscription-template/update-template.command.js +4 -4
- package/build/frontend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-subscriptions.command.js +5 -8
- package/build/frontend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
- package/build/frontend/commands/system/get-recap.command.js +1 -3
- package/build/frontend/commands/system/get-stats.command.js +1 -1
- package/build/frontend/commands/system/testers/test-srr-matcher.command.js +1 -1
- package/build/frontend/commands/users/actions/disable-user.command.js +1 -1
- package/build/frontend/commands/users/actions/enable-user.command.js +1 -1
- package/build/frontend/commands/users/actions/reset-user-traffic.command.js +1 -1
- package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +3 -3
- package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +1 -4
- package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
- package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
- package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +11 -26
- package/build/frontend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
- package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
- package/build/frontend/commands/users/create-user.command.js +25 -63
- package/build/frontend/commands/users/delete-user.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-id.command.js +1 -1
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +4 -4
- package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-user-subscription-request-history.command.js +2 -4
- package/build/frontend/commands/users/get-users-stream.command.js +10 -11
- package/build/frontend/commands/users/resolve-user.command.js +3 -3
- package/build/frontend/commands/users/update-user.command.js +14 -39
- package/build/frontend/models/api-tokens.schema.js +4 -10
- package/build/frontend/models/base-internal-squad.schema.js +1 -1
- package/build/frontend/models/config-profile-inbounds.schema.js +2 -2
- package/build/frontend/models/config-profile.schema.js +5 -9
- package/build/frontend/models/external-squad.schema.js +7 -11
- package/build/frontend/models/hosts.schema.js +13 -13
- package/build/frontend/models/hwid-user-device.schema.js +2 -6
- package/build/frontend/models/infra-billing-history-record.schema.js +3 -5
- package/build/frontend/models/infra-billing-node.schema.js +6 -12
- package/build/frontend/models/infra-provider.schema.js +7 -15
- package/build/frontend/models/internal-squad.schema.js +4 -8
- package/build/frontend/models/last-connected-node.schema.js +1 -3
- package/build/frontend/models/node-plugin.schema.js +1 -1
- package/build/frontend/models/node-system.schema.js +1 -1
- package/build/frontend/models/nodes.schema.js +11 -17
- package/build/frontend/models/resolved-proxy-config.schema.js +18 -18
- package/build/frontend/models/response-rules/response-rule-condition.schema.js +1 -1
- package/build/frontend/models/response-rules/response-rule.schema.js +2 -2
- package/build/frontend/models/response-rules/response-rules-config.schema.js +2 -2
- package/build/frontend/models/subscripion-page-config.schema.js +1 -1
- package/build/frontend/models/subscription-info.schema.js +3 -5
- package/build/frontend/models/subscription-request-history.schema.js +1 -4
- package/build/frontend/models/subscription-settings.schema.js +4 -13
- package/build/frontend/models/subscription-template.schema.js +2 -2
- package/build/frontend/models/torrent-blocker-report.schema.js +3 -8
- package/build/frontend/models/user-traffic.schema.js +3 -9
- package/build/frontend/models/users.schema.js +14 -33
- package/build/frontend/models/webhook/webhook.schema.js +2 -2
- package/build/frontend/models/xray-json-advanced/remnawave-injector.schema.js +1 -1
- package/package.json +2 -2
|
@@ -17,26 +17,25 @@ var GetUsersStreamCommand;
|
|
|
17
17
|
.describe('Cursor for pagination — pass the nextCursor from the previous response. Omit on the first request.'),
|
|
18
18
|
size: zod_1.z.coerce
|
|
19
19
|
.number()
|
|
20
|
-
.
|
|
21
|
-
.
|
|
22
|
-
.max(1000, 'Size (limit) must be less than 1000')
|
|
20
|
+
.min(1)
|
|
21
|
+
.max(1000)
|
|
23
22
|
.describe('Number of results to return, no more than 1000')
|
|
24
23
|
.optional()
|
|
25
24
|
.default(250),
|
|
26
25
|
// Filtering
|
|
27
|
-
status: zod_1.z.
|
|
26
|
+
status: zod_1.z.enum(constants_1.USERS_STATUS).optional().describe('Status to filter users by'),
|
|
28
27
|
trafficLimitStrategy: zod_1.z
|
|
29
|
-
.
|
|
28
|
+
.enum(constants_1.RESET_PERIODS)
|
|
30
29
|
.optional()
|
|
31
30
|
.describe('Traffic limit strategy to filter users by'),
|
|
32
|
-
telegramId: zod_1.z
|
|
33
|
-
email: zod_1.z.string().email().optional().describe('Email to filter users by'),
|
|
34
|
-
tag: zod_1.z.string().optional().describe('Tag to filter users by'),
|
|
35
|
-
externalSquadUuid: zod_1.z
|
|
31
|
+
telegramId: zod_1.z
|
|
36
32
|
.string()
|
|
37
|
-
.
|
|
33
|
+
.transform(BigInt)
|
|
38
34
|
.optional()
|
|
39
|
-
.describe('
|
|
35
|
+
.describe('Telegram ID to filter users by'),
|
|
36
|
+
email: zod_1.z.email().optional().describe('Email to filter users by'),
|
|
37
|
+
tag: zod_1.z.string().optional().describe('Tag to filter users by'),
|
|
38
|
+
externalSquadUuid: zod_1.z.uuid().optional().describe('External squad UUID to filter users by'),
|
|
40
39
|
});
|
|
41
40
|
GetUsersStreamCommand.ResponseSchema = zod_1.z.object({
|
|
42
41
|
response: zod_1.z.object({
|
|
@@ -11,7 +11,7 @@ var ResolveUserCommand;
|
|
|
11
11
|
ResolveUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.RESOLVE, 'post', 'Resolve a user', { scope: 'resolve', kind: 'read' });
|
|
12
12
|
ResolveUserCommand.RequestBodySchema = zod_1.z
|
|
13
13
|
.object({
|
|
14
|
-
uuid: zod_1.z.
|
|
14
|
+
uuid: zod_1.z.uuid().optional(),
|
|
15
15
|
id: zod_1.z.number().optional(),
|
|
16
16
|
shortUuid: zod_1.z.string().optional(),
|
|
17
17
|
username: zod_1.z.string().optional(),
|
|
@@ -20,11 +20,11 @@ var ResolveUserCommand;
|
|
|
20
20
|
const provided = [data.uuid, data.id, data.shortUuid, data.username].filter((v) => v !== undefined);
|
|
21
21
|
return provided.length === 1;
|
|
22
22
|
}, {
|
|
23
|
-
|
|
23
|
+
error: 'Exactly one of uuid, id, shortUuid, or username must be provided'
|
|
24
24
|
});
|
|
25
25
|
ResolveUserCommand.ResponseSchema = zod_1.z.object({
|
|
26
26
|
response: zod_1.z.object({
|
|
27
|
-
uuid: zod_1.z.
|
|
27
|
+
uuid: zod_1.z.uuid(),
|
|
28
28
|
username: zod_1.z.string(),
|
|
29
29
|
id: zod_1.z.number(),
|
|
30
30
|
shortUuid: zod_1.z.string(),
|
|
@@ -4,7 +4,6 @@ exports.UpdateUserCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
const models_1 = require("../../models");
|
|
8
7
|
const user_response_1 = require("./user.response");
|
|
9
8
|
var UpdateUserCommand;
|
|
10
9
|
(function (UpdateUserCommand) {
|
|
@@ -15,43 +14,23 @@ var UpdateUserCommand;
|
|
|
15
14
|
.object({
|
|
16
15
|
username: zod_1.z.optional(zod_1.z.string().describe('Username of the user')),
|
|
17
16
|
uuid: zod_1.z.optional(zod_1.z
|
|
18
|
-
.string()
|
|
19
17
|
.uuid()
|
|
20
18
|
.describe('UUID of the user. UUID has higher priority than username, so if both are provided, username will be ignored.')),
|
|
21
|
-
status: zod_1.z
|
|
22
|
-
.enum([constants_1.USERS_STATUS.ACTIVE, constants_1.USERS_STATUS.DISABLED], {
|
|
23
|
-
errorMap: () => ({
|
|
24
|
-
message: "You can't change status to LIMITED or EXPIRED. These statuses handled by Remnawave.",
|
|
25
|
-
}),
|
|
26
|
-
})
|
|
27
|
-
.optional(),
|
|
19
|
+
status: zod_1.z.enum([constants_1.USERS_STATUS.ACTIVE, constants_1.USERS_STATUS.DISABLED]).optional(),
|
|
28
20
|
trafficLimitBytes: zod_1.z
|
|
29
|
-
.number(
|
|
30
|
-
|
|
31
|
-
})
|
|
32
|
-
.min(0, 'Traffic limit must be greater than 0')
|
|
21
|
+
.number()
|
|
22
|
+
.min(0)
|
|
33
23
|
.describe('Traffic limit in bytes. 0 - unlimited')
|
|
34
24
|
.optional(),
|
|
35
|
-
trafficLimitStrategy:
|
|
25
|
+
trafficLimitStrategy: zod_1.z
|
|
26
|
+
.enum(constants_1.RESET_PERIODS)
|
|
36
27
|
.describe('Traffic limit reset strategy')
|
|
37
|
-
.superRefine((val, ctx) => {
|
|
38
|
-
if (val && !Object.values(constants_1.RESET_PERIODS).includes(val)) {
|
|
39
|
-
ctx.addIssue({
|
|
40
|
-
code: zod_1.z.ZodIssueCode.invalid_enum_value,
|
|
41
|
-
message: 'Invalid traffic limit strategy',
|
|
42
|
-
path: ['trafficLimitStrategy'],
|
|
43
|
-
received: val,
|
|
44
|
-
options: Object.values(constants_1.RESET_PERIODS),
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
28
|
.optional(),
|
|
49
|
-
expireAt: zod_1.z
|
|
50
|
-
.
|
|
51
|
-
.datetime({ local: true, offset: true, message: 'Invalid date format' })
|
|
29
|
+
expireAt: zod_1.z.iso
|
|
30
|
+
.datetime({ local: true, offset: true })
|
|
52
31
|
.transform((str) => new Date(str))
|
|
53
32
|
.refine((date) => date > new Date(), {
|
|
54
|
-
|
|
33
|
+
error: 'Expiration date cannot be in the past',
|
|
55
34
|
})
|
|
56
35
|
.describe('Expiration date: 2025-01-17T15:38:45.065Z')
|
|
57
36
|
.optional(),
|
|
@@ -61,20 +40,16 @@ var UpdateUserCommand;
|
|
|
61
40
|
.regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
|
|
62
41
|
.max(16, 'Tag must be less than 16 characters')
|
|
63
42
|
.nullable()),
|
|
64
|
-
telegramId: zod_1.z.
|
|
65
|
-
email: zod_1.z.
|
|
66
|
-
hwidDeviceLimit: zod_1.z.
|
|
67
|
-
activeInternalSquads: zod_1.z
|
|
68
|
-
.array(zod_1.z.string().uuid(), {
|
|
69
|
-
invalid_type_error: 'Enabled internal squads must be an array of UUIDs',
|
|
70
|
-
})
|
|
71
|
-
.optional(),
|
|
43
|
+
telegramId: zod_1.z.number().nullish(),
|
|
44
|
+
email: zod_1.z.email().nullish(),
|
|
45
|
+
hwidDeviceLimit: zod_1.z.int().min(0).nullish(),
|
|
46
|
+
activeInternalSquads: zod_1.z.array(zod_1.z.uuid()).optional(),
|
|
72
47
|
externalSquadUuid: zod_1.z
|
|
73
|
-
.optional(zod_1.z.nullable(zod_1.z.
|
|
48
|
+
.optional(zod_1.z.nullable(zod_1.z.uuid()))
|
|
74
49
|
.describe('Optional. External squad UUID.'),
|
|
75
50
|
})
|
|
76
51
|
.refine((data) => data.uuid || data.username, {
|
|
77
|
-
|
|
52
|
+
error: 'Either uuid or username must be provided',
|
|
78
53
|
});
|
|
79
54
|
UpdateUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
80
55
|
})(UpdateUserCommand || (exports.UpdateUserCommand = UpdateUserCommand = {}));
|
|
@@ -3,19 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ApiTokensSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.ApiTokensSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
7
|
name: zod_1.z.string(),
|
|
8
|
-
expireAt: zod_1.z
|
|
9
|
-
.string()
|
|
10
|
-
.datetime()
|
|
8
|
+
expireAt: zod_1.z.iso.datetime()
|
|
11
9
|
.transform((str) => new Date(str)),
|
|
12
10
|
scopes: zod_1.z.array(zod_1.z.string()),
|
|
13
|
-
createdAt: zod_1.z
|
|
14
|
-
.string()
|
|
15
|
-
.datetime()
|
|
11
|
+
createdAt: zod_1.z.iso.datetime()
|
|
16
12
|
.transform((str) => new Date(str)),
|
|
17
|
-
updatedAt: zod_1.z
|
|
18
|
-
.string()
|
|
19
|
-
.datetime()
|
|
13
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
20
14
|
.transform((str) => new Date(str)),
|
|
21
15
|
});
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BaseInternalSquadSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.BaseInternalSquadSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
7
|
name: zod_1.z.string(),
|
|
8
8
|
});
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConfigProfileInboundsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.ConfigProfileInboundsSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.
|
|
7
|
-
profileUuid: zod_1.z.
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
|
+
profileUuid: zod_1.z.uuid(),
|
|
8
8
|
tag: zod_1.z.string(),
|
|
9
9
|
type: zod_1.z.string(),
|
|
10
10
|
network: zod_1.z.nullable(zod_1.z.string()),
|
|
@@ -4,22 +4,18 @@ exports.ConfigProfileSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
exports.ConfigProfileSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.
|
|
8
|
-
viewPosition: zod_1.z.
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
viewPosition: zod_1.z.int(),
|
|
9
9
|
name: zod_1.z.string(),
|
|
10
10
|
config: zod_1.z.unknown(),
|
|
11
11
|
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
|
12
12
|
nodes: zod_1.z.array(zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
14
|
name: zod_1.z.string(),
|
|
15
15
|
countryCode: zod_1.z.string(),
|
|
16
16
|
})),
|
|
17
|
-
createdAt: zod_1.z
|
|
18
|
-
.string()
|
|
19
|
-
.datetime()
|
|
17
|
+
createdAt: zod_1.z.iso.datetime()
|
|
20
18
|
.transform((str) => new Date(str)),
|
|
21
|
-
updatedAt: zod_1.z
|
|
22
|
-
.string()
|
|
23
|
-
.datetime()
|
|
19
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
24
20
|
.transform((str) => new Date(str)),
|
|
25
21
|
});
|
|
@@ -6,28 +6,24 @@ const constants_1 = require("../constants");
|
|
|
6
6
|
const external_squads_1 = require("./external-squads");
|
|
7
7
|
const subscription_settings_1 = require("./subscription-settings");
|
|
8
8
|
exports.ExternalSquadSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.
|
|
10
|
-
viewPosition: zod_1.z.
|
|
9
|
+
uuid: zod_1.z.uuid(),
|
|
10
|
+
viewPosition: zod_1.z.int(),
|
|
11
11
|
name: zod_1.z.string(),
|
|
12
12
|
info: zod_1.z.object({
|
|
13
13
|
membersCount: zod_1.z.number(),
|
|
14
14
|
}),
|
|
15
15
|
templates: zod_1.z.array(zod_1.z.object({
|
|
16
|
-
templateUuid: zod_1.z.
|
|
17
|
-
templateType: zod_1.z.
|
|
16
|
+
templateUuid: zod_1.z.uuid(),
|
|
17
|
+
templateType: zod_1.z.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
18
18
|
})),
|
|
19
19
|
subscriptionSettings: zod_1.z.nullable(external_squads_1.ExternalSquadSubscriptionSettingsSchema),
|
|
20
20
|
hostOverrides: zod_1.z.nullable(external_squads_1.ExternalSquadHostOverridesSchema),
|
|
21
21
|
responseHeaders: external_squads_1.ExternalSquadResponseHeadersSchema,
|
|
22
22
|
hwidSettings: zod_1.z.nullable(subscription_settings_1.HwidSettingsSchema),
|
|
23
23
|
customRemarks: zod_1.z.nullable(subscription_settings_1.CustomRemarksSchema),
|
|
24
|
-
subpageConfigUuid: zod_1.z.nullable(zod_1.z.
|
|
25
|
-
createdAt: zod_1.z
|
|
26
|
-
.string()
|
|
27
|
-
.datetime()
|
|
24
|
+
subpageConfigUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
25
|
+
createdAt: zod_1.z.iso.datetime()
|
|
28
26
|
.transform((str) => new Date(str)),
|
|
29
|
-
updatedAt: zod_1.z
|
|
30
|
-
.string()
|
|
31
|
-
.datetime()
|
|
27
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
32
28
|
.transform((str) => new Date(str)),
|
|
33
29
|
});
|
|
@@ -5,39 +5,39 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const hosts_1 = require("../constants/hosts");
|
|
7
7
|
exports.HostsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.
|
|
9
|
-
viewPosition: zod_1.z.
|
|
8
|
+
uuid: zod_1.z.uuid(),
|
|
9
|
+
viewPosition: zod_1.z.int(),
|
|
10
10
|
remark: zod_1.z.string(),
|
|
11
11
|
address: zod_1.z.string(),
|
|
12
|
-
port: zod_1.z.
|
|
12
|
+
port: zod_1.z.int(),
|
|
13
13
|
path: zod_1.z.string().nullable(),
|
|
14
14
|
sni: zod_1.z.string().nullable(),
|
|
15
15
|
host: zod_1.z.string().nullable(),
|
|
16
|
-
alpn: zod_1.z.
|
|
16
|
+
alpn: zod_1.z.enum(hosts_1.ALPN).nullable(),
|
|
17
17
|
fingerprint: zod_1.z.string().nullable(),
|
|
18
18
|
isDisabled: zod_1.z.boolean(),
|
|
19
|
-
securityLayer: zod_1.z.
|
|
19
|
+
securityLayer: zod_1.z.enum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
|
20
20
|
xhttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
|
21
21
|
muxParams: zod_1.z.nullable(zod_1.z.unknown()),
|
|
22
22
|
sockoptParams: zod_1.z.nullable(zod_1.z.unknown()),
|
|
23
23
|
finalMask: zod_1.z.nullable(zod_1.z.unknown()),
|
|
24
24
|
inbound: zod_1.z.object({
|
|
25
|
-
configProfileUuid: zod_1.z.
|
|
26
|
-
configProfileInboundUuid: zod_1.z.
|
|
25
|
+
configProfileUuid: zod_1.z.uuid().nullable(),
|
|
26
|
+
configProfileInboundUuid: zod_1.z.uuid().nullable(),
|
|
27
27
|
}),
|
|
28
28
|
serverDescription: zod_1.z.string().max(30).nullable(),
|
|
29
29
|
tags: zod_1.z.array(zod_1.z.string()).default([]),
|
|
30
30
|
isHidden: zod_1.z.boolean().default(false),
|
|
31
31
|
overrideSniFromAddress: zod_1.z.boolean().default(false),
|
|
32
32
|
keepSniBlank: zod_1.z.boolean().default(false),
|
|
33
|
-
vlessRouteId: zod_1.z.
|
|
33
|
+
vlessRouteId: zod_1.z.int().min(0).max(65535).nullable(),
|
|
34
34
|
pinnedPeerCertSha256: zod_1.z.string().nullable(),
|
|
35
35
|
verifyPeerCertByName: zod_1.z.string().nullable(),
|
|
36
36
|
shuffleHost: zod_1.z.boolean(),
|
|
37
37
|
mihomoX25519: zod_1.z.boolean(),
|
|
38
|
-
mihomoIpVersion: zod_1.z.
|
|
39
|
-
nodes: zod_1.z.array(zod_1.z.
|
|
40
|
-
xrayJsonTemplateUuid: zod_1.z.
|
|
41
|
-
excludedInternalSquads: zod_1.z.array(zod_1.z.
|
|
42
|
-
excludeFromSubscriptionTypes: zod_1.z.array(zod_1.z.
|
|
38
|
+
mihomoIpVersion: zod_1.z.enum(hosts_1.MIHOMO_IP_VERSION).nullable(),
|
|
39
|
+
nodes: zod_1.z.array(zod_1.z.uuid()),
|
|
40
|
+
xrayJsonTemplateUuid: zod_1.z.uuid().nullable(),
|
|
41
|
+
excludedInternalSquads: zod_1.z.array(zod_1.z.uuid()),
|
|
42
|
+
excludeFromSubscriptionTypes: zod_1.z.array(zod_1.z.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)),
|
|
43
43
|
});
|
|
@@ -10,12 +10,8 @@ exports.HwidUserDeviceSchema = zod_1.z.object({
|
|
|
10
10
|
deviceModel: zod_1.z.nullable(zod_1.z.string()),
|
|
11
11
|
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
|
12
12
|
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
|
13
|
-
createdAt: zod_1.z
|
|
14
|
-
.string()
|
|
15
|
-
.datetime()
|
|
13
|
+
createdAt: zod_1.z.iso.datetime()
|
|
16
14
|
.transform((str) => new Date(str)),
|
|
17
|
-
updatedAt: zod_1.z
|
|
18
|
-
.string()
|
|
19
|
-
.datetime()
|
|
15
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
20
16
|
.transform((str) => new Date(str)),
|
|
21
17
|
});
|
|
@@ -4,12 +4,10 @@ exports.InfraBillingHistoryRecordSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
6
6
|
exports.InfraBillingHistoryRecordSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.
|
|
8
|
-
providerUuid: zod_1.z.
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
providerUuid: zod_1.z.uuid(),
|
|
9
9
|
amount: zod_1.z.number(),
|
|
10
|
-
billedAt: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.datetime()
|
|
10
|
+
billedAt: zod_1.z.iso.datetime()
|
|
13
11
|
.transform((str) => new Date(str)),
|
|
14
12
|
provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
|
|
15
13
|
createdAt: true,
|
|
@@ -5,10 +5,10 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
6
6
|
const nodes_schema_1 = require("./nodes.schema");
|
|
7
7
|
exports.InfraBillingNodeSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.
|
|
9
|
-
nodeUuid: zod_1.z.
|
|
8
|
+
uuid: zod_1.z.uuid(),
|
|
9
|
+
nodeUuid: zod_1.z.uuid().nullable(),
|
|
10
10
|
name: zod_1.z.string().nullable(),
|
|
11
|
-
providerUuid: zod_1.z.
|
|
11
|
+
providerUuid: zod_1.z.uuid(),
|
|
12
12
|
provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
|
|
13
13
|
uuid: true,
|
|
14
14
|
name: true,
|
|
@@ -20,16 +20,10 @@ exports.InfraBillingNodeSchema = zod_1.z.object({
|
|
|
20
20
|
name: true,
|
|
21
21
|
countryCode: true,
|
|
22
22
|
}).nullable(),
|
|
23
|
-
nextBillingAt: zod_1.z
|
|
24
|
-
.string()
|
|
25
|
-
.datetime()
|
|
23
|
+
nextBillingAt: zod_1.z.iso.datetime()
|
|
26
24
|
.transform((str) => new Date(str)),
|
|
27
|
-
createdAt: zod_1.z
|
|
28
|
-
.string()
|
|
29
|
-
.datetime()
|
|
25
|
+
createdAt: zod_1.z.iso.datetime()
|
|
30
26
|
.transform((str) => new Date(str)),
|
|
31
|
-
updatedAt: zod_1.z
|
|
32
|
-
.string()
|
|
33
|
-
.datetime()
|
|
27
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
34
28
|
.transform((str) => new Date(str)),
|
|
35
29
|
});
|
|
@@ -3,17 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.InfraProviderSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
7
|
name: zod_1.z.string(),
|
|
8
8
|
faviconLink: zod_1.z.nullable(zod_1.z.string()),
|
|
9
9
|
loginUrl: zod_1.z.nullable(zod_1.z.string()),
|
|
10
|
-
createdAt: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.datetime()
|
|
10
|
+
createdAt: zod_1.z.iso.datetime()
|
|
13
11
|
.transform((str) => new Date(str)),
|
|
14
|
-
updatedAt: zod_1.z
|
|
15
|
-
.string()
|
|
16
|
-
.datetime()
|
|
12
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
17
13
|
.transform((str) => new Date(str)),
|
|
18
14
|
billingHistory: zod_1.z.object({
|
|
19
15
|
totalAmount: zod_1.z.number(),
|
|
@@ -23,23 +19,19 @@ exports.InfraProviderSchema = zod_1.z.object({
|
|
|
23
19
|
name: zod_1.z.string(),
|
|
24
20
|
details: zod_1.z
|
|
25
21
|
.object({
|
|
26
|
-
nodeUuid: zod_1.z.
|
|
22
|
+
nodeUuid: zod_1.z.uuid(),
|
|
27
23
|
countryCode: zod_1.z.string(),
|
|
28
24
|
})
|
|
29
25
|
.nullable(),
|
|
30
26
|
})),
|
|
31
27
|
});
|
|
32
28
|
exports.PartialInfraProviderSchema = zod_1.z.object({
|
|
33
|
-
uuid: zod_1.z.
|
|
29
|
+
uuid: zod_1.z.uuid(),
|
|
34
30
|
name: zod_1.z.string(),
|
|
35
31
|
faviconLink: zod_1.z.nullable(zod_1.z.string()),
|
|
36
32
|
loginUrl: zod_1.z.nullable(zod_1.z.string()),
|
|
37
|
-
createdAt: zod_1.z
|
|
38
|
-
.string()
|
|
39
|
-
.datetime()
|
|
33
|
+
createdAt: zod_1.z.iso.datetime()
|
|
40
34
|
.transform((str) => new Date(str)),
|
|
41
|
-
updatedAt: zod_1.z
|
|
42
|
-
.string()
|
|
43
|
-
.datetime()
|
|
35
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
44
36
|
.transform((str) => new Date(str)),
|
|
45
37
|
});
|
|
@@ -4,20 +4,16 @@ exports.InternalSquadSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
exports.InternalSquadSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.
|
|
8
|
-
viewPosition: zod_1.z.
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
viewPosition: zod_1.z.int(),
|
|
9
9
|
name: zod_1.z.string(),
|
|
10
10
|
info: zod_1.z.object({
|
|
11
11
|
membersCount: zod_1.z.number(),
|
|
12
12
|
inboundsCount: zod_1.z.number(),
|
|
13
13
|
}),
|
|
14
14
|
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
|
15
|
-
createdAt: zod_1.z
|
|
16
|
-
.string()
|
|
17
|
-
.datetime()
|
|
15
|
+
createdAt: zod_1.z.iso.datetime()
|
|
18
16
|
.transform((str) => new Date(str)),
|
|
19
|
-
updatedAt: zod_1.z
|
|
20
|
-
.string()
|
|
21
|
-
.datetime()
|
|
17
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
22
18
|
.transform((str) => new Date(str)),
|
|
23
19
|
});
|
|
@@ -4,9 +4,7 @@ exports.LastConnectedNodeSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.LastConnectedNodeSchema = zod_1.z
|
|
6
6
|
.object({
|
|
7
|
-
connectedAt: zod_1.z
|
|
8
|
-
.string()
|
|
9
|
-
.datetime()
|
|
7
|
+
connectedAt: zod_1.z.iso.datetime()
|
|
10
8
|
.transform((str) => new Date(str)),
|
|
11
9
|
nodeName: zod_1.z.string(),
|
|
12
10
|
countryCode: zod_1.z.string(),
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.NodePluginSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.NodePluginSchema = zod_1.default.object({
|
|
9
|
-
uuid: zod_1.default.
|
|
9
|
+
uuid: zod_1.default.uuid(),
|
|
10
10
|
viewPosition: zod_1.default.number().int(),
|
|
11
11
|
name: zod_1.default.string(),
|
|
12
12
|
pluginConfig: zod_1.default.nullable(zod_1.default.unknown()),
|
|
@@ -11,7 +11,7 @@ exports.NetworkInterfaceSchema = zod_1.z.object({
|
|
|
11
11
|
});
|
|
12
12
|
exports.NodeSystemInfoSchema = zod_1.z.object({
|
|
13
13
|
arch: zod_1.z.string(),
|
|
14
|
-
cpus: zod_1.z.
|
|
14
|
+
cpus: zod_1.z.int(),
|
|
15
15
|
cpuModel: zod_1.z.string(),
|
|
16
16
|
memoryTotal: zod_1.z.number(),
|
|
17
17
|
hostname: zod_1.z.string(),
|
|
@@ -6,44 +6,38 @@ const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.sche
|
|
|
6
6
|
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
7
7
|
const node_system_schema_1 = require("./node-system.schema");
|
|
8
8
|
exports.NodesSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.
|
|
9
|
+
uuid: zod_1.z.uuid(),
|
|
10
10
|
name: zod_1.z.string(),
|
|
11
11
|
address: zod_1.z.string(),
|
|
12
|
-
port: zod_1.z.nullable(zod_1.z.
|
|
12
|
+
port: zod_1.z.nullable(zod_1.z.int()),
|
|
13
13
|
proxyUrl: zod_1.z.nullable(zod_1.z.string()),
|
|
14
14
|
isConnected: zod_1.z.boolean(),
|
|
15
15
|
isDisabled: zod_1.z.boolean(),
|
|
16
16
|
isConnecting: zod_1.z.boolean(),
|
|
17
|
-
lastStatusChange: zod_1.z.nullable(zod_1.z
|
|
18
|
-
.string()
|
|
19
|
-
.datetime()
|
|
17
|
+
lastStatusChange: zod_1.z.nullable(zod_1.z.iso.datetime()
|
|
20
18
|
.transform((str) => new Date(str))),
|
|
21
19
|
lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
|
|
22
20
|
isTrafficTrackingActive: zod_1.z.boolean(),
|
|
23
|
-
trafficResetDay: zod_1.z.nullable(zod_1.z.
|
|
21
|
+
trafficResetDay: zod_1.z.nullable(zod_1.z.int()),
|
|
24
22
|
trafficLimitBytes: zod_1.z.nullable(zod_1.z.number()),
|
|
25
23
|
trafficUsedBytes: zod_1.z.nullable(zod_1.z.number()),
|
|
26
|
-
notifyPercent: zod_1.z.nullable(zod_1.z.
|
|
27
|
-
viewPosition: zod_1.z.
|
|
24
|
+
notifyPercent: zod_1.z.nullable(zod_1.z.int()),
|
|
25
|
+
viewPosition: zod_1.z.int(),
|
|
28
26
|
countryCode: zod_1.z.string(),
|
|
29
27
|
consumptionMultiplier: zod_1.z.number(),
|
|
30
28
|
nodeConsumptionMultiplier: zod_1.z.number(),
|
|
31
29
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
32
|
-
createdAt: zod_1.z
|
|
33
|
-
.string()
|
|
34
|
-
.datetime()
|
|
30
|
+
createdAt: zod_1.z.iso.datetime()
|
|
35
31
|
.transform((str) => new Date(str)),
|
|
36
|
-
updatedAt: zod_1.z
|
|
37
|
-
.string()
|
|
38
|
-
.datetime()
|
|
32
|
+
updatedAt: zod_1.z.iso.datetime()
|
|
39
33
|
.transform((str) => new Date(str)),
|
|
40
34
|
configProfile: zod_1.z.object({
|
|
41
|
-
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.
|
|
35
|
+
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
42
36
|
activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
|
43
37
|
}),
|
|
44
|
-
providerUuid: zod_1.z.nullable(zod_1.z.
|
|
38
|
+
providerUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
45
39
|
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
|
46
|
-
activePluginUuid: zod_1.z.nullable(zod_1.z.
|
|
40
|
+
activePluginUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
47
41
|
system: zod_1.z.nullable(node_system_schema_1.NodeSystemSchema),
|
|
48
42
|
versions: zod_1.z.nullable(zod_1.z.object({
|
|
49
43
|
xray: zod_1.z.string(),
|
|
@@ -15,7 +15,7 @@ exports.ShadowsocksProtocolOptionsSchema = zod_1.z.object({
|
|
|
15
15
|
method: zod_1.z.string(),
|
|
16
16
|
password: zod_1.z.string(),
|
|
17
17
|
uot: zod_1.z.boolean(),
|
|
18
|
-
uotVersion: zod_1.z.
|
|
18
|
+
uotVersion: zod_1.z.int(),
|
|
19
19
|
});
|
|
20
20
|
const TcpHeaderNoneSchema = zod_1.z.object({
|
|
21
21
|
type: zod_1.z.literal('none'),
|
|
@@ -24,13 +24,13 @@ const TcpHeaderHttpRequestSchema = zod_1.z.object({
|
|
|
24
24
|
version: zod_1.z.string().optional(),
|
|
25
25
|
method: zod_1.z.string().optional(),
|
|
26
26
|
path: zod_1.z.array(zod_1.z.string()).optional(),
|
|
27
|
-
headers: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
27
|
+
headers: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
28
28
|
});
|
|
29
29
|
const TcpHeaderHttpResponseSchema = zod_1.z.object({
|
|
30
30
|
version: zod_1.z.string().optional(),
|
|
31
31
|
status: zod_1.z.string().optional(),
|
|
32
32
|
reason: zod_1.z.string().optional(),
|
|
33
|
-
headers: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
33
|
+
headers: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
34
34
|
});
|
|
35
35
|
const TcpHeaderHttpSchema = zod_1.z.object({
|
|
36
36
|
type: zod_1.z.literal('http'),
|
|
@@ -45,18 +45,18 @@ exports.XhttpTransportOptionsSchema = zod_1.z.object({
|
|
|
45
45
|
path: zod_1.z.string().nullable(),
|
|
46
46
|
host: zod_1.z.string().nullable(),
|
|
47
47
|
mode: zod_1.z.enum(['auto', 'packet-up', 'stream-up', 'stream-one']),
|
|
48
|
-
extra: zod_1.z.record(zod_1.z.unknown()).nullable(),
|
|
48
|
+
extra: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullable(),
|
|
49
49
|
});
|
|
50
50
|
exports.WsTransportOptionsSchema = zod_1.z.object({
|
|
51
51
|
path: zod_1.z.string().nullable(),
|
|
52
52
|
host: zod_1.z.string().nullable(),
|
|
53
|
-
headers: zod_1.z.record(zod_1.z.string()).nullable(),
|
|
53
|
+
headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable(),
|
|
54
54
|
heartbeatPeriod: zod_1.z.number().nullable(),
|
|
55
55
|
});
|
|
56
56
|
exports.HttpUpgradeTransportOptionsSchema = zod_1.z.object({
|
|
57
57
|
path: zod_1.z.string().nullable(),
|
|
58
58
|
host: zod_1.z.string().nullable(),
|
|
59
|
-
headers: zod_1.z.record(zod_1.z.string()).nullable(),
|
|
59
|
+
headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullable(),
|
|
60
60
|
});
|
|
61
61
|
exports.GrpcTransportOptionsSchema = zod_1.z.object({
|
|
62
62
|
authority: zod_1.z.string().nullable(),
|
|
@@ -64,15 +64,15 @@ exports.GrpcTransportOptionsSchema = zod_1.z.object({
|
|
|
64
64
|
multiMode: zod_1.z.boolean(),
|
|
65
65
|
});
|
|
66
66
|
exports.KcpTransportOptionsSchema = zod_1.z.object({
|
|
67
|
-
clientMtu: zod_1.z.
|
|
68
|
-
clientTti: zod_1.z.
|
|
67
|
+
clientMtu: zod_1.z.int(),
|
|
68
|
+
clientTti: zod_1.z.int(),
|
|
69
69
|
congestion: zod_1.z.boolean(),
|
|
70
70
|
});
|
|
71
71
|
exports.HysteriaProtocolOptionsSchema = zod_1.z.object({
|
|
72
|
-
version: zod_1.z.
|
|
72
|
+
version: zod_1.z.int(),
|
|
73
73
|
});
|
|
74
74
|
exports.HysteriaTransportOptionsSchema = zod_1.z.object({
|
|
75
|
-
version: zod_1.z.
|
|
75
|
+
version: zod_1.z.int(),
|
|
76
76
|
auth: zod_1.z.string(),
|
|
77
77
|
});
|
|
78
78
|
exports.TlsSecurityOptionsSchema = zod_1.z.object({
|
|
@@ -169,23 +169,23 @@ exports.SecurityVariantSchema = zod_1.z.discriminatedUnion('security', [
|
|
|
169
169
|
NoneSecuritySchema,
|
|
170
170
|
]);
|
|
171
171
|
exports.ProxyEntryMetadataSchema = zod_1.z.object({
|
|
172
|
-
uuid: zod_1.z.
|
|
172
|
+
uuid: zod_1.z.uuid(),
|
|
173
173
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
174
|
-
excludeFromSubscriptionTypes: zod_1.z.array(zod_1.z.
|
|
174
|
+
excludeFromSubscriptionTypes: zod_1.z.array(zod_1.z.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)),
|
|
175
175
|
inboundTag: zod_1.z.string(),
|
|
176
|
-
configProfileUuid: zod_1.z.
|
|
177
|
-
configProfileInboundUuid: zod_1.z.
|
|
176
|
+
configProfileUuid: zod_1.z.uuid().nullable(),
|
|
177
|
+
configProfileInboundUuid: zod_1.z.uuid().nullable(),
|
|
178
178
|
isDisabled: zod_1.z.boolean(),
|
|
179
179
|
isHidden: zod_1.z.boolean(),
|
|
180
|
-
viewPosition: zod_1.z.
|
|
180
|
+
viewPosition: zod_1.z.int(),
|
|
181
181
|
remark: zod_1.z.string(),
|
|
182
|
-
vlessRouteId: zod_1.z.
|
|
182
|
+
vlessRouteId: zod_1.z.int().nullable(),
|
|
183
183
|
rawInbound: zod_1.z.nullable(zod_1.z.unknown()),
|
|
184
184
|
});
|
|
185
185
|
exports.ResolvedProxyConfigSchema = zod_1.z.object({
|
|
186
186
|
finalRemark: zod_1.z.string(),
|
|
187
187
|
address: zod_1.z.string(),
|
|
188
|
-
port: zod_1.z.
|
|
188
|
+
port: zod_1.z.int().positive(),
|
|
189
189
|
protocol: zod_1.z.enum(['vless', 'trojan', 'shadowsocks', 'hysteria']),
|
|
190
190
|
protocolOptions: zod_1.z.union([
|
|
191
191
|
exports.VlessProtocolOptionsSchema,
|
|
@@ -213,7 +213,7 @@ exports.ResolvedProxyConfigSchema = zod_1.z.object({
|
|
|
213
213
|
clientOverrides: zod_1.z.object({
|
|
214
214
|
shuffleHost: zod_1.z.boolean(),
|
|
215
215
|
mihomoX25519: zod_1.z.boolean(),
|
|
216
|
-
mihomoIpVersion: zod_1.z.
|
|
216
|
+
mihomoIpVersion: zod_1.z.enum(constants_1.MIHOMO_IP_VERSION).nullable(),
|
|
217
217
|
serverDescription: zod_1.z.string().nullable(),
|
|
218
218
|
xrayJsonTemplate: zod_1.z.nullable(zod_1.z.unknown()),
|
|
219
219
|
}),
|