@clerk/types 4.51.0-snapshot.v20250407145248 → 4.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +23 -36
- package/dist/index.d.ts +23 -36
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1644,7 +1644,7 @@ type JWTPayloadBase = {
|
|
|
1644
1644
|
*
|
|
1645
1645
|
* The version of the JWT payload.
|
|
1646
1646
|
*/
|
|
1647
|
-
|
|
1647
|
+
ver: number | undefined;
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Encoded token supporting the `getRawString` method.
|
|
1650
1650
|
*/
|
|
@@ -1687,6 +1687,18 @@ type JWTPayloadBase = {
|
|
|
1687
1687
|
* @experimental
|
|
1688
1688
|
*/
|
|
1689
1689
|
fva?: [fistFactorAge: number, secondFactorAge: number];
|
|
1690
|
+
/**
|
|
1691
|
+
* Active organization ID.
|
|
1692
|
+
*/
|
|
1693
|
+
org_id?: string;
|
|
1694
|
+
/**
|
|
1695
|
+
* Active organization slug.
|
|
1696
|
+
*/
|
|
1697
|
+
org_slug?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Active organization role.
|
|
1700
|
+
*/
|
|
1701
|
+
org_role?: OrganizationCustomRoleKey;
|
|
1690
1702
|
/**
|
|
1691
1703
|
* Session status
|
|
1692
1704
|
*/
|
|
@@ -1697,50 +1709,25 @@ type JWTPayloadBase = {
|
|
|
1697
1709
|
[propName: string]: unknown;
|
|
1698
1710
|
};
|
|
1699
1711
|
type VersionedJwtPayload = {
|
|
1700
|
-
v?: undefined;
|
|
1701
1712
|
/**
|
|
1713
|
+
* @experimental
|
|
1702
1714
|
*
|
|
1703
|
-
*
|
|
1704
|
-
*/
|
|
1705
|
-
org_permissions?: OrganizationCustomPermissionKey[];
|
|
1706
|
-
/**
|
|
1707
|
-
* Active organization ID.
|
|
1708
|
-
*/
|
|
1709
|
-
org_id?: string;
|
|
1710
|
-
/**
|
|
1711
|
-
* Active organization slug.
|
|
1715
|
+
* The version of the JWT payload.
|
|
1712
1716
|
*/
|
|
1713
|
-
|
|
1717
|
+
ver?: never;
|
|
1714
1718
|
/**
|
|
1715
|
-
*
|
|
1719
|
+
*
|
|
1720
|
+
* Active organization permissions.
|
|
1716
1721
|
*/
|
|
1717
|
-
|
|
1722
|
+
org_permissions?: OrganizationCustomPermissionKey[];
|
|
1718
1723
|
} | {
|
|
1719
|
-
v: 2;
|
|
1720
1724
|
/**
|
|
1721
|
-
* @experimental
|
|
1725
|
+
* @experimental
|
|
1722
1726
|
*
|
|
1723
|
-
*
|
|
1727
|
+
* The version of the JWT payload.
|
|
1724
1728
|
*/
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
* Active organization ID.
|
|
1728
|
-
*/
|
|
1729
|
-
id: string;
|
|
1730
|
-
/**
|
|
1731
|
-
* Active organization slug.
|
|
1732
|
-
*/
|
|
1733
|
-
slg?: string;
|
|
1734
|
-
/**
|
|
1735
|
-
* Active organization role.
|
|
1736
|
-
*/
|
|
1737
|
-
rol?: OrganizationCustomRoleKey;
|
|
1738
|
-
/**
|
|
1739
|
-
*
|
|
1740
|
-
* Active organization permissions.
|
|
1741
|
-
*/
|
|
1742
|
-
per?: string;
|
|
1743
|
-
};
|
|
1729
|
+
ver: 2;
|
|
1730
|
+
org_permissions?: never;
|
|
1744
1731
|
};
|
|
1745
1732
|
type JwtPayload = JWTPayloadBase & CustomJwtSessionClaims & VersionedJwtPayload;
|
|
1746
1733
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1644,7 +1644,7 @@ type JWTPayloadBase = {
|
|
|
1644
1644
|
*
|
|
1645
1645
|
* The version of the JWT payload.
|
|
1646
1646
|
*/
|
|
1647
|
-
|
|
1647
|
+
ver: number | undefined;
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Encoded token supporting the `getRawString` method.
|
|
1650
1650
|
*/
|
|
@@ -1687,6 +1687,18 @@ type JWTPayloadBase = {
|
|
|
1687
1687
|
* @experimental
|
|
1688
1688
|
*/
|
|
1689
1689
|
fva?: [fistFactorAge: number, secondFactorAge: number];
|
|
1690
|
+
/**
|
|
1691
|
+
* Active organization ID.
|
|
1692
|
+
*/
|
|
1693
|
+
org_id?: string;
|
|
1694
|
+
/**
|
|
1695
|
+
* Active organization slug.
|
|
1696
|
+
*/
|
|
1697
|
+
org_slug?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Active organization role.
|
|
1700
|
+
*/
|
|
1701
|
+
org_role?: OrganizationCustomRoleKey;
|
|
1690
1702
|
/**
|
|
1691
1703
|
* Session status
|
|
1692
1704
|
*/
|
|
@@ -1697,50 +1709,25 @@ type JWTPayloadBase = {
|
|
|
1697
1709
|
[propName: string]: unknown;
|
|
1698
1710
|
};
|
|
1699
1711
|
type VersionedJwtPayload = {
|
|
1700
|
-
v?: undefined;
|
|
1701
1712
|
/**
|
|
1713
|
+
* @experimental
|
|
1702
1714
|
*
|
|
1703
|
-
*
|
|
1704
|
-
*/
|
|
1705
|
-
org_permissions?: OrganizationCustomPermissionKey[];
|
|
1706
|
-
/**
|
|
1707
|
-
* Active organization ID.
|
|
1708
|
-
*/
|
|
1709
|
-
org_id?: string;
|
|
1710
|
-
/**
|
|
1711
|
-
* Active organization slug.
|
|
1715
|
+
* The version of the JWT payload.
|
|
1712
1716
|
*/
|
|
1713
|
-
|
|
1717
|
+
ver?: never;
|
|
1714
1718
|
/**
|
|
1715
|
-
*
|
|
1719
|
+
*
|
|
1720
|
+
* Active organization permissions.
|
|
1716
1721
|
*/
|
|
1717
|
-
|
|
1722
|
+
org_permissions?: OrganizationCustomPermissionKey[];
|
|
1718
1723
|
} | {
|
|
1719
|
-
v: 2;
|
|
1720
1724
|
/**
|
|
1721
|
-
* @experimental
|
|
1725
|
+
* @experimental
|
|
1722
1726
|
*
|
|
1723
|
-
*
|
|
1727
|
+
* The version of the JWT payload.
|
|
1724
1728
|
*/
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
* Active organization ID.
|
|
1728
|
-
*/
|
|
1729
|
-
id: string;
|
|
1730
|
-
/**
|
|
1731
|
-
* Active organization slug.
|
|
1732
|
-
*/
|
|
1733
|
-
slg?: string;
|
|
1734
|
-
/**
|
|
1735
|
-
* Active organization role.
|
|
1736
|
-
*/
|
|
1737
|
-
rol?: OrganizationCustomRoleKey;
|
|
1738
|
-
/**
|
|
1739
|
-
*
|
|
1740
|
-
* Active organization permissions.
|
|
1741
|
-
*/
|
|
1742
|
-
per?: string;
|
|
1743
|
-
};
|
|
1729
|
+
ver: 2;
|
|
1730
|
+
org_permissions?: never;
|
|
1744
1731
|
};
|
|
1745
1732
|
type JwtPayload = JWTPayloadBase & CustomJwtSessionClaims & VersionedJwtPayload;
|
|
1746
1733
|
/**
|