@spfn/auth 0.2.0-beta.90 → 0.2.0-beta.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/errors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { UnauthorizedError, ForbiddenError, ConflictError, NotFoundError, ValidationError, ErrorRegistry } from '@spfn/core/errors';
1
+ import { ConflictError, ForbiddenError, NotFoundError, UnauthorizedError, ValidationError, ErrorRegistry } from '@spfn/core/errors';
2
2
 
3
3
  /**
4
4
  * Authentication & Authorization Error Classes
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as _spfn_core_nextjs from '@spfn/core/nextjs';
2
- import { R as RoleConfig, P as PermissionConfig, S as SendVerificationCodeResult, a as RegisterResult, L as LoginResult, b as RotateKeyResult, K as KeySummary, c as RevokeAllKeysResult, I as IssueOneTimeTokenResult, O as OAuthStartResult, d as OAuthNativeResult, U as UserProfile, e as ProfileInfo, m as mainAuthRouter } from './authenticate-CnccboAg.js';
3
- export { k as AuthInitOptions, A as AuthSession, i as PERMISSION_CATEGORIES, j as PermissionCategory, h as VERIFICATION_PURPOSES, g as VERIFICATION_TARGET_TYPES, f as VerificationPurpose, V as VerificationTargetType } from './authenticate-CnccboAg.js';
2
+ import { P as PermissionConfig, R as RoleConfig, m as mainAuthRouter, S as SendVerificationCodeResult, a as RegisterResult, L as LoginResult, b as RotateKeyResult, K as KeySummary, c as RevokeAllKeysResult, I as IssueOneTimeTokenResult, O as OAuthStartResult, d as OAuthNativeResult, U as UserProfile, e as ProfileInfo } from './authenticate-DlTGaBT8.js';
3
+ export { A as AuthInitOptions, f as AuthSession, g as PERMISSION_CATEGORIES, h as PermissionCategory, V as VERIFICATION_PURPOSES, i as VERIFICATION_TARGET_TYPES, j as VerificationPurpose, k as VerificationTargetType } from './authenticate-DlTGaBT8.js';
4
4
  import * as _spfn_core_route from '@spfn/core/route';
5
5
  import { HttpMethod } from '@spfn/core/route';
6
- export { b as ACCOUNT_DELETION_REQUESTED_BY, A as ACCOUNT_DELETION_REQUEST_STATUSES, i as AccountDeletionRequestStatus, j as AccountDeletionRequestedBy, I as INVITATION_STATUSES, f as InvitationStatus, a as KEY_ALGORITHM, e as KEY_DEVICE_NAME_MAX_LENGTH, c as KEY_PLATFORM, K as KeyAlgorithmType, d as KeyPlatformType, P as PURGE_STRATEGIES, k as PurgeStrategy, S as SOCIAL_PROVIDERS, h as SocialProvider, U as USER_STATUSES, g as UserStatus } from './types-CD95yudz.js';
6
+ export { A as ACCOUNT_DELETION_REQUESTED_BY, a as ACCOUNT_DELETION_REQUEST_STATUSES, b as AccountDeletionRequestStatus, c as AccountDeletionRequestedBy, I as INVITATION_STATUSES, d as InvitationStatus, e as KEY_ALGORITHM, f as KEY_DEVICE_NAME_MAX_LENGTH, g as KEY_PLATFORM, K as KeyAlgorithmType, h as KeyPlatformType, P as PURGE_STRATEGIES, i as PurgeStrategy, S as SOCIAL_PROVIDERS, j as SocialProvider, U as USER_STATUSES, k as UserStatus } from './types-DYyhze28.js';
7
7
  import * as _sinclair_typebox from '@sinclair/typebox';
8
8
  import 'hono';
9
9
  import '@spfn/auth/server';
@@ -190,7 +190,7 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
190
190
  id: number;
191
191
  name: string;
192
192
  displayName: string;
193
- category: "custom" | "user" | "auth" | "rbac" | "system" | undefined;
193
+ category: "auth" | "custom" | "user" | "rbac" | "system" | undefined;
194
194
  }[];
195
195
  userId: number;
196
196
  publicId: string;
@@ -490,8 +490,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
490
490
  }, {}, {
491
491
  roles: {
492
492
  description: string | null;
493
- id: number;
494
493
  name: string;
494
+ id: number;
495
495
  displayName: string;
496
496
  isBuiltin: boolean;
497
497
  isSystem: boolean;
@@ -512,8 +512,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
512
512
  }, {}, {
513
513
  role: {
514
514
  description: string | null;
515
- id: number;
516
515
  name: string;
516
+ id: number;
517
517
  displayName: string;
518
518
  isBuiltin: boolean;
519
519
  isSystem: boolean;
@@ -536,8 +536,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
536
536
  }, {}, {
537
537
  role: {
538
538
  description: string | null;
539
- id: number;
540
539
  name: string;
540
+ id: number;
541
541
  displayName: string;
542
542
  isBuiltin: boolean;
543
543
  isSystem: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { S as SessionData } from '../session-CFK4BT25.js';
4
- import { K as KeyAlgorithmType } from '../types-CD95yudz.js';
3
+ import { S as SessionData } from '../session-DTHahDQ9.js';
4
+ import { K as KeyAlgorithmType } from '../types-DYyhze28.js';
5
5
  import { NextRequest, NextResponse } from 'next/server';
6
6
 
7
7
  interface RequireAuthProps {