@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/README.md +27 -0
- package/dist/{authenticate-CnccboAg.d.ts → authenticate-DlTGaBT8.d.ts} +26 -6
- package/dist/client-proof.d.ts +47 -118
- package/dist/client-proof.js +46 -18
- package/dist/client-proof.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/nextjs/server.d.ts +2 -2
- package/dist/server.d.ts +204 -84
- package/dist/server.js +473 -133
- package/dist/server.js.map +1 -1
- package/dist/{session-CFK4BT25.d.ts → session-DTHahDQ9.d.ts} +1 -1
- package/dist/{types-CD95yudz.d.ts → types-DYyhze28.d.ts} +1 -1
- package/dist/wire-version-CtzMKvBB.d.ts +134 -0
- package/migrations/20260805143152_vengeful_ravenous/migration.sql +4 -0
- package/migrations/20260805143152_vengeful_ravenous/snapshot.json +3190 -0
- package/package.json +2 -2
package/dist/errors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
3
|
-
export {
|
|
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 {
|
|
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: "
|
|
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;
|
package/dist/nextjs/server.d.ts
CHANGED
|
@@ -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-
|
|
4
|
-
import { K as KeyAlgorithmType } from '../types-
|
|
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 {
|