feat: generate SDK for Remnawave API v2.8.0

This commit is contained in:
2026-06-30 22:57:09 +03:00
parent c46da4d94f
commit 5c30a1a71b
19 changed files with 79754 additions and 3490 deletions
+22 -14
View File
@@ -259,6 +259,11 @@ func (sc *ApiTokensClient) FindAll(ctx context.Context, options ...RequestOption
return sc.client.ApiTokensFindAll(ctx, options...)
}
// GetScopes calls ApiTokens_getScopes.
func (sc *ApiTokensClient) GetScopes(ctx context.Context, options ...RequestOption) (ApiTokensGetScopesRes, error) {
return sc.client.ApiTokensGetScopes(ctx, options...)
}
// AuthClient provides Auth operations.
type AuthClient struct {
client *Client
@@ -324,6 +329,11 @@ func (sc *BandwidthStatsNodesClient) GetStatsNodeUsersUsage(ctx context.Context,
return sc.client.BandwidthStatsNodesGetStatsNodeUsersUsage(ctx, params, options...)
}
// GetStatsNodesUsersUsage calls BandwidthStatsNodes_getStatsNodesUsersUsage.
func (sc *BandwidthStatsNodesClient) GetStatsNodesUsersUsage(ctx context.Context, request *GetStatsNodesUsersUsageRequest, params BandwidthStatsNodesGetStatsNodesUsersUsageParams, options ...RequestOption) (BandwidthStatsNodesGetStatsNodesUsersUsageRes, error) {
return sc.client.BandwidthStatsNodesGetStatsNodesUsersUsage(ctx, request, params, options...)
}
// BandwidthStatsUsersClient provides BandwidthStatsUsers operations.
type BandwidthStatsUsersClient struct {
client *Client
@@ -539,13 +549,8 @@ func (sc *HostsBulkActionsClient) EnableHosts(ctx context.Context, request *Bulk
return sc.client.HostsBulkActionsEnableHosts(ctx, request, options...)
}
// SetInboundToHosts calls HostsBulkActions_setInboundToHosts.
func (sc *HostsBulkActionsClient) SetInboundToHosts(ctx context.Context, request *SetInboundToManyHostsRequest, options ...RequestOption) (HostsBulkActionsSetInboundToHostsRes, error) {
return sc.client.HostsBulkActionsSetInboundToHosts(ctx, request, options...)
}
// SetPortToHosts calls HostsBulkActions_setPortToHosts.
func (sc *HostsBulkActionsClient) SetPortToHosts(ctx context.Context, request *SetPortToManyHostsRequest, options ...RequestOption) (HostsBulkActionsSetPortToHostsRes, error) {
func (sc *HostsBulkActionsClient) SetPortToHosts(ctx context.Context, request *UpdateManyHostsRequest, options ...RequestOption) (HostsBulkActionsSetPortToHostsRes, error) {
return sc.client.HostsBulkActionsSetPortToHosts(ctx, request, options...)
}
@@ -976,13 +981,13 @@ func (sc *NodesClient) ResetNodeTraffic(ctx context.Context, uuid string, option
}
// RestartAllNodes calls Nodes_restartAllNodes.
func (sc *NodesClient) RestartAllNodes(ctx context.Context, request *RestartAllNodesRequestBody, options ...RequestOption) (NodesRestartAllNodesRes, error) {
func (sc *NodesClient) RestartAllNodes(ctx context.Context, request *NodeRequestBodyRequest, options ...RequestOption) (NodesRestartAllNodesRes, error) {
return sc.client.NodesRestartAllNodes(ctx, request, options...)
}
// RestartNode calls Nodes_restartNode.
func (sc *NodesClient) RestartNode(ctx context.Context, uuid string, options ...RequestOption) (NodesRestartNodeRes, error) {
return sc.client.NodesRestartNode(ctx, NodesRestartNodeParams{
func (sc *NodesClient) RestartNode(ctx context.Context, request *NodeRequestBodyRequest, uuid string, options ...RequestOption) (NodesRestartNodeRes, error) {
return sc.client.NodesRestartNode(ctx, request, NodesRestartNodeParams{
UUID: uuid,
}, options...)
}
@@ -1310,11 +1315,6 @@ func (sc *SystemClient) DebugSrrMatcher(ctx context.Context, request *DebugSrrMa
return sc.client.SystemDebugSrrMatcher(ctx, request, options...)
}
// EncryptHappCryptoLink calls System_encryptHappCryptoLink.
func (sc *SystemClient) EncryptHappCryptoLink(ctx context.Context, request *EncryptHappCryptoLinkRequest, options ...RequestOption) (SystemEncryptHappCryptoLinkRes, error) {
return sc.client.SystemEncryptHappCryptoLink(ctx, request, options...)
}
// GetBandwidthStats calls System_getBandwidthStats.
func (sc *SystemClient) GetBandwidthStats(ctx context.Context, options ...RequestOption) (SystemGetBandwidthStatsRes, error) {
return sc.client.SystemGetBandwidthStats(ctx, options...)
@@ -1518,6 +1518,14 @@ func (sc *UsersClient) GetUsersByTag(ctx context.Context, tag string, options ..
}, options...)
}
// GetUsersStream calls Users_getUsersStream.
func (sc *UsersClient) GetUsersStream(ctx context.Context, size int, cursor string, options ...RequestOption) (UsersGetUsersStreamRes, error) {
return sc.client.UsersGetUsersStream(ctx, UsersGetUsersStreamParams{
Size: NewOptInt(size),
Cursor: NewOptString(cursor),
}, options...)
}
// ResetUserTraffic calls Users_resetUserTraffic.
func (sc *UsersClient) ResetUserTraffic(ctx context.Context, uuid string, options ...RequestOption) (UsersResetUserTrafficRes, error) {
return sc.client.UsersResetUserTraffic(ctx, UsersResetUserTrafficParams{