@authyon/auth 0.2.0-beta.27 → 0.2.0-beta.29

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.
@@ -164,6 +164,15 @@ interface PaginationOptions {
164
164
  skip?: number;
165
165
  take?: number;
166
166
  }
167
+ /**
168
+ * Options for a member listing. Always newest member first.
169
+ * `search` keeps members whose email, username or name ("first last")
170
+ * contains it, case-insensitively; `%` and `_` count as text. At most 100
171
+ * characters; blank lists everyone.
172
+ */
173
+ interface MemberListOptions extends PaginationOptions {
174
+ search?: string;
175
+ }
167
176
  /**
168
177
  * The envelope every paged endpoint answers with.
169
178
  *
@@ -246,6 +255,9 @@ interface OrganizationMember {
246
255
  userId: string;
247
256
  email?: string;
248
257
  username?: string;
258
+ /** Null when the person never gave one. Absent from an API older than 2026-11-25. */
259
+ firstName?: string | null;
260
+ lastName?: string | null;
249
261
  roles?: string[];
250
262
  createdAt?: string;
251
263
  lastLoginAt?: string | null;
@@ -770,11 +782,12 @@ declare class AuthyonClient {
770
782
  members: {
771
783
  /**
772
784
  * GET /auth/tenants/{organizationId}/members — paginated list of an
773
- * organization's members. Consistent with the confirmed-live
774
- * `Paged<T>` envelope every other `skip`/`take` endpoint returns
775
- * (`user.activities()`, `@authyon/server`'s `environment.users.list()`).
785
+ * organization's members, newest first, in the `Paged<T>` envelope every
786
+ * other `skip`/`take` endpoint returns. `search` matches email, username
787
+ * or name; at most 100 characters, and `take` 1-100, checked before any
788
+ * request.
776
789
  */
777
- list: (organizationId: string, params?: PaginationOptions) => Promise<Paged<OrganizationMember>>;
790
+ list: (organizationId: string, params?: MemberListOptions) => Promise<Paged<OrganizationMember>>;
778
791
  /**
779
792
  * POST /auth/tenants/{organizationId}/members — add an existing
780
793
  * environment user by e-mail (no e-mail is sent). To invite an address
@@ -1018,4 +1031,4 @@ declare function hasPermissionGroup(source: AuthyonPermissionSource | readonly s
1018
1031
  /** Converts Authyon's `subject:action` permission strings to authorization rules. */
1019
1032
  declare function createAuthyonRules(source?: AuthyonPermissionSource, options?: AuthyonAbilityOptions): AbilityRule[];
1020
1033
 
1021
- export { type SecurityMethods as $, AuthyonClient as A, type HttpLogger as B, type ConfirmApprovalInput as C, type InviteMemberInput as D, type LoginInput as E, FetchHttpAdapter as F, type LoginResult as G, type HttpAdapter as H, type IntrospectResult as I, type OrganizationInvite as J, type OrganizationInviteAccepted as K, LoggingHttpAdapter as L, type OrganizationInviteInput as M, type OrganizationInviteIssued as N, type Organization as O, type OrganizationInvitePreview as P, type OrganizationInviteStatus as Q, type OrganizationMember as R, type Paged as S, type TokenStorage as T, type PaginationOptions as U, type PasswordResetCompleted as V, type PasswordResetPreview as W, type PasswordResetRequestOptions as X, type PermissionGroup as Y, type RegisterInput as Z, type Role as _, type HttpLoggerOptions as a, type Session as a0, type SessionControllerOptions as a1, type SessionInfo as a2, type SessionSnapshot as a3, type SessionSnapshotListener as a4, type SessionStatus as a5, type SsoProvider as a6, type SubjectApprovals as a7, type SubjectSecurity as a8, type TwoFactorChallenge as a9, type TwoFactorMethod as aa, type TwoFactorStatus as ab, type User as ac, type ValidateResult as ad, type VerifyTwoFactorInput as ae, type WebAuthnAssertion as af, type WebAuthnCeremonyStart as ag, type WebAuthnCredential as ah, createAuthyonAbility as ai, createAuthyonRules as aj, createClient as ak, hasPermission as al, hasPermissionGroup as am, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type AcceptOrganizationInviteInput as g, type Activity as h, type Approval as i, type ApprovalAssurance as j, type ApprovalPayload as k, type ApprovalStatus as l, type ApprovalWebAuthnOptions as m, type AuthEvent as n, type AuthState as o, type AuthStateListener as p, type AuthenticatorSetup as q, AuthyonAbility as r, AuthyonAbilityBuilder as s, type AuthyonAbilityOptions as t, type AuthyonClientOptions as u, type AuthyonPermissionSource as v, AuthyonSessionController as w, type CreateOrganizationInput as x, type HttpAdapterRequest as y, type HttpLogEvent as z };
1034
+ export { type Role as $, AuthyonClient as A, type HttpLogger as B, type ConfirmApprovalInput as C, type InviteMemberInput as D, type LoginInput as E, FetchHttpAdapter as F, type LoginResult as G, type HttpAdapter as H, type IntrospectResult as I, type OrganizationInvite as J, type OrganizationInviteAccepted as K, LoggingHttpAdapter as L, type MemberListOptions as M, type OrganizationInviteInput as N, type Organization as O, type OrganizationInviteIssued as P, type OrganizationInvitePreview as Q, type OrganizationInviteStatus as R, type OrganizationMember as S, type TokenStorage as T, type Paged as U, type PaginationOptions as V, type PasswordResetCompleted as W, type PasswordResetPreview as X, type PasswordResetRequestOptions as Y, type PermissionGroup as Z, type RegisterInput as _, type HttpLoggerOptions as a, type SecurityMethods as a0, type Session as a1, type SessionControllerOptions as a2, type SessionInfo as a3, type SessionSnapshot as a4, type SessionSnapshotListener as a5, type SessionStatus as a6, type SsoProvider as a7, type SubjectApprovals as a8, type SubjectSecurity as a9, type TwoFactorChallenge as aa, type TwoFactorMethod as ab, type TwoFactorStatus as ac, type User as ad, type ValidateResult as ae, type VerifyTwoFactorInput as af, type WebAuthnAssertion as ag, type WebAuthnCeremonyStart as ah, type WebAuthnCredential as ai, createAuthyonAbility as aj, createAuthyonRules as ak, createClient as al, hasPermission as am, hasPermissionGroup as an, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type AcceptOrganizationInviteInput as g, type Activity as h, type Approval as i, type ApprovalAssurance as j, type ApprovalPayload as k, type ApprovalStatus as l, type ApprovalWebAuthnOptions as m, type AuthEvent as n, type AuthState as o, type AuthStateListener as p, type AuthenticatorSetup as q, AuthyonAbility as r, AuthyonAbilityBuilder as s, type AuthyonAbilityOptions as t, type AuthyonClientOptions as u, type AuthyonPermissionSource as v, AuthyonSessionController as w, type CreateOrganizationInput as x, type HttpAdapterRequest as y, type HttpLogEvent as z };
@@ -164,6 +164,15 @@ interface PaginationOptions {
164
164
  skip?: number;
165
165
  take?: number;
166
166
  }
167
+ /**
168
+ * Options for a member listing. Always newest member first.
169
+ * `search` keeps members whose email, username or name ("first last")
170
+ * contains it, case-insensitively; `%` and `_` count as text. At most 100
171
+ * characters; blank lists everyone.
172
+ */
173
+ interface MemberListOptions extends PaginationOptions {
174
+ search?: string;
175
+ }
167
176
  /**
168
177
  * The envelope every paged endpoint answers with.
169
178
  *
@@ -246,6 +255,9 @@ interface OrganizationMember {
246
255
  userId: string;
247
256
  email?: string;
248
257
  username?: string;
258
+ /** Null when the person never gave one. Absent from an API older than 2026-11-25. */
259
+ firstName?: string | null;
260
+ lastName?: string | null;
249
261
  roles?: string[];
250
262
  createdAt?: string;
251
263
  lastLoginAt?: string | null;
@@ -770,11 +782,12 @@ declare class AuthyonClient {
770
782
  members: {
771
783
  /**
772
784
  * GET /auth/tenants/{organizationId}/members — paginated list of an
773
- * organization's members. Consistent with the confirmed-live
774
- * `Paged<T>` envelope every other `skip`/`take` endpoint returns
775
- * (`user.activities()`, `@authyon/server`'s `environment.users.list()`).
785
+ * organization's members, newest first, in the `Paged<T>` envelope every
786
+ * other `skip`/`take` endpoint returns. `search` matches email, username
787
+ * or name; at most 100 characters, and `take` 1-100, checked before any
788
+ * request.
776
789
  */
777
- list: (organizationId: string, params?: PaginationOptions) => Promise<Paged<OrganizationMember>>;
790
+ list: (organizationId: string, params?: MemberListOptions) => Promise<Paged<OrganizationMember>>;
778
791
  /**
779
792
  * POST /auth/tenants/{organizationId}/members — add an existing
780
793
  * environment user by e-mail (no e-mail is sent). To invite an address
@@ -1018,4 +1031,4 @@ declare function hasPermissionGroup(source: AuthyonPermissionSource | readonly s
1018
1031
  /** Converts Authyon's `subject:action` permission strings to authorization rules. */
1019
1032
  declare function createAuthyonRules(source?: AuthyonPermissionSource, options?: AuthyonAbilityOptions): AbilityRule[];
1020
1033
 
1021
- export { type SecurityMethods as $, AuthyonClient as A, type HttpLogger as B, type ConfirmApprovalInput as C, type InviteMemberInput as D, type LoginInput as E, FetchHttpAdapter as F, type LoginResult as G, type HttpAdapter as H, type IntrospectResult as I, type OrganizationInvite as J, type OrganizationInviteAccepted as K, LoggingHttpAdapter as L, type OrganizationInviteInput as M, type OrganizationInviteIssued as N, type Organization as O, type OrganizationInvitePreview as P, type OrganizationInviteStatus as Q, type OrganizationMember as R, type Paged as S, type TokenStorage as T, type PaginationOptions as U, type PasswordResetCompleted as V, type PasswordResetPreview as W, type PasswordResetRequestOptions as X, type PermissionGroup as Y, type RegisterInput as Z, type Role as _, type HttpLoggerOptions as a, type Session as a0, type SessionControllerOptions as a1, type SessionInfo as a2, type SessionSnapshot as a3, type SessionSnapshotListener as a4, type SessionStatus as a5, type SsoProvider as a6, type SubjectApprovals as a7, type SubjectSecurity as a8, type TwoFactorChallenge as a9, type TwoFactorMethod as aa, type TwoFactorStatus as ab, type User as ac, type ValidateResult as ad, type VerifyTwoFactorInput as ae, type WebAuthnAssertion as af, type WebAuthnCeremonyStart as ag, type WebAuthnCredential as ah, createAuthyonAbility as ai, createAuthyonRules as aj, createClient as ak, hasPermission as al, hasPermissionGroup as am, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type AcceptOrganizationInviteInput as g, type Activity as h, type Approval as i, type ApprovalAssurance as j, type ApprovalPayload as k, type ApprovalStatus as l, type ApprovalWebAuthnOptions as m, type AuthEvent as n, type AuthState as o, type AuthStateListener as p, type AuthenticatorSetup as q, AuthyonAbility as r, AuthyonAbilityBuilder as s, type AuthyonAbilityOptions as t, type AuthyonClientOptions as u, type AuthyonPermissionSource as v, AuthyonSessionController as w, type CreateOrganizationInput as x, type HttpAdapterRequest as y, type HttpLogEvent as z };
1034
+ export { type Role as $, AuthyonClient as A, type HttpLogger as B, type ConfirmApprovalInput as C, type InviteMemberInput as D, type LoginInput as E, FetchHttpAdapter as F, type LoginResult as G, type HttpAdapter as H, type IntrospectResult as I, type OrganizationInvite as J, type OrganizationInviteAccepted as K, LoggingHttpAdapter as L, type MemberListOptions as M, type OrganizationInviteInput as N, type Organization as O, type OrganizationInviteIssued as P, type OrganizationInvitePreview as Q, type OrganizationInviteStatus as R, type OrganizationMember as S, type TokenStorage as T, type Paged as U, type PaginationOptions as V, type PasswordResetCompleted as W, type PasswordResetPreview as X, type PasswordResetRequestOptions as Y, type PermissionGroup as Z, type RegisterInput as _, type HttpLoggerOptions as a, type SecurityMethods as a0, type Session as a1, type SessionControllerOptions as a2, type SessionInfo as a3, type SessionSnapshot as a4, type SessionSnapshotListener as a5, type SessionStatus as a6, type SsoProvider as a7, type SubjectApprovals as a8, type SubjectSecurity as a9, type TwoFactorChallenge as aa, type TwoFactorMethod as ab, type TwoFactorStatus as ac, type User as ad, type ValidateResult as ae, type VerifyTwoFactorInput as af, type WebAuthnAssertion as ag, type WebAuthnCeremonyStart as ah, type WebAuthnCredential as ai, createAuthyonAbility as aj, createAuthyonRules as ak, createClient as al, hasPermission as am, hasPermissionGroup as an, type AbilityConditions as b, type AbilityEvent as c, type AbilityListener as d, type AbilityRule as e, type AbilitySubject as f, type AcceptOrganizationInviteInput as g, type Activity as h, type Approval as i, type ApprovalAssurance as j, type ApprovalPayload as k, type ApprovalStatus as l, type ApprovalWebAuthnOptions as m, type AuthEvent as n, type AuthState as o, type AuthStateListener as p, type AuthenticatorSetup as q, AuthyonAbility as r, AuthyonAbilityBuilder as s, type AuthyonAbilityOptions as t, type AuthyonClientOptions as u, type AuthyonPermissionSource as v, AuthyonSessionController as w, type CreateOrganizationInput as x, type HttpAdapterRequest as y, type HttpLogEvent as z };
package/dist/index.cjs CHANGED
@@ -499,6 +499,18 @@ function invalidClientIp() {
499
499
  return new Error("Authyon: `clientIp` must be a single valid IPv4 or IPv6 address");
500
500
  }
501
501
 
502
+ // ../../internal/core/http/memberQuery.ts
503
+ function memberQuery(options = {}) {
504
+ const { skip, take, search } = options;
505
+ if (skip !== void 0 && (!Number.isInteger(skip) || skip < 0 || skip > 2147483647))
506
+ throw new RangeError("Authyon: invalid skip.");
507
+ if (take !== void 0 && (!Number.isInteger(take) || take < 1 || take > 100))
508
+ throw new RangeError("Authyon: take must be between 1 and 100.");
509
+ if (search !== void 0 && (typeof search !== "string" || search.trim().length > 100))
510
+ throw new RangeError("Authyon: search must contain at most 100 characters.");
511
+ return { search: search?.trim() || void 0, skip, take };
512
+ }
513
+
502
514
  // src/client/authyonClient.ts
503
515
  var FALLBACK_EXPIRES_IN = 1800;
504
516
  function readTokens(raw) {
@@ -672,12 +684,16 @@ var AuthyonClient = class {
672
684
  members: {
673
685
  /**
674
686
  * GET /auth/tenants/{organizationId}/members — paginated list of an
675
- * organization's members. Consistent with the confirmed-live
676
- * `Paged<T>` envelope every other `skip`/`take` endpoint returns
677
- * (`user.activities()`, `@authyon/server`'s `environment.users.list()`).
687
+ * organization's members, newest first, in the `Paged<T>` envelope every
688
+ * other `skip`/`take` endpoint returns. `search` matches email, username
689
+ * or name; at most 100 characters, and `take` 1-100, checked before any
690
+ * request.
678
691
  */
679
692
  list: (organizationId, params = {}) => this.request(
680
- appendQuery(`/auth/tenants/${encodeURIComponent(organizationId)}/members`, params),
693
+ appendQuery(
694
+ `/auth/tenants/${encodeURIComponent(organizationId)}/members`,
695
+ memberQuery(params)
696
+ ),
681
697
  { bearer: true }
682
698
  ),
683
699
  /**
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-BE38_bgr.cjs';
2
- export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as AcceptOrganizationInviteInput, h as Activity, i as Approval, j as ApprovalAssurance, k as ApprovalPayload, l as ApprovalStatus, m as ApprovalWebAuthnOptions, n as AuthEvent, o as AuthState, p as AuthStateListener, q as AuthenticatorSetup, r as AuthyonAbility, s as AuthyonAbilityBuilder, t as AuthyonAbilityOptions, u as AuthyonClientOptions, v as AuthyonPermissionSource, w as AuthyonSessionController, C as ConfirmApprovalInput, x as CreateOrganizationInput, F as FetchHttpAdapter, y as HttpAdapterRequest, z as HttpLogEvent, B as HttpLogger, I as IntrospectResult, D as InviteMemberInput, L as LoggingHttpAdapter, E as LoginInput, G as LoginResult, O as Organization, J as OrganizationInvite, K as OrganizationInviteAccepted, M as OrganizationInviteInput, N as OrganizationInviteIssued, P as OrganizationInvitePreview, Q as OrganizationInviteStatus, R as OrganizationMember, S as Paged, U as PaginationOptions, V as PasswordResetCompleted, W as PasswordResetPreview, X as PasswordResetRequestOptions, Y as PermissionGroup, Z as RegisterInput, _ as Role, $ as SecurityMethods, a0 as Session, a1 as SessionControllerOptions, a2 as SessionInfo, a3 as SessionSnapshot, a4 as SessionSnapshotListener, a5 as SessionStatus, a6 as SsoProvider, a7 as SubjectApprovals, a8 as SubjectSecurity, a9 as TwoFactorChallenge, aa as TwoFactorMethod, ab as TwoFactorStatus, ac as User, ad as ValidateResult, ae as VerifyTwoFactorInput, af as WebAuthnAssertion, ag as WebAuthnCeremonyStart, ah as WebAuthnCredential, ai as createAuthyonAbility, aj as createAuthyonRules, ak as createClient, al as hasPermission, am as hasPermissionGroup } from './ability-BE38_bgr.cjs';
1
+ import { T as TokenStorage, H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonClient } from './ability-D47fzavh.cjs';
2
+ export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as AcceptOrganizationInviteInput, h as Activity, i as Approval, j as ApprovalAssurance, k as ApprovalPayload, l as ApprovalStatus, m as ApprovalWebAuthnOptions, n as AuthEvent, o as AuthState, p as AuthStateListener, q as AuthenticatorSetup, r as AuthyonAbility, s as AuthyonAbilityBuilder, t as AuthyonAbilityOptions, u as AuthyonClientOptions, v as AuthyonPermissionSource, w as AuthyonSessionController, C as ConfirmApprovalInput, x as CreateOrganizationInput, F as FetchHttpAdapter, y as HttpAdapterRequest, z as HttpLogEvent, B as HttpLogger, I as IntrospectResult, D as InviteMemberInput, L as LoggingHttpAdapter, E as LoginInput, G as LoginResult, M as MemberListOptions, O as Organization, J as OrganizationInvite, K as OrganizationInviteAccepted, N as OrganizationInviteInput, P as OrganizationInviteIssued, Q as OrganizationInvitePreview, R as OrganizationInviteStatus, S as OrganizationMember, U as Paged, V as PaginationOptions, W as PasswordResetCompleted, X as PasswordResetPreview, Y as PasswordResetRequestOptions, Z as PermissionGroup, _ as RegisterInput, $ as Role, a0 as SecurityMethods, a1 as Session, a2 as SessionControllerOptions, a3 as SessionInfo, a4 as SessionSnapshot, a5 as SessionSnapshotListener, a6 as SessionStatus, a7 as SsoProvider, a8 as SubjectApprovals, a9 as SubjectSecurity, aa as TwoFactorChallenge, ab as TwoFactorMethod, ac as TwoFactorStatus, ad as User, ae as ValidateResult, af as VerifyTwoFactorInput, ag as WebAuthnAssertion, ah as WebAuthnCeremonyStart, ai as WebAuthnCredential, aj as createAuthyonAbility, ak as createAuthyonRules, al as createClient, am as hasPermission, an as hasPermissionGroup } from './ability-D47fzavh.cjs';
3
3
 
4
4
  declare const ErrorCodes: {
5
5
  readonly Unknown: "unknown";
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-BE38_bgr.js';
2
- export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as AcceptOrganizationInviteInput, h as Activity, i as Approval, j as ApprovalAssurance, k as ApprovalPayload, l as ApprovalStatus, m as ApprovalWebAuthnOptions, n as AuthEvent, o as AuthState, p as AuthStateListener, q as AuthenticatorSetup, r as AuthyonAbility, s as AuthyonAbilityBuilder, t as AuthyonAbilityOptions, u as AuthyonClientOptions, v as AuthyonPermissionSource, w as AuthyonSessionController, C as ConfirmApprovalInput, x as CreateOrganizationInput, F as FetchHttpAdapter, y as HttpAdapterRequest, z as HttpLogEvent, B as HttpLogger, I as IntrospectResult, D as InviteMemberInput, L as LoggingHttpAdapter, E as LoginInput, G as LoginResult, O as Organization, J as OrganizationInvite, K as OrganizationInviteAccepted, M as OrganizationInviteInput, N as OrganizationInviteIssued, P as OrganizationInvitePreview, Q as OrganizationInviteStatus, R as OrganizationMember, S as Paged, U as PaginationOptions, V as PasswordResetCompleted, W as PasswordResetPreview, X as PasswordResetRequestOptions, Y as PermissionGroup, Z as RegisterInput, _ as Role, $ as SecurityMethods, a0 as Session, a1 as SessionControllerOptions, a2 as SessionInfo, a3 as SessionSnapshot, a4 as SessionSnapshotListener, a5 as SessionStatus, a6 as SsoProvider, a7 as SubjectApprovals, a8 as SubjectSecurity, a9 as TwoFactorChallenge, aa as TwoFactorMethod, ab as TwoFactorStatus, ac as User, ad as ValidateResult, ae as VerifyTwoFactorInput, af as WebAuthnAssertion, ag as WebAuthnCeremonyStart, ah as WebAuthnCredential, ai as createAuthyonAbility, aj as createAuthyonRules, ak as createClient, al as hasPermission, am as hasPermissionGroup } from './ability-BE38_bgr.js';
1
+ import { T as TokenStorage, H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonClient } from './ability-D47fzavh.js';
2
+ export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRule, f as AbilitySubject, g as AcceptOrganizationInviteInput, h as Activity, i as Approval, j as ApprovalAssurance, k as ApprovalPayload, l as ApprovalStatus, m as ApprovalWebAuthnOptions, n as AuthEvent, o as AuthState, p as AuthStateListener, q as AuthenticatorSetup, r as AuthyonAbility, s as AuthyonAbilityBuilder, t as AuthyonAbilityOptions, u as AuthyonClientOptions, v as AuthyonPermissionSource, w as AuthyonSessionController, C as ConfirmApprovalInput, x as CreateOrganizationInput, F as FetchHttpAdapter, y as HttpAdapterRequest, z as HttpLogEvent, B as HttpLogger, I as IntrospectResult, D as InviteMemberInput, L as LoggingHttpAdapter, E as LoginInput, G as LoginResult, M as MemberListOptions, O as Organization, J as OrganizationInvite, K as OrganizationInviteAccepted, N as OrganizationInviteInput, P as OrganizationInviteIssued, Q as OrganizationInvitePreview, R as OrganizationInviteStatus, S as OrganizationMember, U as Paged, V as PaginationOptions, W as PasswordResetCompleted, X as PasswordResetPreview, Y as PasswordResetRequestOptions, Z as PermissionGroup, _ as RegisterInput, $ as Role, a0 as SecurityMethods, a1 as Session, a2 as SessionControllerOptions, a3 as SessionInfo, a4 as SessionSnapshot, a5 as SessionSnapshotListener, a6 as SessionStatus, a7 as SsoProvider, a8 as SubjectApprovals, a9 as SubjectSecurity, aa as TwoFactorChallenge, ab as TwoFactorMethod, ac as TwoFactorStatus, ad as User, ae as ValidateResult, af as VerifyTwoFactorInput, ag as WebAuthnAssertion, ah as WebAuthnCeremonyStart, ai as WebAuthnCredential, aj as createAuthyonAbility, ak as createAuthyonRules, al as createClient, am as hasPermission, an as hasPermissionGroup } from './ability-D47fzavh.js';
3
3
 
4
4
  declare const ErrorCodes: {
5
5
  readonly Unknown: "unknown";
package/dist/index.js CHANGED
@@ -465,6 +465,18 @@ function invalidClientIp() {
465
465
  return new Error("Authyon: `clientIp` must be a single valid IPv4 or IPv6 address");
466
466
  }
467
467
 
468
+ // ../../internal/core/http/memberQuery.ts
469
+ function memberQuery(options = {}) {
470
+ const { skip, take, search } = options;
471
+ if (skip !== void 0 && (!Number.isInteger(skip) || skip < 0 || skip > 2147483647))
472
+ throw new RangeError("Authyon: invalid skip.");
473
+ if (take !== void 0 && (!Number.isInteger(take) || take < 1 || take > 100))
474
+ throw new RangeError("Authyon: take must be between 1 and 100.");
475
+ if (search !== void 0 && (typeof search !== "string" || search.trim().length > 100))
476
+ throw new RangeError("Authyon: search must contain at most 100 characters.");
477
+ return { search: search?.trim() || void 0, skip, take };
478
+ }
479
+
468
480
  // src/client/authyonClient.ts
469
481
  var FALLBACK_EXPIRES_IN = 1800;
470
482
  function readTokens(raw) {
@@ -638,12 +650,16 @@ var AuthyonClient = class {
638
650
  members: {
639
651
  /**
640
652
  * GET /auth/tenants/{organizationId}/members — paginated list of an
641
- * organization's members. Consistent with the confirmed-live
642
- * `Paged<T>` envelope every other `skip`/`take` endpoint returns
643
- * (`user.activities()`, `@authyon/server`'s `environment.users.list()`).
653
+ * organization's members, newest first, in the `Paged<T>` envelope every
654
+ * other `skip`/`take` endpoint returns. `search` matches email, username
655
+ * or name; at most 100 characters, and `take` 1-100, checked before any
656
+ * request.
644
657
  */
645
658
  list: (organizationId, params = {}) => this.request(
646
- appendQuery(`/auth/tenants/${encodeURIComponent(organizationId)}/members`, params),
659
+ appendQuery(
660
+ `/auth/tenants/${encodeURIComponent(organizationId)}/members`,
661
+ memberQuery(params)
662
+ ),
647
663
  { bearer: true }
648
664
  ),
649
665
  /**
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { ac as User, a1 as SessionControllerOptions, A as AuthyonClient, a3 as SessionSnapshot, a0 as Session, f as AbilitySubject, t as AuthyonAbilityOptions, r as AuthyonAbility } from '../ability-BE38_bgr.cjs';
4
- export { w as AuthyonSessionController, a4 as SessionSnapshotListener, a5 as SessionStatus } from '../ability-BE38_bgr.cjs';
3
+ import { ad as User, a2 as SessionControllerOptions, A as AuthyonClient, a4 as SessionSnapshot, a1 as Session, f as AbilitySubject, t as AuthyonAbilityOptions, r as AuthyonAbility } from '../ability-D47fzavh.cjs';
4
+ export { w as AuthyonSessionController, a5 as SessionSnapshotListener, a6 as SessionStatus } from '../ability-D47fzavh.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 { ac as User, a1 as SessionControllerOptions, A as AuthyonClient, a3 as SessionSnapshot, a0 as Session, f as AbilitySubject, t as AuthyonAbilityOptions, r as AuthyonAbility } from '../ability-BE38_bgr.js';
4
- export { w as AuthyonSessionController, a4 as SessionSnapshotListener, a5 as SessionStatus } from '../ability-BE38_bgr.js';
3
+ import { ad as User, a2 as SessionControllerOptions, A as AuthyonClient, a4 as SessionSnapshot, a1 as Session, f as AbilitySubject, t as AuthyonAbilityOptions, r as AuthyonAbility } from '../ability-D47fzavh.js';
4
+ export { w as AuthyonSessionController, a5 as SessionSnapshotListener, a6 as SessionStatus } from '../ability-D47fzavh.js';
5
5
 
6
6
  interface AuthyonProviderProps<TUser extends User = User> extends SessionControllerOptions {
7
7
  client: AuthyonClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authyon/auth",
3
- "version": "0.2.0-beta.27",
3
+ "version": "0.2.0-beta.29",
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",