private

package
v0.0.0-...-c85e528 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskAI

func AskAI(services *cosapi_services.Services) gin.HandlerFunc

AskAI handles AI requests

func CallbackSlack

func CallbackSlack(s *cosapi_services.Services) gin.HandlerFunc

func CreateIntegration

func CreateIntegration(s *cosapi_services.Services) gin.HandlerFunc

func CreateOrganizationStage

func CreateOrganizationStage(s *cosapi_services.Services) gin.HandlerFunc

func CreatePersonalIntegrations

func CreatePersonalIntegrations(s *cosapi_services.Services) gin.HandlerFunc

func DeleteIntegrations

func DeleteIntegrations(s *cosapi_services.Services) gin.HandlerFunc

func GetIntegrations

func GetIntegrations(s *cosapi_services.Services) gin.HandlerFunc

func GetMailboxes

func GetMailboxes(s *cosapi_services.Services) gin.HandlerFunc

func GetOAuthSettings

func GetOAuthSettings(s *cosapi_services.Services) gin.HandlerFunc

func GetPersonalIntegrationByName

func GetPersonalIntegrationByName(s *cosapi_services.Services) gin.HandlerFunc

func GetPersonalIntegrations

func GetPersonalIntegrations(s *cosapi_services.Services) gin.HandlerFunc

func GetSlackSettings

func GetSlackSettings(s *cosapi_services.Services) gin.HandlerFunc

func RequestAccessSlack

func RequestAccessSlack(s *cosapi_services.Services) gin.HandlerFunc

Types

type AskAIRequest

type AskAIRequest struct {
	Model   string
	Prompt  string
	AIModel commonEnum.AIModel
}

type AskAIResponse

type AskAIResponse struct {
	enum.BaseResponse
	Model  string `json:"model"`
	Answer string `json:"answer"`
}

type OAuthToken

type OAuthToken struct {
	AccessToken       string    `json:"accessToken"`
	RefreshToken      string    `json:"refreshToken"`
	ExpiresAt         time.Time `json:"expiresAt"`
	Scope             string    `json:"scope"`
	ProviderAccountId string    `json:"providerAccountId"`
	IdToken           string    `json:"idToken"`
}

type OauthSlackResponse

type OauthSlackResponse struct {
	Ok         bool   `json:"ok"`
	Error      string `json:"error"`
	AppId      string `json:"app_id"`
	AuthedUser struct {
		Id string `json:"id"`
	} `json:"authed_user"`
	Scope       string `json:"scope"`
	TokenType   string `json:"token_type"`
	AccessToken string `json:"access_token"`
	BotUserId   string `json:"bot_user_id"`
	Team        struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"team"`
	Enterprise          interface{} `json:"enterprise"`
	IsEnterpriseInstall bool        `json:"is_enterprise_install"`
}

type OauthSlackRevokeResponse

type OauthSlackRevokeResponse struct {
	Ok      bool    `json:"ok"`
	Revoked *bool   `json:"revoked"`
	Error   *string `json:"error"`
}

type RequestMagicLinkRequest

type RequestMagicLinkRequest struct {
	Email string `json:"email"`
}

type RevokeRequest

type RevokeRequest struct {
	Tenant   string `json:"tenant"`
	Provider string `json:"provider"`
	Email    string `json:"email"`
}

type SignInRequest

type SignInRequest struct {
	Code               string     `json:"code"`
	Provider           string     `json:"provider"`
	Tenant             string     `json:"tenant"`
	LoggedInEmail      string     `json:"loggedInEmail"`
	OAuthTokenForEmail string     `json:"oAuthTokenForEmail"`
	OAuthTokenType     string     `json:"oAuthTokenType"`
	OAuthToken         OAuthToken `json:"oAuthToken"`
}

type UpdateUserRequest

type UpdateUserRequest struct {
	Tenant string `json:"tenant"`
	Email  string `json:"email"`
	UserId string `json:"userId"`
}

Jump to

Keyboard shortcuts

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