feat: generate SDK for Remnawave API v2.7.4
This commit is contained in:
+1604
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,181 @@
|
||||
// Code generated by ogen, DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
ht "github.com/ogen-go/ogen/http"
|
||||
"github.com/ogen-go/ogen/ogenregex"
|
||||
"github.com/ogen-go/ogen/otelogen"
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
"go.opentelemetry.io/otel/metric"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
var regexMap = map[string]ogenregex.Regexp{
|
||||
"^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{24,}$": ogenregex.MustCompile("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{24,}$"),
|
||||
"^[!#$%&'*+\\-.0-9A-Z^_`a-z|~]+$": ogenregex.MustCompile("^[!#$%&'*+\\-.0-9A-Z^_`a-z|~]+$"),
|
||||
"^[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_-]+$": ogenregex.MustCompile("^[a-zA-Z0-9_-]+$"),
|
||||
}
|
||||
var (
|
||||
// Allocate option closure once.
|
||||
clientSpanKind = trace.WithSpanKind(trace.SpanKindClient)
|
||||
)
|
||||
|
||||
type (
|
||||
optionFunc[C any] func(*C)
|
||||
otelOptionFunc func(*otelConfig)
|
||||
)
|
||||
|
||||
type otelConfig struct {
|
||||
TracerProvider trace.TracerProvider
|
||||
Tracer trace.Tracer
|
||||
MeterProvider metric.MeterProvider
|
||||
Meter metric.Meter
|
||||
Attributes []attribute.KeyValue
|
||||
}
|
||||
|
||||
func (cfg *otelConfig) initOTEL() {
|
||||
if cfg.TracerProvider == nil {
|
||||
cfg.TracerProvider = otel.GetTracerProvider()
|
||||
}
|
||||
if cfg.MeterProvider == nil {
|
||||
cfg.MeterProvider = otel.GetMeterProvider()
|
||||
}
|
||||
cfg.Tracer = cfg.TracerProvider.Tracer(otelogen.Name,
|
||||
trace.WithInstrumentationVersion(otelogen.SemVersion()),
|
||||
)
|
||||
cfg.Meter = cfg.MeterProvider.Meter(otelogen.Name,
|
||||
metric.WithInstrumentationVersion(otelogen.SemVersion()),
|
||||
)
|
||||
}
|
||||
|
||||
type clientConfig struct {
|
||||
otelConfig
|
||||
// A list of callbacks for modifying requests which are generated before sending over
|
||||
// the network.
|
||||
RequestEditors []RequestEditor
|
||||
// A list of callbacks for modifying response.
|
||||
ResponseEditors []ResponseEditor
|
||||
Client ht.Client
|
||||
}
|
||||
|
||||
// ClientOption is client config option.
|
||||
type ClientOption interface {
|
||||
applyClient(*clientConfig)
|
||||
}
|
||||
|
||||
var _ ClientOption = (optionFunc[clientConfig])(nil)
|
||||
|
||||
func (o optionFunc[C]) applyClient(c *C) {
|
||||
o(c)
|
||||
}
|
||||
|
||||
var _ ClientOption = (otelOptionFunc)(nil)
|
||||
|
||||
func (o otelOptionFunc) applyClient(c *clientConfig) {
|
||||
o(&c.otelConfig)
|
||||
}
|
||||
|
||||
func newClientConfig(opts ...ClientOption) clientConfig {
|
||||
cfg := clientConfig{
|
||||
Client: http.DefaultClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt.applyClient(&cfg)
|
||||
}
|
||||
cfg.initOTEL()
|
||||
return cfg
|
||||
}
|
||||
|
||||
type baseClient struct {
|
||||
cfg clientConfig
|
||||
requests metric.Int64Counter
|
||||
errors metric.Int64Counter
|
||||
duration metric.Float64Histogram
|
||||
}
|
||||
|
||||
func (cfg clientConfig) baseClient() (c baseClient, err error) {
|
||||
c = baseClient{cfg: cfg}
|
||||
if c.requests, err = otelogen.ClientRequestCountCounter(c.cfg.Meter); err != nil {
|
||||
return c, err
|
||||
}
|
||||
if c.errors, err = otelogen.ClientErrorsCountCounter(c.cfg.Meter); err != nil {
|
||||
return c, err
|
||||
}
|
||||
if c.duration, err = otelogen.ClientDurationHistogram(c.cfg.Meter); err != nil {
|
||||
return c, err
|
||||
}
|
||||
return c, nil
|
||||
}
|
||||
|
||||
// Option is config option.
|
||||
type Option interface {
|
||||
ClientOption
|
||||
}
|
||||
|
||||
// WithTracerProvider specifies a tracer provider to use for creating a tracer.
|
||||
//
|
||||
// If none is specified, the global provider is used.
|
||||
func WithTracerProvider(provider trace.TracerProvider) Option {
|
||||
return otelOptionFunc(func(cfg *otelConfig) {
|
||||
if provider != nil {
|
||||
cfg.TracerProvider = provider
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// WithMeterProvider specifies a meter provider to use for creating a meter.
|
||||
//
|
||||
// If none is specified, the otel.GetMeterProvider() is used.
|
||||
func WithMeterProvider(provider metric.MeterProvider) Option {
|
||||
return otelOptionFunc(func(cfg *otelConfig) {
|
||||
if provider != nil {
|
||||
cfg.MeterProvider = provider
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// WithAttributes specifies default otel attributes.
|
||||
func WithAttributes(attributes ...attribute.KeyValue) Option {
|
||||
return otelOptionFunc(func(cfg *otelConfig) {
|
||||
cfg.Attributes = attributes
|
||||
})
|
||||
}
|
||||
|
||||
// WithClient specifies http client to use.
|
||||
func WithClient(client ht.Client) ClientOption {
|
||||
return optionFunc[clientConfig](func(cfg *clientConfig) {
|
||||
if client != nil {
|
||||
cfg.Client = client
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// RequestEditor is the function signature for the RequestEditor callback function
|
||||
type RequestEditor func(ctx context.Context, req *http.Request) error
|
||||
|
||||
// ResponseEditor is the function signature for the ResponseEditor callback function
|
||||
type ResponseEditor func(ctx context.Context, resp *http.Response) error
|
||||
|
||||
// WithRequestEditor allows setting up a callback function, which will be
|
||||
// called right before sending the request. This can be used to mutate the request.
|
||||
func WithRequestEditor(fn RequestEditor) ClientOption {
|
||||
return optionFunc[clientConfig](func(cfg *clientConfig) {
|
||||
cfg.RequestEditors = append(cfg.RequestEditors, fn)
|
||||
})
|
||||
}
|
||||
|
||||
// WithResponseEditor allows setting up a callback function, which will be
|
||||
// called right after receiving the response. This can be used to mutate the response.
|
||||
func WithResponseEditor(fn ResponseEditor) ClientOption {
|
||||
return optionFunc[clientConfig](func(cfg *clientConfig) {
|
||||
cfg.ResponseEditors = append(cfg.ResponseEditors, fn)
|
||||
})
|
||||
}
|
||||
+27821
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,151 @@
|
||||
// Code generated by ogen, DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *BulkAllUpdateUsersRequest) setDefaults() {
|
||||
{
|
||||
val := BulkAllUpdateUsersRequestStatus("ACTIVE")
|
||||
s.Status.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *BulkDeleteUsersByStatusRequest) setDefaults() {
|
||||
{
|
||||
val := BulkDeleteUsersByStatusRequestStatus("ACTIVE")
|
||||
s.Status.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *BulkUpdateUsersRequestFields) setDefaults() {
|
||||
{
|
||||
val := BulkUpdateUsersRequestFieldsStatus("ACTIVE")
|
||||
s.Status.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *CreateHostRequest) setDefaults() {
|
||||
{
|
||||
val := bool(false)
|
||||
s.IsDisabled.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := CreateHostRequestSecurityLayer("DEFAULT")
|
||||
s.SecurityLayer.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.IsHidden.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.OverrideSniFromAddress.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.KeepSniBlank.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.AllowInsecure.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.ShuffleHost.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.MihomoX25519.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *CreateNodeRequest) setDefaults() {
|
||||
{
|
||||
val := bool(false)
|
||||
s.IsTrafficTrackingActive.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := string("XX")
|
||||
s.CountryCode.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *CreateUserRequest) setDefaults() {
|
||||
{
|
||||
val := CreateUserRequestStatus("ACTIVE")
|
||||
s.Status.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := CreateUserRequestTrafficLimitStrategy("NO_RESET")
|
||||
s.TrafficLimitStrategy.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *HostItem) setDefaults() {
|
||||
{
|
||||
val := bool(false)
|
||||
s.IsDisabled.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := HostItemSecurityLayer("DEFAULT")
|
||||
s.SecurityLayer.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.IsHidden.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.OverrideSniFromAddress.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.KeepSniBlank.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := bool(false)
|
||||
s.AllowInsecure.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *RevokeUserSubscriptionBody) setDefaults() {
|
||||
{
|
||||
val := bool(false)
|
||||
s.RevokeOnlyPasswords.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *UpdateUserRequest) setDefaults() {
|
||||
{
|
||||
val := UpdateUserRequestTrafficLimitStrategy("NO_RESET")
|
||||
s.TrafficLimitStrategy.SetTo(val)
|
||||
}
|
||||
}
|
||||
|
||||
// setDefaults set default value of fields.
|
||||
func (s *UserItemInfo) setDefaults() {
|
||||
{
|
||||
val := UserItemInfoStatus("ACTIVE")
|
||||
s.Status.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := int(0)
|
||||
s.TrafficLimitBytes.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := UserItemInfoTrafficLimitStrategy("NO_RESET")
|
||||
s.TrafficLimitStrategy.SetTo(val)
|
||||
}
|
||||
{
|
||||
val := int(0)
|
||||
s.LastTriggeredThreshold.SetTo(val)
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,734 @@
|
||||
// Code generated by ogen, DO NOT EDIT.
|
||||
package api
|
||||
|
||||
type ApiTokensCreateRes interface {
|
||||
apiTokensCreateRes()
|
||||
}
|
||||
|
||||
type ApiTokensDeleteRes interface {
|
||||
apiTokensDeleteRes()
|
||||
}
|
||||
|
||||
type ApiTokensFindAllRes interface {
|
||||
apiTokensFindAllRes()
|
||||
}
|
||||
|
||||
type AuthGetStatusRes interface {
|
||||
authGetStatusRes()
|
||||
}
|
||||
|
||||
type AuthLoginRes interface {
|
||||
authLoginRes()
|
||||
}
|
||||
|
||||
type AuthOauth2AuthorizeRes interface {
|
||||
authOauth2AuthorizeRes()
|
||||
}
|
||||
|
||||
type AuthOauth2CallbackRes interface {
|
||||
authOauth2CallbackRes()
|
||||
}
|
||||
|
||||
type AuthPasskeyAuthenticationOptionsRes interface {
|
||||
authPasskeyAuthenticationOptionsRes()
|
||||
}
|
||||
|
||||
type AuthPasskeyAuthenticationVerifyRes interface {
|
||||
authPasskeyAuthenticationVerifyRes()
|
||||
}
|
||||
|
||||
type AuthRegisterRes interface {
|
||||
authRegisterRes()
|
||||
}
|
||||
|
||||
type BandwidthStatsNodesGetNodeUserUsageRes interface {
|
||||
bandwidthStatsNodesGetNodeUserUsageRes()
|
||||
}
|
||||
|
||||
type BandwidthStatsNodesGetStatsNodeUsersUsageRes interface {
|
||||
bandwidthStatsNodesGetStatsNodeUsersUsageRes()
|
||||
}
|
||||
|
||||
type BandwidthStatsUsersGetStatsNodesUsageRes interface {
|
||||
bandwidthStatsUsersGetStatsNodesUsageRes()
|
||||
}
|
||||
|
||||
type BandwidthStatsUsersGetUserUsageByRangeRes interface {
|
||||
bandwidthStatsUsersGetUserUsageByRangeRes()
|
||||
}
|
||||
|
||||
type ConfigProfileCreateConfigProfileRes interface {
|
||||
configProfileCreateConfigProfileRes()
|
||||
}
|
||||
|
||||
type ConfigProfileDeleteConfigProfileByUuidRes interface {
|
||||
configProfileDeleteConfigProfileByUuidRes()
|
||||
}
|
||||
|
||||
type ConfigProfileGetAllInboundsRes interface {
|
||||
configProfileGetAllInboundsRes()
|
||||
}
|
||||
|
||||
type ConfigProfileGetComputedConfigProfileByUuidRes interface {
|
||||
configProfileGetComputedConfigProfileByUuidRes()
|
||||
}
|
||||
|
||||
type ConfigProfileGetConfigProfileByUuidRes interface {
|
||||
configProfileGetConfigProfileByUuidRes()
|
||||
}
|
||||
|
||||
type ConfigProfileGetConfigProfilesRes interface {
|
||||
configProfileGetConfigProfilesRes()
|
||||
}
|
||||
|
||||
type ConfigProfileGetInboundsByProfileUuidRes interface {
|
||||
configProfileGetInboundsByProfileUuidRes()
|
||||
}
|
||||
|
||||
type ConfigProfileReorderConfigProfilesRes interface {
|
||||
configProfileReorderConfigProfilesRes()
|
||||
}
|
||||
|
||||
type ConfigProfileUpdateConfigProfileRes interface {
|
||||
configProfileUpdateConfigProfileRes()
|
||||
}
|
||||
|
||||
type ExternalSquadAddUsersToExternalSquadRes interface {
|
||||
externalSquadAddUsersToExternalSquadRes()
|
||||
}
|
||||
|
||||
type ExternalSquadCreateExternalSquadRes interface {
|
||||
externalSquadCreateExternalSquadRes()
|
||||
}
|
||||
|
||||
type ExternalSquadDeleteExternalSquadRes interface {
|
||||
externalSquadDeleteExternalSquadRes()
|
||||
}
|
||||
|
||||
type ExternalSquadGetExternalSquadByUuidRes interface {
|
||||
externalSquadGetExternalSquadByUuidRes()
|
||||
}
|
||||
|
||||
type ExternalSquadGetExternalSquadsRes interface {
|
||||
externalSquadGetExternalSquadsRes()
|
||||
}
|
||||
|
||||
type ExternalSquadRemoveUsersFromExternalSquadRes interface {
|
||||
externalSquadRemoveUsersFromExternalSquadRes()
|
||||
}
|
||||
|
||||
type ExternalSquadReorderExternalSquadsRes interface {
|
||||
externalSquadReorderExternalSquadsRes()
|
||||
}
|
||||
|
||||
type ExternalSquadUpdateExternalSquadRes interface {
|
||||
externalSquadUpdateExternalSquadRes()
|
||||
}
|
||||
|
||||
type HostsBulkActionsDeleteHostsRes interface {
|
||||
hostsBulkActionsDeleteHostsRes()
|
||||
}
|
||||
|
||||
type HostsBulkActionsDisableHostsRes interface {
|
||||
hostsBulkActionsDisableHostsRes()
|
||||
}
|
||||
|
||||
type HostsBulkActionsEnableHostsRes interface {
|
||||
hostsBulkActionsEnableHostsRes()
|
||||
}
|
||||
|
||||
type HostsBulkActionsSetInboundToHostsRes interface {
|
||||
hostsBulkActionsSetInboundToHostsRes()
|
||||
}
|
||||
|
||||
type HostsBulkActionsSetPortToHostsRes interface {
|
||||
hostsBulkActionsSetPortToHostsRes()
|
||||
}
|
||||
|
||||
type HostsCreateHostRes interface {
|
||||
hostsCreateHostRes()
|
||||
}
|
||||
|
||||
type HostsDeleteHostRes interface {
|
||||
hostsDeleteHostRes()
|
||||
}
|
||||
|
||||
type HostsGetAllHostTagsRes interface {
|
||||
hostsGetAllHostTagsRes()
|
||||
}
|
||||
|
||||
type HostsGetAllHostsRes interface {
|
||||
hostsGetAllHostsRes()
|
||||
}
|
||||
|
||||
type HostsGetOneHostRes interface {
|
||||
hostsGetOneHostRes()
|
||||
}
|
||||
|
||||
type HostsReorderHostsRes interface {
|
||||
hostsReorderHostsRes()
|
||||
}
|
||||
|
||||
type HostsUpdateHostRes interface {
|
||||
hostsUpdateHostRes()
|
||||
}
|
||||
|
||||
type HwidUserDevicesCreateUserHwidDeviceRes interface {
|
||||
hwidUserDevicesCreateUserHwidDeviceRes()
|
||||
}
|
||||
|
||||
type HwidUserDevicesDeleteAllUserHwidDevicesRes interface {
|
||||
hwidUserDevicesDeleteAllUserHwidDevicesRes()
|
||||
}
|
||||
|
||||
type HwidUserDevicesDeleteUserHwidDeviceRes interface {
|
||||
hwidUserDevicesDeleteUserHwidDeviceRes()
|
||||
}
|
||||
|
||||
type HwidUserDevicesGetAllUsersRes interface {
|
||||
hwidUserDevicesGetAllUsersRes()
|
||||
}
|
||||
|
||||
type HwidUserDevicesGetHwidDevicesStatsRes interface {
|
||||
hwidUserDevicesGetHwidDevicesStatsRes()
|
||||
}
|
||||
|
||||
type HwidUserDevicesGetTopUsersByHwidDevicesRes interface {
|
||||
hwidUserDevicesGetTopUsersByHwidDevicesRes()
|
||||
}
|
||||
|
||||
type HwidUserDevicesGetUserHwidDevicesRes interface {
|
||||
hwidUserDevicesGetUserHwidDevicesRes()
|
||||
}
|
||||
|
||||
type InfraBillingCreateInfraBillingHistoryRecordRes interface {
|
||||
infraBillingCreateInfraBillingHistoryRecordRes()
|
||||
}
|
||||
|
||||
type InfraBillingCreateInfraBillingNodeRes interface {
|
||||
infraBillingCreateInfraBillingNodeRes()
|
||||
}
|
||||
|
||||
type InfraBillingCreateInfraProviderRes interface {
|
||||
infraBillingCreateInfraProviderRes()
|
||||
}
|
||||
|
||||
type InfraBillingDeleteInfraBillingHistoryRecordByUuidRes interface {
|
||||
infraBillingDeleteInfraBillingHistoryRecordByUuidRes()
|
||||
}
|
||||
|
||||
type InfraBillingDeleteInfraBillingNodeByUuidRes interface {
|
||||
infraBillingDeleteInfraBillingNodeByUuidRes()
|
||||
}
|
||||
|
||||
type InfraBillingDeleteInfraProviderByUuidRes interface {
|
||||
infraBillingDeleteInfraProviderByUuidRes()
|
||||
}
|
||||
|
||||
type InfraBillingGetBillingNodesRes interface {
|
||||
infraBillingGetBillingNodesRes()
|
||||
}
|
||||
|
||||
type InfraBillingGetInfraBillingHistoryRecordsRes interface {
|
||||
infraBillingGetInfraBillingHistoryRecordsRes()
|
||||
}
|
||||
|
||||
type InfraBillingGetInfraProviderByUuidRes interface {
|
||||
infraBillingGetInfraProviderByUuidRes()
|
||||
}
|
||||
|
||||
type InfraBillingGetInfraProvidersRes interface {
|
||||
infraBillingGetInfraProvidersRes()
|
||||
}
|
||||
|
||||
type InfraBillingUpdateInfraBillingNodeRes interface {
|
||||
infraBillingUpdateInfraBillingNodeRes()
|
||||
}
|
||||
|
||||
type InfraBillingUpdateInfraProviderRes interface {
|
||||
infraBillingUpdateInfraProviderRes()
|
||||
}
|
||||
|
||||
type InternalSquadAddUsersToInternalSquadRes interface {
|
||||
internalSquadAddUsersToInternalSquadRes()
|
||||
}
|
||||
|
||||
type InternalSquadCreateInternalSquadRes interface {
|
||||
internalSquadCreateInternalSquadRes()
|
||||
}
|
||||
|
||||
type InternalSquadDeleteInternalSquadRes interface {
|
||||
internalSquadDeleteInternalSquadRes()
|
||||
}
|
||||
|
||||
type InternalSquadGetInternalSquadAccessibleNodesRes interface {
|
||||
internalSquadGetInternalSquadAccessibleNodesRes()
|
||||
}
|
||||
|
||||
type InternalSquadGetInternalSquadByUuidRes interface {
|
||||
internalSquadGetInternalSquadByUuidRes()
|
||||
}
|
||||
|
||||
type InternalSquadGetInternalSquadsRes interface {
|
||||
internalSquadGetInternalSquadsRes()
|
||||
}
|
||||
|
||||
type InternalSquadRemoveUsersFromInternalSquadRes interface {
|
||||
internalSquadRemoveUsersFromInternalSquadRes()
|
||||
}
|
||||
|
||||
type InternalSquadReorderInternalSquadsRes interface {
|
||||
internalSquadReorderInternalSquadsRes()
|
||||
}
|
||||
|
||||
type InternalSquadUpdateInternalSquadRes interface {
|
||||
internalSquadUpdateInternalSquadRes()
|
||||
}
|
||||
|
||||
type IpControlDropConnectionsRes interface {
|
||||
ipControlDropConnectionsRes()
|
||||
}
|
||||
|
||||
type IpControlFetchUserIpsRes interface {
|
||||
ipControlFetchUserIpsRes()
|
||||
}
|
||||
|
||||
type IpControlFetchUsersIpsRes interface {
|
||||
ipControlFetchUsersIpsRes()
|
||||
}
|
||||
|
||||
type IpControlGetFetchIpsResultRes interface {
|
||||
ipControlGetFetchIpsResultRes()
|
||||
}
|
||||
|
||||
type IpControlGetFetchUsersIpsResultRes interface {
|
||||
ipControlGetFetchUsersIpsResultRes()
|
||||
}
|
||||
|
||||
type KeygenGenerateKeyRes interface {
|
||||
keygenGenerateKeyRes()
|
||||
}
|
||||
|
||||
type MetadataGetNodeMetadataRes interface {
|
||||
metadataGetNodeMetadataRes()
|
||||
}
|
||||
|
||||
type MetadataGetUserMetadataRes interface {
|
||||
metadataGetUserMetadataRes()
|
||||
}
|
||||
|
||||
type MetadataUpsertNodeMetadataRes interface {
|
||||
metadataUpsertNodeMetadataRes()
|
||||
}
|
||||
|
||||
type MetadataUpsertUserMetadataRes interface {
|
||||
metadataUpsertUserMetadataRes()
|
||||
}
|
||||
|
||||
type NodePluginCloneNodePluginRes interface {
|
||||
nodePluginCloneNodePluginRes()
|
||||
}
|
||||
|
||||
type NodePluginCreateConfigRes interface {
|
||||
nodePluginCreateConfigRes()
|
||||
}
|
||||
|
||||
type NodePluginDeleteConfigRes interface {
|
||||
nodePluginDeleteConfigRes()
|
||||
}
|
||||
|
||||
type NodePluginGetAllConfigsRes interface {
|
||||
nodePluginGetAllConfigsRes()
|
||||
}
|
||||
|
||||
type NodePluginGetConfigByUuidRes interface {
|
||||
nodePluginGetConfigByUuidRes()
|
||||
}
|
||||
|
||||
type NodePluginPluginExecutorRes interface {
|
||||
nodePluginPluginExecutorRes()
|
||||
}
|
||||
|
||||
type NodePluginReorderNodePluginsRes interface {
|
||||
nodePluginReorderNodePluginsRes()
|
||||
}
|
||||
|
||||
type NodePluginUpdateConfigRes interface {
|
||||
nodePluginUpdateConfigRes()
|
||||
}
|
||||
|
||||
type NodesBulkNodesActionsRes interface {
|
||||
nodesBulkNodesActionsRes()
|
||||
}
|
||||
|
||||
type NodesBulkNodesUpdateRes interface {
|
||||
nodesBulkNodesUpdateRes()
|
||||
}
|
||||
|
||||
type NodesCreateNodeRes interface {
|
||||
nodesCreateNodeRes()
|
||||
}
|
||||
|
||||
type NodesDeleteNodeRes interface {
|
||||
nodesDeleteNodeRes()
|
||||
}
|
||||
|
||||
type NodesDisableNodeRes interface {
|
||||
nodesDisableNodeRes()
|
||||
}
|
||||
|
||||
type NodesEnableNodeRes interface {
|
||||
nodesEnableNodeRes()
|
||||
}
|
||||
|
||||
type NodesGetAllNodesRes interface {
|
||||
nodesGetAllNodesRes()
|
||||
}
|
||||
|
||||
type NodesGetAllNodesTagsRes interface {
|
||||
nodesGetAllNodesTagsRes()
|
||||
}
|
||||
|
||||
type NodesGetOneNodeRes interface {
|
||||
nodesGetOneNodeRes()
|
||||
}
|
||||
|
||||
type NodesProfileModificationRes interface {
|
||||
nodesProfileModificationRes()
|
||||
}
|
||||
|
||||
type NodesReorderNodesRes interface {
|
||||
nodesReorderNodesRes()
|
||||
}
|
||||
|
||||
type NodesResetNodeTrafficRes interface {
|
||||
nodesResetNodeTrafficRes()
|
||||
}
|
||||
|
||||
type NodesRestartAllNodesRes interface {
|
||||
nodesRestartAllNodesRes()
|
||||
}
|
||||
|
||||
type NodesRestartNodeRes interface {
|
||||
nodesRestartNodeRes()
|
||||
}
|
||||
|
||||
type NodesUpdateNodeRes interface {
|
||||
nodesUpdateNodeRes()
|
||||
}
|
||||
|
||||
type NodesUsageHistoryGetStatsNodesUsageRes interface {
|
||||
nodesUsageHistoryGetStatsNodesUsageRes()
|
||||
}
|
||||
|
||||
type PasskeyDeletePasskeyRes interface {
|
||||
passkeyDeletePasskeyRes()
|
||||
}
|
||||
|
||||
type PasskeyGetActivePasskeysRes interface {
|
||||
passkeyGetActivePasskeysRes()
|
||||
}
|
||||
|
||||
type PasskeyPasskeyRegistrationOptionsRes interface {
|
||||
passkeyPasskeyRegistrationOptionsRes()
|
||||
}
|
||||
|
||||
type PasskeyPasskeyRegistrationVerifyRes interface {
|
||||
passkeyPasskeyRegistrationVerifyRes()
|
||||
}
|
||||
|
||||
type PasskeyUpdatePasskeyRes interface {
|
||||
passkeyUpdatePasskeyRes()
|
||||
}
|
||||
|
||||
type RemnawaveSettingsGetSettingsRes interface {
|
||||
remnawaveSettingsGetSettingsRes()
|
||||
}
|
||||
|
||||
type RemnawaveSettingsUpdateSettingsRes interface {
|
||||
remnawaveSettingsUpdateSettingsRes()
|
||||
}
|
||||
|
||||
type SnippetsCreateSnippetRes interface {
|
||||
snippetsCreateSnippetRes()
|
||||
}
|
||||
|
||||
type SnippetsDeleteSnippetByNameRes interface {
|
||||
snippetsDeleteSnippetByNameRes()
|
||||
}
|
||||
|
||||
type SnippetsGetSnippetsRes interface {
|
||||
snippetsGetSnippetsRes()
|
||||
}
|
||||
|
||||
type SnippetsUpdateSnippetRes interface {
|
||||
snippetsUpdateSnippetRes()
|
||||
}
|
||||
|
||||
type SubscriptionGetSubscriptionInfoByShortUuidRes interface {
|
||||
subscriptionGetSubscriptionInfoByShortUuidRes()
|
||||
}
|
||||
|
||||
type SubscriptionPageConfigCloneSubscriptionPageConfigRes interface {
|
||||
subscriptionPageConfigCloneSubscriptionPageConfigRes()
|
||||
}
|
||||
|
||||
type SubscriptionPageConfigCreateConfigRes interface {
|
||||
subscriptionPageConfigCreateConfigRes()
|
||||
}
|
||||
|
||||
type SubscriptionPageConfigDeleteConfigRes interface {
|
||||
subscriptionPageConfigDeleteConfigRes()
|
||||
}
|
||||
|
||||
type SubscriptionPageConfigGetAllConfigsRes interface {
|
||||
subscriptionPageConfigGetAllConfigsRes()
|
||||
}
|
||||
|
||||
type SubscriptionPageConfigGetConfigByUuidRes interface {
|
||||
subscriptionPageConfigGetConfigByUuidRes()
|
||||
}
|
||||
|
||||
type SubscriptionPageConfigReorderSubscriptionPageConfigsRes interface {
|
||||
subscriptionPageConfigReorderSubscriptionPageConfigsRes()
|
||||
}
|
||||
|
||||
type SubscriptionPageConfigUpdateConfigRes interface {
|
||||
subscriptionPageConfigUpdateConfigRes()
|
||||
}
|
||||
|
||||
type SubscriptionSettingsGetSettingsRes interface {
|
||||
subscriptionSettingsGetSettingsRes()
|
||||
}
|
||||
|
||||
type SubscriptionSettingsUpdateSettingsRes interface {
|
||||
subscriptionSettingsUpdateSettingsRes()
|
||||
}
|
||||
|
||||
type SubscriptionTemplateCreateTemplateRes interface {
|
||||
subscriptionTemplateCreateTemplateRes()
|
||||
}
|
||||
|
||||
type SubscriptionTemplateDeleteTemplateRes interface {
|
||||
subscriptionTemplateDeleteTemplateRes()
|
||||
}
|
||||
|
||||
type SubscriptionTemplateGetAllTemplatesRes interface {
|
||||
subscriptionTemplateGetAllTemplatesRes()
|
||||
}
|
||||
|
||||
type SubscriptionTemplateGetTemplateByUuidRes interface {
|
||||
subscriptionTemplateGetTemplateByUuidRes()
|
||||
}
|
||||
|
||||
type SubscriptionTemplateReorderSubscriptionTemplatesRes interface {
|
||||
subscriptionTemplateReorderSubscriptionTemplatesRes()
|
||||
}
|
||||
|
||||
type SubscriptionTemplateUpdateTemplateRes interface {
|
||||
subscriptionTemplateUpdateTemplateRes()
|
||||
}
|
||||
|
||||
type SubscriptionsGetAllSubscriptionsRes interface {
|
||||
subscriptionsGetAllSubscriptionsRes()
|
||||
}
|
||||
|
||||
type SubscriptionsGetConnectionKeysByUuidRes interface {
|
||||
subscriptionsGetConnectionKeysByUuidRes()
|
||||
}
|
||||
|
||||
type SubscriptionsGetRawSubscriptionByShortUuidRes interface {
|
||||
subscriptionsGetRawSubscriptionByShortUuidRes()
|
||||
}
|
||||
|
||||
type SubscriptionsGetSubpageConfigByShortUuidRes interface {
|
||||
subscriptionsGetSubpageConfigByShortUuidRes()
|
||||
}
|
||||
|
||||
type SubscriptionsGetSubscriptionByShortUuidProtectedRes interface {
|
||||
subscriptionsGetSubscriptionByShortUuidProtectedRes()
|
||||
}
|
||||
|
||||
type SubscriptionsGetSubscriptionByUsernameRes interface {
|
||||
subscriptionsGetSubscriptionByUsernameRes()
|
||||
}
|
||||
|
||||
type SubscriptionsGetSubscriptionByUuidRes interface {
|
||||
subscriptionsGetSubscriptionByUuidRes()
|
||||
}
|
||||
|
||||
type SystemDebugSrrMatcherRes interface {
|
||||
systemDebugSrrMatcherRes()
|
||||
}
|
||||
|
||||
type SystemEncryptHappCryptoLinkRes interface {
|
||||
systemEncryptHappCryptoLinkRes()
|
||||
}
|
||||
|
||||
type SystemGetBandwidthStatsRes interface {
|
||||
systemGetBandwidthStatsRes()
|
||||
}
|
||||
|
||||
type SystemGetMetadataRes interface {
|
||||
systemGetMetadataRes()
|
||||
}
|
||||
|
||||
type SystemGetNodesMetricsRes interface {
|
||||
systemGetNodesMetricsRes()
|
||||
}
|
||||
|
||||
type SystemGetNodesStatisticsRes interface {
|
||||
systemGetNodesStatisticsRes()
|
||||
}
|
||||
|
||||
type SystemGetRecapRes interface {
|
||||
systemGetRecapRes()
|
||||
}
|
||||
|
||||
type SystemGetRemnawaveHealthRes interface {
|
||||
systemGetRemnawaveHealthRes()
|
||||
}
|
||||
|
||||
type SystemGetStatsRes interface {
|
||||
systemGetStatsRes()
|
||||
}
|
||||
|
||||
type SystemGetX25519KeypairsRes interface {
|
||||
systemGetX25519KeypairsRes()
|
||||
}
|
||||
|
||||
type TorrentBlockerReportsGetTorrentBlockerReportsRes interface {
|
||||
torrentBlockerReportsGetTorrentBlockerReportsRes()
|
||||
}
|
||||
|
||||
type TorrentBlockerReportsGetTorrentBlockerReportsStatsRes interface {
|
||||
torrentBlockerReportsGetTorrentBlockerReportsStatsRes()
|
||||
}
|
||||
|
||||
type TorrentBlockerReportsTruncateTorrentBlockerReportsRes interface {
|
||||
torrentBlockerReportsTruncateTorrentBlockerReportsRes()
|
||||
}
|
||||
|
||||
type UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryRes interface {
|
||||
userSubscriptionRequestHistoryGetSubscriptionRequestHistoryRes()
|
||||
}
|
||||
|
||||
type UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryStatsRes interface {
|
||||
userSubscriptionRequestHistoryGetSubscriptionRequestHistoryStatsRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkAllExtendExpirationDateRes interface {
|
||||
usersBulkActionsBulkAllExtendExpirationDateRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkAllResetUserTrafficRes interface {
|
||||
usersBulkActionsBulkAllResetUserTrafficRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkDeleteUsersByStatusRes interface {
|
||||
usersBulkActionsBulkDeleteUsersByStatusRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkDeleteUsersRes interface {
|
||||
usersBulkActionsBulkDeleteUsersRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkExtendExpirationDateRes interface {
|
||||
usersBulkActionsBulkExtendExpirationDateRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkResetUserTrafficRes interface {
|
||||
usersBulkActionsBulkResetUserTrafficRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkRevokeUsersSubscriptionRes interface {
|
||||
usersBulkActionsBulkRevokeUsersSubscriptionRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkUpdateAllUsersRes interface {
|
||||
usersBulkActionsBulkUpdateAllUsersRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkUpdateUsersInternalSquadsRes interface {
|
||||
usersBulkActionsBulkUpdateUsersInternalSquadsRes()
|
||||
}
|
||||
|
||||
type UsersBulkActionsBulkUpdateUsersRes interface {
|
||||
usersBulkActionsBulkUpdateUsersRes()
|
||||
}
|
||||
|
||||
type UsersCreateUserRes interface {
|
||||
usersCreateUserRes()
|
||||
}
|
||||
|
||||
type UsersDeleteUserRes interface {
|
||||
usersDeleteUserRes()
|
||||
}
|
||||
|
||||
type UsersDisableUserRes interface {
|
||||
usersDisableUserRes()
|
||||
}
|
||||
|
||||
type UsersEnableUserRes interface {
|
||||
usersEnableUserRes()
|
||||
}
|
||||
|
||||
type UsersGetAllTagsRes interface {
|
||||
usersGetAllTagsRes()
|
||||
}
|
||||
|
||||
type UsersGetAllUsersRes interface {
|
||||
usersGetAllUsersRes()
|
||||
}
|
||||
|
||||
type UsersGetUserAccessibleNodesRes interface {
|
||||
usersGetUserAccessibleNodesRes()
|
||||
}
|
||||
|
||||
type UsersGetUserByIdRes interface {
|
||||
usersGetUserByIdRes()
|
||||
}
|
||||
|
||||
type UsersGetUserByShortUuidRes interface {
|
||||
usersGetUserByShortUuidRes()
|
||||
}
|
||||
|
||||
type UsersGetUserByTelegramIdRes interface {
|
||||
usersGetUserByTelegramIdRes()
|
||||
}
|
||||
|
||||
type UsersGetUserByUsernameRes interface {
|
||||
usersGetUserByUsernameRes()
|
||||
}
|
||||
|
||||
type UsersGetUserByUuidRes interface {
|
||||
usersGetUserByUuidRes()
|
||||
}
|
||||
|
||||
type UsersGetUserSubscriptionRequestHistoryRes interface {
|
||||
usersGetUserSubscriptionRequestHistoryRes()
|
||||
}
|
||||
|
||||
type UsersGetUsersByEmailRes interface {
|
||||
usersGetUsersByEmailRes()
|
||||
}
|
||||
|
||||
type UsersGetUsersByTagRes interface {
|
||||
usersGetUsersByTagRes()
|
||||
}
|
||||
|
||||
type UsersResetUserTrafficRes interface {
|
||||
usersResetUserTrafficRes()
|
||||
}
|
||||
|
||||
type UsersResolveUserRes interface {
|
||||
usersResolveUserRes()
|
||||
}
|
||||
|
||||
type UsersRevokeUserSubscriptionRes interface {
|
||||
usersRevokeUserSubscriptionRes()
|
||||
}
|
||||
|
||||
type UsersUpdateUserRes interface {
|
||||
usersUpdateUserRes()
|
||||
}
|
||||
+55870
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,194 @@
|
||||
// Code generated by ogen, DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
// OperationName is the ogen operation name
|
||||
type OperationName = string
|
||||
|
||||
const (
|
||||
ApiTokensCreateOperation OperationName = "ApiTokensCreate"
|
||||
ApiTokensDeleteOperation OperationName = "ApiTokensDelete"
|
||||
ApiTokensFindAllOperation OperationName = "ApiTokensFindAll"
|
||||
AuthGetStatusOperation OperationName = "AuthGetStatus"
|
||||
AuthLoginOperation OperationName = "AuthLogin"
|
||||
AuthOauth2AuthorizeOperation OperationName = "AuthOauth2Authorize"
|
||||
AuthOauth2CallbackOperation OperationName = "AuthOauth2Callback"
|
||||
AuthPasskeyAuthenticationOptionsOperation OperationName = "AuthPasskeyAuthenticationOptions"
|
||||
AuthPasskeyAuthenticationVerifyOperation OperationName = "AuthPasskeyAuthenticationVerify"
|
||||
AuthRegisterOperation OperationName = "AuthRegister"
|
||||
BandwidthStatsNodesGetNodeUserUsageOperation OperationName = "BandwidthStatsNodesGetNodeUserUsage"
|
||||
BandwidthStatsNodesGetStatsNodeUsersUsageOperation OperationName = "BandwidthStatsNodesGetStatsNodeUsersUsage"
|
||||
BandwidthStatsUsersGetStatsNodesUsageOperation OperationName = "BandwidthStatsUsersGetStatsNodesUsage"
|
||||
BandwidthStatsUsersGetUserUsageByRangeOperation OperationName = "BandwidthStatsUsersGetUserUsageByRange"
|
||||
ConfigProfileCreateConfigProfileOperation OperationName = "ConfigProfileCreateConfigProfile"
|
||||
ConfigProfileDeleteConfigProfileByUuidOperation OperationName = "ConfigProfileDeleteConfigProfileByUuid"
|
||||
ConfigProfileGetAllInboundsOperation OperationName = "ConfigProfileGetAllInbounds"
|
||||
ConfigProfileGetComputedConfigProfileByUuidOperation OperationName = "ConfigProfileGetComputedConfigProfileByUuid"
|
||||
ConfigProfileGetConfigProfileByUuidOperation OperationName = "ConfigProfileGetConfigProfileByUuid"
|
||||
ConfigProfileGetConfigProfilesOperation OperationName = "ConfigProfileGetConfigProfiles"
|
||||
ConfigProfileGetInboundsByProfileUuidOperation OperationName = "ConfigProfileGetInboundsByProfileUuid"
|
||||
ConfigProfileReorderConfigProfilesOperation OperationName = "ConfigProfileReorderConfigProfiles"
|
||||
ConfigProfileUpdateConfigProfileOperation OperationName = "ConfigProfileUpdateConfigProfile"
|
||||
ExternalSquadAddUsersToExternalSquadOperation OperationName = "ExternalSquadAddUsersToExternalSquad"
|
||||
ExternalSquadCreateExternalSquadOperation OperationName = "ExternalSquadCreateExternalSquad"
|
||||
ExternalSquadDeleteExternalSquadOperation OperationName = "ExternalSquadDeleteExternalSquad"
|
||||
ExternalSquadGetExternalSquadByUuidOperation OperationName = "ExternalSquadGetExternalSquadByUuid"
|
||||
ExternalSquadGetExternalSquadsOperation OperationName = "ExternalSquadGetExternalSquads"
|
||||
ExternalSquadRemoveUsersFromExternalSquadOperation OperationName = "ExternalSquadRemoveUsersFromExternalSquad"
|
||||
ExternalSquadReorderExternalSquadsOperation OperationName = "ExternalSquadReorderExternalSquads"
|
||||
ExternalSquadUpdateExternalSquadOperation OperationName = "ExternalSquadUpdateExternalSquad"
|
||||
HostsBulkActionsDeleteHostsOperation OperationName = "HostsBulkActionsDeleteHosts"
|
||||
HostsBulkActionsDisableHostsOperation OperationName = "HostsBulkActionsDisableHosts"
|
||||
HostsBulkActionsEnableHostsOperation OperationName = "HostsBulkActionsEnableHosts"
|
||||
HostsBulkActionsSetInboundToHostsOperation OperationName = "HostsBulkActionsSetInboundToHosts"
|
||||
HostsBulkActionsSetPortToHostsOperation OperationName = "HostsBulkActionsSetPortToHosts"
|
||||
HostsCreateHostOperation OperationName = "HostsCreateHost"
|
||||
HostsDeleteHostOperation OperationName = "HostsDeleteHost"
|
||||
HostsGetAllHostTagsOperation OperationName = "HostsGetAllHostTags"
|
||||
HostsGetAllHostsOperation OperationName = "HostsGetAllHosts"
|
||||
HostsGetOneHostOperation OperationName = "HostsGetOneHost"
|
||||
HostsReorderHostsOperation OperationName = "HostsReorderHosts"
|
||||
HostsUpdateHostOperation OperationName = "HostsUpdateHost"
|
||||
HwidUserDevicesCreateUserHwidDeviceOperation OperationName = "HwidUserDevicesCreateUserHwidDevice"
|
||||
HwidUserDevicesDeleteAllUserHwidDevicesOperation OperationName = "HwidUserDevicesDeleteAllUserHwidDevices"
|
||||
HwidUserDevicesDeleteUserHwidDeviceOperation OperationName = "HwidUserDevicesDeleteUserHwidDevice"
|
||||
HwidUserDevicesGetAllUsersOperation OperationName = "HwidUserDevicesGetAllUsers"
|
||||
HwidUserDevicesGetHwidDevicesStatsOperation OperationName = "HwidUserDevicesGetHwidDevicesStats"
|
||||
HwidUserDevicesGetTopUsersByHwidDevicesOperation OperationName = "HwidUserDevicesGetTopUsersByHwidDevices"
|
||||
HwidUserDevicesGetUserHwidDevicesOperation OperationName = "HwidUserDevicesGetUserHwidDevices"
|
||||
InfraBillingCreateInfraBillingHistoryRecordOperation OperationName = "InfraBillingCreateInfraBillingHistoryRecord"
|
||||
InfraBillingCreateInfraBillingNodeOperation OperationName = "InfraBillingCreateInfraBillingNode"
|
||||
InfraBillingCreateInfraProviderOperation OperationName = "InfraBillingCreateInfraProvider"
|
||||
InfraBillingDeleteInfraBillingHistoryRecordByUuidOperation OperationName = "InfraBillingDeleteInfraBillingHistoryRecordByUuid"
|
||||
InfraBillingDeleteInfraBillingNodeByUuidOperation OperationName = "InfraBillingDeleteInfraBillingNodeByUuid"
|
||||
InfraBillingDeleteInfraProviderByUuidOperation OperationName = "InfraBillingDeleteInfraProviderByUuid"
|
||||
InfraBillingGetBillingNodesOperation OperationName = "InfraBillingGetBillingNodes"
|
||||
InfraBillingGetInfraBillingHistoryRecordsOperation OperationName = "InfraBillingGetInfraBillingHistoryRecords"
|
||||
InfraBillingGetInfraProviderByUuidOperation OperationName = "InfraBillingGetInfraProviderByUuid"
|
||||
InfraBillingGetInfraProvidersOperation OperationName = "InfraBillingGetInfraProviders"
|
||||
InfraBillingUpdateInfraBillingNodeOperation OperationName = "InfraBillingUpdateInfraBillingNode"
|
||||
InfraBillingUpdateInfraProviderOperation OperationName = "InfraBillingUpdateInfraProvider"
|
||||
InternalSquadAddUsersToInternalSquadOperation OperationName = "InternalSquadAddUsersToInternalSquad"
|
||||
InternalSquadCreateInternalSquadOperation OperationName = "InternalSquadCreateInternalSquad"
|
||||
InternalSquadDeleteInternalSquadOperation OperationName = "InternalSquadDeleteInternalSquad"
|
||||
InternalSquadGetInternalSquadAccessibleNodesOperation OperationName = "InternalSquadGetInternalSquadAccessibleNodes"
|
||||
InternalSquadGetInternalSquadByUuidOperation OperationName = "InternalSquadGetInternalSquadByUuid"
|
||||
InternalSquadGetInternalSquadsOperation OperationName = "InternalSquadGetInternalSquads"
|
||||
InternalSquadRemoveUsersFromInternalSquadOperation OperationName = "InternalSquadRemoveUsersFromInternalSquad"
|
||||
InternalSquadReorderInternalSquadsOperation OperationName = "InternalSquadReorderInternalSquads"
|
||||
InternalSquadUpdateInternalSquadOperation OperationName = "InternalSquadUpdateInternalSquad"
|
||||
IpControlDropConnectionsOperation OperationName = "IpControlDropConnections"
|
||||
IpControlFetchUserIpsOperation OperationName = "IpControlFetchUserIps"
|
||||
IpControlFetchUsersIpsOperation OperationName = "IpControlFetchUsersIps"
|
||||
IpControlGetFetchIpsResultOperation OperationName = "IpControlGetFetchIpsResult"
|
||||
IpControlGetFetchUsersIpsResultOperation OperationName = "IpControlGetFetchUsersIpsResult"
|
||||
KeygenGenerateKeyOperation OperationName = "KeygenGenerateKey"
|
||||
MetadataGetNodeMetadataOperation OperationName = "MetadataGetNodeMetadata"
|
||||
MetadataGetUserMetadataOperation OperationName = "MetadataGetUserMetadata"
|
||||
MetadataUpsertNodeMetadataOperation OperationName = "MetadataUpsertNodeMetadata"
|
||||
MetadataUpsertUserMetadataOperation OperationName = "MetadataUpsertUserMetadata"
|
||||
NodePluginCloneNodePluginOperation OperationName = "NodePluginCloneNodePlugin"
|
||||
NodePluginCreateConfigOperation OperationName = "NodePluginCreateConfig"
|
||||
NodePluginDeleteConfigOperation OperationName = "NodePluginDeleteConfig"
|
||||
NodePluginGetAllConfigsOperation OperationName = "NodePluginGetAllConfigs"
|
||||
NodePluginGetConfigByUuidOperation OperationName = "NodePluginGetConfigByUuid"
|
||||
NodePluginPluginExecutorOperation OperationName = "NodePluginPluginExecutor"
|
||||
NodePluginReorderNodePluginsOperation OperationName = "NodePluginReorderNodePlugins"
|
||||
NodePluginUpdateConfigOperation OperationName = "NodePluginUpdateConfig"
|
||||
NodesBulkNodesActionsOperation OperationName = "NodesBulkNodesActions"
|
||||
NodesBulkNodesUpdateOperation OperationName = "NodesBulkNodesUpdate"
|
||||
NodesCreateNodeOperation OperationName = "NodesCreateNode"
|
||||
NodesDeleteNodeOperation OperationName = "NodesDeleteNode"
|
||||
NodesDisableNodeOperation OperationName = "NodesDisableNode"
|
||||
NodesEnableNodeOperation OperationName = "NodesEnableNode"
|
||||
NodesGetAllNodesOperation OperationName = "NodesGetAllNodes"
|
||||
NodesGetAllNodesTagsOperation OperationName = "NodesGetAllNodesTags"
|
||||
NodesGetOneNodeOperation OperationName = "NodesGetOneNode"
|
||||
NodesProfileModificationOperation OperationName = "NodesProfileModification"
|
||||
NodesReorderNodesOperation OperationName = "NodesReorderNodes"
|
||||
NodesResetNodeTrafficOperation OperationName = "NodesResetNodeTraffic"
|
||||
NodesRestartAllNodesOperation OperationName = "NodesRestartAllNodes"
|
||||
NodesRestartNodeOperation OperationName = "NodesRestartNode"
|
||||
NodesUpdateNodeOperation OperationName = "NodesUpdateNode"
|
||||
NodesUsageHistoryGetStatsNodesUsageOperation OperationName = "NodesUsageHistoryGetStatsNodesUsage"
|
||||
PasskeyDeletePasskeyOperation OperationName = "PasskeyDeletePasskey"
|
||||
PasskeyGetActivePasskeysOperation OperationName = "PasskeyGetActivePasskeys"
|
||||
PasskeyPasskeyRegistrationOptionsOperation OperationName = "PasskeyPasskeyRegistrationOptions"
|
||||
PasskeyPasskeyRegistrationVerifyOperation OperationName = "PasskeyPasskeyRegistrationVerify"
|
||||
PasskeyUpdatePasskeyOperation OperationName = "PasskeyUpdatePasskey"
|
||||
RemnawaveSettingsGetSettingsOperation OperationName = "RemnawaveSettingsGetSettings"
|
||||
RemnawaveSettingsUpdateSettingsOperation OperationName = "RemnawaveSettingsUpdateSettings"
|
||||
SnippetsCreateSnippetOperation OperationName = "SnippetsCreateSnippet"
|
||||
SnippetsDeleteSnippetByNameOperation OperationName = "SnippetsDeleteSnippetByName"
|
||||
SnippetsGetSnippetsOperation OperationName = "SnippetsGetSnippets"
|
||||
SnippetsUpdateSnippetOperation OperationName = "SnippetsUpdateSnippet"
|
||||
SubscriptionGetSubscriptionOperation OperationName = "SubscriptionGetSubscription"
|
||||
SubscriptionGetSubscriptionByClientTypeOperation OperationName = "SubscriptionGetSubscriptionByClientType"
|
||||
SubscriptionGetSubscriptionInfoByShortUuidOperation OperationName = "SubscriptionGetSubscriptionInfoByShortUuid"
|
||||
SubscriptionPageConfigCloneSubscriptionPageConfigOperation OperationName = "SubscriptionPageConfigCloneSubscriptionPageConfig"
|
||||
SubscriptionPageConfigCreateConfigOperation OperationName = "SubscriptionPageConfigCreateConfig"
|
||||
SubscriptionPageConfigDeleteConfigOperation OperationName = "SubscriptionPageConfigDeleteConfig"
|
||||
SubscriptionPageConfigGetAllConfigsOperation OperationName = "SubscriptionPageConfigGetAllConfigs"
|
||||
SubscriptionPageConfigGetConfigByUuidOperation OperationName = "SubscriptionPageConfigGetConfigByUuid"
|
||||
SubscriptionPageConfigReorderSubscriptionPageConfigsOperation OperationName = "SubscriptionPageConfigReorderSubscriptionPageConfigs"
|
||||
SubscriptionPageConfigUpdateConfigOperation OperationName = "SubscriptionPageConfigUpdateConfig"
|
||||
SubscriptionSettingsGetSettingsOperation OperationName = "SubscriptionSettingsGetSettings"
|
||||
SubscriptionSettingsUpdateSettingsOperation OperationName = "SubscriptionSettingsUpdateSettings"
|
||||
SubscriptionTemplateCreateTemplateOperation OperationName = "SubscriptionTemplateCreateTemplate"
|
||||
SubscriptionTemplateDeleteTemplateOperation OperationName = "SubscriptionTemplateDeleteTemplate"
|
||||
SubscriptionTemplateGetAllTemplatesOperation OperationName = "SubscriptionTemplateGetAllTemplates"
|
||||
SubscriptionTemplateGetTemplateByUuidOperation OperationName = "SubscriptionTemplateGetTemplateByUuid"
|
||||
SubscriptionTemplateReorderSubscriptionTemplatesOperation OperationName = "SubscriptionTemplateReorderSubscriptionTemplates"
|
||||
SubscriptionTemplateUpdateTemplateOperation OperationName = "SubscriptionTemplateUpdateTemplate"
|
||||
SubscriptionsGetAllSubscriptionsOperation OperationName = "SubscriptionsGetAllSubscriptions"
|
||||
SubscriptionsGetConnectionKeysByUuidOperation OperationName = "SubscriptionsGetConnectionKeysByUuid"
|
||||
SubscriptionsGetRawSubscriptionByShortUuidOperation OperationName = "SubscriptionsGetRawSubscriptionByShortUuid"
|
||||
SubscriptionsGetSubpageConfigByShortUuidOperation OperationName = "SubscriptionsGetSubpageConfigByShortUuid"
|
||||
SubscriptionsGetSubscriptionByShortUuidProtectedOperation OperationName = "SubscriptionsGetSubscriptionByShortUuidProtected"
|
||||
SubscriptionsGetSubscriptionByUsernameOperation OperationName = "SubscriptionsGetSubscriptionByUsername"
|
||||
SubscriptionsGetSubscriptionByUuidOperation OperationName = "SubscriptionsGetSubscriptionByUuid"
|
||||
SystemDebugSrrMatcherOperation OperationName = "SystemDebugSrrMatcher"
|
||||
SystemEncryptHappCryptoLinkOperation OperationName = "SystemEncryptHappCryptoLink"
|
||||
SystemGetBandwidthStatsOperation OperationName = "SystemGetBandwidthStats"
|
||||
SystemGetMetadataOperation OperationName = "SystemGetMetadata"
|
||||
SystemGetNodesMetricsOperation OperationName = "SystemGetNodesMetrics"
|
||||
SystemGetNodesStatisticsOperation OperationName = "SystemGetNodesStatistics"
|
||||
SystemGetRecapOperation OperationName = "SystemGetRecap"
|
||||
SystemGetRemnawaveHealthOperation OperationName = "SystemGetRemnawaveHealth"
|
||||
SystemGetStatsOperation OperationName = "SystemGetStats"
|
||||
SystemGetX25519KeypairsOperation OperationName = "SystemGetX25519Keypairs"
|
||||
TorrentBlockerReportsGetTorrentBlockerReportsOperation OperationName = "TorrentBlockerReportsGetTorrentBlockerReports"
|
||||
TorrentBlockerReportsGetTorrentBlockerReportsStatsOperation OperationName = "TorrentBlockerReportsGetTorrentBlockerReportsStats"
|
||||
TorrentBlockerReportsTruncateTorrentBlockerReportsOperation OperationName = "TorrentBlockerReportsTruncateTorrentBlockerReports"
|
||||
UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryOperation OperationName = "UserSubscriptionRequestHistoryGetSubscriptionRequestHistory"
|
||||
UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryStatsOperation OperationName = "UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryStats"
|
||||
UsersBulkActionsBulkAllExtendExpirationDateOperation OperationName = "UsersBulkActionsBulkAllExtendExpirationDate"
|
||||
UsersBulkActionsBulkAllResetUserTrafficOperation OperationName = "UsersBulkActionsBulkAllResetUserTraffic"
|
||||
UsersBulkActionsBulkDeleteUsersOperation OperationName = "UsersBulkActionsBulkDeleteUsers"
|
||||
UsersBulkActionsBulkDeleteUsersByStatusOperation OperationName = "UsersBulkActionsBulkDeleteUsersByStatus"
|
||||
UsersBulkActionsBulkExtendExpirationDateOperation OperationName = "UsersBulkActionsBulkExtendExpirationDate"
|
||||
UsersBulkActionsBulkResetUserTrafficOperation OperationName = "UsersBulkActionsBulkResetUserTraffic"
|
||||
UsersBulkActionsBulkRevokeUsersSubscriptionOperation OperationName = "UsersBulkActionsBulkRevokeUsersSubscription"
|
||||
UsersBulkActionsBulkUpdateAllUsersOperation OperationName = "UsersBulkActionsBulkUpdateAllUsers"
|
||||
UsersBulkActionsBulkUpdateUsersOperation OperationName = "UsersBulkActionsBulkUpdateUsers"
|
||||
UsersBulkActionsBulkUpdateUsersInternalSquadsOperation OperationName = "UsersBulkActionsBulkUpdateUsersInternalSquads"
|
||||
UsersCreateUserOperation OperationName = "UsersCreateUser"
|
||||
UsersDeleteUserOperation OperationName = "UsersDeleteUser"
|
||||
UsersDisableUserOperation OperationName = "UsersDisableUser"
|
||||
UsersEnableUserOperation OperationName = "UsersEnableUser"
|
||||
UsersGetAllTagsOperation OperationName = "UsersGetAllTags"
|
||||
UsersGetAllUsersOperation OperationName = "UsersGetAllUsers"
|
||||
UsersGetUserAccessibleNodesOperation OperationName = "UsersGetUserAccessibleNodes"
|
||||
UsersGetUserByIdOperation OperationName = "UsersGetUserById"
|
||||
UsersGetUserByShortUuidOperation OperationName = "UsersGetUserByShortUuid"
|
||||
UsersGetUserByTelegramIdOperation OperationName = "UsersGetUserByTelegramId"
|
||||
UsersGetUserByUsernameOperation OperationName = "UsersGetUserByUsername"
|
||||
UsersGetUserByUuidOperation OperationName = "UsersGetUserByUuid"
|
||||
UsersGetUserSubscriptionRequestHistoryOperation OperationName = "UsersGetUserSubscriptionRequestHistory"
|
||||
UsersGetUsersByEmailOperation OperationName = "UsersGetUsersByEmail"
|
||||
UsersGetUsersByTagOperation OperationName = "UsersGetUsersByTag"
|
||||
UsersResetUserTrafficOperation OperationName = "UsersResetUserTraffic"
|
||||
UsersResolveUserOperation OperationName = "UsersResolveUser"
|
||||
UsersRevokeUserSubscriptionOperation OperationName = "UsersRevokeUserSubscription"
|
||||
UsersUpdateUserOperation OperationName = "UsersUpdateUser"
|
||||
)
|
||||
@@ -0,0 +1,481 @@
|
||||
// Code generated by ogen, DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// ApiTokensDeleteParams is parameters of ApiTokens_delete operation.
|
||||
type ApiTokensDeleteParams struct {
|
||||
// UUID of the API token.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// BandwidthStatsNodesGetNodeUserUsageParams is parameters of BandwidthStatsNodes_getNodeUserUsage operation.
|
||||
type BandwidthStatsNodesGetNodeUserUsageParams struct {
|
||||
// Start date.
|
||||
Start time.Time
|
||||
// End date.
|
||||
End time.Time
|
||||
// UUID of the node.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// BandwidthStatsNodesGetStatsNodeUsersUsageParams is parameters of BandwidthStatsNodes_getStatsNodeUsersUsage operation.
|
||||
type BandwidthStatsNodesGetStatsNodeUsersUsageParams 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
|
||||
// UUID of the node.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// BandwidthStatsUsersGetStatsNodesUsageParams is parameters of BandwidthStatsUsers_getStatsNodesUsage operation.
|
||||
type BandwidthStatsUsersGetStatsNodesUsageParams struct {
|
||||
// Limit of top nodes to return.
|
||||
TopNodesLimit int
|
||||
// Start date (YYYY-MM-DD).
|
||||
Start time.Time
|
||||
// End date (YYYY-MM-DD).
|
||||
End time.Time
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// BandwidthStatsUsersGetUserUsageByRangeParams is parameters of BandwidthStatsUsers_getUserUsageByRange operation.
|
||||
type BandwidthStatsUsersGetUserUsageByRangeParams struct {
|
||||
// Start date.
|
||||
Start time.Time
|
||||
// End date.
|
||||
End time.Time
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ConfigProfileDeleteConfigProfileByUuidParams is parameters of ConfigProfile_deleteConfigProfileByUuid operation.
|
||||
type ConfigProfileDeleteConfigProfileByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ConfigProfileGetComputedConfigProfileByUuidParams is parameters of ConfigProfile_getComputedConfigProfileByUuid operation.
|
||||
type ConfigProfileGetComputedConfigProfileByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ConfigProfileGetConfigProfileByUuidParams is parameters of ConfigProfile_getConfigProfileByUuid operation.
|
||||
type ConfigProfileGetConfigProfileByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ConfigProfileGetInboundsByProfileUuidParams is parameters of ConfigProfile_getInboundsByProfileUuid operation.
|
||||
type ConfigProfileGetInboundsByProfileUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ExternalSquadAddUsersToExternalSquadParams is parameters of ExternalSquad_addUsersToExternalSquad operation.
|
||||
type ExternalSquadAddUsersToExternalSquadParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ExternalSquadDeleteExternalSquadParams is parameters of ExternalSquad_deleteExternalSquad operation.
|
||||
type ExternalSquadDeleteExternalSquadParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ExternalSquadGetExternalSquadByUuidParams is parameters of ExternalSquad_getExternalSquadByUuid operation.
|
||||
type ExternalSquadGetExternalSquadByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// ExternalSquadRemoveUsersFromExternalSquadParams is parameters of ExternalSquad_removeUsersFromExternalSquad operation.
|
||||
type ExternalSquadRemoveUsersFromExternalSquadParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// HostsDeleteHostParams is parameters of Hosts_deleteHost operation.
|
||||
type HostsDeleteHostParams struct {
|
||||
// UUID of the host.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// HostsGetOneHostParams is parameters of Hosts_getOneHost operation.
|
||||
type HostsGetOneHostParams struct {
|
||||
// UUID of the host.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// HwidUserDevicesGetAllUsersParams is parameters of HwidUserDevices_getAllUsers operation.
|
||||
type HwidUserDevicesGetAllUsersParams struct {
|
||||
// Page size for pagination.
|
||||
Size OptInt `json:",omitempty,omitzero"`
|
||||
// Offset for pagination.
|
||||
Start OptInt `json:",omitempty,omitzero"`
|
||||
}
|
||||
|
||||
// HwidUserDevicesGetTopUsersByHwidDevicesParams is parameters of HwidUserDevices_getTopUsersByHwidDevices operation.
|
||||
type HwidUserDevicesGetTopUsersByHwidDevicesParams struct {
|
||||
// Page size for pagination.
|
||||
Size OptInt `json:",omitempty,omitzero"`
|
||||
// Offset for pagination.
|
||||
Start OptInt `json:",omitempty,omitzero"`
|
||||
}
|
||||
|
||||
// HwidUserDevicesGetUserHwidDevicesParams is parameters of HwidUserDevices_getUserHwidDevices operation.
|
||||
type HwidUserDevicesGetUserHwidDevicesParams struct {
|
||||
// UUID of the user.
|
||||
UserUuid string
|
||||
}
|
||||
|
||||
// InfraBillingDeleteInfraBillingHistoryRecordByUuidParams is parameters of InfraBilling_deleteInfraBillingHistoryRecordByUuid operation.
|
||||
type InfraBillingDeleteInfraBillingHistoryRecordByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InfraBillingDeleteInfraBillingNodeByUuidParams is parameters of InfraBilling_deleteInfraBillingNodeByUuid operation.
|
||||
type InfraBillingDeleteInfraBillingNodeByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InfraBillingDeleteInfraProviderByUuidParams is parameters of InfraBilling_deleteInfraProviderByUuid operation.
|
||||
type InfraBillingDeleteInfraProviderByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InfraBillingGetInfraProviderByUuidParams is parameters of InfraBilling_getInfraProviderByUuid operation.
|
||||
type InfraBillingGetInfraProviderByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InternalSquadAddUsersToInternalSquadParams is parameters of InternalSquad_addUsersToInternalSquad operation.
|
||||
type InternalSquadAddUsersToInternalSquadParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InternalSquadDeleteInternalSquadParams is parameters of InternalSquad_deleteInternalSquad operation.
|
||||
type InternalSquadDeleteInternalSquadParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InternalSquadGetInternalSquadAccessibleNodesParams is parameters of InternalSquad_getInternalSquadAccessibleNodes operation.
|
||||
type InternalSquadGetInternalSquadAccessibleNodesParams struct {
|
||||
// UUID of the internal squad.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InternalSquadGetInternalSquadByUuidParams is parameters of InternalSquad_getInternalSquadByUuid operation.
|
||||
type InternalSquadGetInternalSquadByUuidParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// InternalSquadRemoveUsersFromInternalSquadParams is parameters of InternalSquad_removeUsersFromInternalSquad operation.
|
||||
type InternalSquadRemoveUsersFromInternalSquadParams struct {
|
||||
UUID string
|
||||
}
|
||||
|
||||
// IpControlFetchUserIpsParams is parameters of IpControl_fetchUserIps operation.
|
||||
type IpControlFetchUserIpsParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// IpControlFetchUsersIpsParams is parameters of IpControl_fetchUsersIps operation.
|
||||
type IpControlFetchUsersIpsParams struct {
|
||||
// UUID of the node.
|
||||
NodeUuid string
|
||||
}
|
||||
|
||||
// IpControlGetFetchIpsResultParams is parameters of IpControl_getFetchIpsResult operation.
|
||||
type IpControlGetFetchIpsResultParams struct {
|
||||
// Job ID.
|
||||
JobId string
|
||||
}
|
||||
|
||||
// IpControlGetFetchUsersIpsResultParams is parameters of IpControl_getFetchUsersIpsResult operation.
|
||||
type IpControlGetFetchUsersIpsResultParams struct {
|
||||
// Job ID.
|
||||
JobId string
|
||||
}
|
||||
|
||||
// MetadataGetNodeMetadataParams is parameters of Metadata_getNodeMetadata operation.
|
||||
type MetadataGetNodeMetadataParams struct {
|
||||
// UUID of the node.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// MetadataGetUserMetadataParams is parameters of Metadata_getUserMetadata operation.
|
||||
type MetadataGetUserMetadataParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// MetadataUpsertNodeMetadataParams is parameters of Metadata_upsertNodeMetadata operation.
|
||||
type MetadataUpsertNodeMetadataParams struct {
|
||||
// UUID of the node.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// MetadataUpsertUserMetadataParams is parameters of Metadata_upsertUserMetadata operation.
|
||||
type MetadataUpsertUserMetadataParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodePluginDeleteConfigParams is parameters of NodePlugin_deleteConfig operation.
|
||||
type NodePluginDeleteConfigParams struct {
|
||||
// Node plugin UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodePluginGetConfigByUuidParams is parameters of NodePlugin_getConfigByUuid operation.
|
||||
type NodePluginGetConfigByUuidParams struct {
|
||||
// Node plugin UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodesDeleteNodeParams is parameters of Nodes_deleteNode operation.
|
||||
type NodesDeleteNodeParams struct {
|
||||
// Node UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodesDisableNodeParams is parameters of Nodes_disableNode operation.
|
||||
type NodesDisableNodeParams struct {
|
||||
// Node UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodesEnableNodeParams is parameters of Nodes_enableNode operation.
|
||||
type NodesEnableNodeParams struct {
|
||||
// Node UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodesGetOneNodeParams is parameters of Nodes_getOneNode operation.
|
||||
type NodesGetOneNodeParams struct {
|
||||
// Node UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodesResetNodeTrafficParams is parameters of Nodes_resetNodeTraffic operation.
|
||||
type NodesResetNodeTrafficParams struct {
|
||||
// Node UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodesRestartNodeParams is parameters of Nodes_restartNode operation.
|
||||
type NodesRestartNodeParams struct {
|
||||
// Node UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// NodesUsageHistoryGetStatsNodesUsageParams is parameters of NodesUsageHistory_getStatsNodesUsage operation.
|
||||
type NodesUsageHistoryGetStatsNodesUsageParams struct {
|
||||
// Limit of top nodes to return.
|
||||
TopNodesLimit int
|
||||
// Start date (YYYY-MM-DD).
|
||||
Start time.Time
|
||||
// End date (YYYY-MM-DD).
|
||||
End time.Time
|
||||
}
|
||||
|
||||
// SubscriptionGetSubscriptionParams is parameters of Subscription_getSubscription operation.
|
||||
type SubscriptionGetSubscriptionParams struct {
|
||||
// Short UUID of the user.
|
||||
ShortUuid string
|
||||
}
|
||||
|
||||
// SubscriptionGetSubscriptionByClientTypeParams is parameters of Subscription_getSubscriptionByClientType operation.
|
||||
type SubscriptionGetSubscriptionByClientTypeParams struct {
|
||||
// Client type.
|
||||
ClientType SubscriptionGetSubscriptionByClientTypeClientType
|
||||
// Short UUID of the user.
|
||||
ShortUuid string
|
||||
}
|
||||
|
||||
// SubscriptionGetSubscriptionInfoByShortUuidParams is parameters of Subscription_getSubscriptionInfoByShortUuid operation.
|
||||
type SubscriptionGetSubscriptionInfoByShortUuidParams struct {
|
||||
// Short UUID of the user.
|
||||
ShortUuid string
|
||||
}
|
||||
|
||||
// SubscriptionPageConfigDeleteConfigParams is parameters of SubscriptionPageConfig_deleteConfig operation.
|
||||
type SubscriptionPageConfigDeleteConfigParams struct {
|
||||
// Subscription page config UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// SubscriptionPageConfigGetConfigByUuidParams is parameters of SubscriptionPageConfig_getConfigByUuid operation.
|
||||
type SubscriptionPageConfigGetConfigByUuidParams struct {
|
||||
// Subscription page config UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// SubscriptionTemplateDeleteTemplateParams is parameters of SubscriptionTemplate_deleteTemplate operation.
|
||||
type SubscriptionTemplateDeleteTemplateParams struct {
|
||||
// Template UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// SubscriptionTemplateGetTemplateByUuidParams is parameters of SubscriptionTemplate_getTemplateByUuid operation.
|
||||
type SubscriptionTemplateGetTemplateByUuidParams struct {
|
||||
// Template UUID.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// SubscriptionsGetAllSubscriptionsParams is parameters of Subscriptions_getAllSubscriptions operation.
|
||||
type SubscriptionsGetAllSubscriptionsParams struct {
|
||||
// Number of subscriptions to return, no more than 500.
|
||||
Size OptInt `json:",omitempty,omitzero"`
|
||||
// Start index (offset) of the users to return, default is 0.
|
||||
Start OptInt `json:",omitempty,omitzero"`
|
||||
}
|
||||
|
||||
// SubscriptionsGetConnectionKeysByUuidParams is parameters of Subscriptions_getConnectionKeysByUuid operation.
|
||||
type SubscriptionsGetConnectionKeysByUuidParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// SubscriptionsGetRawSubscriptionByShortUuidParams is parameters of Subscriptions_getRawSubscriptionByShortUuid operation.
|
||||
type SubscriptionsGetRawSubscriptionByShortUuidParams struct {
|
||||
// Include disabled hosts in the subscription. Default is false.
|
||||
WithDisabledHosts OptBool `json:",omitempty,omitzero"`
|
||||
// Short UUID of the user.
|
||||
ShortUuid string
|
||||
}
|
||||
|
||||
// SubscriptionsGetSubpageConfigByShortUuidParams is parameters of Subscriptions_getSubpageConfigByShortUuid operation.
|
||||
type SubscriptionsGetSubpageConfigByShortUuidParams struct {
|
||||
// Short UUID of the user.
|
||||
ShortUuid string
|
||||
}
|
||||
|
||||
// SubscriptionsGetSubscriptionByShortUuidProtectedParams is parameters of Subscriptions_getSubscriptionByShortUuidProtected operation.
|
||||
type SubscriptionsGetSubscriptionByShortUuidProtectedParams struct {
|
||||
// Short uuid of the user.
|
||||
ShortUuid string
|
||||
}
|
||||
|
||||
// SubscriptionsGetSubscriptionByUsernameParams is parameters of Subscriptions_getSubscriptionByUsername operation.
|
||||
type SubscriptionsGetSubscriptionByUsernameParams struct {
|
||||
// Username of the user.
|
||||
Username string
|
||||
}
|
||||
|
||||
// SubscriptionsGetSubscriptionByUuidParams is parameters of Subscriptions_getSubscriptionByUuid operation.
|
||||
type SubscriptionsGetSubscriptionByUuidParams struct {
|
||||
// Uuid of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// TorrentBlockerReportsGetTorrentBlockerReportsParams is parameters of TorrentBlockerReports_getTorrentBlockerReports operation.
|
||||
type TorrentBlockerReportsGetTorrentBlockerReportsParams struct {
|
||||
// Page size for pagination.
|
||||
Size OptInt `json:",omitempty,omitzero"`
|
||||
// Offset for pagination.
|
||||
Start OptInt `json:",omitempty,omitzero"`
|
||||
}
|
||||
|
||||
// UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryParams is parameters of UserSubscriptionRequestHistory_getSubscriptionRequestHistory operation.
|
||||
type UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryParams struct {
|
||||
// Page size for pagination.
|
||||
Size OptInt `json:",omitempty,omitzero"`
|
||||
// Offset for pagination.
|
||||
Start OptInt `json:",omitempty,omitzero"`
|
||||
}
|
||||
|
||||
// UsersDeleteUserParams is parameters of Users_deleteUser operation.
|
||||
type UsersDeleteUserParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// UsersDisableUserParams is parameters of Users_disableUser operation.
|
||||
type UsersDisableUserParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// UsersEnableUserParams is parameters of Users_enableUser operation.
|
||||
type UsersEnableUserParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// UsersGetAllUsersParams is parameters of Users_getAllUsers operation.
|
||||
type UsersGetAllUsersParams struct {
|
||||
// Page size for pagination.
|
||||
Size OptInt `json:",omitempty,omitzero"`
|
||||
// Offset for pagination.
|
||||
Start OptInt `json:",omitempty,omitzero"`
|
||||
}
|
||||
|
||||
// UsersGetUserAccessibleNodesParams is parameters of Users_getUserAccessibleNodes operation.
|
||||
type UsersGetUserAccessibleNodesParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// UsersGetUserByIdParams is parameters of Users_getUserById operation.
|
||||
type UsersGetUserByIdParams struct {
|
||||
// ID of the user.
|
||||
ID string
|
||||
}
|
||||
|
||||
// UsersGetUserByShortUuidParams is parameters of Users_getUserByShortUuid operation.
|
||||
type UsersGetUserByShortUuidParams struct {
|
||||
// Short UUID of the user.
|
||||
ShortUuid string
|
||||
}
|
||||
|
||||
// UsersGetUserByTelegramIdParams is parameters of Users_getUserByTelegramId operation.
|
||||
type UsersGetUserByTelegramIdParams struct {
|
||||
// Telegram ID of the user.
|
||||
TelegramId string
|
||||
}
|
||||
|
||||
// UsersGetUserByUsernameParams is parameters of Users_getUserByUsername operation.
|
||||
type UsersGetUserByUsernameParams struct {
|
||||
// Username of the user.
|
||||
Username string
|
||||
}
|
||||
|
||||
// UsersGetUserByUuidParams is parameters of Users_getUserByUuid operation.
|
||||
type UsersGetUserByUuidParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// UsersGetUserSubscriptionRequestHistoryParams is parameters of Users_getUserSubscriptionRequestHistory operation.
|
||||
type UsersGetUserSubscriptionRequestHistoryParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// UsersGetUsersByEmailParams is parameters of Users_getUsersByEmail operation.
|
||||
type UsersGetUsersByEmailParams struct {
|
||||
// Email of the user.
|
||||
Email string
|
||||
}
|
||||
|
||||
// UsersGetUsersByTagParams is parameters of Users_getUsersByTag operation.
|
||||
type UsersGetUsersByTagParams struct {
|
||||
// Tag of the user.
|
||||
Tag string
|
||||
}
|
||||
|
||||
// UsersResetUserTrafficParams is parameters of Users_resetUserTraffic operation.
|
||||
type UsersResetUserTrafficParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
|
||||
// UsersRevokeUserSubscriptionParams is parameters of Users_revokeUserSubscription operation.
|
||||
type UsersRevokeUserSubscriptionParams struct {
|
||||
// UUID of the user.
|
||||
UUID string
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+23100
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,226 @@
|
||||
// Code generated by ogen, DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/go-faster/errors"
|
||||
)
|
||||
|
||||
// SecuritySource is provider of security values (tokens, passwords, etc.).
|
||||
type SecuritySource interface {
|
||||
// Authorization provides Authorization security value.
|
||||
// JWT obtained login.
|
||||
Authorization(ctx context.Context, operationName OperationName) (Authorization, error)
|
||||
}
|
||||
|
||||
// operationRolesAuthorization is a private map storing roles per operation.
|
||||
var operationRolesAuthorization = map[string][]string{
|
||||
ApiTokensCreateOperation: []string{},
|
||||
ApiTokensDeleteOperation: []string{},
|
||||
ApiTokensFindAllOperation: []string{},
|
||||
BandwidthStatsNodesGetNodeUserUsageOperation: []string{},
|
||||
BandwidthStatsNodesGetStatsNodeUsersUsageOperation: []string{},
|
||||
BandwidthStatsUsersGetStatsNodesUsageOperation: []string{},
|
||||
BandwidthStatsUsersGetUserUsageByRangeOperation: []string{},
|
||||
ConfigProfileCreateConfigProfileOperation: []string{},
|
||||
ConfigProfileDeleteConfigProfileByUuidOperation: []string{},
|
||||
ConfigProfileGetAllInboundsOperation: []string{},
|
||||
ConfigProfileGetComputedConfigProfileByUuidOperation: []string{},
|
||||
ConfigProfileGetConfigProfileByUuidOperation: []string{},
|
||||
ConfigProfileGetConfigProfilesOperation: []string{},
|
||||
ConfigProfileGetInboundsByProfileUuidOperation: []string{},
|
||||
ConfigProfileReorderConfigProfilesOperation: []string{},
|
||||
ConfigProfileUpdateConfigProfileOperation: []string{},
|
||||
ExternalSquadAddUsersToExternalSquadOperation: []string{},
|
||||
ExternalSquadCreateExternalSquadOperation: []string{},
|
||||
ExternalSquadDeleteExternalSquadOperation: []string{},
|
||||
ExternalSquadGetExternalSquadByUuidOperation: []string{},
|
||||
ExternalSquadGetExternalSquadsOperation: []string{},
|
||||
ExternalSquadRemoveUsersFromExternalSquadOperation: []string{},
|
||||
ExternalSquadReorderExternalSquadsOperation: []string{},
|
||||
ExternalSquadUpdateExternalSquadOperation: []string{},
|
||||
HostsBulkActionsDeleteHostsOperation: []string{},
|
||||
HostsBulkActionsDisableHostsOperation: []string{},
|
||||
HostsBulkActionsEnableHostsOperation: []string{},
|
||||
HostsBulkActionsSetInboundToHostsOperation: []string{},
|
||||
HostsBulkActionsSetPortToHostsOperation: []string{},
|
||||
HostsCreateHostOperation: []string{},
|
||||
HostsDeleteHostOperation: []string{},
|
||||
HostsGetAllHostTagsOperation: []string{},
|
||||
HostsGetAllHostsOperation: []string{},
|
||||
HostsGetOneHostOperation: []string{},
|
||||
HostsReorderHostsOperation: []string{},
|
||||
HostsUpdateHostOperation: []string{},
|
||||
HwidUserDevicesCreateUserHwidDeviceOperation: []string{},
|
||||
HwidUserDevicesDeleteAllUserHwidDevicesOperation: []string{},
|
||||
HwidUserDevicesDeleteUserHwidDeviceOperation: []string{},
|
||||
HwidUserDevicesGetAllUsersOperation: []string{},
|
||||
HwidUserDevicesGetHwidDevicesStatsOperation: []string{},
|
||||
HwidUserDevicesGetTopUsersByHwidDevicesOperation: []string{},
|
||||
HwidUserDevicesGetUserHwidDevicesOperation: []string{},
|
||||
InfraBillingCreateInfraBillingHistoryRecordOperation: []string{},
|
||||
InfraBillingCreateInfraBillingNodeOperation: []string{},
|
||||
InfraBillingCreateInfraProviderOperation: []string{},
|
||||
InfraBillingDeleteInfraBillingHistoryRecordByUuidOperation: []string{},
|
||||
InfraBillingDeleteInfraBillingNodeByUuidOperation: []string{},
|
||||
InfraBillingDeleteInfraProviderByUuidOperation: []string{},
|
||||
InfraBillingGetBillingNodesOperation: []string{},
|
||||
InfraBillingGetInfraBillingHistoryRecordsOperation: []string{},
|
||||
InfraBillingGetInfraProviderByUuidOperation: []string{},
|
||||
InfraBillingGetInfraProvidersOperation: []string{},
|
||||
InfraBillingUpdateInfraBillingNodeOperation: []string{},
|
||||
InfraBillingUpdateInfraProviderOperation: []string{},
|
||||
InternalSquadAddUsersToInternalSquadOperation: []string{},
|
||||
InternalSquadCreateInternalSquadOperation: []string{},
|
||||
InternalSquadDeleteInternalSquadOperation: []string{},
|
||||
InternalSquadGetInternalSquadAccessibleNodesOperation: []string{},
|
||||
InternalSquadGetInternalSquadByUuidOperation: []string{},
|
||||
InternalSquadGetInternalSquadsOperation: []string{},
|
||||
InternalSquadRemoveUsersFromInternalSquadOperation: []string{},
|
||||
InternalSquadReorderInternalSquadsOperation: []string{},
|
||||
InternalSquadUpdateInternalSquadOperation: []string{},
|
||||
IpControlDropConnectionsOperation: []string{},
|
||||
IpControlFetchUserIpsOperation: []string{},
|
||||
IpControlFetchUsersIpsOperation: []string{},
|
||||
IpControlGetFetchIpsResultOperation: []string{},
|
||||
IpControlGetFetchUsersIpsResultOperation: []string{},
|
||||
KeygenGenerateKeyOperation: []string{},
|
||||
MetadataGetNodeMetadataOperation: []string{},
|
||||
MetadataGetUserMetadataOperation: []string{},
|
||||
MetadataUpsertNodeMetadataOperation: []string{},
|
||||
MetadataUpsertUserMetadataOperation: []string{},
|
||||
NodePluginCloneNodePluginOperation: []string{},
|
||||
NodePluginCreateConfigOperation: []string{},
|
||||
NodePluginDeleteConfigOperation: []string{},
|
||||
NodePluginGetAllConfigsOperation: []string{},
|
||||
NodePluginGetConfigByUuidOperation: []string{},
|
||||
NodePluginPluginExecutorOperation: []string{},
|
||||
NodePluginReorderNodePluginsOperation: []string{},
|
||||
NodePluginUpdateConfigOperation: []string{},
|
||||
NodesBulkNodesActionsOperation: []string{},
|
||||
NodesBulkNodesUpdateOperation: []string{},
|
||||
NodesCreateNodeOperation: []string{},
|
||||
NodesDeleteNodeOperation: []string{},
|
||||
NodesDisableNodeOperation: []string{},
|
||||
NodesEnableNodeOperation: []string{},
|
||||
NodesGetAllNodesOperation: []string{},
|
||||
NodesGetAllNodesTagsOperation: []string{},
|
||||
NodesGetOneNodeOperation: []string{},
|
||||
NodesProfileModificationOperation: []string{},
|
||||
NodesReorderNodesOperation: []string{},
|
||||
NodesResetNodeTrafficOperation: []string{},
|
||||
NodesRestartAllNodesOperation: []string{},
|
||||
NodesRestartNodeOperation: []string{},
|
||||
NodesUpdateNodeOperation: []string{},
|
||||
NodesUsageHistoryGetStatsNodesUsageOperation: []string{},
|
||||
PasskeyDeletePasskeyOperation: []string{},
|
||||
PasskeyGetActivePasskeysOperation: []string{},
|
||||
PasskeyPasskeyRegistrationOptionsOperation: []string{},
|
||||
PasskeyPasskeyRegistrationVerifyOperation: []string{},
|
||||
PasskeyUpdatePasskeyOperation: []string{},
|
||||
RemnawaveSettingsGetSettingsOperation: []string{},
|
||||
RemnawaveSettingsUpdateSettingsOperation: []string{},
|
||||
SnippetsCreateSnippetOperation: []string{},
|
||||
SnippetsDeleteSnippetByNameOperation: []string{},
|
||||
SnippetsGetSnippetsOperation: []string{},
|
||||
SnippetsUpdateSnippetOperation: []string{},
|
||||
SubscriptionPageConfigCloneSubscriptionPageConfigOperation: []string{},
|
||||
SubscriptionPageConfigCreateConfigOperation: []string{},
|
||||
SubscriptionPageConfigDeleteConfigOperation: []string{},
|
||||
SubscriptionPageConfigGetAllConfigsOperation: []string{},
|
||||
SubscriptionPageConfigGetConfigByUuidOperation: []string{},
|
||||
SubscriptionPageConfigReorderSubscriptionPageConfigsOperation: []string{},
|
||||
SubscriptionPageConfigUpdateConfigOperation: []string{},
|
||||
SubscriptionSettingsGetSettingsOperation: []string{},
|
||||
SubscriptionSettingsUpdateSettingsOperation: []string{},
|
||||
SubscriptionTemplateCreateTemplateOperation: []string{},
|
||||
SubscriptionTemplateDeleteTemplateOperation: []string{},
|
||||
SubscriptionTemplateGetAllTemplatesOperation: []string{},
|
||||
SubscriptionTemplateGetTemplateByUuidOperation: []string{},
|
||||
SubscriptionTemplateReorderSubscriptionTemplatesOperation: []string{},
|
||||
SubscriptionTemplateUpdateTemplateOperation: []string{},
|
||||
SubscriptionsGetAllSubscriptionsOperation: []string{},
|
||||
SubscriptionsGetConnectionKeysByUuidOperation: []string{},
|
||||
SubscriptionsGetRawSubscriptionByShortUuidOperation: []string{},
|
||||
SubscriptionsGetSubpageConfigByShortUuidOperation: []string{},
|
||||
SubscriptionsGetSubscriptionByShortUuidProtectedOperation: []string{},
|
||||
SubscriptionsGetSubscriptionByUsernameOperation: []string{},
|
||||
SubscriptionsGetSubscriptionByUuidOperation: []string{},
|
||||
SystemDebugSrrMatcherOperation: []string{},
|
||||
SystemEncryptHappCryptoLinkOperation: []string{},
|
||||
SystemGetBandwidthStatsOperation: []string{},
|
||||
SystemGetMetadataOperation: []string{},
|
||||
SystemGetNodesMetricsOperation: []string{},
|
||||
SystemGetNodesStatisticsOperation: []string{},
|
||||
SystemGetRecapOperation: []string{},
|
||||
SystemGetRemnawaveHealthOperation: []string{},
|
||||
SystemGetStatsOperation: []string{},
|
||||
SystemGetX25519KeypairsOperation: []string{},
|
||||
TorrentBlockerReportsGetTorrentBlockerReportsOperation: []string{},
|
||||
TorrentBlockerReportsGetTorrentBlockerReportsStatsOperation: []string{},
|
||||
TorrentBlockerReportsTruncateTorrentBlockerReportsOperation: []string{},
|
||||
UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryOperation: []string{},
|
||||
UserSubscriptionRequestHistoryGetSubscriptionRequestHistoryStatsOperation: []string{},
|
||||
UsersBulkActionsBulkAllExtendExpirationDateOperation: []string{},
|
||||
UsersBulkActionsBulkAllResetUserTrafficOperation: []string{},
|
||||
UsersBulkActionsBulkDeleteUsersOperation: []string{},
|
||||
UsersBulkActionsBulkDeleteUsersByStatusOperation: []string{},
|
||||
UsersBulkActionsBulkExtendExpirationDateOperation: []string{},
|
||||
UsersBulkActionsBulkResetUserTrafficOperation: []string{},
|
||||
UsersBulkActionsBulkRevokeUsersSubscriptionOperation: []string{},
|
||||
UsersBulkActionsBulkUpdateAllUsersOperation: []string{},
|
||||
UsersBulkActionsBulkUpdateUsersOperation: []string{},
|
||||
UsersBulkActionsBulkUpdateUsersInternalSquadsOperation: []string{},
|
||||
UsersCreateUserOperation: []string{},
|
||||
UsersDeleteUserOperation: []string{},
|
||||
UsersDisableUserOperation: []string{},
|
||||
UsersEnableUserOperation: []string{},
|
||||
UsersGetAllTagsOperation: []string{},
|
||||
UsersGetAllUsersOperation: []string{},
|
||||
UsersGetUserAccessibleNodesOperation: []string{},
|
||||
UsersGetUserByIdOperation: []string{},
|
||||
UsersGetUserByShortUuidOperation: []string{},
|
||||
UsersGetUserByTelegramIdOperation: []string{},
|
||||
UsersGetUserByUsernameOperation: []string{},
|
||||
UsersGetUserByUuidOperation: []string{},
|
||||
UsersGetUserSubscriptionRequestHistoryOperation: []string{},
|
||||
UsersGetUsersByEmailOperation: []string{},
|
||||
UsersGetUsersByTagOperation: []string{},
|
||||
UsersResetUserTrafficOperation: []string{},
|
||||
UsersResolveUserOperation: []string{},
|
||||
UsersRevokeUserSubscriptionOperation: []string{},
|
||||
UsersUpdateUserOperation: []string{},
|
||||
}
|
||||
|
||||
// GetRolesForAuthorization returns the required roles for the given operation.
|
||||
//
|
||||
// This is useful for authorization scenarios where you need to know which roles
|
||||
// are required for an operation.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// requiredRoles := GetRolesForAuthorization(AddPetOperation)
|
||||
//
|
||||
// Returns nil if the operation has no role requirements or if the operation is unknown.
|
||||
func GetRolesForAuthorization(operation string) []string {
|
||||
roles, ok := operationRolesAuthorization[operation]
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
// Return a copy to prevent external modification
|
||||
result := make([]string, len(roles))
|
||||
copy(result, roles)
|
||||
return result
|
||||
}
|
||||
|
||||
func (s *Client) securityAuthorization(ctx context.Context, operationName OperationName, req *http.Request) error {
|
||||
t, err := s.sec.Authorization(ctx, operationName)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "security source \"Authorization\"")
|
||||
}
|
||||
req.Header.Set("Authorization", "Bearer "+t.Token)
|
||||
return nil
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user