-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore/fix defaults and schema mapping (#191)
# Problem Not all the schemas were correctly mapping. ## Solution Updated the mapping setup
- Loading branch information
Showing
7 changed files
with
135 additions
and
64 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
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
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 |
---|---|---|
@@ -1,51 +1,139 @@ | ||
import type { SchemaName } from '@projectlibertylabs/siwf-utils'; | ||
export interface SchemaData { | ||
name: SchemaName; | ||
namespace?: string; | ||
version?: number; | ||
description: string; | ||
id?: number; | ||
} | ||
|
||
export const DSNPSchemas: SchemaData[] = [ | ||
{ | ||
name: 'tombstone', | ||
description: | ||
'Publish a notice that previously announced content is invalid and the related Announcement should be considered reverted', | ||
namespace: 'dsnp', | ||
name: 'broadcast', | ||
version: 1, | ||
description: 'Post a public message', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'broadcast', | ||
version: 2, | ||
description: 'Post a public message', | ||
}, | ||
{ | ||
name: 'reply', | ||
description: 'Post a public reply to a Broadcast', | ||
namespace: 'dsnp', | ||
name: 'dsnp-content-attribute-set', | ||
version: 1, | ||
description: 'Create DSNP content attributes', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'ext-content-attribute-set', | ||
version: 1, | ||
description: 'Create external content attributes', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'private-connections', | ||
version: 1, | ||
description: 'Establish private, mutual connections between two identities', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'private-follows', | ||
version: 1, | ||
description: 'Privately follow another identity', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'profile-resources', | ||
version: 1, | ||
description: 'Publish public profile', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'profile', | ||
version: 1, | ||
description: '(Deprecated) Publish profile updates', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'public-follows', | ||
version: 1, | ||
description: 'Publicly follow another identity', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'public-key-assertion-method', | ||
version: 1, | ||
description: 'Announce that a new cryptographic key has been added for assertation validation', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'public-key-key-agreement', | ||
version: 1, | ||
description: 'Announce that a new cryptographic key has been added for graph privacy', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'reaction', | ||
version: 1, | ||
description: 'Publish emoji reactions to a Broadcast', | ||
}, | ||
{ | ||
name: 'profile-resources', | ||
description: 'Publish profile updates', | ||
namespace: 'dsnp', | ||
name: 'reply', | ||
version: 1, | ||
description: 'Post a public reply to a Broadcast', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'reply', | ||
version: 2, | ||
description: 'Post a public reply to a Broadcast', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'tombstone', | ||
version: 1, | ||
description: | ||
'Publish a notice that previously announced content is invalid and the related Announcement should be considered reverted', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'tombstone', | ||
version: 2, | ||
description: | ||
'Publish a notice that previously announced content is invalid and the related Announcement should be considered reverted', | ||
}, | ||
{ | ||
namespace: 'dsnp', | ||
name: 'update', | ||
version: 1, | ||
description: 'Update previously announced content', | ||
}, | ||
{ | ||
name: 'public-key-key-agreement', | ||
description: 'Announce that a new cryptographic key has been added for logins and permissions', | ||
namespace: 'dsnp', | ||
name: 'update', | ||
version: 2, | ||
description: 'Update previously announced content', | ||
}, | ||
{ | ||
name: 'public-follows', | ||
description: 'Publicly follow another identity', | ||
namespace: 'dsnp', | ||
name: 'user-attribute-set', | ||
version: 1, | ||
description: '(Deprecated) Create attributes', | ||
}, | ||
{ | ||
name: 'private-follows', | ||
description: 'Privately follow another identity', | ||
namespace: 'dsnp', | ||
name: 'user-attribute-set', | ||
version: 2, | ||
description: 'Create attributes', | ||
}, | ||
{ | ||
name: 'private-connections', | ||
description: 'Establish private, mutual connections between two identities', | ||
namespace: 'freq', | ||
name: 'ency.default-token-address', | ||
version: 1, | ||
description: 'Set default token address', | ||
}, | ||
]; |
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
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