@speckle/shared
Version:
Shared code between various Speckle JS packages
10 lines • 842 B
TypeScript
import { AutomateFunctionNotCreatorError, AutomateFunctionNotFoundError, AutomateNotEnabledError } from '../../../domain/authErrors.js';
import { AutomateFunctionContext, MaybeUserContext } from '../../../domain/context.js';
import { AuthCheckContextLoaderKeys } from '../../../domain/loaders.js';
import { AuthPolicy } from '../../../domain/policies.js';
type PolicyLoaderKeys = typeof AuthCheckContextLoaderKeys.getEnv | typeof AuthCheckContextLoaderKeys.getAutomateFunction;
type PolicyArgs = MaybeUserContext & AutomateFunctionContext;
type PolicyErrors = InstanceType<typeof AutomateNotEnabledError | typeof AutomateFunctionNotFoundError | typeof AutomateFunctionNotCreatorError>;
export declare const canEditFunctionPolicy: AuthPolicy<PolicyLoaderKeys, PolicyArgs, PolicyErrors>;
export {};
//# sourceMappingURL=canEditFunction.d.ts.map