Skip to main content

Variable: IdentifierPrepareAuditPayload

const IdentifierPrepareAuditPayload: TObject<{ host: TString; identifierId: TString; instanceId: TOptional<TString>; organizationId: TString; reason: TOptional<TUnsafe<"agent-refused">>; version: TInteger; }>

Defined in: packages/contracts/src/schemas/audit-issuance.ts:126

The identifier.prepare payload (step 3.2d): IdentifierAuditPayload's fields, and reason on a denied record.

  • reason is present on a denied record and absent on success. The schema does not tie the two together, as IdentifierPublishAuditPayloadV2 does not: one member of AuditRecorded carries both outcomes, and the producer is what keeps the rule;
  • version on a denied record is the version that was published when the agent refused, so 0 for a first preparation;
  • instanceId names the agent that refused, which is the point of a denied record.

Every record that was valid before reason existed still is: the member is optional and a success record never carries it.