Where generated code is written. A single string is used for both server and client (the client SDK lands in an sdk/ subdirectory); an object sets each separately.
delete?
DeleteConfig
—
Soft/hard delete behavior.
numericMode?
"string" | "number" | "auto"
"auto"
How numeric columns are typed. "auto" maps int2/int4 → number and int8/numeric → string (to avoid precision loss).
includeMethodsDepth?
number
2
How deep to generate eager-loading include helper methods.
skipJunctionTables?
boolean
true
Skip junction (M:N) tables when generating include methods.
serverFramework?
"hono" | "express" | "fastify"
"hono"
Server framework for the generated routes. Only "hono" is implemented today; "express"/"fastify" are reserved.
apiPathPrefix?
string
"/v1"
Path prefix for the generated table routes.
maxLimit?
number
1000
Maximum allowed value for the limit parameter in list operations. Set to 0 to disable the cap.
auth?
AuthConfigInput
—
API authentication. Omit for no auth. Accepts the API-key shorthand or a full AuthConfig.
pullToken?
string
—
Token protecting the /_psdk/* SDK-distribution endpoints. Use the "env:VAR_NAME" form. If unset, those endpoints are public.
pull?
PullConfig
—
Pull configuration for client repos that consume a generated SDK over HTTP.
useJsExtensions?
boolean
false
Emit .js import extensions in generated server code (needed for Vercel Edge).
useJsExtensionsClient?
boolean
false
Emit .js import extensions in generated client SDK code (for certain bundlers/runtimes).
clean?
boolean
true
Delete generated files for tables/items no longer present in the schema.
Identifies the calling service. Must match the JWT iss claim.
secret
string
—
Signing secret. MUST use the "env:VAR_NAME" form (e.g. "env:JWT_SECRET"). SECURITY: never inline process.env.X or a literal secret here. The generator rewrites "env:JWT_SECRET" to process.env.JWT_SECRET in the generated code.