prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Version Packages

authored by

github-actions[bot] and committed by
Tyler Lawson
de351e2a eaedcb7c

+36 -36
-35
.changeset/permission-set-lexicons.md
··· 1 - --- 2 - "prototypey": minor 3 - --- 4 - 5 - Add support for permission-set lexicons with `lx.permissionSet()` and permission entry builders: 6 - 7 - - `lx.repoPermission()` 8 - - `lx.rpcPermission()` 9 - - `lx.blobPermission()` 10 - - `lx.accountPermission()` 11 - - `lx.identityPermission()` 12 - 13 - Collections and endpoints accept both lexicon schema objects and plain NSID strings. 14 - 15 - ```ts 16 - const authCore = lx.lexicon("com.example.authCore", { 17 - main: lx.permissionSet({ 18 - title: "Example: Core functionality", 19 - detail: "The core functionality for Example", 20 - permissions: [ 21 - lx.repoPermission({ 22 - collection: [myRecord, "com.example.otherRecord"], 23 - action: ["create", "update"], 24 - }), 25 - lx.rpcPermission({ 26 - lxm: [myProcedure], 27 - aud: "did:web:example.com", 28 - }), 29 - lx.blobPermission({ 30 - accept: ["image/*"], 31 - }), 32 - ], 33 - }), 34 - }); 35 - ```
+35
packages/prototypey/CHANGELOG.md
··· 1 1 # prototypey 2 2 3 + ## 0.4.0 4 + 5 + ### Minor Changes 6 + 7 + - b23cb32: Add support for permission-set lexicons with `lx.permissionSet()` and permission entry builders: 8 + - `lx.repoPermission()` 9 + - `lx.rpcPermission()` 10 + - `lx.blobPermission()` 11 + - `lx.accountPermission()` 12 + - `lx.identityPermission()` 13 + 14 + Collections and endpoints accept both lexicon schema objects and plain NSID strings. 15 + 16 + ```ts 17 + const authCore = lx.lexicon("com.example.authCore", { 18 + main: lx.permissionSet({ 19 + title: "Example: Core functionality", 20 + detail: "The core functionality for Example", 21 + permissions: [ 22 + lx.repoPermission({ 23 + collection: [myRecord, "com.example.otherRecord"], 24 + action: ["create", "update"], 25 + }), 26 + lx.rpcPermission({ 27 + lxm: [myProcedure], 28 + aud: "did:web:example.com", 29 + }), 30 + lx.blobPermission({ 31 + accept: ["image/*"], 32 + }), 33 + ], 34 + }), 35 + }); 36 + ``` 37 + 3 38 ## 0.3.9 4 39 5 40 ### Patch Changes
+1 -1
packages/prototypey/package.json
··· 1 1 { 2 2 "name": "prototypey", 3 - "version": "0.3.9", 3 + "version": "0.4.0", 4 4 "description": "atproto lexicon typescript toolkit", 5 5 "repository": { 6 6 "type": "git",