user

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PathListURI = "/v1/api/agently/user/"

Variables

View Source
var PathURI = "/v1/api/agently/user/{id}"

Functions

func DefineComponent

func DefineComponent(ctx context.Context, srv *datly.Service) error

func DefineListComponent

func DefineListComponent(ctx context.Context, srv *datly.Service) error

Types

type Input

type Input struct {
	Id       string    `parameter:",kind=path,in=id" predicate:"equal,group=0,t,id"`
	Username string    `parameter:",kind=query,in=username" predicate:"equal,group=0,t,username"`
	Provider string    `parameter:",kind=query,in=provider" predicate:"equal,group=0,t,provider"`
	Subject  string    `parameter:",kind=query,in=subject" predicate:"equal,group=0,t,subject"`
	Has      *InputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*Input) EmbedFS

func (i *Input) EmbedFS() *embed.FS

type InputHas

type InputHas struct{ Id, Username, Provider, Subject bool }

type Output

type Output struct {
	response.Status `parameter:",kind=output,in=status" json:",omitempty"`
	Data            []*View          `parameter:",kind=output,in=view" view:"user,batch=10000,relationalConcurrency=1" sql:"uri=user/user.sql"`
	Metrics         response.Metrics `parameter:",kind=output,in=metrics"`
}

type View

type View struct {
	Id                 string     `sqlx:"id"`
	Username           string     `sqlx:"username"`
	DisplayName        *string    `sqlx:"display_name"`
	Email              *string    `sqlx:"email"`
	Provider           string     `sqlx:"provider"`
	Subject            *string    `sqlx:"subject"`
	Timezone           string     `sqlx:"timezone"`
	DefaultAgentRef    *string    `sqlx:"default_agent_ref"`
	DefaultModelRef    *string    `sqlx:"default_model_ref"`
	DefaultEmbedderRef *string    `sqlx:"default_embedder_ref"`
	Settings           *string    `sqlx:"settings"`
	Disabled           int        `sqlx:"disabled"`
	CreatedAt          time.Time  `sqlx:"created_at"`
	UpdatedAt          *time.Time `sqlx:"updated_at"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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