@clerk/backend 3.0.0-snapshot.v20251208202852 → 3.0.0-snapshot.v20251215203425
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/api/endpoints/APIKeysApi.d.ts +23 -2
- package/dist/api/endpoints/APIKeysApi.d.ts.map +1 -1
- package/dist/api/endpoints/InstanceApi.d.ts +3 -3
- package/dist/api/endpoints/OrganizationApi.d.ts +2 -2
- package/dist/api/endpoints/SamlConnectionApi.d.ts +3 -3
- package/dist/api/endpoints/UserApi.d.ts +2 -2
- package/dist/api/resources/CommercePlan.d.ts +27 -27
- package/dist/api/resources/CommerceSubscriptionItem.d.ts +6 -6
- package/dist/api/resources/Feature.d.ts +11 -11
- package/dist/api/resources/JSON.d.ts +4 -4
- package/dist/api/resources/Organization.d.ts +23 -23
- package/dist/api/resources/OrganizationInvitation.d.ts +7 -7
- package/dist/api/resources/OrganizationMembership.d.ts +7 -7
- package/dist/api/resources/SamlConnection.d.ts +4 -4
- package/dist/api/resources/Session.d.ts +2 -2
- package/dist/api/resources/User.d.ts +4 -4
- package/dist/{chunk-XZ7V2XHT.mjs → chunk-6QDP7O5L.mjs} +34 -6
- package/dist/chunk-6QDP7O5L.mjs.map +1 -0
- package/dist/index.js +33 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal.js +33 -5
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/tokens/authObjects.d.ts +1 -1
- package/dist/tokens/clerkRequest.d.ts.map +1 -1
- package/dist/tokens/types.d.ts +7 -7
- package/dist/util/shared.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-XZ7V2XHT.mjs.map +0 -1
package/dist/internal.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
stripPrivateDataFromObject,
|
|
24
24
|
unauthenticatedMachineObject,
|
|
25
25
|
verifyMachineAuthToken
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6QDP7O5L.mjs";
|
|
27
27
|
import "./chunk-YBVFDYDR.mjs";
|
|
28
28
|
import "./chunk-SNA7AD3D.mjs";
|
|
29
29
|
import "./chunk-TCIXZLLW.mjs";
|
|
@@ -31,7 +31,7 @@ export type SignedInAuthObject = SharedSignedInAuthObjectProperties & {
|
|
|
31
31
|
*/
|
|
32
32
|
getToken: ServerGetToken;
|
|
33
33
|
/**
|
|
34
|
-
* A function that checks if the user has an
|
|
34
|
+
* A function that checks if the user has an Organization Role or Custom Permission.
|
|
35
35
|
*/
|
|
36
36
|
has: CheckAuthorizationFromSessionClaims;
|
|
37
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clerkRequest.d.ts","sourceRoot":"","sources":["../../src/tokens/clerkRequest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C;;;;GAIG;AACH,cAAM,YAAa,SAAQ,OAAO;IAChC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;gBAE/B,KAAK,EAAE,YAAY,GAAG,OAAO,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW;IAkB3E,MAAM;;;;;;;IAUb;;;OAGG;IACH,OAAO,CAAC,oBAAoB;
|
|
1
|
+
{"version":3,"file":"clerkRequest.d.ts","sourceRoot":"","sources":["../../src/tokens/clerkRequest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C;;;;GAIG;AACH,cAAM,YAAa,SAAQ,OAAO;IAChC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;gBAE/B,KAAK,EAAE,YAAY,GAAG,OAAO,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW;IAkB3E,MAAM;;;;;;;IAUb;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,iBAAiB;CAG1B;AAED,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,qBAAqB,CAAC,OAAO,YAAY,CAAC,KAAG,YAOxF,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/tokens/types.d.ts
CHANGED
|
@@ -44,9 +44,9 @@ export type AuthenticateRequestOptions = {
|
|
|
44
44
|
*/
|
|
45
45
|
afterSignUpUrl?: string;
|
|
46
46
|
/**
|
|
47
|
-
* Used to activate a specific [
|
|
47
|
+
* Used to activate a specific [Organization](https://clerk.com/docs/guides/organizations/overview) or [Personal Account](https://clerk.com/docs/guides/dashboard/overview) based on URL path parameters. If there's a mismatch between the Active Organization in the session (e.g., as reported by `auth()`) and the Organization indicated by the URL, an attempt to activate the Organization specified in the URL will be made.
|
|
48
48
|
*
|
|
49
|
-
* If the activation can't be performed, either because an
|
|
49
|
+
* If the activation can't be performed, either because an Organization doesn't exist or the user lacks access, the Active Organization in the session won't be changed. Ultimately, it's the responsibility of the page to verify that the resources are appropriate to render given the URL and handle mismatches appropriately (e.g., by returning a 404).
|
|
50
50
|
*/
|
|
51
51
|
organizationSyncOptions?: OrganizationSyncOptions;
|
|
52
52
|
/**
|
|
@@ -69,13 +69,13 @@ export type AuthenticateRequestOptions = {
|
|
|
69
69
|
*/
|
|
70
70
|
export type OrganizationSyncOptions = {
|
|
71
71
|
/**
|
|
72
|
-
* Specifies URL patterns that are
|
|
72
|
+
* Specifies URL patterns that are Organization-specific, containing an Organization ID or slug as a path parameter. If a request matches this path, the Organization identifier will be used to set that Organization as active.
|
|
73
73
|
*
|
|
74
74
|
* If the route also matches the `personalAccountPatterns` prop, this prop takes precedence.
|
|
75
75
|
*
|
|
76
|
-
* Patterns must have a path parameter named either `:id` (to match a Clerk
|
|
76
|
+
* Patterns must have a path parameter named either `:id` (to match a Clerk Organization ID) or `:slug` (to match a Clerk Organization slug).
|
|
77
77
|
*
|
|
78
|
-
* If the
|
|
78
|
+
* If the Organization can't be activated—either because it doesn't exist or the user lacks access—the previously active Organization will remain unchanged. Components must detect this case and provide an appropriate error and/or resolution pathway, such as calling `notFound()` or displaying an [`<OrganizationSwitcher />`](https://clerk.com/docs/reference/components/organization/organization-switcher).
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ["/orgs/:slug", "/orgs/:slug/(.*)"]
|
|
@@ -86,7 +86,7 @@ export type OrganizationSyncOptions = {
|
|
|
86
86
|
*/
|
|
87
87
|
organizationPatterns?: Pattern[];
|
|
88
88
|
/**
|
|
89
|
-
* URL patterns for resources that exist within the context of a [Clerk Personal Account](https://clerk.com/docs/guides/dashboard/overview) (user-specific, outside any
|
|
89
|
+
* URL patterns for resources that exist within the context of a [Clerk Personal Account](https://clerk.com/docs/guides/dashboard/overview) (user-specific, outside any Organization).
|
|
90
90
|
*
|
|
91
91
|
* If the route also matches the `organizationPattern` prop, the `organizationPattern` prop takes precedence.
|
|
92
92
|
*
|
|
@@ -134,7 +134,7 @@ export type OrganizationSyncTargetMatchers = {
|
|
|
134
134
|
PersonalAccountMatcher: MatchFunction<Partial<Record<string, string | string[]>>> | null;
|
|
135
135
|
};
|
|
136
136
|
/**
|
|
137
|
-
* Represents an
|
|
137
|
+
* Represents an Organization or a Personal Account - e.g. an
|
|
138
138
|
* entity that can be activated by the handshake API.
|
|
139
139
|
*/
|
|
140
140
|
export type OrganizationSyncTarget = {
|
package/dist/util/shared.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { deprecated, deprecatedProperty } from '@clerk/shared/deprecated';
|
|
|
2
2
|
export { getCookieSuffix, getSuffixedCookieName, isDevelopmentFromSecretKey, isProductionFromSecretKey, parsePublishableKey, } from '@clerk/shared/keys';
|
|
3
3
|
export { retry } from '@clerk/shared/retry';
|
|
4
4
|
export { addClerkPrefix, getClerkJsMajorVersionOrTag, getScriptUrl } from '@clerk/shared/url';
|
|
5
|
-
export declare const errorThrower: import("@clerk/shared/error-
|
|
5
|
+
export declare const errorThrower: import("@clerk/shared/error-FQfTKcEF").y;
|
|
6
6
|
export declare const isDevOrStagingUrl: (url: string | URL) => boolean;
|
|
7
7
|
//# sourceMappingURL=shared.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerk/backend",
|
|
3
|
-
"version": "3.0.0-snapshot.
|
|
3
|
+
"version": "3.0.0-snapshot.v20251215203425",
|
|
4
4
|
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
|
|
5
5
|
"homepage": "https://clerk.com/",
|
|
6
6
|
"bugs": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"cookie": "1.0.2",
|
|
90
90
|
"standardwebhooks": "^1.0.0",
|
|
91
91
|
"tslib": "2.8.1",
|
|
92
|
-
"@clerk/shared": "
|
|
92
|
+
"@clerk/shared": "4.0.0-snapshot.v20251215203425"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@edge-runtime/vm": "5.0.0",
|