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

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 (56) hide show
  1. package/dist/{chunk-OTCTQVDQ.js → chunk-7GPMFMS7.js} +349 -67
  2. package/dist/chunk-7GPMFMS7.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-6GMXKQ6O.js → chunk-FVI6X3VJ.js} +55 -2
  6. package/dist/chunk-FVI6X3VJ.js.map +1 -0
  7. package/dist/{chunk-ZRTWDJKD.js → chunk-GCMPAXIK.js} +98 -4
  8. package/dist/chunk-GCMPAXIK.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 +233 -37
  13. package/dist/index.js +823 -307
  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 +17 -2
  25. package/docs/deployment.md +12 -3
  26. package/docs/eloquent-factories.md +3 -0
  27. package/docs/eloquent-observers.md +2 -0
  28. package/docs/eloquent-relationships.md +8 -0
  29. package/docs/eloquent.md +6 -0
  30. package/docs/encryption.md +2 -0
  31. package/docs/export.md +3 -3
  32. package/docs/inertia.md +2 -1
  33. package/docs/installation.md +4 -1
  34. package/docs/lifecycle.md +5 -4
  35. package/docs/live-tests.md +20 -0
  36. package/docs/live.md +2 -0
  37. package/docs/mail.md +4 -2
  38. package/docs/navigation.json +4 -0
  39. package/docs/pagination.md +10 -0
  40. package/docs/providers.md +1 -1
  41. package/docs/queues.md +6 -0
  42. package/docs/responses.md +2 -1
  43. package/docs/routing.md +33 -0
  44. package/docs/scheduling.md +2 -0
  45. package/docs/session.md +19 -2
  46. package/docs/starter-kits.md +4 -0
  47. package/docs/storage.md +21 -3
  48. package/docs/testing.md +9 -6
  49. package/docs/two-factor.md +14 -4
  50. package/docs/upgrade.md +73 -0
  51. package/docs/views.md +2 -0
  52. package/docs/vite.md +19 -1
  53. package/package.json +54 -38
  54. package/dist/chunk-6GMXKQ6O.js.map +0 -1
  55. package/dist/chunk-OTCTQVDQ.js.map +0 -1
  56. 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.15";
134
134
  private readonly providers;
135
135
  private readonly bootingCallbacks;
136
136
  private readonly bootedCallbacks;
@@ -1605,6 +1605,7 @@ interface BunRuntime {
1605
1605
  serve(options: {
1606
1606
  port: number;
1607
1607
  hostname: string;
1608
+ idleTimeout?: number;
1608
1609
  fetch(request: Request, server: BunServer): Promise<Response>;
1609
1610
  error(error: Error): Response;
1610
1611
  }): BunServer;
@@ -1789,6 +1790,8 @@ declare class ScheduledEventImpl implements ScheduledEvent {
1789
1790
  /** The minute slot this server won with onOneServer(): its repetitions in that minute keep it. */
1790
1791
  private wonServerSlot;
1791
1792
  private overlapExpiryMinutes;
1793
+ /** The overlap lock a run in progress holds, so schedule:work can release it when it is stopped. */
1794
+ private heldOverlapLock;
1792
1795
  private oneServer;
1793
1796
  private background;
1794
1797
  private eventName;
@@ -1905,6 +1908,11 @@ declare class ScheduledEventImpl implements ScheduledEvent {
1905
1908
  * repetition's own moment), from which the next repetition counts.
1906
1909
  */
1907
1910
  run(startedAt?: Date, checkedAt?: Date): Promise<void>;
1911
+ /**
1912
+ * @internal schedule:work, stopped by a signal while this event runs: releases the overlap lock the run holds, so the
1913
+ * next start isn't blocked until the lock expires (24 hours by default).
1914
+ */
1915
+ releaseOverlapLock(): Promise<void>;
1908
1916
  /**
1909
1917
  * Runs the event and says whether it failed. A command fails when it exits non-zero, and a closure when it throws or
1910
1918
  * returns false, as Laravel's CallbackEvent does. A job whose handler returns false failing is Oriel's own choice:
@@ -1948,9 +1956,17 @@ interface ConsoleOutput {
1948
1956
  write(text: string): void;
1949
1957
  writeError(text: string): void;
1950
1958
  }
1959
+ /** Ctrl-C at a question, or the input ending with no answer left. The kernel exits 130 for it. */
1960
+ declare class ConsoleAbortedError extends Error {
1961
+ readonly name = "ConsoleAbortedError";
1962
+ constructor();
1963
+ }
1951
1964
  /** Resolves with the line typed, without the trailing newline. */
1952
1965
  interface ConsoleInput {
1953
- question(prompt: string): Promise<string>;
1966
+ /** `hidden` keeps the answer off the screen, in a terminal. */
1967
+ question(prompt: string, options?: {
1968
+ hidden?: boolean;
1969
+ }): Promise<string>;
1954
1970
  /** Releases whatever the input holds open (stdin), once the outermost command has finished. */
1955
1971
  close?(): void;
1956
1972
  }
@@ -1975,7 +1991,9 @@ declare class BufferedConsoleOutput implements ConsoleOutput {
1975
1991
  /**
1976
1992
  * Reads answers from stdin through one readline interface, created on the first prompt and reused after that, so
1977
1993
  * 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.
1994
+ * Hidden questions use the same interface, because a second reader on stdin would be echoed by the first: readline
1995
+ * writes through an output that can be muted while the answer is typed. `close()` releases stdin so the process can
1996
+ * exit; the next prompt opens a fresh interface.
1979
1997
  */
1980
1998
  declare class NodeConsoleInput implements ConsoleInput {
1981
1999
  private readonly input;
@@ -1984,16 +2002,24 @@ declare class NodeConsoleInput implements ConsoleInput {
1984
2002
  private lines;
1985
2003
  private waiting;
1986
2004
  private ended;
2005
+ private muted;
1987
2006
  constructor(input?: NodeJS.ReadableStream, output?: NodeJS.WritableStream);
1988
- question(prompt: string): Promise<string>;
2007
+ question(prompt: string, options?: {
2008
+ hidden?: boolean;
2009
+ }): Promise<string>;
1989
2010
  close(): void;
1990
2011
  private open;
2012
+ private isTerminal;
2013
+ /** What readline writes to: the real output, unless muted, with the width it wraps long lines at. */
2014
+ private screen;
1991
2015
  }
1992
2016
  /** Feeds pre-recorded answers to ask()/confirm()/choice()/secret() in tests, without a TTY. */
1993
2017
  declare class QueuedConsoleInput implements ConsoleInput {
1994
2018
  private readonly queue;
1995
2019
  constructor(answers?: string[]);
1996
- question(_prompt: string): Promise<string>;
2020
+ question(_prompt: string, _options?: {
2021
+ hidden?: boolean;
2022
+ }): Promise<string>;
1997
2023
  }
1998
2024
 
1999
2025
  /**
@@ -2023,7 +2049,7 @@ declare abstract class Command implements CommandContext {
2023
2049
  newLine(count?: number): void;
2024
2050
  table(headers: string[], rows: string[][]): void;
2025
2051
  ask(question: string, defaultValue?: string): Promise<string>;
2026
- /** v1 simplification: reads through the same stream as ask(), without suppressing terminal echo. */
2052
+ /** 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
2053
  secret(question: string): Promise<string>;
2028
2054
  confirm(question: string, defaultValue?: boolean): Promise<boolean>;
2029
2055
  choice(question: string, choices: string[], defaultIndex?: number): Promise<string>;
@@ -2053,6 +2079,8 @@ declare class Kernel implements ConsoleKernel {
2053
2079
  private readonly defaultInput;
2054
2080
  private readonly defaultOutput;
2055
2081
  private lastOutput;
2082
+ /** The classes of the commands registered as classes: each run makes a new one. */
2083
+ private readonly classes;
2056
2084
  private running;
2057
2085
  private loader;
2058
2086
  private bootstrapping;
@@ -2067,7 +2095,9 @@ declare class Kernel implements ConsoleKernel {
2067
2095
  command(signature: string, handler: (this: CommandContext, ...args: unknown[]) => number | void | Promise<number | void>): ClosureCommand$1;
2068
2096
  all(): Record<string, Command$1>;
2069
2097
  output(): string;
2070
- call(command: string, parameters?: Record<string, unknown>): Promise<number>;
2098
+ call(command: string, parameters?: Record<string, unknown>, options?: {
2099
+ answers?: string[];
2100
+ }): Promise<number>;
2071
2101
  /** @internal Runs a command with the given I/O. Command.call() passes its own, so nested output isn't swallowed. */
2072
2102
  callWithIo(command: string, parameters: Record<string, unknown>, io: ConsoleIo): Promise<number>;
2073
2103
  handle(argv: string[]): Promise<number>;
@@ -2353,6 +2383,8 @@ declare const SCHEDULE_INTERRUPT_KEY = "oriel:schedule:interrupt";
2353
2383
  interface ScheduleClock {
2354
2384
  now: () => number;
2355
2385
  sleep: (ms: number) => Promise<void>;
2386
+ /** schedule:work, once a signal stopped it: no further task starts. */
2387
+ stopped?: () => boolean;
2356
2388
  }
2357
2389
 
2358
2390
  declare class ScheduleListCommand extends Command {
@@ -2370,6 +2402,8 @@ declare class ScheduleRunCommand extends Command {
2370
2402
  handle(): Promise<number>;
2371
2403
  }
2372
2404
 
2405
+ /** Where SIGINT and SIGTERM come from: the process, or a test's emitter. */
2406
+ type Signals = Pick<NodeJS.EventEmitter, 'once' | 'off'>;
2373
2407
  interface ScheduleWorkOptions {
2374
2408
  /** Overridable so tests don't wait on a real timer. */
2375
2409
  sleep?: (ms: number) => Promise<void>;
@@ -2377,13 +2411,20 @@ interface ScheduleWorkOptions {
2377
2411
  signal?: AbortSignal;
2378
2412
  /** Overridable so tests control the clock (milliseconds since the epoch). */
2379
2413
  now?: () => number;
2414
+ /** Overridable so tests can send SIGINT and SIGTERM. */
2415
+ signals?: Signals;
2380
2416
  }
2381
2417
  declare class ScheduleWorkCommand extends Command {
2382
2418
  private readonly workOptions;
2383
2419
  readonly signature = "schedule:work";
2384
2420
  description: string;
2385
2421
  constructor(workOptions?: ScheduleWorkOptions);
2422
+ /**
2423
+ * Ctrl-C (SIGINT) or a deploy's SIGTERM stops it: no task starts after the signal, the overlap locks of the tasks still
2424
+ * running are released, and the command ends with 0. A task still running isn't waited for.
2425
+ */
2386
2426
  handle(): Promise<number>;
2427
+ private work;
2387
2428
  }
2388
2429
 
2389
2430
  interface SpawnResult {
@@ -2393,10 +2434,14 @@ interface SpawnResult {
2393
2434
  type Spawner = (command: string, args: string[]) => SpawnResult;
2394
2435
  declare class TestCommand extends Command {
2395
2436
  private readonly spawner;
2437
+ /** Whether `oriel` itself runs on Bun: then Vitest does too, as a Bun app has no Node-only drivers. */
2438
+ private readonly onBun;
2396
2439
  /** Paths are passed on to vitest; so is everything after `--` (`oriel test -- --coverage`). */
2397
2440
  readonly signature = "test {args?*} {--filter=}";
2398
2441
  description: string;
2399
- constructor(spawner?: Spawner);
2442
+ constructor(spawner?: Spawner,
2443
+ /** Whether `oriel` itself runs on Bun: then Vitest does too, as a Bun app has no Node-only drivers. */
2444
+ onBun?: () => boolean);
2400
2445
  handle(): Promise<number>;
2401
2446
  }
2402
2447
 
@@ -3043,6 +3088,7 @@ declare class Connection implements DatabaseConnection {
3043
3088
  protected readonly db: Kysely<any>;
3044
3089
  private readonly context;
3045
3090
  private readonly pinned;
3091
+ private savepoints;
3046
3092
  private loggingQueries;
3047
3093
  private queryLog;
3048
3094
  constructor(name: string, config: ConnectionConfig$1);
@@ -3275,7 +3321,12 @@ declare class Grammar {
3275
3321
  parameter(value: unknown): Sql;
3276
3322
  operator(operator: string): string;
3277
3323
  columnize(columns: ReadonlyArray<string | Expression>): Sql;
3278
- compileSelect(query: Builder$1<unknown>): Sql;
3324
+ compileSelect(query: Builder$1<unknown>, extraColumn?: Sql): Sql;
3325
+ /**
3326
+ * Laravel 11's compileGroupLimit(): the query numbers its rows per `column` in its own order, and an outer query keeps
3327
+ * those inside the limit and offset, in row-number order. SQLite 3.25+, MySQL 8 and PostgreSQL have window functions.
3328
+ */
3329
+ compileGroupLimit(query: Builder$1<unknown>): Sql;
3279
3330
  /** Everything after the select list: from, joins, where, group by, having, order by, limit/offset, lock. */
3280
3331
  compileComponents(query: Builder$1<unknown>): Sql;
3281
3332
  compileOrders(query: Builder$1<unknown>): Sql | undefined;
@@ -3299,7 +3350,10 @@ declare class Grammar {
3299
3350
  compileHavings(havings: readonly Having[]): Sql | undefined;
3300
3351
  compileLimitOffset(limit: number | undefined, offset: number | undefined): Sql | undefined;
3301
3352
  compileLock(mode: 'update' | 'share' | undefined): Sql | undefined;
3302
- /** `select count(*) as aggregate …`. Orders, limit and offset are dropped; grouped or distinct queries are wrapped. */
3353
+ /**
3354
+ * `select count(*) as aggregate …`. Orders, limit and offset are dropped. Grouped or distinct queries, and those with a
3355
+ * `having` (which may name a selected alias, withCount()'s `comments_count`), are wrapped, keeping their columns.
3356
+ */
3303
3357
  compileAggregate(query: Builder$1<unknown>, fn: string, column: string | Expression): Sql;
3304
3358
  compileExists(query: Builder$1<unknown>): Sql;
3305
3359
  compileInsert(query: Builder$1<unknown>, rows: readonly Row[]): Sql;
@@ -3427,6 +3481,12 @@ declare class Builder$1<T = Row> implements QueryBuilder<T> {
3427
3481
  orders: Order[];
3428
3482
  limitValue: number | undefined;
3429
3483
  offsetValue: number | undefined;
3484
+ /** A limit and offset per value of `column` (each parent of an eager load), compiled as a window (limitPerGroup()). */
3485
+ groupLimit: {
3486
+ column: string;
3487
+ limit: number | undefined;
3488
+ offset: number | undefined;
3489
+ } | undefined;
3430
3490
  lockMode: 'update' | 'share' | undefined;
3431
3491
  constructor(connection: Connection, table?: string | Expression);
3432
3492
  from(table: string | Expression): this;
@@ -3537,6 +3597,11 @@ declare class Builder$1<T = Row> implements QueryBuilder<T> {
3537
3597
  protected newCollection(items: T[]): Collection<T>;
3538
3598
  /** The raw rows, without a Collection around them. */
3539
3599
  runSelect(): Promise<T[]>;
3600
+ /**
3601
+ * @internal Eager loading (Laravel 11's groupLimit()): the limit and offset set so far apply to each value of `column`,
3602
+ * the parent's key, instead of to the whole query. Compiled as row_number() over (partition by …).
3603
+ */
3604
+ limitPerGroup(column: string): this;
3540
3605
  first(): Promise<T | undefined>;
3541
3606
  find(id: unknown, keyName?: string): Promise<T | undefined>;
3542
3607
  value<V = unknown>(column: string): Promise<V | undefined>;
@@ -3658,6 +3723,8 @@ declare class DatabaseManagerImpl implements DatabaseManager {
3658
3723
  private readonly config;
3659
3724
  private readonly connections;
3660
3725
  private defaultName;
3726
+ /** usingConnection()'s name, for its own async context only: requests running beside it keep theirs. */
3727
+ private readonly using;
3661
3728
  /** Pass the config, or a function that reads it (the provider reads config('database') lazily). */
3662
3729
  constructor(config: DatabaseConfig | (() => DatabaseConfig));
3663
3730
  private settings;
@@ -3667,8 +3734,8 @@ declare class DatabaseManagerImpl implements DatabaseManager {
3667
3734
  /** Overrides config('database.default'); undefined clears the override. */
3668
3735
  setDefaultConnection(name: string | undefined): void;
3669
3736
  /**
3670
- * Runs `callback` with `name` as the default connection (Laravel's usingConnection()), then restores the previous
3671
- * override, or none, so the default follows config('database.default') again. Without a name, just runs it.
3737
+ * Runs `callback` with `name` as the default connection (Laravel's usingConnection()), for the callback's own async
3738
+ * context only: other requests running meanwhile keep their default. Without a name, just runs it.
3672
3739
  */
3673
3740
  usingConnection<T>(name: string | undefined, callback: () => Promise<T>): Promise<T>;
3674
3741
  /** The connections opened so far. */
@@ -3824,12 +3891,6 @@ declare class EloquentCollection<M extends Model = Model> extends Collection<M>
3824
3891
  toQuery(): Builder<M>;
3825
3892
  }
3826
3893
 
3827
- /**
3828
- * A relation is the related model's query builder, constrained to the parent: post.comments() is a
3829
- * Builder<Comment> with `where comments.post_id = ?`, so every builder method (where, orderBy, paginate, a local
3830
- * scope, …) works on it. Subclasses add eager loading (addEagerConstraints/initRelation/match) and the existence
3831
- * queries behind has()/whereHas()/withCount().
3832
- */
3833
3894
  declare abstract class Relation<R extends Model = Model, P extends Model = Model, Result = unknown> extends Builder<R> {
3834
3895
  readonly parent: P;
3835
3896
  /** The name the relation is loaded under (set when resolved by name, for eager loading and associate()). */
@@ -3840,6 +3901,20 @@ declare abstract class Relation<R extends Model = Model, P extends Model = Model
3840
3901
  protected constructor(related: R, parent: P);
3841
3902
  getParent(): P;
3842
3903
  getRelated(): R;
3904
+ /**
3905
+ * When the related table is the parent's own (a category's children, a user's followers), the existence query reads it
3906
+ * under an alias, `oriel_reserved_<n>`, so its columns aren't the outer row's. The related model takes the alias as its
3907
+ * table, so its qualified columns (keys, soft deletes, a constraint's qualifyColumn()) follow. Returns the alias, or
3908
+ * undefined when the tables differ.
3909
+ */
3910
+ protected aliasSelfTable(query: Builder<R>): string | undefined;
3911
+ /**
3912
+ * @internal After an eager load's constraint: a limit() or offset() set there applies to each parent, as in Laravel 11,
3913
+ * on the relations that know the column holding the parent's key.
3914
+ */
3915
+ limitEagerPerParent(): void;
3916
+ /** The column of the eager query holding each row's parent key; undefined where a per-parent limit makes no sense. */
3917
+ protected eagerPartitionColumn(): string | undefined;
3843
3918
  /** Subclasses call this last in their constructor: adds the per-parent constraints unless eager loading. */
3844
3919
  protected init(): void;
3845
3920
  /** The constraints for one parent: where comments.post_id = post.id. */
@@ -4050,7 +4125,11 @@ declare class Builder<M extends Model = Model> extends Builder$1<M> {
4050
4125
  pluck<V = unknown>(column: Column<M>): Promise<Collection<V>>;
4051
4126
  /** Whether `id` can't be one of the model's unique ids (not a UUID for HasUuids): it matches no row. */
4052
4127
  protected isMalformedKey(id: unknown): boolean;
4053
- /** A malformed unique id (HasUuids, HasUlids) finds nothing without a query, as route model binding does. */
4128
+ /**
4129
+ * A model by its key, or undefined; with an array of keys, the models found, as a collection (Laravel's find()). A
4130
+ * malformed unique id (HasUuids, HasUlids) finds nothing without a query, as route model binding does.
4131
+ */
4132
+ find(ids: readonly unknown[]): Promise<EloquentCollection<M>>;
4054
4133
  find(id: unknown): Promise<M | undefined>;
4055
4134
  findMany(ids: readonly unknown[]): Promise<EloquentCollection<M>>;
4056
4135
  /** find(), or ModelNotFoundError (a 404). With an array, every id must exist. */
@@ -4144,8 +4223,9 @@ interface HasRelationship {
4144
4223
  interface ForRelationship {
4145
4224
  parent: RelatedFactory | Model;
4146
4225
  relationship: string;
4147
- resolved?: Model;
4148
4226
  }
4227
+ /** The for() parents one make()/create()/raw() call has resolved: shared by that call's models, made again by the next. */
4228
+ type ResolvedParents = Map<ForRelationship, Model>;
4149
4229
  /** The builder state newInstance() copies and changes. */
4150
4230
  interface FactoryState<M extends Model> {
4151
4231
  countValue: number | undefined;
@@ -4189,7 +4269,11 @@ declare abstract class Factory<M extends Model = Model> {
4189
4269
  trashed(): this;
4190
4270
  /** Creates related models for each created model: has(Post.factory().count(3)) (relationship default: 'posts'). */
4191
4271
  has(factory: RelatedFactory, relationship?: string, pivot?: Row): this;
4192
- /** Sets a belongsTo parent: for(User.factory()) or for(user) (relationship default: 'user'). Created once. */
4272
+ /**
4273
+ * Sets a belongsTo parent: for(User.factory()) or for(user) (relationship default: 'user'). A factory parent is made
4274
+ * once per make()/create() call, for all of its models, and again by the next call, so a factory kept in a variable
4275
+ * never points at a parent an earlier test rolled back.
4276
+ */
4193
4277
  for(parent: RelatedFactory | Model, relationship?: string): this;
4194
4278
  afterMaking(callback: (model: M) => unknown): this;
4195
4279
  afterCreating(callback: (model: M) => unknown): this;
@@ -4206,7 +4290,7 @@ declare abstract class Factory<M extends Model = Model> {
4206
4290
  protected newInstance(changes: Partial<FactoryState<M>>): this;
4207
4291
  protected makeModels(attributes: Row): Promise<M[]>;
4208
4292
  /** definition() + states + overrides + for() parents, with factory and function values expanded. */
4209
- protected attributesFor(overrides: Row, index: number): Promise<Row>;
4293
+ protected attributesFor(overrides: Row, index: number, parents?: ResolvedParents): Promise<Row>;
4210
4294
  private parentAttributes;
4211
4295
  private createChildren;
4212
4296
  private relationOn;
@@ -4289,6 +4373,7 @@ declare class BelongsToMany<R extends Model, P extends Model = Model> extends Re
4289
4373
  getResults(): Promise<EloquentCollection<R>>;
4290
4374
  initRelation(models: P[], relation: string): P[];
4291
4375
  match(models: P[], results: R[], relation: string): P[];
4376
+ protected eagerPartitionColumn(): string;
4292
4377
  getRelationExistenceQuery(query: Builder<R>, _parentQuery: Builder<P>, columns?: ColumnRef[]): Builder<R>;
4293
4378
  /** Inserts pivot rows for ids (or models, or { id: attributes }), with shared extra attributes. */
4294
4379
  attach(ids: PivotIds, attributes?: Row): Promise<void>;
@@ -4383,6 +4468,7 @@ declare abstract class HasOneOrMany<R extends Model, P extends Model, Result> ex
4383
4468
  protected setForeignAttributes(model: R): R;
4384
4469
  saveMany(models: Iterable<R>): Promise<R[]>;
4385
4470
  createMany(records: Row[]): Promise<R[]>;
4471
+ protected eagerPartitionColumn(): string;
4386
4472
  getRelationExistenceQuery(query: Builder<R>, _parentQuery: Builder<P>, columns?: ColumnRef[]): Builder<R>;
4387
4473
  }
4388
4474
 
@@ -4652,6 +4738,7 @@ declare class Model implements ModelInstance {
4652
4738
  static onlyTrashed<C extends typeof Model>(this: C): ModelBuilder<C>;
4653
4739
  static withoutTrashed<C extends typeof Model>(this: C): ModelBuilder<C>;
4654
4740
  static all<C extends typeof Model>(this: C): Promise<EloquentCollection<Instance<C>>>;
4741
+ static find<C extends typeof Model>(this: C, ids: readonly unknown[]): Promise<EloquentCollection<Instance<C>>>;
4655
4742
  static find<C extends typeof Model>(this: C, id: unknown): Promise<Instance<C> | undefined>;
4656
4743
  static findOrFail<C extends typeof Model>(this: C, ids: readonly unknown[]): Promise<EloquentCollection<Instance<C>>>;
4657
4744
  static findOrFail<C extends typeof Model>(this: C, id: unknown): Promise<Instance<C>>;
@@ -6093,13 +6180,15 @@ declare class AddQueuedCookiesToResponse implements Middleware {
6093
6180
  * once, outermost in `web`, so every cookie is encrypted exactly once.
6094
6181
  */
6095
6182
  declare class EncryptCookies implements Middleware {
6183
+ #private;
6096
6184
  /** Cookie names that are never encrypted (Laravel 11's $middleware->encryptCookies(except: [...])). */
6097
6185
  static except(cookies: string | string[]): void;
6098
6186
  /** Forget the names added with except() (for tests). */
6099
6187
  static flushState(): void;
6100
6188
  /** Subclasses list cookie names that are not encrypted. */
6101
6189
  protected except: string[];
6102
- protected readonly encrypter: Encrypter$1;
6190
+ /** Resolved when there's a cookie to read or write, so a page that uses none works without APP_KEY. */
6191
+ protected get encrypter(): Encrypter$1;
6103
6192
  isDisabled(name: string): boolean;
6104
6193
  handle(request: HttpRequest, next: Next$1): Promise<Response>;
6105
6194
  protected decrypt(request: HttpRequest): void;
@@ -6216,7 +6305,8 @@ declare class FileSessionHandler implements SessionHandler {
6216
6305
  /**
6217
6306
  * Laravel's DatabaseSessionHandler over the DatabaseManager contract: table `sessions` with `id`, `user_id`,
6218
6307
  * `ip_address`, `user_agent`, `payload` (base64) and `last_activity` (unix seconds). One instance per Store,
6219
- * because `exists` is per-request state.
6308
+ * because `exists` is per-request state. Unlike Laravel's, it keeps the visitor's address and browser only when asked:
6309
+ * Live on a cached page gives anonymous readers a session too.
6220
6310
  */
6221
6311
  declare class DatabaseSessionHandler implements SessionHandler {
6222
6312
  #private;
@@ -6226,9 +6316,12 @@ declare class DatabaseSessionHandler implements SessionHandler {
6226
6316
  /** The current container, for the request (ip, user agent) and the logged-in user. */
6227
6317
  private readonly container;
6228
6318
  private readonly clock;
6319
+ private readonly options;
6229
6320
  constructor(connection: () => DatabaseConnection, table: string, minutes: number,
6230
6321
  /** The current container, for the request (ip, user agent) and the logged-in user. */
6231
- container?: () => Container$1 | undefined, clock?: () => number);
6322
+ container?: () => Container$1 | undefined, clock?: () => number, options?: {
6323
+ clientDetails?: boolean;
6324
+ });
6232
6325
  read(id: string): Promise<string>;
6233
6326
  write(id: string, data: string): Promise<void>;
6234
6327
  destroy(id: string): Promise<void>;
@@ -6290,6 +6383,8 @@ interface SessionConfig {
6290
6383
  secure?: boolean | null;
6291
6384
  http_only?: boolean;
6292
6385
  same_site?: 'lax' | 'strict' | 'none' | null;
6386
+ /** Whether the database driver stores each session's IP address and browser. */
6387
+ client_details?: boolean;
6293
6388
  }
6294
6389
  /** Builds a handler for a custom driver. Called once per Store (per request scope). */
6295
6390
  type SessionHandlerFactory = (container: Container$1, config: SessionConfig) => SessionHandler;
@@ -6403,6 +6498,16 @@ declare class AuthenticationError extends Error implements AuthenticationError$1
6403
6498
  readonly name = "AuthenticationError";
6404
6499
  constructor(message?: string, guards?: string[], redirectTo?: string | undefined);
6405
6500
  }
6501
+ /** The password given to logoutOtherDevices() isn't the user's. */
6502
+ declare class InvalidPasswordError extends Error {
6503
+ readonly name = "InvalidPasswordError";
6504
+ constructor();
6505
+ }
6506
+ /** enableApp() on a user whose authenticator app already works: a new secret would silently stop it. */
6507
+ declare class TwoFactorAppAlreadyEnabledError extends Error {
6508
+ readonly name = "TwoFactorAppAlreadyEnabledError";
6509
+ constructor();
6510
+ }
6406
6511
  /** Laravel's AuthorizationException: 403 by default, or the status a policy chose (denyWithStatus/denyAsNotFound). */
6407
6512
  declare class AuthorizationError extends Error implements OrielError {
6408
6513
  readonly kind: "Authorization";
@@ -6445,6 +6550,18 @@ declare class Logout {
6445
6550
  readonly user: Authenticatable | undefined;
6446
6551
  constructor(guard: string, user: Authenticatable | undefined);
6447
6552
  }
6553
+ /** Fired after a user is logged out on this device only; their other sessions and remember token are untouched. */
6554
+ declare class CurrentDeviceLogout {
6555
+ readonly guard: string;
6556
+ readonly user: Authenticatable | undefined;
6557
+ constructor(guard: string, user: Authenticatable | undefined);
6558
+ }
6559
+ /** Fired by logoutOtherDevices(), once the password is rehashed: the user's other sessions end on their next request. */
6560
+ declare class OtherDeviceLogout {
6561
+ readonly guard: string;
6562
+ readonly user: Authenticatable;
6563
+ constructor(guard: string, user: Authenticatable);
6564
+ }
6448
6565
  /** Fired after a password reset. */
6449
6566
  declare class PasswordReset {
6450
6567
  readonly user: Authenticatable;
@@ -6634,6 +6751,35 @@ declare class SessionGuard implements StatefulGuard {
6634
6751
  loginUsingId(id: unknown, remember?: boolean): Promise<Authenticatable | false>;
6635
6752
  /** Forgets the user, the session key and the remember cookie, and cycles the remember token. */
6636
6753
  logout(): Promise<void>;
6754
+ /** Logs out here only: the remember token isn't cycled, so the user's other remembered devices keep working. */
6755
+ logoutCurrentDevice(): Promise<void>;
6756
+ /**
6757
+ * Ends the user's other sessions, on their next request through `auth.session`, by rehashing the password they gave.
6758
+ * This session stays signed in, and so does this device's remember cookie. Undefined for a guest.
6759
+ */
6760
+ logoutOtherDevices(password: string): Promise<Authenticatable | undefined>;
6761
+ /** @internal Whether this request has a session: a cached page's route leaves StartSession out. */
6762
+ hasStartedSession(): boolean;
6763
+ /**
6764
+ * @internal For `auth.session`: whether the signed-in user's password is the one this session and this device's remember
6765
+ * cookie were made with. A session with no stored hash stores one and carries on.
6766
+ */
6767
+ passwordHashMatches(): boolean;
6768
+ /**
6769
+ * @internal After a request: this session keeps the current password's hash, which covers a login and a new password,
6770
+ * and `before` (the password the request began with) tells when this device's remember cookie needs the new one too.
6771
+ */
6772
+ keepPasswordHash(before?: string): void;
6773
+ /**
6774
+ * @internal After the password checked out: rehash it when the hasher's settings changed (hashing.rehash_on_login).
6775
+ * attempt() and the two-factor sign-in both call it.
6776
+ */
6777
+ rehashIfRequired(user: Authenticatable, credentials: Credentials): Promise<void>;
6778
+ /**
6779
+ * @internal A saved model that is this guard's user (same class and key) with a different password becomes the user,
6780
+ * so a password saved on a freshly loaded instance, not on request().user(), is the one this session keeps.
6781
+ */
6782
+ takeSavedUser(model: unknown): void;
6637
6783
  hasUser(): boolean;
6638
6784
  setUser(user: Authenticatable): void;
6639
6785
  /** Whether the user was authenticated by the remember-me cookie. */
@@ -6667,6 +6813,12 @@ declare class AuthManager implements AuthFactory {
6667
6813
  provider(driver: string, factory: UserProviderFactory): void;
6668
6814
  /** The user provider named in config('auth.providers') (default: auth.defaults.provider ?? 'users'). */
6669
6815
  createUserProvider(name?: string): UserProvider;
6816
+ /**
6817
+ * @internal A model saved in the current scope (a request, a job): each session guard already resolved there takes it
6818
+ * when it is its signed-in user with a new password, so `auth.session` keeps the hash the request saved. Resolves no
6819
+ * guard of its own.
6820
+ */
6821
+ userSaved(model: unknown): void;
6670
6822
  /** Forget the resolved guards of the current scope (tests). */
6671
6823
  forgetGuards(): void;
6672
6824
  user<T extends Authenticatable = Authenticatable>(): Promise<T | undefined>;
@@ -6681,6 +6833,10 @@ declare class AuthManager implements AuthFactory {
6681
6833
  login(user: Authenticatable, remember?: boolean): Promise<void>;
6682
6834
  loginUsingId(id: unknown, remember?: boolean): Promise<Authenticatable | false>;
6683
6835
  logout(): Promise<void>;
6836
+ /** Logs the default guard out on this device only (the remember token isn't cycled). */
6837
+ logoutCurrentDevice(): Promise<void>;
6838
+ /** Ends the user's other sessions, on their next request through `auth.session`. This one stays signed in. */
6839
+ logoutOtherDevices(password: string): Promise<Authenticatable | undefined>;
6684
6840
  viaRemember(): boolean;
6685
6841
  }
6686
6842
 
@@ -6967,6 +7123,18 @@ declare class Authenticate implements Middleware {
6967
7123
  protected redirectTo(request: HttpRequest): string | undefined;
6968
7124
  }
6969
7125
 
7126
+ /**
7127
+ * Laravel's AuthenticateSession (`auth.session`): a session keeps a keyed hash of the user's password and is signed out
7128
+ * when it no longer matches, so a new password ends the other sessions on every session driver. A session with no hash
7129
+ * stores one and carries on, so nobody is signed out by upgrading, and the request that changes the password stores the
7130
+ * new one, so whoever changed it stays in. A route without a session (a cached page) passes straight through.
7131
+ */
7132
+ declare class AuthenticateSession implements Middleware {
7133
+ protected readonly auth: AuthFactory;
7134
+ protected readonly config: ConfigRepository;
7135
+ handle(request: HttpRequest, next: Next$1): Promise<Response>;
7136
+ }
7137
+
6970
7138
  /** Laravel's RedirectIfAuthenticated (`guest`): signed-in users are sent to their home page. */
6971
7139
  declare class RedirectIfAuthenticated implements Middleware {
6972
7140
  #private;
@@ -7006,6 +7174,8 @@ declare class AuthServiceProvider extends ServiceProvider$1 {
7006
7174
  register(): void;
7007
7175
  boot(): Promise<void>;
7008
7176
  }
7177
+ /** RFC 6238 with SHA-1 and 6 digits: the code for the 30-second step that `at` (ms) falls in, or for `step` itself. */
7178
+ declare function totpCode(secret: string, at: number, step?: number): string;
7009
7179
 
7010
7180
  /** The migration `two-factor:install` writes: the four two-factor columns on `users`. */
7011
7181
  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 +7236,16 @@ declare class TwoFactorManager {
7066
7236
  resend(): Promise<boolean>;
7067
7237
  /**
7068
7238
  * 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.
7239
+ * and a QR code of it for the app to scan. A user whose app already works must disableApp() first: a new secret would
7240
+ * stop the old app's codes without a word.
7070
7241
  */
7071
7242
  enableApp(user: TwoFactorUser): Promise<{
7072
7243
  secret: string;
7073
7244
  url: string;
7074
7245
  svg: string;
7075
7246
  }>;
7247
+ /** Whether the user's authenticator app works: set up and confirmed. */
7248
+ hasApp(user: TwoFactorUser): boolean;
7076
7249
  /** Confirms the app with a code from it: then it counts, becomes the user's method, and recovery codes are made. */
7077
7250
  confirmApp(user: TwoFactorUser, code: string): Promise<boolean>;
7078
7251
  /** Removes the authenticator app: the secret is forgotten and the user is asked by email again. */
@@ -7668,6 +7841,10 @@ declare class DatabaseStore implements Store {
7668
7841
  increment(key: string, by: number, attempt?: number): Promise<number>;
7669
7842
  decrement(key: string, by: number): Promise<number>;
7670
7843
  forget(key: string): Promise<boolean>;
7844
+ /**
7845
+ * Deletes this store's keys: those starting with its prefix (every row without one). The prefix's `%` and `_` are
7846
+ * escaped, so another app's keys in the same table, `appXcache_…` beside `app_cache_…`, stay.
7847
+ */
7671
7848
  flush(): Promise<boolean>;
7672
7849
  }
7673
7850
 
@@ -8024,9 +8201,13 @@ interface S3DiskConfig {
8024
8201
  }
8025
8202
  /** The `s3` disk driver. Every operation is a single S3 API call through the injected client. */
8026
8203
  declare class S3Filesystem implements Filesystem {
8204
+ #private;
8027
8205
  private readonly client;
8028
8206
  private readonly config;
8029
- constructor(client: S3ClientLike, config: S3DiskConfig);
8207
+ /** `client` is the client, or what builds it on the first operation. */
8208
+ constructor(client: S3ClientLike | (() => Promise<S3ClientLike>), config: S3DiskConfig);
8209
+ private resolveClient;
8210
+ private send;
8030
8211
  private head;
8031
8212
  exists(path: string): Promise<boolean>;
8032
8213
  missing(path: string): Promise<boolean>;
@@ -8123,6 +8304,8 @@ interface VercelBlobDiskConfig {
8123
8304
  /** Vercel Blob stores here are public; `private` is refused. */
8124
8305
  visibility?: 'public' | 'private';
8125
8306
  }
8307
+ /** `https://<storeId>.public.blob.vercel-storage.com`, read from a `vercel_blob_rw_<storeId>_<secret>` token. */
8308
+ declare function blobStoreUrl(token: string | undefined): string | undefined;
8126
8309
  /**
8127
8310
  * The `vercel-blob` disk: files in a public Vercel Blob store, which outlive a Vercel function. Every operation is a
8128
8311
  * Blob API call through the injected client. Blob has no real folders: they exist through the files in them.
@@ -8288,8 +8471,14 @@ declare class CallQueuedHandler {
8288
8471
  call(job: BaseJob): Promise<void>;
8289
8472
  /** Called by BaseJob.fail() after the job was deleted. */
8290
8473
  failed(job: BaseJob, error: unknown): Promise<void>;
8291
- /** Dispatches a callback job (chain catch, batch then/catch/finally) through the Bus, or runs it inline. */
8292
- dispatchCallback(callback: Job): Promise<void>;
8474
+ /**
8475
+ * Dispatches a callback job (chain catch, batch then/catch/finally) through the Bus, or runs it inline. It goes to
8476
+ * `target`'s connection and queue (the chain's or the batch's) unless it names its own.
8477
+ */
8478
+ dispatchCallback(callback: Job, target?: {
8479
+ connection?: string;
8480
+ queue?: string;
8481
+ }): Promise<void>;
8293
8482
  private handleModelNotFound;
8294
8483
  private dispatchThroughMiddleware;
8295
8484
  private dispatchNextJobInChain;
@@ -9803,10 +9992,17 @@ type SerializedObject<T> = Simplify<{
9803
9992
  } & {
9804
9993
  [K in OptionalKeys<T> as K extends string ? K : never]?: Serialized<Exclude<Unwrap<T[K]>, undefined>>;
9805
9994
  }>;
9806
- /** A model's generated column types (types/models.d.ts declares `$attributes`), or never for anything else. */
9995
+ /**
9996
+ * A model's generated column types (types/models.d.ts declares `$attributes`) without its hidden ones (`$hidden`, which
9997
+ * toJSON() leaves out), or never for anything else.
9998
+ */
9807
9999
  type ModelAttributes<T> = T extends {
9808
10000
  $attributes?: infer A;
9809
- } ? (unknown extends A ? never : NonNullable<A>) : never;
10001
+ } ? (unknown extends A ? never : Omit<NonNullable<A>, ModelHidden<T>>) : never;
10002
+ /** The names of a model's hidden columns, from types/models.d.ts. */
10003
+ type ModelHidden<T> = T extends {
10004
+ $hidden?: infer H;
10005
+ } ? (unknown extends H ? never : Extract<NonNullable<H>, string>) : never;
9810
10006
  /** What a prop value looks like on the page. */
9811
10007
  type Serialized<T> = T extends string | number | boolean | null ? T : T extends undefined | symbol | bigint ? never : T extends Date ? string : T extends {
9812
10008
  readonly kind: string;
@@ -9871,4 +10067,4 @@ declare class VercelServiceProvider extends ServiceProvider$1 {
9871
10067
  boot(): void;
9872
10068
  }
9873
10069
 
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 };
10070
+ 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 };