ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.4

This commit is contained in:
speakeasybot
2025-03-08 00:09:26 +00:00
parent 1cfc2d604f
commit 33fe0755b5
50 changed files with 2966 additions and 792 deletions

135
server.go
View File

@@ -29,13 +29,6 @@ func newServer(sdkConfig sdkConfiguration) *Server {
// GetServerCapabilities - Get Server Capabilities
// Get Server Capabilities
func (s *Server) GetServerCapabilities(ctx context.Context, opts ...operations.Option) (*operations.GetServerCapabilitiesResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getServerCapabilities",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -59,6 +52,14 @@ func (s *Server) GetServerCapabilities(ctx context.Context, opts ...operations.O
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "getServerCapabilities",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -273,13 +274,6 @@ func (s *Server) GetServerCapabilities(ctx context.Context, opts ...operations.O
// GetServerPreferences - Get Server Preferences
// Get Server Preferences
func (s *Server) GetServerPreferences(ctx context.Context, opts ...operations.Option) (*operations.GetServerPreferencesResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getServerPreferences",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -303,6 +297,14 @@ func (s *Server) GetServerPreferences(ctx context.Context, opts ...operations.Op
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "getServerPreferences",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -517,13 +519,6 @@ func (s *Server) GetServerPreferences(ctx context.Context, opts ...operations.Op
// GetAvailableClients - Get Available Clients
// Get Available Clients
func (s *Server) GetAvailableClients(ctx context.Context, opts ...operations.Option) (*operations.GetAvailableClientsResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getAvailableClients",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -547,6 +542,14 @@ func (s *Server) GetAvailableClients(ctx context.Context, opts ...operations.Opt
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "getAvailableClients",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -761,13 +764,6 @@ func (s *Server) GetAvailableClients(ctx context.Context, opts ...operations.Opt
// GetDevices - Get Devices
// Get Devices
func (s *Server) GetDevices(ctx context.Context, opts ...operations.Option) (*operations.GetDevicesResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getDevices",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -791,6 +787,14 @@ func (s *Server) GetDevices(ctx context.Context, opts ...operations.Option) (*op
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "getDevices",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -1005,13 +1009,6 @@ func (s *Server) GetDevices(ctx context.Context, opts ...operations.Option) (*op
// GetServerIdentity - Get Server Identity
// This request is useful to determine if the server is online or offline
func (s *Server) GetServerIdentity(ctx context.Context, opts ...operations.Option) (*operations.GetServerIdentityResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "get-server-identity",
OAuth2Scopes: []string{},
SecuritySource: nil,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -1035,6 +1032,14 @@ func (s *Server) GetServerIdentity(ctx context.Context, opts ...operations.Optio
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "get-server-identity",
OAuth2Scopes: []string{},
SecuritySource: nil,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -1223,13 +1228,6 @@ func (s *Server) GetServerIdentity(ctx context.Context, opts ...operations.Optio
// GetMyPlexAccount - Get MyPlex Account
// Returns MyPlex Account Information
func (s *Server) GetMyPlexAccount(ctx context.Context, opts ...operations.Option) (*operations.GetMyPlexAccountResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getMyPlexAccount",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -1253,6 +1251,14 @@ func (s *Server) GetMyPlexAccount(ctx context.Context, opts ...operations.Option
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "getMyPlexAccount",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -1467,13 +1473,6 @@ func (s *Server) GetMyPlexAccount(ctx context.Context, opts ...operations.Option
// GetResizedPhoto - Get a Resized Photo
// Plex's Photo transcoder is used throughout the service to serve images at specified sizes.
func (s *Server) GetResizedPhoto(ctx context.Context, request operations.GetResizedPhotoRequest, opts ...operations.Option) (*operations.GetResizedPhotoResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getResizedPhoto",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -1497,6 +1496,14 @@ func (s *Server) GetResizedPhoto(ctx context.Context, request operations.GetResi
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "getResizedPhoto",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -1695,13 +1702,6 @@ func (s *Server) GetResizedPhoto(ctx context.Context, request operations.GetResi
// GetMediaProviders - Get Media Providers
// Retrieves media providers and their features from the Plex server.
func (s *Server) GetMediaProviders(ctx context.Context, xPlexToken string, opts ...operations.Option) (*operations.GetMediaProvidersResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "get-media-providers",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
request := operations.GetMediaProvidersRequest{
XPlexToken: xPlexToken,
}
@@ -1729,6 +1729,14 @@ func (s *Server) GetMediaProviders(ctx context.Context, xPlexToken string, opts
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "get-media-providers",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout
@@ -1945,13 +1953,6 @@ func (s *Server) GetMediaProviders(ctx context.Context, xPlexToken string, opts
// GetServerList - Get Server List
// Get Server List
func (s *Server) GetServerList(ctx context.Context, opts ...operations.Option) (*operations.GetServerListResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "getServerList",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
o := operations.Options{}
supportedOptions := []string{
operations.SupportedOptionRetries,
@@ -1975,6 +1976,14 @@ func (s *Server) GetServerList(ctx context.Context, opts ...operations.Option) (
return nil, fmt.Errorf("error generating URL: %w", err)
}
hookCtx := hooks.HookContext{
BaseURL: baseURL,
Context: ctx,
OperationID: "getServerList",
OAuth2Scopes: []string{},
SecuritySource: s.sdkConfiguration.Security,
}
timeout := o.Timeout
if timeout == nil {
timeout = s.sdkConfiguration.Timeout