@palbase/backend 34.0.0 → 34.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/bin/palbase-backend.cjs +275 -30
- package/dist/bin/palbase-backend.cjs.map +1 -1
- package/dist/bin/palbase-backend.js +4 -4
- package/dist/{chunk-SEM36BWY.js → chunk-5UGPXKMJ.js} +60 -12
- package/dist/chunk-5UGPXKMJ.js.map +1 -0
- package/dist/{chunk-FOWA7PF4.js → chunk-P7MGSAFT.js} +6 -1
- package/dist/{chunk-FOWA7PF4.js.map → chunk-P7MGSAFT.js.map} +1 -1
- package/dist/{chunk-YX7UA7VC.js → chunk-X2UYIXDS.js} +8 -2
- package/dist/chunk-X2UYIXDS.js.map +1 -0
- package/dist/{chunk-MNGZE2MM.js → chunk-XZPDPYVY.js} +279 -34
- package/dist/chunk-XZPDPYVY.js.map +1 -0
- package/dist/{chunk-LOGL2ZHD.js → chunk-YO5GYM73.js} +2 -2
- package/dist/db/index.cjs +34 -10
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.js +2 -2
- package/dist/{endpoint-DpNUx-ON.d.ts → endpoint-BXPdsTA5.d.ts} +56 -2
- package/dist/{endpoint-kYgEHrrV.d.cts → endpoint-DqhUP7RT.d.cts} +56 -2
- package/dist/engine/index.cjs +275 -30
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.cts +3 -3
- package/dist/engine/index.d.ts +3 -3
- package/dist/engine/index.js +4 -4
- package/dist/{index-pnDsEfxJ.d.cts → index-Co0Hj_aO.d.cts} +2 -2
- package/dist/{index-JrHqNsjQ.d.ts → index-MhCL7ll4.d.ts} +2 -2
- package/dist/index.cjs +79 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/openapi/index.d.cts +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{registry-BcOd8Zhf.d.cts → registry-BkIVHPzB.d.cts} +1 -1
- package/dist/{registry-BoX5iNyY.d.ts → registry-CvGLR5j1.d.ts} +1 -1
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.d.cts +1 -1
- package/dist/test/index.d.ts +1 -1
- package/dist/test/index.js +2 -2
- package/dist/test/index.js.map +1 -1
- package/docs/auth.md +58 -0
- package/docs/llms-full.txt +73 -0
- package/docs/schema.md +15 -0
- package/package.json +15 -15
- package/template/db/public.ts +12 -0
- package/template/scripts/test.sh +0 -0
- package/dist/chunk-MNGZE2MM.js.map +0 -1
- package/dist/chunk-SEM36BWY.js.map +0 -1
- package/dist/chunk-YX7UA7VC.js.map +0 -1
- /package/dist/{chunk-LOGL2ZHD.js.map → chunk-YO5GYM73.js.map} +0 -0
package/dist/db/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PreparedRead, c3 as QueryDatabase, U as EnvQueryDatabase, C as CompiledRead, F as ColumnMap, ck as TableHandle, cS as WhereFilter,
|
|
2
|
-
export { q as AnyColumn, r as AtomicDatabase, s as AtomicOptions, y as ColumnBuilder, z as ColumnDef, G as ColumnType, i as CommandOptions, D as DatabaseBudget, d as DatabaseDiagnostics, c as DatabaseDiagnosticsOptions, K as DatabaseQueryEvent, L as DatabaseWorkload, O as EXTENSION_DEPENDENCIES, Q as EmbeddingModelRef, E as EnvServiceDatabase, X as EnvTypedDatabase, a8 as InsertManyOptions, a9 as InsertShape, ae as Materialized, al as OnDeleteAction, an as PALBASE_EXTENSIONS, g as Page, ap as PageInfo, aq as PageInput, ar as PageNavigation, a_ as PalbaseExtension, bX as PolicyBuilder, bY as PolicyCommand, bZ as PolicyDef, c0 as PolicyMode, c2 as QueryColumnContract, c5 as RawConstraintDef, f as RawPageOptions, c7 as Ref, c9 as RowShape, S as SchemaDef, ci as TABLE_META, cj as TableDef, cl as TableInput, T as TransactionIsolation, cn as TxColumnExpr, co as TxInsertShape, cq as TxNow, cr as TxPlan, h as TxPlanBody, cs as TxPlanError, ct as TxPlanHandle, cu as TxPlanOpResult, cv as TxPlanRejection, j as TxPlanResponse, cw as TxRefError, cx as TxRow, cy as TxRows, cz as TxSelectOptions, cA as TxSetShape, cC as TxTable, cD as TxTables, cE as TxWhere, cK as TypedDB, cL as TypedTable, cM as TypedTx, cP as UniqueWhere, cU as WorkloadOptions, cZ as bigint, c_ as boolean,
|
|
1
|
+
import { P as PreparedRead, c3 as QueryDatabase, U as EnvQueryDatabase, C as CompiledRead, F as ColumnMap, ck as TableHandle, cS as WhereFilter, dy as ColValue, a2 as FindManyOpts } from '../endpoint-DqhUP7RT.cjs';
|
|
2
|
+
export { q as AnyColumn, r as AtomicDatabase, s as AtomicOptions, y as ColumnBuilder, z as ColumnDef, G as ColumnType, i as CommandOptions, D as DatabaseBudget, d as DatabaseDiagnostics, c as DatabaseDiagnosticsOptions, K as DatabaseQueryEvent, L as DatabaseWorkload, O as EXTENSION_DEPENDENCIES, Q as EmbeddingModelRef, E as EnvServiceDatabase, X as EnvTypedDatabase, a8 as InsertManyOptions, a9 as InsertShape, ae as Materialized, al as OnDeleteAction, an as PALBASE_EXTENSIONS, g as Page, ap as PageInfo, aq as PageInput, ar as PageNavigation, a_ as PalbaseExtension, bX as PolicyBuilder, bY as PolicyCommand, bZ as PolicyDef, c0 as PolicyMode, c2 as QueryColumnContract, c5 as RawConstraintDef, f as RawPageOptions, c7 as Ref, c9 as RowShape, S as SchemaDef, ci as TABLE_META, cj as TableDef, cl as TableInput, T as TransactionIsolation, cn as TxColumnExpr, co as TxInsertShape, cq as TxNow, cr as TxPlan, h as TxPlanBody, cs as TxPlanError, ct as TxPlanHandle, cu as TxPlanOpResult, cv as TxPlanRejection, j as TxPlanResponse, cw as TxRefError, cx as TxRow, cy as TxRows, cz as TxSelectOptions, cA as TxSetShape, cC as TxTable, cD as TxTables, cE as TxWhere, cK as TypedDB, cL as TypedTable, cM as TypedTx, cP as UniqueWhere, cU as WorkloadOptions, cZ as bigint, c_ as boolean, d1 as dec, d4 as defineSchema, d5 as defineTable, d6 as defineWorkload, d7 as enumType, d9 as inc, dc as installationRef, dd as integer, de as isPalbaseExtension, dg as jsonb, dh as makeTypedDB, di as now, dm as openai, dn as ownedByUser, dp as policy, dq as raw, ds as text, dt as timestamp, du as userRef, dv as uuid, dw as vector } from '../endpoint-DqhUP7RT.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../stack.cjs';
|
|
5
5
|
import './env.cjs';
|
package/dist/db/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PreparedRead, c3 as QueryDatabase, U as EnvQueryDatabase, C as CompiledRead, F as ColumnMap, ck as TableHandle, cS as WhereFilter,
|
|
2
|
-
export { q as AnyColumn, r as AtomicDatabase, s as AtomicOptions, y as ColumnBuilder, z as ColumnDef, G as ColumnType, i as CommandOptions, D as DatabaseBudget, d as DatabaseDiagnostics, c as DatabaseDiagnosticsOptions, K as DatabaseQueryEvent, L as DatabaseWorkload, O as EXTENSION_DEPENDENCIES, Q as EmbeddingModelRef, E as EnvServiceDatabase, X as EnvTypedDatabase, a8 as InsertManyOptions, a9 as InsertShape, ae as Materialized, al as OnDeleteAction, an as PALBASE_EXTENSIONS, g as Page, ap as PageInfo, aq as PageInput, ar as PageNavigation, a_ as PalbaseExtension, bX as PolicyBuilder, bY as PolicyCommand, bZ as PolicyDef, c0 as PolicyMode, c2 as QueryColumnContract, c5 as RawConstraintDef, f as RawPageOptions, c7 as Ref, c9 as RowShape, S as SchemaDef, ci as TABLE_META, cj as TableDef, cl as TableInput, T as TransactionIsolation, cn as TxColumnExpr, co as TxInsertShape, cq as TxNow, cr as TxPlan, h as TxPlanBody, cs as TxPlanError, ct as TxPlanHandle, cu as TxPlanOpResult, cv as TxPlanRejection, j as TxPlanResponse, cw as TxRefError, cx as TxRow, cy as TxRows, cz as TxSelectOptions, cA as TxSetShape, cC as TxTable, cD as TxTables, cE as TxWhere, cK as TypedDB, cL as TypedTable, cM as TypedTx, cP as UniqueWhere, cU as WorkloadOptions, cZ as bigint, c_ as boolean,
|
|
1
|
+
import { P as PreparedRead, c3 as QueryDatabase, U as EnvQueryDatabase, C as CompiledRead, F as ColumnMap, ck as TableHandle, cS as WhereFilter, dy as ColValue, a2 as FindManyOpts } from '../endpoint-BXPdsTA5.js';
|
|
2
|
+
export { q as AnyColumn, r as AtomicDatabase, s as AtomicOptions, y as ColumnBuilder, z as ColumnDef, G as ColumnType, i as CommandOptions, D as DatabaseBudget, d as DatabaseDiagnostics, c as DatabaseDiagnosticsOptions, K as DatabaseQueryEvent, L as DatabaseWorkload, O as EXTENSION_DEPENDENCIES, Q as EmbeddingModelRef, E as EnvServiceDatabase, X as EnvTypedDatabase, a8 as InsertManyOptions, a9 as InsertShape, ae as Materialized, al as OnDeleteAction, an as PALBASE_EXTENSIONS, g as Page, ap as PageInfo, aq as PageInput, ar as PageNavigation, a_ as PalbaseExtension, bX as PolicyBuilder, bY as PolicyCommand, bZ as PolicyDef, c0 as PolicyMode, c2 as QueryColumnContract, c5 as RawConstraintDef, f as RawPageOptions, c7 as Ref, c9 as RowShape, S as SchemaDef, ci as TABLE_META, cj as TableDef, cl as TableInput, T as TransactionIsolation, cn as TxColumnExpr, co as TxInsertShape, cq as TxNow, cr as TxPlan, h as TxPlanBody, cs as TxPlanError, ct as TxPlanHandle, cu as TxPlanOpResult, cv as TxPlanRejection, j as TxPlanResponse, cw as TxRefError, cx as TxRow, cy as TxRows, cz as TxSelectOptions, cA as TxSetShape, cC as TxTable, cD as TxTables, cE as TxWhere, cK as TypedDB, cL as TypedTable, cM as TypedTx, cP as UniqueWhere, cU as WorkloadOptions, cZ as bigint, c_ as boolean, d1 as dec, d4 as defineSchema, d5 as defineTable, d6 as defineWorkload, d7 as enumType, d9 as inc, dc as installationRef, dd as integer, de as isPalbaseExtension, dg as jsonb, dh as makeTypedDB, di as now, dm as openai, dn as ownedByUser, dp as policy, dq as raw, ds as text, dt as timestamp, du as userRef, dv as uuid, dw as vector } from '../endpoint-BXPdsTA5.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../stack.js';
|
|
5
5
|
import './env.js';
|
package/dist/db/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
policy,
|
|
14
14
|
queryManifest,
|
|
15
15
|
raw
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-5UGPXKMJ.js";
|
|
17
17
|
import {
|
|
18
18
|
bigint,
|
|
19
19
|
boolean,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
defineWorkload,
|
|
36
36
|
inc,
|
|
37
37
|
now
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-P7MGSAFT.js";
|
|
39
39
|
import "../chunk-UMESJJRS.js";
|
|
40
40
|
import "../chunk-VXPNPVAG.js";
|
|
41
41
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z, ZodSchema } from 'zod';
|
|
2
2
|
import { PalbaseFlagKey, Buckets, BucketTypes, PalbaseSecretName } from './stack.js';
|
|
3
3
|
import { Schemas, Tables, TableTypes } from './db/env.js';
|
|
4
4
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
@@ -162,6 +162,11 @@ interface User {
|
|
|
162
162
|
/**
|
|
163
163
|
* The caller's APPLICATION roles, as assigned in `auth.user_roles`.
|
|
164
164
|
*
|
|
165
|
+
* A snapshot for display, NOT the authority: read `can` on rows and
|
|
166
|
+
* `pb.auth.permissions` in clients. `can` is for the interface; it cannot be
|
|
167
|
+
* used for an authorization decision; it may be incomplete; the server
|
|
168
|
+
* decides again on every request.
|
|
169
|
+
*
|
|
165
170
|
* Not to be confused with {@link User.role}, which is the DATABASE role RLS
|
|
166
171
|
* reads and is the literal string "authenticated" for every signed-in user.
|
|
167
172
|
* These are the names a stack declares (`palbase roles`) and an operator
|
|
@@ -997,6 +1002,34 @@ declare class PolicyBuilder {
|
|
|
997
1002
|
* `(table, name)`, so names must be unique per table.
|
|
998
1003
|
*/
|
|
999
1004
|
declare function policy(name: string): PolicyBuilder;
|
|
1005
|
+
/**
|
|
1006
|
+
* `can` alanının YANIT şeması (FR-004, D-14).
|
|
1007
|
+
*
|
|
1008
|
+
* Bir satırın `can`'i, tablonun adlandırılmış UPDATE policy'lerinden o satır ve
|
|
1009
|
+
* çağıran için `true` dönenlerin adıdır (engine `canColumns`). Yanıt şemaları
|
|
1010
|
+
* elle yazılan zod olduğu için (`dto/*.ts`) bu alan OpenAPI'ye ancak buradan
|
|
1011
|
+
* girer: `z.object({ …, can: can(transfers) })`. Enum değerleri policy
|
|
1012
|
+
* TANIMINDAN gelir — elle yazılan policy adı yoktur; iki codegen (`emitter.ts`
|
|
1013
|
+
* enum→union, swiftgen enum→`case`) tipli sabitleri buradan üretir.
|
|
1014
|
+
*
|
|
1015
|
+
* SÖZLEŞME (FR-005): `can` ARAYÜZ içindir; yetki kararı için kullanılamaz;
|
|
1016
|
+
* eksik olabilir (render edilemeyen policy düşer); sunucu her istekte yeniden
|
|
1017
|
+
* karar verir. Ham string policy'de kolon adlarını NİTELİKSİZ yazın — motor
|
|
1018
|
+
* ifadeyi `t` alias'ı altında seçer, `transfers.status` orada çözülmez; yorum
|
|
1019
|
+
* (`--`, `/*`) ve `auth.has_permission(...)`'ın `(select …)` sarmalı olmadan
|
|
1020
|
+
* çağrılması da o policy'yi `can`'den düşürür (warn ile). Yalnız `.for("update")`
|
|
1021
|
+
* policy'leri `can`'e girer; `.for("all")` UPDATE'i yönetir ama yankılanmaz.
|
|
1022
|
+
* `(select …)` sarmalayıcısını motor bir METİN kapısıyla arar (tırnaklı/boşluklu
|
|
1023
|
+
* yazımların sonlu olmayan kümesini DOĞRULAMAZ): bir çağrının satır başına
|
|
1024
|
+
* koşup koşmadığının ölçümü EXPLAIN ANALYZE'dır ve demo koşusunda (T016)
|
|
1025
|
+
* alınır — yavaş bir `can` yanlış değildir, kapı yalnız yaygın yanlışı yakalar.
|
|
1026
|
+
* `can` adı rezervedir: `can` kolonu olan tabloda yankı yok (bu fonksiyon fırlatır),
|
|
1027
|
+
* `can` adlı ilişki (`can` tablosu, `can_id` FK, `as`/`reverseAs: "can"`) ise
|
|
1028
|
+
* `defineTable`'da reddedilir.
|
|
1029
|
+
* AS RESTRICTIVE policy'ler Postgres'te olduğu gibi her izinli policy'ye AND'lenir;
|
|
1030
|
+
* `TO <rol>` listesi oturum rolüyle kapılanır.
|
|
1031
|
+
*/
|
|
1032
|
+
declare function can<C extends ColumnMap>(table: TableDef<C>): z.ZodArray<z.ZodEnum<[string, ...string[]]>>;
|
|
1000
1033
|
|
|
1001
1034
|
/**
|
|
1002
1035
|
* Postgres extensions a Palbase project can enable from its schema.
|
|
@@ -1239,6 +1272,25 @@ interface TableInput<C extends ColumnMap = ColumnMap> {
|
|
|
1239
1272
|
* ```
|
|
1240
1273
|
*/
|
|
1241
1274
|
policies?: (p: PolicyExprCtx<Extract<keyof C, string>>) => (PolicyBuilder | PolicyDef)[];
|
|
1275
|
+
/**
|
|
1276
|
+
* KOŞAN SÜRÜMÜN "BU TABLOYU ARTIK OKUMUYORUM" SÖZÜ — düşürmenin ilk yarısı.
|
|
1277
|
+
*
|
|
1278
|
+
* `ColumnDef.ignored`'ın tablo karşılığı ve aynı sebeple var: şema rayı, koşan
|
|
1279
|
+
* sürümün hâlâ BEYAN ettiği bir şeyi düşürmeyi reddeder — sıfır satırlı bir
|
|
1280
|
+
* tablo için bile, çünkü koşan sürümün bir SELECT'i ona dokunuyor olabilir.
|
|
1281
|
+
*
|
|
1282
|
+
* ONSUZ TABLO HİÇ DÜŞMÜYORDU (ölçüldü, canlı push 06.09.2026): rayın tavsiyesi
|
|
1283
|
+
* *"beyandan çıkar ve bir kez deploy et"*ti, ama beyandan çıkarmak düşürmeyi
|
|
1284
|
+
* ÜRETEN şeyin ta kendisi — o deploy'da da koşan sürüm tabloyu beyan ediyor
|
|
1285
|
+
* olur ve aynı red gelir. Kolonun çıkış yolu vardı, tablonun yoktu.
|
|
1286
|
+
*
|
|
1287
|
+
* İşaretlemek hiçbir DDL üretmez; ilk deploy'u BEDAVA yapan şey bu.
|
|
1288
|
+
*
|
|
1289
|
+
* ```ts
|
|
1290
|
+
* const cloud_images = defineTable("cloud_images", { ignored: true, columns: { … } });
|
|
1291
|
+
* ```
|
|
1292
|
+
*/
|
|
1293
|
+
ignored?: boolean;
|
|
1242
1294
|
/** Composite/named primary key (ordered column names). Omit for single-column inline .primaryKey(). */
|
|
1243
1295
|
primaryKey?: string[];
|
|
1244
1296
|
/** Named multi-column UNIQUE constraints. */
|
|
@@ -1299,6 +1351,8 @@ interface TableDef<C extends ColumnMap = ColumnMap> {
|
|
|
1299
1351
|
name: string;
|
|
1300
1352
|
columns: C;
|
|
1301
1353
|
rls: boolean;
|
|
1354
|
+
/** Koşan sürümün "bu tabloyu okumuyorum" sözü — bkz. TableInput.ignored. */
|
|
1355
|
+
ignored?: boolean;
|
|
1302
1356
|
policies: PolicyDef[];
|
|
1303
1357
|
primaryKey?: string[];
|
|
1304
1358
|
unique?: {
|
|
@@ -5577,4 +5631,4 @@ type Middleware = (ctx: MiddlewareContext, next: () => Promise<void>) => Promise
|
|
|
5577
5631
|
*/
|
|
5578
5632
|
type AuthSpec = boolean | Partial<AuthConfig>;
|
|
5579
5633
|
|
|
5580
|
-
export { type ErrorMap as $, type AuthSpec as A, BadRequest as B, type CompiledRead as C, type DatabaseBudget as D, type EnvServiceDatabase as E, type ColumnMap as F, type ColumnType as G, HttpError as H, Conflict as I, Database as J, type DatabaseQueryEvent as K, type DatabaseWorkload as L, DeadlockDetected as M, Documents as N, EXTENSION_DEPENDENCIES as O, type PreparedRead as P, type EmbeddingModelRef as Q, type RateLimitConfig as R, type SchemaDef as S, type TransactionIsolation as T, type EnvQueryDatabase as U, type EnvSchemas as V, type EnvTables as W, type EnvTypedDatabase as X, type EnvTypedTable as Y, type ErrorDef as Z, __runWithRuntime as _, type DBClient as a, type PalbaseFileObject as a$, type ErrorThrowers as a0, type FileContext as a1, type FindManyOpts as a2, Flags as a3, Forbidden as a4, type HttpMethod as a5, IndexBuilder as a6, type IndexDef as a7, type InsertManyOptions as a8, type InsertShape as a9, type PalbaseAttestiOSResult as aA, type PalbaseAuthAdminClient as aB, type PalbaseAuthClient as aC, type PalbaseBatchOverrideOperation as aD, type PalbaseBatchSetOverridesResult as aE, type PalbaseBindDeviceParams as aF, type PalbaseBucketClient as aG, type PalbaseClearAllOverridesResult as aH, type PalbaseClearOverrideResult as aI, type PalbaseCohortQueryInput as aJ, type PalbaseCohortResult as aK, type PalbaseCollectionRef as aL, type PalbaseCountQueryInput as aM, type PalbaseCountResult as aN, type PalbaseCreateLinkParams as aO, type PalbaseDeviceInfo as aP, type PalbaseDeviceTokenView as aQ, type PalbaseDocsClient as aR, type PalbaseDocumentRef as aS, type PalbaseDocumentSnapshot as aT, type PalbaseEmailClient as aU, type PalbaseEmailSendParams as aV, type PalbaseEmailSendResponse as aW, type PalbaseEventNamesResult as aX, type PalbaseEventsQueryInput as aY, type PalbaseEventsResult as aZ, type PalbaseExtension as a_, type InsertValues as aa, type LifecycleHook as ab, Log as ac, type Logger as ad, type Materialized as ae, type Middleware as af, type MiddlewareContext as ag, type MiddlewareHandler as ah, type MutateInput as ai, NotFound as aj, Notifications as ak, type OnDeleteAction as al, type OrderBySpec as am, PALBASE_EXTENSIONS as an, type PBRequest as ao, type PageInfo as ap, type PageInput as aq, type PageNavigation as ar, PalError as as, type PalbaseAnalyticsClient as at, type PalbaseAnalyticsManagementNamespace as au, type PalbaseAnalyticsProperties as av, type PalbaseAnalyticsQueryNamespace as aw, type PalbaseAttestAndroidParams as ax, type PalbaseAttestAndroidResult as ay, type PalbaseAttestiOSParams as az, type RuntimeServices as b, PolicyExprRef as b$, type PalbaseFlag as b0, type PalbaseFlagContext as b1, type PalbaseFlagSource as b2, type PalbaseFlagValue as b3, type PalbaseFlagVariant as b4, type PalbaseFlagsClient as b5, type PalbaseFlagsServiceClient as b6, type PalbaseFunctionsClient as b7, type PalbaseFunnelQueryInput as b8, type PalbaseFunnelResult as b9, type PalbaseQuerySnapshot as bA, type PalbaseRealtimeClient as bB, type PalbaseRegisterDeviceParams as bC, type PalbaseRetentionQueryInput as bD, type PalbaseRetentionResult as bE, type PalbaseSession as bF, type PalbaseSetOverrideResult as bG, type PalbaseSetOverridesResult as bH, type PalbaseSignedUrlResponse as bI, type PalbaseSmsClient as bJ, type PalbaseSmsSendParams as bK, type PalbaseSmsSendResponse as bL, type PalbaseStorageClient as bM, type PalbaseTransformOptions as bN, type PalbaseUpdateLinkParams as bO, type PalbaseUploadOptions as bP, type PalbaseUser as bQ, type PalbaseUserDetailResult as bR, type PalbaseUsersQueryInput as bS, type PalbaseUsersResult as bT, type PalbaseVerifyRequestSignatureParams as bU, type PalbaseWhereOperator as bV, type PolicyBinOp as bW, PolicyBuilder as bX, type PolicyCommand as bY, type PolicyDef as bZ, type PolicyExprCtx as b_, type PalbaseIdentifyTraits as ba, type PalbaseInboxClient as bb, type PalbaseInboxListOptions as bc, type PalbaseInboxListResult as bd, type PalbaseInboxMessage as be, type PalbaseInboxSendParams as bf, type PalbaseInboxSendResponse as bg, type PalbaseInitialLink as bh, type PalbaseInvokeOptions as bi, type PalbaseLink as bj, type PalbaseLinkAnalytics as bk, type PalbaseLinkDetails as bl, type PalbaseLinksClient as bm, type PalbaseListLinksOptions as bn, type PalbaseListLinksResult as bo, type PalbaseListOptions as bp, type PalbaseMatchParams as bq, type PalbaseMultiChannelResponse as br, type PalbaseNotificationsClient as bs, type PalbaseOverviewResult as bt, type PalbasePreferences as bu, type PalbasePreferencesClient as bv, type PalbasePushClient as bw, type PalbasePushSendParams as bx, type PalbasePushSendResponse as by, type PalbaseQrCodeOptions as bz, type DatabaseDiagnosticsOptions as c,
|
|
5634
|
+
export { type ErrorMap as $, type AuthSpec as A, BadRequest as B, type CompiledRead as C, type DatabaseBudget as D, type EnvServiceDatabase as E, type ColumnMap as F, type ColumnType as G, HttpError as H, Conflict as I, Database as J, type DatabaseQueryEvent as K, type DatabaseWorkload as L, DeadlockDetected as M, Documents as N, EXTENSION_DEPENDENCIES as O, type PreparedRead as P, type EmbeddingModelRef as Q, type RateLimitConfig as R, type SchemaDef as S, type TransactionIsolation as T, type EnvQueryDatabase as U, type EnvSchemas as V, type EnvTables as W, type EnvTypedDatabase as X, type EnvTypedTable as Y, type ErrorDef as Z, __runWithRuntime as _, type DBClient as a, type PalbaseFileObject as a$, type ErrorThrowers as a0, type FileContext as a1, type FindManyOpts as a2, Flags as a3, Forbidden as a4, type HttpMethod as a5, IndexBuilder as a6, type IndexDef as a7, type InsertManyOptions as a8, type InsertShape as a9, type PalbaseAttestiOSResult as aA, type PalbaseAuthAdminClient as aB, type PalbaseAuthClient as aC, type PalbaseBatchOverrideOperation as aD, type PalbaseBatchSetOverridesResult as aE, type PalbaseBindDeviceParams as aF, type PalbaseBucketClient as aG, type PalbaseClearAllOverridesResult as aH, type PalbaseClearOverrideResult as aI, type PalbaseCohortQueryInput as aJ, type PalbaseCohortResult as aK, type PalbaseCollectionRef as aL, type PalbaseCountQueryInput as aM, type PalbaseCountResult as aN, type PalbaseCreateLinkParams as aO, type PalbaseDeviceInfo as aP, type PalbaseDeviceTokenView as aQ, type PalbaseDocsClient as aR, type PalbaseDocumentRef as aS, type PalbaseDocumentSnapshot as aT, type PalbaseEmailClient as aU, type PalbaseEmailSendParams as aV, type PalbaseEmailSendResponse as aW, type PalbaseEventNamesResult as aX, type PalbaseEventsQueryInput as aY, type PalbaseEventsResult as aZ, type PalbaseExtension as a_, type InsertValues as aa, type LifecycleHook as ab, Log as ac, type Logger as ad, type Materialized as ae, type Middleware as af, type MiddlewareContext as ag, type MiddlewareHandler as ah, type MutateInput as ai, NotFound as aj, Notifications as ak, type OnDeleteAction as al, type OrderBySpec as am, PALBASE_EXTENSIONS as an, type PBRequest as ao, type PageInfo as ap, type PageInput as aq, type PageNavigation as ar, PalError as as, type PalbaseAnalyticsClient as at, type PalbaseAnalyticsManagementNamespace as au, type PalbaseAnalyticsProperties as av, type PalbaseAnalyticsQueryNamespace as aw, type PalbaseAttestAndroidParams as ax, type PalbaseAttestAndroidResult as ay, type PalbaseAttestiOSParams as az, type RuntimeServices as b, PolicyExprRef as b$, type PalbaseFlag as b0, type PalbaseFlagContext as b1, type PalbaseFlagSource as b2, type PalbaseFlagValue as b3, type PalbaseFlagVariant as b4, type PalbaseFlagsClient as b5, type PalbaseFlagsServiceClient as b6, type PalbaseFunctionsClient as b7, type PalbaseFunnelQueryInput as b8, type PalbaseFunnelResult as b9, type PalbaseQuerySnapshot as bA, type PalbaseRealtimeClient as bB, type PalbaseRegisterDeviceParams as bC, type PalbaseRetentionQueryInput as bD, type PalbaseRetentionResult as bE, type PalbaseSession as bF, type PalbaseSetOverrideResult as bG, type PalbaseSetOverridesResult as bH, type PalbaseSignedUrlResponse as bI, type PalbaseSmsClient as bJ, type PalbaseSmsSendParams as bK, type PalbaseSmsSendResponse as bL, type PalbaseStorageClient as bM, type PalbaseTransformOptions as bN, type PalbaseUpdateLinkParams as bO, type PalbaseUploadOptions as bP, type PalbaseUser as bQ, type PalbaseUserDetailResult as bR, type PalbaseUsersQueryInput as bS, type PalbaseUsersResult as bT, type PalbaseVerifyRequestSignatureParams as bU, type PalbaseWhereOperator as bV, type PolicyBinOp as bW, PolicyBuilder as bX, type PolicyCommand as bY, type PolicyDef as bZ, type PolicyExprCtx as b_, type PalbaseIdentifyTraits as ba, type PalbaseInboxClient as bb, type PalbaseInboxListOptions as bc, type PalbaseInboxListResult as bd, type PalbaseInboxMessage as be, type PalbaseInboxSendParams as bf, type PalbaseInboxSendResponse as bg, type PalbaseInitialLink as bh, type PalbaseInvokeOptions as bi, type PalbaseLink as bj, type PalbaseLinkAnalytics as bk, type PalbaseLinkDetails as bl, type PalbaseLinksClient as bm, type PalbaseListLinksOptions as bn, type PalbaseListLinksResult as bo, type PalbaseListOptions as bp, type PalbaseMatchParams as bq, type PalbaseMultiChannelResponse as br, type PalbaseNotificationsClient as bs, type PalbaseOverviewResult as bt, type PalbasePreferences as bu, type PalbasePreferencesClient as bv, type PalbasePushClient as bw, type PalbasePushSendParams as bx, type PalbasePushSendResponse as by, type PalbaseQrCodeOptions as bz, type DatabaseDiagnosticsOptions as c, can as c$, type PolicyMode as c0, type PolicyOperand as c1, type QueryColumnContract as c2, type QueryDatabase as c3, type QueryInput as c4, type RawConstraintDef as c5, Realtime as c6, type Ref as c7, type RequestStore as c8, type RowShape as c9, type TxSetShape as cA, type TxSetValue as cB, type TxTable as cC, type TxTables as cD, type TxWhere as cE, type TxWireExpr as cF, type TxWireGuard as cG, type TxWireOp as cH, type TxWireRef as cI, type TxWireValue as cJ, type TypedDB as cK, type TypedTable as cL, type TypedTx as cM, Unauthorized as cN, UniqueViolation as cO, type UniqueWhere as cP, type User as cQ, type VerifiedDevice as cR, type WhereFilter as cS, type WhereOp as cT, type WorkloadOptions as cU, __getRuntime as cV, __resetLifecycleHooks as cW, __runStartHooks as cX, __setRuntime as cY, bigint as cZ, boolean as c_, Secrets as ca, type SecretsService as cb, SerializationFailure as cc, type SetShape as cd, type SetValue as ce, type ShutdownRunner as cf, type SqlFragment as cg, Storage as ch, TABLE_META as ci, type TableDef as cj, type TableHandle as ck, type TableInput as cl, TooManyRequests as cm, type TxColumnExpr as cn, type TxInsertShape as co, type TxInsertValue as cp, type TxNow as cq, type TxPlan as cr, TxPlanError as cs, type TxPlanHandle as ct, type TxPlanOpResult as cu, type TxPlanRejection as cv, TxRefError as cw, type TxRow as cx, type TxRows as cy, type TxSelectOptions as cz, type DatabaseDiagnostics as d, col as d0, dec as d1, decrement as d2, defineMiddleware as d3, defineSchema as d4, defineTable as d5, defineWorkload as d6, enumType as d7, exprCtx as d8, inc as d9, increment as da, index as db, installationRef as dc, integer as dd, isPalbaseExtension as de, isRetryable as df, jsonb as dg, makeTypedDB as dh, now as di, numeric as dj, onShutdown as dk, onStart as dl, openai as dm, ownedByUser as dn, policy as dp, raw as dq, sqlFragment as dr, text as ds, timestamp as dt, userRef as du, uuid as dv, vector as dw, withRetry as dx, type ColValue as dy, type DBOps as e, type RawPageOptions as f, type Page as g, type TxPlanBody as h, type CommandOptions as i, type TxPlanResponse as j, type CacheClient as k, __requestALS as l, type PalbaseResult as m, type PolicyExpr as n, type AggregateInput as o, type AggregateResult as p, type AnyColumn as q, type AtomicDatabase as r, type AtomicOptions as s, Auth as t, type AuthConfig as u, Cache as v, type ClientInfo as w, type ColRef as x, ColumnBuilder as y, type ColumnDef as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z, ZodSchema } from 'zod';
|
|
2
2
|
import { PalbaseFlagKey, Buckets, BucketTypes, PalbaseSecretName } from './stack.cjs';
|
|
3
3
|
import { Schemas, Tables, TableTypes } from './db/env.cjs';
|
|
4
4
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
@@ -162,6 +162,11 @@ interface User {
|
|
|
162
162
|
/**
|
|
163
163
|
* The caller's APPLICATION roles, as assigned in `auth.user_roles`.
|
|
164
164
|
*
|
|
165
|
+
* A snapshot for display, NOT the authority: read `can` on rows and
|
|
166
|
+
* `pb.auth.permissions` in clients. `can` is for the interface; it cannot be
|
|
167
|
+
* used for an authorization decision; it may be incomplete; the server
|
|
168
|
+
* decides again on every request.
|
|
169
|
+
*
|
|
165
170
|
* Not to be confused with {@link User.role}, which is the DATABASE role RLS
|
|
166
171
|
* reads and is the literal string "authenticated" for every signed-in user.
|
|
167
172
|
* These are the names a stack declares (`palbase roles`) and an operator
|
|
@@ -997,6 +1002,34 @@ declare class PolicyBuilder {
|
|
|
997
1002
|
* `(table, name)`, so names must be unique per table.
|
|
998
1003
|
*/
|
|
999
1004
|
declare function policy(name: string): PolicyBuilder;
|
|
1005
|
+
/**
|
|
1006
|
+
* `can` alanının YANIT şeması (FR-004, D-14).
|
|
1007
|
+
*
|
|
1008
|
+
* Bir satırın `can`'i, tablonun adlandırılmış UPDATE policy'lerinden o satır ve
|
|
1009
|
+
* çağıran için `true` dönenlerin adıdır (engine `canColumns`). Yanıt şemaları
|
|
1010
|
+
* elle yazılan zod olduğu için (`dto/*.ts`) bu alan OpenAPI'ye ancak buradan
|
|
1011
|
+
* girer: `z.object({ …, can: can(transfers) })`. Enum değerleri policy
|
|
1012
|
+
* TANIMINDAN gelir — elle yazılan policy adı yoktur; iki codegen (`emitter.ts`
|
|
1013
|
+
* enum→union, swiftgen enum→`case`) tipli sabitleri buradan üretir.
|
|
1014
|
+
*
|
|
1015
|
+
* SÖZLEŞME (FR-005): `can` ARAYÜZ içindir; yetki kararı için kullanılamaz;
|
|
1016
|
+
* eksik olabilir (render edilemeyen policy düşer); sunucu her istekte yeniden
|
|
1017
|
+
* karar verir. Ham string policy'de kolon adlarını NİTELİKSİZ yazın — motor
|
|
1018
|
+
* ifadeyi `t` alias'ı altında seçer, `transfers.status` orada çözülmez; yorum
|
|
1019
|
+
* (`--`, `/*`) ve `auth.has_permission(...)`'ın `(select …)` sarmalı olmadan
|
|
1020
|
+
* çağrılması da o policy'yi `can`'den düşürür (warn ile). Yalnız `.for("update")`
|
|
1021
|
+
* policy'leri `can`'e girer; `.for("all")` UPDATE'i yönetir ama yankılanmaz.
|
|
1022
|
+
* `(select …)` sarmalayıcısını motor bir METİN kapısıyla arar (tırnaklı/boşluklu
|
|
1023
|
+
* yazımların sonlu olmayan kümesini DOĞRULAMAZ): bir çağrının satır başına
|
|
1024
|
+
* koşup koşmadığının ölçümü EXPLAIN ANALYZE'dır ve demo koşusunda (T016)
|
|
1025
|
+
* alınır — yavaş bir `can` yanlış değildir, kapı yalnız yaygın yanlışı yakalar.
|
|
1026
|
+
* `can` adı rezervedir: `can` kolonu olan tabloda yankı yok (bu fonksiyon fırlatır),
|
|
1027
|
+
* `can` adlı ilişki (`can` tablosu, `can_id` FK, `as`/`reverseAs: "can"`) ise
|
|
1028
|
+
* `defineTable`'da reddedilir.
|
|
1029
|
+
* AS RESTRICTIVE policy'ler Postgres'te olduğu gibi her izinli policy'ye AND'lenir;
|
|
1030
|
+
* `TO <rol>` listesi oturum rolüyle kapılanır.
|
|
1031
|
+
*/
|
|
1032
|
+
declare function can<C extends ColumnMap>(table: TableDef<C>): z.ZodArray<z.ZodEnum<[string, ...string[]]>>;
|
|
1000
1033
|
|
|
1001
1034
|
/**
|
|
1002
1035
|
* Postgres extensions a Palbase project can enable from its schema.
|
|
@@ -1239,6 +1272,25 @@ interface TableInput<C extends ColumnMap = ColumnMap> {
|
|
|
1239
1272
|
* ```
|
|
1240
1273
|
*/
|
|
1241
1274
|
policies?: (p: PolicyExprCtx<Extract<keyof C, string>>) => (PolicyBuilder | PolicyDef)[];
|
|
1275
|
+
/**
|
|
1276
|
+
* KOŞAN SÜRÜMÜN "BU TABLOYU ARTIK OKUMUYORUM" SÖZÜ — düşürmenin ilk yarısı.
|
|
1277
|
+
*
|
|
1278
|
+
* `ColumnDef.ignored`'ın tablo karşılığı ve aynı sebeple var: şema rayı, koşan
|
|
1279
|
+
* sürümün hâlâ BEYAN ettiği bir şeyi düşürmeyi reddeder — sıfır satırlı bir
|
|
1280
|
+
* tablo için bile, çünkü koşan sürümün bir SELECT'i ona dokunuyor olabilir.
|
|
1281
|
+
*
|
|
1282
|
+
* ONSUZ TABLO HİÇ DÜŞMÜYORDU (ölçüldü, canlı push 06.09.2026): rayın tavsiyesi
|
|
1283
|
+
* *"beyandan çıkar ve bir kez deploy et"*ti, ama beyandan çıkarmak düşürmeyi
|
|
1284
|
+
* ÜRETEN şeyin ta kendisi — o deploy'da da koşan sürüm tabloyu beyan ediyor
|
|
1285
|
+
* olur ve aynı red gelir. Kolonun çıkış yolu vardı, tablonun yoktu.
|
|
1286
|
+
*
|
|
1287
|
+
* İşaretlemek hiçbir DDL üretmez; ilk deploy'u BEDAVA yapan şey bu.
|
|
1288
|
+
*
|
|
1289
|
+
* ```ts
|
|
1290
|
+
* const cloud_images = defineTable("cloud_images", { ignored: true, columns: { … } });
|
|
1291
|
+
* ```
|
|
1292
|
+
*/
|
|
1293
|
+
ignored?: boolean;
|
|
1242
1294
|
/** Composite/named primary key (ordered column names). Omit for single-column inline .primaryKey(). */
|
|
1243
1295
|
primaryKey?: string[];
|
|
1244
1296
|
/** Named multi-column UNIQUE constraints. */
|
|
@@ -1299,6 +1351,8 @@ interface TableDef<C extends ColumnMap = ColumnMap> {
|
|
|
1299
1351
|
name: string;
|
|
1300
1352
|
columns: C;
|
|
1301
1353
|
rls: boolean;
|
|
1354
|
+
/** Koşan sürümün "bu tabloyu okumuyorum" sözü — bkz. TableInput.ignored. */
|
|
1355
|
+
ignored?: boolean;
|
|
1302
1356
|
policies: PolicyDef[];
|
|
1303
1357
|
primaryKey?: string[];
|
|
1304
1358
|
unique?: {
|
|
@@ -5577,4 +5631,4 @@ type Middleware = (ctx: MiddlewareContext, next: () => Promise<void>) => Promise
|
|
|
5577
5631
|
*/
|
|
5578
5632
|
type AuthSpec = boolean | Partial<AuthConfig>;
|
|
5579
5633
|
|
|
5580
|
-
export { type ErrorMap as $, type AuthSpec as A, BadRequest as B, type CompiledRead as C, type DatabaseBudget as D, type EnvServiceDatabase as E, type ColumnMap as F, type ColumnType as G, HttpError as H, Conflict as I, Database as J, type DatabaseQueryEvent as K, type DatabaseWorkload as L, DeadlockDetected as M, Documents as N, EXTENSION_DEPENDENCIES as O, type PreparedRead as P, type EmbeddingModelRef as Q, type RateLimitConfig as R, type SchemaDef as S, type TransactionIsolation as T, type EnvQueryDatabase as U, type EnvSchemas as V, type EnvTables as W, type EnvTypedDatabase as X, type EnvTypedTable as Y, type ErrorDef as Z, __runWithRuntime as _, type DBClient as a, type PalbaseFileObject as a$, type ErrorThrowers as a0, type FileContext as a1, type FindManyOpts as a2, Flags as a3, Forbidden as a4, type HttpMethod as a5, IndexBuilder as a6, type IndexDef as a7, type InsertManyOptions as a8, type InsertShape as a9, type PalbaseAttestiOSResult as aA, type PalbaseAuthAdminClient as aB, type PalbaseAuthClient as aC, type PalbaseBatchOverrideOperation as aD, type PalbaseBatchSetOverridesResult as aE, type PalbaseBindDeviceParams as aF, type PalbaseBucketClient as aG, type PalbaseClearAllOverridesResult as aH, type PalbaseClearOverrideResult as aI, type PalbaseCohortQueryInput as aJ, type PalbaseCohortResult as aK, type PalbaseCollectionRef as aL, type PalbaseCountQueryInput as aM, type PalbaseCountResult as aN, type PalbaseCreateLinkParams as aO, type PalbaseDeviceInfo as aP, type PalbaseDeviceTokenView as aQ, type PalbaseDocsClient as aR, type PalbaseDocumentRef as aS, type PalbaseDocumentSnapshot as aT, type PalbaseEmailClient as aU, type PalbaseEmailSendParams as aV, type PalbaseEmailSendResponse as aW, type PalbaseEventNamesResult as aX, type PalbaseEventsQueryInput as aY, type PalbaseEventsResult as aZ, type PalbaseExtension as a_, type InsertValues as aa, type LifecycleHook as ab, Log as ac, type Logger as ad, type Materialized as ae, type Middleware as af, type MiddlewareContext as ag, type MiddlewareHandler as ah, type MutateInput as ai, NotFound as aj, Notifications as ak, type OnDeleteAction as al, type OrderBySpec as am, PALBASE_EXTENSIONS as an, type PBRequest as ao, type PageInfo as ap, type PageInput as aq, type PageNavigation as ar, PalError as as, type PalbaseAnalyticsClient as at, type PalbaseAnalyticsManagementNamespace as au, type PalbaseAnalyticsProperties as av, type PalbaseAnalyticsQueryNamespace as aw, type PalbaseAttestAndroidParams as ax, type PalbaseAttestAndroidResult as ay, type PalbaseAttestiOSParams as az, type RuntimeServices as b, PolicyExprRef as b$, type PalbaseFlag as b0, type PalbaseFlagContext as b1, type PalbaseFlagSource as b2, type PalbaseFlagValue as b3, type PalbaseFlagVariant as b4, type PalbaseFlagsClient as b5, type PalbaseFlagsServiceClient as b6, type PalbaseFunctionsClient as b7, type PalbaseFunnelQueryInput as b8, type PalbaseFunnelResult as b9, type PalbaseQuerySnapshot as bA, type PalbaseRealtimeClient as bB, type PalbaseRegisterDeviceParams as bC, type PalbaseRetentionQueryInput as bD, type PalbaseRetentionResult as bE, type PalbaseSession as bF, type PalbaseSetOverrideResult as bG, type PalbaseSetOverridesResult as bH, type PalbaseSignedUrlResponse as bI, type PalbaseSmsClient as bJ, type PalbaseSmsSendParams as bK, type PalbaseSmsSendResponse as bL, type PalbaseStorageClient as bM, type PalbaseTransformOptions as bN, type PalbaseUpdateLinkParams as bO, type PalbaseUploadOptions as bP, type PalbaseUser as bQ, type PalbaseUserDetailResult as bR, type PalbaseUsersQueryInput as bS, type PalbaseUsersResult as bT, type PalbaseVerifyRequestSignatureParams as bU, type PalbaseWhereOperator as bV, type PolicyBinOp as bW, PolicyBuilder as bX, type PolicyCommand as bY, type PolicyDef as bZ, type PolicyExprCtx as b_, type PalbaseIdentifyTraits as ba, type PalbaseInboxClient as bb, type PalbaseInboxListOptions as bc, type PalbaseInboxListResult as bd, type PalbaseInboxMessage as be, type PalbaseInboxSendParams as bf, type PalbaseInboxSendResponse as bg, type PalbaseInitialLink as bh, type PalbaseInvokeOptions as bi, type PalbaseLink as bj, type PalbaseLinkAnalytics as bk, type PalbaseLinkDetails as bl, type PalbaseLinksClient as bm, type PalbaseListLinksOptions as bn, type PalbaseListLinksResult as bo, type PalbaseListOptions as bp, type PalbaseMatchParams as bq, type PalbaseMultiChannelResponse as br, type PalbaseNotificationsClient as bs, type PalbaseOverviewResult as bt, type PalbasePreferences as bu, type PalbasePreferencesClient as bv, type PalbasePushClient as bw, type PalbasePushSendParams as bx, type PalbasePushSendResponse as by, type PalbaseQrCodeOptions as bz, type DatabaseDiagnosticsOptions as c,
|
|
5634
|
+
export { type ErrorMap as $, type AuthSpec as A, BadRequest as B, type CompiledRead as C, type DatabaseBudget as D, type EnvServiceDatabase as E, type ColumnMap as F, type ColumnType as G, HttpError as H, Conflict as I, Database as J, type DatabaseQueryEvent as K, type DatabaseWorkload as L, DeadlockDetected as M, Documents as N, EXTENSION_DEPENDENCIES as O, type PreparedRead as P, type EmbeddingModelRef as Q, type RateLimitConfig as R, type SchemaDef as S, type TransactionIsolation as T, type EnvQueryDatabase as U, type EnvSchemas as V, type EnvTables as W, type EnvTypedDatabase as X, type EnvTypedTable as Y, type ErrorDef as Z, __runWithRuntime as _, type DBClient as a, type PalbaseFileObject as a$, type ErrorThrowers as a0, type FileContext as a1, type FindManyOpts as a2, Flags as a3, Forbidden as a4, type HttpMethod as a5, IndexBuilder as a6, type IndexDef as a7, type InsertManyOptions as a8, type InsertShape as a9, type PalbaseAttestiOSResult as aA, type PalbaseAuthAdminClient as aB, type PalbaseAuthClient as aC, type PalbaseBatchOverrideOperation as aD, type PalbaseBatchSetOverridesResult as aE, type PalbaseBindDeviceParams as aF, type PalbaseBucketClient as aG, type PalbaseClearAllOverridesResult as aH, type PalbaseClearOverrideResult as aI, type PalbaseCohortQueryInput as aJ, type PalbaseCohortResult as aK, type PalbaseCollectionRef as aL, type PalbaseCountQueryInput as aM, type PalbaseCountResult as aN, type PalbaseCreateLinkParams as aO, type PalbaseDeviceInfo as aP, type PalbaseDeviceTokenView as aQ, type PalbaseDocsClient as aR, type PalbaseDocumentRef as aS, type PalbaseDocumentSnapshot as aT, type PalbaseEmailClient as aU, type PalbaseEmailSendParams as aV, type PalbaseEmailSendResponse as aW, type PalbaseEventNamesResult as aX, type PalbaseEventsQueryInput as aY, type PalbaseEventsResult as aZ, type PalbaseExtension as a_, type InsertValues as aa, type LifecycleHook as ab, Log as ac, type Logger as ad, type Materialized as ae, type Middleware as af, type MiddlewareContext as ag, type MiddlewareHandler as ah, type MutateInput as ai, NotFound as aj, Notifications as ak, type OnDeleteAction as al, type OrderBySpec as am, PALBASE_EXTENSIONS as an, type PBRequest as ao, type PageInfo as ap, type PageInput as aq, type PageNavigation as ar, PalError as as, type PalbaseAnalyticsClient as at, type PalbaseAnalyticsManagementNamespace as au, type PalbaseAnalyticsProperties as av, type PalbaseAnalyticsQueryNamespace as aw, type PalbaseAttestAndroidParams as ax, type PalbaseAttestAndroidResult as ay, type PalbaseAttestiOSParams as az, type RuntimeServices as b, PolicyExprRef as b$, type PalbaseFlag as b0, type PalbaseFlagContext as b1, type PalbaseFlagSource as b2, type PalbaseFlagValue as b3, type PalbaseFlagVariant as b4, type PalbaseFlagsClient as b5, type PalbaseFlagsServiceClient as b6, type PalbaseFunctionsClient as b7, type PalbaseFunnelQueryInput as b8, type PalbaseFunnelResult as b9, type PalbaseQuerySnapshot as bA, type PalbaseRealtimeClient as bB, type PalbaseRegisterDeviceParams as bC, type PalbaseRetentionQueryInput as bD, type PalbaseRetentionResult as bE, type PalbaseSession as bF, type PalbaseSetOverrideResult as bG, type PalbaseSetOverridesResult as bH, type PalbaseSignedUrlResponse as bI, type PalbaseSmsClient as bJ, type PalbaseSmsSendParams as bK, type PalbaseSmsSendResponse as bL, type PalbaseStorageClient as bM, type PalbaseTransformOptions as bN, type PalbaseUpdateLinkParams as bO, type PalbaseUploadOptions as bP, type PalbaseUser as bQ, type PalbaseUserDetailResult as bR, type PalbaseUsersQueryInput as bS, type PalbaseUsersResult as bT, type PalbaseVerifyRequestSignatureParams as bU, type PalbaseWhereOperator as bV, type PolicyBinOp as bW, PolicyBuilder as bX, type PolicyCommand as bY, type PolicyDef as bZ, type PolicyExprCtx as b_, type PalbaseIdentifyTraits as ba, type PalbaseInboxClient as bb, type PalbaseInboxListOptions as bc, type PalbaseInboxListResult as bd, type PalbaseInboxMessage as be, type PalbaseInboxSendParams as bf, type PalbaseInboxSendResponse as bg, type PalbaseInitialLink as bh, type PalbaseInvokeOptions as bi, type PalbaseLink as bj, type PalbaseLinkAnalytics as bk, type PalbaseLinkDetails as bl, type PalbaseLinksClient as bm, type PalbaseListLinksOptions as bn, type PalbaseListLinksResult as bo, type PalbaseListOptions as bp, type PalbaseMatchParams as bq, type PalbaseMultiChannelResponse as br, type PalbaseNotificationsClient as bs, type PalbaseOverviewResult as bt, type PalbasePreferences as bu, type PalbasePreferencesClient as bv, type PalbasePushClient as bw, type PalbasePushSendParams as bx, type PalbasePushSendResponse as by, type PalbaseQrCodeOptions as bz, type DatabaseDiagnosticsOptions as c, can as c$, type PolicyMode as c0, type PolicyOperand as c1, type QueryColumnContract as c2, type QueryDatabase as c3, type QueryInput as c4, type RawConstraintDef as c5, Realtime as c6, type Ref as c7, type RequestStore as c8, type RowShape as c9, type TxSetShape as cA, type TxSetValue as cB, type TxTable as cC, type TxTables as cD, type TxWhere as cE, type TxWireExpr as cF, type TxWireGuard as cG, type TxWireOp as cH, type TxWireRef as cI, type TxWireValue as cJ, type TypedDB as cK, type TypedTable as cL, type TypedTx as cM, Unauthorized as cN, UniqueViolation as cO, type UniqueWhere as cP, type User as cQ, type VerifiedDevice as cR, type WhereFilter as cS, type WhereOp as cT, type WorkloadOptions as cU, __getRuntime as cV, __resetLifecycleHooks as cW, __runStartHooks as cX, __setRuntime as cY, bigint as cZ, boolean as c_, Secrets as ca, type SecretsService as cb, SerializationFailure as cc, type SetShape as cd, type SetValue as ce, type ShutdownRunner as cf, type SqlFragment as cg, Storage as ch, TABLE_META as ci, type TableDef as cj, type TableHandle as ck, type TableInput as cl, TooManyRequests as cm, type TxColumnExpr as cn, type TxInsertShape as co, type TxInsertValue as cp, type TxNow as cq, type TxPlan as cr, TxPlanError as cs, type TxPlanHandle as ct, type TxPlanOpResult as cu, type TxPlanRejection as cv, TxRefError as cw, type TxRow as cx, type TxRows as cy, type TxSelectOptions as cz, type DatabaseDiagnostics as d, col as d0, dec as d1, decrement as d2, defineMiddleware as d3, defineSchema as d4, defineTable as d5, defineWorkload as d6, enumType as d7, exprCtx as d8, inc as d9, increment as da, index as db, installationRef as dc, integer as dd, isPalbaseExtension as de, isRetryable as df, jsonb as dg, makeTypedDB as dh, now as di, numeric as dj, onShutdown as dk, onStart as dl, openai as dm, ownedByUser as dn, policy as dp, raw as dq, sqlFragment as dr, text as ds, timestamp as dt, userRef as du, uuid as dv, vector as dw, withRetry as dx, type ColValue as dy, type DBOps as e, type RawPageOptions as f, type Page as g, type TxPlanBody as h, type CommandOptions as i, type TxPlanResponse as j, type CacheClient as k, __requestALS as l, type PalbaseResult as m, type PolicyExpr as n, type AggregateInput as o, type AggregateResult as p, type AnyColumn as q, type AtomicDatabase as r, type AtomicOptions as s, Auth as t, type AuthConfig as u, Cache as v, type ClientInfo as w, type ColRef as x, ColumnBuilder as y, type ColumnDef as z };
|