---
title: "Public API"
url: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/api.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/docs/lattice.api.abstractions/api.md"
agent_spec: "https://nsta1.github.io/Orleans.Lattice/docs/agents/api/state.json"
package: "Orleans.Lattice.Api.Abstractions"
version: "10.5.0"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
bundle: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/llms-full.txt"
---
# Public API

Part of the [Api.Abstractions documentation](README.md).

Every public type of `Orleans.Lattice.Api.Abstractions`, grouped by namespace. The package is the transport-agnostic contract of the API facades: service interfaces, the request / response models they exchange, their typed exceptions, and one stable serialization-alias class per namespace. It has no registration extension, no options, and no implementation of its own service interfaces. The [package overview](README.md) explains why the contract is published separately, and [Architecture](architecture.md) describes how the facades, their gRPC bindings, the MCP server and the Explorer meet at it.

Behaviour - authorization, scoping, validation, the exceptions a call actually throws - belongs to the facade that implements an interface, so each namespace below links to its facade and binding docs for the narrative.

## Contents

- [Namespace map](#namespace-map): The in-process facades and the remote adapters implement the same interfaces, so a consumer written against an interface works unchanged in-process and over the wire.
- [Conventions](#conventions)
- [Reading the declaration reference](#reading-the-declaration-reference): Each namespace section lists every public type with its kind and summary, followed by the declaration reference: the declaration line and every directly declared public member and overload, in source order, with enum values.
- [`Orleans.Lattice.Api.Operations`](api/orleans-lattice-api-operations.md): The shared accept-then-poll contract for long-running facade work.
- [`Orleans.Lattice.Api.Region`](#orleanslatticeapiregion): Region discovery: the regions a server can route a call to and the facade groups each one serves.
- [`Orleans.Lattice.Api.State`](api/orleans-lattice-api-state.md): Implemented by [`Orleans.Lattice.Api.State`](../lattice.api.state/README.md) and exposed remotely by [`Orleans.Lattice.Api.State.Grpc`](../lattice.api.state.grpc/README.md). 52 public types.
- [`Orleans.Lattice.Api.Data`](api/orleans-lattice-api-data.md): Implemented by [`Orleans.Lattice.Api.Data`](../lattice.api.data/README.md) and exposed remotely by [`Orleans.Lattice.Api.Data.Grpc`](../lattice.api.data.grpc/README.md). 15 public types.
- [`Orleans.Lattice.Api.Auth`](api/orleans-lattice-api-auth.md): Implemented by [`Orleans.Lattice.Api.Auth`](../lattice.api.auth/README.md) and exposed remotely by [`Orleans.Lattice.Api.Auth.Grpc`](../lattice.api.auth.grpc/README.md). 14 public types.
- [`Orleans.Lattice.Api.Backup`](api/orleans-lattice-api-backup.md): Implemented by [`Orleans.Lattice.Api.Backup`](../lattice.api.backup/api.md) and exposed remotely by [`Orleans.Lattice.Api.Backup.Grpc`](../lattice.api.backup.grpc/api.md). 9 public types.
- [`Orleans.Lattice.Api.Schema`](api/orleans-lattice-api-schema.md): Implemented by [`Orleans.Lattice.Api.Schema`](../lattice.api.schema/api.md) and exposed remotely by [`Orleans.Lattice.Api.Schema.Grpc`](../lattice.api.schema.grpc/api.md). 5 public types.
- [`Orleans.Lattice.Api.Replication`](api/orleans-lattice-api-replication.md): Implemented by [`Orleans.Lattice.Api.Replication`](../lattice.api.replication/api.md) and exposed remotely by [`Orleans.Lattice.Api.Replication.Grpc`](../lattice.api.replication.grpc/api.md). 18 public types.
- [`Orleans.Lattice.Api.Telemetry`](api/orleans-lattice-api-telemetry.md): Implemented by [`Orleans.Lattice.Api.Telemetry`](../lattice.api.telemetry/README.md) and exposed remotely by [`Orleans.Lattice.Api.Telemetry.Grpc`](../lattice.api.telemetry.grpc/README.md). 23 public types.
- [`Orleans.Lattice.Api.TreeAdmin`](api/orleans-lattice-api-treeadmin.md): Implemented by [`Orleans.Lattice.Api.TreeAdmin`](../lattice.api.treeadmin/api.md) and exposed remotely by [`Orleans.Lattice.Api.TreeAdmin.Grpc`](../lattice.api.treeadmin.grpc/README.md). 73 public types.
- [`Orleans.Lattice.Api.TenantAdmin`](api/orleans-lattice-api-tenantadmin.md): Implemented by [`Orleans.Lattice.Api.TenantAdmin`](../lattice.api.tenantadmin/api.md) and exposed remotely by [`Orleans.Lattice.Api.TenantAdmin.Grpc`](../lattice.api.tenantadmin.grpc/README.md). 64 public types.
- [`Orleans.Lattice.Api.Apps`](api/orleans-lattice-api-apps.md): Implemented by [`Orleans.Lattice.Api.Apps`](../lattice.api.apps/api.md) and exposed remotely by [`Orleans.Lattice.Api.Apps.Grpc`](../lattice.api.apps.grpc/api.md). 52 public types.
- [Related](#related)

## Namespace map

| Namespace | Service interfaces | Implemented by | Bound to gRPC by | Alias class (prefix) |
|---|---|---|---|---|
| [`Orleans.Lattice.Api.Operations`](api/orleans-lattice-api-operations.md) | `ILatticeOperations` | the backup, schema and tree-administration facades | each of those facades' bindings | `ApiOperationTypeAliases` (`oio.`) |
| [`Orleans.Lattice.Api.Region`](#orleanslatticeapiregion) | `ILatticeRegionCatalog` | [`Orleans.Lattice.Api.Mcp`](../lattice.api.mcp/api.md) | - | `ApiRegionTypeAliases` (`olrg.`) |
| [`Orleans.Lattice.Api.State`](api/orleans-lattice-api-state.md) | `ILatticeStateMetricsObserver`, `ILatticeStateObserver`, `ILatticeStateQuery` | [`Orleans.Lattice.Api.State`](../lattice.api.state/api.md) | [`Orleans.Lattice.Api.State.Grpc`](../lattice.api.state.grpc/api.md) | `ApiStateTypeAliases` (`ola.`) |
| [`Orleans.Lattice.Api.Data`](api/orleans-lattice-api-data.md) | `ILatticeDataApi` | [`Orleans.Lattice.Api.Data`](../lattice.api.data/api.md) | [`Orleans.Lattice.Api.Data.Grpc`](../lattice.api.data.grpc/api.md) | `DataApiTypeAliases` (`olad.`) |
| [`Orleans.Lattice.Api.Auth`](api/orleans-lattice-api-auth.md) | `ILatticeAuthAdmin` | [`Orleans.Lattice.Api.Auth`](../lattice.api.auth/api.md) | [`Orleans.Lattice.Api.Auth.Grpc`](../lattice.api.auth.grpc/api.md) | `ApiAuthTypeAliases` (`oli.`) |
| [`Orleans.Lattice.Api.Backup`](api/orleans-lattice-api-backup.md) | `ILatticeBackupControl`, `ILatticeBackupOperations` | [`Orleans.Lattice.Api.Backup`](../lattice.api.backup/api.md) | [`Orleans.Lattice.Api.Backup.Grpc`](../lattice.api.backup.grpc/api.md) | `ApiBackupTypeAliases` (`oib.`) |
| [`Orleans.Lattice.Api.Schema`](api/orleans-lattice-api-schema.md) | `ILatticeSchemaComplianceOperations`, `ILatticeSchemaControl`, `ILatticeSchemaOperations` | [`Orleans.Lattice.Api.Schema`](../lattice.api.schema/api.md) | [`Orleans.Lattice.Api.Schema.Grpc`](../lattice.api.schema.grpc/api.md) | `ApiSchemaTypeAliases` (`ois.`) |
| [`Orleans.Lattice.Api.Replication`](api/orleans-lattice-api-replication.md) | `ILatticeReplicationControl`, `ILatticeReplicationPeerAdmin`, `ILatticeReplicationStatus` | [`Orleans.Lattice.Api.Replication`](../lattice.api.replication/api.md) | [`Orleans.Lattice.Api.Replication.Grpc`](../lattice.api.replication.grpc/api.md) | `ApiReplicationTypeAliases` (`oir.`) |
| [`Orleans.Lattice.Api.Telemetry`](api/orleans-lattice-api-telemetry.md) | `ILatticeTelemetry` | [`Orleans.Lattice.Api.Telemetry`](../lattice.api.telemetry/api.md) | [`Orleans.Lattice.Api.Telemetry.Grpc`](../lattice.api.telemetry.grpc/api.md) | `ApiTelemetryTypeAliases` (`oitl.`) |
| [`Orleans.Lattice.Api.TreeAdmin`](api/orleans-lattice-api-treeadmin.md) | `ILatticeStorageUsageOperations`, `ILatticeTreeAdmin`, `ILatticeTreeAdminOperations`, `ILatticeWalReclamation` | [`Orleans.Lattice.Api.TreeAdmin`](../lattice.api.treeadmin/api.md) | [`Orleans.Lattice.Api.TreeAdmin.Grpc`](../lattice.api.treeadmin.grpc/api.md) | `ApiTreeAdminTypeAliases` (`oit.`) |
| [`Orleans.Lattice.Api.TenantAdmin`](api/orleans-lattice-api-tenantadmin.md) | `ILatticeTenantAccessAdmin`, `ILatticeTenantAdmin`, `ILatticeTenantDirectoryAdmin`, `ILatticeTenantGrantAdmin`, `ILatticeTenantPolicyAdmin`, `ILatticeTenantQuotaUsage`, `ILatticeTenantRegionAdmin`, `ILatticeTenantSelfService` | [`Orleans.Lattice.Api.TenantAdmin`](../lattice.api.tenantadmin/api.md) | [`Orleans.Lattice.Api.TenantAdmin.Grpc`](../lattice.api.tenantadmin.grpc/api.md) | `ApiTenantAdminTypeAliases` (`oitn.`) |
| [`Orleans.Lattice.Api.Apps`](api/orleans-lattice-api-apps.md) | `ILatticeAppBridge`, `ILatticeAppCatalog`, `ILatticeAppRoleBindings`, `ILatticeAppsControl`, `ILatticeAppWorkspace` | [`Orleans.Lattice.Api.Apps`](../lattice.api.apps/api.md) | [`Orleans.Lattice.Api.Apps.Grpc`](../lattice.api.apps.grpc/api.md) | `ApiAppsTypeAliases` (`oia.`) |

The in-process facades and the remote adapters implement the same interfaces, so a consumer written against an interface works unchanged in-process and over the wire. The remote adapters are the Orleans.Lattice.Api.Mcp server in remote mode (which implements the interfaces over the gRPC bindings; co-hosted, it resolves the facades from dependency injection instead), the Explorer's shell transports, and the public gRPC clients some bindings ship - for example LatticeReplicationStatusGrpcClient (ILatticeReplicationStatus) and the apps clients (ILatticeAppsControl, ILatticeAppRoleBindings, ILatticeAppCatalog, ILatticeAppWorkspace, ILatticeAppBridge).

## Conventions

- **Serialization.** Most models are Orleans-serializable: they carry [GenerateSerializer] and an [Alias] drawn from their namespace's alias class in the table above. The alias string is the wire and persisted identity of the type and never changes, so the alias classes are part of the public surface. The exceptions are the state facade's in-process result wrappers (TreeSummaryResult, ShardSummariesResult, TreeStructureResult, EntryScanResult, EntryDetailResult and EntryHistoryResult), the two in-process stream-shaping option records (DataSetManyStreamOptions and TreeBulkLoadStreamOptions), a few enums that carry no attribute, and most typed exceptions (next bullet).
- **Exceptions.** The typed exceptions are raised in-process by the facades, so a binding can surface each as a distinct outcome. Only AppBridgeException and LatticeReplicationEngineNotHostedException are Orleans-serializable. Every exception derives directly from System.Exception except two: LatticeReplicationEngineNotHostedException (InvalidOperationException) and TenantAccessConfinementException (ArgumentException). Each of those two ships a no-op same-silo copier beside it and implements the core library's ILatticeDomainFault marker, which tells a broad catch written for the BCL base type that the exception is a deliberate domain refusal to let propagate, not a framework failure to recover from.
- **Long-running work.** Operation-tracking interfaces (`ILatticeBackupOperations`, `ILatticeSchemaOperations`, `ILatticeSchemaComplianceOperations`, `ILatticeTreeAdminOperations`, `ILatticeStorageUsageOperations`) extend `ILatticeOperations` and return a `LatticeOperationHandle` from each start verb. See [Long-running operations](operations.md).
- **Shared core types.** Several models expose types from the packages this one references - the core library (for example `HybridLogicalClock` and `LatticeMergeMode`), `Orleans.Lattice.Membership`, `Orleans.Lattice.Auth`, `Orleans.Lattice.Backup` and `Orleans.Lattice.Schema` - so a contract consumer takes those packages as transitive dependencies.

## Reading the declaration reference

Each namespace section lists every public type with its kind and summary, followed by the declaration reference: the declaration line and every directly declared public member and overload, in source order, with enum values. Inherited framework members and compiler-generated record members are not listed. For `Orleans.Lattice.Api.TreeAdmin`, `Orleans.Lattice.Api.TenantAdmin` and `Orleans.Lattice.Api.Apps` the member-level reference is maintained once, in the facade's own API page, and is linked rather than repeated here.

Totals: 338 public types across 12 namespaces.

## `Orleans.Lattice.Api.Region`

Region discovery: the regions a server can route a call to and the facade groups each one serves. Implemented today by the [MCP server](../lattice.api.mcp/README.md) (`lattice_list_regions`).

| Type | Kind | Summary |
|---|---|---|
| `ILatticeRegionCatalog` | interface | The transport-agnostic region discovery contract: enumerates the regions the server can route API calls to (the current cluster plus any reachable, credentialed peer), each with its per-group reachability. |
| `ApiRegionTypeAliases` | static class | Centralised Orleans serialization alias constants for every `Orleans.Lattice.Api.Region` type that participates in the wire format. |
| `LatticeRegionDescriptor` | sealed record | A region the server can route API calls to: the current cluster the binding is co-hosted with (or primarily wired to), plus any reachable, credentialed peer. |
| `LatticeRegionGroupReachability` | sealed record | The reachability of a single Lattice API facade group within one region, as reported by `ILatticeRegionCatalog`. |
| `LatticeRegionTenantScope` | sealed record | One tenant's standing in one region, attached to a `LatticeRegionDescriptor` when the catalog answered a tenant-scoped discovery call. |

### `ILatticeRegionCatalog`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Region/ILatticeRegionCatalog.cs) (line 18).

`public interface ILatticeRegionCatalog`

- `Task<IReadOnlyList<LatticeRegionDescriptor>> ListRegionsAsync(CancellationToken cancellationToken = default)`

### `ApiRegionTypeAliases`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Region/Model/ApiRegionTypeAliases.cs) (line 16).

`public static class ApiRegionTypeAliases`

- `public const string LatticeRegionGroupReachability`
- `public const string LatticeRegionDescriptor`
- `public const string LatticeRegionTenantScope`

### `LatticeRegionDescriptor`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Region/Model/LatticeRegionDescriptor.cs) (line 21).

`public sealed record LatticeRegionDescriptor`

- `public required string RegionId { get; init; }`
- `public string ClusterId { get; init; }`
- `public required bool IsCurrent { get; init; }`
- `public IReadOnlyList<LatticeRegionGroupReachability> Groups { get; init; }`
- `public LatticeRegionTenantScope? TenantScope { get; init; }`

### `LatticeRegionGroupReachability`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Region/Model/LatticeRegionGroupReachability.cs) (line 21).

`public sealed record LatticeRegionGroupReachability`

- `public required string Group { get; init; }`
- `public required bool Available { get; init; }`
- `public string? Endpoint { get; init; }`

### `LatticeRegionTenantScope`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Region/Model/LatticeRegionTenantScope.cs) (line 31).

`public sealed record LatticeRegionTenantScope`

- `public required string TenantId { get; init; }`
- `public required bool IsAllowed { get; init; }`
- `public required TenantRegionLifecycleStatus Status { get; init; }`
- `public required bool IsResident { get; init; }`

## Related

- [Package overview](README.md)
- [Architecture](architecture.md)
- [Long-running operations](operations.md)
