Metakit / @doeixd/metakit/artifact

BundleRefusedError

class · packages/metakit/src/bundle.ts:154

class BundleRefusedError extends Schema.TaggedError<BundleRefusedError>()(
  'BundleRefusedError',
  {
    profile: Schema.String,
    refusals: Schema.Array(
      Schema.Struct({
        at: Schema.String,
        reason: BundleRefusalReason,
        detail: Schema.String,
      }),
    ),
  },
) {}

A definition is outside the profile, a path it reads cannot be a slot, a write cannot be stated, or (decode only) the fingerprint is not the one its content gives. Each refusal names where: when:$.args[0], input.msg. Encoding a definition and decoding its bundle refuse with the same list.