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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BccCode.Privacy.Client" Version="1.0.53" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BccCode.Privacy.Client" Version="1.0.53" />
                    
Directory.Packages.props
<PackageReference Include="BccCode.Privacy.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BccCode.Privacy.Client --version 1.0.53
                    
#r "nuget: BccCode.Privacy.Client, 1.0.53"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BccCode.Privacy.Client@1.0.53
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BccCode.Privacy.Client&version=1.0.53
                    
Install as a Cake Addin
#tool nuget:?package=BccCode.Privacy.Client&version=1.0.53
                    
Install as a Cake Tool

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-core and membership-spikes stay on 1.x for now: move when ready. 1.x keeps working against the API.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed