4b06f42db7
* sort of works * type fixes * added option to run old way too
11 lines
358 B
TypeScript
11 lines
358 B
TypeScript
import type { AuthPipelineFunction } from '@/modules/shared/domain/authz/types'
|
|
import type { ServerRoles, StreamRoles } from '@speckle/shared'
|
|
|
|
export type ValidateServerRoleBuilder = (params: {
|
|
requiredRole: ServerRoles
|
|
}) => AuthPipelineFunction
|
|
|
|
export type ValidateStreamRoleBuilder = (params: {
|
|
requiredRole: StreamRoles
|
|
}) => AuthPipelineFunction
|