@stll/auth-model 0.2.3 → 0.2.5
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/contract.d.ts +3 -2
- package/dist/contract.js +3 -2
- package/package.json +3 -3
package/dist/contract.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//#region src/contract.d.ts
|
|
2
2
|
/** Better Auth version whose logical schema this contract describes. */
|
|
3
|
-
export declare const BETTER_AUTH_CONTRACT_VERSION = "1.7.
|
|
3
|
+
export declare const BETTER_AUTH_CONTRACT_VERSION = "1.7.6";
|
|
4
|
+
export declare const AUTH_SESSION_STARTUP_HEADER = "x-stella-session-startup";
|
|
4
5
|
export declare const ORGANIZATION_ROLE_NAMES: readonly ["owner", "admin", "member", "intern", "external"];
|
|
5
6
|
export type OrganizationRoleName = (typeof ORGANIZATION_ROLE_NAMES)[number];
|
|
6
7
|
/** Better Auth organization resources. Hosts extend this with product grants. */
|
|
@@ -284,7 +285,7 @@ export declare const BETTER_AUTH_PARITY_MANIFEST: {
|
|
|
284
285
|
readonly transaction: true;
|
|
285
286
|
readonly usePlural: false;
|
|
286
287
|
};
|
|
287
|
-
readonly betterAuthVersion: "1.7.
|
|
288
|
+
readonly betterAuthVersion: "1.7.6";
|
|
288
289
|
readonly options: {
|
|
289
290
|
readonly allowUserToCreateOrganization: true;
|
|
290
291
|
readonly cancelPendingInvitationsOnReInvite: false;
|
package/dist/contract.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//#region src/contract.ts
|
|
2
2
|
/** Better Auth version whose logical schema this contract describes. */
|
|
3
|
-
const BETTER_AUTH_CONTRACT_VERSION = "1.7.
|
|
3
|
+
const BETTER_AUTH_CONTRACT_VERSION = "1.7.6";
|
|
4
|
+
const AUTH_SESSION_STARTUP_HEADER = "x-stella-session-startup";
|
|
4
5
|
const ORGANIZATION_ROLE_NAMES = [
|
|
5
6
|
"owner",
|
|
6
7
|
"admin",
|
|
@@ -533,4 +534,4 @@ const BETTER_AUTH_PARITY_MANIFEST = {
|
|
|
533
534
|
schema: BETTER_AUTH_CORE_SCHEMA
|
|
534
535
|
};
|
|
535
536
|
//#endregion
|
|
536
|
-
export { BETTER_AUTH_ADAPTER_INVARIANTS, BETTER_AUTH_ADAPTER_OPTIONS, BETTER_AUTH_CONTRACT_VERSION, BETTER_AUTH_CORE_MODEL_NAMES, BETTER_AUTH_CORE_SCHEMA, BETTER_AUTH_ORGANIZATION_OPTIONS, BETTER_AUTH_ORGANIZATION_ROLE_GRANTS, BETTER_AUTH_ORGANIZATION_STATEMENTS, BETTER_AUTH_PARITY_MANIFEST, ORGANIZATION_ROLE_NAMES, compareBetterAuthSchema };
|
|
537
|
+
export { AUTH_SESSION_STARTUP_HEADER, BETTER_AUTH_ADAPTER_INVARIANTS, BETTER_AUTH_ADAPTER_OPTIONS, BETTER_AUTH_CONTRACT_VERSION, BETTER_AUTH_CORE_MODEL_NAMES, BETTER_AUTH_CORE_SCHEMA, BETTER_AUTH_ORGANIZATION_OPTIONS, BETTER_AUTH_ORGANIZATION_ROLE_GRANTS, BETTER_AUTH_ORGANIZATION_STATEMENTS, BETTER_AUTH_PARITY_MANIFEST, ORGANIZATION_ROLE_NAMES, compareBetterAuthSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/auth-model",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Portable Better Auth core contract and parity checks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"pack:dry-run": "bun pm pack --dry-run",
|
|
41
41
|
"test": "bun test src",
|
|
42
42
|
"typecheck": "bun ../../packages/scripts/src/tsc-native.ts --noEmit",
|
|
43
|
-
"lint": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --report-unused-disable-directives-severity=error --
|
|
43
|
+
"lint": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --report-unused-disable-directives-severity=error --type-aware --type-check packages/auth-model",
|
|
44
44
|
"lint:fix": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --type-aware --fix packages/auth-model",
|
|
45
45
|
"format": "bun ../../scripts/run-oxfmt.ts .",
|
|
46
46
|
"prepack": "bun run build"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@stll/typescript-config": "0.0.0",
|
|
50
|
-
"better-auth": "1.7.
|
|
50
|
+
"better-auth": "1.7.6",
|
|
51
51
|
"bun-types": "1.4.2",
|
|
52
52
|
"tsdown": "0.23.0"
|
|
53
53
|
},
|