Skip to main content
Lerian Consignado emits 21 business facts as CloudEvents 1.0 through lib-streaming v3. Every fact below has a production emission site on develop and enters the transactional outbox before publication.
The payload contracts below describe the CloudEvent data object. A property marked with ? may be omitted. null is only allowed where it is written explicitly.

Application-stream contract

The topic identifies the producing application, not one event. Route by ce-source, ce-resourcetype, and ce-eventtype; use ce-type as their source-qualified composite. Never infer an event from the topic name.

Emitted-event catalog

Payload notation

The wire uses JSON with snake_case property names. These aliases describe the formats used by the schemas:

Payload contracts

An open loan request is discovered in Dataprev.Subject: id_solicitacao
A live M011 portability offer is discovered and recorded with its outbox envelope.Subject: id_solicitacao
Worker margin is read from Dataprev.Subject: request_ref
The accepted rail proposal is witnessed against the durable client bid.Subject: proposal_ref
Dataprev confirms averbação.Subject: contract_id
Dataprev rejects averbação.Subject: contract_id
The immutable contract-booking boundary is reached.Subject: numero_contrato
The client confirms that the worker received the funds.Subject: numero_contrato
Contract exclusion reaches a successful terminal state.Subject: numero_contrato
Contract exclusion reaches a rejected terminal state.Subject: numero_contrato
Redirection is confirmed.Subject: request_ref
Redirection is rejected.Subject: request_ref
One bookkeeping, repasse, or portal CSV record is normalized.Subject: object_ref
An employment suspension or termination record is read.Subject: record_id
A worker absence or termination alert is reported.Subject: SHA-256(payload)
A tenant’s effective Dataprev throughput changes.Subject: tenant_id
A credit assignment is registered in the gateway domain.Subject: idempotency_key
An expected repasse passes its deadline or has no computable deadline.Subject: object_ref
A movement resolves an overdue repasse.Subject: object_ref
The gateway cannot establish a current rail observation for the expectations.Subject: object_ref
An operational deduction-calendar window is published.Subject: competencia_consulta

Commands consumed from Lender

These are inbound commands, not events emitted by Consignado. They arrive on lerian.streaming.lender.commands with ce-source: lender and ce-type: studio.lerian.lender.<resource>.<event>. Averbação is not a Lender command on develop. Submit it through the authenticated HTTP operation.

Delivery and compatibility rules

  • Deduplicate by (ce-source, ce-id) and make handlers idempotent.
  • To replay a redirection refusal from the consumer DLQ, redeliver the original source record identified by its topic, partition, and offset; do not publish a new event. The original ce-id and redirection request_ref remain stable.
  • Read ce-schemaversion before decoding. Schema 1.0.0 is carried in the header and never in the topic.
  • Money and rates are decimal strings. Timestamps are UTC RFC 3339; date-only values use YYYY-MM-DD; competências use YYYYMM.
  • Envelope subjects are business references or content digests and do not carry the worker CPF.
  • Unknown or unsupported inbound command keys are quarantined in the Consignado consumer DLQ.
  • A missing required business identifier prevents publication or command execution; it is never synthesized.