Skip to content

Conversation

tim-hm
Copy link
Collaborator

@tim-hm tim-hm commented Oct 3, 2025

No description provided.

tim-hm added 17 commits October 8, 2025 14:59
� Conflicts:
�	biome.jsonc
�	package.json
�	pnpm-lock.yaml
- Replace `NucTokenBuilder` with `Builder.invocation()` and `Builder.delegationFrom()`
- Adopt `Signer` pattern via `keypair.signer()` for token operations
- Update `NilauthClient` instantiation to use `NilauthClient.create()`
- Refactor `PayerBuilder` to use `PayerBuilder.fromKeypair()`
- Update subscription payment to use `paySubscription()` with Did objects
- Replace `Command` objects with string paths in `NucCmd` namespace
- Access `Did` strings via `didString` property
- Update `SecretVaultBuilderClient.from()` to accept pre-configured `NilauthClient`

# Conflicts:
#	package.json
#	pnpm-lock.yaml
#	src/builder.ts
#	src/common/cluster.ts
#	src/common/types.ts
#	src/dto/builders.dto.ts
#	src/dto/collections.dto.ts
#	src/dto/common.ts
#	src/dto/data.dto.ts
#	src/dto/queries.dto.ts
#	src/dto/users.dto.ts
#	src/nildb/base-client.ts
#	src/nildb/builder-client.ts
#	src/nildb/user-client.ts
#	tests/fixture/fixture.ts
Introduce `AuthContext` type to provide per-request auth tuning in both builder and user clients. This allows developers to supply a pre-signed invocation, a  delegation, or a temporary signer for any authenticated operation — in theory this should improve DX so library consumers can mix and match based on their needs and the specific method being used.
Before:
- builder.tailData(collection, limit, auth)
- builder.getQueries(pagination, auth)
- user.listDataReferences(pagination, auth)

After:
- builder.tailData(collection, { limit, auth })
- builder.getQueries({ pagination, auth })
- user.listDataReferences({ pagination, auth })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant