UMIS SDK
    Preparing search index...

    Function validatePolicy

    • Checks a policy document. A document that does not fit the schema, or contradicts itself (a refresh interval above the maximum status age, an authority check without the claim, a fixed amount without a value), is POLICY_INVALID. A well-formed document that goes beyond what its risk class allows (channels, maximum status age, one-way token lifetime, biometric requirement) is POLICY_CLASS_CAP_EXCEEDED. The returned policy is a copy of the input.

      Parameters

      • doc: unknown

      Returns
          | { ok: true; policy: CheckpointPolicyV1 }
          | { code: PolicyErrorCode; errors: string[]; ok: false }