@stll/auth-model 0.2.7 → 0.3.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.
@@ -1,8 +1,9 @@
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.6";
3
+ export declare const BETTER_AUTH_CONTRACT_VERSION = "1.7.12";
4
4
  export declare const AUTH_SESSION_STARTUP_HEADER = "x-stella-session-startup";
5
- export declare const AUTH_SOCIAL_PROVIDER_IDS: readonly ["google", "microsoft"];
5
+ export declare const AUTH_SOCIAL_PROVIDER_IDS: readonly ["google", "microsoft", "apple"];
6
+ export type AuthSocialProviderId = (typeof AUTH_SOCIAL_PROVIDER_IDS)[number];
6
7
  export declare const AUTH_ACCESS_RESET_ERROR_CODE = "confirm_access_reset";
7
8
  export declare const ORGANIZATION_ROLE_NAMES: readonly ["owner", "admin", "member", "intern", "external"];
8
9
  export type OrganizationRoleName = (typeof ORGANIZATION_ROLE_NAMES)[number];
@@ -291,7 +292,7 @@ export declare const BETTER_AUTH_PARITY_MANIFEST: {
291
292
  readonly invitation: "invitation";
292
293
  };
293
294
  };
294
- readonly betterAuthVersion: "1.7.6";
295
+ readonly betterAuthVersion: "1.7.12";
295
296
  readonly options: {
296
297
  readonly allowUserToCreateOrganization: true;
297
298
  readonly cancelPendingInvitationsOnReInvite: false;
package/dist/contract.js CHANGED
@@ -1,8 +1,12 @@
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.6";
3
+ const BETTER_AUTH_CONTRACT_VERSION = "1.7.12";
4
4
  const AUTH_SESSION_STARTUP_HEADER = "x-stella-session-startup";
5
- const AUTH_SOCIAL_PROVIDER_IDS = ["google", "microsoft"];
5
+ const AUTH_SOCIAL_PROVIDER_IDS = [
6
+ "google",
7
+ "microsoft",
8
+ "apple"
9
+ ];
6
10
  const AUTH_ACCESS_RESET_ERROR_CODE = "confirm_access_reset";
7
11
  const ORGANIZATION_ROLE_NAMES = [
8
12
  "owner",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/auth-model",
3
- "version": "0.2.7",
3
+ "version": "0.3.0",
4
4
  "description": "Portable Better Auth core contract and parity checks.",
5
5
  "keywords": [
6
6
  "authentication",
@@ -46,9 +46,10 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@stll/typescript-config": "0.0.0",
49
- "better-auth": "1.7.6",
49
+ "better-auth": "1.7.12",
50
50
  "bun-types": "1.4.4",
51
- "tsdown": "0.23.0"
51
+ "tsdown": "0.23.0",
52
+ "tsrs": "0.18.0-ts7.1.0-dev.20260929"
52
53
  },
53
54
  "main": "./dist/contract.js",
54
55
  "types": "./dist/contract.d.ts"