models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonResponse

type CommonResponse[T any] struct {
	Result T `json:"result"`
}

type NextParams

type NextParams struct {
	Limit          int    `json:"limit"`
	AfterSubuserId int    `json:"after_subuser_id"`
	Username       string `json:"username"`
}

type PaginationData

type PaginationData struct {
	Limit          string `json:"limit"`
	AfterSubuserId string `json:"after_subuser_id"`
	Username       string `json:"username"`
}

type Subuser

type Subuser struct {
	Disabled bool   `json:"disabled"`
	Email    string `json:"email"`
	Id       int    `json:"id"`
	Username string `json:"username"`
}

type SubuserCreate

type SubuserCreate struct {
	Username      string   `json:"username"`
	Email         string   `json:"email"`
	Password      string   `json:"password"`
	Ips           []string `json:"ips"`
	Region        string   `json:"region"`
	IncludeRegion bool     `json:"include_region"`
}

type Teammate

type Teammate struct {
	Username     string `json:"username"`
	Email        string `json:"email"`
	FirstName    string `json:"first_name"`
	LastName     string `json:"last_name"`
	Address      string `json:"address"`
	Address2     string `json:"address2"`
	City         string `json:"city"`
	State        string `json:"state"`
	Zip          string `json:"zip"`
	Country      string `json:"country"`
	Company      string `json:"company"`
	Website      string `json:"website"`
	Phone        string `json:"phone"`
	IsAdmin      bool   `json:"is_admin"`
	IsSso        bool   `json:"is_sso"`
	UserType     string `json:"user_type"`
	IsUnified    bool   `json:"is_unified"`
	IsPartnerSso bool   `json:"is_partner_sso"`
}

type TeammateInvitation added in v0.0.2

type TeammateInvitation struct {
	Email          string   `json:"email"`
	Scopes         []string `json:"scopes"`
	IsAdmin        bool     `json:"is_admin"`
	Token          string   `json:"token"`
	ExpirationDate int64    `json:"expiration_date"`
}

type TeammateScope

type TeammateScope struct {
	Teammate
	Scopes []string `json:"scopes"`
}

type TeammateSubuser

type TeammateSubuser struct {
	Id             int      `json:"id"`
	Username       string   `json:"username"`
	Email          string   `json:"email"`
	Disabled       bool     `json:"disabled"`
	PermissionType string   `json:"permission_type"`
	Scopes         []string `json:"scopes"`
}

type TeammateSubuserResponse

type TeammateSubuserResponse struct {
	HasRestrictedSubuserAccess bool              `json:"has_restricted_subuser_access"`
	SubuserAccess              []TeammateSubuser `json:"subuser_access"`
	Metadata                   struct {
		NextParams NextParams `json:"next_params,omitempty"`
	} `json:"_metadata"`
}

Jump to

Keyboard shortcuts

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