@learncard/ceramic-plugin 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  [<img src="https://user-images.githubusercontent.com/2185016/190510561-294db809-09fd-4771-9749-6c0e0f4144fd.png" width="215"/>](https://learncard.com)
2
2
 
3
- # @learncard/core
3
+ # @learncard/ceramic-plugin
4
4
 
5
- [![npm version](https://img.shields.io/npm/v/@learncard/core)](https://www.npmjs.com/package/@learncard/core)
6
- [![npm downloads](https://img.shields.io/npm/dw/@learncard/core)](https://www.npmjs.com/package/@learncard/core)
7
- [![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@learncard/core)](https://www.npmjs.com/package/@learncard/core)
5
+ [![npm version](https://img.shields.io/npm/v/@learncard/ceramic-plugin)](https://www.npmjs.com/package/@learncard/ceramic-plugin)
6
+ [![npm downloads](https://img.shields.io/npm/dw/@learncard/ceramic-plugin)](https://www.npmjs.com/package/@learncard/ceramic-plugin)
7
+ [![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@learncard/ceramic-plugin)](https://www.npmjs.com/package/@learncard/ceramic-plugin)
8
8
 
9
- The LearnCard Core is a pluggable, open-source, universal digital wallet to enable any individual or organization to seamlessly **issue, earn, store, share, and spend currency and credentials** built for the future of education and work.
9
+ The Ceramic Plugin provides Ceramic Network integration for LearnCard, allowing for decentralized storage of Verifiable Credentials. Note: LearnCloud is now the recommended storage solution for LearnCard.
10
10
 
11
11
  ## Documentation
12
12
  All LearnCard documentation can be found at:
@@ -53644,6 +53644,43 @@ var BoostPermissionsValidator = mod.object({
53644
53644
  canManageChildrenProfiles: mod.boolean().default(false).optional(),
53645
53645
  canViewAnalytics: mod.boolean()
53646
53646
  });
53647
+ var BoostPermissionsQueryValidator = mod.object({
53648
+ role: StringQuery,
53649
+ canEdit: mod.boolean(),
53650
+ canIssue: mod.boolean(),
53651
+ canRevoke: mod.boolean(),
53652
+ canManagePermissions: mod.boolean(),
53653
+ canIssueChildren: StringQuery,
53654
+ canCreateChildren: StringQuery,
53655
+ canEditChildren: StringQuery,
53656
+ canRevokeChildren: StringQuery,
53657
+ canManageChildrenPermissions: StringQuery,
53658
+ canManageChildrenProfiles: mod.boolean(),
53659
+ canViewAnalytics: mod.boolean()
53660
+ }).partial();
53661
+ var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
53662
+ var ClaimHookValidator = mod.discriminatedUnion("type", [
53663
+ mod.object({
53664
+ type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
53665
+ data: mod.object({
53666
+ claimUri: mod.string(),
53667
+ targetUri: mod.string(),
53668
+ permissions: BoostPermissionsValidator.partial()
53669
+ })
53670
+ })
53671
+ ]);
53672
+ var ClaimHookQueryValidator = mod.object({
53673
+ type: StringQuery,
53674
+ data: mod.object({
53675
+ claimUri: StringQuery,
53676
+ targetUri: StringQuery,
53677
+ permissions: BoostPermissionsQueryValidator
53678
+ })
53679
+ }).deepPartial();
53680
+ var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
53681
+ var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
53682
+ records: FullClaimHookValidator.array()
53683
+ });
53647
53684
  var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
53648
53685
  var BoostValidator = mod.object({
53649
53686
  uri: mod.string(),