Texecom Event Schemas

JSON Schema Documentation

Site Handover Accepted Payload

Emitted when an invited end user accepts a site handover (SOFTC-7262) — the invitation transitions PENDING → ACCEPTED. Published from identity-service apps/auth/src/domains/handover/accept.ts, in the same Postgres transaction as the identity.site_access.granted / identity.site_access.revoked events below. Deliberately minimal: SOFTC-7101 owns the full audit-event contract for this surface, not this event.

$idhttps://schemas.texecom-prod.com/v2/events/payload/service/identity/site_handover/accepted/v1.0.0.json
$schemahttp://json-schema.org/draft-07/schema

Properties

NameType
invitationIdString
siteIdString
acceptedByAccountIdString

invitationId

Description UUID of the accepted invitation (identity.site_handover_invitations.invitation_id).
TypeString
Required Yes
Format uuid

siteId

Description UUID of the site handed over (identity.site_handover_invitations.site_id).
TypeString
Required Yes
Format uuid

acceptedByAccountId

Description UUID of the accepting end user's account (identity.site_handover_invitations.accepted_by_account_id).
TypeString
Required Yes
Format uuid

Schema

{
    "$id": "https://schemas.texecom-prod.com/v2/events/payload/service/identity/site_handover/accepted/v1.0.0.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "title": "Site Handover Accepted Payload",
    "description": "Emitted when an invited end user accepts a site handover (SOFTC-7262) — the invitation transitions PENDING → ACCEPTED. Published from identity-service apps/auth/src/domains/handover/accept.ts, in the same Postgres transaction as the identity.site_access.granted / identity.site_access.revoked events below. Deliberately minimal: SOFTC-7101 owns the full audit-event contract for this surface, not this event.",
    "type": "object",
    "properties": {
        "invitationId": {
            "description": "UUID of the accepted invitation (identity.site_handover_invitations.invitation_id).",
            "type": "string",
            "format": "uuid"
        },
        "siteId": {
            "description": "UUID of the site handed over (identity.site_handover_invitations.site_id).",
            "type": "string",
            "format": "uuid"
        },
        "acceptedByAccountId": {
            "description": "UUID of the accepting end user's account (identity.site_handover_invitations.accepted_by_account_id).",
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "invitationId",
        "siteId",
        "acceptedByAccountId"
    ],
    "additionalProperties": false
}