salt-sdk - v0.0.45
    Preparing search index...

    Type Alias PolicyContent

    The part of a policy a seal commits to.

    Everything the API stores and nothing else, because the API recomputes the policy's struct hash from the stored record on every transaction. That rules out the policy's own id, which does not exist yet when a creation is signed — account, type and chain identify a policy just as precisely.

    type PolicyContent = {
        accountId: string;
        chain: string;
        organisationId: string;
        params: PolicyParams;
        type: PolicyType;
    }
    Index
    accountId: string

    ID of the account the policy is attached to.

    chain: string

    Chain ID the policy applies to, or '*' for every chain.

    organisationId: string

    ID of the organisation the policy belongs to.

    params: PolicyParams

    The parameters as they will be stored: derived fields applied, and for an update already merged over the policy's current params.

    The policy's type.