Add default_plan_ladder_id with a forward data migration and update the runtime to resolve the ladder's rank-0 tier at use-time. Regenerate sqlc, update auto-provisioning, ReapplyDefaultsForPool, operator UI and tests; add GetTierByLadderRank and pool/provision query helpers. Add a CSP-safe confirm-action modal and wire operator actions to it. Close plan-sole-writer safety gaps and serialize IssueGrant with a FOR UPDATE pool lock to prevent ladder races.
33 lines
1.7 KiB
Go
33 lines
1.7 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.29.0
|
|
|
|
package organization
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Querier interface {
|
|
CountWorkspacesByOrgID(ctx context.Context, orgID string) (int64, error)
|
|
CreateOrgMember(ctx context.Context, arg CreateOrgMemberParams) (OrgMember, error)
|
|
CreateOrganization(ctx context.Context, arg CreateOrganizationParams) (Organization, error)
|
|
CreateRoleAssignment(ctx context.Context, arg CreateRoleAssignmentParams) (RoleAssignment, error)
|
|
CreateWorkspace(ctx context.Context, arg CreateWorkspaceParams) (Workspace, error)
|
|
GetOrgMemberByPersonAndOrg(ctx context.Context, arg GetOrgMemberByPersonAndOrgParams) (OrgMember, error)
|
|
GetOrgMembersByOrgID(ctx context.Context, orgID string) ([]GetOrgMembersByOrgIDRow, error)
|
|
GetOrgType(ctx context.Context, orgType string) (OrgType, error)
|
|
GetOrganizationByID(ctx context.Context, orgID string) (Organization, error)
|
|
GetOrganizationBySlug(ctx context.Context, slug string) (Organization, error)
|
|
GetOrganizationsByOwner(ctx context.Context, ownerPersonID string) ([]Organization, error)
|
|
GetRoleAssignmentsByPersonAndOrg(ctx context.Context, arg GetRoleAssignmentsByPersonAndOrgParams) ([]GetRoleAssignmentsByPersonAndOrgRow, error)
|
|
GetSystemRoleByName(ctx context.Context, roleName string) (Role, error)
|
|
GetWorkspaceByID(ctx context.Context, workspaceID string) (Workspace, error)
|
|
GetWorkspacesByOrgID(ctx context.Context, orgID string) ([]Workspace, error)
|
|
ListOrgTypes(ctx context.Context) ([]OrgType, error)
|
|
ListOrganizations(ctx context.Context) ([]Organization, error)
|
|
UpdateOrgTypeDefaultPlanLadder(ctx context.Context, arg UpdateOrgTypeDefaultPlanLadderParams) (OrgType, error)
|
|
}
|
|
|
|
var _ Querier = (*Queries)(nil)
|