UNPKG

@cerbos/http

Version:

Client library for interacting with the Cerbos policy decision point service over HTTP from browser-based applications

37 lines 888 B
export declare const protobufPackage = "google.api"; export interface HttpRule { selector: string; pattern?: { $case: "get"; get: string; } | { $case: "put"; put: string; } | { $case: "post"; post: string; } | { $case: "delete"; delete: string; } | { $case: "patch"; patch: string; } | { $case: "custom"; custom: CustomHttpPattern; } | undefined; body: string; responseBody: string; additionalBindings: HttpRule[]; } export interface CustomHttpPattern { kind: string; path: string; } export declare const HttpRule: MessageFns<HttpRule>; export declare const CustomHttpPattern: MessageFns<CustomHttpPattern>; export interface MessageFns<T> { fromJSON(object: any): T; toJSON(message: T): unknown; } //# sourceMappingURL=http.d.ts.map