import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ScopeType } from "./scopetype.js"; /** * Describes the write permissions levels that a user has for a specific feature */ export type WritePermission = { /** * Describes the scope for a ReadPermission, WritePermission, or GrantPermission object */ scopeType?: ScopeType | undefined; /** * True if user has create permission for this feature and scope */ create?: boolean | undefined; /** * True if user has update permission for this feature and scope */ update?: boolean | undefined; /** * True if user has delete permission for this feature and scope */ delete?: boolean | undefined; }; /** @internal */ export declare const WritePermission$inboundSchema: z.ZodType; /** @internal */ export type WritePermission$Outbound = { scopeType?: string | undefined; create?: boolean | undefined; update?: boolean | undefined; delete?: boolean | undefined; }; /** @internal */ export declare const WritePermission$outboundSchema: z.ZodType; export declare function writePermissionToJSON(writePermission: WritePermission): string; export declare function writePermissionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=writepermission.d.ts.map