@meistrari/auth-core 1.41.2 → 1.42.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 CHANGED
@@ -4940,6 +4940,12 @@ type InviteAdminOrganizationUsersOptions = {
4940
4940
  * Defaults to true (send an invitation email).
4941
4941
  */
4942
4942
  sendInvite?: boolean;
4943
+ /**
4944
+ * Initial password for accounts created by a force add (`sendInvite:
4945
+ * false`); rejected otherwise. 8–128 characters. Only applied to users
4946
+ * without a password yet — an existing credential is never overwritten.
4947
+ */
4948
+ password?: string;
4943
4949
  };
4944
4950
  /**
4945
4951
  * Per-email outcome of a batch organization invite.
package/dist/index.d.ts CHANGED
@@ -4940,6 +4940,12 @@ type InviteAdminOrganizationUsersOptions = {
4940
4940
  * Defaults to true (send an invitation email).
4941
4941
  */
4942
4942
  sendInvite?: boolean;
4943
+ /**
4944
+ * Initial password for accounts created by a force add (`sendInvite:
4945
+ * false`); rejected otherwise. 8–128 characters. Only applied to users
4946
+ * without a password yet — an existing credential is never overwritten.
4947
+ */
4948
+ password?: string;
4943
4949
  };
4944
4950
  /**
4945
4951
  * Per-email outcome of a batch organization invite.
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ function isTokenExpired(token, expiresInMs) {
21
21
  return nowInSeconds > expirationTime;
22
22
  }
23
23
 
24
- const version = "1.41.2";
24
+ const version = "1.42.0";
25
25
 
26
26
  function parsedEnumValues(schema) {
27
27
  return Object.fromEntries(
@@ -32,10 +32,10 @@ function parsedEnumValues(schema) {
32
32
  );
33
33
  }
34
34
 
35
- const AMRBrand = Symbol("amr");
36
- const AALBrand = Symbol("aal");
37
- const ACRBrand = Symbol("acr");
38
- const AuthMethodBrand = Symbol("authMethod");
35
+ const AMRBrand = /* @__PURE__ */ Symbol("amr");
36
+ const AALBrand = /* @__PURE__ */ Symbol("aal");
37
+ const ACRBrand = /* @__PURE__ */ Symbol("acr");
38
+ const AuthMethodBrand = /* @__PURE__ */ Symbol("authMethod");
39
39
  const AMR = z.enum({
40
40
  Pwd: "pwd",
41
41
  Otp: "otp",
@@ -510,6 +510,8 @@ class AdminService {
510
510
  this.client = client;
511
511
  this.apiUrl = apiUrl;
512
512
  }
513
+ client;
514
+ apiUrl;
513
515
  /**
514
516
  * Requests an application management route.
515
517
  *
@@ -1380,6 +1382,7 @@ class ApplicationService {
1380
1382
  constructor(client) {
1381
1383
  this.client = client;
1382
1384
  }
1385
+ client;
1383
1386
  /**
1384
1387
  * Gets public display context for an application auth redirect.
1385
1388
  *
@@ -1643,6 +1646,7 @@ class OrganizationService {
1643
1646
  constructor(client) {
1644
1647
  this.client = client;
1645
1648
  }
1649
+ client;
1646
1650
  /**
1647
1651
  * Retrieves a single organization by ID with optional related data.
1648
1652
  *
@@ -1922,6 +1926,8 @@ class SessionService {
1922
1926
  this.client = client;
1923
1927
  this.apiUrl = apiUrl;
1924
1928
  }
1929
+ client;
1930
+ apiUrl;
1925
1931
  /**
1926
1932
  * Retrieves the current user session.
1927
1933
  *
@@ -2089,6 +2095,7 @@ class ApiKeyService {
2089
2095
  constructor(client) {
2090
2096
  this.client = client;
2091
2097
  }
2098
+ client;
2092
2099
  /**
2093
2100
  * Creates a new API key.
2094
2101
  *
@@ -2174,6 +2181,7 @@ class EmailOTPService {
2174
2181
  constructor(client) {
2175
2182
  this.client = client;
2176
2183
  }
2184
+ client;
2177
2185
  /**
2178
2186
  * Sends a sign-in verification OTP to an email address.
2179
2187
  *
@@ -2235,6 +2243,7 @@ class SessionAssuranceService {
2235
2243
  constructor(client) {
2236
2244
  this.client = client;
2237
2245
  }
2246
+ client;
2238
2247
  async get() {
2239
2248
  return parseResponse(SessionAssuranceResponse, await this.client.sessionAssurance.getSessionAssurance());
2240
2249
  }
@@ -2259,6 +2268,7 @@ class UserService {
2259
2268
  constructor(client) {
2260
2269
  this.client = client;
2261
2270
  }
2271
+ client;
2262
2272
  async changePassword(currentPassword, newPassword) {
2263
2273
  return await this.client.changePassword({ currentPassword, newPassword, revokeOtherSessions: true });
2264
2274
  }
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
1
  {
2
- "name": "@meistrari/auth-core",
3
- "version": "1.41.2",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "types": "./dist/index.d.ts",
8
- "import": "./dist/index.mjs"
2
+ "name": "@meistrari/auth-core",
3
+ "version": "1.42.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.mjs"
9
+ }
10
+ },
11
+ "main": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "unbuild",
18
+ "docs": "typedoc"
19
+ },
20
+ "dependencies": {
21
+ "@better-auth/api-key": "1.6.26",
22
+ "@better-auth/sso": "1.6.26",
23
+ "better-auth": "1.6.26",
24
+ "jose": "6.1.3",
25
+ "zod": "4.3.6"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "latest",
29
+ "typedoc": "0.28.18",
30
+ "typedoc-plugin-markdown": "4.11.0",
31
+ "typescript": "5.9.2",
32
+ "unbuild": "3.6.1"
9
33
  }
10
- },
11
- "main": "./dist/index.mjs",
12
- "types": "./dist/index.d.ts",
13
- "files": [
14
- "dist"
15
- ],
16
- "scripts": {
17
- "build": "unbuild",
18
- "docs": "typedoc"
19
- },
20
- "dependencies": {
21
- "@better-auth/api-key": "1.6.26",
22
- "@better-auth/sso": "1.6.26",
23
- "better-auth": "1.6.26",
24
- "jose": "6.1.3",
25
- "zod": "4.3.6"
26
- },
27
- "devDependencies": {
28
- "@types/node": "latest",
29
- "typedoc": "0.28.18",
30
- "typedoc-plugin-markdown": "4.11.0",
31
- "typescript": "5.9.2",
32
- "unbuild": "3.6.1"
33
- }
34
34
  }