@learncard/idx-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,14 @@
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/idx-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/idx-plugin)](https://www.npmjs.com/package/@learncard/idx-plugin)
6
+ [![npm downloads](https://img.shields.io/npm/dw/@learncard/idx-plugin)](https://www.npmjs.com/package/@learncard/idx-plugin)
7
+ [![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@learncard/idx-plugin)](https://www.npmjs.com/package/@learncard/idx-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
+ **Note: This plugin is deprecated. Please use LearnCloud plugin instead.**
10
+
11
+ The IDX Plugin provides Ceramic's Identity Index (IDX) integration for LearnCard, allowing for decentralized index storage of credential references.
10
12
 
11
13
  ## Documentation
12
14
  All LearnCard documentation can be found at:
@@ -11442,6 +11442,43 @@ var BoostPermissionsValidator = mod.object({
11442
11442
  canManageChildrenProfiles: mod.boolean().default(false).optional(),
11443
11443
  canViewAnalytics: mod.boolean()
11444
11444
  });
11445
+ var BoostPermissionsQueryValidator = mod.object({
11446
+ role: StringQuery,
11447
+ canEdit: mod.boolean(),
11448
+ canIssue: mod.boolean(),
11449
+ canRevoke: mod.boolean(),
11450
+ canManagePermissions: mod.boolean(),
11451
+ canIssueChildren: StringQuery,
11452
+ canCreateChildren: StringQuery,
11453
+ canEditChildren: StringQuery,
11454
+ canRevokeChildren: StringQuery,
11455
+ canManageChildrenPermissions: StringQuery,
11456
+ canManageChildrenProfiles: mod.boolean(),
11457
+ canViewAnalytics: mod.boolean()
11458
+ }).partial();
11459
+ var ClaimHookTypeValidator = mod.enum(["GRANT_PERMISSIONS"]);
11460
+ var ClaimHookValidator = mod.discriminatedUnion("type", [
11461
+ mod.object({
11462
+ type: mod.literal(ClaimHookTypeValidator.Values.GRANT_PERMISSIONS),
11463
+ data: mod.object({
11464
+ claimUri: mod.string(),
11465
+ targetUri: mod.string(),
11466
+ permissions: BoostPermissionsValidator.partial()
11467
+ })
11468
+ })
11469
+ ]);
11470
+ var ClaimHookQueryValidator = mod.object({
11471
+ type: StringQuery,
11472
+ data: mod.object({
11473
+ claimUri: StringQuery,
11474
+ targetUri: StringQuery,
11475
+ permissions: BoostPermissionsQueryValidator
11476
+ })
11477
+ }).deepPartial();
11478
+ var FullClaimHookValidator = mod.object({ id: mod.string(), createdAt: mod.string(), updatedAt: mod.string() }).and(ClaimHookValidator);
11479
+ var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
11480
+ records: FullClaimHookValidator.array()
11481
+ });
11445
11482
  var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
11446
11483
  var BoostValidator = mod.object({
11447
11484
  uri: mod.string(),
@@ -66245,6 +66282,43 @@ var BoostPermissionsValidator2 = mod2.object({
66245
66282
  canManageChildrenProfiles: mod2.boolean().default(false).optional(),
66246
66283
  canViewAnalytics: mod2.boolean()
66247
66284
  });
66285
+ var BoostPermissionsQueryValidator2 = mod2.object({
66286
+ role: StringQuery2,
66287
+ canEdit: mod2.boolean(),
66288
+ canIssue: mod2.boolean(),
66289
+ canRevoke: mod2.boolean(),
66290
+ canManagePermissions: mod2.boolean(),
66291
+ canIssueChildren: StringQuery2,
66292
+ canCreateChildren: StringQuery2,
66293
+ canEditChildren: StringQuery2,
66294
+ canRevokeChildren: StringQuery2,
66295
+ canManageChildrenPermissions: StringQuery2,
66296
+ canManageChildrenProfiles: mod2.boolean(),
66297
+ canViewAnalytics: mod2.boolean()
66298
+ }).partial();
66299
+ var ClaimHookTypeValidator2 = mod2.enum(["GRANT_PERMISSIONS"]);
66300
+ var ClaimHookValidator2 = mod2.discriminatedUnion("type", [
66301
+ mod2.object({
66302
+ type: mod2.literal(ClaimHookTypeValidator2.Values.GRANT_PERMISSIONS),
66303
+ data: mod2.object({
66304
+ claimUri: mod2.string(),
66305
+ targetUri: mod2.string(),
66306
+ permissions: BoostPermissionsValidator2.partial()
66307
+ })
66308
+ })
66309
+ ]);
66310
+ var ClaimHookQueryValidator2 = mod2.object({
66311
+ type: StringQuery2,
66312
+ data: mod2.object({
66313
+ claimUri: StringQuery2,
66314
+ targetUri: StringQuery2,
66315
+ permissions: BoostPermissionsQueryValidator2
66316
+ })
66317
+ }).deepPartial();
66318
+ var FullClaimHookValidator2 = mod2.object({ id: mod2.string(), createdAt: mod2.string(), updatedAt: mod2.string() }).and(ClaimHookValidator2);
66319
+ var PaginatedClaimHooksValidator2 = PaginationResponseValidator2.extend({
66320
+ records: FullClaimHookValidator2.array()
66321
+ });
66248
66322
  var LCNBoostStatus2 = mod2.enum(["DRAFT", "LIVE"]);
66249
66323
  var BoostValidator2 = mod2.object({
66250
66324
  uri: mod2.string(),