diff --git a/.changeset/five-hotels-wash.md b/.changeset/five-hotels-wash.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/five-hotels-wash.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/clerk-js/src/core/resources/Permission.ts b/packages/clerk-js/src/core/resources/Permission.ts index 310eb7694f..b89c62c1ef 100644 --- a/packages/clerk-js/src/core/resources/Permission.ts +++ b/packages/clerk-js/src/core/resources/Permission.ts @@ -3,9 +3,6 @@ import type { PermissionJSON, PermissionResource } from '@clerk/types'; import { unixEpochToDate } from '../../utils/date'; import { BaseResource } from './internal'; -/** - * @experimental - */ export class Permission extends BaseResource implements PermissionResource { id!: string; key!: string; diff --git a/packages/clerk-js/src/core/resources/Role.ts b/packages/clerk-js/src/core/resources/Role.ts index f009597d14..425855d1d3 100644 --- a/packages/clerk-js/src/core/resources/Role.ts +++ b/packages/clerk-js/src/core/resources/Role.ts @@ -4,9 +4,6 @@ import { unixEpochToDate } from '../../utils/date'; import { BaseResource } from './internal'; import { Permission } from './Permission'; -/** - * @experimental - */ export class Role extends BaseResource implements RoleResource { id!: string; key!: string; diff --git a/packages/nextjs/src/server/protect.ts b/packages/nextjs/src/server/protect.ts index 0ab4fd2f4f..7fc68304b9 100644 --- a/packages/nextjs/src/server/protect.ts +++ b/packages/nextjs/src/server/protect.ts @@ -10,9 +10,7 @@ import { constants as nextConstants } from '../constants'; type AuthProtectOptions = { unauthorizedUrl?: string; unauthenticatedUrl?: string }; /** - * @experimental - * This function is experimental as it throws a Nextjs notFound error if user is not authenticated or authorized. - * In the future we would investigate a way to throw a more appropriate error that clearly describes the not authorized of authenticated status. + * Throws a Nextjs notFound error if user is not authenticated or authorized. */ export interface AuthProtect { (params?: CheckAuthorizationParamsWithCustomPermissions, options?: AuthProtectOptions): SignedInAuthObject; diff --git a/packages/types/src/json.ts b/packages/types/src/json.ts index 92ae931a37..a1c128b874 100644 --- a/packages/types/src/json.ts +++ b/packages/types/src/json.ts @@ -341,9 +341,6 @@ export interface OrganizationDomainJSON extends ClerkResourceJSON { total_pending_suggestions: number; } -/** - * @experimental - */ export interface RoleJSON extends ClerkResourceJSON { object: 'role'; id: string; @@ -355,9 +352,6 @@ export interface RoleJSON extends ClerkResourceJSON { updated_at: number; } -/** - * @experimental - */ export interface PermissionJSON extends ClerkResourceJSON { object: 'permission'; id: string; diff --git a/packages/types/src/organization.ts b/packages/types/src/organization.ts index 41a1396f07..42c3138f6f 100644 --- a/packages/types/src/organization.ts +++ b/packages/types/src/organization.ts @@ -42,9 +42,6 @@ export interface OrganizationResource extends ClerkResource { update: (params: UpdateOrganizationParams) => Promise; getMemberships: GetMemberships; getInvitations: (params?: GetInvitationsParams) => Promise>; - /** - * @experimental - */ getRoles: (params?: GetRolesParams) => Promise>; getDomains: (params?: GetDomainsParams) => Promise>; getMembershipRequests: ( @@ -61,9 +58,6 @@ export interface OrganizationResource extends ClerkResource { setLogo: (params: SetOrganizationLogoParams) => Promise; } -/** - * @experimental - */ export type GetRolesParams = ClerkPaginationParams; export type GetMembersParams = ClerkPaginationParams<{ diff --git a/packages/types/src/permission.ts b/packages/types/src/permission.ts index f30f6343fd..0e4fed20bc 100644 --- a/packages/types/src/permission.ts +++ b/packages/types/src/permission.ts @@ -1,8 +1,5 @@ import type { ClerkResource } from './resource'; -/** - * @experimental - */ export interface PermissionResource extends ClerkResource { id: string; key: string; diff --git a/packages/types/src/role.ts b/packages/types/src/role.ts index 7011c879c2..c48a41665d 100644 --- a/packages/types/src/role.ts +++ b/packages/types/src/role.ts @@ -1,9 +1,6 @@ import type { PermissionResource } from './permission'; import type { ClerkResource } from './resource'; -/** - * @experimental - */ export interface RoleResource extends ClerkResource { id: string; key: string;