handler

package
v0.0.0-...-2714d21 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTeamMember

func AddTeamMember(c *fiber.Ctx) error

func ArchivePrompt

func ArchivePrompt(c *fiber.Ctx) error

func ArchiveSkillVersion

func ArchiveSkillVersion(c *fiber.Ctx) error

ArchiveSkillVersion archives a version.

func ArchiveToolVersion

func ArchiveToolVersion(c *fiber.Ctx) error

ArchiveToolVersion archives a specific version of a tool (requires editor role).

func ArchiveVersion

func ArchiveVersion(c *fiber.Ctx) error

func BatchRun

func BatchRun(c *fiber.Ctx) error

func ChangePassword

func ChangePassword(c *fiber.Ctx) error

func CreateAPIKey

func CreateAPIKey(c *fiber.Ctx) error

func CreateJoinRequest

func CreateJoinRequest(c *fiber.Ctx) error

CreateJoinRequest creates a pending request for the authenticated user to join a specific team.

func CreateOrg

func CreateOrg(c *fiber.Ctx) error

func CreateProject

func CreateProject(c *fiber.Ctx) error

func CreatePrompt

func CreatePrompt(c *fiber.Ctx) error

func CreatePromptPayload

func CreatePromptPayload(c *fiber.Ctx) error

func CreateSkill

func CreateSkill(c *fiber.Ctx) error

CreateSkill creates a skill under a project (requires editor role).

func CreateSkillVersion

func CreateSkillVersion(c *fiber.Ctx) error

func CreateTeam

func CreateTeam(c *fiber.Ctx) error

func CreateTool

func CreateTool(c *fiber.Ctx) error

CreateTool creates a tool under a project (requires editor role).

func CreateToolVersion

func CreateToolVersion(c *fiber.Ctx) error

func CreateVersion

func CreateVersion(c *fiber.Ctx) error

func DeleteAPIKey

func DeleteAPIKey(c *fiber.Ctx) error

func DeleteMe

func DeleteMe(c *fiber.Ctx) error

func DeleteOrg

func DeleteOrg(c *fiber.Ctx) error

func DeleteProject

func DeleteProject(c *fiber.Ctx) error

func DeletePromptPayload

func DeletePromptPayload(c *fiber.Ctx) error

func DeleteSessionByID

func DeleteSessionByID(c *fiber.Ctx) error

func DeleteSkill

func DeleteSkill(c *fiber.Ctx) error

DeleteSkill deletes a skill (requires editor role).

func DeleteSkillFile

func DeleteSkillFile(c *fiber.Ctx) error

DeleteSkillFile deletes an individual file.

func DeleteSkillVersion

func DeleteSkillVersion(c *fiber.Ctx) error

DeleteSkillVersion deletes a draft version.

func DeleteTeam

func DeleteTeam(c *fiber.Ctx) error

DeleteTeam deletes an existing team.

func DeleteTool

func DeleteTool(c *fiber.Ctx) error

DeleteTool deletes a tool (requires editor role).

func DeleteToolVersion

func DeleteToolVersion(c *fiber.Ctx) error

DeleteToolVersion deletes/archives a specific version of a tool (requires editor role).

func DeleteVersion

func DeleteVersion(c *fiber.Ctx) error

func DemoteSkillVersion

func DemoteSkillVersion(c *fiber.Ctx) error

DemoteSkillVersion demotes a live version to stable.

func DemoteToolVersion

func DemoteToolVersion(c *fiber.Ctx) error

DemoteToolVersion demotes version: live -> stable (requires editor role).

func DemoteVersion

func DemoteVersion(c *fiber.Ctx) error

func DiffSkillVersions

func DiffSkillVersions(c *fiber.Ctx) error

func DiffToolVersions

func DiffToolVersions(c *fiber.Ctx) error

func DiffVersions

func DiffVersions(c *fiber.Ctx) error

func DownloadSkillZip

func DownloadSkillZip(c *fiber.Ctx) error

DownloadSkillZip packs all files in a version into a zip and sends it.

func DuplicateSkillVersion

func DuplicateSkillVersion(c *fiber.Ctx) error

DuplicateSkillVersion duplicates an existing version.

func DuplicateToolVersion

func DuplicateToolVersion(c *fiber.Ctx) error

DuplicateToolVersion duplicates an existing tool version into a new draft version (requires editor role).

func DuplicateVersion

func DuplicateVersion(c *fiber.Ctx) error

func GenerateVerificationCode

func GenerateVerificationCode() (string, error)

func GetAdminInbox

func GetAdminInbox(c *fiber.Ctx) error

GetAdminInbox returns all pending join requests that the caller is authorized to approve or reject.

func GetProject

func GetProject(c *fiber.Ctx) error

func GetPrompt

func GetPrompt(c *fiber.Ctx) error

func GetPromptPayload

func GetPromptPayload(c *fiber.Ctx) error

func GetSkill

func GetSkill(c *fiber.Ctx) error

GetSkill returns details of a specific skill.

func GetSkillFileContent

func GetSkillFileContent(c *fiber.Ctx) error

GetSkillFileContent returns content of an individual file.

func GetSkillVersion

func GetSkillVersion(c *fiber.Ctx) error

GetSkillVersion returns details of a version.

func GetSubjectProjectIDs

func GetSubjectProjectIDs(ctx context.Context, subj *model.Subject, minRole string) ([]uuid.UUID, error)

GetSubjectProjectIDs returns the project IDs the subject can access with at least minRole.

func GetTool

func GetTool(c *fiber.Ctx) error

GetTool returns details of a specific tool.

func GetToolVersion

func GetToolVersion(c *fiber.Ctx) error

GetToolVersion gets details of a specific version of a tool.

func GetVersion

func GetVersion(c *fiber.Ctx) error

func GetVersionVariables

func GetVersionVariables(c *fiber.Ctx) error

func GrantProjectAccess

func GrantProjectAccess(c *fiber.Ctx) error

func Health

func Health(c *fiber.Ctx) error

func InvokeLive

func InvokeLive(c *fiber.Ctx) error

InvokeLive executes the active 'live' version of the tool.

func InvokeVersion

func InvokeVersion(c *fiber.Ctx) error

InvokeVersion executes a specific version of the tool.

func IsOrgAdmin

func IsOrgAdmin(c *fiber.Ctx, orgID uuid.UUID) (bool, error)

func IsTeamAdmin

func IsTeamAdmin(c *fiber.Ctx, teamID uuid.UUID) (bool, error)

func IsTeamEditor

func IsTeamEditor(c *fiber.Ctx, teamID uuid.UUID) (bool, error)

func IsTeamViewer

func IsTeamViewer(c *fiber.Ctx, teamID uuid.UUID) (bool, error)

func LeaveTeam

func LeaveTeam(c *fiber.Ctx) error

func ListAPIKeys

func ListAPIKeys(c *fiber.Ctx) error

func ListAllPrompts

func ListAllPrompts(c *fiber.Ctx) error

func ListAllTools

func ListAllTools(c *fiber.Ctx) error

ListAllTools lists tools globally, filtered by an explicit project ID query parameter.

func ListOrgAuditLogs

func ListOrgAuditLogs(c *fiber.Ctx) error

func ListOrgPeople

func ListOrgPeople(c *fiber.Ctx) error

func ListOrgTeams

func ListOrgTeams(c *fiber.Ctx) error

ListOrgTeams lists all teams within a specific organization. Anyone belonging to that organization can see the teams.

func ListPromptPayloads

func ListPromptPayloads(c *fiber.Ctx) error

func ListPrompts

func ListPrompts(c *fiber.Ctx) error

func ListSessions

func ListSessions(c *fiber.Ctx) error

func ListSkillFiles

func ListSkillFiles(c *fiber.Ctx) error

ListSkillFiles lists meta info about files in a version (omits raw content in JSON).

func ListSkillVersions

func ListSkillVersions(c *fiber.Ctx) error

ListSkillVersions lists all versions.

func ListSkills

func ListSkills(c *fiber.Ctx) error

ListSkills lists all skills in a project (requires viewer role).

func ListTags

func ListTags(c *fiber.Ctx) error

func ListTeamMembers

func ListTeamMembers(c *fiber.Ctx) error

func ListTeamProjects

func ListTeamProjects(c *fiber.Ctx) error

func ListToolInvocations

func ListToolInvocations(c *fiber.Ctx) error

ListToolInvocations returns a paginated history of tool executions/invocations using cursor-based pagination.

func ListToolVersions

func ListToolVersions(c *fiber.Ctx) error

ListToolVersions lists all versions of a tool.

func ListTools

func ListTools(c *fiber.Ctx) error

ListTools lists all tools in a project (requires viewer role).

func ListUserOrgs

func ListUserOrgs(c *fiber.Ctx) error

func ListUserTeams

func ListUserTeams(c *fiber.Ctx) error

func ListVersions

func ListVersions(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func Logout

func Logout(c *fiber.Ctx) error

func Me

func Me(c *fiber.Ctx) error

func MovePrompt

func MovePrompt(c *fiber.Ctx) error

func NormalizeSlug

func NormalizeSlug(s string) string

func PromoteSkillVersion

func PromoteSkillVersion(c *fiber.Ctx) error

PromoteSkillVersion promotes a version status (draft -> stable -> live).

func PromoteToolVersion

func PromoteToolVersion(c *fiber.Ctx) error

PromoteToolVersion promotes version: draft -> stable -> live (requires editor role).

func PromoteVersion

func PromoteVersion(c *fiber.Ctx) error

func PurgeGlobalCache

func PurgeGlobalCache(c *fiber.Ctx) error

func PurgePromptCache

func PurgePromptCache(c *fiber.Ctx) error

func PurgeSkillCache

func PurgeSkillCache(c *fiber.Ctx) error

func PurgeToolCache

func PurgeToolCache(c *fiber.Ctx) error

func RegenerateAPIKey

func RegenerateAPIKey(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

func RemoveOrgMember

func RemoveOrgMember(c *fiber.Ctx) error

func RemoveTag

func RemoveTag(c *fiber.Ctx) error

func RemoveTeamMember

func RemoveTeamMember(c *fiber.Ctx) error

func RenderLive

func RenderLive(c *fiber.Ctx) error

func RenderVersion

func RenderVersion(c *fiber.Ctx) error

func ResetPassword

func ResetPassword(c *fiber.Ctx) error

func ResolveJoinRequest

func ResolveJoinRequest(c *fiber.Ctx) error

ResolveJoinRequest allows an authorized admin to approve or reject a pending request.

func RestorePrompt

func RestorePrompt(c *fiber.Ctx) error

func RevokeProjectAccess

func RevokeProjectAccess(c *fiber.Ctx) error

func RollbackPrompt

func RollbackPrompt(c *fiber.Ctx) error

func RunLive

func RunLive(c *fiber.Ctx) error

func RunVersion

func RunVersion(c *fiber.Ctx) error
func Search(searcher search.Searcher) fiber.Handler

func SendPasswordResetEmail

func SendPasswordResetEmail(email, code string) error

func SendVerificationEmail

func SendVerificationEmail(email, code string) error

func SetTag

func SetTag(c *fiber.Ctx) error

func TriggerPasswordReset

func TriggerPasswordReset(c *fiber.Ctx) error

func TriggerVerification

func TriggerVerification(c *fiber.Ctx) error

func UpdateAPIKey

func UpdateAPIKey(c *fiber.Ctx) error

func UpdateMe

func UpdateMe(c *fiber.Ctx) error

func UpdateOrg

func UpdateOrg(c *fiber.Ctx) error

func UpdateOrgMemberRole

func UpdateOrgMemberRole(c *fiber.Ctx) error

func UpdateProject

func UpdateProject(c *fiber.Ctx) error

func UpdatePrompt

func UpdatePrompt(c *fiber.Ctx) error

func UpdatePromptPayload

func UpdatePromptPayload(c *fiber.Ctx) error

func UpdatePromptSchema

func UpdatePromptSchema(c *fiber.Ctx) error

func UpdateSkill

func UpdateSkill(c *fiber.Ctx) error

UpdateSkill updates skill details (requires editor role).

func UpdateTeam

func UpdateTeam(c *fiber.Ctx) error

func UpdateTeamMemberRole

func UpdateTeamMemberRole(c *fiber.Ctx) error

func UpdateTool

func UpdateTool(c *fiber.Ctx) error

UpdateTool updates tool details (requires editor role).

func UpdateToolVersion

func UpdateToolVersion(c *fiber.Ctx) error

UpdateToolVersion updates a draft version of a tool (requires editor role).

func UpdateVersion

func UpdateVersion(c *fiber.Ctx) error

func UploadSkillZip

func UploadSkillZip(c *fiber.Ctx) error

UploadSkillZip handles uploading a zip to create a new draft version.

func UpsertSkillFile

func UpsertSkillFile(c *fiber.Ctx) error

UpsertSkillFile creates or updates an individual file.

func ValidateJSONSchema

func ValidateJSONSchema(schemaBytes []byte, dataBytes []byte) error

func Verify

func Verify(c *fiber.Ctx) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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