@storyblok/app-extension-auth
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1
@@ -1,2 +0,4 @@ | ||
import { Role } from './Role'; | ||
import { CustomRole, Role, StoryblokRole } from './Role'; | ||
export declare const isRole: (obj: unknown) => obj is Role; | ||
export declare const isStoryblokRole: (obj: unknown) => obj is StoryblokRole; | ||
export declare const isCustomRole: (obj: unknown) => obj is CustomRole; |
@@ -1,3 +0,20 @@ | ||
export type Role = { | ||
export type Role = StoryblokRole | CustomRole; | ||
export type StoryblokRole = { | ||
name: string; | ||
}; | ||
export type CustomRole = { | ||
id: number; | ||
resolved_allowed_paths: string[]; | ||
allowed_paths: number[]; | ||
field_permissions: string[]; | ||
readonly_field_permissions: string[]; | ||
permissions: string[]; | ||
role: string; | ||
subtitle: string | null; | ||
datasource_ids: number[]; | ||
component_ids: number[]; | ||
branch_ids: number[]; | ||
allowed_languages: string[]; | ||
asset_folder_ids: number[]; | ||
ext_id: string | null; | ||
}; |
{ | ||
"name": "@storyblok/app-extension-auth", | ||
"description": "A typed JavaScript library for handling authentication with Storyblok apps.", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.1", | ||
"author": { | ||
@@ -29,3 +29,2 @@ "name": "Johannes Lindgren", | ||
"engines": { | ||
"yarn": "^3.2.4", | ||
"node": ">=14.21.3" | ||
@@ -32,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5704041
58322