api

package
v0.99.36-0...-9dd75c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: Artistic-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type After

type After = time.Time

After defines model for after.

type Around

type Around = time.Time

Around defines model for around.

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

type BadRequestJSONResponse

type BadRequestJSONResponse Error

type Before

type Before = time.Time

Before defines model for before.

type CheckForUpdates200JSONResponse

type CheckForUpdates200JSONResponse struct {
	Available *float32 `json:"available,omitempty"`
	Running   *float32 `json:"running,omitempty"`
}

func (CheckForUpdates200JSONResponse) VisitCheckForUpdatesResponse

func (response CheckForUpdates200JSONResponse) VisitCheckForUpdatesResponse(w http.ResponseWriter) error

type CheckForUpdatesRequestObject

type CheckForUpdatesRequestObject struct {
}

type CheckForUpdatesResponseObject

type CheckForUpdatesResponseObject interface {
	VisitCheckForUpdatesResponse(w http.ResponseWriter) error
}

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type Connection

type Connection struct {
	// ConnectionId Unique identifier for this connection
	ConnectionId string `json:"connection_id"`

	// Info Extra information about the connection
	Info *core.InfoMap `json:"info,omitempty"`

	// Name Name for this connection
	Name *string `json:"name,omitempty"`

	// OnConnectCommands Commands to be run after the connection is established
	OnConnectCommands *[]string `json:"on_connect_commands,omitempty"`

	// State Actual connection state
	State *core.ConnectionState `json:"state,omitempty"`

	// Url Example: irc://user:@irc.perl.org?nick=superman (Note: Without password)
	Url string `json:"url"`

	// WantedState Wanted connection state
	WantedState *core.ConnectionState `json:"wanted_state,omitempty"`
}

Connection defines model for Connection.

func ToConnection

func ToConnection(c core.Connection) Connection

ToConnection converts a core.Connection to an api.Connection.

type ConnectionId

type ConnectionId = string

ConnectionId defines model for connection_id.

type ConnectionMessages200JSONResponse

type ConnectionMessages200JSONResponse struct {
	After  *time.Time `json:"after,omitempty"`
	Before *time.Time `json:"before,omitempty"`

	// End Whether there are no more messages to fetch
	End      *bool      `json:"end,omitempty"`
	Messages *[]Message `json:"messages,omitempty"`
}

func (ConnectionMessages200JSONResponse) VisitConnectionMessagesResponse

func (response ConnectionMessages200JSONResponse) VisitConnectionMessagesResponse(w http.ResponseWriter) error

type ConnectionMessages401JSONResponse

type ConnectionMessages401JSONResponse struct{ UnauthorizedJSONResponse }

func (ConnectionMessages401JSONResponse) VisitConnectionMessagesResponse

func (response ConnectionMessages401JSONResponse) VisitConnectionMessagesResponse(w http.ResponseWriter) error

type ConnectionMessages404JSONResponse

type ConnectionMessages404JSONResponse struct{ NotFoundJSONResponse }

func (ConnectionMessages404JSONResponse) VisitConnectionMessagesResponse

func (response ConnectionMessages404JSONResponse) VisitConnectionMessagesResponse(w http.ResponseWriter) error

type ConnectionMessagesParams

type ConnectionMessagesParams struct {
	// After Find messages after a given ISO 8601 timestamp
	After *After `form:"after,omitempty" json:"after,omitempty"`

	// Around Find messages around a given ISO 8601 timestamp
	Around *Around `form:"around,omitempty" json:"around,omitempty"`

	// Before Find messages before a given ISO 8601 timestamp
	Before *Before `form:"before,omitempty" json:"before,omitempty"`

	// Limit Max number of messages to retrieve
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Match Messages must match this string
	Match *string `form:"match,omitempty" json:"match,omitempty"`
}

ConnectionMessagesParams defines parameters for ConnectionMessages.

type ConnectionMessagesRequestObject

type ConnectionMessagesRequestObject struct {
	ConnectionId ConnectionId `json:"connection_id"`
	Params       ConnectionMessagesParams
}

type ConnectionMessagesResponseObject

type ConnectionMessagesResponseObject interface {
	VisitConnectionMessagesResponse(w http.ResponseWriter) error
}

type ConnectionProfile

type ConnectionProfile struct {
	// Id A unique profile identifier
	Id                 *string   `json:"id,omitempty"`
	IsDefault          *bool     `json:"is_default,omitempty"`
	IsForced           *bool     `json:"is_forced,omitempty"`
	MaxBulkMessageSize *int      `json:"max_bulk_message_size,omitempty"`
	MaxMessageLength   *int      `json:"max_message_length,omitempty"`
	ServiceAccounts    *[]string `json:"service_accounts,omitempty"`

	// SkipQueue Whether connections using this profile should skip the connection queue
	SkipQueue      *bool   `json:"skip_queue,omitempty"`
	Url            string  `json:"url"`
	WebircPassword *string `json:"webirc_password,omitempty"`
}

ConnectionProfile defines model for ConnectionProfile.

type Conversation

type Conversation struct {
	// ConnectionId Unique identifier for the connection this conversation is part of
	ConnectionId string `json:"connection_id"`

	// ConversationId Unique identifier for the conversation
	ConversationId string `json:"conversation_id"`

	// Frozen Reason for why the conversation is frozen (empty string if not frozen)
	Frozen *string `json:"frozen,omitempty"`

	// Info Extra information about the conversation
	Info *core.InfoMap `json:"info,omitempty"`

	// Name Name of the room or person
	Name string `json:"name"`

	// Notifications Number of notifications for this conversation
	Notifications *int `json:"notifications,omitempty"`

	// Topic The subjec/topic for this room
	Topic *string `json:"topic,omitempty"`

	// Unread Number of unread messages
	Unread int `json:"unread"`
}

Conversation defines model for Conversation.

func ToConversation

func ToConversation(c *core.Conversation) Conversation

ToConversation converts a core.Conversation to an api.Conversation.

type ConversationId

type ConversationId = string

ConversationId defines model for conversation_id.

type ConversationMessages200JSONResponse

type ConversationMessages200JSONResponse struct {
	After  *time.Time `json:"after,omitempty"`
	Before *time.Time `json:"before,omitempty"`

	// End Whether there are no more messages to fetch
	End      *bool      `json:"end,omitempty"`
	Messages *[]Message `json:"messages,omitempty"`
}

func (ConversationMessages200JSONResponse) VisitConversationMessagesResponse

func (response ConversationMessages200JSONResponse) VisitConversationMessagesResponse(w http.ResponseWriter) error

type ConversationMessages401JSONResponse

type ConversationMessages401JSONResponse struct{ UnauthorizedJSONResponse }

func (ConversationMessages401JSONResponse) VisitConversationMessagesResponse

func (response ConversationMessages401JSONResponse) VisitConversationMessagesResponse(w http.ResponseWriter) error

type ConversationMessages404JSONResponse

type ConversationMessages404JSONResponse struct{ NotFoundJSONResponse }

func (ConversationMessages404JSONResponse) VisitConversationMessagesResponse

func (response ConversationMessages404JSONResponse) VisitConversationMessagesResponse(w http.ResponseWriter) error

type ConversationMessagesParams

type ConversationMessagesParams struct {
	// After Find messages after a given ISO 8601 timestamp
	After *After `form:"after,omitempty" json:"after,omitempty"`

	// Around Find messages around a given ISO 8601 timestamp
	Around *Around `form:"around,omitempty" json:"around,omitempty"`

	// Before Find messages before a given ISO 8601 timestamp
	Before *Before `form:"before,omitempty" json:"before,omitempty"`

	// Limit Max number of messages to retrieve
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Match Messages must match this string
	Match *string `form:"match,omitempty" json:"match,omitempty"`
}

ConversationMessagesParams defines parameters for ConversationMessages.

type ConversationMessagesRequestObject

type ConversationMessagesRequestObject struct {
	ConnectionId   ConnectionId   `json:"connection_id"`
	ConversationId ConversationId `json:"conversation_id"`
	Params         ConversationMessagesParams
}

type ConversationMessagesResponseObject

type ConversationMessagesResponseObject interface {
	VisitConversationMessagesResponse(w http.ResponseWriter) error
}

type CreateConnection200JSONResponse

type CreateConnection200JSONResponse Connection

func (CreateConnection200JSONResponse) VisitCreateConnectionResponse

func (response CreateConnection200JSONResponse) VisitCreateConnectionResponse(w http.ResponseWriter) error

type CreateConnection400JSONResponse

type CreateConnection400JSONResponse struct{ BadRequestJSONResponse }

func (CreateConnection400JSONResponse) VisitCreateConnectionResponse

func (response CreateConnection400JSONResponse) VisitCreateConnectionResponse(w http.ResponseWriter) error

type CreateConnection401JSONResponse

type CreateConnection401JSONResponse struct{ UnauthorizedJSONResponse }

func (CreateConnection401JSONResponse) VisitCreateConnectionResponse

func (response CreateConnection401JSONResponse) VisitCreateConnectionResponse(w http.ResponseWriter) error

type CreateConnection500JSONResponse

type CreateConnection500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (CreateConnection500JSONResponse) VisitCreateConnectionResponse

func (response CreateConnection500JSONResponse) VisitCreateConnectionResponse(w http.ResponseWriter) error

type CreateConnectionJSONBody

type CreateConnectionJSONBody struct {
	// ConversationId Example: #convos
	ConversationId *string `json:"conversation_id,omitempty"`

	// OnConnectCommands Commands to be run after the connection is established
	OnConnectCommands *[]string `json:"on_connect_commands,omitempty"`

	// Url Example: irc://user:pass@irc.perl.org?nick=superman
	Url string `json:"url"`

	// WantedState Connection state
	WantedState *CreateConnectionJSONBodyWantedState `json:"wanted_state,omitempty"`
}

CreateConnectionJSONBody defines parameters for CreateConnection.

type CreateConnectionJSONBodyWantedState

type CreateConnectionJSONBodyWantedState string

CreateConnectionJSONBodyWantedState defines parameters for CreateConnection.

const (
	CreateConnectionJSONBodyWantedStateConnected    CreateConnectionJSONBodyWantedState = "connected"
	CreateConnectionJSONBodyWantedStateDisconnected CreateConnectionJSONBodyWantedState = "disconnected"
)

Defines values for CreateConnectionJSONBodyWantedState.

type CreateConnectionJSONRequestBody

type CreateConnectionJSONRequestBody CreateConnectionJSONBody

CreateConnectionJSONRequestBody defines body for CreateConnection for application/json ContentType.

type CreateConnectionRequestObject

type CreateConnectionRequestObject struct {
	Body *CreateConnectionJSONRequestBody
}

type CreateConnectionResponseObject

type CreateConnectionResponseObject interface {
	VisitCreateConnectionResponse(w http.ResponseWriter) error
}

type DeleteFiles200JSONResponse

type DeleteFiles200JSONResponse struct {
	Deleted *int `json:"deleted,omitempty"`
}

func (DeleteFiles200JSONResponse) VisitDeleteFilesResponse

func (response DeleteFiles200JSONResponse) VisitDeleteFilesResponse(w http.ResponseWriter) error

type DeleteFilesRequestObject

type DeleteFilesRequestObject struct {
	Uid string `json:"uid"`
	Fid string `json:"fid"`
}

type DeleteFilesResponseObject

type DeleteFilesResponseObject interface {
	VisitDeleteFilesResponse(w http.ResponseWriter) error
}

type DeleteUser200JSONResponse

type DeleteUser200JSONResponse Success

func (DeleteUser200JSONResponse) VisitDeleteUserResponse

func (response DeleteUser200JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser401JSONResponse

type DeleteUser401JSONResponse struct{ UnauthorizedJSONResponse }

func (DeleteUser401JSONResponse) VisitDeleteUserResponse

func (response DeleteUser401JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser403JSONResponse

type DeleteUser403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteUser403JSONResponse) VisitDeleteUserResponse

func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser500JSONResponse

type DeleteUser500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (DeleteUser500JSONResponse) VisitDeleteUserResponse

func (response DeleteUser500JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUserRequestObject

type DeleteUserRequestObject struct {
	Email EmailInPath `json:"email"`
}

type DeleteUserResponseObject

type DeleteUserResponseObject interface {
	VisitDeleteUserResponse(w http.ResponseWriter) error
}

type EmailInPath

type EmailInPath = openapi_types.Email

EmailInPath defines model for email_in_path.

type Embed200JSONResponse

type Embed200JSONResponse map[string]interface{}

func (Embed200JSONResponse) VisitEmbedResponse

func (response Embed200JSONResponse) VisitEmbedResponse(w http.ResponseWriter) error

type Embed401JSONResponse

type Embed401JSONResponse struct{ UnauthorizedJSONResponse }

func (Embed401JSONResponse) VisitEmbedResponse

func (response Embed401JSONResponse) VisitEmbedResponse(w http.ResponseWriter) error

type EmbedParams

type EmbedParams struct {
	// Url URL to resource
	Url string `form:"url" json:"url"`
}

EmbedParams defines parameters for Embed.

type EmbedRequestObject

type EmbedRequestObject struct {
	Params EmbedParams
}

type EmbedResponseObject

type EmbedResponseObject interface {
	VisitEmbedResponse(w http.ResponseWriter) error
}

type Error

type Error struct {
	Errors *[]struct {
		// Message Human readable description of the error
		Message string `json:"message"`

		// Path JSON pointer to the input data where the error occur
		Path *string `json:"path,omitempty"`
	} `json:"errors,omitempty"`
}

Error defines model for Error.

func ErrResponse

func ErrResponse(message string) Error

ErrResponse builds an Error response with a single message.

type Forbidden

type Forbidden = Error

Forbidden defines model for Forbidden.

type ForbiddenJSONResponse

type ForbiddenJSONResponse Error

type GetDictionary200JSONResponse

type GetDictionary200JSONResponse struct {
	AvailableLanguages *map[string]struct {
		LanguageTeam *string `json:"language_team,omitempty"`
	} `json:"available_languages,omitempty"`
	Dictionary map[string]interface{} `json:"dictionary"`
}

func (GetDictionary200JSONResponse) VisitGetDictionaryResponse

func (response GetDictionary200JSONResponse) VisitGetDictionaryResponse(w http.ResponseWriter) error

type GetDictionaryRequestObject

type GetDictionaryRequestObject struct {
	Lang string `json:"lang"`
}

type GetDictionaryResponseObject

type GetDictionaryResponseObject interface {
	VisitGetDictionaryResponse(w http.ResponseWriter) error
}

type GetFile200AsteriskResponse

type GetFile200AsteriskResponse struct {
	Body          io.Reader
	ContentType   string
	ContentLength int64
}

func (GetFile200AsteriskResponse) VisitGetFileResponse

func (response GetFile200AsteriskResponse) VisitGetFileResponse(w http.ResponseWriter) error

type GetFile404JSONResponse

type GetFile404JSONResponse struct {
	Message *string `json:"message,omitempty"`
}

func (GetFile404JSONResponse) VisitGetFileResponse

func (response GetFile404JSONResponse) VisitGetFileResponse(w http.ResponseWriter) error

type GetFileRequestObject

type GetFileRequestObject struct {
	Uid string `json:"uid"`
	Fid string `json:"fid"`
}

type GetFileResponseObject

type GetFileResponseObject interface {
	VisitGetFileResponse(w http.ResponseWriter) error
}

type GetFiles200JSONResponse

type GetFiles200JSONResponse struct {
	// After Can be used as "after" query param to get the current page
	After *string `json:"after,omitempty"`
	Files *[]struct {
		Id    string    `json:"id"`
		Name  string    `json:"name"`
		Saved time.Time `json:"saved"`
		Size  int       `json:"size"`
	} `json:"files,omitempty"`

	// Next Indicates if there is a next page
	Next *string `json:"next,omitempty"`

	// Prev Can be used as "after" query param to go to the previous page
	Prev *string `json:"prev,omitempty"`
}

func (GetFiles200JSONResponse) VisitGetFilesResponse

func (response GetFiles200JSONResponse) VisitGetFilesResponse(w http.ResponseWriter) error

type GetFiles401JSONResponse

type GetFiles401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetFiles401JSONResponse) VisitGetFilesResponse

func (response GetFiles401JSONResponse) VisitGetFilesResponse(w http.ResponseWriter) error

type GetFilesParams

type GetFilesParams struct {
	// After Find files after a file ID, can be "after", "prev" or the last file ID from the response
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Limit Max number of files to retrieve
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetFilesParams defines parameters for GetFiles.

type GetFilesRequestObject

type GetFilesRequestObject struct {
	Params GetFilesParams
}

type GetFilesResponseObject

type GetFilesResponseObject interface {
	VisitGetFilesResponse(w http.ResponseWriter) error
}

type GetSettings200JSONResponse

type GetSettings200JSONResponse ServerSettings

func (GetSettings200JSONResponse) VisitGetSettingsResponse

func (response GetSettings200JSONResponse) VisitGetSettingsResponse(w http.ResponseWriter) error

type GetSettings401JSONResponse

type GetSettings401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetSettings401JSONResponse) VisitGetSettingsResponse

func (response GetSettings401JSONResponse) VisitGetSettingsResponse(w http.ResponseWriter) error

type GetSettings500JSONResponse

type GetSettings500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetSettings500JSONResponse) VisitGetSettingsResponse

func (response GetSettings500JSONResponse) VisitGetSettingsResponse(w http.ResponseWriter) error

type GetSettingsRequestObject

type GetSettingsRequestObject struct {
}

type GetSettingsResponseObject

type GetSettingsResponseObject interface {
	VisitGetSettingsResponse(w http.ResponseWriter) error
}

type GetUser200JSONResponse

type GetUser200JSONResponse User

func (GetUser200JSONResponse) VisitGetUserResponse

func (response GetUser200JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser401JSONResponse

type GetUser401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetUser401JSONResponse) VisitGetUserResponse

func (response GetUser401JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser500JSONResponse

type GetUser500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetUser500JSONResponse) VisitGetUserResponse

func (response GetUser500JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUserParams

type GetUserParams struct {
	// Connections Retrieve connection list.
	Connections *bool `form:"connections,omitempty" json:"connections,omitempty"`

	// Conversations Retrieve conversation list.
	Conversations *bool `form:"conversations,omitempty" json:"conversations,omitempty"`
}

GetUserParams defines parameters for GetUser.

type GetUserRequestObject

type GetUserRequestObject struct {
	Params GetUserParams
}

type GetUserResponseObject

type GetUserResponseObject interface {
	VisitGetUserResponse(w http.ResponseWriter) error
}

type GetUsers200JSONResponse

type GetUsers200JSONResponse struct {
	Users *[]User `json:"users,omitempty"`
}

func (GetUsers200JSONResponse) VisitGetUsersResponse

func (response GetUsers200JSONResponse) VisitGetUsersResponse(w http.ResponseWriter) error

type GetUsersParams

type GetUsersParams struct {
	// After Find users after in pagination
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

GetUsersParams defines parameters for GetUsers.

type GetUsersRequestObject

type GetUsersRequestObject struct {
	Params GetUsersParams
}

type GetUsersResponseObject

type GetUsersResponseObject interface {
	VisitGetUsersResponse(w http.ResponseWriter) error
}

type GetVapidKey200JSONResponse

type GetVapidKey200JSONResponse struct {
	PublicKey string `json:"public_key"`
}

func (GetVapidKey200JSONResponse) VisitGetVapidKeyResponse

func (response GetVapidKey200JSONResponse) VisitGetVapidKeyResponse(w http.ResponseWriter) error

type GetVapidKey401JSONResponse

type GetVapidKey401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetVapidKey401JSONResponse) VisitGetVapidKeyResponse

func (response GetVapidKey401JSONResponse) VisitGetVapidKeyResponse(w http.ResponseWriter) error

type GetVapidKey500JSONResponse

type GetVapidKey500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetVapidKey500JSONResponse) VisitGetVapidKeyResponse

func (response GetVapidKey500JSONResponse) VisitGetVapidKeyResponse(w http.ResponseWriter) error

type GetVapidKeyRequestObject

type GetVapidKeyRequestObject struct {
}

type GetVapidKeyResponseObject

type GetVapidKeyResponseObject interface {
	VisitGetVapidKeyResponse(w http.ResponseWriter) error
}

type InternalServerError

type InternalServerError = Error

InternalServerError defines model for InternalServerError.

type InternalServerErrorJSONResponse

type InternalServerErrorJSONResponse Error

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type InviteUser200JSONResponse

type InviteUser200JSONResponse struct {
	Existing *bool      `json:"existing,omitempty"`
	Expires  *time.Time `json:"expires,omitempty"`
	Url      string     `json:"url"`
}

func (InviteUser200JSONResponse) VisitInviteUserResponse

func (response InviteUser200JSONResponse) VisitInviteUserResponse(w http.ResponseWriter) error

type InviteUserRequestObject

type InviteUserRequestObject struct {
	Email EmailInPath `json:"email"`
}

type InviteUserResponseObject

type InviteUserResponseObject interface {
	VisitInviteUserResponse(w http.ResponseWriter) error
}

type ListConnectionProfiles200JSONResponse

type ListConnectionProfiles200JSONResponse struct {
	Profiles *[]ConnectionProfile `json:"profiles,omitempty"`
}

func (ListConnectionProfiles200JSONResponse) VisitListConnectionProfilesResponse

func (response ListConnectionProfiles200JSONResponse) VisitListConnectionProfilesResponse(w http.ResponseWriter) error

type ListConnectionProfiles401JSONResponse

type ListConnectionProfiles401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListConnectionProfiles401JSONResponse) VisitListConnectionProfilesResponse

func (response ListConnectionProfiles401JSONResponse) VisitListConnectionProfilesResponse(w http.ResponseWriter) error

type ListConnectionProfiles403JSONResponse

type ListConnectionProfiles403JSONResponse struct{ ForbiddenJSONResponse }

func (ListConnectionProfiles403JSONResponse) VisitListConnectionProfilesResponse

func (response ListConnectionProfiles403JSONResponse) VisitListConnectionProfilesResponse(w http.ResponseWriter) error

type ListConnectionProfilesRequestObject

type ListConnectionProfilesRequestObject struct {
}

type ListConnectionProfilesResponseObject

type ListConnectionProfilesResponseObject interface {
	VisitListConnectionProfilesResponse(w http.ResponseWriter) error
}

type ListConnections200JSONResponse

type ListConnections200JSONResponse struct {
	Connections *[]Connection `json:"connections,omitempty"`
}

func (ListConnections200JSONResponse) VisitListConnectionsResponse

func (response ListConnections200JSONResponse) VisitListConnectionsResponse(w http.ResponseWriter) error

type ListConnections401JSONResponse

type ListConnections401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListConnections401JSONResponse) VisitListConnectionsResponse

func (response ListConnections401JSONResponse) VisitListConnectionsResponse(w http.ResponseWriter) error

type ListConnectionsRequestObject

type ListConnectionsRequestObject struct {
}

type ListConnectionsResponseObject

type ListConnectionsResponseObject interface {
	VisitListConnectionsResponse(w http.ResponseWriter) error
}

type ListConversations200JSONResponse

type ListConversations200JSONResponse struct {
	Conversations *[]Conversation `json:"conversations,omitempty"`
}

func (ListConversations200JSONResponse) VisitListConversationsResponse

func (response ListConversations200JSONResponse) VisitListConversationsResponse(w http.ResponseWriter) error

type ListConversations401JSONResponse

type ListConversations401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListConversations401JSONResponse) VisitListConversationsResponse

func (response ListConversations401JSONResponse) VisitListConversationsResponse(w http.ResponseWriter) error

type ListConversationsRequestObject

type ListConversationsRequestObject struct {
}

type ListConversationsResponseObject

type ListConversationsResponseObject interface {
	VisitListConversationsResponse(w http.ResponseWriter) error
}

type LoginUser200JSONResponse

type LoginUser200JSONResponse User

func (LoginUser200JSONResponse) VisitLoginUserResponse

func (response LoginUser200JSONResponse) VisitLoginUserResponse(w http.ResponseWriter) error

type LoginUser400JSONResponse

type LoginUser400JSONResponse struct{ BadRequestJSONResponse }

func (LoginUser400JSONResponse) VisitLoginUserResponse

func (response LoginUser400JSONResponse) VisitLoginUserResponse(w http.ResponseWriter) error

type LoginUser500JSONResponse

type LoginUser500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (LoginUser500JSONResponse) VisitLoginUserResponse

func (response LoginUser500JSONResponse) VisitLoginUserResponse(w http.ResponseWriter) error

type LoginUserJSONBody

type LoginUserJSONBody struct {
	// Email User email
	Email openapi_types.Email `json:"email"`

	// Password User password
	Password string `json:"password"`
}

LoginUserJSONBody defines parameters for LoginUser.

type LoginUserJSONRequestBody

type LoginUserJSONRequestBody LoginUserJSONBody

LoginUserJSONRequestBody defines body for LoginUser for application/json ContentType.

type LoginUserRequestObject

type LoginUserRequestObject struct {
	Body *LoginUserJSONRequestBody
}

type LoginUserResponseObject

type LoginUserResponseObject interface {
	VisitLoginUserResponse(w http.ResponseWriter) error
}

type LogoutUser302Response

type LogoutUser302Response struct {
}

func (LogoutUser302Response) VisitLogoutUserResponse

func (response LogoutUser302Response) VisitLogoutUserResponse(w http.ResponseWriter) error

type LogoutUserParams

type LogoutUserParams struct {
	Csrf string `form:"csrf" json:"csrf"`
}

LogoutUserParams defines parameters for LogoutUser.

type LogoutUserRequestObject

type LogoutUserRequestObject struct {
	Params LogoutUserParams
}

type LogoutUserResponseObject

type LogoutUserResponseObject interface {
	VisitLogoutUserResponse(w http.ResponseWriter) error
}

type MarkConnectionAsRead200JSONResponse

type MarkConnectionAsRead200JSONResponse map[string]interface{}

func (MarkConnectionAsRead200JSONResponse) VisitMarkConnectionAsReadResponse

func (response MarkConnectionAsRead200JSONResponse) VisitMarkConnectionAsReadResponse(w http.ResponseWriter) error

type MarkConnectionAsRead401JSONResponse

type MarkConnectionAsRead401JSONResponse struct{ UnauthorizedJSONResponse }

func (MarkConnectionAsRead401JSONResponse) VisitMarkConnectionAsReadResponse

func (response MarkConnectionAsRead401JSONResponse) VisitMarkConnectionAsReadResponse(w http.ResponseWriter) error

type MarkConnectionAsRead404JSONResponse

type MarkConnectionAsRead404JSONResponse struct{ NotFoundJSONResponse }

func (MarkConnectionAsRead404JSONResponse) VisitMarkConnectionAsReadResponse

func (response MarkConnectionAsRead404JSONResponse) VisitMarkConnectionAsReadResponse(w http.ResponseWriter) error

type MarkConnectionAsReadRequestObject

type MarkConnectionAsReadRequestObject struct {
	ConnectionId ConnectionId `json:"connection_id"`
}

type MarkConnectionAsReadResponseObject

type MarkConnectionAsReadResponseObject interface {
	VisitMarkConnectionAsReadResponse(w http.ResponseWriter) error
}

type MarkConversationAsRead200JSONResponse

type MarkConversationAsRead200JSONResponse map[string]interface{}

func (MarkConversationAsRead200JSONResponse) VisitMarkConversationAsReadResponse

func (response MarkConversationAsRead200JSONResponse) VisitMarkConversationAsReadResponse(w http.ResponseWriter) error

type MarkConversationAsRead401JSONResponse

type MarkConversationAsRead401JSONResponse struct{ UnauthorizedJSONResponse }

func (MarkConversationAsRead401JSONResponse) VisitMarkConversationAsReadResponse

func (response MarkConversationAsRead401JSONResponse) VisitMarkConversationAsReadResponse(w http.ResponseWriter) error

type MarkConversationAsRead404JSONResponse

type MarkConversationAsRead404JSONResponse struct{ NotFoundJSONResponse }

func (MarkConversationAsRead404JSONResponse) VisitMarkConversationAsReadResponse

func (response MarkConversationAsRead404JSONResponse) VisitMarkConversationAsReadResponse(w http.ResponseWriter) error

type MarkConversationAsReadRequestObject

type MarkConversationAsReadRequestObject struct {
	ConnectionId   ConnectionId   `json:"connection_id"`
	ConversationId ConversationId `json:"conversation_id"`
}

type MarkConversationAsReadResponseObject

type MarkConversationAsReadResponseObject interface {
	VisitMarkConversationAsReadResponse(w http.ResponseWriter) error
}

type MarkNotificationsAsRead200JSONResponse

type MarkNotificationsAsRead200JSONResponse map[string]interface{}

func (MarkNotificationsAsRead200JSONResponse) VisitMarkNotificationsAsReadResponse

func (response MarkNotificationsAsRead200JSONResponse) VisitMarkNotificationsAsReadResponse(w http.ResponseWriter) error

type MarkNotificationsAsRead401JSONResponse

type MarkNotificationsAsRead401JSONResponse struct{ UnauthorizedJSONResponse }

func (MarkNotificationsAsRead401JSONResponse) VisitMarkNotificationsAsReadResponse

func (response MarkNotificationsAsRead401JSONResponse) VisitMarkNotificationsAsReadResponse(w http.ResponseWriter) error

type MarkNotificationsAsReadRequestObject

type MarkNotificationsAsReadRequestObject struct {
}

type MarkNotificationsAsReadResponseObject

type MarkNotificationsAsReadResponseObject interface {
	VisitMarkNotificationsAsReadResponse(w http.ResponseWriter) error
}

type Message

type Message struct {
	// From Identifier for who sent this message
	From string `json:"from"`

	// Highlight Whether this message matched a highlight rule
	Highlight *bool `json:"highlight,omitempty"`

	// Message The message
	Message string `json:"message"`

	// Ts Example: 2015-09-06T13:49:37Z
	Ts time.Time `json:"ts"`

	// Type Message type: private, notice, action
	Type *string `json:"type,omitempty"`
}

Message defines model for Message.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type NotFound

