Help us shape the future of Go! Take the 2026 Go Developer Survey

responses

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppResponse

type AppResponse struct {
	ID          string            `json:"id"`
	Name        string            `json:"name"`
	Description string            `json:"description"`
	Metadata    map[string]any    `json:"metadata"`
	OrgID       string            `json:"org_id"`
	CreatedAt   time.Time         `json:"created_at"`
	UpdatedAt   time.Time         `json:"updated_at"`
	EnvTypes    []EnvTypeResponse `json:"env_types,omitempty"`
	EnvCount    string            `json:"envCount,omitempty"`
}

func NewAppResponse

func NewAppResponse(id, name, description, orgID string, metadata map[string]any, createdAt, updatedAt time.Time) *AppResponse

NewAppResponse creates a new AppResponse instance

type DeviceCodeResponse

type DeviceCodeResponse struct {
	DeviceCode      string `json:"device_code"`
	UserCode        string `json:"user_code"`
	VerificationUri string `json:"verification_uri_complete"`
	ExpiresIn       int    `json:"expires_in"`
	Interval        int    `json:"interval"`
	ClientId        string `json:"client_id"`
	AuthDomain      string `json:"domain"`
}

type EnvTypeResponse

type EnvTypeResponse struct {
	ID          string    `json:"id"`
	OrgID       string    `json:"org_id"`
	Name        string    `json:"name"`
	AppID       string    `json:"app_id"`
	IsDefault   bool      `json:"is_default"`
	IsProtected bool      `json:"is_protected"`
	Color       string    `json:"color"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

EnvTypeResponse represents the response structure for environment types

func NewEnvTypeResponse

func NewEnvTypeResponse(id, orgID, name, appID string, isDefault, isProtected bool, color string, createdAt, updatedAt time.Time) *EnvTypeResponse

type EnvironmentVariable

type EnvironmentVariable struct {
	ID        string `json:"id"`
	Key       string `json:"key"`
	Value     string `json:"value"`
	AppID     string `json:"app_id"`
	EnvTypeID string `json:"env_type_id"`
	OrgID     string `json:"org_id"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

type LoginTokenResponse

type LoginTokenResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	IdToken      string `json:"id_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
}

type UserInfoResponse

type UserInfoResponse struct {
	User struct {
		Id                string `json:"id"`
		Email             string `json:"email"`
		OrgId             string `json:"org_id"`
		RoleId            string `json:"role_id"`
		Auth0Id           string `json:"auth0_id"`
		FullName          string `json:"full_name"`
		ProfilePictureUrl string `json:"profile_picture_url"`
		IsActive          bool   `json:"is_active"`
		LastLogin         string `json:"last_login"`
		CreatedAt         string `json:"created_at"`
		UpdatedAt         string `json:"updated_at"`
	} `json:"user"`
	Org struct {
		Id        string                 `json:"id"`
		Name      string                 `json:"name"`
		LogoUrl   string                 `json:"logo_url"`
		Slug      string                 `json:"slug"`
		Size      string                 `json:"size"`
		Website   string                 `json:"website"`
		Metadata  map[string]interface{} `json:"metadata"`
		CreatedAt string                 `json:"created_at"`
		UpdatedAt string                 `json:"updated_at"`
	} `json:"org"`
	Role struct {
		Id                   string `json:"id"`
		OrgId                string `json:"org_id"`
		Name                 string `json:"name"`
		CreatedAt            string `json:"created_at"`
		UpdatedAt            string `json:"updated_at"`
		IsAdmin              bool   `json:"is_admin"`
		CanView              bool   `json:"can_view"`
		CanEdit              bool   `json:"can_edit"`
		HavingBillingOptions bool   `json:"have_billing_options"`
		HavingApiAccess      bool   `json:"have_api_access"`
		HavingWebhookAccess  bool   `json:"have_webhook_access"`
		IsMaster             bool   `json:"is_master"`
	} `json:"role"`
}

Jump to

Keyboard shortcuts

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