The array of underlying node clients for the cluster.
The signer used by this client for signing.
Creates a new collection on all nodes.
Optionaloptions: { auth?: AuthContext }Creates a new index on a collection.
Optionaloptions: { auth?: AuthContext }Creates a new saved query on all nodes.
Optionaloptions: { auth?: AuthContext }Creates one or more standard data documents in a collection.
Optionaloptions: { auth?: AuthContext }Deletes the builder and associated resources from all nodes.
Optionaloptions: { auth?: AuthContext }Deletes a collection its data from all nodes.
Optionaloptions: { auth?: AuthContext }Deletes data from a collection based on a filter.
Optionaloptions: { auth?: AuthContext }Deletes a saved query from all nodes.
Optionaloptions: { auth?: AuthContext }Drops an index from a collection.
Optionaloptions: { auth?: AuthContext }Finds data in a collection, revealing concealed values if a key is configured.
Optionaloptions: { auth?: AuthContext }Deletes all data from a collection.
Optionaloptions: { auth?: AuthContext }The DID of the signer associated with this client.
Retrieves a list of all saved queries.
Optionaloptions: {Retrieves a single saved query by its id.
Optionaloptions: { auth?: AuthContext }Retrieves information about each node in the cluster.
Reads the metadata for a single collection.
Optionaloptions: { auth?: AuthContext }Reads a list of all collections from the cluster.
Optionaloptions: {Reads the builder's profile from the cluster.
Optionaloptions: { auth?: AuthContext }Reads the results of a completed query run from each node.
Optionaloptions: { auth?: AuthContext }Fetches a new root NUC token from the configured nilAuth server.
Registers the builder with all nodes in the cluster.
Starts a query execution job.
Optionaloptions: { auth?: AuthContext }Checks subscription status by the builder's Did.
Reads the last N documents from a collection, revealing concealed values if a key is configured.
Optionaloptions: { auth?: AuthContext; limit?: number }Updates the builder's profile on all nodes.
Optionaloptions: { auth?: AuthContext }Updates documents in a collection, concealing the update payload if a key is configured.
Optionaloptions: { auth?: AuthContext }StaticfromCreates and initializes a new SecretVaultBuilderClient instance.
// Basic instantiation with an auto-generated key
const builderClient = await SecretVaultBuilderClient.from({
signer: Signer.generate(),
nilauthClient,
dbs: ["http://localhost:40081", "http://localhost:40082"],
});
// Advanced: Using a custom signer from a browser wallet
import { Signer } from "@nillion/nuc";
// Assumes window.ethereum is available from a browser wallet like MetaMask
const customSigner = await Signer.fromEip1193Provider(window.ethereum);
const clientWithSigner = await SecretVaultBuilderClient.from({
signer: customSigner,
nilauthClient,
dbs: ["http://localhost:40081", "http://localhost:40082"],
});
Client for performing builder operations on SecretVaults.
This client handles all builder-specific operations including registration, collection management, data operations, and query execution. It supports automatic handling of concealed data when configured with blindfold.