type NotFound = Error

NotFound defines model for NotFound.

type NotFoundJSONResponse

type NotFoundJSONResponse Error

type Notification

type Notification struct {
	// ConnectionId Unique identifier for the connection this notification came from
	ConnectionId *string `json:"connection_id,omitempty"`

	// ConversationId Conversation ID
	ConversationId *string `json:"conversation_id,omitempty"`

	// From Identifier for who sent this message
	From string `json:"from"`

	// Message The message
	Message string `json:"message"`

	// Ts Example: 2015-09-06T13:49:37Z
	Ts time.Time `json:"ts"`
}

Notification defines model for Notification.

type NotificationMessages200JSONResponse

type NotificationMessages200JSONResponse struct {
	// End Whether there are no more notifications to fetch
	End      *bool           `json:"end,omitempty"`
	Messages *[]Notification `json:"messages,omitempty"`
}

func (NotificationMessages200JSONResponse) VisitNotificationMessagesResponse

func (response NotificationMessages200JSONResponse) VisitNotificationMessagesResponse(w http.ResponseWriter) error

type NotificationMessagesRequestObject

type NotificationMessagesRequestObject struct {
}

type NotificationMessagesResponseObject

type NotificationMessagesResponseObject interface {
	VisitNotificationMessagesResponse(w http.ResponseWriter) error
}

type Password

type Password = string

Password User password

type RegisterUser200JSONResponse

type RegisterUser200JSONResponse User

func (RegisterUser200JSONResponse) VisitRegisterUserResponse

func (response RegisterUser200JSONResponse) VisitRegisterUserResponse(w http.ResponseWriter) error

type RegisterUser400JSONResponse

type RegisterUser400JSONResponse struct{ BadRequestJSONResponse }

func (RegisterUser400JSONResponse) VisitRegisterUserResponse

func (response RegisterUser400JSONResponse) VisitRegisterUserResponse(w http.ResponseWriter) error

type RegisterUser401JSONResponse

type RegisterUser401JSONResponse struct{ UnauthorizedJSONResponse }

func (RegisterUser401JSONResponse) VisitRegisterUserResponse

func (response RegisterUser401JSONResponse) VisitRegisterUserResponse(w http.ResponseWriter) error

type RegisterUser500JSONResponse

type RegisterUser500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (RegisterUser500JSONResponse) VisitRegisterUserResponse

func (response RegisterUser500JSONResponse) VisitRegisterUserResponse(w http.ResponseWriter) error

type RegisterUserJSONBody

type RegisterUserJSONBody struct {
	// Email User email
	Email openapi_types.Email `json:"email"`

	// Exp Expire time for a token
	Exp *string `json:"exp,omitempty"`

	// Password User password
	Password Password `json:"password"`

	// Token Checksum generated by inviteUser
	Token *string `json:"token,omitempty"`
}

RegisterUserJSONBody defines parameters for RegisterUser.

type RegisterUserJSONRequestBody

type RegisterUserJSONRequestBody RegisterUserJSONBody

RegisterUserJSONRequestBody defines body for RegisterUser for application/json ContentType.

type RegisterUserRequestObject

type RegisterUserRequestObject struct {
	Body *RegisterUserJSONRequestBody
}

type RegisterUserResponseObject

type RegisterUserResponseObject interface {
	VisitRegisterUserResponse(w http.ResponseWriter) error
}

type RemoveConnection200JSONResponse

type RemoveConnection200JSONResponse Success

func (RemoveConnection200JSONResponse) VisitRemoveConnectionResponse

func (response RemoveConnection200JSONResponse) VisitRemoveConnectionResponse(w http.ResponseWriter) error

type RemoveConnection401JSONResponse

type RemoveConnection401JSONResponse struct{ UnauthorizedJSONResponse }

func (RemoveConnection401JSONResponse) VisitRemoveConnectionResponse

func (response RemoveConnection401JSONResponse) VisitRemoveConnectionResponse(w http.ResponseWriter) error

type RemoveConnection500JSONResponse

type RemoveConnection500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (RemoveConnection500JSONResponse) VisitRemoveConnectionResponse

func (response RemoveConnection500JSONResponse) VisitRemoveConnectionResponse(w http.ResponseWriter) error

type RemoveConnectionProfile200JSONResponse

type RemoveConnectionProfile200JSONResponse map[string]interface{}

func (RemoveConnectionProfile200JSONResponse) VisitRemoveConnectionProfileResponse

func (response RemoveConnectionProfile200JSONResponse) VisitRemoveConnectionProfileResponse(w http.ResponseWriter) error

type RemoveConnectionProfile401JSONResponse

type RemoveConnectionProfile401JSONResponse struct{ UnauthorizedJSONResponse }

func (RemoveConnectionProfile401JSONResponse) VisitRemoveConnectionProfileResponse

func (response RemoveConnectionProfile401JSONResponse) VisitRemoveConnectionProfileResponse(w http.ResponseWriter) error

type RemoveConnectionProfile403JSONResponse

type RemoveConnectionProfile403JSONResponse struct{ ForbiddenJSONResponse }

func (RemoveConnectionProfile403JSONResponse) VisitRemoveConnectionProfileResponse

func (response RemoveConnectionProfile403JSONResponse) VisitRemoveConnectionProfileResponse(w http.ResponseWriter) error

type RemoveConnectionProfileRequestObject

type RemoveConnectionProfileRequestObject struct {
	Id string `json:"id"`
}

type RemoveConnectionProfileResponseObject

type RemoveConnectionProfileResponseObject interface {
	VisitRemoveConnectionProfileResponse(w http.ResponseWriter) error
}

type RemoveConnectionRequestObject

type RemoveConnectionRequestObject struct {
	ConnectionId ConnectionId `json:"connection_id"`
}

type RemoveConnectionResponseObject

type RemoveConnectionResponseObject interface {
	VisitRemoveConnectionResponse(w http.ResponseWriter) error
}

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type SaveConnectionProfile200JSONResponse

type SaveConnectionProfile200JSONResponse ConnectionProfile

func (SaveConnectionProfile200JSONResponse) VisitSaveConnectionProfileResponse

func (response SaveConnectionProfile200JSONResponse) VisitSaveConnectionProfileResponse(w http.ResponseWriter) error

type SaveConnectionProfile401JSONResponse

type SaveConnectionProfile401JSONResponse struct{ UnauthorizedJSONResponse }

func (SaveConnectionProfile401JSONResponse) VisitSaveConnectionProfileResponse

func (response SaveConnectionProfile401JSONResponse) VisitSaveConnectionProfileResponse(w http.ResponseWriter) error

type SaveConnectionProfile403JSONResponse

type SaveConnectionProfile403JSONResponse struct{ ForbiddenJSONResponse }

func (SaveConnectionProfile403JSONResponse) VisitSaveConnectionProfileResponse

func (response SaveConnectionProfile403JSONResponse) VisitSaveConnectionProfileResponse(w http.ResponseWriter) error

type SaveConnectionProfileJSONRequestBody

type SaveConnectionProfileJSONRequestBody = ConnectionProfile

SaveConnectionProfileJSONRequestBody defines body for SaveConnectionProfile for application/json ContentType.

type SaveConnectionProfileRequestObject

type SaveConnectionProfileRequestObject struct {
	Body *SaveConnectionProfileJSONRequestBody
}

type SaveConnectionProfileResponseObject

type SaveConnectionProfileResponseObject interface {
	VisitSaveConnectionProfileResponse(w http.ResponseWriter) error
}

type SearchMessages200JSONResponse

type SearchMessages200JSONResponse struct {
	After  *time.Time `json:"after,omitempty"`
	Before *time.Time `json:"before,omitempty"`

	// End Whether there are no more messages to fetch
	End      *bool      `json:"end,omitempty"`
	Messages *[]Message `json:"messages,omitempty"`
}

func (SearchMessages200JSONResponse) VisitSearchMessagesResponse

func (response SearchMessages200JSONResponse) VisitSearchMessagesResponse(w http.ResponseWriter) error

type SearchMessages401JSONResponse

type SearchMessages401JSONResponse struct{ UnauthorizedJSONResponse }

func (SearchMessages401JSONResponse) VisitSearchMessagesResponse

func (response SearchMessages401JSONResponse) VisitSearchMessagesResponse(w http.ResponseWriter) error

type SearchMessagesParams

type SearchMessagesParams struct {
	// ConnectionId An ID for a connection
	ConnectionId *string `form:"connection_id,omitempty" json:"connection_id,omitempty"`

	// ConversationId An ID for a conversation
	ConversationId *string `form:"conversation_id,omitempty" json:"conversation_id,omitempty"`

	// After Find messages after a given ISO 8601 timestamp
	After *time.Time `form:"after,omitempty" json:"after,omitempty"`

	// Before Find messages before a given ISO 8601 timestamp
	Before *time.Time `form:"before,omitempty" json:"before,omitempty"`

	// From Sender must match this string
	From *string `form:"from,omitempty" json:"from,omitempty"`

	// Limit Max number of messages to retrieve
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Match Messages must match this string
	Match *string `form:"match,omitempty" json:"match,omitempty"`
}

SearchMessagesParams defines parameters for SearchMessages.

type SearchMessagesRequestObject

type SearchMessagesRequestObject struct {
	Params SearchMessagesParams
}

type SearchMessagesResponseObject

type SearchMessagesResponseObject interface {
	VisitSearchMessagesResponse(w http.ResponseWriter) error
}

type ServerInterface

type ServerInterface interface {
	// Check if a new update is available
	// (GET /check-for-updates)
	CheckForUpdates(w http.ResponseWriter, r *http.Request)
	// List all connection profiles.
	// (GET /connection-profiles)
	ListConnectionProfiles(w http.ResponseWriter, r *http.Request)
	// Update or create a profile.
	// (POST /connection-profiles)
	SaveConnectionProfile(w http.ResponseWriter, r *http.Request)
	// Remove a connection profile.
	// (DELETE /connection-profiles/{id})
	RemoveConnectionProfile(w http.ResponseWriter, r *http.Request, id string)
	// Delete a connection and all assosiated data.
	// (DELETE /connection/{connection_id})
	RemoveConnection(w http.ResponseWriter, r *http.Request, connectionId ConnectionId)
	// Update a connection.
	// (POST /connection/{connection_id})
	UpdateConnection(w http.ResponseWriter, r *http.Request, connectionId ConnectionId)
	// Get a list of messages. Note: this resource require the user to be authenticated first.
	// (GET /connection/{connection_id}/conversation/{conversation_id}/messages)
	ConversationMessages(w http.ResponseWriter, r *http.Request, connectionId ConnectionId, conversationId ConversationId, params ConversationMessagesParams)
	// Clears unread for a conversation.
	// (POST /connection/{connection_id}/conversation/{conversation_id}/read)
	MarkConversationAsRead(w http.ResponseWriter, r *http.Request, connectionId ConnectionId, conversationId ConversationId)
	// Get a list of messages. Note: this resource require the user to be authenticated first.
	// (GET /connection/{connection_id}/messages)
	ConnectionMessages(w http.ResponseWriter, r *http.Request, connectionId ConnectionId, params ConnectionMessagesParams)
	// Clears unread for a connection.
	// (POST /connection/{connection_id}/read)
	MarkConnectionAsRead(w http.ResponseWriter, r *http.Request, connectionId ConnectionId)
	// Get all the connections for a user.
	// (GET /connections)
	ListConnections(w http.ResponseWriter, r *http.Request)
	// Add a connection.
	// (POST /connections)
	CreateConnection(w http.ResponseWriter, r *http.Request)
	// Get a list of all conversations.
	// (GET /conversations)
	ListConversations(w http.ResponseWriter, r *http.Request)
	// Get information from a URL
	// (GET /embed)
	Embed(w http.ResponseWriter, r *http.Request, params EmbedParams)
	// Retrieve list of uploaded files.
	// (GET /files)
	GetFiles(w http.ResponseWriter, r *http.Request, params GetFilesParams)
	// Upload file.
	// (POST /files)
	UploadFile(w http.ResponseWriter, r *http.Request)
	// Delete one (or more) uploaded file.
	// (DELETE /files/{uid}/{fid})
	DeleteFiles(w http.ResponseWriter, r *http.Request, uid string, fid string)
	// Retrieve uploaded file.
	// (GET /files/{uid}/{fid})
	GetFile(w http.ResponseWriter, r *http.Request, uid string, fid string)
	// Retrieve translations.
	// (GET /i18n/{lang})
	GetDictionary(w http.ResponseWriter, r *http.Request, lang string)
	// Get list of notications.
	// (GET /notifications)
	NotificationMessages(w http.ResponseWriter, r *http.Request)
	// Mark notications as read.
	// (POST /notifications/read)
	MarkNotificationsAsRead(w http.ResponseWriter, r *http.Request)
	// Subscribe to push notifications.
	// (POST /push/subscribe)
	SubscribeToPush(w http.ResponseWriter, r *http.Request)
	// Unsubscribe from push notifications.
	// (POST /push/unsubscribe)
	UnsubscribeFromPush(w http.ResponseWriter, r *http.Request)
	// Get VAPID public key.
	// (GET /push/vapid)
	GetVapidKey(w http.ResponseWriter, r *http.Request)
	// Search for historic messages.
	// (GET /search)
	SearchMessages(w http.ResponseWriter, r *http.Request, params SearchMessagesParams)
	// Get settings for Convos.
	// (GET /settings)
	GetSettings(w http.ResponseWriter, r *http.Request)
	// Update settings for Convos.
	// (POST /settings)
	UpdateSettings(w http.ResponseWriter, r *http.Request)
	// Get user data.
	// (GET /user)
	GetUser(w http.ResponseWriter, r *http.Request, params GetUserParams)
	// Log in a user based on email and password.
	// (POST /user/login)
	LoginUser(w http.ResponseWriter, r *http.Request)
	// Logout a user.
	// (GET /user/logout)
	LogoutUser(w http.ResponseWriter, r *http.Request, params LogoutUserParams)
	// Register a new user.
	// (POST /user/register)
	RegisterUser(w http.ResponseWriter, r *http.Request)
	// Delete a user.
	// (DELETE /user/{email})
	DeleteUser(w http.ResponseWriter, r *http.Request, email EmailInPath)
	// Update an existing user.
	// (POST /user/{email})
	UpdateUser(w http.ResponseWriter, r *http.Request, email EmailInPath)
	// Generate invite link for an existing / new user.
	// (POST /user/{email}/invite)
	InviteUser(w http.ResponseWriter, r *http.Request, email EmailInPath)
	// List Convos users
	// (GET /users)
	GetUsers(w http.ResponseWriter, r *http.Request, params GetUsersParams)
	// Forwards the webhook payload to the Convos bot
	// (POST /webhook/{provider_name})
	Webhook(w http.ResponseWriter, r *http.Request, providerName string)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) CheckForUpdates

func (siw *ServerInterfaceWrapper) CheckForUpdates(w http.ResponseWriter, r *http.Request)

CheckForUpdates operation middleware

func (*ServerInterfaceWrapper) ConnectionMessages

func (siw *ServerInterfaceWrapper) ConnectionMessages(w http.ResponseWriter, r *http.Request)

ConnectionMessages operation middleware

func (*ServerInterfaceWrapper) ConversationMessages

func (siw *ServerInterfaceWrapper) ConversationMessages(w http.ResponseWriter, r *http.Request)

ConversationMessages operation middleware

func (*ServerInterfaceWrapper) CreateConnection

func (siw *ServerInterfaceWrapper) CreateConnection(w http.ResponseWriter, r *http.Request)

CreateConnection operation middleware

func (*ServerInterfaceWrapper) DeleteFiles

func (siw *ServerInterfaceWrapper) DeleteFiles(w http.ResponseWriter, r *http.Request)

DeleteFiles operation middleware

func (*ServerInterfaceWrapper) DeleteUser

func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)

DeleteUser operation middleware

func (*ServerInterfaceWrapper) Embed

Embed operation middleware

func (*ServerInterfaceWrapper) GetDictionary

func (siw *ServerInterfaceWrapper) GetDictionary(w http.ResponseWriter, r *http.Request)

GetDictionary operation middleware

func (*ServerInterfaceWrapper) GetFile

GetFile operation middleware

func (*ServerInterfaceWrapper) GetFiles

func (siw *ServerInterfaceWrapper) GetFiles(w http.ResponseWriter, r *http.Request)

GetFiles operation middleware

func (*ServerInterfaceWrapper) GetSettings

func (siw *ServerInterfaceWrapper) GetSettings(w http.ResponseWriter, r *http.Request)

GetSettings operation middleware

func (*ServerInterfaceWrapper) GetUser

GetUser operation middleware

func (*ServerInterfaceWrapper) GetUsers

func (siw *ServerInterfaceWrapper) GetUsers(w http.ResponseWriter, r *http.Request)

GetUsers operation middleware

func (*ServerInterfaceWrapper) GetVapidKey

func (siw *ServerInterfaceWrapper) GetVapidKey(w http.ResponseWriter, r *http.Request)

GetVapidKey operation middleware

func (*ServerInterfaceWrapper) InviteUser

func (siw *ServerInterfaceWrapper) InviteUser(w http.ResponseWriter, r *http.Request)

InviteUser operation middleware

func (*ServerInterfaceWrapper) ListConnectionProfiles

func (siw *ServerInterfaceWrapper) ListConnectionProfiles(w http.ResponseWriter, r *http.Request)

ListConnectionProfiles operation middleware

func (*ServerInterfaceWrapper) ListConnections

func (siw *ServerInterfaceWrapper) ListConnections(w http.ResponseWriter, r *http.Request)

ListConnections operation middleware

func (*ServerInterfaceWrapper) ListConversations

func (siw *ServerInterfaceWrapper) ListConversations(w http.ResponseWriter, r *http.Request)

ListConversations operation middleware

func (*ServerInterfaceWrapper) LoginUser

func (siw *ServerInterfaceWrapper) LoginUser(w http.ResponseWriter, r *http.Request)

LoginUser operation middleware

func (*ServerInterfaceWrapper) LogoutUser

func (siw *ServerInterfaceWrapper) LogoutUser(w http.ResponseWriter, r *http.Request)

LogoutUser operation middleware

func (*ServerInterfaceWrapper) MarkConnectionAsRead

func (siw *ServerInterfaceWrapper) MarkConnectionAsRead(w http.ResponseWriter, r *http.Request)

MarkConnectionAsRead operation middleware

func (*ServerInterfaceWrapper) MarkConversationAsRead

func (siw *ServerInterfaceWrapper) MarkConversationAsRead(w http.ResponseWriter, r *http.Request)

MarkConversationAsRead operation middleware

func (*ServerInterfaceWrapper) MarkNotificationsAsRead

func (siw *ServerInterfaceWrapper) MarkNotificationsAsRead(w http.ResponseWriter, r *http.Request)

MarkNotificationsAsRead operation middleware

func (*ServerInterfaceWrapper) NotificationMessages

func (siw *ServerInterfaceWrapper) NotificationMessages(w http.ResponseWriter, r *http.Request)

NotificationMessages operation middleware

func (*ServerInterfaceWrapper) RegisterUser

func (siw *ServerInterfaceWrapper) RegisterUser(w http.ResponseWriter, r *http.Request)

RegisterUser operation middleware

func (*ServerInterfaceWrapper) RemoveConnection

func (siw *ServerInterfaceWrapper) RemoveConnection(w http.ResponseWriter, r *http.Request)

RemoveConnection operation middleware

func (*ServerInterfaceWrapper) RemoveConnectionProfile

func (siw *ServerInterfaceWrapper) RemoveConnectionProfile(w http.ResponseWriter, r *http.Request)

RemoveConnectionProfile operation middleware

func (*ServerInterfaceWrapper) SaveConnectionProfile

func (siw *ServerInterfaceWrapper) SaveConnectionProfile(w http.ResponseWriter, r *http.Request)

SaveConnectionProfile operation middleware

func (*ServerInterfaceWrapper) SearchMessages

func (siw *ServerInterfaceWrapper) SearchMessages(w http.ResponseWriter, r *http.Request)

SearchMessages operation middleware

func (*ServerInterfaceWrapper) SubscribeToPush

