@authyon/server 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.
package/README.md CHANGED
@@ -445,12 +445,16 @@ await user.tenants.members.invite(tenantId, {
445
445
  email: "pessoa@example.com",
446
446
  roles: ["reader"],
447
447
  });
448
- await user.tenants.members.list(tenantId, { skip: 0, take: 25 });
448
+ await user.tenants.members.list(tenantId, { search: "ana", skip: 0, take: 25 });
449
449
  await user.tenants.members.remove(tenantId, userId);
450
450
 
451
451
  // Pelo plano administrativo, a listagem vem no envelope paginado de sempre
452
- // (`data`, `total`, `hasNext`), com `take` 50 por padrão e teto 100.
453
- const { data: membros, total } = await authyon.environment.tenants.members.list(tenantId);
452
+ // (`data`, `total`, `hasNext`), com `take` 50 por padrão e teto 100, do membro
453
+ // mais recente para o mais antigo. `search` procura no e-mail, no username e no
454
+ // nome ("Ana", "Souza" ou "Ana Souza"), até 100 caracteres.
455
+ const { data: membros, total } = await authyon.environment.tenants.members.list(tenantId, {
456
+ search: "souza",
457
+ });
454
458
 
455
459
  // Administração por máquina: adicione uma conta existente por ID.
456
460
  await authyon.environment.tenants.members.add(tenantId, userId, ["reader"]);
@@ -1,4 +1,4 @@
1
- import { J as JwksTokenVerifier, A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.cjs';
1
+ import { J as JwksTokenVerifier, A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.cjs';
2
2
 
3
3
  type AbilitySubject = string | Record<string, unknown>;
4
4
  type AbilityConditions = Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { J as JwksTokenVerifier, A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.js';
1
+ import { J as JwksTokenVerifier, A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.js';
2
2
 
3
3
  type AbilitySubject = string | Record<string, unknown>;
4
4
  type AbilityConditions = Record<string, unknown>;
@@ -137,6 +137,15 @@ interface PaginationOptions {
137
137
  skip?: number;
138
138
  take?: number;
139
139
  }
140
+ /**
141
+ * Options for a member listing. Always newest member first.
142
+ * `search` keeps members whose email, username or name ("first last")
143
+ * contains it, case-insensitively; `%` and `_` count as text. At most 100
144
+ * characters; blank lists everyone.
145
+ */
146
+ interface MemberListOptions extends PaginationOptions {
147
+ search?: string;
148
+ }
140
149
  /**
141
150
  * The envelope every paged endpoint answers with.
142
151
  *
@@ -433,6 +442,21 @@ interface RolePermissions {
433
442
  interface PermissionsByRole {
434
443
  roles: RolePermissions[];
435
444
  orphans: Permission[];
445
+ /**
446
+ * The permissions Authyon itself checks on the end-user organization routes
447
+ * (`tenants:settings:manage`, `tenants:members:invite`,
448
+ * `tenants:members:remove` and `subtenants:tree:*`), listed whether or not
449
+ * a role names them. Absent from an API older than 2026-11-25.
450
+ */
451
+ builtIn?: BuiltInPermission[];
452
+ }
453
+ interface BuiltInPermission {
454
+ value: string;
455
+ /** What the API says the permission unlocks. */
456
+ defaultDescription: string;
457
+ /** The environment's own catalog text, when someone wrote one. */
458
+ description?: string | null;
459
+ catalogId?: string | null;
436
460
  }
437
461
  /** GET /permissions/reserved — confirmed live: wrapped, not a bare string array. */
438
462
  interface ReservedPermissions {
@@ -673,6 +697,9 @@ interface TenantMember {
673
697
  userId: string;
674
698
  email: string;
675
699
  username: string;
700
+ /** Null when the person never gave one. Absent from an API older than 2026-11-25. */
701
+ firstName?: string | null;
702
+ lastName?: string | null;
676
703
  roles: string[];
677
704
  createdAt: string;
678
705
  lastLoginAt: string | null;
@@ -870,7 +897,8 @@ declare class UserScopedClient {
870
897
  readonly security: SubjectSecurity;
871
898
  readonly tenants: {
872
899
  members: {
873
- list: (tenantId: string, options?: PaginationOptions) => Promise<TenantMemberPage>;
900
+ /** Newest first; `search` matches email, username or name (at most 100 characters). */
901
+ list: (tenantId: string, options?: MemberListOptions) => Promise<TenantMemberPage>;
874
902
  /** Adds an existing environment user by email; does not send an invitation email. */
875
903
  invite: (tenantId: string, input: InviteTenantMemberInput) => Promise<TenantMember>;
876
904
  remove: (tenantId: string, userId: string) => Promise<void>;
@@ -1315,13 +1343,15 @@ declare class AuthyonServerClient {
1315
1343
  * tenant.
1316
1344
  *
1317
1345
  * Paged like every other list: the `Paged<T>` envelope carries
1318
- * `total` and `hasNext`, `take` defaults to 50 and is capped at 100.
1346
+ * `total` and `hasNext`, `take` defaults to 50 and is capped at 100,
1347
+ * newest member first. `search` matches email, username or name (at
1348
+ * most 100 characters, checked before any request).
1319
1349
  * Up to the Authyon API of 2026-10-21 this one route answered with a
1320
1350
  * bare array, so a caller had to page until a short page came back;
1321
1351
  * against such an API `data` is undefined and the array is the body
1322
1352
  * itself.
1323
1353
  */
1324
- list: (tenantId: string, params?: PaginationOptions) => Promise<Paged<EnvironmentUser>>;
1354
+ list: (tenantId: string, params?: MemberListOptions) => Promise<Paged<EnvironmentUser>>;
1325
1355
  /** POST /env/tenants/{tenantId}/members — add a member to a tenant. */
1326
1356
  add: (tenantId: string, userId: string, roles?: string[]) => Promise<void>;
1327
1357
  /** DELETE /env/tenants/{tenantId}/members/{userId} — remove a member from a tenant. */
@@ -1504,9 +1534,10 @@ declare class TenantScopedClient {
1504
1534
  * Same handler as `/env/tenants/{id}/members` (the tenant comes from the
1505
1535
  * token instead of the path), so the same `Paged<T>` envelope of full
1506
1536
  * user records, `take` defaulting to 50 and capped at 100 — as opposed
1507
- * to `/auth/tenants/{id}/members`'s lightweight member shape.
1537
+ * to `/auth/tenants/{id}/members`'s lightweight member shape. `search`
1538
+ * works the same way too.
1508
1539
  */
1509
- list: (params?: PaginationOptions) => Promise<Paged<EnvironmentUser>>;
1540
+ list: (params?: MemberListOptions) => Promise<Paged<EnvironmentUser>>;
1510
1541
  /** POST /tenant/members — add a member to the token's tenant. */
1511
1542
  add: (userId: string, roles?: string[]) => Promise<void>;
1512
1543
  /** DELETE /tenant/members/{userId} — remove a member from the token's tenant. */
@@ -1543,4 +1574,4 @@ declare class TenantScopedClient {
1543
1574
  /** Convenience factory: `const authyon = createClient({ clientId, clientSecret })`. */
1544
1575
  declare function createClient(options?: AuthyonServerClientOptions): AuthyonServerClient;
1545
1576
 
1546
- export { type ReservedPermissions as $, AuthyonServerClient as A, type CredentialPermissionsInput as B, CLIENT_IP_HEADER as C, type HttpAdapterRequest as D, type EnvironmentUser as E, FetchHttpAdapter as F, type HttpLogEvent as G, type HttpAdapter as H, type HttpLogger as I, JwksTokenVerifier as J, type IntrospectResult as K, type InviteTenantMemberInput as L, type IssuePasswordResetInput as M, type JsonWebKeySet as N, type JwksTokenVerifierOptions as O, LoggingHttpAdapter as P, type LoginActivity as Q, type OpenIdConfiguration as R, type Organization as S, type OtpCheckResult as T, type Paged as U, type PaginationOptions as V, type PasswordResetCompleted as W, type PasswordResetIssued as X, type PasswordResetPreview as Y, type Permission as Z, type PermissionsByRole as _, type HttpLoggerOptions as a, type Role as a0, type RoleGrant as a1, type RoleInput as a2, type RoleList as a3, type RolePermissions as a4, type SafeJwtAlgorithm as a5, type SecurityMethods as a6, type SubjectApprovals as a7, type SubjectSecurity as a8, TENANT_FILTER_MAX_DEPTH as a9, UserScopedClient as aA, type ValidateResult as aB, type VerifiedAccessToken as aC, createClient as aD, normalizeClientIp as aE, tenantFilter as aF, TENANT_FILTER_MAX_VALUES as aa, TENANT_FILTER_MAX_VALUE_LENGTH as ab, type TenantAncestor as ac, type TenantClientValidationResult as ad, type TenantCredentialIssued as ae, type TenantCredentialSummary as af, type TenantFilterExpression as ag, type TenantFilterValue as ah, type TenantInvite as ai, type TenantInviteAccepted as aj, type TenantInviteInput as ak, type TenantInviteIssued as al, type TenantInviteListOptions as am, type TenantInvitePreview as an, type TenantInviteStatus as ao, type TenantListOptions as ap, type TenantMember as aq, type TenantMemberPage as ar, type TenantMembership as as, type TenantOrderField as at, TenantScopedClient as au, type TokenResult as av, TokenVerificationError as aw, type TokenVerificationErrorCode as ax, type UpdateOrganizationInput as ay, type User as az, type AcceptTenantInviteInput as b, type AccessTokenSource as c, type Approval as d, type ApprovalAssurance as e, type ApprovalPayload as f, type ApprovalStatus as g, type ApprovalWebAuthnOptions as h, type AuditEvent as i, type AuthyonJwksDiscoveryOptions as j, type AuthyonJwtClaims as k, type AuthyonServerClientOptions as l, type AuthyonTenantClaim as m, type ClientCredentials as n, type ClientRequestContext as o, type ConfirmApprovalInput as p, type ConsumedApproval as q, type CreateApprovalInput as r, type CreateCredentialInput as s, type CreateOrganizationInput as t, type CreatePermissionInput as u, type CreateTenantCredentialInput as v, type CreateUserInput as w, type CredentialCreator as x, type CredentialDetail as y, type CredentialListOptions as z };
1577
+ export { type Permission as $, AuthyonServerClient as A, type BuiltInPermission as B, CLIENT_IP_HEADER as C, type CredentialPermissionsInput as D, type EnvironmentUser as E, FetchHttpAdapter as F, type HttpAdapterRequest as G, type HttpAdapter as H, type HttpLogEvent as I, JwksTokenVerifier as J, type HttpLogger as K, type IntrospectResult as L, type InviteTenantMemberInput as M, type IssuePasswordResetInput as N, type JsonWebKeySet as O, type JwksTokenVerifierOptions as P, LoggingHttpAdapter as Q, type LoginActivity as R, type MemberListOptions as S, type OpenIdConfiguration as T, type Organization as U, type OtpCheckResult as V, type Paged as W, type PaginationOptions as X, type PasswordResetCompleted as Y, type PasswordResetIssued as Z, type PasswordResetPreview as _, type HttpLoggerOptions as a, type PermissionsByRole as a0, type ReservedPermissions as a1, type Role as a2, type RoleGrant as a3, type RoleInput as a4, type RoleList as a5, type RolePermissions as a6, type SafeJwtAlgorithm as a7, type SecurityMethods as a8, type SubjectApprovals as a9, type UpdateOrganizationInput as aA, type User as aB, UserScopedClient as aC, type ValidateResult as aD, type VerifiedAccessToken as aE, createClient as aF, normalizeClientIp as aG, tenantFilter as aH, type SubjectSecurity as aa, TENANT_FILTER_MAX_DEPTH as ab, TENANT_FILTER_MAX_VALUES as ac, TENANT_FILTER_MAX_VALUE_LENGTH as ad, type TenantAncestor as ae, type TenantClientValidationResult as af, type TenantCredentialIssued as ag, type TenantCredentialSummary as ah, type TenantFilterExpression as ai, type TenantFilterValue as aj, type TenantInvite as ak, type TenantInviteAccepted as al, type TenantInviteInput as am, type TenantInviteIssued as an, type TenantInviteListOptions as ao, type TenantInvitePreview as ap, type TenantInviteStatus as aq, type TenantListOptions as ar, type TenantMember as as, type TenantMemberPage as at, type TenantMembership as au, type TenantOrderField as av, TenantScopedClient as aw, type TokenResult as ax, TokenVerificationError as ay, type TokenVerificationErrorCode as az, type AcceptTenantInviteInput as b, type AccessTokenSource as c, type Approval as d, type ApprovalAssurance as e, type ApprovalPayload as f, type ApprovalStatus as g, type ApprovalWebAuthnOptions as h, type AuditEvent as i, type AuthyonJwksDiscoveryOptions as j, type AuthyonJwtClaims as k, type AuthyonServerClientOptions as l, type AuthyonTenantClaim as m, type ClientCredentials as n, type ClientRequestContext as o, type ConfirmApprovalInput as p, type ConsumedApproval as q, type CreateApprovalInput as r, type CreateCredentialInput as s, type CreateOrganizationInput as t, type CreatePermissionInput as u, type CreateTenantCredentialInput as v, type CreateUserInput as w, type CredentialCreator as x, type CredentialDetail as y, type CredentialListOptions as z };
@@ -137,6 +137,15 @@ interface PaginationOptions {
137
137
  skip?: number;
138
138
  take?: number;
139
139
  }
140
+ /**
141
+ * Options for a member listing. Always newest member first.
142
+ * `search` keeps members whose email, username or name ("first last")
143
+ * contains it, case-insensitively; `%` and `_` count as text. At most 100
144
+ * characters; blank lists everyone.
145
+ */
146
+ interface MemberListOptions extends PaginationOptions {
147
+ search?: string;
148
+ }
140
149
  /**
141
150
  * The envelope every paged endpoint answers with.
142
151
  *
@@ -433,6 +442,21 @@ interface RolePermissions {
433
442
  interface PermissionsByRole {
434
443
  roles: RolePermissions[];
435
444
  orphans: Permission[];
445
+ /**
446
+ * The permissions Authyon itself checks on the end-user organization routes
447
+ * (`tenants:settings:manage`, `tenants:members:invite`,
448
+ * `tenants:members:remove` and `subtenants:tree:*`), listed whether or not
449
+ * a role names them. Absent from an API older than 2026-11-25.
450
+ */
451
+ builtIn?: BuiltInPermission[];
452
+ }
453
+ interface BuiltInPermission {
454
+ value: string;
455
+ /** What the API says the permission unlocks. */
456
+ defaultDescription: string;
457
+ /** The environment's own catalog text, when someone wrote one. */
458
+ description?: string | null;
459
+ catalogId?: string | null;
436
460
  }
437
461
  /** GET /permissions/reserved — confirmed live: wrapped, not a bare string array. */
438
462
  interface ReservedPermissions {
@@ -673,6 +697,9 @@ interface TenantMember {
673
697
  userId: string;
674
698
  email: string;
675
699
  username: string;
700
+ /** Null when the person never gave one. Absent from an API older than 2026-11-25. */
701
+ firstName?: string | null;
702
+ lastName?: string | null;
676
703
  roles: string[];
677
704
  createdAt: string;
678
705
  lastLoginAt: string | null;
@@ -870,7 +897,8 @@ declare class UserScopedClient {
870
897
  readonly security: SubjectSecurity;
871
898
  readonly tenants: {
872
899
  members: {
873
- list: (tenantId: string, options?: PaginationOptions) => Promise<TenantMemberPage>;
900
+ /** Newest first; `search` matches email, username or name (at most 100 characters). */
901
+ list: (tenantId: string, options?: MemberListOptions) => Promise<TenantMemberPage>;
874
902
  /** Adds an existing environment user by email; does not send an invitation email. */
875
903
  invite: (tenantId: string, input: InviteTenantMemberInput) => Promise<TenantMember>;
876
904
  remove: (tenantId: string, userId: string) => Promise<void>;
@@ -1315,13 +1343,15 @@ declare class AuthyonServerClient {
1315
1343
  * tenant.
1316
1344
  *
1317
1345
  * Paged like every other list: the `Paged<T>` envelope carries
1318
- * `total` and `hasNext`, `take` defaults to 50 and is capped at 100.
1346
+ * `total` and `hasNext`, `take` defaults to 50 and is capped at 100,
1347
+ * newest member first. `search` matches email, username or name (at
1348
+ * most 100 characters, checked before any request).
1319
1349
  * Up to the Authyon API of 2026-10-21 this one route answered with a
1320
1350
  * bare array, so a caller had to page until a short page came back;
1321
1351
  * against such an API `data` is undefined and the array is the body
1322
1352
  * itself.
1323
1353
  */
1324
- list: (tenantId: string, params?: PaginationOptions) => Promise<Paged<EnvironmentUser>>;
1354
+ list: (tenantId: string, params?: MemberListOptions) => Promise<Paged<EnvironmentUser>>;
1325
1355
  /** POST /env/tenants/{tenantId}/members — add a member to a tenant. */
1326
1356
  add: (tenantId: string, userId: string, roles?: string[]) => Promise<void>;
1327
1357
  /** DELETE /env/tenants/{tenantId}/members/{userId} — remove a member from a tenant. */
@@ -1504,9 +1534,10 @@ declare class TenantScopedClient {
1504
1534
  * Same handler as `/env/tenants/{id}/members` (the tenant comes from the
1505
1535
  * token instead of the path), so the same `Paged<T>` envelope of full
1506
1536
  * user records, `take` defaulting to 50 and capped at 100 — as opposed
1507
- * to `/auth/tenants/{id}/members`'s lightweight member shape.
1537
+ * to `/auth/tenants/{id}/members`'s lightweight member shape. `search`
1538
+ * works the same way too.
1508
1539
  */
1509
- list: (params?: PaginationOptions) => Promise<Paged<EnvironmentUser>>;
1540
+ list: (params?: MemberListOptions) => Promise<Paged<EnvironmentUser>>;
1510
1541
  /** POST /tenant/members — add a member to the token's tenant. */
1511
1542
  add: (userId: string, roles?: string[]) => Promise<void>;
1512
1543
  /** DELETE /tenant/members/{userId} — remove a member from the token's tenant. */
@@ -1543,4 +1574,4 @@ declare class TenantScopedClient {
1543
1574
  /** Convenience factory: `const authyon = createClient({ clientId, clientSecret })`. */
1544
1575
  declare function createClient(options?: AuthyonServerClientOptions): AuthyonServerClient;
1545
1576
 
1546
- export { type ReservedPermissions as $, AuthyonServerClient as A, type CredentialPermissionsInput as B, CLIENT_IP_HEADER as C, type HttpAdapterRequest as D, type EnvironmentUser as E, FetchHttpAdapter as F, type HttpLogEvent as G, type HttpAdapter as H, type HttpLogger as I, JwksTokenVerifier as J, type IntrospectResult as K, type InviteTenantMemberInput as L, type IssuePasswordResetInput as M, type JsonWebKeySet as N, type JwksTokenVerifierOptions as O, LoggingHttpAdapter as P, type LoginActivity as Q, type OpenIdConfiguration as R, type Organization as S, type OtpCheckResult as T, type Paged as U, type PaginationOptions as V, type PasswordResetCompleted as W, type PasswordResetIssued as X, type PasswordResetPreview as Y, type Permission as Z, type PermissionsByRole as _, type HttpLoggerOptions as a, type Role as a0, type RoleGrant as a1, type RoleInput as a2, type RoleList as a3, type RolePermissions as a4, type SafeJwtAlgorithm as a5, type SecurityMethods as a6, type SubjectApprovals as a7, type SubjectSecurity as a8, TENANT_FILTER_MAX_DEPTH as a9, UserScopedClient as aA, type ValidateResult as aB, type VerifiedAccessToken as aC, createClient as aD, normalizeClientIp as aE, tenantFilter as aF, TENANT_FILTER_MAX_VALUES as aa, TENANT_FILTER_MAX_VALUE_LENGTH as ab, type TenantAncestor as ac, type TenantClientValidationResult as ad, type TenantCredentialIssued as ae, type TenantCredentialSummary as af, type TenantFilterExpression as ag, type TenantFilterValue as ah, type TenantInvite as ai, type TenantInviteAccepted as aj, type TenantInviteInput as ak, type TenantInviteIssued as al, type TenantInviteListOptions as am, type TenantInvitePreview as an, type TenantInviteStatus as ao, type TenantListOptions as ap, type TenantMember as aq, type TenantMemberPage as ar, type TenantMembership as as, type TenantOrderField as at, TenantScopedClient as au, type TokenResult as av, TokenVerificationError as aw, type TokenVerificationErrorCode as ax, type UpdateOrganizationInput as ay, type User as az, type AcceptTenantInviteInput as b, type AccessTokenSource as c, type Approval as d, type ApprovalAssurance as e, type ApprovalPayload as f, type ApprovalStatus as g, type ApprovalWebAuthnOptions as h, type AuditEvent as i, type AuthyonJwksDiscoveryOptions as j, type AuthyonJwtClaims as k, type AuthyonServerClientOptions as l, type AuthyonTenantClaim as m, type ClientCredentials as n, type ClientRequestContext as o, type ConfirmApprovalInput as p, type ConsumedApproval as q, type CreateApprovalInput as r, type CreateCredentialInput as s, type CreateOrganizationInput as t, type CreatePermissionInput as u, type CreateTenantCredentialInput as v, type CreateUserInput as w, type CredentialCreator as x, type CredentialDetail as y, type CredentialListOptions as z };
1577
+ export { type Permission as $, AuthyonServerClient as A, type BuiltInPermission as B, CLIENT_IP_HEADER as C, type CredentialPermissionsInput as D, type EnvironmentUser as E, FetchHttpAdapter as F, type HttpAdapterRequest as G, type HttpAdapter as H, type HttpLogEvent as I, JwksTokenVerifier as J, type HttpLogger as K, type IntrospectResult as L, type InviteTenantMemberInput as M, type IssuePasswordResetInput as N, type JsonWebKeySet as O, type JwksTokenVerifierOptions as P, LoggingHttpAdapter as Q, type LoginActivity as R, type MemberListOptions as S, type OpenIdConfiguration as T, type Organization as U, type OtpCheckResult as V, type Paged as W, type PaginationOptions as X, type PasswordResetCompleted as Y, type PasswordResetIssued as Z, type PasswordResetPreview as _, type HttpLoggerOptions as a, type PermissionsByRole as a0, type ReservedPermissions as a1, type Role as a2, type RoleGrant as a3, type RoleInput as a4, type RoleList as a5, type RolePermissions as a6, type SafeJwtAlgorithm as a7, type SecurityMethods as a8, type SubjectApprovals as a9, type UpdateOrganizationInput as aA, type User as aB, UserScopedClient as aC, type ValidateResult as aD, type VerifiedAccessToken as aE, createClient as aF, normalizeClientIp as aG, tenantFilter as aH, type SubjectSecurity as aa, TENANT_FILTER_MAX_DEPTH as ab, TENANT_FILTER_MAX_VALUES as ac, TENANT_FILTER_MAX_VALUE_LENGTH as ad, type TenantAncestor as ae, type TenantClientValidationResult as af, type TenantCredentialIssued as ag, type TenantCredentialSummary as ah, type TenantFilterExpression as ai, type TenantFilterValue as aj, type TenantInvite as ak, type TenantInviteAccepted as al, type TenantInviteInput as am, type TenantInviteIssued as an, type TenantInviteListOptions as ao, type TenantInvitePreview as ap, type TenantInviteStatus as aq, type TenantListOptions as ar, type TenantMember as as, type TenantMemberPage as at, type TenantMembership as au, type TenantOrderField as av, TenantScopedClient as aw, type TokenResult as ax, TokenVerificationError as ay, type TokenVerificationErrorCode as az, type AcceptTenantInviteInput as b, type AccessTokenSource as c, type Approval as d, type ApprovalAssurance as e, type ApprovalPayload as f, type ApprovalStatus as g, type ApprovalWebAuthnOptions as h, type AuditEvent as i, type AuthyonJwksDiscoveryOptions as j, type AuthyonJwtClaims as k, type AuthyonServerClientOptions as l, type AuthyonTenantClaim as m, type ClientCredentials as n, type ClientRequestContext as o, type ConfirmApprovalInput as p, type ConsumedApproval as q, type CreateApprovalInput as r, type CreateCredentialInput as s, type CreateOrganizationInput as t, type CreatePermissionInput as u, type CreateTenantCredentialInput as v, type CreateUserInput as w, type CredentialCreator as x, type CredentialDetail as y, type CredentialListOptions as z };
package/dist/bff.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.cjs';
1
+ import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.cjs';
2
2
  import 'jose';
3
3
 
4
4
  interface BffLoginInput {
package/dist/bff.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.js';
1
+ import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.js';
2
2
  import 'jose';
3
3
 
4
4
  interface BffLoginInput {
package/dist/index.cjs CHANGED
@@ -195,6 +195,18 @@ async function allCredentials(request, path2) {
195
195
  throw new Error("Authyon: use listPage for more than 1000 credential pages.");
196
196
  }
197
197
 
198
+ // ../../internal/core/http/memberQuery.ts
199
+ function memberQuery(options = {}) {
200
+ const { skip, take, search } = options;
201
+ if (skip !== void 0 && (!Number.isInteger(skip) || skip < 0 || skip > 2147483647))
202
+ throw new RangeError("Authyon: invalid skip.");
203
+ if (take !== void 0 && (!Number.isInteger(take) || take < 1 || take > 100))
204
+ throw new RangeError("Authyon: take must be between 1 and 100.");
205
+ if (search !== void 0 && (typeof search !== "string" || search.trim().length > 100))
206
+ throw new RangeError("Authyon: search must contain at most 100 characters.");
207
+ return { search: search?.trim() || void 0, skip, take };
208
+ }
209
+
198
210
  // ../../internal/core/security/approvals.ts
199
211
  function path(id, suffix = "") {
200
212
  if (typeof id !== "string" || !id.trim())
@@ -245,7 +257,10 @@ var UserScopedClient = class {
245
257
  __privateAdd(this, _request);
246
258
  this.tenants = {
247
259
  members: {
248
- list: (tenantId, options = {}) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, { query: options }),
260
+ /** Newest first; `search` matches email, username or name (at most 100 characters). */
261
+ list: (tenantId, options = {}) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, {
262
+ query: memberQuery(options)
263
+ }),
249
264
  /** Adds an existing environment user by email; does not send an invitation email. */
250
265
  invite: (tenantId, input) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, {
251
266
  method: "POST",
@@ -1236,7 +1251,9 @@ var AuthyonServerClient = class {
1236
1251
  * tenant.
1237
1252
  *
1238
1253
  * Paged like every other list: the `Paged<T>` envelope carries
1239
- * `total` and `hasNext`, `take` defaults to 50 and is capped at 100.
1254
+ * `total` and `hasNext`, `take` defaults to 50 and is capped at 100,
1255
+ * newest member first. `search` matches email, username or name (at
1256
+ * most 100 characters, checked before any request).
1240
1257
  * Up to the Authyon API of 2026-10-21 this one route answered with a
1241
1258
  * bare array, so a caller had to page until a short page came back;
1242
1259
  * against such an API `data` is undefined and the array is the body
@@ -1244,7 +1261,7 @@ var AuthyonServerClient = class {
1244
1261
  */
1245
1262
  list: (tenantId, params = {}) => this.request(`/env/tenants/${encodeURIComponent(tenantId)}/members`, {
1246
1263
  envBearer: true,
1247
- query: params
1264
+ query: memberQuery(params)
1248
1265
  }),
1249
1266
  /** POST /env/tenants/{tenantId}/members — add a member to a tenant. */
1250
1267
  add: (tenantId, userId, roles) => this.request(`/env/tenants/${encodeURIComponent(tenantId)}/members`, {
@@ -1620,9 +1637,10 @@ var TenantScopedClient = class {
1620
1637
  * Same handler as `/env/tenants/{id}/members` (the tenant comes from the
1621
1638
  * token instead of the path), so the same `Paged<T>` envelope of full
1622
1639
  * user records, `take` defaulting to 50 and capped at 100 — as opposed
1623
- * to `/auth/tenants/{id}/members`'s lightweight member shape.
1640
+ * to `/auth/tenants/{id}/members`'s lightweight member shape. `search`
1641
+ * works the same way too.
1624
1642
  */
1625
- list: (params = {}) => this.request("/tenant/members", { query: params }),
1643
+ list: (params = {}) => this.request("/tenant/members", { query: memberQuery(params) }),
1626
1644
  /** POST /tenant/members — add a member to the token's tenant. */
1627
1645
  add: (userId, roles) => this.request("/tenant/members", { method: "POST", body: { userId, roles } }),
1628
1646
  /** DELETE /tenant/members/{userId} — remove a member from the token's tenant. */
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.cjs';
2
- export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateUserInput, x as CredentialCreator, y as CredentialDetail, z as CredentialListOptions, B as CredentialPermissionsInput, E as EnvironmentUser, F as FetchHttpAdapter, D as HttpAdapterRequest, G as HttpLogEvent, I as HttpLogger, K as IntrospectResult, L as InviteTenantMemberInput, M as IssuePasswordResetInput, N as JsonWebKeySet, J as JwksTokenVerifier, O as JwksTokenVerifierOptions, P as LoggingHttpAdapter, Q as LoginActivity, R as OpenIdConfiguration, S as Organization, T as OtpCheckResult, U as Paged, V as PaginationOptions, W as PasswordResetCompleted, X as PasswordResetIssued, Y as PasswordResetPreview, Z as Permission, _ as PermissionsByRole, $ as ReservedPermissions, a0 as Role, a1 as RoleGrant, a2 as RoleInput, a3 as RoleList, a4 as RolePermissions, a5 as SafeJwtAlgorithm, a6 as SecurityMethods, a7 as SubjectApprovals, a8 as SubjectSecurity, a9 as TENANT_FILTER_MAX_DEPTH, aa as TENANT_FILTER_MAX_VALUES, ab as TENANT_FILTER_MAX_VALUE_LENGTH, ac as TenantAncestor, ad as TenantClientValidationResult, ae as TenantCredentialIssued, af as TenantCredentialSummary, ag as TenantFilterExpression, ah as TenantFilterValue, ai as TenantInvite, aj as TenantInviteAccepted, ak as TenantInviteInput, al as TenantInviteIssued, am as TenantInviteListOptions, an as TenantInvitePreview, ao as TenantInviteStatus, ap as TenantListOptions, aq as TenantMember, ar as TenantMemberPage, as as TenantMembership, at as TenantOrderField, au as TenantScopedClient, av as TokenResult, aw as TokenVerificationError, ax as TokenVerificationErrorCode, ay as UpdateOrganizationInput, az as User, aA as UserScopedClient, aB as ValidateResult, aC as VerifiedAccessToken, aD as createClient, aE as normalizeClientIp, aF as tenantFilter } from './authyonServerClient-D7mSUfe5.cjs';
3
- export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-RHojgDKD.cjs';
1
+ import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.cjs';
2
+ export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, B as BuiltInPermission, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateUserInput, x as CredentialCreator, y as CredentialDetail, z as CredentialListOptions, D as CredentialPermissionsInput, E as EnvironmentUser, F as FetchHttpAdapter, G as HttpAdapterRequest, I as HttpLogEvent, K as HttpLogger, L as IntrospectResult, M as InviteTenantMemberInput, N as IssuePasswordResetInput, O as JsonWebKeySet, J as JwksTokenVerifier, P as JwksTokenVerifierOptions, Q as LoggingHttpAdapter, R as LoginActivity, S as MemberListOptions, T as OpenIdConfiguration, U as Organization, V as OtpCheckResult, W as Paged, X as PaginationOptions, Y as PasswordResetCompleted, Z as PasswordResetIssued, _ as PasswordResetPreview, $ as Permission, a0 as PermissionsByRole, a1 as ReservedPermissions, a2 as Role, a3 as RoleGrant, a4 as RoleInput, a5 as RoleList, a6 as RolePermissions, a7 as SafeJwtAlgorithm, a8 as SecurityMethods, a9 as SubjectApprovals, aa as SubjectSecurity, ab as TENANT_FILTER_MAX_DEPTH, ac as TENANT_FILTER_MAX_VALUES, ad as TENANT_FILTER_MAX_VALUE_LENGTH, ae as TenantAncestor, af as TenantClientValidationResult, ag as TenantCredentialIssued, ah as TenantCredentialSummary, ai as TenantFilterExpression, aj as TenantFilterValue, ak as TenantInvite, al as TenantInviteAccepted, am as TenantInviteInput, an as TenantInviteIssued, ao as TenantInviteListOptions, ap as TenantInvitePreview, aq as TenantInviteStatus, ar as TenantListOptions, as as TenantMember, at as TenantMemberPage, au as TenantMembership, av as TenantOrderField, aw as TenantScopedClient, ax as TokenResult, ay as TokenVerificationError, az as TokenVerificationErrorCode, aA as UpdateOrganizationInput, aB as User, aC as UserScopedClient, aD as ValidateResult, aE as VerifiedAccessToken, aF as createClient, aG as normalizeClientIp, aH as tenantFilter } from './authyonServerClient-CbHvFX-h.cjs';
3
+ export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-C2XOBjmM.cjs';
4
4
  import 'jose';
5
5
 
6
6
  declare const ErrorCodes: {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.js';
2
- export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateUserInput, x as CredentialCreator, y as CredentialDetail, z as CredentialListOptions, B as CredentialPermissionsInput, E as EnvironmentUser, F as FetchHttpAdapter, D as HttpAdapterRequest, G as HttpLogEvent, I as HttpLogger, K as IntrospectResult, L as InviteTenantMemberInput, M as IssuePasswordResetInput, N as JsonWebKeySet, J as JwksTokenVerifier, O as JwksTokenVerifierOptions, P as LoggingHttpAdapter, Q as LoginActivity, R as OpenIdConfiguration, S as Organization, T as OtpCheckResult, U as Paged, V as PaginationOptions, W as PasswordResetCompleted, X as PasswordResetIssued, Y as PasswordResetPreview, Z as Permission, _ as PermissionsByRole, $ as ReservedPermissions, a0 as Role, a1 as RoleGrant, a2 as RoleInput, a3 as RoleList, a4 as RolePermissions, a5 as SafeJwtAlgorithm, a6 as SecurityMethods, a7 as SubjectApprovals, a8 as SubjectSecurity, a9 as TENANT_FILTER_MAX_DEPTH, aa as TENANT_FILTER_MAX_VALUES, ab as TENANT_FILTER_MAX_VALUE_LENGTH, ac as TenantAncestor, ad as TenantClientValidationResult, ae as TenantCredentialIssued, af as TenantCredentialSummary, ag as TenantFilterExpression, ah as TenantFilterValue, ai as TenantInvite, aj as TenantInviteAccepted, ak as TenantInviteInput, al as TenantInviteIssued, am as TenantInviteListOptions, an as TenantInvitePreview, ao as TenantInviteStatus, ap as TenantListOptions, aq as TenantMember, ar as TenantMemberPage, as as TenantMembership, at as TenantOrderField, au as TenantScopedClient, av as TokenResult, aw as TokenVerificationError, ax as TokenVerificationErrorCode, ay as UpdateOrganizationInput, az as User, aA as UserScopedClient, aB as ValidateResult, aC as VerifiedAccessToken, aD as createClient, aE as normalizeClientIp, aF as tenantFilter } from './authyonServerClient-D7mSUfe5.js';
3
- export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-gJv_i_p5.js';
1
+ import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.js';
2
+ export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, B as BuiltInPermission, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateUserInput, x as CredentialCreator, y as CredentialDetail, z as CredentialListOptions, D as CredentialPermissionsInput, E as EnvironmentUser, F as FetchHttpAdapter, G as HttpAdapterRequest, I as HttpLogEvent, K as HttpLogger, L as IntrospectResult, M as InviteTenantMemberInput, N as IssuePasswordResetInput, O as JsonWebKeySet, J as JwksTokenVerifier, P as JwksTokenVerifierOptions, Q as LoggingHttpAdapter, R as LoginActivity, S as MemberListOptions, T as OpenIdConfiguration, U as Organization, V as OtpCheckResult, W as Paged, X as PaginationOptions, Y as PasswordResetCompleted, Z as PasswordResetIssued, _ as PasswordResetPreview, $ as Permission, a0 as PermissionsByRole, a1 as ReservedPermissions, a2 as Role, a3 as RoleGrant, a4 as RoleInput, a5 as RoleList, a6 as RolePermissions, a7 as SafeJwtAlgorithm, a8 as SecurityMethods, a9 as SubjectApprovals, aa as SubjectSecurity, ab as TENANT_FILTER_MAX_DEPTH, ac as TENANT_FILTER_MAX_VALUES, ad as TENANT_FILTER_MAX_VALUE_LENGTH, ae as TenantAncestor, af as TenantClientValidationResult, ag as TenantCredentialIssued, ah as TenantCredentialSummary, ai as TenantFilterExpression, aj as TenantFilterValue, ak as TenantInvite, al as TenantInviteAccepted, am as TenantInviteInput, an as TenantInviteIssued, ao as TenantInviteListOptions, ap as TenantInvitePreview, aq as TenantInviteStatus, ar as TenantListOptions, as as TenantMember, at as TenantMemberPage, au as TenantMembership, av as TenantOrderField, aw as TenantScopedClient, ax as TokenResult, ay as TokenVerificationError, az as TokenVerificationErrorCode, aA as UpdateOrganizationInput, aB as User, aC as UserScopedClient, aD as ValidateResult, aE as VerifiedAccessToken, aF as createClient, aG as normalizeClientIp, aH as tenantFilter } from './authyonServerClient-CbHvFX-h.js';
3
+ export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-CjHIH0F8.js';
4
4
  import 'jose';
5
5
 
6
6
  declare const ErrorCodes: {
package/dist/index.js CHANGED
@@ -167,6 +167,18 @@ async function allCredentials(request, path2) {
167
167
  throw new Error("Authyon: use listPage for more than 1000 credential pages.");
168
168
  }
169
169
 
170
+ // ../../internal/core/http/memberQuery.ts
171
+ function memberQuery(options = {}) {
172
+ const { skip, take, search } = options;
173
+ if (skip !== void 0 && (!Number.isInteger(skip) || skip < 0 || skip > 2147483647))
174
+ throw new RangeError("Authyon: invalid skip.");
175
+ if (take !== void 0 && (!Number.isInteger(take) || take < 1 || take > 100))
176
+ throw new RangeError("Authyon: take must be between 1 and 100.");
177
+ if (search !== void 0 && (typeof search !== "string" || search.trim().length > 100))
178
+ throw new RangeError("Authyon: search must contain at most 100 characters.");
179
+ return { search: search?.trim() || void 0, skip, take };
180
+ }
181
+
170
182
  // ../../internal/core/security/approvals.ts
171
183
  function path(id, suffix = "") {
172
184
  if (typeof id !== "string" || !id.trim())
@@ -217,7 +229,10 @@ var UserScopedClient = class {
217
229
  __privateAdd(this, _request);
218
230
  this.tenants = {
219
231
  members: {
220
- list: (tenantId, options = {}) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, { query: options }),
232
+ /** Newest first; `search` matches email, username or name (at most 100 characters). */
233
+ list: (tenantId, options = {}) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, {
234
+ query: memberQuery(options)
235
+ }),
221
236
  /** Adds an existing environment user by email; does not send an invitation email. */
222
237
  invite: (tenantId, input) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, {
223
238
  method: "POST",
@@ -698,7 +713,9 @@ var AuthyonServerClient = class {
698
713
  * tenant.
699
714
  *
700
715
  * Paged like every other list: the `Paged<T>` envelope carries
701
- * `total` and `hasNext`, `take` defaults to 50 and is capped at 100.
716
+ * `total` and `hasNext`, `take` defaults to 50 and is capped at 100,
717
+ * newest member first. `search` matches email, username or name (at
718
+ * most 100 characters, checked before any request).
702
719
  * Up to the Authyon API of 2026-10-21 this one route answered with a
703
720
  * bare array, so a caller had to page until a short page came back;
704
721
  * against such an API `data` is undefined and the array is the body
@@ -706,7 +723,7 @@ var AuthyonServerClient = class {
706
723
  */
707
724
  list: (tenantId, params = {}) => this.request(`/env/tenants/${encodeURIComponent(tenantId)}/members`, {
708
725
  envBearer: true,
709
- query: params
726
+ query: memberQuery(params)
710
727
  }),
711
728
  /** POST /env/tenants/{tenantId}/members — add a member to a tenant. */
712
729
  add: (tenantId, userId, roles) => this.request(`/env/tenants/${encodeURIComponent(tenantId)}/members`, {
@@ -1082,9 +1099,10 @@ var TenantScopedClient = class {
1082
1099
  * Same handler as `/env/tenants/{id}/members` (the tenant comes from the
1083
1100
  * token instead of the path), so the same `Paged<T>` envelope of full
1084
1101
  * user records, `take` defaulting to 50 and capped at 100 — as opposed
1085
- * to `/auth/tenants/{id}/members`'s lightweight member shape.
1102
+ * to `/auth/tenants/{id}/members`'s lightweight member shape. `search`
1103
+ * works the same way too.
1086
1104
  */
1087
- list: (params = {}) => this.request("/tenant/members", { query: params }),
1105
+ list: (params = {}) => this.request("/tenant/members", { query: memberQuery(params) }),
1088
1106
  /** POST /tenant/members — add a member to the token's tenant. */
1089
1107
  add: (userId, roles) => this.request("/tenant/members", { method: "POST", body: { userId, roles } }),
1090
1108
  /** DELETE /tenant/members/{userId} — remove a member from the token's tenant. */
package/dist/next.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { R as RequestAuthorizationOptions, A as AbilitySubject, a as AuthorizationError } from './authorization-RHojgDKD.cjs';
3
- import { A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.cjs';
2
+ import { R as RequestAuthorizationOptions, A as AbilitySubject, a as AuthorizationError } from './authorization-C2XOBjmM.cjs';
3
+ import { A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.cjs';
4
4
  import 'jose';
5
5
 
6
6
  interface ServerPermissionGuardFallbackContext {
package/dist/next.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { R as RequestAuthorizationOptions, A as AbilitySubject, a as AuthorizationError } from './authorization-gJv_i_p5.js';
3
- import { A as AuthyonServerClient } from './authyonServerClient-D7mSUfe5.js';
2
+ import { R as RequestAuthorizationOptions, A as AbilitySubject, a as AuthorizationError } from './authorization-CjHIH0F8.js';
3
+ import { A as AuthyonServerClient } from './authyonServerClient-CbHvFX-h.js';
4
4
  import 'jose';
5
5
 
6
6
  interface ServerPermissionGuardFallbackContext {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authyon/server",
3
- "version": "0.2.0-beta.27",
3
+ "version": "0.2.0-beta.29",
4
4
  "description": "Authyon SDK for backends — server-to-server organization/member management and access-token verification.",
5
5
  "license": "MIT",
6
6
  "type": "module",