Texecom Event Schemas

JSON Schema Documentation

Account Updated Payload

Payload emitted when an identity account is updated.

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

Properties

NameType
accountIdString
emailString
accountTypeString
firstNameString
lastNameString
versionInteger

accountId

Description UUID of the account that was updated (identity.accounts.account_id).
TypeString
Required Yes
Format uuid

email

Description Email address of the account (identity.accounts.email). Case-insensitive, not unique across accounts.
TypeString
Required Yes
Format email

accountType

Description Type of the account (identity.accounts.account_type).
TypeString
Required Yes
Enum
  • END_USER
  • INSTALLER_USER

firstName

Description First name of the account holder (identity.accounts.first_name).
TypeString
Required Yes

lastName

Description Last name of the account holder (identity.accounts.last_name).
TypeString
Required Yes

version

Description Optimistic concurrency version of the account row after this update (identity.accounts.version). Downstream projections must discard this event if it is not greater than the last version they applied.
TypeInteger
Required Yes

Schema

{
    "$id": "https://schemas.texecom-prod.com/v2/events/payload/service/identity/account/updated/v1.0.0.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "title": "Account Updated Payload",
    "description": "Payload emitted when an identity account is updated.",
    "type": "object",
    "properties": {
        "accountId": {
            "description": "UUID of the account that was updated (identity.accounts.account_id).",
            "type": "string",
            "format": "uuid"
        },
        "email": {
            "description": "Email address of the account (identity.accounts.email). Case-insensitive, not unique across accounts.",
            "type": "string",
            "format": "email"
        },
        "accountType": {
            "description": "Type of the account (identity.accounts.account_type).",
            "type": "string",
            "enum": [
                "END_USER",
                "INSTALLER_USER"
            ]
        },
        "firstName": {
            "description": "First name of the account holder (identity.accounts.first_name).",
            "type": "string"
        },
        "lastName": {
            "description": "Last name of the account holder (identity.accounts.last_name).",
            "type": "string"
        },
        "version": {
            "description": "Optimistic concurrency version of the account row after this update (identity.accounts.version). Downstream projections must discard this event if it is not greater than the last version they applied.",
            "type": "integer",
            "minimum": 0
        }
    },
    "required": [
        "accountId",
        "email",
        "accountType",
        "firstName",
        "lastName",
        "version"
    ],
    "additionalProperties": false
}