func (siw *ServerInterfaceWrapper) SubscribeToPush(w http.ResponseWriter, r *http.Request)

SubscribeToPush operation middleware

func (*ServerInterfaceWrapper) UnsubscribeFromPush

func (siw *ServerInterfaceWrapper) UnsubscribeFromPush(w http.ResponseWriter, r *http.Request)

UnsubscribeFromPush operation middleware

func (*ServerInterfaceWrapper) UpdateConnection

func (siw *ServerInterfaceWrapper) UpdateConnection(w http.ResponseWriter, r *http.Request)

UpdateConnection operation middleware

func (*ServerInterfaceWrapper) UpdateSettings

func (siw *ServerInterfaceWrapper) UpdateSettings(w http.ResponseWriter, r *http.Request)

UpdateSettings operation middleware

func (*ServerInterfaceWrapper) UpdateUser

func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)

UpdateUser operation middleware

func (*ServerInterfaceWrapper) UploadFile

func (siw *ServerInterfaceWrapper) UploadFile(w http.ResponseWriter, r *http.Request)

UploadFile operation middleware

func (*ServerInterfaceWrapper) Webhook

Webhook operation middleware

type ServerSettings

type ServerSettings struct {
	// BaseUrl The base URL of the Convos server
	BaseUrl           *string `json:"base_url,omitempty"`
	Contact           *string `json:"contact,omitempty"`
	DefaultConnection *string `json:"default_connection,omitempty"`
	DiskUsage         *struct {
		BlockSize   *int64  `json:"block_size,omitempty"`
		BlocksFree  *uint64 `json:"blocks_free,omitempty"`
		BlocksTotal *uint64 `json:"blocks_total,omitempty"`
		BlocksUsed  *uint64 `json:"blocks_used,omitempty"`
		InodesFree  *uint64 `json:"inodes_free,omitempty"`
		InodesTotal *uint64 `json:"inodes_total,omitempty"`
		InodesUsed  *uint64 `json:"inodes_used,omitempty"`
	} `json:"disk_usage,omitempty"`
	ForcedConnection *bool   `json:"forced_connection,omitempty"`
	OidcLoginUrl     *string `json:"oidc_login_url,omitempty"`
	OpenToPublic     *bool   `json:"open_to_public,omitempty"`
	OrganizationName *string `json:"organization_name,omitempty"`
	OrganizationUrl  *string `json:"organization_url,omitempty"`
	VideoService     *string `json:"video_service,omitempty"`
}

ServerSettings defines model for ServerSettings.

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictServerInterface

type StrictServerInterface interface {
	// Check if a new update is available
	// (GET /check-for-updates)
	CheckForUpdates(ctx context.Context, request CheckForUpdatesRequestObject) (CheckForUpdatesResponseObject, error)
	// List all connection profiles.
	// (GET /connection-profiles)
	ListConnectionProfiles(ctx context.Context, request ListConnectionProfilesRequestObject) (ListConnectionProfilesResponseObject, error)
	// Update or create a profile.
	// (POST /connection-profiles)
	SaveConnectionProfile(ctx context.Context, request SaveConnectionProfileRequestObject) (SaveConnectionProfileResponseObject, error)
	// Remove a connection profile.
	// (DELETE /connection-profiles/{id})
	RemoveConnectionProfile(ctx context.Context, request RemoveConnectionProfileRequestObject) (RemoveConnectionProfileResponseObject, error)
	// Delete a connection and all assosiated data.
	// (DELETE /connection/{connection_id})
	RemoveConnection(ctx context.Context, request RemoveConnectionRequestObject) (RemoveConnectionResponseObject, error)
	// Update a connection.
	// (POST /connection/{connection_id})
	UpdateConnection(ctx context.Context, request UpdateConnectionRequestObject) (UpdateConnectionResponseObject, error)
	// Get a list of messages. Note: this resource require the user to be authenticated first.
	// (GET /connection/{connection_id}/conversation/{conversation_id}/messages)
	ConversationMessages(ctx context.Context, request ConversationMessagesRequestObject) (ConversationMessagesResponseObject, error)
	// Clears unread for a conversation.
	// (POST /connection/{connection_id}/conversation/{conversation_id}/read)
	MarkConversationAsRead(ctx context.Context, request MarkConversationAsReadRequestObject) (MarkConversationAsReadResponseObject, error)
	// Get a list of messages. Note: this resource require the user to be authenticated first.
	// (GET /connection/{connection_id}/messages)
	ConnectionMessages(ctx context.Context, request ConnectionMessagesRequestObject) (ConnectionMessagesResponseObject, error)
	// Clears unread for a connection.
	// (POST /connection/{connection_id}/read)
	MarkConnectionAsRead(ctx context.Context, request MarkConnectionAsReadRequestObject) (MarkConnectionAsReadResponseObject, error)
	// Get all the connections for a user.
	// (GET /connections)
	ListConnections(ctx context.Context, request ListConnectionsRequestObject) (ListConnectionsResponseObject, error)
	// Add a connection.
	// (POST /connections)
	CreateConnection(ctx context.Context, request CreateConnectionRequestObject) (CreateConnectionResponseObject, error)
	// Get a list of all conversations.
	// (GET /conversations)
	ListConversations(ctx context.Context, request ListConversationsRequestObject) (ListConversationsResponseObject, error)
	// Get information from a URL
	// (GET /embed)
	Embed(ctx context.Context, request EmbedRequestObject) (EmbedResponseObject, error)
	// Retrieve list of uploaded files.
	// (GET /files)
	GetFiles(ctx context.Context, request GetFilesRequestObject) (GetFilesResponseObject, error)
	// Upload file.
	// (POST /files)
	UploadFile(ctx context.Context, request UploadFileRequestObject) (UploadFileResponseObject, error)
	// Delete one (or more) uploaded file.
	// (DELETE /files/{uid}/{fid})
	DeleteFiles(ctx context.Context, request DeleteFilesRequestObject) (DeleteFilesResponseObject, error)
	// Retrieve uploaded file.
	// (GET /files/{uid}/{fid})
	GetFile(ctx context.Context, request GetFileRequestObject) (GetFileResponseObject, error)
	// Retrieve translations.
	// (GET /i18n/{lang})
	GetDictionary(ctx context.Context, request GetDictionaryRequestObject) (GetDictionaryResponseObject, error)
	// Get list of notications.
	// (GET /notifications)
	NotificationMessages(ctx context.Context, request NotificationMessagesRequestObject) (NotificationMessagesResponseObject, error)
	// Mark notications as read.
	// (POST /notifications/read)
	MarkNotificationsAsRead(ctx context.Context, request MarkNotificationsAsReadRequestObject) (MarkNotificationsAsReadResponseObject, error)
	// Subscribe to push notifications.
	// (POST /push/subscribe)
	SubscribeToPush(ctx context.Context, request SubscribeToPushRequestObject) (SubscribeToPushResponseObject, error)
	// Unsubscribe from push notifications.
	// (POST /push/unsubscribe)
	UnsubscribeFromPush(ctx context.Context, request UnsubscribeFromPushRequestObject) (UnsubscribeFromPushResponseObject, error)
	// Get VAPID public key.
	// (GET /push/vapid)
	GetVapidKey(ctx context.Context, request GetVapidKeyRequestObject) (GetVapidKeyResponseObject, error)
	// Search for historic messages.
	// (GET /search)
	SearchMessages(ctx context.Context, request SearchMessagesRequestObject) (SearchMessagesResponseObject, error)
	// Get settings for Convos.
	// (GET /settings)
	GetSettings(ctx context.Context, request GetSettingsRequestObject) (GetSettingsResponseObject, error)
	// Update settings for Convos.
	// (POST /settings)
	UpdateSettings(ctx context.Context, request UpdateSettingsRequestObject) (UpdateSettingsResponseObject, error)
	// Get user data.
	// (GET /user)
	GetUser(ctx context.Context, request GetUserRequestObject) (GetUserResponseObject, error)
	// Log in a user based on email and password.
	// (POST /user/login)
	LoginUser(ctx context.Context, request LoginUserRequestObject) (LoginUserResponseObject, error)
	// Logout a user.
	// (GET /user/logout)
	LogoutUser(ctx context.Context, request LogoutUserRequestObject) (LogoutUserResponseObject, error)
	// Register a new user.
	// (POST /user/register)
	RegisterUser(ctx context.Context, request RegisterUserRequestObject) (RegisterUserResponseObject, error)
	// Delete a user.
	// (DELETE /user/{email})
	DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
	// Update an existing user.
	// (POST /user/{email})
	UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
	// Generate invite link for an existing / new user.
	// (POST /user/{email}/invite)
	InviteUser(ctx context.Context, request InviteUserRequestObject) (InviteUserResponseObject, error)
	// List Convos users
	// (GET /users)
	GetUsers(ctx context.Context, request GetUsersRequestObject) (GetUsersResponseObject, error)
	// Forwards the webhook payload to the Convos bot
	// (POST /webhook/{provider_name})
	Webhook(ctx context.Context, request WebhookRequestObject) (WebhookResponseObject, error)
}

StrictServerInterface represents all server handlers.

type SubscribeToPush200JSONResponse

type SubscribeToPush200JSONResponse Success

func (SubscribeToPush200JSONResponse) VisitSubscribeToPushResponse

func (response SubscribeToPush200JSONResponse) VisitSubscribeToPushResponse(w http.ResponseWriter) error

type SubscribeToPush400JSONResponse

type SubscribeToPush400JSONResponse struct{ BadRequestJSONResponse }

func (SubscribeToPush400JSONResponse) VisitSubscribeToPushResponse

func (response SubscribeToPush400JSONResponse) VisitSubscribeToPushResponse(w http.ResponseWriter) error

type SubscribeToPush401JSONResponse

type SubscribeToPush401JSONResponse struct{ UnauthorizedJSONResponse }

func (SubscribeToPush401JSONResponse) VisitSubscribeToPushResponse

func (response SubscribeToPush401JSONResponse) VisitSubscribeToPushResponse(w http.ResponseWriter) error

type SubscribeToPush500JSONResponse

type SubscribeToPush500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (SubscribeToPush500JSONResponse) VisitSubscribeToPushResponse

