UNPKG

@cerbos/embedded

Version:

Client library for interacting with embedded Cerbos policy decision points generated by Cerbos Hub from server-side Node.js and browser-based applications

19 lines 684 B
export declare const protobufPackage = "cerbos.schema.v1"; export interface ValidationError { path: string; message: string; source: ValidationError_Source; } export declare enum ValidationError_Source { SOURCE_UNSPECIFIED = 0, SOURCE_PRINCIPAL = 1, SOURCE_RESOURCE = 2 } export declare function validationError_SourceFromJSON(object: any): ValidationError_Source; export declare function validationError_SourceToJSON(object: ValidationError_Source): string; export declare const ValidationError: MessageFns<ValidationError>; export interface MessageFns<T> { fromJSON(object: any): T; toJSON(message: T): unknown; } //# sourceMappingURL=schema.d.ts.map