1 Commits
Author SHA1 Message Date
shiranui e2f5e9fe02 chore: generate sdk for v2.7.4 panel 2026-06-30 20:26:27 +03:00
23 changed files with 3741 additions and 79857 deletions
+265
View File
@@ -0,0 +1,265 @@
### 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
+1 -1
View File
@@ -3,7 +3,7 @@ parser:
allow_remote: true
generator:
ignore_not_implemented: ["object defaults", "array defaults"]
ignore_not_implemented: ["object defaults"]
features:
disable_all: true
enable:
+4 -5
View File
@@ -6,8 +6,7 @@ A Go SDK client for interacting with the **[Remnawave API](https://remna.st)**.
| API Version | SDK Version | Install |
|-------------|-------------|---------|
| 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` |
| 2.7.4 | v2.7.4 | `go get github.com/shiranuiyami/remnawave-api-go/v2@v2.7.4` |
Generated with [**ogen**](https://github.com/ogen-go/ogen) v1.19.0:
* Zero-reflection JSON decoder for high throughput
@@ -22,7 +21,7 @@ Generated with [**ogen**](https://github.com/ogen-go/ogen) v1.19.0:
## Installation
```bash
go get github.com/shiranuiyami/remnawave-api-go/v2@v2.8.0
go get github.com/shiranuiyami/remnawave-api-go/v2@v2.7.4
```
## Quick Start
@@ -33,7 +32,7 @@ package main
import (
"context"
"fmt"
remapi "git.voidsmiths.dev/shiranui/remnawave-api-go/v2/api"
remapi "github.com/shiranuiyami/remnawave-api-go/v2/api"
)
func main() {
@@ -255,7 +254,7 @@ baseClient := client.Client()
| Requirement | Version |
|-------------|---------|
| Go | 1.21+ |
| Remnawave API | 2.8.+ |
| Remnawave API | 2.7.+ |
## License
+14 -22
View File
@@ -259,11 +259,6 @@ func (sc *ApiTokensClient) FindAll(ctx context.Context, options ...RequestOption
return sc.client.ApiTokensFindAll(ctx, options...)
}
// GetScopes calls ApiTokens_getScopes.
func (sc *ApiTokensClient) GetScopes(ctx context.Context, options ...RequestOption) (ApiTokensGetScopesRes, error) {
return sc.client.ApiTokensGetScopes(ctx, options...)
}
// AuthClient provides Auth operations.
type AuthClient struct {
client *Client
@@ -329,11 +324,6 @@ func (sc *BandwidthStatsNodesClient) GetStatsNodeUsersUsage(ctx context.Context,
return sc.client.BandwidthStatsNodesGetStatsNodeUsersUsage(ctx, params, options...)
}
// GetStatsNodesUsersUsage calls BandwidthStatsNodes_getStatsNodesUsersUsage.
func (sc *BandwidthStatsNodesClient) GetStatsNodesUsersUsage(ctx context.Context, request *GetStatsNodesUsersUsageRequest, params BandwidthStatsNodesGetStatsNodesUsersUsageParams, options ...RequestOption) (BandwidthStatsNodesGetStatsNodesUsersUsageRes, error) {
return sc.client.BandwidthStatsNodesGetStatsNodesUsersUsage(ctx, request, params, options...)
}
// BandwidthStatsUsersClient provides BandwidthStatsUsers operations.
type BandwidthStatsUsersClient struct {
client *Client
@@ -549,8 +539,13 @@ func (sc *HostsBulkActionsClient) EnableHosts(ctx context.Context, request *Bulk
return sc.client.HostsBulkActionsEnableHosts(ctx, request, options...)
}
// SetInboundToHosts calls HostsBulkActions_setInboundToHosts.
func (sc *HostsBulkActionsClient) SetInboundToHosts(ctx context.Context, request *SetInboundToManyHostsRequest, options ...RequestOption) (HostsBulkActionsSetInboundToHostsRes, error) {
return sc.client.HostsBulkActionsSetInboundToHosts(ctx, request, options...)
}
// SetPortToHosts calls HostsBulkActions_setPortToHosts.
func (sc *HostsBulkActionsClient) SetPortToHosts(ctx context.Context, request *UpdateManyHostsRequest, options ...RequestOption) (HostsBulkActionsSetPortToHostsRes, error) {
func (sc *HostsBulkActionsClient) SetPortToHosts(ctx context.Context, request *SetPortToManyHostsRequest, options ...RequestOption) (HostsBulkActionsSetPortToHostsRes, error) {
return sc.client.HostsBulkActionsSetPortToHosts(ctx, request, options...)
}
@@ -981,13 +976,13 @@ func (sc *NodesClient) ResetNodeTraffic(ctx context.Context, uuid string, option
}
// RestartAllNodes calls Nodes_restartAllNodes.
func (sc *NodesClient) RestartAllNodes(ctx context.Context, request *NodeRequestBodyRequest, options ...RequestOption) (NodesRestartAllNodesRes, error) {
func (sc *NodesClient) RestartAllNodes(ctx context.Context, request *RestartAllNodesRequestBody, options ...RequestOption) (NodesRestartAllNodesRes, error) {
return sc.client.NodesRestartAllNodes(ctx, request, options...)
}
// RestartNode calls Nodes_restartNode.
func (sc *NodesClient) RestartNode(ctx context.Context, request *NodeRequestBodyRequest, uuid string, options ...RequestOption) (NodesRestartNodeRes, error) {
return sc.client.NodesRestartNode(ctx, request, NodesRestartNodeParams{
func (sc *NodesClient) RestartNode(ctx context.Context, uuid string, options ...RequestOption) (NodesRestartNodeRes, error) {
return sc.client.NodesRestartNode(ctx, NodesRestartNodeParams{
UUID: uuid,
}, options...)
}
@@ -1315,6 +1310,11 @@ func (sc *SystemClient) DebugSrrMatcher(ctx context.Context, request *DebugSrrMa
return sc.client.SystemDebugSrrMatcher(ctx, request, options...)
}
// EncryptHappCryptoLink calls System_encryptHappCryptoLink.
func (sc *SystemClient) EncryptHappCryptoLink(ctx context.Context, request *EncryptHappCryptoLinkRequest, options ...RequestOption) (SystemEncryptHappCryptoLinkRes, error) {
return sc.client.SystemEncryptHappCryptoLink(ctx, request, options...)
}
// GetBandwidthStats calls System_getBandwidthStats.
func (sc *SystemClient) GetBandwidthStats(ctx context.Context, options ...RequestOption) (SystemGetBandwidthStatsRes, error) {
return sc.client.SystemGetBandwidthStats(ctx, options...)
@@ -1518,14 +1518,6 @@ func (sc *UsersClient) GetUsersByTag(ctx context.Context, tag string, options ..
}, options...)
}
// GetUsersStream calls Users_getUsersStream.
func (sc *UsersClient) GetUsersStream(ctx context.Context, size int, cursor string, options ...RequestOption) (UsersGetUsersStreamRes, error) {
return sc.client.UsersGetUsersStream(ctx, UsersGetUsersStreamParams{
Size: NewOptInt(size),
Cursor: NewOptString(cursor),
}, options...)
}
// ResetUserTraffic calls Users_resetUserTraffic.
func (sc *UsersClient) ResetUserTraffic(ctx context.Context, uuid string, options ...RequestOption) (UsersResetUserTrafficRes, error) {
return sc.client.UsersResetUserTraffic(ctx, UsersResetUserTrafficParams{
-1
View File
@@ -22,7 +22,6 @@ var regexMap = map[string]ogenregex.Regexp{
"^[A-Z0-9_]+$": ogenregex.MustCompile("^[A-Z0-9_]+$"),
"^[A-Za-z0-9_\\s-]+$": ogenregex.MustCompile("^[A-Za-z0-9_\\s-]+$"),
"^[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 (
// Allocate option closure once.
+311 -553
View File
File diff suppressed because it is too large Load Diff
+13 -17
View File
@@ -48,6 +48,10 @@ func (s *CreateHostRequest) setDefaults() {
val := bool(false)
s.KeepSniBlank.SetTo(val)
}
{
val := bool(false)
s.AllowInsecure.SetTo(val)
}
{
val := bool(false)
s.ShuffleHost.SetTo(val)
@@ -84,6 +88,10 @@ func (s *CreateUserRequest) setDefaults() {
// setDefaults set default value of fields.
func (s *HostItem) setDefaults() {
{
val := bool(false)
s.IsDisabled.SetTo(val)
}
{
val := HostItemSecurityLayer("DEFAULT")
s.SecurityLayer.SetTo(val)
@@ -100,6 +108,10 @@ func (s *HostItem) setDefaults() {
val := bool(false)
s.KeepSniBlank.SetTo(val)
}
{
val := bool(false)
s.AllowInsecure.SetTo(val)
}
}
// setDefaults set default value of fields.
@@ -110,22 +122,6 @@ 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.
func (s *UpdateUserRequest) setDefaults() {
{
@@ -141,7 +137,7 @@ func (s *UserItemInfo) setDefaults() {
s.Status.SetTo(val)
}
{
val := float64(0)
val := int(0)
s.TrafficLimitBytes.SetTo(val)
}
{
+205 -841
View File
File diff suppressed because it is too large Load Diff
+8 -12
View File
@@ -13,10 +13,6 @@ type ApiTokensFindAllRes interface {
apiTokensFindAllRes()
}
type ApiTokensGetScopesRes interface {
apiTokensGetScopesRes()
}
type AuthGetStatusRes interface {
authGetStatusRes()
}
@@ -53,10 +49,6 @@ type BandwidthStatsNodesGetStatsNodeUsersUsageRes interface {
bandwidthStatsNodesGetStatsNodeUsersUsageRes()
}
type BandwidthStatsNodesGetStatsNodesUsersUsageRes interface {
bandwidthStatsNodesGetStatsNodesUsersUsageRes()
}
type BandwidthStatsUsersGetStatsNodesUsageRes interface {
bandwidthStatsUsersGetStatsNodesUsageRes()
}
@@ -145,6 +137,10 @@ type HostsBulkActionsEnableHostsRes interface {
hostsBulkActionsEnableHostsRes()
}
type HostsBulkActionsSetInboundToHostsRes interface {
hostsBulkActionsSetInboundToHostsRes()
}
type HostsBulkActionsSetPortToHostsRes interface {
hostsBulkActionsSetPortToHostsRes()
}
@@ -565,6 +561,10 @@ type SystemDebugSrrMatcherRes interface {
systemDebugSrrMatcherRes()
}
type SystemEncryptHappCryptoLinkRes interface {
systemEncryptHappCryptoLinkRes()
}
type SystemGetBandwidthStatsRes interface {
systemGetBandwidthStatsRes()
}
@@ -717,10 +717,6 @@ type UsersGetUsersByTagRes interface {
usersGetUsersByTagRes()
}
type UsersGetUsersStreamRes interface {
usersGetUsersStreamRes()
}
type UsersResetUserTrafficRes interface {
usersResetUserTrafficRes()
}
+1490 -4314
View File
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -9,7 +9,6 @@ const (
ApiTokensCreateOperation OperationName = "ApiTokensCreate"
ApiTokensDeleteOperation OperationName = "ApiTokensDelete"
ApiTokensFindAllOperation OperationName = "ApiTokensFindAll"
ApiTokensGetScopesOperation OperationName = "ApiTokensGetScopes"
AuthGetStatusOperation OperationName = "AuthGetStatus"
AuthLoginOperation OperationName = "AuthLogin"
AuthOauth2AuthorizeOperation OperationName = "AuthOauth2Authorize"
@@ -19,7 +18,6 @@ const (
AuthRegisterOperation OperationName = "AuthRegister"
BandwidthStatsNodesGetNodeUserUsageOperation OperationName = "BandwidthStatsNodesGetNodeUserUsage"
BandwidthStatsNodesGetStatsNodeUsersUsageOperation OperationName = "BandwidthStatsNodesGetStatsNodeUsersUsage"
BandwidthStatsNodesGetStatsNodesUsersUsageOperation OperationName = "BandwidthStatsNodesGetStatsNodesUsersUsage"
BandwidthStatsUsersGetStatsNodesUsageOperation OperationName = "BandwidthStatsUsersGetStatsNodesUsage"
BandwidthStatsUsersGetUserUsageByRangeOperation OperationName = "BandwidthStatsUsersGetUserUsageByRange"
ConfigProfileCreateConfigProfileOperation OperationName = "ConfigProfileCreateConfigProfile"
@@ -42,6 +40,7 @@ const (
HostsBulkActionsDeleteHostsOperation OperationName = "HostsBulkActionsDeleteHosts"
HostsBulkActionsDisableHostsOperation OperationName = "HostsBulkActionsDisableHosts"
HostsBulkActionsEnableHostsOperation OperationName = "HostsBulkActionsEnableHosts"
HostsBulkActionsSetInboundToHostsOperation OperationName = "HostsBulkActionsSetInboundToHosts"
HostsBulkActionsSetPortToHostsOperation OperationName = "HostsBulkActionsSetPortToHosts"
HostsCreateHostOperation OperationName = "HostsCreateHost"
HostsDeleteHostOperation OperationName = "HostsDeleteHost"
@@ -149,6 +148,7 @@ const (
SubscriptionsGetSubscriptionByUsernameOperation OperationName = "SubscriptionsGetSubscriptionByUsername"
SubscriptionsGetSubscriptionByUuidOperation OperationName = "SubscriptionsGetSubscriptionByUuid"
SystemDebugSrrMatcherOperation OperationName = "SystemDebugSrrMatcher"
SystemEncryptHappCryptoLinkOperation OperationName = "SystemEncryptHappCryptoLink"
SystemGetBandwidthStatsOperation OperationName = "SystemGetBandwidthStats"
SystemGetMetadataOperation OperationName = "SystemGetMetadata"
SystemGetNodesMetricsOperation OperationName = "SystemGetNodesMetrics"
@@ -187,7 +187,6 @@ const (
UsersGetUserSubscriptionRequestHistoryOperation OperationName = "UsersGetUserSubscriptionRequestHistory"
UsersGetUsersByEmailOperation OperationName = "UsersGetUsersByEmail"
UsersGetUsersByTagOperation OperationName = "UsersGetUsersByTag"
UsersGetUsersStreamOperation OperationName = "UsersGetUsersStream"
UsersResetUserTrafficOperation OperationName = "UsersResetUserTraffic"
UsersResolveUserOperation OperationName = "UsersResolveUser"
UsersRevokeUserSubscriptionOperation OperationName = "UsersRevokeUserSubscription"
-18
View File
@@ -34,16 +34,6 @@ type BandwidthStatsNodesGetStatsNodeUsersUsageParams struct {
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.
type BandwidthStatsUsersGetStatsNodesUsageParams struct {
// Limit of top nodes to return.
@@ -478,14 +468,6 @@ type UsersGetUsersByTagParams struct {
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.
type UsersResetUserTrafficParams struct {
// UUID of the user.
+30 -30
View File
@@ -94,20 +94,6 @@ func encodeAuthRegisterRequest(
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(
req *CreateConfigProfileRequest,
r *http.Request,
@@ -234,8 +220,22 @@ func encodeHostsBulkActionsEnableHostsRequest(
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(
req *UpdateManyHostsRequest,
req *SetPortToManyHostsRequest,
r *http.Request,
) error {
const contentType = "application/json"
@@ -627,21 +627,7 @@ func encodeNodesReorderNodesRequest(
}
func encodeNodesRestartAllNodesRequest(
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,
req *RestartAllNodesRequestBody,
r *http.Request,
) error {
const contentType = "application/json"
@@ -906,6 +892,20 @@ func encodeSystemDebugSrrMatcherRequest(
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(
req *BulkAllExtendExpirationDateRequest,
r *http.Request,
+250 -397
View File
@@ -47,15 +47,6 @@ func decodeApiTokensCreateResponse(resp *http.Response) (res ApiTokensCreateRes,
}
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)
@@ -392,135 +383,6 @@ func decodeApiTokensFindAllResponse(resp *http.Response) (res ApiTokensFindAllRe
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) {
switch resp.StatusCode {
case 400:
@@ -1643,136 +1505,7 @@ func decodeBandwidthStatsNodesGetStatsNodeUsersUsageResponse(resp *http.Response
}
d := jx.DecodeBytes(buf)
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
var response GetStatsNodeUsersUsageResponse
if err := func() error {
if err := response.Decode(d); err != nil {
return err
@@ -5139,6 +4872,135 @@ func decodeHostsBulkActionsEnableHostsResponse(resp *http.Response) (res HostsBu
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) {
switch resp.StatusCode {
case 200:
@@ -19557,6 +19419,126 @@ func decodeSystemDebugSrrMatcherResponse(resp *http.Response) (res SystemDebugSr
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) {
switch resp.StatusCode {
case 200:
@@ -24801,135 +24783,6 @@ func decodeUsersGetUsersByTagResponse(resp *http.Response) (res UsersGetUsersByT
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) {
switch resp.StatusCode {
case 200:
+750 -2574
View File
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -21,10 +21,8 @@ var operationRolesAuthorization = map[string][]string{
ApiTokensCreateOperation: []string{},
ApiTokensDeleteOperation: []string{},
ApiTokensFindAllOperation: []string{},
ApiTokensGetScopesOperation: []string{},
BandwidthStatsNodesGetNodeUserUsageOperation: []string{},
BandwidthStatsNodesGetStatsNodeUsersUsageOperation: []string{},
BandwidthStatsNodesGetStatsNodesUsersUsageOperation: []string{},
BandwidthStatsUsersGetStatsNodesUsageOperation: []string{},
BandwidthStatsUsersGetUserUsageByRangeOperation: []string{},
ConfigProfileCreateConfigProfileOperation: []string{},
@@ -47,6 +45,7 @@ var operationRolesAuthorization = map[string][]string{
HostsBulkActionsDeleteHostsOperation: []string{},
HostsBulkActionsDisableHostsOperation: []string{},
HostsBulkActionsEnableHostsOperation: []string{},
HostsBulkActionsSetInboundToHostsOperation: []string{},
HostsBulkActionsSetPortToHostsOperation: []string{},
HostsCreateHostOperation: []string{},
HostsDeleteHostOperation: []string{},
@@ -151,6 +150,7 @@ var operationRolesAuthorization = map[string][]string{
SubscriptionsGetSubscriptionByUsernameOperation: []string{},
SubscriptionsGetSubscriptionByUuidOperation: []string{},
SystemDebugSrrMatcherOperation: []string{},
SystemEncryptHappCryptoLinkOperation: []string{},
SystemGetBandwidthStatsOperation: []string{},
SystemGetMetadataOperation: []string{},
SystemGetNodesMetricsOperation: []string{},
@@ -189,7 +189,6 @@ var operationRolesAuthorization = map[string][]string{
UsersGetUserSubscriptionRequestHistoryOperation: []string{},
UsersGetUsersByEmailOperation: []string{},
UsersGetUsersByTagOperation: []string{},
UsersGetUsersStreamOperation: []string{},
UsersResetUserTrafficOperation: []string{},
UsersResolveUserOperation: []string{},
UsersRevokeUserSubscriptionOperation: []string{},
+99 -279
View File
@@ -695,8 +695,8 @@ func TestCreateHostRequestExcludeFromSubscriptionTypesItem_EncodeDecode(t *testi
var typ2 CreateHostRequestExcludeFromSubscriptionTypesItem
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
}
func TestCreateHostRequestMihomoIpVersion_EncodeDecode(t *testing.T) {
var typ CreateHostRequestMihomoIpVersion
func TestCreateHostRequestFingerprint_EncodeDecode(t *testing.T) {
var typ CreateHostRequestFingerprint
typ.SetFake()
e := jx.Encoder{}
@@ -704,7 +704,7 @@ func TestCreateHostRequestMihomoIpVersion_EncodeDecode(t *testing.T) {
data := e.Bytes()
require.True(t, std.Valid(data), "Encoded: %s", data)
var typ2 CreateHostRequestMihomoIpVersion
var typ2 CreateHostRequestFingerprint
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
}
func TestCreateHostRequestSecurityLayer_EncodeDecode(t *testing.T) {
@@ -1227,8 +1227,8 @@ func TestDropConnectionsRequestTargetNodes1Target_EncodeDecode(t *testing.T) {
var typ2 DropConnectionsRequestTargetNodes1Target
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
}
func TestEncryptionItem_EncodeDecode(t *testing.T) {
var typ EncryptionItem
func TestEncryptHappCryptoLinkRequest_EncodeDecode(t *testing.T) {
var typ EncryptHappCryptoLinkRequest
typ.SetFake()
e := jx.Encoder{}
@@ -1236,11 +1236,11 @@ func TestEncryptionItem_EncodeDecode(t *testing.T) {
data := e.Bytes()
require.True(t, std.Valid(data), "Encoded: %s", data)
var typ2 EncryptionItem
var typ2 EncryptHappCryptoLinkRequest
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
}
func TestEncryptionItemMethod_EncodeDecode(t *testing.T) {
var typ EncryptionItemMethod
func TestEncryptHappCryptoLinkResponse_EncodeDecode(t *testing.T) {
var typ EncryptHappCryptoLinkResponse
typ.SetFake()
e := jx.Encoder{}
@@ -1248,7 +1248,19 @@ func TestEncryptionItemMethod_EncodeDecode(t *testing.T) {
data := e.Bytes()
require.True(t, std.Valid(data), "Encoded: %s", data)
var typ2 EncryptionItemMethod
var typ2 EncryptHappCryptoLinkResponse
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)))
}
func TestEventResponse_EncodeDecode(t *testing.T) {
@@ -1481,6 +1493,18 @@ func TestFindAllApiTokensResponseResponse_EncodeDecode(t *testing.T) {
var typ2 FindAllApiTokensResponseResponse
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) {
var typ FindAllApiTokensResponseResponseDocs
typ.SetFake()
@@ -1493,18 +1517,6 @@ func TestFindAllApiTokensResponseResponseDocs_EncodeDecode(t *testing.T) {
var typ2 FindAllApiTokensResponseResponseDocs
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) {
var typ ForbiddenError
typ.SetFake()
@@ -1625,66 +1637,6 @@ func TestGetAllUsersResponseResponse_EncodeDecode(t *testing.T) {
var typ2 GetAllUsersResponseResponse
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) {
var typ GetBandwidthStatsResponse
typ.SetFake()
@@ -2093,18 +2045,6 @@ func TestGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo_EncodeDe
var typ2 GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo
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) {
var typ GetRawSubscriptionByShortUuidResponseResponseHeaders
typ = make(GetRawSubscriptionByShortUuidResponseResponseHeaders)
@@ -2143,18 +2083,6 @@ func TestGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemCl
var typ2 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides
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) {
var typ GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata
typ.SetFake()
@@ -2681,8 +2609,8 @@ func TestGetRemnawaveHealthResponseResponseRuntimeMetricsItem_EncodeDecode(t *te
var typ2 GetRemnawaveHealthResponseResponseRuntimeMetricsItem
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
}
func TestGetStatsNodesUsersUsageRequest_EncodeDecode(t *testing.T) {
var typ GetStatsNodesUsersUsageRequest
func TestGetStatsNodeUsersUsageResponse_EncodeDecode(t *testing.T) {
var typ GetStatsNodeUsersUsageResponse
typ.SetFake()
e := jx.Encoder{}
@@ -2690,7 +2618,31 @@ func TestGetStatsNodesUsersUsageRequest_EncodeDecode(t *testing.T) {
data := e.Bytes()
require.True(t, std.Valid(data), "Encoded: %s", data)
var typ2 GetStatsNodesUsersUsageRequest
var typ2 GetStatsNodeUsersUsageResponse
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)))
}
func TestGetStatsResponse_EncodeDecode(t *testing.T) {
@@ -3107,30 +3059,6 @@ func TestGetUserSubscriptionRequestHistoryResponse_EncodeDecode(t *testing.T) {
var typ2 GetUserSubscriptionRequestHistoryResponse
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) {
var typ Github
typ.SetFake()
@@ -3167,18 +3095,6 @@ func TestHostItem_EncodeDecode(t *testing.T) {
var typ2 HostItem
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) {
var typ HostItemExcludeFromSubscriptionTypesItem
typ.SetFake()
@@ -3191,18 +3107,6 @@ func TestHostItemExcludeFromSubscriptionTypesItem_EncodeDecode(t *testing.T) {
var typ2 HostItemExcludeFromSubscriptionTypesItem
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) {
var typ HostItemSecurityLayer
typ.SetFake()
@@ -3371,18 +3275,6 @@ func TestInfraProviderResponseResponse_EncodeDecode(t *testing.T) {
var typ2 InfraProviderResponseResponse
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) {
var typ InterfaceItem
typ.SetFake()
@@ -3599,18 +3491,6 @@ func TestNodePluginsResponseResponseResponse_EncodeDecode(t *testing.T) {
var typ2 NodePluginsResponseResponseResponse
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) {
var typ NodeResponse
typ.SetFake()
@@ -4235,6 +4115,18 @@ func TestResponseRulesVersion_EncodeDecode(t *testing.T) {
var typ2 ResponseRulesVersion
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) {
var typ RevokeUserSubscriptionBody
typ.SetFake()
@@ -4283,6 +4175,30 @@ func TestRuleResponseType_EncodeDecode(t *testing.T) {
var typ2 RuleResponseType
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) {
var typ SettingsResponse
typ.SetFake()
@@ -4379,42 +4295,6 @@ func TestStat_EncodeDecode(t *testing.T) {
var typ2 Stat
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) {
var typ StatsUserUsageResponseResponse
typ.SetFake()
@@ -4901,8 +4781,8 @@ func TestUpdateHostRequestExcludeFromSubscriptionTypesItem_EncodeDecode(t *testi
var typ2 UpdateHostRequestExcludeFromSubscriptionTypesItem
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
}
func TestUpdateHostRequestMihomoIpVersion_EncodeDecode(t *testing.T) {
var typ UpdateHostRequestMihomoIpVersion
func TestUpdateHostRequestFingerprint_EncodeDecode(t *testing.T) {
var typ UpdateHostRequestFingerprint
typ.SetFake()
e := jx.Encoder{}
@@ -4910,7 +4790,7 @@ func TestUpdateHostRequestMihomoIpVersion_EncodeDecode(t *testing.T) {
data := e.Bytes()
require.True(t, std.Valid(data), "Encoded: %s", data)
var typ2 UpdateHostRequestMihomoIpVersion
var typ2 UpdateHostRequestFingerprint
require.NoError(t, typ2.Decode(jx.DecodeBytes(data)))
}
func TestUpdateHostRequestSecurityLayer_EncodeDecode(t *testing.T) {
@@ -4961,66 +4841,6 @@ func TestUpdateInternalSquadRequest_EncodeDecode(t *testing.T) {
var typ2 UpdateInternalSquadRequest
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) {
var typ UpdateNodePluginRequest
typ.SetFake()
+297 -1548
View File
File diff suppressed because it is too large Load Diff
-40
View File
@@ -1,40 +0,0 @@
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
)
-77
View File
@@ -1,77 +0,0 @@
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=
-20175
View File
File diff suppressed because it is too large Load Diff
-48947
View File
File diff suppressed because it is too large Load Diff