func (response SubscribeToPush500JSONResponse) VisitSubscribeToPushResponse(w http.ResponseWriter) error

type SubscribeToPushJSONBody

type SubscribeToPushJSONBody struct {
	Endpoint string `json:"endpoint"`
	Keys     struct {
		Auth   string `json:"auth"`
		P256dh string `json:"p256dh"`
	} `json:"keys"`
}

SubscribeToPushJSONBody defines parameters for SubscribeToPush.

type SubscribeToPushJSONRequestBody

type SubscribeToPushJSONRequestBody SubscribeToPushJSONBody

SubscribeToPushJSONRequestBody defines body for SubscribeToPush for application/json ContentType.

type SubscribeToPushRequestObject

type SubscribeToPushRequestObject struct {
	Body *SubscribeToPushJSONRequestBody
}

type SubscribeToPushResponseObject

type SubscribeToPushResponseObject interface {
	VisitSubscribeToPushResponse(w http.ResponseWriter) error
}

type Success

type Success struct {
	// Message Human readable description
	Message *string `json:"message,omitempty"`
}

Success defines model for Success.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Unauthorized

type Unauthorized = Error

Unauthorized defines model for Unauthorized.

type UnauthorizedJSONResponse

type UnauthorizedJSONResponse Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) CheckForUpdates

func (_ Unimplemented) CheckForUpdates(w http.ResponseWriter, r *http.Request)

Check if a new update is available (GET /check-for-updates)

func (Unimplemented) ConnectionMessages

func (_ Unimplemented) ConnectionMessages(w http.ResponseWriter, r *http.Request, connectionId ConnectionId, params ConnectionMessagesParams)

Get a list of messages. Note: this resource require the user to be authenticated first. (GET /connection/{connection_id}/messages)

func (Unimplemented) ConversationMessages

func (_ Unimplemented) ConversationMessages(w http.ResponseWriter, r *http.Request, connectionId ConnectionId, conversationId ConversationId, params ConversationMessagesParams)

Get a list of messages. Note: this resource require the user to be authenticated first. (GET /connection/{connection_id}/conversation/{conversation_id}/messages)

func (Unimplemented) CreateConnection

func (_ Unimplemented) CreateConnection(w http.ResponseWriter, r *http.Request)

Add a connection. (POST /connections)

func (Unimplemented) DeleteFiles

func (_ Unimplemented) DeleteFiles(w http.ResponseWriter, r *http.Request, uid string, fid string)

Delete one (or more) uploaded file. (DELETE /files/{uid}/{fid})

func (Unimplemented) DeleteUser

func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, email EmailInPath)

Delete a user. (DELETE /user/{email})

func (Unimplemented) Embed

func (_ Unimplemented) Embed(w http.ResponseWriter, r *http.Request, params EmbedParams)

Get information from a URL (GET /embed)

func (Unimplemented) GetDictionary

func (_ Unimplemented) GetDictionary(w http.ResponseWriter, r *http.Request, lang string)

Retrieve translations. (GET /i18n/{lang})

func (Unimplemented) GetFile

func (_ Unimplemented) GetFile(w http.ResponseWriter, r *http.Request, uid string, fid string)

Retrieve uploaded file. (GET /files/{uid}/{fid})

func (Unimplemented) GetFiles

func (_ Unimplemented) GetFiles(w http.ResponseWriter, r *http.Request, params GetFilesParams)

Retrieve list of uploaded files. (GET /files)

func (Unimplemented) GetSettings

func (_ Unimplemented) GetSettings(w http.ResponseWriter, r *http.Request)

Get settings for Convos. (GET /settings)

func (Unimplemented) GetUser

func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, params GetUserParams)

Get user data. (GET /user)

func (Unimplemented) GetUsers

func (_ Unimplemented) GetUsers(w http.ResponseWriter, r *http.Request, params GetUsersParams)

List Convos users (GET /users)

func (Unimplemented) GetVapidKey

func (_ Unimplemented) GetVapidKey(w http.ResponseWriter, r *http.Request)

Get VAPID public key. (GET /push/vapid)

func (Unimplemented) InviteUser

func (_ Unimplemented) InviteUser(w http.ResponseWriter, r *http.Request, email EmailInPath)

Generate invite link for an existing / new user. (POST /user/{email}/invite)

func (Unimplemented) ListConnectionProfiles

func (_ Unimplemented) ListConnectionProfiles(w http.ResponseWriter, r *http.Request)

List all connection profiles. (GET /connection-profiles)

func (Unimplemented) ListConnections

func (_ Unimplemented) ListConnections(w http.ResponseWriter, r *http.Request)

Get all the connections for a user. (GET /connections)

func (Unimplemented) ListConversations

func (_ Unimplemented) ListConversations(w http.ResponseWriter, r *http.Request)

Get a list of all conversations. (GET /conversations)

func (Unimplemented) LoginUser

func (_ Unimplemented) LoginUser(w http.ResponseWriter, r *http.Request)

Log in a user based on email and password. (POST /user/login)

func (Unimplemented) LogoutUser

func (_ Unimplemented) LogoutUser(w http.ResponseWriter, r *http.Request, params LogoutUserParams)

Logout a user. (GET /user/logout)

func (Unimplemented) MarkConnectionAsRead

func (_ Unimplemented) MarkConnectionAsRead(w http.ResponseWriter, r *http.Request, connectionId ConnectionId)

Clears unread for a connection. (POST /connection/{connection_id}/read)

func (Unimplemented) MarkConversationAsRead

func (_ Unimplemented) MarkConversationAsRead(w http.ResponseWriter, r *http.Request, connectionId ConnectionId, conversationId ConversationId)

Clears unread for a conversation. (POST /connection/{connection_id}/conversation/{conversation_id}/read)

func (Unimplemented) MarkNotificationsAsRead

func (_ Unimplemented) MarkNotificationsAsRead(w http.ResponseWriter, r *http.Request)

Mark notications as read. (POST /notifications/read)

func (Unimplemented) NotificationMessages

func (_ Unimplemented) NotificationMessages(w http.ResponseWriter, r *http.Request)

Get list of notications. (GET /notifications)

func (Unimplemented) RegisterUser

func (_ Unimplemented) RegisterUser(w http.ResponseWriter, r *http.Request)

Register a new user. (POST /user/register)

func (Unimplemented) RemoveConnection

func (_ Unimplemented) RemoveConnection(w http.ResponseWriter, r *http.Request, connectionId ConnectionId)

Delete a connection and all assosiated data. (DELETE /connection/{connection_id})

func (Unimplemented) RemoveConnectionProfile

func (_ Unimplemented) RemoveConnectionProfile(w http.ResponseWriter, r *http.Request, id string)

Remove a connection profile. (DELETE /connection-profiles/{id})

func (Unimplemented) SaveConnectionProfile

func (_ Unimplemented) SaveConnectionProfile(w http.ResponseWriter, r *http.Request)

Update or create a profile. (POST /connection-profiles)

func (Unimplemented) SearchMessages

func (_ Unimplemented) SearchMessages(w http.ResponseWriter, r *http.Request, params SearchMessagesParams)

Search for historic messages. (GET /search)

func (Unimplemented) SubscribeToPush

func (_ Unimplemented) SubscribeToPush(w http.ResponseWriter, r *http.Request)

Subscribe to push notifications. (POST /push/subscribe)

func (Unimplemented) UnsubscribeFromPush

func (_ Unimplemented) UnsubscribeFromPush(w http.ResponseWriter, r *http.Request)

Unsubscribe from push notifications. (POST /push/unsubscribe)

func (Unimplemented) UpdateConnection

func (_ Unimplemented) UpdateConnection(w http.ResponseWriter, r *http.Request, connectionId ConnectionId)

Update a connection. (POST /connection/{connection_id})

func (Unimplemented) UpdateSettings

func (_ Unimplemented) UpdateSettings(w http.ResponseWriter, r *http.Request)

Update settings for Convos. (POST /settings)

func (Unimplemented) UpdateUser

func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, email EmailInPath)

Update an existing user. (POST /user/{email})

func (Unimplemented) UploadFile

func (_ Unimplemented) UploadFile(w http.ResponseWriter, r *http.Request)

Upload file. (POST /files)

func (Unimplemented) Webhook

func (_ Unimplemented) Webhook(w http.ResponseWriter, r *http.Request, providerName string)

Forwards the webhook payload to the Convos bot (POST /webhook/{provider_name})

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type UnsubscribeFromPush200JSONResponse

type UnsubscribeFromPush200JSONResponse Success

func (UnsubscribeFromPush200JSONResponse) VisitUnsubscribeFromPushResponse

func (response UnsubscribeFromPush200JSONResponse) VisitUnsubscribeFromPushResponse(w http.ResponseWriter) error

type UnsubscribeFromPush400JSONResponse

type UnsubscribeFromPush400JSONResponse struct{ BadRequestJSONResponse }

func (UnsubscribeFromPush400JSONResponse) VisitUnsubscribeFromPushResponse

func (response UnsubscribeFromPush400JSONResponse) VisitUnsubscribeFromPushResponse(w http.ResponseWriter) error

type UnsubscribeFromPush401JSONResponse

type UnsubscribeFromPush401JSONResponse struct{ UnauthorizedJSONResponse }

func (UnsubscribeFromPush401JSONResponse) VisitUnsubscribeFromPushResponse

func (response UnsubscribeFromPush401JSONResponse) VisitUnsubscribeFromPushResponse(w http.ResponseWriter) error

type UnsubscribeFromPush500JSONResponse

type UnsubscribeFromPush500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (UnsubscribeFromPush500JSONResponse) VisitUnsubscribeFromPushResponse

func (response UnsubscribeFromPush500JSONResponse) VisitUnsubscribeFromPushResponse(w http.ResponseWriter) error

type UnsubscribeFromPushJSONBody

type UnsubscribeFromPushJSONBody struct {
	Endpoint string `json:"endpoint"`
}

UnsubscribeFromPushJSONBody defines parameters for UnsubscribeFromPush.

type UnsubscribeFromPushJSONRequestBody

type UnsubscribeFromPushJSONRequestBody UnsubscribeFromPushJSONBody

UnsubscribeFromPushJSONRequestBody defines body for UnsubscribeFromPush for application/json ContentType.

type UnsubscribeFromPushRequestObject

type UnsubscribeFromPushRequestObject struct {
	Body *UnsubscribeFromPushJSONRequestBody
}

type UnsubscribeFromPushResponseObject

type UnsubscribeFromPushResponseObject interface {
	VisitUnsubscribeFromPushResponse(w http.ResponseWriter) error
}

type UpdateConnection200JSONResponse

type UpdateConnection200JSONResponse Connection

func (UpdateConnection200JSONResponse) VisitUpdateConnectionResponse

func (response UpdateConnection200JSONResponse) VisitUpdateConnectionResponse(w http.ResponseWriter) error

type UpdateConnection401JSONResponse

type UpdateConnection401JSONResponse struct{ UnauthorizedJSONResponse }

func (UpdateConnection401JSONResponse) VisitUpdateConnectionResponse

func (response UpdateConnection401JSONResponse) VisitUpdateConnectionResponse(w http.ResponseWriter) error

type UpdateConnection404JSONResponse

type UpdateConnection404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateConnection404JSONResponse) VisitUpdateConnectionResponse

func (response UpdateConnection404JSONResponse) VisitUpdateConnectionResponse(w http.ResponseWriter) error

type UpdateConnection500JSONResponse

type UpdateConnection500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (UpdateConnection500JSONResponse) VisitUpdateConnectionResponse

func (response UpdateConnection500JSONResponse) VisitUpdateConnectionResponse(w http.ResponseWriter) error

type UpdateConnectionJSONBody

type UpdateConnectionJSONBody struct {
	// OnConnectCommands Commands to be run after the connection is established
	OnConnectCommands *[]string `json:"on_connect_commands,omitempty"`

	// Url Example: irc://user:pass@irc.perl.org?nick=superman
	Url *string `json:"url,omitempty"`

	// WantedState Connection state
	WantedState *UpdateConnectionJSONBodyWantedState `json:"wanted_state,omitempty"`
}

UpdateConnectionJSONBody defines parameters for UpdateConnection.

type UpdateConnectionJSONBodyWantedState

type UpdateConnectionJSONBodyWantedState string

UpdateConnectionJSONBodyWantedState defines parameters for UpdateConnection.

const (
	UpdateConnectionJSONBodyWantedStateConnected    UpdateConnectionJSONBodyWantedState = "connected"
	UpdateConnectionJSONBodyWantedStateDisconnected UpdateConnectionJSONBodyWantedState = "disconnected"
)

Defines values for UpdateConnectionJSONBodyWantedState.

type UpdateConnectionJSONRequestBody

type UpdateConnectionJSONRequestBody UpdateConnectionJSONBody

UpdateConnectionJSONRequestBody defines body for UpdateConnection for application/json ContentType.

type UpdateConnectionRequestObject

type UpdateConnectionRequestObject struct {
	ConnectionId ConnectionId `json:"connection_id"`
	Body         *UpdateConnectionJSONRequestBody
}

type UpdateConnectionResponseObject

type UpdateConnectionResponseObject interface {
	VisitUpdateConnectionResponse(w http.ResponseWriter) error
}

type UpdateSettings200JSONResponse

type UpdateSettings200JSONResponse ServerSettings

func (UpdateSettings200JSONResponse) VisitUpdateSettingsResponse

func (response UpdateSettings200JSONResponse) VisitUpdateSettingsResponse(w http.ResponseWriter) error

type UpdateSettings401JSONResponse

type UpdateSettings401JSONResponse struct{ UnauthorizedJSONResponse }

func (UpdateSettings401JSONResponse) VisitUpdateSettingsResponse

func (response UpdateSettings401JSONResponse) VisitUpdateSettingsResponse(w http.ResponseWriter) error

type UpdateSettings403JSONResponse

type UpdateSettings403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateSettings403JSONResponse) VisitUpdateSettingsResponse

func (response UpdateSettings403JSONResponse) VisitUpdateSettingsResponse(w http.ResponseWriter) error

type UpdateSettings500JSONResponse

type UpdateSettings500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (UpdateSettings500JSONResponse) VisitUpdateSettingsResponse

func (response UpdateSettings500JSONResponse) VisitUpdateSettingsResponse(w http.ResponseWriter) error

type UpdateSettingsJSONRequestBody

type UpdateSettingsJSONRequestBody = ServerSettings

UpdateSettingsJSONRequestBody defines body for UpdateSettings for application/json ContentType.

type UpdateSettingsRequestObject

type UpdateSettingsRequestObject struct {
	Body *UpdateSettingsJSONRequestBody
}

type UpdateSettingsResponseObject

type UpdateSettingsResponseObject interface {
	VisitUpdateSettingsResponse(w http.ResponseWriter) error
}

type UpdateUser200JSONResponse

type UpdateUser200JSONResponse User

func (UpdateUser200JSONResponse) VisitUpdateUserResponse

func (response UpdateUser200JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser401JSONResponse

type UpdateUser401JSONResponse struct{ UnauthorizedJSONResponse }

func (UpdateUser401JSONResponse) VisitUpdateUserResponse

func (response UpdateUser401JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser403JSONResponse

type UpdateUser403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateUser403JSONResponse) VisitUpdateUserResponse

func (response UpdateUser403JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser404JSONResponse

type UpdateUser404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateUser404JSONResponse) VisitUpdateUserResponse

func (response UpdateUser404JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser500JSONResponse

type UpdateUser500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (UpdateUser500JSONResponse) VisitUpdateUserResponse

func (response UpdateUser500JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUserJSONBody

type UpdateUserJSONBody struct {
	// HighlightKeywords Extra keywords to highlight on
	HighlightKeywords *[]string `json:"highlight_keywords,omitempty"`

	// Password User password
	Password *Password `json:"password,omitempty"`

	// Roles User roles, such as admin and bot.
	Roles *[]string `json:"roles,omitempty"`
}

UpdateUserJSONBody defines parameters for UpdateUser.

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody UpdateUserJSONBody

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserRequestObject

type UpdateUserRequestObject struct {
	Email EmailInPath `json:"email"`
	Body  *UpdateUserJSONRequestBody
}

type UpdateUserResponseObject

type UpdateUserResponseObject interface {
	VisitUpdateUserResponse(w http.ResponseWriter) error
}

type UploadFile200JSONResponse

type UploadFile200JSONResponse struct {
	Files *[]struct {
		Ext      string    `json:"ext"`
		Filename string    `json:"filename"`
		Id       string    `json:"id"`
		Saved    time.Time `json:"saved"`
		Uid      string    `json:"uid"`
		Url      string    `json:"url"`
	} `json:"files,omitempty"`
}

func (UploadFile200JSONResponse) VisitUploadFileResponse

func (response UploadFile200JSONResponse) VisitUploadFileResponse(w http.ResponseWriter) error

type UploadFile401JSONResponse

type UploadFile401JSONResponse struct{ UnauthorizedJSONResponse }

func (UploadFile401JSONResponse) VisitUploadFileResponse

func (response UploadFile401JSONResponse) VisitUploadFileResponse(w http.ResponseWriter) error

type UploadFile500JSONResponse

type UploadFile500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (UploadFile500JSONResponse) VisitUploadFileResponse

func (response UploadFile500JSONResponse) VisitUploadFileResponse(w http.ResponseWriter) error

type UploadFileMultipartBody

type UploadFileMultipartBody struct {
	File      openapi_types.File `json:"file"`
	Id        *string            `json:"id,omitempty"`
	WriteOnly *bool              `json:"write_only,omitempty"`
}

UploadFileMultipartBody defines parameters for UploadFile.

type UploadFileMultipartRequestBody

type UploadFileMultipartRequestBody UploadFileMultipartBody

UploadFileMultipartRequestBody defines body for UploadFile for multipart/form-data ContentType.

type UploadFileRequestObject

type UploadFileRequestObject struct {
	Body *multipart.Reader
}

type UploadFileResponseObject

type UploadFileResponseObject interface {
	VisitUploadFileResponse(w http.ResponseWriter) error
}

type User

type User struct {
	Connections       *[]Connection   `json:"connections,omitempty"`
	Conversations     *[]Conversation `json:"conversations,omitempty"`
	DefaultConnection *string         `json:"default_connection,omitempty"`

	// Email Unique email identifying a user in Convos
	Email            string `json:"email"`
	ForcedConnection *bool  `json:"forced_connection,omitempty"`

	// HighlightKeywords Extra keywords to highlight on
	HighlightKeywords *[]string `json:"highlight_keywords,omitempty"`

	// Registered Example: 2015-09-06T10:47:31Z
	Registered *time.Time `json:"registered,omitempty"`

	// RemoteAddress The last known remote address for the user
	RemoteAddress *string `json:"remote_address,omitempty"`

	// Roles User roles, such as admin and bot
	Roles *[]string `json:"roles,omitempty"`
	Uid   *string   `json:"uid,omitempty"`

	// Unread Number of unread notifications
	Unread       int     `json:"unread"`
	VideoService *string `json:"video_service,omitempty"`
}

User defines model for User.

func ToUser

func ToUser(u *core.User, includeConns, includeConvs bool) User

ToUser converts a core.User to an api.User, optionally including connections and conversations.

func ToUserSummary

func ToUserSummary(u *core.User) User

ToUserSummary converts a core.User to an api.User (summary version).

type Webhook200JSONResponse

type Webhook200JSONResponse map[string]interface{}

func (Webhook200JSONResponse) VisitWebhookResponse

func (response Webhook200JSONResponse) VisitWebhookResponse(w http.ResponseWriter) error

type WebhookJSONBody

type WebhookJSONBody = map[string]interface{}

WebhookJSONBody defines parameters for Webhook.

type WebhookJSONRequestBody

type WebhookJSONRequestBody = WebhookJSONBody

WebhookJSONRequestBody defines body for Webhook for application/json ContentType.

type WebhookRequestObject

type WebhookRequestObject struct {
	ProviderName string `json:"provider_name"`
	Body         *WebhookJSONRequestBody
}

type WebhookResponseObject

type WebhookResponseObject interface {
	VisitWebhookResponse(w http.ResponseWriter) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL