api

package
v0.0.0-...-6917055 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpec

func GetSpec() (swagger *openapi3.T, err error)

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

func GetSwagger() (*openapi3.T, error)

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router gin.IRouter, si ServerInterface)

RegisterHandlers creates http.Handler with routing matching OpenAPI spec.

func RegisterHandlersWithOptions

func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)

RegisterHandlersWithOptions creates http.Handler with additional options

Types

type AddTeamMemberRequest

type AddTeamMemberRequest struct {
	Email openapi_types.Email `json:"email"`
}

AddTeamMemberRequest defines model for AddTeamMemberRequest.

type AdminAuthProviderProfile

type AdminAuthProviderProfile struct {
	// Email Email address from the configured auth provider.
	Email *string `json:"email"`

	// UserId Internal E2B user identifier.
	UserId openapi_types.UUID `json:"userId"`
}

AdminAuthProviderProfile defines model for AdminAuthProviderProfile.

type AdminAuthProviderProfilesLookupEmailRequest

type AdminAuthProviderProfilesLookupEmailRequest struct {
	Email openapi_types.Email `json:"email"`
}

AdminAuthProviderProfilesLookupEmailRequest defines model for AdminAuthProviderProfilesLookupEmailRequest.

type AdminAuthProviderProfilesResolveRequest

type AdminAuthProviderProfilesResolveRequest struct {
	UserIds []openapi_types.UUID `json:"userIds"`
}

AdminAuthProviderProfilesResolveRequest defines model for AdminAuthProviderProfilesResolveRequest.

type AdminAuthProviderProfilesResponse

type AdminAuthProviderProfilesResponse struct {
	Profiles []AdminAuthProviderProfile `json:"profiles"`
}

AdminAuthProviderProfilesResponse defines model for AdminAuthProviderProfilesResponse.

type AdminAuthProviderUserBootstrapRequest

type AdminAuthProviderUserBootstrapRequest struct {
	OidcIssuer      string              `json:"oidc_issuer"`
	OidcUserEmail   openapi_types.Email `json:"oidc_user_email"`
	OidcUserId      string              `json:"oidc_user_id"`
	OidcUserName    *string             `json:"oidc_user_name,omitempty"`
	SignupIp        *string             `json:"signup_ip,omitempty"`
	SignupUserAgent *string             `json:"signup_user_agent,omitempty"`
}

AdminAuthProviderUserBootstrapRequest defines model for AdminAuthProviderUserBootstrapRequest.

type AdminClusterCreateRequest

type AdminClusterCreateRequest struct {
	AuthOrgId *string `json:"auth_org_id,omitempty"`

	// ClusterId Optional stable identifier for idempotent creation. Reuse succeeds only when the immutable configuration is identical.
	ClusterId          *openapi_types.UUID `json:"cluster_id,omitempty"`
	Endpoint           string              `json:"endpoint"`
	EndpointTls        bool                `json:"endpoint_tls"`
	Name               string              `json:"name"`
	SandboxProxyDomain *string             `json:"sandbox_proxy_domain,omitempty"`
	Token              string              `json:"token"`
}

AdminClusterCreateRequest defines model for AdminClusterCreateRequest.

type AdminClusterCreateResponse

type AdminClusterCreateResponse struct {
	ClusterId openapi_types.UUID `json:"cluster_id"`
}

AdminClusterCreateResponse defines model for AdminClusterCreateResponse.

type AdminTeamBootstrapRequest

type AdminTeamBootstrapRequest struct {
	// Email Billing/contact email for the team.
	Email openapi_types.Email `json:"email"`

	// Name Team name.
	Name string `json:"name"`
}

AdminTeamBootstrapRequest defines model for AdminTeamBootstrapRequest.

type AdminTeamClusterAssignmentRequest

type AdminTeamClusterAssignmentRequest struct {
	ClusterId openapi_types.UUID `json:"cluster_id"`

	// PreserveExisting Assign only when the team is unassigned or already assigned to cluster_id.
	PreserveExisting *bool `json:"preserve_existing,omitempty"`
}

AdminTeamClusterAssignmentRequest defines model for AdminTeamClusterAssignmentRequest.

type AdminTeamClusterAssignmentResponse

type AdminTeamClusterAssignmentResponse struct {
	ClusterId openapi_types.UUID `json:"cluster_id"`
}

AdminTeamClusterAssignmentResponse defines model for AdminTeamClusterAssignmentResponse.

type BuildId

type BuildId = openapi_types.UUID

BuildId defines model for build_id.

type BuildIdOrTemplate

type BuildIdOrTemplate = string

BuildIdOrTemplate defines model for build_id_or_template.

type BuildIds

type BuildIds = []openapi_types.UUID

BuildIds defines model for build_ids.

type BuildInfo

type BuildInfo struct {
	// CreatedAt Build creation timestamp in RFC3339 format.
	CreatedAt time.Time `json:"createdAt"`

	// FinishedAt Build completion timestamp in RFC3339 format, if finished.
	FinishedAt *time.Time `json:"finishedAt"`

	// Names Template names related to this build, if available.
	Names *[]string `json:"names,omitempty"`

	// Status Build status mapped for dashboard clients.
	Status BuildStatus `json:"status"`

	// StatusMessage Failure message when status is `failed`, otherwise `null`.
	StatusMessage *string `json:"statusMessage"`
}

BuildInfo defines model for BuildInfo.

type BuildStatus

type BuildStatus string

BuildStatus Build status mapped for dashboard clients.

const (
	Building BuildStatus = "building"
	Failed   BuildStatus = "failed"
	Success  BuildStatus = "success"
)

Defines values for BuildStatus.

func (BuildStatus) Valid

func (e BuildStatus) Valid() bool

Valid indicates whether the value is a known member of the BuildStatus enum.

type BuildStatusItem

type BuildStatusItem struct {
	// FinishedAt Build completion timestamp in RFC3339 format, if finished.
	FinishedAt *time.Time `json:"finishedAt"`

	// Id Identifier of the build.
	Id openapi_types.UUID `json:"id"`

	// Status Build status mapped for dashboard clients.
	Status BuildStatus `json:"status"`

	// StatusMessage Failure message when status is `failed`, otherwise `null`.
	StatusMessage *string `json:"statusMessage"`
}

BuildStatusItem defines model for BuildStatusItem.

type BuildStatuses

type BuildStatuses = []BuildStatus

BuildStatuses defines model for build_statuses.

type BuildsCursor

type BuildsCursor = string

BuildsCursor defines model for builds_cursor.

type BuildsLimit

type BuildsLimit = int32

BuildsLimit defines model for builds_limit.

type BuildsListResponse

type BuildsListResponse struct {
	Data []ListedBuild `json:"data"`

	// NextCursor Cursor to pass to the next list request, or `null` if there is no next page.
	NextCursor *string `json:"nextCursor"`
}

BuildsListResponse defines model for BuildsListResponse.

type BuildsStatusesResponse

type BuildsStatusesResponse struct {
	// BuildStatuses List of build statuses
	BuildStatuses []BuildStatusItem `json:"buildStatuses"`
}

BuildsStatusesResponse defines model for BuildsStatusesResponse.

type CPUCount

type CPUCount = int64

CPUCount CPU cores for the sandbox

type ClusterID

type ClusterID = openapi_types.UUID

ClusterID defines model for clusterID.

type CreateTeamRequest

type CreateTeamRequest struct {
	Name string `json:"name"`
}

CreateTeamRequest defines model for CreateTeamRequest.

type DefaultTemplate

type DefaultTemplate struct {
	Aliases         []DefaultTemplateAlias `json:"aliases"`
	BuildCount      int32                  `json:"buildCount"`
	BuildId         openapi_types.UUID     `json:"buildId"`
	CreatedAt       time.Time              `json:"createdAt"`
	EnvdVersion     *string                `json:"envdVersion,omitempty"`
	Id              string                 `json:"id"`
	Public          bool                   `json:"public"`
	RamMb           int64                  `json:"ramMb"`
	SpawnCount      int64                  `json:"spawnCount"`
	TotalDiskSizeMb *int64                 `json:"totalDiskSizeMb"`
	Vcpu            int64                  `json:"vcpu"`
}

DefaultTemplate defines model for DefaultTemplate.

type DefaultTemplateAlias

type DefaultTemplateAlias struct {
	Alias     string  `json:"alias"`
	Namespace *string `json:"namespace,omitempty"`
}

DefaultTemplateAlias defines model for DefaultTemplateAlias.

type DefaultTemplatesResponse

type DefaultTemplatesResponse struct {
	Templates []DefaultTemplate `json:"templates"`
}

DefaultTemplatesResponse defines model for DefaultTemplatesResponse.

type DiskSizeMB

type DiskSizeMB = int64

DiskSizeMB Disk size for the sandbox in MiB

type Error

type Error struct {
	// Code Error code.
	Code int32 `json:"code"`

	// Message Error message.
	Message string `json:"message"`
}

Error defines model for Error.

type GetBuildsParams

type GetBuildsParams struct {
	// BuildIdOrTemplate Optional filter by build identifier, template identifier, or template alias.
	BuildIdOrTemplate *BuildIdOrTemplate `form:"build_id_or_template,omitempty" json:"build_id_or_template,omitempty"`

	// Statuses Comma-separated list of build statuses to include.
	Statuses *BuildStatuses `form:"statuses,omitempty" json:"statuses,omitempty"`

	// Limit Maximum number of items to return per page.
	Limit *BuildsLimit `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Cursor returned by the previous list response in `created_at|build_id` format.
	Cursor *BuildsCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetBuildsParams defines parameters for GetBuilds.

type GetBuildsStatusesParams

type GetBuildsStatusesParams struct {
	// BuildIds Comma-separated list of build IDs to get statuses for.
	BuildIds BuildIds `form:"build_ids" json:"build_ids"`
}

GetBuildsStatusesParams defines parameters for GetBuildsStatuses.

type GetTeamsResolveParams

type GetTeamsResolveParams struct {
	// Slug Team slug to resolve.
	Slug TeamSlug `form:"slug" json:"slug"`
}

GetTeamsResolveParams defines parameters for GetTeamsResolve.

type GetTemplatesParams

type GetTemplatesParams struct {
	// Public Filter templates by visibility (true = public, false = internal).
	Public *TemplatesPublic `form:"public,omitempty" json:"public,omitempty"`

	// Search Case-insensitive substring match on template names, aliases, and template id.
	Search *TemplatesSearch `form:"search,omitempty" json:"search,omitempty"`

	// Sort Sort column and direction.
	Sort *GetTemplatesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of items to return per page.
	Limit *TemplatesLimit `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Cursor returned by the previous list response in `{sort}|{value}|{templateID}` format. Rejected if its sort does not match the request.
	Cursor *TemplatesCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetTemplatesParams defines parameters for GetTemplates.

type GetTemplatesParamsSort

type GetTemplatesParamsSort string

GetTemplatesParamsSort defines parameters for GetTemplates.

const (
	GetTemplatesParamsSortCreatedAtAsc  GetTemplatesParamsSort = "created_at_asc"
	GetTemplatesParamsSortCreatedAtDesc GetTemplatesParamsSort = "created_at_desc"
	GetTemplatesParamsSortUpdatedAtAsc  GetTemplatesParamsSort = "updated_at_asc"
	GetTemplatesParamsSortUpdatedAtDesc GetTemplatesParamsSort = "updated_at_desc"
)

Defines values for GetTemplatesParamsSort.

func (GetTemplatesParamsSort) Valid

func (e GetTemplatesParamsSort) Valid() bool

Valid indicates whether the value is a known member of the GetTemplatesParamsSort enum.

type GetTemplatesTemplateIDTagsExistsParams

type GetTemplatesTemplateIDTagsExistsParams struct {
	// Tag Template tag name to check.
	Tag Tag `form:"tag" json:"tag"`
}

GetTemplatesTemplateIDTagsExistsParams defines parameters for GetTemplatesTemplateIDTagsExists.

type GetTemplatesTemplateIDTagsGroupsParams

type GetTemplatesTemplateIDTagsGroupsParams struct {
	// AssignmentLimit Maximum number of ready assignment rows to return per tag.
	AssignmentLimit *TagAssignmentLimit `form:"assignmentLimit,omitempty" json:"assignmentLimit,omitempty"`

	// TagsLimit Maximum number of distinct tags to return per page.
	TagsLimit *TagGroupsLimit `form:"tagsLimit,omitempty" json:"tagsLimit,omitempty"`

	// TagsCursor Cursor returned by the previous list response in `{sort}|{latest_assigned_at}|{tag}` format (sort-tagged, RFC3339Nano).
	TagsCursor *TagGroupsCursor `form:"tagsCursor,omitempty" json:"tagsCursor,omitempty"`

	// Search Case-insensitive substring filter on tag name. Allowed characters are `a-z`, `0-9`, `.`, `_`, `-`.
	Search *TagGroupsSearch `form:"search,omitempty" json:"search,omitempty"`

	// Sort Sort order for the returned tag groups.
	Sort *GetTemplatesTemplateIDTagsGroupsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
}

GetTemplatesTemplateIDTagsGroupsParams defines parameters for GetTemplatesTemplateIDTagsGroups.

type GetTemplatesTemplateIDTagsGroupsParamsSort

type GetTemplatesTemplateIDTagsGroupsParamsSort string

GetTemplatesTemplateIDTagsGroupsParamsSort defines parameters for GetTemplatesTemplateIDTagsGroups.

const (
	GetTemplatesTemplateIDTagsGroupsParamsSortLatestAsc  GetTemplatesTemplateIDTagsGroupsParamsSort = "latest_asc"
	GetTemplatesTemplateIDTagsGroupsParamsSortLatestDesc GetTemplatesTemplateIDTagsGroupsParamsSort = "latest_desc"
	GetTemplatesTemplateIDTagsGroupsParamsSortNameAsc    GetTemplatesTemplateIDTagsGroupsParamsSort = "name_asc"
	GetTemplatesTemplateIDTagsGroupsParamsSortNameDesc   GetTemplatesTemplateIDTagsGroupsParamsSort = "name_desc"
)

Defines values for GetTemplatesTemplateIDTagsGroupsParamsSort.

func (GetTemplatesTemplateIDTagsGroupsParamsSort) Valid

Valid indicates whether the value is a known member of the GetTemplatesTemplateIDTagsGroupsParamsSort enum.

type GetTemplatesTemplateIDTagsTagAssignmentsParams

type GetTemplatesTemplateIDTagsTagAssignmentsParams struct {
	// Cursor Cursor returned by the previous list response in `assigned_at|assignment_id` format.
	Cursor *TagAssignmentsCursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Maximum number of assignment rows to return per page.
	Limit *TagAssignmentsLimit `form:"limit,omitempty" json:"limit,omitempty"`
}

GetTemplatesTemplateIDTagsTagAssignmentsParams defines parameters for GetTemplatesTemplateIDTagsTagAssignments.

type GinServerOptions

type GinServerOptions struct {
	BaseURL      string
	Middlewares  []MiddlewareFunc
	ErrorHandler func(*gin.Context, error, int)
}

GinServerOptions provides options for the Gin server.

type HealthResponse

type HealthResponse struct {
	// Message Human-readable health check result.
	Message string `json:"message"`
}

HealthResponse defines model for HealthResponse.

type ListedBuild

type ListedBuild struct {
	// CpuCount CPU cores configured for the build.
	CpuCount int64 `json:"cpuCount"`

	// CreatedAt Build creation timestamp in RFC3339 format.
	CreatedAt time.Time `json:"createdAt"`

	// DiskSizeMB Disk size in MiB configured for the build, if recorded.
	DiskSizeMB *int64 `json:"diskSizeMB"`

	// EnvdVersion envd version the build was created with, if recorded.
	EnvdVersion *string `json:"envdVersion"`

	// FinishedAt Build completion timestamp in RFC3339 format, if finished.
	FinishedAt *time.Time `json:"finishedAt"`

	// Id Identifier of the build.
	Id openapi_types.UUID `json:"id"`

	// MemoryMB Memory in MiB configured for the build.
	MemoryMB int64 `json:"memoryMB"`

	// Status Build status mapped for dashboard clients.
	Status BuildStatus `json:"status"`

	// StatusMessage Failure message when status is `failed`, otherwise `null`.
	StatusMessage *string `json:"statusMessage"`

	// Template Template alias when present, otherwise template ID.
	Template string `json:"template"`

	// TemplateId Identifier of the template.
	TemplateId string `json:"templateId"`
}

ListedBuild defines model for ListedBuild.

type ManagementApplyProjectMemberJSONRequestBody

type ManagementApplyProjectMemberJSONRequestBody = ManagementProjectMemberApplyRequest

ManagementApplyProjectMemberJSONRequestBody defines body for ManagementApplyProjectMember for application/json ContentType.

type ManagementProject

type ManagementProject struct {
	// Email Contact address recorded on the project.
	Email string             `json:"email"`
	Id    openapi_types.UUID `json:"id"`
	Name  string             `json:"name"`

	// Slug Changing it renames the project, and nothing follows it. Template names embed the slug they were built under, so a renamed project keeps its existing template names and only new ones carry the new slug. A slug already held on this control plane is a 409, on a rename as much as on a create.
	Slug string `json:"slug"`
}

ManagementProject defines model for ManagementProject.

type ManagementProjectLimits

type ManagementProjectLimits struct {
	ConcurrentSandboxes      int32 `json:"concurrent_sandboxes"`
	ConcurrentTemplateBuilds int32 `json:"concurrent_template_builds"`

	// DefaultFreeDiskSizeMb Free rootfs allowance. Must not exceed max_disk_size_mb; the two are stored together and rejected as a pair if they disagree.
	DefaultFreeDiskSizeMb int64 `json:"default_free_disk_size_mb"`
	DiskMb                int64 `json:"disk_mb"`
	EventsTtlDays         int32 `json:"events_ttl_days"`
	MaxDiskSizeMb         int64 `json:"max_disk_size_mb"`
	MaxRamMb              int64 `json:"max_ram_mb"`
	MaxSandboxLengthHours int32 `json:"max_sandbox_length_hours"`
	MaxVcpu               int32 `json:"max_vcpu"`

	// Revision The caller's version of this answer, raised whenever the limits it resolved for the project change. Delivery is over a network, so two pushes can be in flight at once and arrive in either order: this side stores the revision it accepted and drops a delivery at or below it, which is what keeps a delayed retry from putting the project back on limits it has already left.
	//
	// Comparable only against earlier revisions for the same project.
	Revision int64 `json:"revision"`
}

ManagementProjectLimits A project's effective limits, already resolved by the caller. Every field is absolute: this side stores what it is given and performs no arithmetic of its own.

The minimums below track the CHECK constraints on tiers, which is the contract for what a limit may be. project_limits stores the same values under looser constraints on purpose — it is a push target, and a floor that only rejects the impossible keeps a future decision about what is allowed a change to this schema rather than a migration.

type ManagementProjectMemberApplyRequest

type ManagementProjectMemberApplyRequest struct {
	Identities *[]ManagementProjectMemberIdentity `json:"identities,omitempty"`
	Present    bool                               `json:"present"`
	Revision   int64                              `json:"revision"`
}

ManagementProjectMemberApplyRequest defines model for ManagementProjectMemberApplyRequest.

type ManagementProjectMemberIdentity

type ManagementProjectMemberIdentity struct {
	Issuer  string `json:"issuer"`
	Subject string `json:"subject"`
}

ManagementProjectMemberIdentity defines model for ManagementProjectMemberIdentity.

type ManagementProjectUpsertRequest

type ManagementProjectUpsertRequest struct {
	// Email Contact address recorded on the project.
	Email string `json:"email"`
	Name  string `json:"name"`

	// Slug Changing it renames the project, and nothing follows it. Template names embed the slug they were built under, so a renamed project keeps its existing template names and only new ones carry the new slug. A slug already held on this control plane is a 409, on a rename as much as on a create.
	Slug string `json:"slug"`
}

ManagementProjectUpsertRequest The properties of a project this side stores. Every one is synchronized by the caller and sent on every push, so a reconcile is a complete statement of the project rather than a patch.

A project's tier is not among them. It is assigned once, at creation, from this side's own default, and no push moves it — limits arrive separately and in full through upsertProjectLimits, which takes precedence over the tier anyway.

type ManagementUpsertProjectJSONRequestBody

type ManagementUpsertProjectJSONRequestBody = ManagementProjectUpsertRequest

ManagementUpsertProjectJSONRequestBody defines body for ManagementUpsertProject for application/json ContentType.

type ManagementUpsertProjectLimitsJSONRequestBody

type ManagementUpsertProjectLimitsJSONRequestBody = ManagementProjectLimits

ManagementUpsertProjectLimitsJSONRequestBody defines body for ManagementUpsertProjectLimits for application/json ContentType.

type MemoryMB

type MemoryMB = int64

MemoryMB Memory for the sandbox in MiB

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type N400

type N400 = Error

N400 defines model for 400.

type N401

type N401 = Error

N401 defines model for 401.

type N403

type N403 = Error

N403 defines model for 403.

type N404

type N404 = Error

N404 defines model for 404.

type N409

type N409 = Error

N409 defines model for 409.

type N412

type N412 = Error

N412 defines model for 412.

type N500

type N500 = Error

N500 defines model for 500.

type N501

type N501 = Error

N501 defines model for 501.

type N502

type N502 = Error

N502 defines model for 502.

type PatchTeamsTeamIDJSONRequestBody

type PatchTeamsTeamIDJSONRequestBody = UpdateTeamRequest

PatchTeamsTeamIDJSONRequestBody defines body for PatchTeamsTeamID for application/json ContentType.

type PostAdminClustersJSONRequestBody

type PostAdminClustersJSONRequestBody = AdminClusterCreateRequest

PostAdminClustersJSONRequestBody defines body for PostAdminClusters for application/json ContentType.

type PostAdminTeamsBootstrapJSONRequestBody

type PostAdminTeamsBootstrapJSONRequestBody = AdminTeamBootstrapRequest

PostAdminTeamsBootstrapJSONRequestBody defines body for PostAdminTeamsBootstrap for application/json ContentType.

type PostAdminUserProfilesByEmailJSONRequestBody

type PostAdminUserProfilesByEmailJSONRequestBody = AdminAuthProviderProfilesLookupEmailRequest

PostAdminUserProfilesByEmailJSONRequestBody defines body for PostAdminUserProfilesByEmail for application/json ContentType.

type PostAdminUserProfilesResolveJSONRequestBody

type PostAdminUserProfilesResolveJSONRequestBody = AdminAuthProviderProfilesResolveRequest

PostAdminUserProfilesResolveJSONRequestBody defines body for PostAdminUserProfilesResolve for application/json ContentType.

type PostAdminUsersBootstrapJSONRequestBody

type PostAdminUsersBootstrapJSONRequestBody = AdminAuthProviderUserBootstrapRequest

PostAdminUsersBootstrapJSONRequestBody defines body for PostAdminUsersBootstrap for application/json ContentType.

type PostTeamsJSONRequestBody

type PostTeamsJSONRequestBody = CreateTeamRequest

PostTeamsJSONRequestBody defines body for PostTeams for application/json ContentType.

type PostTeamsTeamIDMembersJSONRequestBody

type PostTeamsTeamIDMembersJSONRequestBody = AddTeamMemberRequest

PostTeamsTeamIDMembersJSONRequestBody defines body for PostTeamsTeamIDMembers for application/json ContentType.

type ProjectID

type ProjectID = openapi_types.UUID

ProjectID defines model for projectID.

type PutAdminTeamsTeamIDClusterJSONRequestBody

type PutAdminTeamsTeamIDClusterJSONRequestBody = AdminTeamClusterAssignmentRequest

PutAdminTeamsTeamIDClusterJSONRequestBody defines body for PutAdminTeamsTeamIDCluster for application/json ContentType.

type SandboxID

type SandboxID = string

SandboxID defines model for sandboxID.

type SandboxRecord

type SandboxRecord struct {
	// Alias Alias of the template
	Alias *string `json:"alias,omitempty"`

	// CpuCount CPU cores for the sandbox
	CpuCount CPUCount `json:"cpuCount"`

	// DiskSizeMB Disk size for the sandbox in MiB
	DiskSizeMB DiskSizeMB `json:"diskSizeMB"`

	// Domain Base domain where the sandbox traffic is accessible
	Domain *string `json:"domain,omitempty"`

	// EventsRetentionExpired Whether the sandbox ended more than the team's events retention window ago, so its events data is no longer available
	EventsRetentionExpired bool `json:"eventsRetentionExpired"`

	// MemoryMB Memory for the sandbox in MiB
	MemoryMB MemoryMB `json:"memoryMB"`

	// RetentionExpired Whether the sandbox ended more than the fixed retention window ago, so its monitoring and logs data is no longer available
	RetentionExpired bool `json:"retentionExpired"`

	// SandboxID Identifier of the sandbox
	SandboxID string `json:"sandboxID"`

	// StartedAt Time when the sandbox was started
	StartedAt time.Time `json:"startedAt"`

	// StoppedAt Time when the sandbox was stopped
	StoppedAt *time.Time `json:"stoppedAt,omitempty"`

	// TemplateID Identifier of the template from which is the sandbox created
	TemplateID string `json:"templateID"`
}

SandboxRecord defines model for SandboxRecord.

type ServerInterface

type ServerInterface interface {
	// PostAdminClusters Create a cluster
	// (POST /admin/clusters)
	PostAdminClusters(c *gin.Context)
	// DeleteAdminClustersClusterID Delete an unreferenced cluster
	// (DELETE /admin/clusters/{clusterID})
	DeleteAdminClustersClusterID(c *gin.Context, clusterID ClusterID)
	// PostAdminTeamsBootstrap Bootstrap team
	// (POST /admin/teams/bootstrap)
	PostAdminTeamsBootstrap(c *gin.Context)
	// GetAdminTeamsTeamIDCluster Get a team's assigned cluster
	// (GET /admin/teams/{teamID}/cluster)
	GetAdminTeamsTeamIDCluster(c *gin.Context, teamID TeamID)
	// PutAdminTeamsTeamIDCluster Assign a cluster to a team
	// (PUT /admin/teams/{teamID}/cluster)
	PutAdminTeamsTeamIDCluster(c *gin.Context, teamID TeamID)
	// DeleteAdminTeamsTeamIDClusterClusterID Detach a cluster from a team
	// (DELETE /admin/teams/{teamID}/cluster/{clusterID})
	DeleteAdminTeamsTeamIDClusterClusterID(c *gin.Context, teamID TeamID, clusterID ClusterID)
	// PostAdminUserProfilesByEmail Lookup user profiles by email
	// (POST /admin/user-profiles/by-email)
	PostAdminUserProfilesByEmail(c *gin.Context)
	// PostAdminUserProfilesResolve Resolve user profiles
	// (POST /admin/user-profiles/resolve)
	PostAdminUserProfilesResolve(c *gin.Context)
	// GetAdminUserProfilesUserId User profile
	// (GET /admin/user-profiles/{userId})
	GetAdminUserProfilesUserId(c *gin.Context, userId UserId)
	// PostAdminUsersBootstrap Bootstrap auth provider user
	// (POST /admin/users/bootstrap)
	PostAdminUsersBootstrap(c *gin.Context)
	// DeleteAdminUsersUserId Delete user
	// (DELETE /admin/users/{userId})
	DeleteAdminUsersUserId(c *gin.Context, userId UserId)
	// GetBuilds List team builds
	// (GET /builds)
	GetBuilds(c *gin.Context, params GetBuildsParams)
	// GetBuildsStatuses Build statuses
	// (GET /builds/statuses)
	GetBuildsStatuses(c *gin.Context, params GetBuildsStatusesParams)
	// GetBuildsBuildId Build details
	// (GET /builds/{build_id})
	GetBuildsBuildId(c *gin.Context, buildId BuildId)
	// GetHealth Health check
	// (GET /health)
	GetHealth(c *gin.Context)
	// GetSandboxesSandboxIDRecord Sandbox record
	// (GET /sandboxes/{sandboxID}/record)
	GetSandboxesSandboxIDRecord(c *gin.Context, sandboxID SandboxID)
	// GetTeams List user teams
	// (GET /teams)
	GetTeams(c *gin.Context)
	// PostTeams Create team
	// (POST /teams)
	PostTeams(c *gin.Context)
	// GetTeamsResolve Resolve team identity
	// (GET /teams/resolve)
	GetTeamsResolve(c *gin.Context, params GetTeamsResolveParams)
	// PatchTeamsTeamID Update team
	// (PATCH /teams/{teamID})
	PatchTeamsTeamID(c *gin.Context, teamID TeamID)
	// GetTeamsTeamIDMembers List team members
	// (GET /teams/{teamID}/members)
	GetTeamsTeamIDMembers(c *gin.Context, teamID TeamID)
	// PostTeamsTeamIDMembers Add team member
	// (POST /teams/{teamID}/members)
	PostTeamsTeamIDMembers(c *gin.Context, teamID TeamID)
	// DeleteTeamsTeamIDMembersUserId Remove team member
	// (DELETE /teams/{teamID}/members/{userId})
	DeleteTeamsTeamIDMembersUserId(c *gin.Context, teamID TeamID, userId UserId)
	// GetTeamsTeamIDStatus Get team access status
	// (GET /teams/{teamID}/status)
	GetTeamsTeamIDStatus(c *gin.Context, teamID TeamID)
	// GetTemplates List team templates
	// (GET /templates)
	GetTemplates(c *gin.Context, params GetTemplatesParams)
	// GetTemplatesDefaults List default templates
	// (GET /templates/defaults)
	GetTemplatesDefaults(c *gin.Context)
	// GetTemplatesTemplateID Template
	// (GET /templates/{templateID})
	GetTemplatesTemplateID(c *gin.Context, templateID TemplateID)
	// GetTemplatesTemplateIDTagsCount Count template tags
	// (GET /templates/{templateID}/tags/count)
	GetTemplatesTemplateIDTagsCount(c *gin.Context, templateID TemplateID)
	// GetTemplatesTemplateIDTagsExists Check ready template tag existence
	// (GET /templates/{templateID}/tags/exists)
	GetTemplatesTemplateIDTagsExists(c *gin.Context, templateID TemplateID, params GetTemplatesTemplateIDTagsExistsParams)
	// GetTemplatesTemplateIDTagsGroups List template tag groups
	// (GET /templates/{templateID}/tags/groups)
	GetTemplatesTemplateIDTagsGroups(c *gin.Context, templateID TemplateID, params GetTemplatesTemplateIDTagsGroupsParams)
	// GetTemplatesTemplateIDTagsTagAssignments List ready assignments for a single template tag
	// (GET /templates/{templateID}/tags/{tag}/assignments)
	GetTemplatesTemplateIDTagsTagAssignments(c *gin.Context, templateID TemplateID, tag TagPath, params GetTemplatesTemplateIDTagsTagAssignmentsParams)
	// ManagementDeleteProject Delete a project and its control-plane state (v1).
	// (DELETE /v1/management/projects/{projectID})
	ManagementDeleteProject(c *gin.Context, projectID ProjectID)
	// ManagementUpsertProject Create or reconcile a project (v1).
	// (PUT /v1/management/projects/{projectID})
	ManagementUpsertProject(c *gin.Context, projectID ProjectID)
	// ManagementUpsertProjectLimits Reconcile effective limits for a project (v1).
	// (PUT /v1/management/projects/{projectID}/limits)
	ManagementUpsertProjectLimits(c *gin.Context, projectID ProjectID)
	// ManagementApplyProjectMember Apply one versioned project member projection (v1).
	// (PUT /v1/management/projects/{projectID}/members/{userID})
	ManagementApplyProjectMember(c *gin.Context, projectID ProjectID, userID UserID)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandler       func(*gin.Context, error, int)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) DeleteAdminClustersClusterID

func (siw *ServerInterfaceWrapper) DeleteAdminClustersClusterID(c *gin.Context)

DeleteAdminClustersClusterID operation middleware

func (*ServerInterfaceWrapper) DeleteAdminTeamsTeamIDClusterClusterID

func (siw *ServerInterfaceWrapper) DeleteAdminTeamsTeamIDClusterClusterID(c *gin.Context)

DeleteAdminTeamsTeamIDClusterClusterID operation middleware

func (*ServerInterfaceWrapper) DeleteAdminUsersUserId

func (siw *ServerInterfaceWrapper) DeleteAdminUsersUserId(c *gin.Context)

DeleteAdminUsersUserId operation middleware

func (*ServerInterfaceWrapper) DeleteTeamsTeamIDMembersUserId

func (siw *ServerInterfaceWrapper) DeleteTeamsTeamIDMembersUserId(c *gin.Context)

DeleteTeamsTeamIDMembersUserId operation middleware

func (*ServerInterfaceWrapper) GetAdminTeamsTeamIDCluster

func (siw *ServerInterfaceWrapper) GetAdminTeamsTeamIDCluster(c *gin.Context)

GetAdminTeamsTeamIDCluster operation middleware

func (*ServerInterfaceWrapper) GetAdminUserProfilesUserId

func (siw *ServerInterfaceWrapper) GetAdminUserProfilesUserId(c *gin.Context)

GetAdminUserProfilesUserId operation middleware

func (*ServerInterfaceWrapper) GetBuilds

func (siw *ServerInterfaceWrapper) GetBuilds(c *gin.Context)

GetBuilds operation middleware

func (*ServerInterfaceWrapper) GetBuildsBuildId

func (siw *ServerInterfaceWrapper) GetBuildsBuildId(c *gin.Context)

GetBuildsBuildId operation middleware

func (*ServerInterfaceWrapper) GetBuildsStatuses

func (siw *ServerInterfaceWrapper) GetBuildsStatuses(c *gin.Context)

GetBuildsStatuses operation middleware

func (*ServerInterfaceWrapper) GetHealth

func (siw *ServerInterfaceWrapper) GetHealth(c *gin.Context)

GetHealth operation middleware

func (*ServerInterfaceWrapper) GetSandboxesSandboxIDRecord

func (siw *ServerInterfaceWrapper) GetSandboxesSandboxIDRecord(c *gin.Context)

GetSandboxesSandboxIDRecord operation middleware

func (*ServerInterfaceWrapper) GetTeams

func (siw *ServerInterfaceWrapper) GetTeams(c *gin.Context)

GetTeams operation middleware

func (*ServerInterfaceWrapper) GetTeamsResolve

func (siw *ServerInterfaceWrapper) GetTeamsResolve(c *gin.Context)

GetTeamsResolve operation middleware

func (*ServerInterfaceWrapper) GetTeamsTeamIDMembers

func (siw *ServerInterfaceWrapper) GetTeamsTeamIDMembers(c *gin.Context)

GetTeamsTeamIDMembers operation middleware

func (*ServerInterfaceWrapper) GetTeamsTeamIDStatus

func (siw *ServerInterfaceWrapper) GetTeamsTeamIDStatus(c *gin.Context)

GetTeamsTeamIDStatus operation middleware

func (*ServerInterfaceWrapper) GetTemplates

func (siw *ServerInterfaceWrapper) GetTemplates(c *gin.Context)

GetTemplates operation middleware

func (*ServerInterfaceWrapper) GetTemplatesDefaults

func (siw *ServerInterfaceWrapper) GetTemplatesDefaults(c *gin.Context)

GetTemplatesDefaults operation middleware

func (*ServerInterfaceWrapper) GetTemplatesTemplateID

func (siw *ServerInterfaceWrapper) GetTemplatesTemplateID(c *gin.Context)

GetTemplatesTemplateID operation middleware

func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsCount

func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsCount(c *gin.Context)

GetTemplatesTemplateIDTagsCount operation middleware

func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsExists

func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsExists(c *gin.Context)

GetTemplatesTemplateIDTagsExists operation middleware

func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsGroups

func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsGroups(c *gin.Context)

GetTemplatesTemplateIDTagsGroups operation middleware

func (*ServerInterfaceWrapper) GetTemplatesTemplateIDTagsTagAssignments

func (siw *ServerInterfaceWrapper) GetTemplatesTemplateIDTagsTagAssignments(c *gin.Context)

GetTemplatesTemplateIDTagsTagAssignments operation middleware

func (*ServerInterfaceWrapper) ManagementApplyProjectMember

func (siw *ServerInterfaceWrapper) ManagementApplyProjectMember(c *gin.Context)

ManagementApplyProjectMember operation middleware

func (*ServerInterfaceWrapper) ManagementDeleteProject

func (siw *ServerInterfaceWrapper) ManagementDeleteProject(c *gin.Context)

ManagementDeleteProject operation middleware

func (*ServerInterfaceWrapper) ManagementUpsertProject

func (siw *ServerInterfaceWrapper) ManagementUpsertProject(c *gin.Context)

ManagementUpsertProject operation middleware

func (*ServerInterfaceWrapper) ManagementUpsertProjectLimits

func (siw *ServerInterfaceWrapper) ManagementUpsertProjectLimits(c *gin.Context)

ManagementUpsertProjectLimits operation middleware

func (*ServerInterfaceWrapper) PatchTeamsTeamID

func (siw *ServerInterfaceWrapper) PatchTeamsTeamID(c *gin.Context)

PatchTeamsTeamID operation middleware

func (*ServerInterfaceWrapper) PostAdminClusters

func (siw *ServerInterfaceWrapper) PostAdminClusters(c *gin.Context)

PostAdminClusters operation middleware

func (*ServerInterfaceWrapper) PostAdminTeamsBootstrap

func (siw *ServerInterfaceWrapper) PostAdminTeamsBootstrap(c *gin.Context)

PostAdminTeamsBootstrap operation middleware

func (*ServerInterfaceWrapper) PostAdminUserProfilesByEmail

func (siw *ServerInterfaceWrapper) PostAdminUserProfilesByEmail(c *gin.Context)

PostAdminUserProfilesByEmail operation middleware

func (*ServerInterfaceWrapper) PostAdminUserProfilesResolve

func (siw *ServerInterfaceWrapper) PostAdminUserProfilesResolve(c *gin.Context)

PostAdminUserProfilesResolve operation middleware

func (*ServerInterfaceWrapper) PostAdminUsersBootstrap

func (siw *ServerInterfaceWrapper) PostAdminUsersBootstrap(c *gin.Context)

PostAdminUsersBootstrap operation middleware

func (*ServerInterfaceWrapper) PostTeams

func (siw *ServerInterfaceWrapper) PostTeams(c *gin.Context)

PostTeams operation middleware

func (*ServerInterfaceWrapper) PostTeamsTeamIDMembers

func (siw *ServerInterfaceWrapper) PostTeamsTeamIDMembers(c *gin.Context)

PostTeamsTeamIDMembers operation middleware

func (*ServerInterfaceWrapper) PutAdminTeamsTeamIDCluster

func (siw *ServerInterfaceWrapper) PutAdminTeamsTeamIDCluster(c *gin.Context)

PutAdminTeamsTeamIDCluster operation middleware

type Tag

type Tag = string

Tag defines model for tag.

type TagAssignmentLimit

type TagAssignmentLimit = int32

TagAssignmentLimit defines model for tag_assignment_limit.

type TagAssignmentsCursor

type TagAssignmentsCursor = string

TagAssignmentsCursor defines model for tag_assignments_cursor.

type TagAssignmentsLimit

type TagAssignmentsLimit = int32

TagAssignmentsLimit defines model for tag_assignments_limit.

type TagGroupsCursor

type TagGroupsCursor = string

TagGroupsCursor defines model for tag_groups_cursor.

type TagGroupsLimit

type TagGroupsLimit = int32

TagGroupsLimit defines model for tag_groups_limit.

type TagGroupsSearch

type TagGroupsSearch = string

TagGroupsSearch defines model for tag_groups_search.

type TagGroupsSort

type TagGroupsSort string

TagGroupsSort defines model for tag_groups_sort.

const (
	TagGroupsSortLatestAsc  TagGroupsSort = "latest_asc"
	TagGroupsSortLatestDesc TagGroupsSort = "latest_desc"
	TagGroupsSortNameAsc    TagGroupsSort = "name_asc"
	TagGroupsSortNameDesc   TagGroupsSort = "name_desc"
)

Defines values for TagGroupsSort.

func (TagGroupsSort) Valid

func (e TagGroupsSort) Valid() bool

Valid indicates whether the value is a known member of the TagGroupsSort enum.

type TagPath

type TagPath = string

TagPath defines model for tag_path.

type TeamID

type TeamID = openapi_types.UUID

TeamID defines model for teamID.

type TeamMember

type TeamMember struct {
	AddedBy           *openapi_types.UUID `json:"addedBy,omitempty"`
	CreatedAt         *time.Time          `json:"createdAt"`
	Email             string              `json:"email"`
	Id                openapi_types.UUID  `json:"id"`
	IsDefault         bool                `json:"isDefault"`
	Name              *string             `json:"name,omitempty"`
	ProfilePictureUrl *string             `json:"profilePictureUrl,omitempty"`
	Providers         []string            `json:"providers"`
}

TeamMember defines model for TeamMember.

type TeamMembersResponse

type TeamMembersResponse struct {
	Members []TeamMember `json:"members"`
}

TeamMembersResponse defines model for TeamMembersResponse.

type TeamResolveResponse

type TeamResolveResponse struct {
	Id   openapi_types.UUID `json:"id"`
	Slug string             `json:"slug"`
}

TeamResolveResponse defines model for TeamResolveResponse.

type TeamSlug

type TeamSlug = string

TeamSlug defines model for teamSlug.

type TeamStatusResponse

type TeamStatusResponse struct {
	BlockedReason *string `json:"blockedReason"`
	IsBanned      bool    `json:"isBanned"`
	IsBlocked     bool    `json:"isBlocked"`
}

TeamStatusResponse defines model for TeamStatusResponse.

type TeamTemplate

type TeamTemplate struct {
	Aliases    []string           `json:"aliases"`
	BuildCount int32              `json:"buildCount"`
	BuildID    openapi_types.UUID `json:"buildID"`
	CpuCount   int64              `json:"cpuCount"`
	CreatedAt  time.Time          `json:"createdAt"`
	CreatedBy  *struct {
		Email *string            `json:"email,omitempty"`
		Id    openapi_types.UUID `json:"id"`
	} `json:"createdBy"`
	DefaultDescription *string    `json:"defaultDescription,omitempty"`
	DiskSizeMB         *int64     `json:"diskSizeMB"`
	EnvdVersion        *string    `json:"envdVersion"`
	IsDefault          bool       `json:"isDefault"`
	LastSpawnedAt      *time.Time `json:"lastSpawnedAt"`
	MemoryMB           int64      `json:"memoryMB"`
	Names              []string   `json:"names"`
	Public             bool       `json:"public"`
	SpawnCount         int64      `json:"spawnCount"`
	TemplateID         string     `json:"templateID"`
	UpdatedAt          time.Time  `json:"updatedAt"`
}

TeamTemplate defines model for TeamTemplate.

type TeamTemplatesResponse

type TeamTemplatesResponse struct {
	Data []TeamTemplate `json:"data"`

	// NextCursor Cursor to pass to the next list request, or `null` if there is no next page.
	NextCursor *string `json:"nextCursor"`
}

TeamTemplatesResponse defines model for TeamTemplatesResponse.

type TemplateDetail

type TemplateDetail struct {
	// Aliases Aliases of the template.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Aliases []string `json:"aliases"`

	// BuildCount Number of times the template was built.
	BuildCount int32 `json:"buildCount"`

	// BuildID Identifier of the latest ready build for the template, or the zero UUID when none.
	BuildID string `json:"buildID"`

	// CpuCount vCPU count of the latest ready default build, or `null` when none.
	CpuCount *CPUCount `json:"cpuCount"`

	// CreatedAt Time when the template was created.
	CreatedAt time.Time `json:"createdAt"`

	// DiskSizeMB Disk size in MiB of the latest ready default build, or `null` when none.
	DiskSizeMB *DiskSizeMB `json:"diskSizeMB"`

	// EnvdVersion envd version of the latest ready default build, or `null` when none.
	EnvdVersion *string `json:"envdVersion"`

	// LastSpawnedAt Time when the template was last used.
	LastSpawnedAt *time.Time `json:"lastSpawnedAt"`

	// MemoryMB Memory in MiB of the latest ready default build, or `null` when none.
	MemoryMB *MemoryMB `json:"memoryMB"`

	// Names Names of the template (namespace/alias format when namespaced).
	Names []string `json:"names"`

	// Public Whether the template is public or only accessible by the team.
	Public bool `json:"public"`

	// SpawnCount Number of times the template was used.
	SpawnCount int64 `json:"spawnCount"`

	// TemplateID Identifier of the template.
	TemplateID string `json:"templateID"`

	// UpdatedAt Time when the template was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
}

TemplateDetail Dashboard-shaped single-template read. Mirrors the infra-api `Template` schema fields the dashboard renders.

type TemplateID

type TemplateID = string

TemplateID defines model for templateID.

type TemplateTagAssignment

type TemplateTagAssignment struct {
	// AssignedAt Time when the tag was assigned to the build.
	AssignedAt time.Time `json:"assignedAt"`

	// AssignmentId Identifier of the tag assignment event.
	AssignmentId openapi_types.UUID `json:"assignmentId"`

	// BuildCreatedAt Time when the assigned build was created.
	BuildCreatedAt time.Time `json:"buildCreatedAt"`

	// BuildFinishedAt Time when the assigned build finished.
	BuildFinishedAt *time.Time `json:"buildFinishedAt"`

	// BuildId Identifier of the assigned build.
	BuildId openapi_types.UUID `json:"buildId"`
}

TemplateTagAssignment defines model for TemplateTagAssignment.

type TemplateTagAssignmentsResponse

type TemplateTagAssignmentsResponse struct {
	// Data Ready assignment events for the tag, sorted latest first.
	Data []TemplateTagAssignment `json:"data"`

	// NextCursor Cursor to pass to the next list request, or `null` if there is no next page.
	NextCursor *string `json:"nextCursor"`
}

TemplateTagAssignmentsResponse defines model for TemplateTagAssignmentsResponse.

type TemplateTagExistsResponse

type TemplateTagExistsResponse struct {
	// Exists Whether the template tag has at least one ready assignment.
	Exists bool `json:"exists"`

	// NormalizedTag Normalized template tag name.
	NormalizedTag string `json:"normalizedTag"`
}

TemplateTagExistsResponse defines model for TemplateTagExistsResponse.

type TemplateTagGroup

type TemplateTagGroup struct {
	// Assignments Ready assignment events for this tag, sorted latest first.
	Assignments []TemplateTagAssignment `json:"assignments"`

	// HasMore Whether more ready assignment events exist beyond the requested assignment limit.
	HasMore bool `json:"hasMore"`

	// Tag Template tag name.
	Tag string `json:"tag"`
}

TemplateTagGroup defines model for TemplateTagGroup.

type TemplateTagGroupsResponse

type TemplateTagGroupsResponse struct {
	// NextCursor Cursor to pass as `tagsCursor` for the next page, or `null` if there is no next page.
	NextCursor *string            `json:"nextCursor"`
	Tags       []TemplateTagGroup `json:"tags"`
}

TemplateTagGroupsResponse defines model for TemplateTagGroupsResponse.

type TemplateTagsCountResponse

type TemplateTagsCountResponse struct {
	// Total Total distinct ready tags for the template.
	Total int64 `json:"total"`
}

TemplateTagsCountResponse defines model for TemplateTagsCountResponse.

type TemplatesCursor

type TemplatesCursor = string

TemplatesCursor defines model for templates_cursor.

type TemplatesLimit

type TemplatesLimit = int32

TemplatesLimit defines model for templates_limit.

type TemplatesPublic

type TemplatesPublic = bool

TemplatesPublic defines model for templates_public.

type TemplatesSearch

type TemplatesSearch = string

TemplatesSearch defines model for templates_search.

type TemplatesSort

type TemplatesSort string

TemplatesSort defines model for templates_sort.

const (
	TemplatesSortCreatedAtAsc  TemplatesSort = "created_at_asc"
	TemplatesSortCreatedAtDesc TemplatesSort = "created_at_desc"
	TemplatesSortUpdatedAtAsc  TemplatesSort = "updated_at_asc"
	TemplatesSortUpdatedAtDesc TemplatesSort = "updated_at_desc"
)

Defines values for TemplatesSort.

func (TemplatesSort) Valid

func (e TemplatesSort) Valid() bool

Valid indicates whether the value is a known member of the TemplatesSort enum.

type UpdateTeamRequest

type UpdateTeamRequest struct {
	Name              *string `json:"name,omitempty"`
	ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"`
}

UpdateTeamRequest defines model for UpdateTeamRequest.

type UpdateTeamResponse

type UpdateTeamResponse struct {
	Id                openapi_types.UUID `json:"id"`
	Name              string             `json:"name"`
	ProfilePictureUrl *string            `json:"profilePictureUrl,omitempty"`
}

UpdateTeamResponse defines model for UpdateTeamResponse.

type UserID

type UserID = openapi_types.UUID

UserID defines model for userID.

type UserId

type UserId = openapi_types.UUID

UserId defines model for userId.

type UserTeam

type UserTeam struct {
	BlockedReason     *string            `json:"blockedReason"`
	CreatedAt         time.Time          `json:"createdAt"`
	Email             string             `json:"email"`
	Id                openapi_types.UUID `json:"id"`
	IsBanned          bool               `json:"isBanned"`
	IsBlocked         bool               `json:"isBlocked"`
	IsDefault         bool               `json:"isDefault"`
	Limits            UserTeamLimits     `json:"limits"`
	Name              string             `json:"name"`
	ProfilePictureUrl *string            `json:"profilePictureUrl"`
	Slug              string             `json:"slug"`
	Tier              string             `json:"tier"`
}

UserTeam defines model for UserTeam.

type UserTeamLimits

type UserTeamLimits struct {
	ConcurrentSandboxes      int32 `json:"concurrentSandboxes"`
	ConcurrentTemplateBuilds int32 `json:"concurrentTemplateBuilds"`
	DiskMb                   int32 `json:"diskMb"`
	EventsTtlDays            int32 `json:"eventsTtlDays"`
	MaxLengthHours           int64 `json:"maxLengthHours"`
	MaxRamMb                 int32 `json:"maxRamMb"`
	MaxVcpu                  int32 `json:"maxVcpu"`
}

UserTeamLimits defines model for UserTeamLimits.

type UserTeamsResponse

type UserTeamsResponse struct {
	Teams []UserTeam `json:"teams"`
}

UserTeamsResponse defines model for UserTeamsResponse.

Jump to

Keyboard shortcuts

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