@authyon/auth 0.2.0-beta.6 → 0.2.0-beta.9

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/README.md CHANGED
@@ -229,7 +229,7 @@ Métodos de sessão/auth ficam soltos no client; os que giram em torno de um rec
229
229
 
230
230
  | Método | Endpoint |
231
231
  | ----------------------------------------------------- | ---------------------------------------------- |
232
- | `organization.list()` | `GET /auth/tenants` |
232
+ | `organization.list({ search?, skip?, take? })` | `GET /auth/tenants` |
233
233
  | `organization.create(params?)` | `POST /auth/tenants` |
234
234
  | `organization.get(organizationId)` | `GET /auth/tenants/{id}` |
235
235
  | `organization.rename(organizationId, name)` | `PATCH /auth/tenants/{id}` |
@@ -93,12 +93,17 @@ interface Organization {
93
93
  name?: string;
94
94
  description?: string;
95
95
  roles?: string[];
96
+ /** JSON-encoded values for the organization's configured custom fields. */
97
+ customFields?: string;
98
+ /** JSON-encoded metadata visible to members of the organization. */
99
+ publicMetadata?: string;
96
100
  }
97
101
  /** POST /auth/tenants — creates an organization owned by the signed-in user. */
98
102
  interface CreateOrganizationInput {
99
103
  name?: string;
100
104
  slug?: string;
101
105
  description?: string;
106
+ customFields?: Record<string, unknown>;
102
107
  }
103
108
  /** GET /auth/tenants/{organizationId}/members — confirmed against the live API. */
104
109
  interface OrganizationMember {
@@ -428,8 +433,10 @@ declare class AuthyonClient {
428
433
  confirmPasswordReset: (token: string, newPassword: string) => Promise<void>;
429
434
  };
430
435
  readonly organization: {
431
- /** GET /auth/tenants — all organization memberships. */
432
- list: () => Promise<Organization[]>;
436
+ /** GET /auth/tenants — filterable list of organization memberships. */
437
+ list: (params?: {
438
+ search?: string;
439
+ } & PaginationOptions) => Promise<Organization[]>;
433
440
  /**
434
441
  * POST /auth/tenants — creates an organization owned by the signed-in
435
442
  * user (only available when self-service organization creation is
@@ -585,6 +592,13 @@ interface AuthyonPermissionSource {
585
592
  /** OAuth scopes are also accepted and interpreted as Authyon permissions. */
586
593
  scope?: string | null;
587
594
  }
595
+ /** A declarative group of permissions evaluated against an Authyon permission source. */
596
+ interface PermissionGroup {
597
+ /** Permissions that must all be granted. */
598
+ allOf?: readonly string[];
599
+ /** Permissions where at least one must be granted. */
600
+ anyOf?: readonly string[];
601
+ }
588
602
  interface AuthyonAbilityOptions {
589
603
  rules?: readonly AbilityRule[];
590
604
  /** Rules added when the source contains a matching Authyon role. */
@@ -618,7 +632,12 @@ declare class AuthyonAbilityBuilder {
618
632
  declare function createAuthyonAbility(source?: AuthyonPermissionSource, options?: AuthyonAbilityOptions): AuthyonAbility;
619
633
  /** Checks an Authyon permission string using the same wildcard rules as an ability. */
620
634
  declare function hasPermission(source: AuthyonPermissionSource | readonly string[], requiredPermission: string): boolean;
635
+ /**
636
+ * Checks a permission group using Authyon's standard permission and wildcard rules.
637
+ * Empty or omitted groups do not add authorization requirements.
638
+ */
639
+ declare function hasPermissionGroup(source: AuthyonPermissionSource | readonly string[], group: PermissionGroup): boolean;
621
640
  /** Converts Authyon's `subject:action` permission strings to authorization rules. */
622
641
  declare function createAuthyonRules(source?: AuthyonPermissionSource, options?: AuthyonAbilityOptions): AbilityRule[];
623
642
 
624
- export { createAuthyonRules as $, AuthyonClient as A, type SessionControllerOptions as B, type CreateOrganizationInput as C, type SessionInfo as D, type SessionSnapshot as E, FetchHttpAdapter as F, type SessionSnapshotListener as G, type HttpAdapter as H, type IntrospectResult as I, type SessionStatus as J, type SsoProvider as K, LoggingHttpAdapter as L, type TwoFactorChallenge as M, type TwoFactorMethod as N, type Organization as O, type Paged as P, type TwoFactorStatus as Q, type RegisterInput as R, type Session as S, type TokenStorage as T, type User as U, type ValidateResult as V, type VerifyTwoFactorInput as W, type WebAuthnAssertion as X, type WebAuthnCeremonyStart as Y, type WebAuthnCredential as Z, createAuthyonAbility as _, type HttpLoggerOptions as a, createClient as a0, hasPermission as a1, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type Activity as g, type AuthEvent as h, type AuthState as i, type AuthStateListener as j, type AuthenticatorSetup as k, AuthyonAbility as l, AuthyonAbilityBuilder as m, type AuthyonAbilityOptions as n, type AuthyonClientOptions as o, type AuthyonPermissionSource as p, AuthyonSessionController as q, type HttpAdapterRequest as r, type HttpLogEvent as s, type HttpLogger as t, type InviteMemberInput as u, type LoginInput as v, type LoginResult as w, type OrganizationMember as x, type PaginationOptions as y, type Role as z };
643
+ export { createAuthyonAbility as $, AuthyonClient as A, type Role as B, type CreateOrganizationInput as C, type SessionControllerOptions as D, type SessionInfo as E, FetchHttpAdapter as F, type SessionSnapshot as G, type HttpAdapter as H, type IntrospectResult as I, type SessionSnapshotListener as J, type SessionStatus as K, LoggingHttpAdapter as L, type SsoProvider as M, type TwoFactorChallenge as N, type Organization as O, type Paged as P, type TwoFactorMethod as Q, type RegisterInput as R, type Session as S, type TokenStorage as T, type TwoFactorStatus as U, type User as V, type ValidateResult as W, type VerifyTwoFactorInput as X, type WebAuthnAssertion as Y, type WebAuthnCeremonyStart as Z, type WebAuthnCredential as _, type HttpLoggerOptions as a, createAuthyonRules as a0, createClient as a1, hasPermission as a2, hasPermissionGroup as a3, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type Activity as g, type AuthEvent as h, type AuthState as i, type AuthStateListener as j, type AuthenticatorSetup as k, AuthyonAbility as l, AuthyonAbilityBuilder as m, type AuthyonAbilityOptions as n, type AuthyonClientOptions as o, type AuthyonPermissionSource as p, AuthyonSessionController as q, type HttpAdapterRequest as r, type HttpLogEvent as s, type HttpLogger as t, type InviteMemberInput as u, type LoginInput as v, type LoginResult as w, type OrganizationMember as x, type PaginationOptions as y, type PermissionGroup as z };
@@ -93,12 +93,17 @@ interface Organization {
93
93
  name?: string;
94
94
  description?: string;
95
95
  roles?: string[];
96
+ /** JSON-encoded values for the organization's configured custom fields. */
97
+ customFields?: string;
98
+ /** JSON-encoded metadata visible to members of the organization. */
99
+ publicMetadata?: string;
96
100
  }
97
101
  /** POST /auth/tenants — creates an organization owned by the signed-in user. */
98
102
  interface CreateOrganizationInput {
99
103
  name?: string;
100
104
  slug?: string;
101
105
  description?: string;
106
+ customFields?: Record<string, unknown>;
102
107
  }
103
108
  /** GET /auth/tenants/{organizationId}/members — confirmed against the live API. */
104
109
  interface OrganizationMember {
@@ -428,8 +433,10 @@ declare class AuthyonClient {
428
433
  confirmPasswordReset: (token: string, newPassword: string) => Promise<void>;
429
434
  };
430
435
  readonly organization: {
431
- /** GET /auth/tenants — all organization memberships. */
432
- list: () => Promise<Organization[]>;
436
+ /** GET /auth/tenants — filterable list of organization memberships. */
437
+ list: (params?: {
438
+ search?: string;
439
+ } & PaginationOptions) => Promise<Organization[]>;
433
440
  /**
434
441
  * POST /auth/tenants — creates an organization owned by the signed-in
435
442
  * user (only available when self-service organization creation is
@@ -585,6 +592,13 @@ interface AuthyonPermissionSource {
585
592
  /** OAuth scopes are also accepted and interpreted as Authyon permissions. */
586
593
  scope?: string | null;
587
594
  }
595
+ /** A declarative group of permissions evaluated against an Authyon permission source. */
596
+ interface PermissionGroup {
597
+ /** Permissions that must all be granted. */
598
+ allOf?: readonly string[];
599
+ /** Permissions where at least one must be granted. */
600
+ anyOf?: readonly string[];
601
+ }
588
602
  interface AuthyonAbilityOptions {
589
603
  rules?: readonly AbilityRule[];
590
604
  /** Rules added when the source contains a matching Authyon role. */
@@ -618,7 +632,12 @@ declare class AuthyonAbilityBuilder {
618
632
  declare function createAuthyonAbility(source?: AuthyonPermissionSource, options?: AuthyonAbilityOptions): AuthyonAbility;
619
633
  /** Checks an Authyon permission string using the same wildcard rules as an ability. */
620
634
  declare function hasPermission(source: AuthyonPermissionSource | readonly string[], requiredPermission: string): boolean;
635
+ /**
636
+ * Checks a permission group using Authyon's standard permission and wildcard rules.
637
+ * Empty or omitted groups do not add authorization requirements.
638
+ */
639
+ declare function hasPermissionGroup(source: AuthyonPermissionSource | readonly string[], group: PermissionGroup): boolean;
621
640
  /** Converts Authyon's `subject:action` permission strings to authorization rules. */
622
641
  declare function createAuthyonRules(source?: AuthyonPermissionSource, options?: AuthyonAbilityOptions): AbilityRule[];
623
642
 
624
- export { createAuthyonRules as $, AuthyonClient as A, type SessionControllerOptions as B, type CreateOrganizationInput as C, type SessionInfo as D, type SessionSnapshot as E, FetchHttpAdapter as F, type SessionSnapshotListener as G, type HttpAdapter as H, type IntrospectResult as I, type SessionStatus as J, type SsoProvider as K, LoggingHttpAdapter as L, type TwoFactorChallenge as M, type TwoFactorMethod as N, type Organization as O, type Paged as P, type TwoFactorStatus as Q, type RegisterInput as R, type Session as S, type TokenStorage as T, type User as U, type ValidateResult as V, type VerifyTwoFactorInput as W, type WebAuthnAssertion as X, type WebAuthnCeremonyStart as Y, type WebAuthnCredential as Z, createAuthyonAbility as _, type HttpLoggerOptions as a, createClient as a0, hasPermission as a1, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type Activity as g, type AuthEvent as h, type AuthState as i, type AuthStateListener as j, type AuthenticatorSetup as k, AuthyonAbility as l, AuthyonAbilityBuilder as m, type AuthyonAbilityOptions as n, type AuthyonClientOptions as o, type AuthyonPermissionSource as p, AuthyonSessionController as q, type HttpAdapterRequest as r, type HttpLogEvent as s, type HttpLogger as t, type InviteMemberInput as u, type LoginInput as v, type LoginResult as w, type OrganizationMember as x, type PaginationOptions as y, type Role as z };
643
+ export { createAuthyonAbility as $, AuthyonClient as A, type Role as B, type CreateOrganizationInput as C, type SessionControllerOptions as D, type SessionInfo as E, FetchHttpAdapter as F, type SessionSnapshot as G, type HttpAdapter as H, type IntrospectResult as I, type SessionSnapshotListener as J, type SessionStatus as K, LoggingHttpAdapter as L, type SsoProvider as M, type TwoFactorChallenge as N, type Organization as O, type Paged as P, type TwoFactorMethod as Q, type RegisterInput as R, type Session as S, type TokenStorage as T, type TwoFactorStatus as U, type User as V, type ValidateResult as W, type VerifyTwoFactorInput as X, type WebAuthnAssertion as Y, type WebAuthnCeremonyStart as Z, type WebAuthnCredential as _, type HttpLoggerOptions as a, createAuthyonRules as a0, createClient as a1, hasPermission as a2, hasPermissionGroup as a3, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type Activity as g, type AuthEvent as h, type AuthState as i, type AuthStateListener as j, type AuthenticatorSetup as k, AuthyonAbility as l, AuthyonAbilityBuilder as m, type AuthyonAbilityOptions as n, type AuthyonClientOptions as o, type AuthyonPermissionSource as p, AuthyonSessionController as q, type HttpAdapterRequest as r, type HttpLogEvent as s, type HttpLogger as t, type InviteMemberInput as u, type LoginInput as v, type LoginResult as w, type OrganizationMember as x, type PaginationOptions as y, type PermissionGroup as z };
@@ -201,6 +201,11 @@ function hasPermission(source, requiredPermission) {
201
201
  const permissionSource = isPermissionList(source) ? { permissions: source } : source;
202
202
  return createAuthyonAbility(permissionSource).can(requirement.action, requirement.subject);
203
203
  }
204
+ function hasPermissionGroup(source, group) {
205
+ const hasAll = (group.allOf ?? []).every((permission) => hasPermission(source, permission));
206
+ const hasAny = !group.anyOf?.length || group.anyOf.some((permission) => hasPermission(source, permission));
207
+ return hasAll && hasAny;
208
+ }
204
209
  function isPermissionList(source) {
205
210
  return Array.isArray(source);
206
211
  }
@@ -319,5 +324,6 @@ export {
319
324
  AuthyonAbilityBuilder,
320
325
  createAuthyonAbility,
321
326
  hasPermission,
327
+ hasPermissionGroup,
322
328
  createAuthyonRules
323
329
  };
package/dist/index.cjs CHANGED
@@ -35,7 +35,8 @@ __export(index_exports, {
35
35
  createDefaultStorage: () => createDefaultStorage,
36
36
  createLocalStorage: () => createLocalStorage,
37
37
  createMemoryStorage: () => createMemoryStorage,
38
- hasPermission: () => hasPermission
38
+ hasPermission: () => hasPermission,
39
+ hasPermissionGroup: () => hasPermissionGroup
39
40
  });
40
41
  module.exports = __toCommonJS(index_exports);
41
42
 
@@ -512,8 +513,8 @@ var AuthyonClient = class {
512
513
  };
513
514
  // ── Organization ─────────────────────────────────────────────────────────
514
515
  this.organization = {
515
- /** GET /auth/tenants — all organization memberships. */
516
- list: () => this.request("/auth/tenants", { bearer: true }),
516
+ /** GET /auth/tenants — filterable list of organization memberships. */
517
+ list: (params = {}) => this.request(appendQuery("/auth/tenants", params), { bearer: true }),
517
518
  /**
518
519
  * POST /auth/tenants — creates an organization owned by the signed-in
519
520
  * user (only available when self-service organization creation is
@@ -1142,6 +1143,11 @@ function hasPermission(source, requiredPermission) {
1142
1143
  const permissionSource = isPermissionList(source) ? { permissions: source } : source;
1143
1144
  return createAuthyonAbility(permissionSource).can(requirement.action, requirement.subject);
1144
1145
  }
1146
+ function hasPermissionGroup(source, group) {
1147
+ const hasAll = (group.allOf ?? []).every((permission) => hasPermission(source, permission));
1148
+ const hasAny = !group.anyOf?.length || group.anyOf.some((permission) => hasPermission(source, permission));
1149
+ return hasAll && hasAny;
1150
+ }
1145
1151
  function isPermissionList(source) {
1146
1152
  return Array.isArray(source);
1147
1153
  }
@@ -1270,5 +1276,6 @@ function isAbilityRule(value) {
1270
1276
  createDefaultStorage,
1271
1277
  createLocalStorage,
1272
1278
  createMemoryStorage,
1273
- hasPermission
1279
+ hasPermission,
1280
+ hasPermissionGroup
1274
1281
  });
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TokenStorage, H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonClient } from './ability-CypQZBLW.cjs';
2
- export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as Activity, h as AuthEvent, i as AuthState, j as AuthStateListener, k as AuthenticatorSetup, l as AuthyonAbility, m as AuthyonAbilityBuilder, n as AuthyonAbilityOptions, o as AuthyonClientOptions, p as AuthyonPermissionSource, q as AuthyonSessionController, C as CreateOrganizationInput, F as FetchHttpAdapter, r as HttpAdapterRequest, s as HttpLogEvent, t as HttpLogger, I as IntrospectResult, u as InviteMemberInput, L as LoggingHttpAdapter, v as LoginInput, w as LoginResult, O as Organization, x as OrganizationMember, P as Paged, y as PaginationOptions, R as RegisterInput, z as Role, S as Session, B as SessionControllerOptions, D as SessionInfo, E as SessionSnapshot, G as SessionSnapshotListener, J as SessionStatus, K as SsoProvider, M as TwoFactorChallenge, N as TwoFactorMethod, Q as TwoFactorStatus, U as User, V as ValidateResult, W as VerifyTwoFactorInput, X as WebAuthnAssertion, Y as WebAuthnCeremonyStart, Z as WebAuthnCredential, _ as createAuthyonAbility, $ as createAuthyonRules, a0 as createClient, a1 as hasPermission } from './ability-CypQZBLW.cjs';
1
+ import { T as TokenStorage, H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonClient } from './ability-DhtyQ5wv.cjs';
2
+ export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as Activity, h as AuthEvent, i as AuthState, j as AuthStateListener, k as AuthenticatorSetup, l as AuthyonAbility, m as AuthyonAbilityBuilder, n as AuthyonAbilityOptions, o as AuthyonClientOptions, p as AuthyonPermissionSource, q as AuthyonSessionController, C as CreateOrganizationInput, F as FetchHttpAdapter, r as HttpAdapterRequest, s as HttpLogEvent, t as HttpLogger, I as IntrospectResult, u as InviteMemberInput, L as LoggingHttpAdapter, v as LoginInput, w as LoginResult, O as Organization, x as OrganizationMember, P as Paged, y as PaginationOptions, z as PermissionGroup, R as RegisterInput, B as Role, S as Session, D as SessionControllerOptions, E as SessionInfo, G as SessionSnapshot, J as SessionSnapshotListener, K as SessionStatus, M as SsoProvider, N as TwoFactorChallenge, Q as TwoFactorMethod, U as TwoFactorStatus, V as User, W as ValidateResult, X as VerifyTwoFactorInput, Y as WebAuthnAssertion, Z as WebAuthnCeremonyStart, _ as WebAuthnCredential, $ as createAuthyonAbility, a0 as createAuthyonRules, a1 as createClient, a2 as hasPermission, a3 as hasPermissionGroup } from './ability-DhtyQ5wv.cjs';
3
3
 
4
4
  /** Builds an Authyon browser client through explicit, progressive configuration. */
5
5
  declare class AuthyonClientBuilder {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TokenStorage, H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonClient } from './ability-CypQZBLW.js';
2
- export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as Activity, h as AuthEvent, i as AuthState, j as AuthStateListener, k as AuthenticatorSetup, l as AuthyonAbility, m as AuthyonAbilityBuilder, n as AuthyonAbilityOptions, o as AuthyonClientOptions, p as AuthyonPermissionSource, q as AuthyonSessionController, C as CreateOrganizationInput, F as FetchHttpAdapter, r as HttpAdapterRequest, s as HttpLogEvent, t as HttpLogger, I as IntrospectResult, u as InviteMemberInput, L as LoggingHttpAdapter, v as LoginInput, w as LoginResult, O as Organization, x as OrganizationMember, P as Paged, y as PaginationOptions, R as RegisterInput, z as Role, S as Session, B as SessionControllerOptions, D as SessionInfo, E as SessionSnapshot, G as SessionSnapshotListener, J as SessionStatus, K as SsoProvider, M as TwoFactorChallenge, N as TwoFactorMethod, Q as TwoFactorStatus, U as User, V as ValidateResult, W as VerifyTwoFactorInput, X as WebAuthnAssertion, Y as WebAuthnCeremonyStart, Z as WebAuthnCredential, _ as createAuthyonAbility, $ as createAuthyonRules, a0 as createClient, a1 as hasPermission } from './ability-CypQZBLW.js';
1
+ import { T as TokenStorage, H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonClient } from './ability-DhtyQ5wv.js';
2
+ export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as Activity, h as AuthEvent, i as AuthState, j as AuthStateListener, k as AuthenticatorSetup, l as AuthyonAbility, m as AuthyonAbilityBuilder, n as AuthyonAbilityOptions, o as AuthyonClientOptions, p as AuthyonPermissionSource, q as AuthyonSessionController, C as CreateOrganizationInput, F as FetchHttpAdapter, r as HttpAdapterRequest, s as HttpLogEvent, t as HttpLogger, I as IntrospectResult, u as InviteMemberInput, L as LoggingHttpAdapter, v as LoginInput, w as LoginResult, O as Organization, x as OrganizationMember, P as Paged, y as PaginationOptions, z as PermissionGroup, R as RegisterInput, B as Role, S as Session, D as SessionControllerOptions, E as SessionInfo, G as SessionSnapshot, J as SessionSnapshotListener, K as SessionStatus, M as SsoProvider, N as TwoFactorChallenge, Q as TwoFactorMethod, U as TwoFactorStatus, V as User, W as ValidateResult, X as VerifyTwoFactorInput, Y as WebAuthnAssertion, Z as WebAuthnCeremonyStart, _ as WebAuthnCredential, $ as createAuthyonAbility, a0 as createAuthyonRules, a1 as createClient, a2 as hasPermission, a3 as hasPermissionGroup } from './ability-DhtyQ5wv.js';
3
3
 
4
4
  /** Builds an Authyon browser client through explicit, progressive configuration. */
5
5
  declare class AuthyonClientBuilder {
package/dist/index.js CHANGED
@@ -4,8 +4,9 @@ import {
4
4
  AuthyonSessionController,
5
5
  createAuthyonAbility,
6
6
  createAuthyonRules,
7
- hasPermission
8
- } from "./chunk-EHZEUM47.js";
7
+ hasPermission,
8
+ hasPermissionGroup
9
+ } from "./chunk-3XJY6BCI.js";
9
10
 
10
11
  // ../../internal/core/errors/authyonError.ts
11
12
  var ErrorCodes = {
@@ -480,8 +481,8 @@ var AuthyonClient = class {
480
481
  };
481
482
  // ── Organization ─────────────────────────────────────────────────────────
482
483
  this.organization = {
483
- /** GET /auth/tenants — all organization memberships. */
484
- list: () => this.request("/auth/tenants", { bearer: true }),
484
+ /** GET /auth/tenants — filterable list of organization memberships. */
485
+ list: (params = {}) => this.request(appendQuery("/auth/tenants", params), { bearer: true }),
485
486
  /**
486
487
  * POST /auth/tenants — creates an organization owned by the signed-in
487
488
  * user (only available when self-service organization creation is
@@ -922,5 +923,6 @@ export {
922
923
  createDefaultStorage,
923
924
  createLocalStorage,
924
925
  createMemoryStorage,
925
- hasPermission
926
+ hasPermission,
927
+ hasPermissionGroup
926
928
  };
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { U as User, B as SessionControllerOptions, A as AuthyonClient, E as SessionSnapshot, S as Session, f as AbilitySubject, n as AuthyonAbilityOptions, l as AuthyonAbility } from '../ability-CypQZBLW.cjs';
4
- export { q as AuthyonSessionController, G as SessionSnapshotListener, J as SessionStatus } from '../ability-CypQZBLW.cjs';
3
+ import { V as User, D as SessionControllerOptions, A as AuthyonClient, G as SessionSnapshot, S as Session, f as AbilitySubject, n as AuthyonAbilityOptions, l as AuthyonAbility } from '../ability-DhtyQ5wv.cjs';
4
+ export { q as AuthyonSessionController, J as SessionSnapshotListener, K as SessionStatus } from '../ability-DhtyQ5wv.cjs';
5
5
 
6
6
  interface AuthyonProviderProps<TUser extends User = User> extends SessionControllerOptions {
7
7
  client: AuthyonClient;
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { U as User, B as SessionControllerOptions, A as AuthyonClient, E as SessionSnapshot, S as Session, f as AbilitySubject, n as AuthyonAbilityOptions, l as AuthyonAbility } from '../ability-CypQZBLW.js';
4
- export { q as AuthyonSessionController, G as SessionSnapshotListener, J as SessionStatus } from '../ability-CypQZBLW.js';
3
+ import { V as User, D as SessionControllerOptions, A as AuthyonClient, G as SessionSnapshot, S as Session, f as AbilitySubject, n as AuthyonAbilityOptions, l as AuthyonAbility } from '../ability-DhtyQ5wv.js';
4
+ export { q as AuthyonSessionController, J as SessionSnapshotListener, K as SessionStatus } from '../ability-DhtyQ5wv.js';
5
5
 
6
6
  interface AuthyonProviderProps<TUser extends User = User> extends SessionControllerOptions {
7
7
  client: AuthyonClient;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AuthyonSessionController,
4
4
  createAuthyonAbility
5
- } from "../chunk-EHZEUM47.js";
5
+ } from "../chunk-3XJY6BCI.js";
6
6
 
7
7
  // src/react/index.tsx
8
8
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authyon/auth",
3
- "version": "0.2.0-beta.6",
3
+ "version": "0.2.0-beta.9",
4
4
  "description": "Authyon SDK for browsers — auth, sessions, multi-tenant and 2FA for vanilla JS/TS.",
5
5
  "license": "MIT",
6
6
  "type": "module",