Vault class

A vault that stores credentials for use by agents during sessions.

Annotations
  • @immutable

Constructors

Vault({required String id, String type = 'vault', required String displayName, required Map<String, String> metadata, required DateTime createdAt, required DateTime updatedAt, DateTime? archivedAt})
Creates a Vault.
const
Vault.fromJson(Map<String, dynamic> json)
Creates a Vault from JSON.
factory

Properties

archivedAt DateTime?
When the vault was archived. Null if not archived.
final
createdAt DateTime
ISO 8601 timestamp of when the vault was created.
final
displayName String
Human-readable name for the vault.
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the vault.
final
metadata Map<String, String>
Arbitrary key-value metadata attached to the vault.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Object type. Always "vault".
final
updatedAt DateTime
ISO 8601 timestamp of when the vault was last updated.
final

Methods

copyWith({String? id, String? type, String? displayName, Map<String, String>? metadata, DateTime? createdAt, DateTime? updatedAt, Object? archivedAt = unsetCopyWithValue}) Vault
Creates a copy with replaced values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override