parsePolicy: (
xml: any,
) =>
| {
advice: {
assignments: {
attributeId: any;
category: any;
expression: any;
issuer: any;
}[];
id: any;
on: any;
}[];
combinerParameters: any[];
combiningAlgId: any;
description: string;
id: any;
kind: string;
maxDelegationDepth: any;
obligations: {
assignments: {
attributeId: any;
category: any;
expression: any;
issuer: any;
}[];
id: any;
on: any;
}[];
ruleCombinerParameters: {
parameters: { name: any; value: any }[];
ref: any;
}[];
rules: {
advice: {
assignments: {
attributeId: any;
category: any;
expression: any;
issuer: any;
}[];
id: any;
on: any;
}[];
condition: any;
description: string;
effect: any;
id: any;
obligations: {
assignments: {
attributeId: any;
category: any;
expression: any;
issuer: any;
}[];
id: any;
on: any;
}[];
target: { anyOf: { allOf: { matches: (...)[] }[] }[] };
}[];
target: {
anyOf: {
allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
}[];
};
variables: {};
version: any;
xpathVersion: string;
}
| {
advice: {
assignments: {
attributeId: any;
category: any;
expression: any;
issuer: any;
}[];
id: any;
on: any;
}[];
children: any[];
combinerParameters: any[];
combiningAlgId: any;
description: string;
id: any;
kind: string;
maxDelegationDepth: any;
obligations: {
assignments: {
attributeId: any;
category: any;
expression: any;
issuer: any;
}[];
id: any;
on: any;
}[];
policyCombinerParameters: {
parameters: { name: any; value: any }[];
ref: any;
}[];
policySetCombinerParameters: {
parameters: { name: any; value: any }[];
ref: any;
}[];
target: {
anyOf: {
allOf: { matches: { matchId: any; reference: any; value: any }[] }[];
}[];
};
version: any;
xpathVersion: string;
} = parsePolicy
Reads a XACML 3.0 Policy or PolicySet document into the model and validates it statically.