generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to update the Identity Metadata name field. (#956)
This PR exposes the ability to update the `name` field within the Identity's Metadata. The reasoning behind exposing the specific field vs allowing the entire object to be updated is to prevent some pretty bad foot-guns. For more context: ```typescript export interface IdentityMetadata { name: string; tenant: string; uri: string; connectedDid?: string; } ``` The `uri` field should always be the DID's URI, so this should remain unchanged. The `tenant` field is set to the Agent's DID, changing this would be a foot-gun and might render the identity un-readable. The `connectedDid` field is used to denote whether a DID is a delegated/connected DID and which DID it is acting on behalf of (the connectedDID). Since none of these other values should be changed, we expose a method to update a single field.
- Loading branch information
1 parent
1334fae
commit e7f5dfe
Showing
3 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@web5/agent": patch | ||
"@web5/identity-agent": patch | ||
"@web5/proxy-agent": patch | ||
"@web5/user-agent": patch | ||
--- | ||
|
||
Add ability to update the Identity Metadata name field. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters