Protected ReadonlycacheProtected ReadonlydbStaticinstanceThe process default: built from each dependency's own instance().
Clear each customer's membership tag and each record tag wherever cached,
and always this namespace's collection tag. keys are exact deletes in this
instance's key space: the only bust a null client honours.
ProtectedinvalidateThe bust every organization write makes, whatever it changed: its record
tag in every namespace projecting it, its customer's pages on both
surfaces, and the writer's own folded get keys.
ProtectedpageTags for a page: the scope it searched, each customer whose name its rows
copy, and the fields of records it may not hold that chose its rows.
OptionalcountriesOfIncorporation?: string[]OptionalcreatedAt?: DbTimestampCriteriaOptionaldescriptionLike?: stringPartial match on description
Optionalids?: string[]OptionalincludeDeleted?: booleanOptionallegalEntityTypeLike?: stringPartial match on legal entity type
OptionallegalEntityTypes?: (Exact match to these canonical legal-entity-type codes (US structures).
OptionalnameLike?: stringPartial match on legal entity name
OptionalorderBy?: DbOrderByCriterion<Ties break on the row id, in the last criterion's direction. name is
served by organization_*name_idx.
Optionalpage?: numberDefaults to 1
OptionalpageSize?: numberDefaults to 50
OptionalreferenceIdLike?: stringPartial match on reference ID
OptionalreferenceIds?: string[]OptionalrouteFusionEntityIds?: string[]Matches the pinned RouteFusion business-entity id on
data->'routeFusionEntity'->>'entityId'. Mirrors the admin-side filter so
Service/AdminService search signatures stay aligned.
Optionalstatuses?: (OptionalupdatedAt?: DbTimestampCriteriaOptionalverificationProfileIds?: string[]Organizations holding one of these AiPrise business profiles.
ProtectedsearchTags for a page: the scope its query searched (each customer's membership
tag, else the collection tag), so an empty page is bustable too, plus the
records it projects and the fields that chose or ordered its rows.
StaticadminThe exact key OrganizationAdminQueryService.get reads through, for its
includeDeleted: false callers.
The includeDeleted: true variant hashes differently and is reached only by
the collection tag, which every Valkey-backed environment has. That gap is
deliberate and pre-existing: it only matters in memory mode, where no admin
get runs with includeDeleted: true.
StaticconsumerThe exact key OrganizationQueryService.get reads through.
get folds onto search, so these args must stay identical to the ones it
passes ({ customerId, ids: [id], pageSize: 1 }) plus the defaults search
bakes into its own key — includeDeleted: false and page: 1. Every other
filter is undefined there, and serviceCacheKey canonicalizes with JCS,
which drops undefined properties. organizationCache.test.ts pins the
equivalence.
Readonly-access to organizations.
Extends OrganizationCache, which owns the
organization-searchnamespace this read shares with the admin surface.