Add Canonical Party as generated in semprini-blog-dataproducts
The canonical data product for the Digital Core domain, copied unchanged from the blog repository's products/canonical-party (generated by /agent-product from data_model/data_products/canonical.md, 65 of 65 checks on the blog's stack on 2026-09-09). The next commit adapts it to the domain platform. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
commit
cfb32d2d1b
20 files changed
+2222
No files matched your search
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:address",
|
||||
"title": "Address",
|
||||
"description": "An Address is the canonical record of a location. It holds the structured components of the place itself and nothing else: no party, no purpose, no verification. Those belong on Contact Address. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by address_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["address_id", "country"],
|
||||
"properties": {
|
||||
"address_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Globally unique identifier for this location. Immutable once assigned. Many parties may reference the same identifier through their Contact Address records."
|
||||
},
|
||||
"address_type": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Street Address", "PO Box", "Registered Office", "Overseas Address", null],
|
||||
"description": "The structural type of the address. Determines which components apply: a PO Box has no street, and an overseas address may have no state or region."
|
||||
},
|
||||
"address_line_1": {
|
||||
"type": ["string", "null"],
|
||||
"description": "The primary street line, typically number and street name. For a PO Box, the box number."
|
||||
},
|
||||
"address_line_2": {
|
||||
"type": ["string", "null"],
|
||||
"description": "Secondary line for a unit, level, suite or building name."
|
||||
},
|
||||
"suburb": {
|
||||
"type": ["string", "null"],
|
||||
"description": "The suburb or locality. Kept distinct from City because in Australia and New Zealand they are genuinely different things and merging them breaks delivery."
|
||||
},
|
||||
"city": {
|
||||
"type": ["string", "null"],
|
||||
"description": "The city or town."
|
||||
},
|
||||
"state_or_region": {
|
||||
"type": ["string", "null"],
|
||||
"description": "The state, territory, province or region, or the local equivalent."
|
||||
},
|
||||
"postcode": {
|
||||
"type": ["string", "null"],
|
||||
"description": "The postal code. Held as a string to preserve leading zeros and to support formats that are not numeric."
|
||||
},
|
||||
"country": {
|
||||
"type": "string",
|
||||
"description": "ISO 3166-1 alpha-2 country code. Mandatory for every address type."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:company",
|
||||
"title": "Company",
|
||||
"description": "A Company is an organisation with legal standing: a company, partnership, trust, cooperative, charity or public body. It specialises Party and carries the registration and structure attributes that only apply to organisations. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by company_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["company_id"],
|
||||
"properties": {
|
||||
"company_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "The Party Identifier of the party this company extends (extends Party)."
|
||||
},
|
||||
"company_registration_number": {
|
||||
"type": ["string", "null"],
|
||||
"description": "The registration identifier issued by the relevant companies registry, such as an ACN in Australia, an NZBN in New Zealand or a Companies House number in the UK. The most reliable way to tell two similarly named organisations apart."
|
||||
},
|
||||
"incorporation_country": {
|
||||
"type": ["string", "null"],
|
||||
"description": "ISO 3166-1 alpha-2 code for the country the organisation is incorporated in. Determines which registry the registration number belongs to, and which country's company law applies."
|
||||
},
|
||||
"incorporation_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "Date the organisation was formally incorporated or registered."
|
||||
},
|
||||
"legal_structure": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Private Company", "Public Company", "Partnership", "Sole Trader", "Trust", "Cooperative", "Government Entity", "Non-Profit", null],
|
||||
"description": "The legal form the organisation takes. Determines signing authority, liability and the evidence required to establish who controls it."
|
||||
},
|
||||
"tax_identifier": {
|
||||
"type": ["string", "null"],
|
||||
"description": "Tax registration number issued by the relevant revenue authority, such as an ABN, VAT number or EIN. Needed to invoice the organisation correctly."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:contact_address",
|
||||
"title": "Contact Address",
|
||||
"description": "A Contact Address is the link between a Party and an Address: what the address is used for, whether it has been confirmed, and the period it was in use. It is not the address itself; the location lives in the Address entity and is shared. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by contact_address_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["contact_address_id", "party_id", "address_id"],
|
||||
"properties": {
|
||||
"contact_address_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Globally unique identifier for this party-to-address association."
|
||||
},
|
||||
"address_purpose": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Home", "Mailing", "Business", "Registered Office", "Billing", "Delivery", null],
|
||||
"description": "What the party uses this address for. A party can hold several addresses at once for different purposes: home, billing and delivery are frequently different places."
|
||||
},
|
||||
"is_primary": {
|
||||
"type": ["boolean", "null"],
|
||||
"default": false,
|
||||
"description": "Whether this is the party's main address for the given purpose. At most one address may be primary per purpose at any point in time."
|
||||
},
|
||||
"verification_status": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Unverified", "Verified", "Failed", "Expired", null],
|
||||
"description": "Whether this address has been confirmed as real and current. Unverified addresses are usable but should not be relied on for anything expensive, such as a physical delivery."
|
||||
},
|
||||
"verification_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "When the address was last confirmed. Verification ages: an address confirmed five years ago is weaker evidence than one confirmed last month."
|
||||
},
|
||||
"verification_method": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Documentary", "Electronic", "In Person", "Self Declared", null],
|
||||
"description": "How the address was confirmed. Recorded because the methods are not equally strong, and knowing which was used determines how much weight to put on the result."
|
||||
},
|
||||
"valid_from": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "The date the party started using this address for the stated purpose."
|
||||
},
|
||||
"valid_to": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "The date the party stopped using it. Null means still in use. Closed associations are kept rather than deleted, so historical lookups stay accurate."
|
||||
},
|
||||
"party_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Identifier of the owning Party (Party Has Contact Addresses)."
|
||||
},
|
||||
"address_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Identifier of the referenced Address (Contact Address References Address)."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:customer",
|
||||
"title": "Customer",
|
||||
"description": "A Customer is a Party Role representing an active or prospective commercial relationship: someone who buys, subscribes, or holds an account with the business. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by customer_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["customer_id", "customer_number"],
|
||||
"properties": {
|
||||
"customer_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "The Role Identifier of the party role this customer extends (extends Party Role)."
|
||||
},
|
||||
"customer_number": {
|
||||
"type": "string",
|
||||
"description": "The customer identifier quoted in correspondence and used by service and support staff. Unlike the Party Identifier, this one is meant to be readable aloud over the phone. Unique."
|
||||
},
|
||||
"onboarding_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "Date the customer onboarding process was completed."
|
||||
},
|
||||
"relationship_start_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "Date the customer relationship became effective. May precede the onboarding date where a relationship was migrated in from another system or acquired with another business."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:party",
|
||||
"title": "Party",
|
||||
"description": "A Party is any individual or organisation the business has, or may have, a relationship with. It is the foundational abstract concept of the domain: it carries only what is true of every party, whoever they are. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by party_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["party_id", "party_type", "legal_name"],
|
||||
"properties": {
|
||||
"party_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Globally unique identifier for this party across all systems. Immutable once assigned."
|
||||
},
|
||||
"party_type": {
|
||||
"type": "string",
|
||||
"enum": ["Person", "Company"],
|
||||
"description": "Discriminator naming the subtype (Person or Company) that extends this party."
|
||||
},
|
||||
"legal_name": {
|
||||
"type": "string",
|
||||
"description": "The party's full name as it appears on official documentation. For an individual this is the full given and family name; for an organisation it is the registered name."
|
||||
},
|
||||
"also_known_as": {
|
||||
"type": ["string", "null"],
|
||||
"description": "Alternative names: trading names, former names, maiden names, or the name a person actually goes by. Several names are separated by semicolons."
|
||||
},
|
||||
"party_status": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Prospect", "Active", "Suspended", "Inactive", "Closed", null],
|
||||
"description": "Where the party sits in its lifecycle with the business. Controls whether new relationships may be established."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:party_association",
|
||||
"title": "Party Related To Party",
|
||||
"description": "A Party may be related to other Parties through ownership, control, employment, household or family ties. A relationship instance is directional and named; the same pair of parties may hold several associations of different types at once. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by party_association_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["party_association_id", "source_party_id", "target_party_id"],
|
||||
"properties": {
|
||||
"party_association_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Globally unique identifier for this party-to-party association."
|
||||
},
|
||||
"source_party_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Identifier of the Party the association is stated from."
|
||||
},
|
||||
"target_party_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Identifier of the Party the association points at."
|
||||
},
|
||||
"association_type": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Parent Organisation", "Subsidiary", "Owner", "Director", "Authorised Signatory", "Employer", "Employee", "Partner", "Family Member", "Household Member", null],
|
||||
"description": "The nature of the relationship between the two parties, read from source to target."
|
||||
},
|
||||
"association_start_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "The date the association began."
|
||||
},
|
||||
"association_end_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "The date the association ended. Null means still current."
|
||||
},
|
||||
"verified": {
|
||||
"type": ["boolean", "null"],
|
||||
"description": "Whether the association has been confirmed against acceptable evidence."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:party_role",
|
||||
"title": "Party Role",
|
||||
"description": "A Party Role is the capacity in which a Party acts. It separates who someone is from what they are doing. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by party_role_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["party_role_id", "party_role_type", "party_id"],
|
||||
"properties": {
|
||||
"party_role_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Globally unique identifier for this role instance. Distinct from the Party Identifier: one party holding two roles has two Role Identifiers."
|
||||
},
|
||||
"party_role_type": {
|
||||
"type": "string",
|
||||
"enum": ["Customer"],
|
||||
"description": "Discriminator naming the subtype (Customer) that extends this role."
|
||||
},
|
||||
"role_status": {
|
||||
"type": ["string", "null"],
|
||||
"enum": ["Pending", "Active", "Suspended", "Closed", null],
|
||||
"description": "The current lifecycle status of this role. Controls whether the role confers its business permissions."
|
||||
},
|
||||
"role_start_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "The date this role became effective."
|
||||
},
|
||||
"role_end_date": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "The date this role ceased to be effective. Null means the role is still open. Roles are closed rather than deleted, so that history stays intact."
|
||||
},
|
||||
"party_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Identifier of the owning Party (Party Assumes Roles)."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:party_role_contact_address",
|
||||
"title": "Party Role Uses Contact Addresses",
|
||||
"description": "A Party Role may use one or more Contact Addresses owned by the underlying Party. The Party owns its addresses; a role picks which of them applies in its context. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by party_role_contact_address_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["party_role_contact_address_id", "party_role_id", "contact_address_id"],
|
||||
"properties": {
|
||||
"party_role_contact_address_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Globally unique identifier for this role-to-contact-address association."
|
||||
},
|
||||
"party_role_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Identifier of the Party Role that uses the contact address."
|
||||
},
|
||||
"contact_address_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Identifier of the Contact Address the role uses."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:digital-core:canonical-party:person",
|
||||
"title": "Person",
|
||||
"description": "A Person is a human being. Person specialises Party, inheriting everything that is true of any party and adding what only applies to people. Canonical record published by Canonical Party. Property names are the ODS column names. Used for both the inbound topic (records producers publish) and the compacted outbound topic (every change, keyed by person_id).",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["person_id"],
|
||||
"properties": {
|
||||
"person_id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "The Party Identifier of the party this person extends (extends Party)."
|
||||
},
|
||||
"date_of_birth": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date",
|
||||
"description": "The individual's date of birth. Used to confirm identity, to check age eligibility for age-restricted products, and to avoid confusing two people with the same name."
|
||||
},
|
||||
"preferred_name": {
|
||||
"type": ["string", "null"],
|
||||
"description": "What the person actually wants to be called, when that differs from their legal name. Used for greetings and correspondence."
|
||||
},
|
||||
"country_of_residence": {
|
||||
"type": ["string", "null"],
|
||||
"description": "ISO 3166-1 alpha-2 code for the country the individual currently lives in. Drives tax treatment, applicable consumer law, currency defaults and delivery options."
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS. Optional on the inbound topic."
|
||||
},
|
||||
"updated_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time",
|
||||
"description": "Set by the ODS on every change. Optional on the inbound topic."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user