@meistrari/auth-core 1.26.0 → 1.27.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
@@ -4386,15 +4386,15 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4386
4386
  } & {
4387
4387
  applications: {
4388
4388
  getApplicationAuthContext: (applicationId: string) => Promise<{
4389
- data: ApplicationAuthContextResponse;
4390
- error: null;
4391
- } | {
4392
4389
  data: null;
4393
4390
  error: {
4394
4391
  message?: string | undefined;
4395
4392
  status: number;
4396
4393
  statusText: string;
4397
4394
  };
4395
+ } | {
4396
+ data: ApplicationAuthContextResponse;
4397
+ error: null;
4398
4398
  }>;
4399
4399
  listCandidateOrganizations: (applicationId: string) => Promise<{
4400
4400
  data: ListCandidateOrganizationsResponse;
@@ -5723,6 +5723,8 @@ type CreateAdminApplicationOptions = {
5723
5723
  homeUrl?: string | null;
5724
5724
  /** Custom application authentication settings. */
5725
5725
  config?: ApplicationConfig | null;
5726
+ /** Organizations to enable for this application during creation. */
5727
+ entitlements?: CreateAdminApplicationEntitlementOptions[];
5726
5728
  };
5727
5729
  /**
5728
5730
  * Options accepted when enabling an organization for an application.
@@ -5985,15 +5987,15 @@ declare class AdminService {
5985
5987
  * @returns The paginated organization listing
5986
5988
  */
5987
5989
  listOrganizations(options?: ListAdminOrganizationsOptions): Promise<{
5990
+ data: ListAdminOrganizationsResult;
5991
+ error: null;
5992
+ } | {
5988
5993
  data: null;
5989
5994
  error: {
5990
5995
  message?: string | undefined;
5991
5996
  status: number;
5992
5997
  statusText: string;
5993
5998
  };
5994
- } | {
5995
- data: ListAdminOrganizationsResult;
5996
- error: null;
5997
5999
  }>;
5998
6000
  /**
5999
6001
  * Lists all Better Auth users from the user table.
package/dist/index.d.ts CHANGED
@@ -4386,15 +4386,15 @@ declare function createAPIClient(apiUrl: string, fetchOptions?: BetterFetchOptio
4386
4386
  } & {
4387
4387
  applications: {
4388
4388
  getApplicationAuthContext: (applicationId: string) => Promise<{
4389
- data: ApplicationAuthContextResponse;
4390
- error: null;
4391
- } | {
4392
4389
  data: null;
4393
4390
  error: {
4394
4391
  message?: string | undefined;
4395
4392
  status: number;
4396
4393
  statusText: string;
4397
4394
  };
4395
+ } | {
4396
+ data: ApplicationAuthContextResponse;
4397
+ error: null;
4398
4398
  }>;
4399
4399
  listCandidateOrganizations: (applicationId: string) => Promise<{
4400
4400
  data: ListCandidateOrganizationsResponse;
@@ -5723,6 +5723,8 @@ type CreateAdminApplicationOptions = {
5723
5723
  homeUrl?: string | null;
5724
5724
  /** Custom application authentication settings. */
5725
5725
  config?: ApplicationConfig | null;
5726
+ /** Organizations to enable for this application during creation. */
5727
+ entitlements?: CreateAdminApplicationEntitlementOptions[];
5726
5728
  };
5727
5729
  /**
5728
5730
  * Options accepted when enabling an organization for an application.
@@ -5985,15 +5987,15 @@ declare class AdminService {
5985
5987
  * @returns The paginated organization listing
5986
5988
  */
5987
5989
  listOrganizations(options?: ListAdminOrganizationsOptions): Promise<{
5990
+ data: ListAdminOrganizationsResult;
5991
+ error: null;
5992
+ } | {
5988
5993
  data: null;
5989
5994
  error: {
5990
5995
  message?: string | undefined;
5991
5996
  status: number;
5992
5997
  statusText: string;
5993
5998
  };
5994
- } | {
5995
- data: ListAdminOrganizationsResult;
5996
- error: null;
5997
5999
  }>;
5998
6000
  /**
5999
6001
  * Lists all Better Auth users from the user table.
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { defaultStatements } from 'better-auth/plugins/organization/access';
8
8
  import z, { z as z$1 } from 'zod';
9
9
  export { APIError } from 'better-auth';
10
10
 
11
- const version = "1.26.0";
11
+ const version = "1.27.0";
12
12
 
13
13
  function parsedEnumValues(schema) {
14
14
  return Object.fromEntries(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/auth-core",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {