@clerk/backend
Advanced tools
Comparing version 1.11.2-canary.v1189f71 to 1.11.2-canary.v8cecbe8
@@ -28,2 +28,4 @@ import type { InvitationStatus, OrganizationInvitationStatus, OrganizationMembershipRole, SignInStatus, SignUpStatus } from './Enums'; | ||
readonly TestingToken: "testing_token"; | ||
readonly Role: "role"; | ||
readonly Permission: "permission"; | ||
}; | ||
@@ -340,2 +342,20 @@ export type ObjectType = (typeof ObjectType)[keyof typeof ObjectType]; | ||
} | ||
export interface RoleJSON extends ClerkResourceJSON { | ||
object: typeof ObjectType.Role; | ||
key: string; | ||
name: string; | ||
description: string; | ||
permissions: PermissionJSON[]; | ||
is_creator_eligible: boolean; | ||
created_at: number; | ||
updated_at: number; | ||
} | ||
export interface PermissionJSON extends ClerkResourceJSON { | ||
object: typeof ObjectType.Permission; | ||
key: string; | ||
name: string; | ||
description: string; | ||
created_at: number; | ||
updated_at: number; | ||
} | ||
//# sourceMappingURL=JSON.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { DeletedObjectJSON, EmailJSON, OrganizationInvitationJSON, OrganizationJSON, OrganizationMembershipJSON, SessionJSON, SMSMessageJSON, UserJSON } from './JSON'; | ||
import type { DeletedObjectJSON, EmailJSON, OrganizationInvitationJSON, OrganizationJSON, OrganizationMembershipJSON, PermissionJSON, RoleJSON, SessionJSON, SMSMessageJSON, UserJSON } from './JSON'; | ||
type Webhook<EvtType, Data> = { | ||
@@ -14,5 +14,7 @@ type: EvtType; | ||
export type OrganizationInvitationWebhookEvent = Webhook<'organizationInvitation.accepted' | 'organizationInvitation.created' | 'organizationInvitation.revoked', OrganizationInvitationJSON>; | ||
export type WebhookEvent = UserWebhookEvent | SessionWebhookEvent | EmailWebhookEvent | SMSWebhookEvent | OrganizationWebhookEvent | OrganizationMembershipWebhookEvent | OrganizationInvitationWebhookEvent; | ||
export type RoleWebhookEvent = Webhook<'role.created' | 'role.updated' | 'role.deleted', RoleJSON>; | ||
export type PermissionWebhookEvent = Webhook<'permission.created' | 'permission.updated' | 'permission.deleted', PermissionJSON>; | ||
export type WebhookEvent = UserWebhookEvent | SessionWebhookEvent | EmailWebhookEvent | SMSWebhookEvent | OrganizationWebhookEvent | OrganizationMembershipWebhookEvent | OrganizationInvitationWebhookEvent | RoleWebhookEvent | PermissionWebhookEvent; | ||
export type WebhookEventType = WebhookEvent['type']; | ||
export {}; | ||
//# sourceMappingURL=Webhooks.d.ts.map |
{ | ||
"name": "@clerk/backend", | ||
"version": "1.11.2-canary.v1189f71", | ||
"version": "1.11.2-canary.v8cecbe8", | ||
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", | ||
@@ -98,4 +98,4 @@ "homepage": "https://clerk.com/", | ||
"dependencies": { | ||
"@clerk/shared": "2.7.3-canary.v1189f71", | ||
"@clerk/types": "4.20.2-canary.v1189f71", | ||
"@clerk/shared": "2.7.3-canary.v8cecbe8", | ||
"@clerk/types": "4.20.2-canary.v8cecbe8", | ||
"cookie": "0.5.0", | ||
@@ -102,0 +102,0 @@ "snakecase-keys": "5.4.4", |
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 too big to display
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 too big to display
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
1204734
11456
+ Added@clerk/shared@2.7.3-canary.v8cecbe8(transitive)
+ Added@clerk/types@4.20.2-canary.v8cecbe8(transitive)
- Removed@clerk/shared@2.7.3-canary.v1189f71(transitive)
- Removed@clerk/types@4.20.2-canary.v1189f71(transitive)