BccCode.Privacy.Client
1.0.53
dotnet add package BccCode.Privacy.Client --version 1.0.53
NuGet\Install-Package BccCode.Privacy.Client -Version 1.0.53
<PackageReference Include="BccCode.Privacy.Client" Version="1.0.53" />
<PackageVersion Include="BccCode.Privacy.Client" Version="1.0.53" />
<PackageReference Include="BccCode.Privacy.Client" />
paket add BccCode.Privacy.Client --version 1.0.53
#r "nuget: BccCode.Privacy.Client, 1.0.53"
#:package BccCode.Privacy.Client@1.0.53
#addin nuget:?package=BccCode.Privacy.Client&version=1.0.53
#tool nuget:?package=BccCode.Privacy.Client&version=1.0.53
BCC Privacy Client (.NET)
Machine-to-machine client for the BCC Privacy API, built on BCC Platform.
BccCode.Privacy.Client: the client (generated from Privacy's app-facing OpenAPI document), and Privacy's event types.BccCode.Privacy.Vocabulary: the GDPR vocabulary (Article6,Article9,Article17,PersonalDataClassification,PersonalDataCategory,PrivacyCatalogue). The client depends on it; both ship at the same version.
dotnet add package BccCode.Privacy.Client
Documentation: Client SDK: getting started and the reference.
2.0: generated client
2.0 is a breaking release (ADR 20). The client is generated with openapi-generator from Privacy's app-facing OpenAPI document, so it follows the API by construction. 1.x is not maintained after 2.0. The wire format is unchanged: a 2.0 client and a 1.x client talk to the same Privacy API.
| 1.x | 2.0 |
|---|---|
IPrivacyClient, IPrivacyDeclarationClient, PrivacyClient |
One API per area in BccCode.Privacy.Client.Api: ICatalogueApi, IProcessesApi, IAdoptionsApi, ICoverageApi, INoticesApi, IPortalApi. Inject the ones you use |
| A method returns its result | A method returns a response; Ok() (or Created() for a 201) gives the result. A refusal still throws PrivacyApiException |
Records in BccCode.Privacy, built with object initializers and with |
Generated classes in BccCode.Privacy.Client.Model with constructors (required fields first); optional fields are Option<T>. The type and property names are the same |
IReadOnlyList<T>, IReadOnlyDictionary<K, V> |
List<T>, Dictionary<K, V> |
PrivacyProcessDeclarationDocument, PublishProcessDeclarationAsync |
PrivacyProcessDocument has the declaration fields; IProcessesApi.PutProcessAsync |
PrivacyDeclarationWriteResult |
PrivacyProcessWriteResult |
GetAdoptionsAsync(PrivacyAdoptionQuery) |
IAdoptionsApi.GetAdoptionsAsync(process, org, inForce, limit, after); PrivacyAdoption.NextPageCursor() stays |
GetPersonCoverageAsync(personUid, orgUid, process) |
ICoverageApi.GetPersonCoverageAsync(personUid, org, process) |
PutDataControllerNoticeAsync(orgUid, ...) |
INoticesApi.PutDataControllerNoticeAsync(organizationUid, ...) |
SubscribeAsync<TEvent>, UnsubscribeAsync<TEvent> |
BCC PubSub's IPubSubClient (AddBccPubSub()): SubscribeAsync<TEvent>, DeleteSubscriptionAsync<TEvent> |
AddBccPrivacyClient(string baseUrl, params string[] scopes) |
AddBccPrivacyClient(Uri baseUrl, params string[] scopes). The string form bound the first scope as the base URL when only scopes were passed |
A network or token failure threw PrivacyApiException with 503, 408 or 401 |
Only a refusal by the API throws PrivacyApiException; other failures surface as themselves (HttpRequestException, the platform's token exception, TaskCanceledException) |
PrivacyValueOrigin, PrivacyAdoptionDocument.ValueOrigin, DeclaredValues (obsolete in 1.x) |
Removed |
The old JSON names (dataControllerId, grants, ...) |
Not in the client. The API still accepts them from 1.x clients for one release |
Unchanged: PrivacyApiScopes, PrivacyEnvironment, PrivacyTextParameters, the event types and the vocabulary package.
Who moves:
- The BCC Privacy libraries (
libraries/dotnet,BccCode.Privacy.Hosting) move to 2.0 in their next release. - The IT Services Portal moves in its own change.
bcc-code/bcc-coreandmembership-spikesstay on 1.x for now: move when ready. 1.x keeps working against the API.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BccCode.Platform.Apis (>= 2.0.1.40)
- BccCode.Platform.Config (>= 2.0.1.40)
- BccCode.Privacy.Vocabulary (>= 1.0.53)
- BccCode.PubSub.Client (>= 1.0.55)
- Microsoft.Extensions.Http (>= 10.0.15)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on BccCode.Privacy.Client:
| Package | Downloads |
|---|---|
|
BccCode.Privacy.Wolverine
BCC Privacy for Wolverine: the organisation, process and person carried on message envelopes, and handler middleware that sets each handler's privacy context from them and from the handler's [PrivacyProcess<T>]. |
|
|
BccCode.Privacy.Hosting
One AddPrivacy() for BCC Privacy: the EF Core adapter, the privacy context of each request, consent at sign-in, the privacy job and its endpoints, the Core group loader, the declarations checked at start-up, and the application's processes published to the Privacy API at deploy. Wolverine and ChangeHistory are optional packages: o.UseWolverine(), o.UseChangeHistory(). |
|
|
BccCode.Privacy.ChangeHistory
Connects BCC Privacy for EF Core and BccCode.ChangeHistory on one model: each personal entity's organisation is its history partition, versions, events and links are read per organisation of the privacy context, and the privacy columns make no history version. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.53 | 0 | 12/6/2026 |
| 1.0.52 | 0 | 12/6/2026 |
| 1.0.52-beta.210 | 0 | 12/5/2026 |
| 1.0.51 | 0 | 12/5/2026 |
| 1.0.50 | 0 | 12/5/2026 |
| 1.0.49 | 37 | 12/5/2026 |
| 1.0.48 | 54 | 12/2/2026 |
| 1.0.47 | 50 | 12/2/2026 |
| 1.0.46 | 928 | 11/26/2026 |
| 1.0.45 | 100 | 11/26/2026 |
| 1.0.44 | 305 | 11/26/2026 |
| 1.0.43 | 102 | 11/26/2026 |
| 1.0.42 | 199 | 11/26/2026 |
| 1.0.41 | 96 | 11/26/2026 |
| 1.0.40 | 93 | 11/26/2026 |
| 1.0.39 | 453 | 11/26/2026 |
| 1.0.38 | 94 | 11/26/2026 |
| 1.0.37 | 95 | 11/26/2026 |
| 1.0.36 | 95 | 11/26/2026 |
| 1.0.35 | 93 | 11/26/2026 |