import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PermissionsGroupIntersectionDefinition, PermissionsGroupIntersectionDefinition$Outbound } from "./permissionsgroupintersectiondefinition.js"; import { UserReferenceDefinition, UserReferenceDefinition$Outbound } from "./userreferencedefinition.js"; /** * describes the access control details of the document */ export type DocumentPermissionsDefinition = { /** * List of users who can view the document */ allowedUsers?: Array | undefined; /** * List of groups that can view the document */ allowedGroups?: Array | undefined; /** * List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... */ allowedGroupIntersections?: Array | undefined; /** * If true, then any Glean user can view the document */ allowAnonymousAccess?: boolean | undefined; /** * If true, then any user who has an account in the datasource can view the document. */ allowAllDatasourceUsersAccess?: boolean | undefined; }; /** @internal */ export declare const DocumentPermissionsDefinition$inboundSchema: z.ZodType; /** @internal */ export type DocumentPermissionsDefinition$Outbound = { allowedUsers?: Array | undefined; allowedGroups?: Array | undefined; allowedGroupIntersections?: Array | undefined; allowAnonymousAccess?: boolean | undefined; allowAllDatasourceUsersAccess?: boolean | undefined; }; /** @internal */ export declare const DocumentPermissionsDefinition$outboundSchema: z.ZodType; export declare function documentPermissionsDefinitionToJSON(documentPermissionsDefinition: DocumentPermissionsDefinition): string; export declare function documentPermissionsDefinitionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=documentpermissionsdefinition.d.ts.map