common.types

Common types used throughout the SecretVaults library.

This module provides centralized type definitions including Uuid, Did, and ByNodeName for consistent type checking across the codebase.

class ByNodeName(root: RootModelRootType = PydanticUndefined)[source]

Bases: RootModel[Dict[NewType, Any]]

A dictionary mapping node DIDs to values.

__getitem__(key: Did) Any[source]
__setitem__(key: Did, value: Any) None[source]
__len__() int[source]
keys()[source]

Return the keys of the underlying dictionary.

values()[source]

Return the values of the underlying dictionary.

items()[source]

Return the items of the underlying dictionary.