Compare commits
3
Commits
e2f5e9fe02
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9a90eeefb
|
||
|
|
5c30a1a71b
|
||
|
|
c46da4d94f
|
-265
@@ -1,265 +0,0 @@
|
|||||||
### GoLand+all template
|
|
||||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
||||||
|
|
||||||
# User-specific stuff
|
|
||||||
.idea/**/workspace.xml
|
|
||||||
.idea/**/tasks.xml
|
|
||||||
.idea/**/usage.statistics.xml
|
|
||||||
.idea/**/dictionaries
|
|
||||||
.idea/**/shelf
|
|
||||||
|
|
||||||
# AWS User-specific
|
|
||||||
.idea/**/aws.xml
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.idea/**/contentModel.xml
|
|
||||||
|
|
||||||
# Sensitive or high-churn files
|
|
||||||
.idea/**/dataSources/
|
|
||||||
.idea/**/dataSources.ids
|
|
||||||
.idea/**/dataSources.local.xml
|
|
||||||
.idea/**/sqlDataSources.xml
|
|
||||||
.idea/**/dynamic.xml
|
|
||||||
.idea/**/uiDesigner.xml
|
|
||||||
.idea/**/dbnavigator.xml
|
|
||||||
|
|
||||||
# Gradle
|
|
||||||
.idea/**/gradle.xml
|
|
||||||
.idea/**/libraries
|
|
||||||
|
|
||||||
# Gradle and Maven with auto-import
|
|
||||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
||||||
# since they will be recreated, and may cause churn. Uncomment if using
|
|
||||||
# auto-import.
|
|
||||||
# .idea/artifacts
|
|
||||||
# .idea/compiler.xml
|
|
||||||
# .idea/jarRepositories.xml
|
|
||||||
# .idea/modules.xml
|
|
||||||
# .idea/*.iml
|
|
||||||
# .idea/modules
|
|
||||||
# *.iml
|
|
||||||
# *.ipr
|
|
||||||
|
|
||||||
# CMake
|
|
||||||
cmake-build-*/
|
|
||||||
|
|
||||||
# Mongo Explorer plugin
|
|
||||||
.idea/**/mongoSettings.xml
|
|
||||||
|
|
||||||
# File-based project format
|
|
||||||
*.iws
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
out/
|
|
||||||
|
|
||||||
# mpeltonen/sbt-idea plugin
|
|
||||||
.idea_modules/
|
|
||||||
|
|
||||||
# JIRA plugin
|
|
||||||
atlassian-ide-plugin.xml
|
|
||||||
|
|
||||||
# Cursive Clojure plugin
|
|
||||||
.idea/replstate.xml
|
|
||||||
|
|
||||||
# SonarLint plugin
|
|
||||||
.idea/sonarlint/
|
|
||||||
|
|
||||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
||||||
com_crashlytics_export_strings.xml
|
|
||||||
crashlytics.properties
|
|
||||||
crashlytics-build.properties
|
|
||||||
fabric.properties
|
|
||||||
|
|
||||||
# Editor-based Rest Client
|
|
||||||
.idea/httpRequests
|
|
||||||
|
|
||||||
# Android studio 3.1+ serialized cache file
|
|
||||||
.idea/caches/build_file_checksums.ser
|
|
||||||
|
|
||||||
### JetBrains template
|
|
||||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
||||||
|
|
||||||
# User-specific stuff
|
|
||||||
.idea/**/workspace.xml
|
|
||||||
.idea/**/tasks.xml
|
|
||||||
.idea/**/usage.statistics.xml
|
|
||||||
.idea/**/dictionaries
|
|
||||||
.idea/**/shelf
|
|
||||||
|
|
||||||
# AWS User-specific
|
|
||||||
.idea/**/aws.xml
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.idea/**/contentModel.xml
|
|
||||||
|
|
||||||
# Sensitive or high-churn files
|
|
||||||
.idea/**/dataSources/
|
|
||||||
.idea/**/dataSources.ids
|
|
||||||
.idea/**/dataSources.local.xml
|
|
||||||
.idea/**/sqlDataSources.xml
|
|
||||||
.idea/**/dynamic.xml
|
|
||||||
.idea/**/uiDesigner.xml
|
|
||||||
.idea/**/dbnavigator.xml
|
|
||||||
|
|
||||||
# Gradle
|
|
||||||
.idea/**/gradle.xml
|
|
||||||
.idea/**/libraries
|
|
||||||
|
|
||||||
# Gradle and Maven with auto-import
|
|
||||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
||||||
# since they will be recreated, and may cause churn. Uncomment if using
|
|
||||||
# auto-import.
|
|
||||||
# .idea/artifacts
|
|
||||||
# .idea/compiler.xml
|
|
||||||
# .idea/jarRepositories.xml
|
|
||||||
# .idea/modules.xml
|
|
||||||
# .idea/*.iml
|
|
||||||
# .idea/modules
|
|
||||||
# *.iml
|
|
||||||
# *.ipr
|
|
||||||
|
|
||||||
# CMake
|
|
||||||
cmake-build-*/
|
|
||||||
|
|
||||||
# Mongo Explorer plugin
|
|
||||||
.idea/**/mongoSettings.xml
|
|
||||||
|
|
||||||
# File-based project format
|
|
||||||
*.iws
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
out/
|
|
||||||
|
|
||||||
# mpeltonen/sbt-idea plugin
|
|
||||||
.idea_modules/
|
|
||||||
|
|
||||||
# JIRA plugin
|
|
||||||
atlassian-ide-plugin.xml
|
|
||||||
|
|
||||||
# Cursive Clojure plugin
|
|
||||||
.idea/replstate.xml
|
|
||||||
|
|
||||||
# SonarLint plugin
|
|
||||||
.idea/sonarlint/
|
|
||||||
|
|
||||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
||||||
com_crashlytics_export_strings.xml
|
|
||||||
crashlytics.properties
|
|
||||||
crashlytics-build.properties
|
|
||||||
fabric.properties
|
|
||||||
|
|
||||||
# Editor-based Rest Client
|
|
||||||
.idea/httpRequests
|
|
||||||
|
|
||||||
# Android studio 3.1+ serialized cache file
|
|
||||||
.idea/caches/build_file_checksums.ser
|
|
||||||
|
|
||||||
### Go template
|
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
|
||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
|
||||||
#
|
|
||||||
# Binaries for programs and plugins
|
|
||||||
*.exe
|
|
||||||
*.exe~
|
|
||||||
*.dll
|
|
||||||
*.so
|
|
||||||
*.dylib
|
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
|
||||||
*.test
|
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
||||||
*.out
|
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
|
||||||
# vendor/
|
|
||||||
|
|
||||||
# Go workspace file
|
|
||||||
go.work
|
|
||||||
|
|
||||||
# Python cache
|
|
||||||
__pycache__/
|
|
||||||
*.pyc
|
|
||||||
scripts/__pycache__/
|
|
||||||
|
|
||||||
### GoLand template
|
|
||||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
||||||
|
|
||||||
# User-specific stuff
|
|
||||||
.idea/**/workspace.xml
|
|
||||||
.idea/**/tasks.xml
|
|
||||||
.idea/**/usage.statistics.xml
|
|
||||||
.idea/**/dictionaries
|
|
||||||
.idea/**/shelf
|
|
||||||
|
|
||||||
# AWS User-specific
|
|
||||||
.idea/**/aws.xml
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.idea/**/contentModel.xml
|
|
||||||
|
|
||||||
# Sensitive or high-churn files
|
|
||||||
.idea/**/dataSources/
|
|
||||||
.idea/**/dataSources.ids
|
|
||||||
.idea/**/dataSources.local.xml
|
|
||||||
.idea/**/sqlDataSources.xml
|
|
||||||
.idea/**/dynamic.xml
|
|
||||||
.idea/**/uiDesigner.xml
|
|
||||||
.idea/**/dbnavigator.xml
|
|
||||||
|
|
||||||
# Gradle
|
|
||||||
.idea/**/gradle.xml
|
|
||||||
.idea/**/libraries
|
|
||||||
|
|
||||||
# Gradle and Maven with auto-import
|
|
||||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
||||||
# since they will be recreated, and may cause churn. Uncomment if using
|
|
||||||
# auto-import.
|
|
||||||
# .idea/artifacts
|
|
||||||
# .idea/compiler.xml
|
|
||||||
# .idea/jarRepositories.xml
|
|
||||||
# .idea/modules.xml
|
|
||||||
# .idea/*.iml
|
|
||||||
# .idea/modules
|
|
||||||
# *.iml
|
|
||||||
# *.ipr
|
|
||||||
|
|
||||||
# CMake
|
|
||||||
cmake-build-*/
|
|
||||||
|
|
||||||
# Mongo Explorer plugin
|
|
||||||
.idea/**/mongoSettings.xml
|
|
||||||
|
|
||||||
# File-based project format
|
|
||||||
*.iws
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
out/
|
|
||||||
|
|
||||||
# mpeltonen/sbt-idea plugin
|
|
||||||
.idea_modules/
|
|
||||||
|
|
||||||
# JIRA plugin
|
|
||||||
atlassian-ide-plugin.xml
|
|
||||||
|
|
||||||
# Cursive Clojure plugin
|
|
||||||
.idea/replstate.xml
|
|
||||||
|
|
||||||
# SonarLint plugin
|
|
||||||
.idea/sonarlint/
|
|
||||||
|
|
||||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
||||||
com_crashlytics_export_strings.xml
|
|
||||||
crashlytics.properties
|
|
||||||
crashlytics-build.properties
|
|
||||||
fabric.properties
|
|
||||||
|
|
||||||
# Editor-based Rest Client
|
|
||||||
.idea/httpRequests
|
|
||||||
|
|
||||||
# Android studio 3.1+ serialized cache file
|
|
||||||
.idea/caches/build_file_checksums.ser
|
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@ parser:
|
|||||||
allow_remote: true
|
allow_remote: true
|
||||||
|
|
||||||
generator:
|
generator:
|
||||||
ignore_not_implemented: ["object defaults"]
|
ignore_not_implemented: ["object defaults", "array defaults"]
|
||||||
features:
|
features:
|
||||||
disable_all: true
|
disable_all: true
|
||||||
enable:
|
enable:
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ A Go SDK client for interacting with the **[Remnawave API](https://remna.st)**.
|
|||||||
|
|
||||||
| API Version | SDK Version | Install |
|
| API Version | SDK Version | Install |
|
||||||
|-------------|-------------|---------|
|
|-------------|-------------|---------|
|
||||||
| 2.7.4 | v2.7.4 | `go get github.com/shiranuiyami/remnawave-api-go/v2@v2.7.4` |
|
| 2.8.0 | v2.8.0 | `go get git.voidsmiths.dev/shiranui/remnawave-api-go/v2@v2.8.0` |
|
||||||
|
| 2.7.4 | v2.7.4 | `go get git.voidsmiths.dev/shiranui/remnawave-api-go/v2@v2.7.4` |
|
||||||
|
|
||||||
Generated with [**ogen**](https://github.com/ogen-go/ogen) v1.19.0:
|
Generated with [**ogen**](https://github.com/ogen-go/ogen) v1.19.0:
|
||||||
* Zero-reflection JSON decoder for high throughput
|
* Zero-reflection JSON decoder for high throughput
|
||||||
@@ -21,7 +22,7 @@ Generated with [**ogen**](https://github.com/ogen-go/ogen) v1.19.0:
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/shiranuiyami/remnawave-api-go/v2@v2.7.4
|
go get git.voidsmiths.dev/shiranui/remnawave-api-go/v2@v2.8.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
@@ -32,7 +33,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
remapi "github.com/shiranuiyami/remnawave-api-go/v2/api"
|
remapi "git.voidsmiths.dev/shiranui/remnawave-api-go/v2/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -254,7 +255,7 @@ baseClient := client.Client()
|
|||||||
| Requirement | Version |
|
| Requirement | Version |
|
||||||
|-------------|---------|
|
|-------------|---------|
|
||||||
| Go | 1.21+ |
|
| Go | 1.21+ |
|
||||||
| Remnawave API | 2.7.+ |
|
| Remnawave API | 2.8.+ |
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
+22
-14
@@ -259,6 +259,11 @@ func (sc *ApiTokensClient) FindAll(ctx context.Context, options ...RequestOption
|
|||||||
return sc.client.ApiTokensFindAll(ctx, options...)
|
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.
|
// AuthClient provides Auth operations.
|
||||||
type AuthClient struct {
|
type AuthClient struct {
|
||||||
client *Client
|
client *Client
|
||||||
@@ -324,6 +329,11 @@ func (sc *BandwidthStatsNodesClient) GetStatsNodeUsersUsage(ctx context.Context,
|
|||||||
return sc.client.BandwidthStatsNodesGetStatsNodeUsersUsage(ctx, params, options...)
|
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.
|
// BandwidthStatsUsersClient provides BandwidthStatsUsers operations.
|
||||||
type BandwidthStatsUsersClient struct {
|
type BandwidthStatsUsersClient struct {
|
||||||
client *Client
|
client *Client
|
||||||
@@ -539,13 +549,8 @@ func (sc *HostsBulkActionsClient) EnableHosts(ctx context.Context, request *Bulk
|
|||||||
return sc.client.HostsBulkActionsEnableHosts(ctx, request, options...)
|
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.
|
// 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...)
|
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.
|
// 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...)
|
return sc.client.NodesRestartAllNodes(ctx, request, options...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RestartNode calls Nodes_restartNode.
|
// RestartNode calls Nodes_restartNode.
|
||||||
func (sc *NodesClient) RestartNode(ctx context.Context, uuid string, options ...RequestOption) (NodesRestartNodeRes, error) {
|
func (sc *NodesClient) RestartNode(ctx context.Context, request *NodeRequestBodyRequest, uuid string, options ...RequestOption) (NodesRestartNodeRes, error) {
|
||||||
return sc.client.NodesRestartNode(ctx, NodesRestartNodeParams{
|
return sc.client.NodesRestartNode(ctx, request, NodesRestartNodeParams{
|
||||||
UUID: uuid,
|
UUID: uuid,
|
||||||
}, options...)
|
}, options...)
|
||||||
}
|
}
|
||||||
@@ -1310,11 +1315,6 @@ func (sc *SystemClient) DebugSrrMatcher(ctx context.Context, request *DebugSrrMa
|
|||||||
return sc.client.SystemDebugSrrMatcher(ctx, request, options...)
|
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.
|
// GetBandwidthStats calls System_getBandwidthStats.
|
||||||
func (sc *SystemClient) GetBandwidthStats(ctx context.Context, options ...RequestOption) (SystemGetBandwidthStatsRes, error) {
|
func (sc *SystemClient) GetBandwidthStats(ctx context.Context, options ...RequestOption) (SystemGetBandwidthStatsRes, error) {
|
||||||
return sc.client.SystemGetBandwidthStats(ctx, options...)
|
return sc.client.SystemGetBandwidthStats(ctx, options...)
|
||||||
@@ -1518,6 +1518,14 @@ func (sc *UsersClient) GetUsersByTag(ctx context.Context, tag string, options ..
|
|||||||
}, 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.
|
// ResetUserTraffic calls Users_resetUserTraffic.
|
||||||
func (sc *UsersClient) ResetUserTraffic(ctx context.Context, uuid string, options ...RequestOption) (UsersResetUserTrafficRes, error) {
|
func (sc *UsersClient) ResetUserTraffic(ctx context.Context, uuid string, options ...RequestOption) (UsersResetUserTrafficRes, error) {
|
||||||
return sc.client.UsersResetUserTraffic(ctx, UsersResetUserTrafficParams{
|
return sc.client.UsersResetUserTraffic(ctx, UsersResetUserTrafficParams{
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ var regexMap = map[string]ogenregex.Regexp{
|
|||||||
"^[A-Z0-9_]+$": ogenregex.MustCompile("^[A-Z0-9_]+$"),
|
"^[A-Z0-9_]+$": ogenregex.MustCompile("^[A-Z0-9_]+$"),
|
||||||
"^[A-Za-z0-9_\\s-]+$": ogenregex.MustCompile("^[A-Za-z0-9_\\s-]+$"),
|
"^[A-Za-z0-9_\\s-]+$": ogenregex.MustCompile("^[A-Za-z0-9_\\s-]+$"),
|
||||||
"^[a-zA-Z0-9_-]+$": ogenregex.MustCompile("^[a-zA-Z0-9_-]+$"),
|
"^[a-zA-Z0-9_-]+$": ogenregex.MustCompile("^[a-zA-Z0-9_-]+$"),
|
||||||
|
"^socks5:\\/\\/(?:[^:@/\\s]+(?::[^@/\\s]*)?@)?[^:@/\\s]+:\\d{1,5}$": ogenregex.MustCompile("^socks5:\\/\\/(?:[^:@/\\s]+(?::[^@/\\s]*)?@)?[^:@/\\s]+:\\d{1,5}$"),
|
||||||
}
|
}
|
||||||
var (
|
var (
|
||||||
// Allocate option closure once.
|
// Allocate option closure once.
|
||||||
|
|||||||
+553
-311
File diff suppressed because it is too large
Load Diff
+17
-13
@@ -48,10 +48,6 @@ func (s *CreateHostRequest) setDefaults() {
|
|||||||
val := bool(false)
|
val := bool(false)
|
||||||
s.KeepSniBlank.SetTo(val)
|
s.KeepSniBlank.SetTo(val)
|
||||||
}
|
}
|
||||||
{
|
|
||||||
val := bool(false)
|
|
||||||
s.AllowInsecure.SetTo(val)
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
val := bool(false)
|
val := bool(false)
|
||||||
s.ShuffleHost.SetTo(val)
|
s.ShuffleHost.SetTo(val)
|
||||||
@@ -88,10 +84,6 @@ func (s *CreateUserRequest) setDefaults() {
|
|||||||
|
|
||||||
// setDefaults set default value of fields.
|
// setDefaults set default value of fields.
|
||||||
func (s *HostItem) setDefaults() {
|
func (s *HostItem) setDefaults() {
|
||||||
{
|
|
||||||
val := bool(false)
|
|
||||||
s.IsDisabled.SetTo(val)
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
val := HostItemSecurityLayer("DEFAULT")
|
val := HostItemSecurityLayer("DEFAULT")
|
||||||
s.SecurityLayer.SetTo(val)
|
s.SecurityLayer.SetTo(val)
|
||||||
@@ -108,10 +100,6 @@ func (s *HostItem) setDefaults() {
|
|||||||
val := bool(false)
|
val := bool(false)
|
||||||
s.KeepSniBlank.SetTo(val)
|
s.KeepSniBlank.SetTo(val)
|
||||||
}
|
}
|
||||||
{
|
|
||||||
val := bool(false)
|
|
||||||
s.AllowInsecure.SetTo(val)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// setDefaults set default value of fields.
|
// setDefaults set default value of fields.
|
||||||
@@ -122,6 +110,22 @@ func (s *RevokeUserSubscriptionBody) setDefaults() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// setDefaults set default value of fields.
|
||||||
|
func (s *UpdateHostRequest) setDefaults() {
|
||||||
|
{
|
||||||
|
val := bool(false)
|
||||||
|
s.IsDisabled.SetTo(val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// setDefaults set default value of fields.
|
||||||
|
func (s *UpdateManyHostsRequest) setDefaults() {
|
||||||
|
{
|
||||||
|
val := bool(false)
|
||||||
|
s.IsDisabled.SetTo(val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// setDefaults set default value of fields.
|
// setDefaults set default value of fields.
|
||||||
func (s *UpdateUserRequest) setDefaults() {
|
func (s *UpdateUserRequest) setDefaults() {
|
||||||
{
|
{
|
||||||
@@ -137,7 +141,7 @@ func (s *UserItemInfo) setDefaults() {
|
|||||||
s.Status.SetTo(val)
|
s.Status.SetTo(val)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
val := int(0)
|
val := float64(0)
|
||||||
s.TrafficLimitBytes.SetTo(val)
|
s.TrafficLimitBytes.SetTo(val)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
+846
-210
File diff suppressed because it is too large
Load Diff
@@ -13,6 +13,10 @@ type ApiTokensFindAllRes interface {
|
|||||||
apiTokensFindAllRes()
|
apiTokensFindAllRes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ApiTokensGetScopesRes interface {
|
||||||
|
apiTokensGetScopesRes()
|
||||||
|
}
|
||||||
|
|
||||||
type AuthGetStatusRes interface {
|
type AuthGetStatusRes interface {
|
||||||
authGetStatusRes()
|
authGetStatusRes()
|
||||||
}
|
}
|
||||||
@@ -49,6 +53,10 @@ type BandwidthStatsNodesGetStatsNodeUsersUsageRes interface {
|
|||||||
bandwidthStatsNodesGetStatsNodeUsersUsageRes()
|
bandwidthStatsNodesGetStatsNodeUsersUsageRes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type BandwidthStatsNodesGetStatsNodesUsersUsageRes interface {
|
||||||
|
bandwidthStatsNodesGetStatsNodesUsersUsageRes()
|
||||||
|
}
|
||||||
|
|
||||||
type BandwidthStatsUsersGetStatsNodesUsageRes interface {
|
type BandwidthStatsUsersGetStatsNodesUsageRes interface {
|
||||||
bandwidthStatsUsersGetStatsNodesUsageRes()
|
bandwidthStatsUsersGetStatsNodesUsageRes()
|
||||||
}
|
}
|
||||||
@@ -137,10 +145,6 @@ type HostsBulkActionsEnableHostsRes interface {
|
|||||||
hostsBulkActionsEnableHostsRes()
|
hostsBulkActionsEnableHostsRes()
|
||||||
}
|
}
|
||||||
|
|
||||||
type HostsBulkActionsSetInboundToHostsRes interface {
|
|
||||||
hostsBulkActionsSetInboundToHostsRes()
|
|
||||||
}
|
|
||||||
|
|
||||||
type HostsBulkActionsSetPortToHostsRes interface {
|
type HostsBulkActionsSetPortToHostsRes interface {
|
||||||
hostsBulkActionsSetPortToHostsRes()
|
hostsBulkActionsSetPortToHostsRes()
|
||||||
}
|
}
|
||||||
@@ -561,10 +565,6 @@ type SystemDebugSrrMatcherRes interface {
|
|||||||
systemDebugSrrMatcherRes()
|
systemDebugSrrMatcherRes()
|
||||||
}
|
}
|
||||||
|
|
||||||
type SystemEncryptHappCryptoLinkRes interface {
|
|
||||||
systemEncryptHappCryptoLinkRes()
|
|
||||||
}
|
|
||||||
|
|
||||||
type SystemGetBandwidthStatsRes interface {
|
type SystemGetBandwidthStatsRes interface {
|
||||||
systemGetBandwidthStatsRes()
|
systemGetBandwidthStatsRes()
|
||||||
}
|
}
|
||||||
@@ -717,6 +717,10 @@ type UsersGetUsersByTagRes interface {
|
|||||||
usersGetUsersByTagRes()
|
usersGetUsersByTagRes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type UsersGetUsersStreamRes interface {
|
||||||
|
usersGetUsersStreamRes()
|
||||||
|
}
|
||||||
|
|
||||||
type UsersResetUserTrafficRes interface {
|
type UsersResetUserTrafficRes interface {
|
||||||
usersResetUserTrafficRes()
|
usersResetUserTrafficRes()
|
||||||
}
|
}
|
||||||
|
|||||||
+4329
-1505
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,7 @@ const (
|
|||||||
ApiTokensCreateOperation OperationName = "ApiTokensCreate"
|
ApiTokensCreateOperation OperationName = "ApiTokensCreate"
|
||||||
ApiTokensDeleteOperation OperationName = "ApiTokensDelete"
|
ApiTokensDeleteOperation OperationName = "ApiTokensDelete"
|
||||||
ApiTokensFindAllOperation OperationName = "ApiTokensFindAll"
|
ApiTokensFindAllOperation OperationName = "ApiTokensFindAll"
|
||||||
|
ApiTokensGetScopesOperation OperationName = "ApiTokensGetScopes"
|
||||||
AuthGetStatusOperation OperationName = "AuthGetStatus"
|
AuthGetStatusOperation OperationName = "AuthGetStatus"
|
||||||
AuthLoginOperation OperationName = "AuthLogin"
|
AuthLoginOperation OperationName = "AuthLogin"
|
||||||
AuthOauth2AuthorizeOperation OperationName = "AuthOauth2Authorize"
|
AuthOauth2AuthorizeOperation OperationName = "AuthOauth2Authorize"
|
||||||
@@ -18,6 +19,7 @@ const (
|
|||||||
AuthRegisterOperation OperationName = "AuthRegister"
|
AuthRegisterOperation OperationName = "AuthRegister"
|
||||||
BandwidthStatsNodesGetNodeUserUsageOperation OperationName = "BandwidthStatsNodesGetNodeUserUsage"
|
BandwidthStatsNodesGetNodeUserUsageOperation OperationName = "BandwidthStatsNodesGetNodeUserUsage"
|
||||||
BandwidthStatsNodesGetStatsNodeUsersUsageOperation OperationName = "BandwidthStatsNodesGetStatsNodeUsersUsage"
|
BandwidthStatsNodesGetStatsNodeUsersUsageOperation OperationName = "BandwidthStatsNodesGetStatsNodeUsersUsage"
|
||||||
|
BandwidthStatsNodesGetStatsNodesUsersUsageOperation OperationName = "BandwidthStatsNodesGetStatsNodesUsersUsage"
|
||||||
BandwidthStatsUsersGetStatsNodesUsageOperation OperationName = "BandwidthStatsUsersGetStatsNodesUsage"
|
BandwidthStatsUsersGetStatsNodesUsageOperation OperationName = "BandwidthStatsUsersGetStatsNodesUsage"
|
||||||
BandwidthStatsUsersGetUserUsageByRangeOperation OperationName = "BandwidthStatsUsersGetUserUsageByRange"
|
BandwidthStatsUsersGetUserUsageByRangeOperation OperationName = "BandwidthStatsUsersGetUserUsageByRange"
|
||||||
ConfigProfileCreateConfigProfileOperation OperationName = "ConfigProfileCreateConfigProfile"
|
ConfigProfileCreateConfigProfileOperation OperationName = "ConfigProfileCreateConfigProfile"
|
||||||
@@ -40,7 +42,6 @@ const (
|
|||||||
HostsBulkActionsDeleteHostsOperation OperationName = "HostsBulkActionsDeleteHosts"
|
HostsBulkActionsDeleteHostsOperation OperationName = "HostsBulkActionsDeleteHosts"
|
||||||
HostsBulkActionsDisableHostsOperation OperationName = "HostsBulkActionsDisableHosts"
|
HostsBulkActionsDisableHostsOperation OperationName = "HostsBulkActionsDisableHosts"
|
||||||
HostsBulkActionsEnableHostsOperation OperationName = "HostsBulkActionsEnableHosts"
|
HostsBulkActionsEnableHostsOperation OperationName = "HostsBulkActionsEnableHosts"
|
||||||
HostsBulkActionsSetInboundToHostsOperation OperationName = "HostsBulkActionsSetInboundToHosts"
|
|
||||||
HostsBulkActionsSetPortToHostsOperation OperationName = "HostsBulkActionsSetPortToHosts"
|
HostsBulkActionsSetPortToHostsOperation OperationName = "HostsBulkActionsSetPortToHosts"
|
||||||
HostsCreateHostOperation OperationName = "HostsCreateHost"
|
HostsCreateHostOperation OperationName = "HostsCreateHost"
|
||||||
HostsDeleteHostOperation OperationName = "HostsDeleteHost"
|
HostsDeleteHostOperation OperationName = "HostsDeleteHost"
|
||||||
@@ -148,7 +149,6 @@ const (
|
|||||||
SubscriptionsGetSubscriptionByUsernameOperation OperationName = "SubscriptionsGetSubscriptionByUsername"
|
SubscriptionsGetSubscriptionByUsernameOperation OperationName = "SubscriptionsGetSubscriptionByUsername"
|
||||||
SubscriptionsGetSubscriptionByUuidOperation OperationName = "SubscriptionsGetSubscriptionByUuid"
|
SubscriptionsGetSubscriptionByUuidOperation OperationName = "SubscriptionsGetSubscriptionByUuid"
|
||||||
SystemDebugSrrMatcherOperation OperationName = "SystemDebugSrrMatcher"
|
SystemDebugSrrMatcherOperation OperationName = "SystemDebugSrrMatcher"
|
||||||
SystemEncryptHappCryptoLinkOperation OperationName = "SystemEncryptHappCryptoLink"
|
|
||||||
SystemGetBandwidthStatsOperation OperationName = "SystemGetBandwidthStats"
|
SystemGetBandwidthStatsOperation OperationName = "SystemGetBandwidthStats"
|
||||||
SystemGetMetadataOperation OperationName = "SystemGetMetadata"
|
SystemGetMetadataOperation OperationName = "SystemGetMetadata"
|
||||||
SystemGetNodesMetricsOperation OperationName = "SystemGetNodesMetrics"
|
SystemGetNodesMetricsOperation OperationName = "SystemGetNodesMetrics"
|
||||||
@@ -187,6 +187,7 @@ const (
|
|||||||
UsersGetUserSubscriptionRequestHistoryOperation OperationName = "UsersGetUserSubscriptionRequestHistory"
|
UsersGetUserSubscriptionRequestHistoryOperation OperationName = "UsersGetUserSubscriptionRequestHistory"
|
||||||
UsersGetUsersByEmailOperation OperationName = "UsersGetUsersByEmail"
|
UsersGetUsersByEmailOperation OperationName = "UsersGetUsersByEmail"
|
||||||
UsersGetUsersByTagOperation OperationName = "UsersGetUsersByTag"
|
UsersGetUsersByTagOperation OperationName = "UsersGetUsersByTag"
|
||||||
|
UsersGetUsersStreamOperation OperationName = "UsersGetUsersStream"
|
||||||
UsersResetUserTrafficOperation OperationName = "UsersResetUserTraffic"
|
UsersResetUserTrafficOperation OperationName = "UsersResetUserTraffic"
|
||||||
UsersResolveUserOperation OperationName = "UsersResolveUser"
|
UsersResolveUserOperation OperationName = "UsersResolveUser"
|
||||||
UsersRevokeUserSubscriptionOperation OperationName = "UsersRevokeUserSubscription"
|
UsersRevokeUserSubscriptionOperation OperationName = "UsersRevokeUserSubscription"
|
||||||
|
|||||||
@@ -34,6 +34,16 @@ type BandwidthStatsNodesGetStatsNodeUsersUsageParams struct {
|
|||||||
UUID string
|
UUID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BandwidthStatsNodesGetStatsNodesUsersUsageParams is parameters of BandwidthStatsNodes_getStatsNodesUsersUsage operation.
|
||||||
|
type BandwidthStatsNodesGetStatsNodesUsersUsageParams struct {
|
||||||
|
// Limit of top users to return.
|
||||||
|
TopUsersLimit int
|
||||||
|
// Start date (YYYY-MM-DD).
|
||||||
|
Start time.Time
|
||||||
|
// End date (YYYY-MM-DD).
|
||||||
|
End time.Time
|
||||||
|
}
|
||||||
|
|
||||||
// BandwidthStatsUsersGetStatsNodesUsageParams is parameters of BandwidthStatsUsers_getStatsNodesUsage operation.
|
// BandwidthStatsUsersGetStatsNodesUsageParams is parameters of BandwidthStatsUsers_getStatsNodesUsage operation.
|
||||||
type BandwidthStatsUsersGetStatsNodesUsageParams struct {
|
type BandwidthStatsUsersGetStatsNodesUsageParams struct {
|
||||||
// Limit of top nodes to return.
|
// Limit of top nodes to return.
|
||||||
@@ -468,6 +478,14 @@ type UsersGetUsersByTagParams struct {
|
|||||||
Tag string
|
Tag string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UsersGetUsersStreamParams is parameters of Users_getUsersStream operation.
|
||||||
|
type UsersGetUsersStreamParams struct {
|
||||||
|
// Page size, no more than 1000 (default 250).
|
||||||
|
Size OptInt `json:",omitempty,omitzero"`
|
||||||
|
// Cursor from the previous response (nextCursor). Omit on the first request.
|
||||||
|
Cursor OptString `json:",omitempty,omitzero"`
|
||||||
|
}
|
||||||
|
|
||||||
// UsersResetUserTrafficParams is parameters of Users_resetUserTraffic operation.
|
// UsersResetUserTrafficParams is parameters of Users_resetUserTraffic operation.
|
||||||
type UsersResetUserTrafficParams struct {
|
type UsersResetUserTrafficParams struct {
|
||||||
// UUID of the user.
|
// UUID of the user.
|
||||||
|
|||||||
@@ -94,6 +94,20 @@ func encodeAuthRegisterRequest(
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func encodeBandwidthStatsNodesGetStatsNodesUsersUsageRequest(
|
||||||
|
req *GetStatsNodesUsersUsageRequest,
|
||||||
|
r *http.Request,
|
||||||
|
) error {
|
||||||
|
const contentType = "application/json"
|
||||||
|
e := new(jx.Encoder)
|
||||||
|
{
|
||||||
|
req.Encode(e)
|
||||||
|
}
|
||||||
|
encoded := e.Bytes()
|
||||||
|
ht.SetBody(r, bytes.NewReader(encoded), contentType)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func encodeConfigProfileCreateConfigProfileRequest(
|
func encodeConfigProfileCreateConfigProfileRequest(
|
||||||
req *CreateConfigProfileRequest,
|
req *CreateConfigProfileRequest,
|
||||||
r *http.Request,
|
r *http.Request,
|
||||||
@@ -220,22 +234,8 @@ func encodeHostsBulkActionsEnableHostsRequest(
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func encodeHostsBulkActionsSetInboundToHostsRequest(
|
|
||||||
req *SetInboundToManyHostsRequest,
|
|
||||||
r *http.Request,
|
|
||||||
) error {
|
|
||||||
const contentType = "application/json"
|
|
||||||
e := new(jx.Encoder)
|
|
||||||
{
|
|
||||||
req.Encode(e)
|
|
||||||
}
|
|
||||||
encoded := e.Bytes()
|
|
||||||
ht.SetBody(r, bytes.NewReader(encoded), contentType)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func encodeHostsBulkActionsSetPortToHostsRequest(
|
func encodeHostsBulkActionsSetPortToHostsRequest(
|
||||||
req *SetPortToManyHostsRequest,
|
req *UpdateManyHostsRequest,
|
||||||
r *http.Request,
|
r *http.Request,
|
||||||
) error {
|
) error {
|
||||||
const contentType = "application/json"
|
const contentType = "application/json"
|
||||||
@@ -627,7 +627,21 @@ func encodeNodesReorderNodesRequest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func encodeNodesRestartAllNodesRequest(
|
func encodeNodesRestartAllNodesRequest(
|
||||||
req *RestartAllNodesRequestBody,
|
req *NodeRequestBodyRequest,
|
||||||
|
r *http.Request,
|
||||||
|
) error {
|
||||||
|
const contentType = "application/json"
|
||||||
|
e := new(jx.Encoder)
|
||||||
|
{
|
||||||
|
req.Encode(e)
|
||||||
|
}
|
||||||
|
encoded := e.Bytes()
|
||||||
|
ht.SetBody(r, bytes.NewReader(encoded), contentType)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func encodeNodesRestartNodeRequest(
|
||||||
|
req *NodeRequestBodyRequest,
|
||||||
r *http.Request,
|
r *http.Request,
|
||||||
) error {
|
) error {
|
||||||
const contentType = "application/json"
|
const contentType = "application/json"
|
||||||
@@ -892,20 +906,6 @@ func encodeSystemDebugSrrMatcherRequest(
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func encodeSystemEncryptHappCryptoLinkRequest(
|
|
||||||
req *EncryptHappCryptoLinkRequest,
|
|
||||||
r *http.Request,
|
|
||||||
) error {
|
|
||||||
const contentType = "application/json"
|
|
||||||
e := new(jx.Encoder)
|
|
||||||
{
|
|
||||||
req.Encode(e)
|
|
||||||
}
|
|
||||||
encoded := e.Bytes()
|
|
||||||
ht.SetBody(r, bytes.NewReader(encoded), contentType)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func encodeUsersBulkActionsBulkAllExtendExpirationDateRequest(
|
func encodeUsersBulkActionsBulkAllExtendExpirationDateRequest(
|
||||||
req *BulkAllExtendExpirationDateRequest,
|
req *BulkAllExtendExpirationDateRequest,
|
||||||
r *http.Request,
|
r *http.Request,
|
||||||
|
|||||||
+397
-250
@@ -47,6 +47,15 @@ func decodeApiTokensCreateResponse(resp *http.Response) (res ApiTokensCreateRes,
|
|||||||
}
|
}
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
// Validate response.
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Validate(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return res, errors.Wrap(err, "validate")
|
||||||
|
}
|
||||||
return &response, nil
|
return &response, nil
|
||||||
default:
|
default:
|
||||||
return res, validate.InvalidContentType(ct)
|
return res, validate.InvalidContentType(ct)
|
||||||
@@ -383,6 +392,135 @@ func decodeApiTokensFindAllResponse(resp *http.Response) (res ApiTokensFindAllRe
|
|||||||
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func decodeApiTokensGetScopesResponse(resp *http.Response) (res ApiTokensGetScopesRes, _ error) {
|
||||||
|
switch resp.StatusCode {
|
||||||
|
case 200:
|
||||||
|
// Code 200.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response GetApiTokenScopesResponse
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
// Validate response.
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Validate(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return res, errors.Wrap(err, "validate")
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
case 400:
|
||||||
|
// Code 400.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response BadRequestError
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
// Validate response.
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Validate(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return res, errors.Wrap(err, "validate")
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
case 500:
|
||||||
|
// Code 500.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response InternalServerError
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
||||||
|
}
|
||||||
|
|
||||||
func decodeAuthGetStatusResponse(resp *http.Response) (res AuthGetStatusRes, _ error) {
|
func decodeAuthGetStatusResponse(resp *http.Response) (res AuthGetStatusRes, _ error) {
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case 400:
|
case 400:
|
||||||
@@ -1505,7 +1643,136 @@ func decodeBandwidthStatsNodesGetStatsNodeUsersUsageResponse(resp *http.Response
|
|||||||
}
|
}
|
||||||
d := jx.DecodeBytes(buf)
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
var response GetStatsNodeUsersUsageResponse
|
var response StatsNodeUsersUsageResponseResponse
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
// Validate response.
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Validate(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return res, errors.Wrap(err, "validate")
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
case 400:
|
||||||
|
// Code 400.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response BadRequestError
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
// Validate response.
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Validate(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return res, errors.Wrap(err, "validate")
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
case 500:
|
||||||
|
// Code 500.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response InternalServerError
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
||||||
|
}
|
||||||
|
|
||||||
|
func decodeBandwidthStatsNodesGetStatsNodesUsersUsageResponse(resp *http.Response) (res BandwidthStatsNodesGetStatsNodesUsersUsageRes, _ error) {
|
||||||
|
switch resp.StatusCode {
|
||||||
|
case 200:
|
||||||
|
// Code 200.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response StatsNodeUsersUsageResponseResponse
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
if err := response.Decode(d); err != nil {
|
if err := response.Decode(d); err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -4872,135 +5139,6 @@ func decodeHostsBulkActionsEnableHostsResponse(resp *http.Response) (res HostsBu
|
|||||||
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func decodeHostsBulkActionsSetInboundToHostsResponse(resp *http.Response) (res HostsBulkActionsSetInboundToHostsRes, _ error) {
|
|
||||||
switch resp.StatusCode {
|
|
||||||
case 200:
|
|
||||||
// Code 200.
|
|
||||||
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
|
||||||
if err != nil {
|
|
||||||
return res, errors.Wrap(err, "parse media type")
|
|
||||||
}
|
|
||||||
switch {
|
|
||||||
case ct == "application/json":
|
|
||||||
buf, err := io.ReadAll(resp.Body)
|
|
||||||
if err != nil {
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
d := jx.DecodeBytes(buf)
|
|
||||||
|
|
||||||
var response HostListResponse
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Decode(d); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := d.Skip(); err != io.EOF {
|
|
||||||
return errors.New("unexpected trailing data")
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
err = &ogenerrors.DecodeBodyError{
|
|
||||||
ContentType: ct,
|
|
||||||
Body: buf,
|
|
||||||
Err: err,
|
|
||||||
}
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
// Validate response.
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Validate(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
return res, errors.Wrap(err, "validate")
|
|
||||||
}
|
|
||||||
return &response, nil
|
|
||||||
default:
|
|
||||||
return res, validate.InvalidContentType(ct)
|
|
||||||
}
|
|
||||||
case 400:
|
|
||||||
// Code 400.
|
|
||||||
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
|
||||||
if err != nil {
|
|
||||||
return res, errors.Wrap(err, "parse media type")
|
|
||||||
}
|
|
||||||
switch {
|
|
||||||
case ct == "application/json":
|
|
||||||
buf, err := io.ReadAll(resp.Body)
|
|
||||||
if err != nil {
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
d := jx.DecodeBytes(buf)
|
|
||||||
|
|
||||||
var response BadRequestError
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Decode(d); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := d.Skip(); err != io.EOF {
|
|
||||||
return errors.New("unexpected trailing data")
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
err = &ogenerrors.DecodeBodyError{
|
|
||||||
ContentType: ct,
|
|
||||||
Body: buf,
|
|
||||||
Err: err,
|
|
||||||
}
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
// Validate response.
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Validate(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
return res, errors.Wrap(err, "validate")
|
|
||||||
}
|
|
||||||
return &response, nil
|
|
||||||
default:
|
|
||||||
return res, validate.InvalidContentType(ct)
|
|
||||||
}
|
|
||||||
case 500:
|
|
||||||
// Code 500.
|
|
||||||
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
|
||||||
if err != nil {
|
|
||||||
return res, errors.Wrap(err, "parse media type")
|
|
||||||
}
|
|
||||||
switch {
|
|
||||||
case ct == "application/json":
|
|
||||||
buf, err := io.ReadAll(resp.Body)
|
|
||||||
if err != nil {
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
d := jx.DecodeBytes(buf)
|
|
||||||
|
|
||||||
var response InternalServerError
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Decode(d); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := d.Skip(); err != io.EOF {
|
|
||||||
return errors.New("unexpected trailing data")
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
err = &ogenerrors.DecodeBodyError{
|
|
||||||
ContentType: ct,
|
|
||||||
Body: buf,
|
|
||||||
Err: err,
|
|
||||||
}
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
return &response, nil
|
|
||||||
default:
|
|
||||||
return res, validate.InvalidContentType(ct)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
|
||||||
}
|
|
||||||
|
|
||||||
func decodeHostsBulkActionsSetPortToHostsResponse(resp *http.Response) (res HostsBulkActionsSetPortToHostsRes, _ error) {
|
func decodeHostsBulkActionsSetPortToHostsResponse(resp *http.Response) (res HostsBulkActionsSetPortToHostsRes, _ error) {
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case 200:
|
case 200:
|
||||||
@@ -19419,126 +19557,6 @@ func decodeSystemDebugSrrMatcherResponse(resp *http.Response) (res SystemDebugSr
|
|||||||
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func decodeSystemEncryptHappCryptoLinkResponse(resp *http.Response) (res SystemEncryptHappCryptoLinkRes, _ error) {
|
|
||||||
switch resp.StatusCode {
|
|
||||||
case 200:
|
|
||||||
// Code 200.
|
|
||||||
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
|
||||||
if err != nil {
|
|
||||||
return res, errors.Wrap(err, "parse media type")
|
|
||||||
}
|
|
||||||
switch {
|
|
||||||
case ct == "application/json":
|
|
||||||
buf, err := io.ReadAll(resp.Body)
|
|
||||||
if err != nil {
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
d := jx.DecodeBytes(buf)
|
|
||||||
|
|
||||||
var response EncryptHappCryptoLinkResponse
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Decode(d); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := d.Skip(); err != io.EOF {
|
|
||||||
return errors.New("unexpected trailing data")
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
err = &ogenerrors.DecodeBodyError{
|
|
||||||
ContentType: ct,
|
|
||||||
Body: buf,
|
|
||||||
Err: err,
|
|
||||||
}
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
return &response, nil
|
|
||||||
default:
|
|
||||||
return res, validate.InvalidContentType(ct)
|
|
||||||
}
|
|
||||||
case 400:
|
|
||||||
// Code 400.
|
|
||||||
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
|
||||||
if err != nil {
|
|
||||||
return res, errors.Wrap(err, "parse media type")
|
|
||||||
}
|
|
||||||
switch {
|
|
||||||
case ct == "application/json":
|
|
||||||
buf, err := io.ReadAll(resp.Body)
|
|
||||||
if err != nil {
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
d := jx.DecodeBytes(buf)
|
|
||||||
|
|
||||||
var response BadRequestError
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Decode(d); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := d.Skip(); err != io.EOF {
|
|
||||||
return errors.New("unexpected trailing data")
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
err = &ogenerrors.DecodeBodyError{
|
|
||||||
ContentType: ct,
|
|
||||||
Body: buf,
|
|
||||||
Err: err,
|
|
||||||
}
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
// Validate response.
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Validate(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
return res, errors.Wrap(err, "validate")
|
|
||||||
}
|
|
||||||
return &response, nil
|
|
||||||
default:
|
|
||||||
return res, validate.InvalidContentType(ct)
|
|
||||||
}
|
|
||||||
case 500:
|
|
||||||
// Code 500.
|
|
||||||
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
|
||||||
if err != nil {
|
|
||||||
return res, errors.Wrap(err, "parse media type")
|
|
||||||
}
|
|
||||||
switch {
|
|
||||||
case ct == "application/json":
|
|
||||||
buf, err := io.ReadAll(resp.Body)
|
|
||||||
if err != nil {
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
d := jx.DecodeBytes(buf)
|
|
||||||
|
|
||||||
var response InternalServerError
|
|
||||||
if err := func() error {
|
|
||||||
if err := response.Decode(d); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := d.Skip(); err != io.EOF {
|
|
||||||
return errors.New("unexpected trailing data")
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}(); err != nil {
|
|
||||||
err = &ogenerrors.DecodeBodyError{
|
|
||||||
ContentType: ct,
|
|
||||||
Body: buf,
|
|
||||||
Err: err,
|
|
||||||
}
|
|
||||||
return res, err
|
|
||||||
}
|
|
||||||
return &response, nil
|
|
||||||
default:
|
|
||||||
return res, validate.InvalidContentType(ct)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
|
||||||
}
|
|
||||||
|
|
||||||
func decodeSystemGetBandwidthStatsResponse(resp *http.Response) (res SystemGetBandwidthStatsRes, _ error) {
|
func decodeSystemGetBandwidthStatsResponse(resp *http.Response) (res SystemGetBandwidthStatsRes, _ error) {
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case 200:
|
case 200:
|
||||||
@@ -24783,6 +24801,135 @@ func decodeUsersGetUsersByTagResponse(resp *http.Response) (res UsersGetUsersByT
|
|||||||
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func decodeUsersGetUsersStreamResponse(resp *http.Response) (res UsersGetUsersStreamRes, _ error) {
|
||||||
|
switch resp.StatusCode {
|
||||||
|
case 200:
|
||||||
|
// Code 200.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response GetUsersStreamResponse
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
// Validate response.
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Validate(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return res, errors.Wrap(err, "validate")
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
case 400:
|
||||||
|
// Code 400.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response BadRequestError
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
// Validate response.
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Validate(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
return res, errors.Wrap(err, "validate")
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
case 500:
|
||||||
|
// Code 500.
|
||||||
|
ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
|
||||||
|
if err != nil {
|
||||||
|
return res, errors.Wrap(err, "parse media type")
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case ct == "application/json":
|
||||||
|
buf, err := io.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
d := jx.DecodeBytes(buf)
|
||||||
|
|
||||||
|
var response InternalServerError
|
||||||
|
if err := func() error {
|
||||||
|
if err := response.Decode(d); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := d.Skip(); err != io.EOF {
|
||||||
|
return errors.New("unexpected trailing data")
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}(); err != nil {
|
||||||
|
err = &ogenerrors.DecodeBodyError{
|
||||||
|
ContentType: ct,
|
||||||
|
Body: buf,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
return res, err
|
||||||
|
}
|
||||||
|
return &response, nil
|
||||||
|
default:
|
||||||
|
return res, validate.InvalidContentType(ct)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res, validate.UnexpectedStatusCodeWithResponse(resp)
|
||||||
|
}
|
||||||
|
|
||||||
func decodeUsersResetUserTrafficResponse(resp *http.Response) (res UsersResetUserTrafficRes, _ error) {
|
func decodeUsersResetUserTrafficResponse(resp *http.Response) (res UsersResetUserTrafficRes, _ error) {
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case 200:
|
case 200:
|
||||||
|
|||||||
+2573
-749
File diff suppressed because it is too large
Load Diff
@@ -21,8 +21,10 @@ var operationRolesAuthorization = map[string][]string{
|
|||||||
ApiTokensCreateOperation: []string{},
|
ApiTokensCreateOperation: []string{},
|
||||||
ApiTokensDeleteOperation: []string{},
|
ApiTokensDeleteOperation: []string{},
|
||||||
ApiTokensFindAllOperation: []string{},
|
ApiTokensFindAllOperation: []string{},
|
||||||
|
ApiTokensGetScopesOperation: []string{},
|
||||||
BandwidthStatsNodesGetNodeUserUsageOperation: []string{},
|
BandwidthStatsNodesGetNodeUserUsageOperation: []string{},
|
||||||
BandwidthStatsNodesGetStatsNodeUsersUsageOperation: []string{},
|
BandwidthStatsNodesGetStatsNodeUsersUsageOperation: []string{},
|
||||||
|
BandwidthStatsNodesGetStatsNodesUsersUsageOperation: []string{},
|
||||||
BandwidthStatsUsersGetStatsNodesUsageOperation: []string{},
|
BandwidthStatsUsersGetStatsNodesUsageOperation: []string{},
|
||||||
BandwidthStatsUsersGetUserUsageByRangeOperation: []string{},
|
BandwidthStatsUsersGetUserUsageByRangeOperation: []string{},
|
||||||
ConfigProfileCreateConfigProfileOperation: []string{},
|
ConfigProfileCreateConfigProfileOperation: []string{},
|
||||||
@@ -45,7 +47,6 @@ var operationRolesAuthorization = map[string][]string{
|
|||||||
HostsBulkActionsDeleteHostsOperation: []string{},
|
HostsBulkActionsDeleteHostsOperation: []string{},
|
||||||
HostsBulkActionsDisableHostsOperation: []string{},
|
HostsBulkActionsDisableHostsOperation: []string{},
|
||||||
HostsBulkActionsEnableHostsOperation: []string{},
|
HostsBulkActionsEnableHostsOperation: []string{},
|
||||||
HostsBulkActionsSetInboundToHostsOperation: []string{},
|
|
||||||
HostsBulkActionsSetPortToHostsOperation: []string{},
|
HostsBulkActionsSetPortToHostsOperation: []string{},
|
||||||
HostsCreateHostOperation: []string{},
|
HostsCreateHostOperation: []string{},
|
||||||
HostsDeleteHostOperation: []string{},
|
HostsDeleteHostOperation: []string{},
|
||||||
@@ -150,7 +151,6 @@ var operationRolesAuthorization = map[string][]string{
|
|||||||
SubscriptionsGetSubscriptionByUsernameOperation: []string{},
|
SubscriptionsGetSubscriptionByUsernameOperation: []string{},
|
||||||
SubscriptionsGetSubscriptionByUuidOperation: []string{},
|
SubscriptionsGetSubscriptionByUuidOperation: []string{},
|
||||||
SystemDebugSrrMatcherOperation: []string{},
|
SystemDebugSrrMatcherOperation: []string{},
|
||||||
SystemEncryptHappCryptoLinkOperation: []string{},
|
|
||||||
SystemGetBandwidthStatsOperation: []string{},
|
SystemGetBandwidthStatsOperation: []string{},
|
||||||
SystemGetMetadataOperation: []string{},
|
SystemGetMetadataOperation: []string{},
|
||||||
SystemGetNodesMetricsOperation: []string{},
|
SystemGetNodesMetricsOperation: []string{},
|
||||||
@@ -189,6 +189,7 @@ var operationRolesAuthorization = map[string][]string{
|
|||||||
UsersGetUserSubscriptionRequestHistoryOperation: []string{},
|
UsersGetUserSubscriptionRequestHistoryOperation: []string{},
|
||||||
UsersGetUsersByEmailOperation: []string{},
|
UsersGetUsersByEmailOperation: []string{},
|
||||||
UsersGetUsersByTagOperation: []string{},
|
UsersGetUsersByTagOperation: []string{},
|
||||||
|
UsersGetUsersStreamOperation: []string{},
|
||||||
UsersResetUserTrafficOperation: []string{},
|
UsersResetUserTrafficOperation: []string{},
|
||||||
UsersResolveUserOperation: []string{},
|
UsersResolveUserOperation: []string{},
|
||||||
UsersRevokeUserSubscriptionOperation: []string{},
|
UsersRevokeUserSubscriptionOperation: []string{},
|
||||||
|
|||||||
@@ -695,8 +695,8 @@ func TestCreateHostRequestExcludeFromSubscriptionTypesItem_EncodeDecode(t *testi
|
|||||||
var typ2 CreateHostRequestExcludeFromSubscriptionTypesItem
|
var typ2 CreateHostRequestExcludeFromSubscriptionTypesItem
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestCreateHostRequestFingerprint_EncodeDecode(t *testing.T) {
|
func TestCreateHostRequestMihomoIpVersion_EncodeDecode(t *testing.T) {
|
||||||
var typ CreateHostRequestFingerprint
|
var typ CreateHostRequestMihomoIpVersion
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
|
|
||||||
e := jx.Encoder{}
|
e := jx.Encoder{}
|
||||||
@@ -704,7 +704,7 @@ func TestCreateHostRequestFingerprint_EncodeDecode(t *testing.T) {
|
|||||||
data := e.Bytes()
|
data := e.Bytes()
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
var typ2 CreateHostRequestFingerprint
|
var typ2 CreateHostRequestMihomoIpVersion
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestCreateHostRequestSecurityLayer_EncodeDecode(t *testing.T) {
|
func TestCreateHostRequestSecurityLayer_EncodeDecode(t *testing.T) {
|
||||||
@@ -1227,8 +1227,8 @@ func TestDropConnectionsRequestTargetNodes1Target_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 DropConnectionsRequestTargetNodes1Target
|
var typ2 DropConnectionsRequestTargetNodes1Target
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestEncryptHappCryptoLinkRequest_EncodeDecode(t *testing.T) {
|
func TestEncryptionItem_EncodeDecode(t *testing.T) {
|
||||||
var typ EncryptHappCryptoLinkRequest
|
var typ EncryptionItem
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
|
|
||||||
e := jx.Encoder{}
|
e := jx.Encoder{}
|
||||||
@@ -1236,11 +1236,11 @@ func TestEncryptHappCryptoLinkRequest_EncodeDecode(t *testing.T) {
|
|||||||
data := e.Bytes()
|
data := e.Bytes()
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
var typ2 EncryptHappCryptoLinkRequest
|
var typ2 EncryptionItem
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestEncryptHappCryptoLinkResponse_EncodeDecode(t *testing.T) {
|
func TestEncryptionItemMethod_EncodeDecode(t *testing.T) {
|
||||||
var typ EncryptHappCryptoLinkResponse
|
var typ EncryptionItemMethod
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
|
|
||||||
e := jx.Encoder{}
|
e := jx.Encoder{}
|
||||||
@@ -1248,19 +1248,7 @@ func TestEncryptHappCryptoLinkResponse_EncodeDecode(t *testing.T) {
|
|||||||
data := e.Bytes()
|
data := e.Bytes()
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
var typ2 EncryptHappCryptoLinkResponse
|
var typ2 EncryptionItemMethod
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
|
||||||
}
|
|
||||||
func TestEncryptHappCryptoLinkResponseResponse_EncodeDecode(t *testing.T) {
|
|
||||||
var typ EncryptHappCryptoLinkResponseResponse
|
|
||||||
typ.SetFake()
|
|
||||||
|
|
||||||
e := jx.Encoder{}
|
|
||||||
typ.Encode(&e)
|
|
||||||
data := e.Bytes()
|
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
|
||||||
|
|
||||||
var typ2 EncryptHappCryptoLinkResponseResponse
|
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestEventResponse_EncodeDecode(t *testing.T) {
|
func TestEventResponse_EncodeDecode(t *testing.T) {
|
||||||
@@ -1493,18 +1481,6 @@ func TestFindAllApiTokensResponseResponse_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 FindAllApiTokensResponseResponse
|
var typ2 FindAllApiTokensResponseResponse
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestFindAllApiTokensResponseResponseApiKeysItem_EncodeDecode(t *testing.T) {
|
|
||||||
var typ FindAllApiTokensResponseResponseApiKeysItem
|
|
||||||
typ.SetFake()
|
|
||||||
|
|
||||||
e := jx.Encoder{}
|
|
||||||
typ.Encode(&e)
|
|
||||||
data := e.Bytes()
|
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
|
||||||
|
|
||||||
var typ2 FindAllApiTokensResponseResponseApiKeysItem
|
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
|
||||||
}
|
|
||||||
func TestFindAllApiTokensResponseResponseDocs_EncodeDecode(t *testing.T) {
|
func TestFindAllApiTokensResponseResponseDocs_EncodeDecode(t *testing.T) {
|
||||||
var typ FindAllApiTokensResponseResponseDocs
|
var typ FindAllApiTokensResponseResponseDocs
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -1517,6 +1493,18 @@ func TestFindAllApiTokensResponseResponseDocs_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 FindAllApiTokensResponseResponseDocs
|
var typ2 FindAllApiTokensResponseResponseDocs
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestFindAllApiTokensResponseResponseTokensItem_EncodeDecode(t *testing.T) {
|
||||||
|
var typ FindAllApiTokensResponseResponseTokensItem
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 FindAllApiTokensResponseResponseTokensItem
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestForbiddenError_EncodeDecode(t *testing.T) {
|
func TestForbiddenError_EncodeDecode(t *testing.T) {
|
||||||
var typ ForbiddenError
|
var typ ForbiddenError
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -1637,6 +1625,66 @@ func TestGetAllUsersResponseResponse_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 GetAllUsersResponseResponse
|
var typ2 GetAllUsersResponseResponse
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestGetApiTokenScopesResponse_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetApiTokenScopesResponse
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetApiTokenScopesResponse
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestGetApiTokenScopesResponseResponse_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetApiTokenScopesResponseResponse
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetApiTokenScopesResponseResponse
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestGetApiTokenScopesResponseResponseResourcesItem_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetApiTokenScopesResponseResponseResourcesItem
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetApiTokenScopesResponseResponseResourcesItem
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestGetApiTokenScopesResponseResponseResourcesItemEndpointsItem_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetApiTokenScopesResponseResponseResourcesItemEndpointsItem
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetApiTokenScopesResponseResponseResourcesItemEndpointsItem
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestGetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestGetBandwidthStatsResponse_EncodeDecode(t *testing.T) {
|
func TestGetBandwidthStatsResponse_EncodeDecode(t *testing.T) {
|
||||||
var typ GetBandwidthStatsResponse
|
var typ GetBandwidthStatsResponse
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -2045,6 +2093,18 @@ func TestGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo_EncodeDe
|
|||||||
var typ2 GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo
|
var typ2 GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestGetRawSubscriptionByShortUuidResponseResponseHeaders_EncodeDecode(t *testing.T) {
|
func TestGetRawSubscriptionByShortUuidResponseResponseHeaders_EncodeDecode(t *testing.T) {
|
||||||
var typ GetRawSubscriptionByShortUuidResponseResponseHeaders
|
var typ GetRawSubscriptionByShortUuidResponseResponseHeaders
|
||||||
typ = make(GetRawSubscriptionByShortUuidResponseResponseHeaders)
|
typ = make(GetRawSubscriptionByShortUuidResponseResponseHeaders)
|
||||||
@@ -2083,6 +2143,18 @@ func TestGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemCl
|
|||||||
var typ2 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides
|
var typ2 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata_EncodeDecode(t *testing.T) {
|
func TestGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata_EncodeDecode(t *testing.T) {
|
||||||
var typ GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata
|
var typ GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -2609,8 +2681,8 @@ func TestGetRemnawaveHealthResponseResponseRuntimeMetricsItem_EncodeDecode(t *te
|
|||||||
var typ2 GetRemnawaveHealthResponseResponseRuntimeMetricsItem
|
var typ2 GetRemnawaveHealthResponseResponseRuntimeMetricsItem
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestGetStatsNodeUsersUsageResponse_EncodeDecode(t *testing.T) {
|
func TestGetStatsNodesUsersUsageRequest_EncodeDecode(t *testing.T) {
|
||||||
var typ GetStatsNodeUsersUsageResponse
|
var typ GetStatsNodesUsersUsageRequest
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
|
|
||||||
e := jx.Encoder{}
|
e := jx.Encoder{}
|
||||||
@@ -2618,31 +2690,7 @@ func TestGetStatsNodeUsersUsageResponse_EncodeDecode(t *testing.T) {
|
|||||||
data := e.Bytes()
|
data := e.Bytes()
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
var typ2 GetStatsNodeUsersUsageResponse
|
var typ2 GetStatsNodesUsersUsageRequest
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
|
||||||
}
|
|
||||||
func TestGetStatsNodeUsersUsageResponseResponse_EncodeDecode(t *testing.T) {
|
|
||||||
var typ GetStatsNodeUsersUsageResponseResponse
|
|
||||||
typ.SetFake()
|
|
||||||
|
|
||||||
e := jx.Encoder{}
|
|
||||||
typ.Encode(&e)
|
|
||||||
data := e.Bytes()
|
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
|
||||||
|
|
||||||
var typ2 GetStatsNodeUsersUsageResponseResponse
|
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
|
||||||
}
|
|
||||||
func TestGetStatsNodeUsersUsageResponseResponseTopUsersItem_EncodeDecode(t *testing.T) {
|
|
||||||
var typ GetStatsNodeUsersUsageResponseResponseTopUsersItem
|
|
||||||
typ.SetFake()
|
|
||||||
|
|
||||||
e := jx.Encoder{}
|
|
||||||
typ.Encode(&e)
|
|
||||||
data := e.Bytes()
|
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
|
||||||
|
|
||||||
var typ2 GetStatsNodeUsersUsageResponseResponseTopUsersItem
|
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestGetStatsResponse_EncodeDecode(t *testing.T) {
|
func TestGetStatsResponse_EncodeDecode(t *testing.T) {
|
||||||
@@ -3059,6 +3107,30 @@ func TestGetUserSubscriptionRequestHistoryResponse_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 GetUserSubscriptionRequestHistoryResponse
|
var typ2 GetUserSubscriptionRequestHistoryResponse
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestGetUsersStreamResponse_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetUsersStreamResponse
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetUsersStreamResponse
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestGetUsersStreamResponseResponse_EncodeDecode(t *testing.T) {
|
||||||
|
var typ GetUsersStreamResponseResponse
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 GetUsersStreamResponseResponse
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestGithub_EncodeDecode(t *testing.T) {
|
func TestGithub_EncodeDecode(t *testing.T) {
|
||||||
var typ Github
|
var typ Github
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -3095,6 +3167,18 @@ func TestHostItem_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 HostItem
|
var typ2 HostItem
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestHostItemAlpn_EncodeDecode(t *testing.T) {
|
||||||
|
var typ HostItemAlpn
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 HostItemAlpn
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestHostItemExcludeFromSubscriptionTypesItem_EncodeDecode(t *testing.T) {
|
func TestHostItemExcludeFromSubscriptionTypesItem_EncodeDecode(t *testing.T) {
|
||||||
var typ HostItemExcludeFromSubscriptionTypesItem
|
var typ HostItemExcludeFromSubscriptionTypesItem
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -3107,6 +3191,18 @@ func TestHostItemExcludeFromSubscriptionTypesItem_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 HostItemExcludeFromSubscriptionTypesItem
|
var typ2 HostItemExcludeFromSubscriptionTypesItem
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestHostItemMihomoIpVersion_EncodeDecode(t *testing.T) {
|
||||||
|
var typ HostItemMihomoIpVersion
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 HostItemMihomoIpVersion
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestHostItemSecurityLayer_EncodeDecode(t *testing.T) {
|
func TestHostItemSecurityLayer_EncodeDecode(t *testing.T) {
|
||||||
var typ HostItemSecurityLayer
|
var typ HostItemSecurityLayer
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -3275,6 +3371,18 @@ func TestInfraProviderResponseResponse_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 InfraProviderResponseResponse
|
var typ2 InfraProviderResponseResponse
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestInfraProvidersDetail_EncodeDecode(t *testing.T) {
|
||||||
|
var typ InfraProvidersDetail
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 InfraProvidersDetail
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestInterfaceItem_EncodeDecode(t *testing.T) {
|
func TestInterfaceItem_EncodeDecode(t *testing.T) {
|
||||||
var typ InterfaceItem
|
var typ InterfaceItem
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -3491,6 +3599,18 @@ func TestNodePluginsResponseResponseResponse_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 NodePluginsResponseResponseResponse
|
var typ2 NodePluginsResponseResponseResponse
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestNodeRequestBodyRequest_EncodeDecode(t *testing.T) {
|
||||||
|
var typ NodeRequestBodyRequest
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 NodeRequestBodyRequest
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestNodeResponse_EncodeDecode(t *testing.T) {
|
func TestNodeResponse_EncodeDecode(t *testing.T) {
|
||||||
var typ NodeResponse
|
var typ NodeResponse
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -4115,18 +4235,6 @@ func TestResponseRulesVersion_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 ResponseRulesVersion
|
var typ2 ResponseRulesVersion
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestRestartAllNodesRequestBody_EncodeDecode(t *testing.T) {
|
|
||||||
var typ RestartAllNodesRequestBody
|
|
||||||
typ.SetFake()
|
|
||||||
|
|
||||||
e := jx.Encoder{}
|
|
||||||
typ.Encode(&e)
|
|
||||||
data := e.Bytes()
|
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
|
||||||
|
|
||||||
var typ2 RestartAllNodesRequestBody
|
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
|
||||||
}
|
|
||||||
func TestRevokeUserSubscriptionBody_EncodeDecode(t *testing.T) {
|
func TestRevokeUserSubscriptionBody_EncodeDecode(t *testing.T) {
|
||||||
var typ RevokeUserSubscriptionBody
|
var typ RevokeUserSubscriptionBody
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -4175,30 +4283,6 @@ func TestRuleResponseType_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 RuleResponseType
|
var typ2 RuleResponseType
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestSetInboundToManyHostsRequest_EncodeDecode(t *testing.T) {
|
|
||||||
var typ SetInboundToManyHostsRequest
|
|
||||||
typ.SetFake()
|
|
||||||
|
|
||||||
e := jx.Encoder{}
|
|
||||||
typ.Encode(&e)
|
|
||||||
data := e.Bytes()
|
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
|
||||||
|
|
||||||
var typ2 SetInboundToManyHostsRequest
|
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
|
||||||
}
|
|
||||||
func TestSetPortToManyHostsRequest_EncodeDecode(t *testing.T) {
|
|
||||||
var typ SetPortToManyHostsRequest
|
|
||||||
typ.SetFake()
|
|
||||||
|
|
||||||
e := jx.Encoder{}
|
|
||||||
typ.Encode(&e)
|
|
||||||
data := e.Bytes()
|
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
|
||||||
|
|
||||||
var typ2 SetPortToManyHostsRequest
|
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
|
||||||
}
|
|
||||||
func TestSettingsResponse_EncodeDecode(t *testing.T) {
|
func TestSettingsResponse_EncodeDecode(t *testing.T) {
|
||||||
var typ SettingsResponse
|
var typ SettingsResponse
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -4295,6 +4379,42 @@ func TestStat_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 Stat
|
var typ2 Stat
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestStatsNodeUsersUsageResponseResponse_EncodeDecode(t *testing.T) {
|
||||||
|
var typ StatsNodeUsersUsageResponseResponse
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 StatsNodeUsersUsageResponseResponse
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestStatsNodeUsersUsageResponseResponseResponse_EncodeDecode(t *testing.T) {
|
||||||
|
var typ StatsNodeUsersUsageResponseResponseResponse
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 StatsNodeUsersUsageResponseResponseResponse
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestStatsNodeUsersUsageResponseResponseResponseTopUsersItem_EncodeDecode(t *testing.T) {
|
||||||
|
var typ StatsNodeUsersUsageResponseResponseResponseTopUsersItem
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 StatsNodeUsersUsageResponseResponseResponseTopUsersItem
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestStatsUserUsageResponseResponse_EncodeDecode(t *testing.T) {
|
func TestStatsUserUsageResponseResponse_EncodeDecode(t *testing.T) {
|
||||||
var typ StatsUserUsageResponseResponse
|
var typ StatsUserUsageResponseResponse
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
@@ -4781,8 +4901,8 @@ func TestUpdateHostRequestExcludeFromSubscriptionTypesItem_EncodeDecode(t *testi
|
|||||||
var typ2 UpdateHostRequestExcludeFromSubscriptionTypesItem
|
var typ2 UpdateHostRequestExcludeFromSubscriptionTypesItem
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestUpdateHostRequestFingerprint_EncodeDecode(t *testing.T) {
|
func TestUpdateHostRequestMihomoIpVersion_EncodeDecode(t *testing.T) {
|
||||||
var typ UpdateHostRequestFingerprint
|
var typ UpdateHostRequestMihomoIpVersion
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
|
|
||||||
e := jx.Encoder{}
|
e := jx.Encoder{}
|
||||||
@@ -4790,7 +4910,7 @@ func TestUpdateHostRequestFingerprint_EncodeDecode(t *testing.T) {
|
|||||||
data := e.Bytes()
|
data := e.Bytes()
|
||||||
require.True(t, std.Valid(data), "Encoded: %s", data)
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
var typ2 UpdateHostRequestFingerprint
|
var typ2 UpdateHostRequestMihomoIpVersion
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
func TestUpdateHostRequestSecurityLayer_EncodeDecode(t *testing.T) {
|
func TestUpdateHostRequestSecurityLayer_EncodeDecode(t *testing.T) {
|
||||||
@@ -4841,6 +4961,66 @@ func TestUpdateInternalSquadRequest_EncodeDecode(t *testing.T) {
|
|||||||
var typ2 UpdateInternalSquadRequest
|
var typ2 UpdateInternalSquadRequest
|
||||||
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
}
|
}
|
||||||
|
func TestUpdateManyHostsRequest_EncodeDecode(t *testing.T) {
|
||||||
|
var typ UpdateManyHostsRequest
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 UpdateManyHostsRequest
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestUpdateManyHostsRequestAlpn_EncodeDecode(t *testing.T) {
|
||||||
|
var typ UpdateManyHostsRequestAlpn
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 UpdateManyHostsRequestAlpn
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestUpdateManyHostsRequestExcludeFromSubscriptionTypesItem_EncodeDecode(t *testing.T) {
|
||||||
|
var typ UpdateManyHostsRequestExcludeFromSubscriptionTypesItem
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 UpdateManyHostsRequestExcludeFromSubscriptionTypesItem
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestUpdateManyHostsRequestMihomoIpVersion_EncodeDecode(t *testing.T) {
|
||||||
|
var typ UpdateManyHostsRequestMihomoIpVersion
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 UpdateManyHostsRequestMihomoIpVersion
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
|
func TestUpdateManyHostsRequestSecurityLayer_EncodeDecode(t *testing.T) {
|
||||||
|
var typ UpdateManyHostsRequestSecurityLayer
|
||||||
|
typ.SetFake()
|
||||||
|
|
||||||
|
e := jx.Encoder{}
|
||||||
|
typ.Encode(&e)
|
||||||
|
data := e.Bytes()
|
||||||
|
require.True(t, std.Valid(data), "Encoded: %s", data)
|
||||||
|
|
||||||
|
var typ2 UpdateManyHostsRequestSecurityLayer
|
||||||
|
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
|
||||||
|
}
|
||||||
func TestUpdateNodePluginRequest_EncodeDecode(t *testing.T) {
|
func TestUpdateNodePluginRequest_EncodeDecode(t *testing.T) {
|
||||||
var typ UpdateNodePluginRequest
|
var typ UpdateNodePluginRequest
|
||||||
typ.SetFake()
|
typ.SetFake()
|
||||||
|
|||||||
+1546
-295
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,40 @@
|
|||||||
|
module git.voidsmiths.dev/shiranui/remnawave-api-go/v2
|
||||||
|
|
||||||
|
go 1.25
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/go-faster/errors v0.7.1
|
||||||
|
github.com/go-faster/jx v1.2.0
|
||||||
|
github.com/google/uuid v1.6.0
|
||||||
|
github.com/ogen-go/ogen v1.19.0
|
||||||
|
github.com/stretchr/testify v1.11.1
|
||||||
|
go.opentelemetry.io/otel v1.40.0
|
||||||
|
go.opentelemetry.io/otel/metric v1.40.0
|
||||||
|
go.opentelemetry.io/otel/trace v1.40.0
|
||||||
|
)
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
||||||
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||||
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
||||||
|
github.com/fatih/color v1.18.0 // indirect
|
||||||
|
github.com/ghodss/yaml v1.0.0 // indirect
|
||||||
|
github.com/go-faster/yaml v0.4.6 // indirect
|
||||||
|
github.com/go-logr/logr v1.4.3 // indirect
|
||||||
|
github.com/go-logr/stdr v1.2.2 // indirect
|
||||||
|
github.com/mattn/go-colorable v0.1.14 // indirect
|
||||||
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||||
|
github.com/segmentio/asm v1.2.1 // indirect
|
||||||
|
github.com/shopspring/decimal v1.4.0 // indirect
|
||||||
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
||||||
|
go.uber.org/multierr v1.11.0 // indirect
|
||||||
|
go.uber.org/zap v1.27.1 // indirect
|
||||||
|
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect
|
||||||
|
golang.org/x/net v0.50.0 // indirect
|
||||||
|
golang.org/x/sync v0.19.0 // indirect
|
||||||
|
golang.org/x/sys v0.41.0 // indirect
|
||||||
|
golang.org/x/text v0.34.0 // indirect
|
||||||
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
|
)
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
|
||||||
|
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||||
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
github.com/dlclark/regexp2 v1.11.5 h1:Q/sSnsKerHeCkc/jSTNq1oCm7KiVgUMZRDUoRu0JQZQ=
|
||||||
|
github.com/dlclark/regexp2 v1.11.5/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
|
||||||
|
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
|
||||||
|
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
|
||||||
|
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
|
||||||
|
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||||
|
github.com/go-faster/errors v0.7.1 h1:MkJTnDoEdi9pDabt1dpWf7AA8/BaSYZqibYyhZ20AYg=
|
||||||
|
github.com/go-faster/errors v0.7.1/go.mod h1:5ySTjWFiphBs07IKuiL69nxdfd5+fzh1u7FPGZP2quo=
|
||||||
|
github.com/go-faster/jx v1.2.0 h1:T2YHJPrFaYu21fJtUxC9GzmluKu8rVIFDwwGBKTDseI=
|
||||||
|
github.com/go-faster/jx v1.2.0/go.mod h1:UWLOVDmMG597a5tBFPLIWJdUxz5/2emOpfsj9Neg0PE=
|
||||||
|
github.com/go-faster/yaml v0.4.6 h1:lOK/EhI04gCpPgPhgt0bChS6bvw7G3WwI8xxVe0sw9I=
|
||||||
|
github.com/go-faster/yaml v0.4.6/go.mod h1:390dRIvV4zbnO7qC9FGo6YYutc+wyyUSHBgbXL52eXk=
|
||||||
|
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||||
|
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
|
||||||
|
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||||
|
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||||
|
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||||
|
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
||||||
|
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
||||||
|
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||||
|
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
|
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||||
|
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||||
|
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||||
|
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||||
|
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
|
||||||
|
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
|
||||||
|
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||||
|
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||||
|
github.com/ogen-go/ogen v1.19.0 h1:YvdNpeQJ8A8dLLpS6Vs4WxXL53BT6tBPxH0VSjfALhA=
|
||||||
|
github.com/ogen-go/ogen v1.19.0/go.mod h1:DeShwO+TEpLYXNCuZliSAedphphXsJaTGGbmSomWUjE=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
|
||||||
|
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
|
||||||
|
github.com/segmentio/asm v1.2.1 h1:DTNbBqs57ioxAD4PrArqftgypG4/qNpXoJx8TVXxPR0=
|
||||||
|
github.com/segmentio/asm v1.2.1/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs=
|
||||||
|
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
|
||||||
|
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
|
||||||
|
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
||||||
|
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||||
|
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
|
||||||
|
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
|
||||||
|
go.opentelemetry.io/otel v1.40.0 h1:oA5YeOcpRTXq6NN7frwmwFR0Cn3RhTVZvXsP4duvCms=
|
||||||
|
go.opentelemetry.io/otel v1.40.0/go.mod h1:IMb+uXZUKkMXdPddhwAHm6UfOwJyh4ct1ybIlV14J0g=
|
||||||
|
go.opentelemetry.io/otel/metric v1.40.0 h1:rcZe317KPftE2rstWIBitCdVp89A2HqjkxR3c11+p9g=
|
||||||
|
go.opentelemetry.io/otel/metric v1.40.0/go.mod h1:ib/crwQH7N3r5kfiBZQbwrTge743UDc7DTFVZrrXnqc=
|
||||||
|
go.opentelemetry.io/otel/trace v1.40.0 h1:WA4etStDttCSYuhwvEa8OP8I5EWu24lkOzp+ZYblVjw=
|
||||||
|
go.opentelemetry.io/otel/trace v1.40.0/go.mod h1:zeAhriXecNGP/s2SEG3+Y8X9ujcJOTqQ5RgdEJcawiA=
|
||||||
|
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
|
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||||
|
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||||
|
go.uber.org/zap v1.27.1 h1:08RqriUEv8+ArZRYSTXy1LeBScaMpVSTBhCeaZYfMYc=
|
||||||
|
go.uber.org/zap v1.27.1/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
|
||||||
|
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY=
|
||||||
|
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70=
|
||||||
|
golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60=
|
||||||
|
golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM=
|
||||||
|
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
|
||||||
|
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||||
|
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
|
||||||
|
golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||||
|
golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=
|
||||||
|
golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||||
|
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||||
|
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||||
|
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||||
|
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
Binary file not shown.
+20175
File diff suppressed because it is too large
Load Diff
+48947
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user