@leancodepl/kratos
Version:
Headless React components library for building Ory Kratos authentication flows
58 lines • 2.16 kB
TypeScript
import { Relationship } from './Relationship';
/**
*
* @export
* @interface ExpandedPermissionTree
*/
export interface ExpandedPermissionTree {
/**
* The children of the node, possibly none.
* @type {Array<ExpandedPermissionTree>}
* @memberof ExpandedPermissionTree
*/
children?: Array<ExpandedPermissionTree>;
/**
*
* @type {Relationship}
* @memberof ExpandedPermissionTree
*/
tuple?: Relationship;
/**
* The type of the node.
* union TreeNodeUnion
* exclusion TreeNodeExclusion
* intersection TreeNodeIntersection
* leaf TreeNodeLeaf
* tuple_to_subject_set TreeNodeTupleToSubjectSet
* computed_subject_set TreeNodeComputedSubjectSet
* not TreeNodeNot
* unspecified TreeNodeUnspecified
* @type {string}
* @memberof ExpandedPermissionTree
*/
type: ExpandedPermissionTreeTypeEnum;
}
/**
* @export
*/
export declare const ExpandedPermissionTreeTypeEnum: {
readonly Union: "union";
readonly Exclusion: "exclusion";
readonly Intersection: "intersection";
readonly Leaf: "leaf";
readonly TupleToSubjectSet: "tuple_to_subject_set";
readonly ComputedSubjectSet: "computed_subject_set";
readonly Not: "not";
readonly Unspecified: "unspecified";
readonly UnknownDefaultOpenApi: "11184809";
};
export type ExpandedPermissionTreeTypeEnum = typeof ExpandedPermissionTreeTypeEnum[keyof typeof ExpandedPermissionTreeTypeEnum];
/**
* Check if a given object implements the ExpandedPermissionTree interface.
*/
export declare function instanceOfExpandedPermissionTree(value: object): value is ExpandedPermissionTree;
export declare function ExpandedPermissionTreeFromJSON(json: any): ExpandedPermissionTree;
export declare function ExpandedPermissionTreeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpandedPermissionTree;
export declare function ExpandedPermissionTreeToJSON(json: any): ExpandedPermissionTree;
export declare function ExpandedPermissionTreeToJSONTyped(value?: ExpandedPermissionTree | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=ExpandedPermissionTree.d.ts.map