@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 681 B
Source Map (JSON)
{"version":3,"file":"client-scopes.mjs","names":[],"sources":["../../../src/libs/permission/client-scopes.ts"],"sourcesContent":["export const ClientScopes = {\n\tMediaRead: \"media:read\",\n\tMediaProcess: \"media:process\",\n\tLocalesRead: \"locales:read\",\n} as const;\n\nexport type CollectionClientScope = `documents:${string}:read`;\n\nexport type ClientScope =\n\t| (typeof ClientScopes)[keyof typeof ClientScopes]\n\t| CollectionClientScope;\n\nexport const getCollectionClientScope = (\n\tcollectionKey: string,\n): CollectionClientScope => `documents:${collectionKey}:read`;\n"],"mappings":"AAAA,MAAa,EAAe,CAC3B,UAAW,aACX,aAAc,gBACd,YAAa,cACd,EAQa,EACZ,GAC2B,aAAa,EAAc"}