@orieljs/framework 0.1.0-alpha.13 → 0.1.0-alpha.14

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.
Files changed (41) hide show
  1. package/dist/{chunk-6GMXKQ6O.js → chunk-4NCMY3ZS.js} +48 -2
  2. package/dist/chunk-4NCMY3ZS.js.map +1 -0
  3. package/dist/{chunk-CKH4KCYF.js → chunk-BKA5F3TH.js} +1 -1
  4. package/dist/{chunk-CKH4KCYF.js.map → chunk-BKA5F3TH.js.map} +1 -1
  5. package/dist/{chunk-OTCTQVDQ.js → chunk-UBSIBGXR.js} +233 -54
  6. package/dist/chunk-UBSIBGXR.js.map +1 -0
  7. package/dist/{chunk-ZRTWDJKD.js → chunk-X4N74JDO.js} +98 -4
  8. package/dist/chunk-X4N74JDO.js.map +1 -0
  9. package/dist/contracts.d.ts +4 -1
  10. package/dist/contracts.js +1 -1
  11. package/dist/{index.d-WQpfdIbG.d.ts → index.d-lffxurFs.d.ts} +10 -1
  12. package/dist/index.d.ts +121 -19
  13. package/dist/index.js +408 -183
  14. package/dist/index.js.map +1 -1
  15. package/dist/{jsx-runtime-6um4Mwfb.d.ts → jsx-runtime-Bc5KJzwb.d.ts} +1 -1
  16. package/dist/jsx-runtime.d.ts +2 -2
  17. package/dist/jsx-runtime.js +3 -3
  18. package/dist/{testing-B8NOiQC9.d.ts → testing-CVpo7aRl.d.ts} +41 -7
  19. package/dist/testing.d.ts +2 -2
  20. package/dist/testing.js +5 -3
  21. package/docs/authentication.md +40 -1
  22. package/docs/console.md +16 -5
  23. package/docs/database-testing.md +21 -0
  24. package/docs/database.md +12 -0
  25. package/docs/deployment.md +9 -2
  26. package/docs/encryption.md +2 -0
  27. package/docs/installation.md +2 -1
  28. package/docs/live-tests.md +20 -0
  29. package/docs/live.md +2 -0
  30. package/docs/pagination.md +10 -0
  31. package/docs/session.md +19 -2
  32. package/docs/starter-kits.md +4 -0
  33. package/docs/storage.md +21 -3
  34. package/docs/testing.md +9 -6
  35. package/docs/two-factor.md +10 -1
  36. package/docs/views.md +2 -0
  37. package/docs/vite.md +1 -1
  38. package/package.json +54 -38
  39. package/dist/chunk-6GMXKQ6O.js.map +0 -1
  40. package/dist/chunk-OTCTQVDQ.js.map +0 -1
  41. package/dist/chunk-ZRTWDJKD.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Container as Container$1, Factory as Factory$1, Abstract, Concrete, OrielError, ConfigRepository, Application as Application$2, ServiceProvider, ServiceProviderClass, MiddlewareConfigurator, ExceptionsConfigurator, ClassNames, HttpKernel, Middleware, HttpRequest, Next as Next$1, Htmlable, Notifiable as Notifiable$1, Notification as Notification$2, NotificationChannel, MailRecipient, Attachment, NotificationDispatcher, Job, BusDispatcher, EventDispatcher, MailManager as MailManager$1, QueueManager as QueueManager$1, FilesystemManager as FilesystemManager$1, Pipeline, Class, PipeClosure, Pipe, PipelineFactory, Router, ControllerAction, RouteClosure, InvokableClass, Route as Route$1, RouteAction, MiddlewareReference, ResourceOptions, RouteRegistrar, MiddlewareClass, UrlGenerator, ModelNotFoundError as ModelNotFoundError$1, ExceptionHandler, UploadedFile, RedirectResponse, HeadersInit, MessageBag, Redirector, ResponseFactory as ResponseFactory$1, BodyInit, Session, Rules, InferValidatedType, RouteName, RouteArguments, CookieJar as CookieJar$1, ConsoleKernel, CommandContext, OptionValue, ClosureCommand as ClosureCommand$1, Command as Command$1, Schedule as Schedule$1, ScheduledEvent, ScheduleHook, Row, ModelInstance, QueryBuilder, DatabaseConnection, DriverName, Operator, DatabaseManager, DatabaseNotification as DatabaseNotification$1, RouteModelResolver, Token, RuleTyping, TypedValidationRule, ValidationRule, InValue, ValidationError, ValidationFactory, Validator as Validator$1, RuleCallback, Encrypter as Encrypter$1, Hasher, Cookie as Cookie$1, SessionHandler, Gate as Gate$1, Authenticatable, AbilityCallback, Credentials, AuthFactory, StatefulGuard, Guard, UserProvider, ModelStatic, AuthenticationError as AuthenticationError$1, PasswordBroker as PasswordBroker$1, PasswordStatus, MustVerifyEmail, Logger, LogLevel, ErrorKind, LogManager as LogManager$1, ListenerClass, Listener as Listener$1, ClassRegistry, CacheManager as CacheManager$1, CacheRepository, Lock, RateLimiter as RateLimiter$1, Filesystem, PutOptions, QueueJob, QueuePayload, Batch as Batch$1, BatchRepository, PendingBatchOptions, FailedJobProvider, FailedJob, Queue as Queue$1, PendingChain as PendingChain$1, PendingBatch as PendingBatch$1, ShouldQueue, MailTransport, OutgoingMessage, SentMessage, Mailer, Address, Mailable as Mailable$1, PendingMail, Envelope, Content, PropCallback, InertiaFactory, InertiaResponse, InertiaPage, InertiaScrollProp, InertiaOnceProp, InertiaSsrGateway, InertiaSsrResponse } from './contracts.js';
2
2
  export { InferRuleType, RouteList, RouteParameter, RouteParameters } from './contracts.js';
3
- import { F as Facade, S as ServiceProvider$1, f as fileType, a as Stringable, C as Collection, L as LazyCollection, O as Operator$1 } from './index.d-WQpfdIbG.js';
4
- export { A as Arr, b as ClassRegistry, c as FacadeStatics, I as ItemNotFoundError, M as MultipleItemsFoundError, d as Str, _ as __, e as app, g as collect, h as config, i as facade, n as now, r as retry, t as tap, v as value } from './index.d-WQpfdIbG.js';
5
- import { B as BusFake, E as EventFake, M as MailFake, N as NotificationFake, Q as QueueFake, S as StorageFake } from './testing-B8NOiQC9.js';
6
- export { C as Component, a as ComponentResult, b as Computed, c as CorruptComponentPayloadError, d as ErrorBag, F as FileNotPreviewableError, I as InvalidLiveRequestError, e as InvalidUploadSignatureError, L as Live, f as LiveComponentManager, g as LiveComponentNotFoundError, h as LiveError, i as LiveProps, j as LiveServiceProvider, k as Locked, l as MethodNotCallableError, O as On, P as PERSISTENT_MIDDLEWARE, m as PREVIEW_URI, n as Paginated, o as Pagination, p as PaginationProps, q as PaginationSource, r as PendingEvent, s as PersistentMiddleware, t as PropertyNotUpdatableError, u as SESSION_URI, T as TEMPORARY_UPLOAD_DEFAULTS, v as TemporaryFileData, w as TemporaryFileNotFoundError, x as TemporaryUploadedFile, y as TestRequestScope, z as Testable, U as UPDATE_URI, A as UPLOAD_URI, D as UploadValidationError, W as WithFileUploads, G as WithPagination, H as componentName, J as live, K as persistentMiddleware } from './testing-B8NOiQC9.js';
3
+ import { F as Facade, S as ServiceProvider$1, f as fileType, a as Stringable, C as Collection, L as LazyCollection, O as Operator$1 } from './index.d-lffxurFs.js';
4
+ export { A as Arr, b as ClassRegistry, c as FacadeStatics, I as ItemNotFoundError, M as MissingPackageError, d as MultipleItemsFoundError, e as Str, _ as __, g as app, h as collect, i as config, j as facade, n as now, r as retry, t as tap, v as value } from './index.d-lffxurFs.js';
5
+ import { B as BusFake, E as EventFake, M as MailFake, N as NotificationFake, Q as QueueFake, S as StorageFake } from './testing-CVpo7aRl.js';
6
+ export { C as Component, a as ComponentResult, b as Computed, c as CorruptComponentPayloadError, d as ErrorBag, F as FileNotPreviewableError, I as InvalidLiveRequestError, e as InvalidUploadSignatureError, L as Live, f as LiveComponentManager, g as LiveComponentNotFoundError, h as LiveError, i as LiveProps, j as LiveServiceProvider, k as Locked, l as MethodNotCallableError, O as On, P as PERSISTENT_MIDDLEWARE, m as PREVIEW_URI, n as Paginated, o as Pagination, p as PaginationProps, q as PaginationSource, r as PendingEvent, s as PersistentMiddleware, t as PropertyNotUpdatableError, u as SESSION_URI, T as TEMPORARY_UPLOAD_DEFAULTS, v as TemporaryFileData, w as TemporaryFileNotFoundError, x as TemporaryUploadedFile, y as TestRequestScope, z as Testable, U as UPDATE_URI, A as UPLOAD_URI, D as UploadAlreadyStoredError, G as UploadValidationError, W as WithFileUploads, H as WithPagination, J as componentName, K as live, R as persistentMiddleware } from './testing-CVpo7aRl.js';
7
7
  import { IncomingMessage, ServerResponse } from 'node:http';
8
8
  import { SpawnOptions, ChildProcess } from 'node:child_process';
9
9
  import { Kysely, RawBuilder, CompiledQuery, QueryResult, SqliteDatabase, SqliteStatement, Dialect } from 'kysely';
@@ -11,7 +11,7 @@ import Redis$1, { Redis } from 'ioredis';
11
11
  import pino from 'pino';
12
12
  import { WriteStream } from 'node:fs';
13
13
  import { Writable } from 'node:stream';
14
- export { C as ClassValue, E as ELEMENT, F as FileViewFinder, a as Fragment, H as HtmlAttributes, b as HtmlString, I as InvalidViewError, L as LiveDirectives, c as LiveEvent, O as OrielElement, P as Props, R as Renderable, S as StyleObject, T as TsxView, V as View, d as ViewComponent, e as ViewEnvironment, f as ViewFactoryImpl, g as ViewNotFoundError, h as ViewRenderError, i as ViewServiceProvider, j as classNames, k as createElement, l as csrfField, m as e, n as isElement, o as isHtmlable, p as methodField, r as raw, q as renderToStream, s as renderToString, t as styleString, v as view } from './jsx-runtime-6um4Mwfb.js';
14
+ export { C as ClassValue, E as ELEMENT, F as FileViewFinder, a as Fragment, H as HtmlAttributes, b as HtmlString, I as InvalidViewError, L as LiveDirectives, c as LiveEvent, O as OrielElement, P as Props, R as Renderable, S as StyleObject, T as TsxView, V as View, d as ViewComponent, e as ViewEnvironment, f as ViewFactoryImpl, g as ViewNotFoundError, h as ViewRenderError, i as ViewServiceProvider, j as classNames, k as createElement, l as csrfField, m as e, n as isElement, o as isHtmlable, p as methodField, r as raw, q as renderToStream, s as renderToString, t as styleString, v as view } from './jsx-runtime-Bc5KJzwb.js';
15
15
 
16
16
  type Key = unknown;
17
17
  type Lifetime = 'transient' | 'singleton' | 'scoped';
@@ -130,7 +130,7 @@ declare class ApplicationBuilder {
130
130
  type LifecycleCallback = (app: Application$2) => void | Promise<void>;
131
131
  declare class Application$1 extends Container implements Application$2 {
132
132
  private readonly base;
133
- readonly version = "0.1.0-alpha.13";
133
+ readonly version = "0.1.0-alpha.14";
134
134
  private readonly providers;
135
135
  private readonly bootingCallbacks;
136
136
  private readonly bootedCallbacks;
@@ -1948,9 +1948,17 @@ interface ConsoleOutput {
1948
1948
  write(text: string): void;
1949
1949
  writeError(text: string): void;
1950
1950
  }
1951
+ /** Ctrl-C at a question, or the input ending with no answer left. The kernel exits 130 for it. */
1952
+ declare class ConsoleAbortedError extends Error {
1953
+ readonly name = "ConsoleAbortedError";
1954
+ constructor();
1955
+ }
1951
1956
  /** Resolves with the line typed, without the trailing newline. */
1952
1957
  interface ConsoleInput {
1953
- question(prompt: string): Promise<string>;
1958
+ /** `hidden` keeps the answer off the screen, in a terminal. */
1959
+ question(prompt: string, options?: {
1960
+ hidden?: boolean;
1961
+ }): Promise<string>;
1954
1962
  /** Releases whatever the input holds open (stdin), once the outermost command has finished. */
1955
1963
  close?(): void;
1956
1964
  }
@@ -1975,7 +1983,9 @@ declare class BufferedConsoleOutput implements ConsoleOutput {
1975
1983
  /**
1976
1984
  * Reads answers from stdin through one readline interface, created on the first prompt and reused after that, so
1977
1985
  * piped input that arrives all at once keeps every line. Lines read ahead of a prompt are queued for the next one.
1978
- * `close()` releases stdin so the process can exit; the next prompt opens a fresh interface.
1986
+ * Hidden questions use the same interface, because a second reader on stdin would be echoed by the first: readline
1987
+ * writes through an output that can be muted while the answer is typed. `close()` releases stdin so the process can
1988
+ * exit; the next prompt opens a fresh interface.
1979
1989
  */
1980
1990
  declare class NodeConsoleInput implements ConsoleInput {
1981
1991
  private readonly input;
@@ -1984,16 +1994,24 @@ declare class NodeConsoleInput implements ConsoleInput {
1984
1994
  private lines;
1985
1995
  private waiting;
1986
1996
  private ended;
1997
+ private muted;
1987
1998
  constructor(input?: NodeJS.ReadableStream, output?: NodeJS.WritableStream);
1988
- question(prompt: string): Promise<string>;
1999
+ question(prompt: string, options?: {
2000
+ hidden?: boolean;
2001
+ }): Promise<string>;
1989
2002
  close(): void;
1990
2003
  private open;
2004
+ private isTerminal;
2005
+ /** What readline writes to: the real output, unless muted, with the width it wraps long lines at. */
2006
+ private screen;
1991
2007
  }
1992
2008
  /** Feeds pre-recorded answers to ask()/confirm()/choice()/secret() in tests, without a TTY. */
1993
2009
  declare class QueuedConsoleInput implements ConsoleInput {
1994
2010
  private readonly queue;
1995
2011
  constructor(answers?: string[]);
1996
- question(_prompt: string): Promise<string>;
2012
+ question(_prompt: string, _options?: {
2013
+ hidden?: boolean;
2014
+ }): Promise<string>;
1997
2015
  }
1998
2016
 
1999
2017
  /**
@@ -2023,7 +2041,7 @@ declare abstract class Command implements CommandContext {
2023
2041
  newLine(count?: number): void;
2024
2042
  table(headers: string[], rows: string[][]): void;
2025
2043
  ask(question: string, defaultValue?: string): Promise<string>;
2026
- /** v1 simplification: reads through the same stream as ask(), without suppressing terminal echo. */
2044
+ /** Asks without showing what's typed, in a terminal. Unlike ask(), the answer isn't trimmed: a secret may start or end with a space. */
2027
2045
  secret(question: string): Promise<string>;
2028
2046
  confirm(question: string, defaultValue?: boolean): Promise<boolean>;
2029
2047
  choice(question: string, choices: string[], defaultIndex?: number): Promise<string>;
@@ -2053,6 +2071,8 @@ declare class Kernel implements ConsoleKernel {
2053
2071
  private readonly defaultInput;
2054
2072
  private readonly defaultOutput;
2055
2073
  private lastOutput;
2074
+ /** The classes of the commands registered as classes: each run makes a new one. */
2075
+ private readonly classes;
2056
2076
  private running;
2057
2077
  private loader;
2058
2078
  private bootstrapping;
@@ -2067,7 +2087,9 @@ declare class Kernel implements ConsoleKernel {
2067
2087
  command(signature: string, handler: (this: CommandContext, ...args: unknown[]) => number | void | Promise<number | void>): ClosureCommand$1;
2068
2088
  all(): Record<string, Command$1>;
2069
2089
  output(): string;
2070
- call(command: string, parameters?: Record<string, unknown>): Promise<number>;
2090
+ call(command: string, parameters?: Record<string, unknown>, options?: {
2091
+ answers?: string[];
2092
+ }): Promise<number>;
2071
2093
  /** @internal Runs a command with the given I/O. Command.call() passes its own, so nested output isn't swallowed. */
2072
2094
  callWithIo(command: string, parameters: Record<string, unknown>, io: ConsoleIo): Promise<number>;
2073
2095
  handle(argv: string[]): Promise<number>;
@@ -2393,10 +2415,14 @@ interface SpawnResult {
2393
2415
  type Spawner = (command: string, args: string[]) => SpawnResult;
2394
2416
  declare class TestCommand extends Command {
2395
2417
  private readonly spawner;
2418
+ /** Whether `oriel` itself runs on Bun: then Vitest does too, as a Bun app has no Node-only drivers. */
2419
+ private readonly onBun;
2396
2420
  /** Paths are passed on to vitest; so is everything after `--` (`oriel test -- --coverage`). */
2397
2421
  readonly signature = "test {args?*} {--filter=}";
2398
2422
  description: string;
2399
- constructor(spawner?: Spawner);
2423
+ constructor(spawner?: Spawner,
2424
+ /** Whether `oriel` itself runs on Bun: then Vitest does too, as a Bun app has no Node-only drivers. */
2425
+ onBun?: () => boolean);
2400
2426
  handle(): Promise<number>;
2401
2427
  }
2402
2428
 
@@ -6093,13 +6119,15 @@ declare class AddQueuedCookiesToResponse implements Middleware {
6093
6119
  * once, outermost in `web`, so every cookie is encrypted exactly once.
6094
6120
  */
6095
6121
  declare class EncryptCookies implements Middleware {
6122
+ #private;
6096
6123
  /** Cookie names that are never encrypted (Laravel 11's $middleware->encryptCookies(except: [...])). */
6097
6124
  static except(cookies: string | string[]): void;
6098
6125
  /** Forget the names added with except() (for tests). */
6099
6126
  static flushState(): void;
6100
6127
  /** Subclasses list cookie names that are not encrypted. */
6101
6128
  protected except: string[];
6102
- protected readonly encrypter: Encrypter$1;
6129
+ /** Resolved when there's a cookie to read or write, so a page that uses none works without APP_KEY. */
6130
+ protected get encrypter(): Encrypter$1;
6103
6131
  isDisabled(name: string): boolean;
6104
6132
  handle(request: HttpRequest, next: Next$1): Promise<Response>;
6105
6133
  protected decrypt(request: HttpRequest): void;
@@ -6216,7 +6244,8 @@ declare class FileSessionHandler implements SessionHandler {
6216
6244
  /**
6217
6245
  * Laravel's DatabaseSessionHandler over the DatabaseManager contract: table `sessions` with `id`, `user_id`,
6218
6246
  * `ip_address`, `user_agent`, `payload` (base64) and `last_activity` (unix seconds). One instance per Store,
6219
- * because `exists` is per-request state.
6247
+ * because `exists` is per-request state. Unlike Laravel's, it keeps the visitor's address and browser only when asked:
6248
+ * Live on a cached page gives anonymous readers a session too.
6220
6249
  */
6221
6250
  declare class DatabaseSessionHandler implements SessionHandler {
6222
6251
  #private;
@@ -6226,9 +6255,12 @@ declare class DatabaseSessionHandler implements SessionHandler {
6226
6255
  /** The current container, for the request (ip, user agent) and the logged-in user. */
6227
6256
  private readonly container;
6228
6257
  private readonly clock;
6258
+ private readonly options;
6229
6259
  constructor(connection: () => DatabaseConnection, table: string, minutes: number,
6230
6260
  /** The current container, for the request (ip, user agent) and the logged-in user. */
6231
- container?: () => Container$1 | undefined, clock?: () => number);
6261
+ container?: () => Container$1 | undefined, clock?: () => number, options?: {
6262
+ clientDetails?: boolean;
6263
+ });
6232
6264
  read(id: string): Promise<string>;
6233
6265
  write(id: string, data: string): Promise<void>;
6234
6266
  destroy(id: string): Promise<void>;
@@ -6290,6 +6322,8 @@ interface SessionConfig {
6290
6322
  secure?: boolean | null;
6291
6323
  http_only?: boolean;
6292
6324
  same_site?: 'lax' | 'strict' | 'none' | null;
6325
+ /** Whether the database driver stores each session's IP address and browser. */
6326
+ client_details?: boolean;
6293
6327
  }
6294
6328
  /** Builds a handler for a custom driver. Called once per Store (per request scope). */
6295
6329
  type SessionHandlerFactory = (container: Container$1, config: SessionConfig) => SessionHandler;
@@ -6403,6 +6437,16 @@ declare class AuthenticationError extends Error implements AuthenticationError$1
6403
6437
  readonly name = "AuthenticationError";
6404
6438
  constructor(message?: string, guards?: string[], redirectTo?: string | undefined);
6405
6439
  }
6440
+ /** The password given to logoutOtherDevices() isn't the user's. */
6441
+ declare class InvalidPasswordError extends Error {
6442
+ readonly name = "InvalidPasswordError";
6443
+ constructor();
6444
+ }
6445
+ /** enableApp() on a user whose authenticator app already works: a new secret would silently stop it. */
6446
+ declare class TwoFactorAppAlreadyEnabledError extends Error {
6447
+ readonly name = "TwoFactorAppAlreadyEnabledError";
6448
+ constructor();
6449
+ }
6406
6450
  /** Laravel's AuthorizationException: 403 by default, or the status a policy chose (denyWithStatus/denyAsNotFound). */
6407
6451
  declare class AuthorizationError extends Error implements OrielError {
6408
6452
  readonly kind: "Authorization";
@@ -6445,6 +6489,18 @@ declare class Logout {
6445
6489
  readonly user: Authenticatable | undefined;
6446
6490
  constructor(guard: string, user: Authenticatable | undefined);
6447
6491
  }
6492
+ /** Fired after a user is logged out on this device only; their other sessions and remember token are untouched. */
6493
+ declare class CurrentDeviceLogout {
6494
+ readonly guard: string;
6495
+ readonly user: Authenticatable | undefined;
6496
+ constructor(guard: string, user: Authenticatable | undefined);
6497
+ }
6498
+ /** Fired by logoutOtherDevices(), once the password is rehashed: the user's other sessions end on their next request. */
6499
+ declare class OtherDeviceLogout {
6500
+ readonly guard: string;
6501
+ readonly user: Authenticatable;
6502
+ constructor(guard: string, user: Authenticatable);
6503
+ }
6448
6504
  /** Fired after a password reset. */
6449
6505
  declare class PasswordReset {
6450
6506
  readonly user: Authenticatable;
@@ -6634,6 +6690,25 @@ declare class SessionGuard implements StatefulGuard {
6634
6690
  loginUsingId(id: unknown, remember?: boolean): Promise<Authenticatable | false>;
6635
6691
  /** Forgets the user, the session key and the remember cookie, and cycles the remember token. */
6636
6692
  logout(): Promise<void>;
6693
+ /** Logs out here only: the remember token isn't cycled, so the user's other remembered devices keep working. */
6694
+ logoutCurrentDevice(): Promise<void>;
6695
+ /**
6696
+ * Ends the user's other sessions, on their next request through `auth.session`, by rehashing the password they gave.
6697
+ * This session stays signed in, and so does this device's remember cookie. Undefined for a guest.
6698
+ */
6699
+ logoutOtherDevices(password: string): Promise<Authenticatable | undefined>;
6700
+ /** @internal Whether this request has a session: a cached page's route leaves StartSession out. */
6701
+ hasStartedSession(): boolean;
6702
+ /**
6703
+ * @internal For `auth.session`: whether the signed-in user's password is the one this session and this device's remember
6704
+ * cookie were made with. A session with no stored hash stores one and carries on.
6705
+ */
6706
+ passwordHashMatches(): boolean;
6707
+ /**
6708
+ * @internal After a request: this session keeps the current password's hash, which covers a login and a new password,
6709
+ * and `before` (the password the request began with) tells when this device's remember cookie needs the new one too.
6710
+ */
6711
+ keepPasswordHash(before?: string): void;
6637
6712
  hasUser(): boolean;
6638
6713
  setUser(user: Authenticatable): void;
6639
6714
  /** Whether the user was authenticated by the remember-me cookie. */
@@ -6681,6 +6756,10 @@ declare class AuthManager implements AuthFactory {
6681
6756
  login(user: Authenticatable, remember?: boolean): Promise<void>;
6682
6757
  loginUsingId(id: unknown, remember?: boolean): Promise<Authenticatable | false>;
6683
6758
  logout(): Promise<void>;
6759
+ /** Logs the default guard out on this device only (the remember token isn't cycled). */
6760
+ logoutCurrentDevice(): Promise<void>;
6761
+ /** Ends the user's other sessions, on their next request through `auth.session`. This one stays signed in. */
6762
+ logoutOtherDevices(password: string): Promise<Authenticatable | undefined>;
6684
6763
  viaRemember(): boolean;
6685
6764
  }
6686
6765
 
@@ -6967,6 +7046,18 @@ declare class Authenticate implements Middleware {
6967
7046
  protected redirectTo(request: HttpRequest): string | undefined;
6968
7047
  }
6969
7048
 
7049
+ /**
7050
+ * Laravel's AuthenticateSession (`auth.session`): a session keeps a keyed hash of the user's password and is signed out
7051
+ * when it no longer matches, so a new password ends the other sessions on every session driver. A session with no hash
7052
+ * stores one and carries on, so nobody is signed out by upgrading, and the request that changes the password stores the
7053
+ * new one, so whoever changed it stays in. A route without a session (a cached page) passes straight through.
7054
+ */
7055
+ declare class AuthenticateSession implements Middleware {
7056
+ protected readonly auth: AuthFactory;
7057
+ protected readonly config: ConfigRepository;
7058
+ handle(request: HttpRequest, next: Next$1): Promise<Response>;
7059
+ }
7060
+
6970
7061
  /** Laravel's RedirectIfAuthenticated (`guest`): signed-in users are sent to their home page. */
6971
7062
  declare class RedirectIfAuthenticated implements Middleware {
6972
7063
  #private;
@@ -7006,6 +7097,8 @@ declare class AuthServiceProvider extends ServiceProvider$1 {
7006
7097
  register(): void;
7007
7098
  boot(): Promise<void>;
7008
7099
  }
7100
+ /** RFC 6238 with SHA-1 and 6 digits: the code for the 30-second step that `at` (ms) falls in, or for `step` itself. */
7101
+ declare function totpCode(secret: string, at: number, step?: number): string;
7009
7102
 
7010
7103
  /** The migration `two-factor:install` writes: the four two-factor columns on `users`. */
7011
7104
  declare const TWO_FACTOR_COLUMNS_MIGRATION = "import { Migration, Schema } from '@orieljs/framework'\n\nexport default class extends Migration {\n async up() {\n await Schema.table('users', (t) => {\n t.text('two_factor_secret').nullable()\n t.text('two_factor_recovery_codes').nullable()\n t.timestamp('two_factor_confirmed_at').nullable()\n t.string('two_factor_method', 10).nullable()\n })\n }\n\n async down() {\n await Schema.table('users', (t) => {\n t.dropColumn('two_factor_secret', 'two_factor_recovery_codes', 'two_factor_confirmed_at', 'two_factor_method')\n })\n }\n}\n";
@@ -7066,13 +7159,16 @@ declare class TwoFactorManager {
7066
7159
  resend(): Promise<boolean>;
7067
7160
  /**
7068
7161
  * Starts setting up an authenticator app: a new secret (unconfirmed, so it doesn't count yet), the `otpauth://` URL
7069
- * and a QR code of it for the app to scan.
7162
+ * and a QR code of it for the app to scan. A user whose app already works must disableApp() first: a new secret would
7163
+ * stop the old app's codes without a word.
7070
7164
  */
7071
7165
  enableApp(user: TwoFactorUser): Promise<{
7072
7166
  secret: string;
7073
7167
  url: string;
7074
7168
  svg: string;
7075
7169
  }>;
7170
+ /** Whether the user's authenticator app works: set up and confirmed. */
7171
+ hasApp(user: TwoFactorUser): boolean;
7076
7172
  /** Confirms the app with a code from it: then it counts, becomes the user's method, and recovery codes are made. */
7077
7173
  confirmApp(user: TwoFactorUser, code: string): Promise<boolean>;
7078
7174
  /** Removes the authenticator app: the secret is forgotten and the user is asked by email again. */
@@ -8024,9 +8120,13 @@ interface S3DiskConfig {
8024
8120
  }
8025
8121
  /** The `s3` disk driver. Every operation is a single S3 API call through the injected client. */
8026
8122
  declare class S3Filesystem implements Filesystem {
8123
+ #private;
8027
8124
  private readonly client;
8028
8125
  private readonly config;
8029
- constructor(client: S3ClientLike, config: S3DiskConfig);
8126
+ /** `client` is the client, or what builds it on the first operation. */
8127
+ constructor(client: S3ClientLike | (() => Promise<S3ClientLike>), config: S3DiskConfig);
8128
+ private resolveClient;
8129
+ private send;
8030
8130
  private head;
8031
8131
  exists(path: string): Promise<boolean>;
8032
8132
  missing(path: string): Promise<boolean>;
@@ -8123,6 +8223,8 @@ interface VercelBlobDiskConfig {
8123
8223
  /** Vercel Blob stores here are public; `private` is refused. */
8124
8224
  visibility?: 'public' | 'private';
8125
8225
  }
8226
+ /** `https://<storeId>.public.blob.vercel-storage.com`, read from a `vercel_blob_rw_<storeId>_<secret>` token. */
8227
+ declare function blobStoreUrl(token: string | undefined): string | undefined;
8126
8228
  /**
8127
8229
  * The `vercel-blob` disk: files in a public Vercel Blob store, which outlive a Vercel function. Every operation is a
8128
8230
  * Blob API call through the injected client. Blob has no real folders: they exist through the files in them.
@@ -9871,4 +9973,4 @@ declare class VercelServiceProvider extends ServiceProvider$1 {
9871
9973
  boot(): void;
9872
9974
  }
9873
9975
 
9874
- export { API_ROUTES_STUB, AboutCommand, AbstractPaginator, AccessGate, AddQueuedCookiesToResponse, type AfterCallback, AllMailersFailedError, AlwaysProp, AnonymousNotifiable, Application, ApplicationBuilder, ArgonHasher, type ArgonOptions, type ArgumentDefinition, ArraySessionHandler, ArrayTransport, Artisan, Attempting, type Attributes$1 as Attributes, type AttributesResolver, Auth, AuthManager, type AuthModel, type AuthModelBase, type AuthModelConstructor, AuthServiceProvider, AuthenticatableModel, Authenticate, AuthenticationError, Authorizable, type AuthorizableConstructor, AuthorizationError, AuthorizationErrorImpl, Authorize, BaseJob, BaseLogger, BasePipeline, BaseRouter, BaseUrlGenerator, Batch, type BatchAttributes, BatchingUnavailableError, BcryptHasher, type BcryptOptions, type BeforeCallback, BelongsTo, BelongsToMany, BindingResolutionError, Blueprint, type BlueprintCommand, BufferedConsoleOutput, Builder, type BuiltInCast, type BuiltinRule, BuiltinRuleObject, type BunDatabase, BunSqliteDatabase, type BunStatement, Bus, Dispatcher as BusDispatcherImpl, BusError, BusServiceProvider, CACHE_TABLE_MIGRATION, CHAIN, Cache, CacheManager, CacheRateLimiter, Repository as CacheRepositoryImpl, CacheServiceProvider, type Store as CacheStore, CallQueuedHandler, CallQueuedListener, type CanResetPassword, type CanResetPasswordUser, type CastDefinition, type CastsAttributes, type ChainSpec, type CipherName, CircularDependencyError, ClassNameMap, ClosureCommand, ClosureKernel, Collection, type Column, type ColumnAttributes, ColumnDefinition, type ColumnInfo, type ColumnRef, type ColumnType, Command, CommandNotFoundError, ComponentNotFoundError, Config, Connection, type ConsoleInput, type ConsoleIo, Kernel as ConsoleKernelImpl, type ConsoleOutput, ConsoleServiceProvider, Container, ContainerNotAvailableError, Controller, ControllerMethodNotFoundError, ConvertEmptyStringsToNull, Cookie, type CookieDefaults, CookieJar, CookieServiceProvider, CookieSessionHandler, CookieValuePrefix, type CreateMigrationOptions, Crypt, Cursor, type CursorPage, CursorPaginator, type CursorPaginatorOptions, DB, DEFAULT_MESSAGES, DailyRotatingStream, DatabaseBatchRepository, type DatabaseCommandContext, type DatabaseConfig, DatabaseConfigError, DatabaseError, DatabaseFailedJobProvider, DatabaseJob, type DatabaseJobRecord, DatabaseLock, DatabaseManagerImpl, DatabaseNotification, DatabaseNotificationChannel, DatabaseNotificationCollection, DatabaseNotificationsRelation, DatabaseQueue, type DatabaseQueueOptions, DatabaseServiceProvider, DatabaseSessionHandler, DatabaseStore, DatabaseTokenRepository, DatabaseUnavailableError, type DatePart, type DateWhereArgs, type DateWhereValue, DecryptError, DeferProp, DiagnosingHealth, type Direction, Dispatchable, type EagerLoadSpec, EloquentCollection, EloquentUserProvider, EmailVerificationRequest, type Encoded, EncryptCookies, EncryptError, EncryptHistory, Encrypter, EncryptionServiceProvider, EnsureEmailIsVerified, type EnumLike$1 as EnumLike, type ErrorClass, ErrorHandler, Event, Dispatcher$1 as EventDispatcherImpl, type EventKey, type EventListenMap, EventServiceProvider, EventsNeedBusDispatcherError, EventsNeedClassRegistryError, ExceptionsConfiguration, type ExpandingRule, ExportError, type ExportOptions, type ExportResult, Expression, Facade, Factory, type FactoryResult, Failed, FailoverTransport, Faker, FakerOverflowError, FileNotFoundError, FileSessionHandler, FileStore, FilesystemManager, FilesystemServiceProvider, ForeignIdColumnDefinition, ForeignKeyDefinition, type ForeignKeyInfo, FormRequest, FormUploadedFile, Gate, type GateAbility, GateResponse, GeneratorCommand, GenericLock, type GlobalScope, Grammar, type GroupAttributes, type GroupHost, GroupRegistrar, type GuardFactory, HandlePrecognitiveRequests, HasApiTokens, HasDatabaseNotifications, type HasDatabaseNotificationsModel, type HasFactory, HasMany, HasManyThrough, HasOne, HasOneOrMany, HasUlids, HasUuids, Hash, HashAlgorithmError, type HashInfo, HashManager, type HasherFactory, type HashingConfig, HashingServiceProvider, type Having, type HealthPage, HelpCommand, type HttpCommandOptions, HttpException, Kernel$1 as HttpKernelImpl, HttpRedirectResponse, HttpRedirector, HttpResponseException, HttpResponseFactory, HttpServerError, HttpServiceProvider, Hub, IncomingRequest, type IncomingRequestOptions, type IndexInfo, type IndexType, Inertia, InertiaError, InertiaHtml, InertiaMiddleware, InertiaPage, Response$1 as InertiaPageResponse, ResponseFactory as InertiaResponseFactory, InertiaServiceProvider, type ValidationErrors as InertiaValidationErrors, InferValidatedType, InvalidCacheConfigError, InvalidCastError, InvalidListenerError, InvalidLogLevelError, InvalidRuleParameterError, InvalidSignatureError, InvalidUrlSignatureError, JOBS_TABLE_MIGRATION, JobClassNotFoundError, type JobContext, type JobMiddleware, JobSerializationError, JoinClause, type JoinType, type JsonWhenCallback, KEY_GENERATE_SIGNATURE, type KernelApp, type KeyGenerateIO, LEVEL_SEVERITY, LazyCollection, type LengthAwarePage, LengthAwarePaginator, ListCommand, type ListenerTuple, type LocalDiskConfig, LocalFilesystem, type LockFactory, LockTimeoutError, Lockout, Log, LogChannelCycleError, LogManager, LogServiceProvider, LogTransport, type LoggedQuery, LogicError, Login, Logout, MIGRATION_CREATE_STUB, MIGRATION_STUB, MIGRATION_UPDATE_STUB, MODEL_EVENTS, Mail, type MailLevel, MailManager, MailMessage, type MailMessageAction, MailNotificationChannel, MailQueueUnavailableError, MailServiceProvider, type MailTransporter, MailUnavailableError, Mailable, MailerImpl, MakeCastCommand, MakeCommandCommand, MakeControllerCommand, MakeEventCommand, MakeFactoryCommand, MakeJobCommand, MakeListenerCommand, MakeMailCommand, MakeMiddlewareCommand, MakeModelCommand, MakeNotificationCommand, MakeObserverCommand, MakePolicyCommand, MakeProviderCommand, MakeRequestCommand, MakeResourceCommand, MakeRuleCommand, MakeSeederCommand, MakeTestCommand, type Manifest, type ManifestChunk, ManuallyFailedError, type Many, MassAssignmentError, MaxAttemptsExceededError, MemoryStore, MergeProp, MessageBagImpl, MethodNotAllowedHttpError, MiddlewareConfiguration, MiddlewareNotFoundError, Migration, MigrationCreator, type MigrationRecord, MigrationRepository, type MigrationStatus, Migrator, type MigratorOptions, MissingAppKeyError, MissingModelError, MissingRecipientError, Model, type ModelBuilder, type ModelClass, type ModelConstructor, type ModelEvent, type ModelListener, ModelNotFoundError, ModelRegistry, type MorphConstraint, MorphMany, MorphOne, MorphTo, MySqlSchemaGrammar, NOTIFICATIONS_TABLE, NOTIFICATIONS_TABLE_MIGRATION, type NewAccessToken, NodeConsoleInput, NodeConsoleOutput, NotDatabaseNotifiableError, NotFoundHttpError, Notifiable, type NotifiableConstructor, Notification, Dispatcher$2 as NotificationDispatcherImpl, NotificationDispatcherUnavailableError, NotificationFacade, NotificationQueueUnavailableError, NotificationsServiceProvider, NullFailedJobProvider, NullLogger, NullQueue, OPERATORS, OnceProp, type OptionDefinition, OptionValue, OptionalProp, type Order, PERSONAL_ACCESS_TOKENS_MIGRATION, type PagePropsFrom, type PaginationLink, Paginator, type PaginatorOptions, type ParsedInput, type ParsedRule, type ParsedSetCookie, type ParsedSignature, Password, PasswordBroker, PasswordBrokerManager, PasswordReset, PasswordRule, PathTraversalError, PendingBatch, PendingChain, PendingDispatch, PersonalAccessToken, PinoLogger, PipelineError, PipelineServiceProvider, Pivot, type PivotIds, type PlainNotificationMail, type PolicyClass, PostgresSchemaGrammar, type PreloadAttributesResolver, PropsResolver, ProviderBootError, ProviderRegisterError, QUEUE_JOB, Builder$1 as QueryBuilder, QueryError, Queue, QueueBase, type QueueCommandContext, QueueError, type QueueJobPayload, Listener as QueueListener, type ListenerConfig as QueueListenerConfig, type ListenerOptions as QueueListenerOptions, type ListenerOutput as QueueListenerOutput, QueueManager, QueueServiceProvider, QueueUnavailableError, Queueable, QueuedConsoleInput, QueuedMailSender, type QueuedMailableFactory, RESTART_CACHE_KEY, RateLimiter, type RawResult, type RecipientOverrides, RecoveryCodeUsed, RedirectIfAuthenticated, RedisJob, RedisLock, RedisQueue, type RedisQueueOptions, RedisRepository, type RedisSessionClient, RedisSessionHandler, RedisStore, RedisTaggedStore, type ReferentialAction, Registered, type RegisteredModel, Relation, type RelationConstraint, type RelationNames, RelationNotFoundError, RelationNotLoadedError, type RelationValue, RenameClasses, type RenderCallback, type RenderedContent, type ReplStarter, type ReportCallback, Repository$1 as Repository, ResetPassword, type ResetPasswordMail, type ResolvedMiddleware, type ResolvedServeOptions, type ResourceMethod, type ResourceRoute, type RollbackOptions, Route, RouteArguments, type RouteAttributes, type RouteBinder, RouteDefinition, type RouteFileCallback, type RouteHandler, type RouteListFilters, type RouteListRow, RouteModelNotFoundError, RouteModelResolverImpl, RouteName, RouteNotDefinedError, type RouteStage, RoutesNotifications, RoutingError, type RoutingOptions, RoutingServiceProvider, Rule, type RuleContext, type RunningServer, type Runtime, type S3ClientLike, type S3DiskConfig, S3Filesystem, SCHEDULE_INTERRUPT_KEY, SSR_RENDER_FAILED, STORAGE_LINK_SIGNATURE, Schedule, ScheduleClearCacheCommand, type ScheduleClock, ScheduleImpl, ScheduleInterruptCommand, ScheduleListCommand, ScheduleNameRequiredError, ScheduleRunCommand, ScheduleWorkCommand, type ScheduleWorkOptions, ScheduledEventImpl, Schema, SchemaBuilder, SchemaBuilderToken, SchemaGrammar, type SchemaStep, type Scope, type ScopeCallback, type ScopeStatic, type Scopes, type ScrollMetadata, ScrollProp, Seeder, type SeederClass, type SelectColumn, SendEmailVerificationNotification, SendQueuedMailable, SendQueuedNotifications, type Serialized, type SerializedObject, type ServeOptions, ServiceProvider$1 as ServiceProvider, SessionFacade as Session, type SessionConfig, SessionGuard, type SessionGuardOptions, type SessionHandlerFactory, SessionManager, SessionMessageBag, SessionServiceProvider, Store$1 as SessionStore, SetCacheHeaders, type SharedPropsFrom, type SimplePage, type SmtpConfig, SmtpTransport, SoftDeletingScope, type SpawnResult, type SpawnWorker, type Spawner, SqliteSchemaGrammar, SsrError, type SsrFailure, HttpGateway as SsrHttpGateway, type StackFrame, StackLogger, StartSession, type State, type StateContext, Storage, type StoredBatchOptions, type StringPipeResolver, Stringable, type SyncChanges, SyncJob, SyncQueue, TWO_FACTOR_COLUMNS_MIGRATION, type TableRebuild, type TagAttributes, TagsNotSupportedError, TestCommand, ThrottleRequests, ThrottleRequestsError, TimeoutExceededError, TinkerCommand, type TinkerOptions, type TinkerRepl, TokenGuard, type TokenGuardOptions, TokenMismatchError, TokenRepository, type TransporterFactory, TrimStrings, TwoFactor, TwoFactorAppDisabled, TwoFactorAppEnabled, TwoFactorAuthenticated, TwoFactorChallenge, TwoFactorChallenged, TwoFactorCode, type TwoFactorConfig, TwoFactorFailed, TwoFactorManager, type TwoFactorMethod, type TwoFactorUser, TypeGenerator, type TypeGeneratorOptions, type TypedRedirector, UNIQUE, UNIQUE_LOCK, USERS_TABLE_MIGRATION, UniqueJobsNeedCacheError, UniqueLock, type UniqueLockSpec, type UniqueSpec, UnknownCacheDriverError, UnknownCacheStoreError, UnknownDiskError, UnknownFilesystemDriverError, UnknownLogChannelError, UnknownLogDriverError, UnknownMailTransportError, UnknownMailerError, UnknownNotificationChannelError, UnknownQueueConnectionError, UnknownQueueDriverError, UnknownValidationRuleError, UnrenderableNotificationDataError, UnrenderableNotificationMailError, UnsupportedCipherError, UnsupportedOperationError, type UriParameter, UrlGenerationError, type UrlResolver, type UserProviderFactory, VERCEL_FUNCTION_LIMIT, ValidateSignature, Validated, ValidationErrorImpl, ValidationException, ValidationFactoryImpl, ValidationServiceProvider, Validator, ValidatorImpl, VercelBlobFilesystem, type VercelBuildOptions, type VercelBuildResult, VercelServiceProvider, type VerifiableUser, Verified, VerifyCsrfToken, VerifyEmail, type VerifyEmailMail, ViewFactoryUnavailableError, Vite, ViteError, ViteHtml, WORKER_DISCOVERY_DIRECTORIES, type Where, type WhereArgs, type WhereBoolean, WithoutOverlapping, Worker, type WorkerListener, type WorkerOptions, abort, abortIf, abortUnless, addApiRouting, allowGuests, applyExceptionCallbacks, applyMiddlewareCallbacks, applyReplacements, auth, back, bcrypt, buildVercelOutput, builtinRules, bunRuntime, cache, castGet, castSet, classNameOf, clientAddress, columnKey, compareRoutes, contentDisposition, cookie, createDailyChannel, createDialect, createPayload, createSingleChannel, createStderrChannel, createToken, csrfToken, currentContainer, currentLogContext, currentRequest, currentVite, databaseConfigDefaults, debugPage, decodePayload, decrypt, defaultAttributeName, defaultListenerOptions, defaultLockFactory, defaultProviders, defaultWorkerOptions, delaySeconds, describeError, deserialize, detectRuntime, discoverClasses, discoverFactories, discoverJobs, discoverListeners, discoverPolicies, dispatch, dispatchRoute, dispatchSync, encodePayload, encrypt, enumValues, env, errorBagFrom, errors, escapeHtml, event, exceedsJsonDepth, expandWildcardKeys, exportSite, extensionFromMime, fake, filterRouteList, formatAddress, formatDate, formatDateTime, formatRouteList, formatTimestamp, fromEntries, generateAppKey, generateModelTypes, getMorphAlias, getMorphedModel, guessTable, hashInfo, healthResponse, inertia, inertiaBody, inertiaHead, inject, ipMatches, isBlank, isBun, isDateCast, isEmptyValue, isEquivalent, isJsonCast, isListenerClass, isListenerTuple, isModel, isPrecognitive, isQueueable, isQueueableListener, isTableRebuild, isUnique, isUploadedFileLike, joinDiskPath, keyGenerateHandler, listenerOptionsFrom, loadRelations, loadRoutesFrom, logger, makeFailedJobProvider, meetsLevel, mergeGroup, mergeLogContext, mergeRecursive, migrationDatePrefix, minimalPage, modelEventName, morphMap, nodeRequestHandler, normalizeAddress, normalizeAddresses, normalizeBackoff, normalizeLists, normalizePath, normalizeUri, old, openSqlite, optionalCookieJar, optionalSession, orderForBindings, parseArgv, parseBracketKey, parseCookieHeader, parseDateTime, parseKey, parseParameters, parseRuleSpec, parseSignature, passwordVerify, prepareValue, queueConfigDefaults, queueOptionsOf, raw as rawSql, rawWithBindings, redirect, registerHttpCommands, registerKeyGenerateCommand, registerMigrationCommands, registerModelTypesCommand, registerQueueCommands, registerStorageLinkCommand, renderContent, renderError, request, requestScope, resolveArguments, resolveDiskPath, resolveMiddleware, resolveMorphClass, resolveOptions, resourceRoutes, response, restoreJob, restoreValue, roundTrip, route, routeListRows, runConsole, runConsoleAndExit, runMiddleware, runSeeder, sanitize, sendEmailVerificationUsing, sendNotification, serialize, serializeContext, serializeCookie, serializeDate, serializeValue, serve, serveBun, serveNode, servePublicFile, session, setClientAddress, stackFrames, statusFor, statusText, storageLinkHandler, substituteBindings, suggest, summarizeValidation, toNotifiableList, toResponse, toWebRequest, tokenableType, transformLeaves, url, usePaginationResolvers, validateRequiredArguments, vite, viteReactRefresh, withHeaders, workerOptionsFrom, writeResponse };
9976
+ export { API_ROUTES_STUB, AboutCommand, AbstractPaginator, AccessGate, AddQueuedCookiesToResponse, type AfterCallback, AllMailersFailedError, AlwaysProp, AnonymousNotifiable, Application, ApplicationBuilder, ArgonHasher, type ArgonOptions, type ArgumentDefinition, ArraySessionHandler, ArrayTransport, Artisan, Attempting, type Attributes$1 as Attributes, type AttributesResolver, Auth, AuthManager, type AuthModel, type AuthModelBase, type AuthModelConstructor, AuthServiceProvider, AuthenticatableModel, Authenticate, AuthenticateSession, AuthenticationError, Authorizable, type AuthorizableConstructor, AuthorizationError, AuthorizationErrorImpl, Authorize, BaseJob, BaseLogger, BasePipeline, BaseRouter, BaseUrlGenerator, Batch, type BatchAttributes, BatchingUnavailableError, BcryptHasher, type BcryptOptions, type BeforeCallback, BelongsTo, BelongsToMany, BindingResolutionError, type BlobClientLike, Blueprint, type BlueprintCommand, BufferedConsoleOutput, Builder, type BuiltInCast, type BuiltinRule, BuiltinRuleObject, type BunDatabase, BunSqliteDatabase, type BunStatement, Bus, Dispatcher as BusDispatcherImpl, BusError, BusServiceProvider, CACHE_TABLE_MIGRATION, CHAIN, Cache, CacheManager, CacheRateLimiter, Repository as CacheRepositoryImpl, CacheServiceProvider, type Store as CacheStore, CallQueuedHandler, CallQueuedListener, type CanResetPassword, type CanResetPasswordUser, type CastDefinition, type CastsAttributes, type ChainSpec, type CipherName, CircularDependencyError, ClassNameMap, ClosureCommand, ClosureKernel, Collection, type Column, type ColumnAttributes, ColumnDefinition, type ColumnInfo, type ColumnRef, type ColumnType, Command, CommandNotFoundError, ComponentNotFoundError, Config, Connection, ConsoleAbortedError, type ConsoleInput, type ConsoleIo, Kernel as ConsoleKernelImpl, type ConsoleOutput, ConsoleServiceProvider, Container, ContainerNotAvailableError, Controller, ControllerMethodNotFoundError, ConvertEmptyStringsToNull, Cookie, type CookieDefaults, CookieJar, CookieServiceProvider, CookieSessionHandler, CookieValuePrefix, type CreateMigrationOptions, Crypt, CurrentDeviceLogout, Cursor, type CursorPage, CursorPaginator, type CursorPaginatorOptions, DB, DEFAULT_MESSAGES, DailyRotatingStream, DatabaseBatchRepository, type DatabaseCommandContext, type DatabaseConfig, DatabaseConfigError, DatabaseError, DatabaseFailedJobProvider, DatabaseJob, type DatabaseJobRecord, DatabaseLock, DatabaseManagerImpl, DatabaseNotification, DatabaseNotificationChannel, DatabaseNotificationCollection, DatabaseNotificationsRelation, DatabaseQueue, type DatabaseQueueOptions, DatabaseServiceProvider, DatabaseSessionHandler, DatabaseStore, DatabaseTokenRepository, DatabaseUnavailableError, type DatePart, type DateWhereArgs, type DateWhereValue, DecryptError, DeferProp, DiagnosingHealth, type Direction, Dispatchable, type EagerLoadSpec, EloquentCollection, EloquentUserProvider, EmailVerificationRequest, type Encoded, EncryptCookies, EncryptError, EncryptHistory, Encrypter, EncryptionServiceProvider, EnsureEmailIsVerified, type EnumLike$1 as EnumLike, type ErrorClass, ErrorHandler, Event, Dispatcher$1 as EventDispatcherImpl, type EventKey, type EventListenMap, EventServiceProvider, EventsNeedBusDispatcherError, EventsNeedClassRegistryError, ExceptionsConfiguration, type ExpandingRule, ExportError, type ExportOptions, type ExportResult, Expression, Facade, Factory, type FactoryResult, Failed, FailoverTransport, Faker, FakerOverflowError, FileNotFoundError, FileSessionHandler, FileStore, FilesystemManager, FilesystemServiceProvider, ForeignIdColumnDefinition, ForeignKeyDefinition, type ForeignKeyInfo, FormRequest, FormUploadedFile, Gate, type GateAbility, GateResponse, GeneratorCommand, GenericLock, type GlobalScope, Grammar, type GroupAttributes, type GroupHost, GroupRegistrar, type GuardFactory, HandlePrecognitiveRequests, HasApiTokens, HasDatabaseNotifications, type HasDatabaseNotificationsModel, type HasFactory, HasMany, HasManyThrough, HasOne, HasOneOrMany, HasUlids, HasUuids, Hash, HashAlgorithmError, type HashInfo, HashManager, type HasherFactory, type HashingConfig, HashingServiceProvider, type Having, type HealthPage, HelpCommand, type HttpCommandOptions, HttpException, Kernel$1 as HttpKernelImpl, HttpRedirectResponse, HttpRedirector, HttpResponseException, HttpResponseFactory, HttpServerError, HttpServiceProvider, Hub, IncomingRequest, type IncomingRequestOptions, type IndexInfo, type IndexType, Inertia, InertiaError, InertiaHtml, InertiaMiddleware, InertiaPage, Response$1 as InertiaPageResponse, ResponseFactory as InertiaResponseFactory, InertiaServiceProvider, type ValidationErrors as InertiaValidationErrors, InferValidatedType, InvalidCacheConfigError, InvalidCastError, InvalidListenerError, InvalidLogLevelError, InvalidPasswordError, InvalidRuleParameterError, InvalidSignatureError, InvalidUrlSignatureError, JOBS_TABLE_MIGRATION, JobClassNotFoundError, type JobContext, type JobMiddleware, JobSerializationError, JoinClause, type JoinType, type JsonWhenCallback, KEY_GENERATE_SIGNATURE, type KernelApp, type KeyGenerateIO, LEVEL_SEVERITY, LazyCollection, type LengthAwarePage, LengthAwarePaginator, ListCommand, type ListenerTuple, type LocalDiskConfig, LocalFilesystem, type LockFactory, LockTimeoutError, Lockout, Log, LogChannelCycleError, LogManager, LogServiceProvider, LogTransport, type LoggedQuery, LogicError, Login, Logout, MIGRATION_CREATE_STUB, MIGRATION_STUB, MIGRATION_UPDATE_STUB, MODEL_EVENTS, Mail, type MailLevel, MailManager, MailMessage, type MailMessageAction, MailNotificationChannel, MailQueueUnavailableError, MailServiceProvider, type MailTransporter, MailUnavailableError, Mailable, MailerImpl, MakeCastCommand, MakeCommandCommand, MakeControllerCommand, MakeEventCommand, MakeFactoryCommand, MakeJobCommand, MakeListenerCommand, MakeMailCommand, MakeMiddlewareCommand, MakeModelCommand, MakeNotificationCommand, MakeObserverCommand, MakePolicyCommand, MakeProviderCommand, MakeRequestCommand, MakeResourceCommand, MakeRuleCommand, MakeSeederCommand, MakeTestCommand, type Manifest, type ManifestChunk, ManuallyFailedError, type Many, MassAssignmentError, MaxAttemptsExceededError, MemoryStore, MergeProp, MessageBagImpl, MethodNotAllowedHttpError, MiddlewareConfiguration, MiddlewareNotFoundError, Migration, MigrationCreator, type MigrationRecord, MigrationRepository, type MigrationStatus, Migrator, type MigratorOptions, MissingAppKeyError, MissingModelError, MissingRecipientError, Model, type ModelBuilder, type ModelClass, type ModelConstructor, type ModelEvent, type ModelListener, ModelNotFoundError, ModelRegistry, type MorphConstraint, MorphMany, MorphOne, MorphTo, MySqlSchemaGrammar, NOTIFICATIONS_TABLE, NOTIFICATIONS_TABLE_MIGRATION, type NewAccessToken, NodeConsoleInput, NodeConsoleOutput, NotDatabaseNotifiableError, NotFoundHttpError, Notifiable, type NotifiableConstructor, Notification, Dispatcher$2 as NotificationDispatcherImpl, NotificationDispatcherUnavailableError, NotificationFacade, NotificationQueueUnavailableError, NotificationsServiceProvider, NullFailedJobProvider, NullLogger, NullQueue, OPERATORS, OnceProp, type OptionDefinition, OptionValue, OptionalProp, type Order, OtherDeviceLogout, PERSONAL_ACCESS_TOKENS_MIGRATION, type PagePropsFrom, type PaginationLink, Paginator, type PaginatorOptions, type ParsedInput, type ParsedRule, type ParsedSetCookie, type ParsedSignature, Password, PasswordBroker, PasswordBrokerManager, PasswordReset, PasswordRule, PathTraversalError, PendingBatch, PendingChain, PendingDispatch, PersonalAccessToken, PinoLogger, PipelineError, PipelineServiceProvider, Pivot, type PivotIds, type PlainNotificationMail, type PolicyClass, PostgresSchemaGrammar, type PreloadAttributesResolver, PropsResolver, ProviderBootError, ProviderRegisterError, QUEUE_JOB, Builder$1 as QueryBuilder, QueryError, Queue, QueueBase, type QueueCommandContext, QueueError, type QueueJobPayload, Listener as QueueListener, type ListenerConfig as QueueListenerConfig, type ListenerOptions as QueueListenerOptions, type ListenerOutput as QueueListenerOutput, QueueManager, QueueServiceProvider, QueueUnavailableError, Queueable, QueuedConsoleInput, QueuedMailSender, type QueuedMailableFactory, RESTART_CACHE_KEY, RateLimiter, type RawResult, type RecipientOverrides, RecoveryCodeUsed, RedirectIfAuthenticated, RedisJob, RedisLock, RedisQueue, type RedisQueueOptions, RedisRepository, type RedisSessionClient, RedisSessionHandler, RedisStore, RedisTaggedStore, type ReferentialAction, Registered, type RegisteredModel, Relation, type RelationConstraint, type RelationNames, RelationNotFoundError, RelationNotLoadedError, type RelationValue, RenameClasses, type RenderCallback, type RenderedContent, type ReplStarter, type ReportCallback, Repository$1 as Repository, ResetPassword, type ResetPasswordMail, type ResolvedMiddleware, type ResolvedServeOptions, type ResourceMethod, type ResourceRoute, type RollbackOptions, Route, RouteArguments, type RouteAttributes, type RouteBinder, RouteDefinition, type RouteFileCallback, type RouteHandler, type RouteListFilters, type RouteListRow, RouteModelNotFoundError, RouteModelResolverImpl, RouteName, RouteNotDefinedError, type RouteStage, RoutesNotifications, RoutingError, type RoutingOptions, RoutingServiceProvider, Rule, type RuleContext, type RunningServer, type Runtime, type S3ClientLike, type S3DiskConfig, S3Filesystem, SCHEDULE_INTERRUPT_KEY, SSR_RENDER_FAILED, STORAGE_LINK_SIGNATURE, Schedule, ScheduleClearCacheCommand, type ScheduleClock, ScheduleImpl, ScheduleInterruptCommand, ScheduleListCommand, ScheduleNameRequiredError, ScheduleRunCommand, ScheduleWorkCommand, type ScheduleWorkOptions, ScheduledEventImpl, Schema, SchemaBuilder, SchemaBuilderToken, SchemaGrammar, type SchemaStep, type Scope, type ScopeCallback, type ScopeStatic, type Scopes, type ScrollMetadata, ScrollProp, Seeder, type SeederClass, type SelectColumn, SendEmailVerificationNotification, SendQueuedMailable, SendQueuedNotifications, type Serialized, type SerializedObject, type ServeOptions, ServiceProvider$1 as ServiceProvider, SessionFacade as Session, type SessionConfig, SessionGuard, type SessionGuardOptions, type SessionHandlerFactory, SessionManager, SessionMessageBag, SessionServiceProvider, Store$1 as SessionStore, SetCacheHeaders, type SharedPropsFrom, type SimplePage, type SmtpConfig, SmtpTransport, SoftDeletingScope, type SpawnResult, type SpawnWorker, type Spawner, SqliteSchemaGrammar, SsrError, type SsrFailure, HttpGateway as SsrHttpGateway, type StackFrame, StackLogger, StartSession, type State, type StateContext, Storage, type StoredBatchOptions, type StringPipeResolver, Stringable, type SyncChanges, SyncJob, SyncQueue, TWO_FACTOR_COLUMNS_MIGRATION, type TableRebuild, type TagAttributes, TagsNotSupportedError, TestCommand, ThrottleRequests, ThrottleRequestsError, TimeoutExceededError, TinkerCommand, type TinkerOptions, type TinkerRepl, TokenGuard, type TokenGuardOptions, TokenMismatchError, TokenRepository, type TransporterFactory, TrimStrings, TwoFactor, TwoFactorAppAlreadyEnabledError, TwoFactorAppDisabled, TwoFactorAppEnabled, TwoFactorAuthenticated, TwoFactorChallenge, TwoFactorChallenged, TwoFactorCode, type TwoFactorConfig, TwoFactorFailed, TwoFactorManager, type TwoFactorMethod, type TwoFactorUser, TypeGenerator, type TypeGeneratorOptions, type TypedRedirector, UNIQUE, UNIQUE_LOCK, USERS_TABLE_MIGRATION, UniqueJobsNeedCacheError, UniqueLock, type UniqueLockSpec, type UniqueSpec, UnknownCacheDriverError, UnknownCacheStoreError, UnknownDiskError, UnknownFilesystemDriverError, UnknownLogChannelError, UnknownLogDriverError, UnknownMailTransportError, UnknownMailerError, UnknownNotificationChannelError, UnknownQueueConnectionError, UnknownQueueDriverError, UnknownValidationRuleError, UnrenderableNotificationDataError, UnrenderableNotificationMailError, UnsupportedCipherError, UnsupportedOperationError, type UriParameter, UrlGenerationError, type UrlResolver, type UserProviderFactory, VERCEL_FUNCTION_LIMIT, ValidateSignature, Validated, ValidationErrorImpl, ValidationException, ValidationFactoryImpl, ValidationServiceProvider, Validator, ValidatorImpl, type VercelBlobDiskConfig, VercelBlobFilesystem, type VercelBuildOptions, type VercelBuildResult, VercelServiceProvider, type VerifiableUser, Verified, VerifyCsrfToken, VerifyEmail, type VerifyEmailMail, ViewFactoryUnavailableError, Vite, ViteError, ViteHtml, WORKER_DISCOVERY_DIRECTORIES, type Where, type WhereArgs, type WhereBoolean, WithoutOverlapping, Worker, type WorkerListener, type WorkerOptions, abort, abortIf, abortUnless, addApiRouting, allowGuests, applyExceptionCallbacks, applyMiddlewareCallbacks, applyReplacements, auth, back, bcrypt, blobStoreUrl, buildVercelOutput, builtinRules, bunRuntime, cache, castGet, castSet, classNameOf, clientAddress, columnKey, compareRoutes, contentDisposition, cookie, createDailyChannel, createDialect, createPayload, createSingleChannel, createStderrChannel, createToken, csrfToken, currentContainer, currentLogContext, currentRequest, currentVite, databaseConfigDefaults, debugPage, decodePayload, decrypt, defaultAttributeName, defaultListenerOptions, defaultLockFactory, defaultProviders, defaultWorkerOptions, delaySeconds, describeError, deserialize, detectRuntime, discoverClasses, discoverFactories, discoverJobs, discoverListeners, discoverPolicies, dispatch, dispatchRoute, dispatchSync, encodePayload, encrypt, enumValues, env, errorBagFrom, errors, escapeHtml, event, exceedsJsonDepth, expandWildcardKeys, exportSite, extensionFromMime, fake, filterRouteList, formatAddress, formatDate, formatDateTime, formatRouteList, formatTimestamp, fromEntries, generateAppKey, generateModelTypes, getMorphAlias, getMorphedModel, guessTable, hashInfo, healthResponse, inertia, inertiaBody, inertiaHead, inject, ipMatches, isBlank, isBun, isDateCast, isEmptyValue, isEquivalent, isJsonCast, isListenerClass, isListenerTuple, isModel, isPrecognitive, isQueueable, isQueueableListener, isTableRebuild, isUnique, isUploadedFileLike, joinDiskPath, keyGenerateHandler, listenerOptionsFrom, loadRelations, loadRoutesFrom, logger, makeFailedJobProvider, meetsLevel, mergeGroup, mergeLogContext, mergeRecursive, migrationDatePrefix, minimalPage, modelEventName, morphMap, nodeRequestHandler, normalizeAddress, normalizeAddresses, normalizeBackoff, normalizeLists, normalizePath, normalizeUri, old, openSqlite, optionalCookieJar, optionalSession, orderForBindings, parseArgv, parseBracketKey, parseCookieHeader, parseDateTime, parseKey, parseParameters, parseRuleSpec, parseSignature, passwordVerify, prepareValue, queueConfigDefaults, queueOptionsOf, raw as rawSql, rawWithBindings, redirect, registerHttpCommands, registerKeyGenerateCommand, registerMigrationCommands, registerModelTypesCommand, registerQueueCommands, registerStorageLinkCommand, renderContent, renderError, request, requestScope, resolveArguments, resolveDiskPath, resolveMiddleware, resolveMorphClass, resolveOptions, resourceRoutes, response, restoreJob, restoreValue, roundTrip, route, routeListRows, runConsole, runConsoleAndExit, runMiddleware, runSeeder, sanitize, sendEmailVerificationUsing, sendNotification, serialize, serializeContext, serializeCookie, serializeDate, serializeValue, serve, serveBun, serveNode, servePublicFile, session, setClientAddress, stackFrames, statusFor, statusText, storageLinkHandler, substituteBindings, suggest, summarizeValidation, toNotifiableList, toResponse, toWebRequest, tokenableType, totpCode, transformLeaves, url, usePaginationResolvers, validateRequiredArguments, vite, viteReactRefresh, withHeaders, workerOptionsFrom, writeResponse };