@palbase/backend 32.0.0 → 33.0.0
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/dist/bin/palbase-backend.cjs +79 -26
- package/dist/bin/palbase-backend.cjs.map +1 -1
- package/dist/bin/palbase-backend.js +5 -5
- package/dist/{chunk-IXAX5CON.js → chunk-C4ZA5AT2.js} +1 -1
- package/dist/{chunk-IXAX5CON.js.map → chunk-C4ZA5AT2.js.map} +1 -1
- package/dist/{chunk-AZJIKCOR.js → chunk-DCDHAKF3.js} +39 -23
- package/dist/{chunk-AZJIKCOR.js.map → chunk-DCDHAKF3.js.map} +1 -1
- package/dist/{chunk-Z4CZRMNF.js → chunk-GOPZPM2A.js} +2 -2
- package/dist/{chunk-5C5UCILO.js → chunk-N54QZER3.js} +3 -3
- package/dist/{chunk-XEGZ3S2Q.js → chunk-QMFOL2K6.js} +32 -7
- package/dist/chunk-QMFOL2K6.js.map +1 -0
- package/dist/{chunk-KGP6ALIU.js → chunk-XOX6RFPZ.js} +30 -8
- package/dist/chunk-XOX6RFPZ.js.map +1 -0
- package/dist/db/index.cjs +14 -4
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.js +3 -3
- package/dist/engine/index.cjs +79 -26
- 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 +5 -5
- package/dist/{index-DgYkdNT9.d.cts → index-BWgnGj68.d.cts} +68 -20
- package/dist/{index-BILC9WwS.d.ts → index-Bi74dcOu.d.ts} +2 -2
- package/dist/{index-BgWnP07a.d.ts → index-Dg10RnZO.d.ts} +68 -20
- package/dist/{index-CWGiJ2Up.d.cts → index-g6iQyYci.d.cts} +2 -2
- package/dist/index.cjs +59 -12
- 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 +5 -5
- package/dist/openapi/index.d.cts +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{registry-BcRYIQ-R.d.cts → registry-6VT5RPeO.d.cts} +1 -1
- package/dist/{registry-ClzjxIWy.d.ts → registry-B-sxJJN0.d.ts} +1 -1
- package/dist/test/index.cjs +35 -8
- 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 +7 -5
- package/dist/test/index.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/auth.md +102 -20
- package/docs/llms-full.txt +129 -21
- package/docs/schema.md +26 -0
- package/package.json +1 -1
- package/template/db/public.ts +23 -0
- package/template/package.json +1 -1
- package/dist/chunk-KGP6ALIU.js.map +0 -1
- package/dist/chunk-XEGZ3S2Q.js.map +0 -1
- /package/dist/{chunk-Z4CZRMNF.js.map → chunk-GOPZPM2A.js.map} +0 -0
- /package/dist/{chunk-5C5UCILO.js.map → chunk-N54QZER3.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as PalbaseResult, e as PolicyExpr, S as SchemaDef, A as AuthSpec, H as HttpError } from './index-
|
|
2
|
-
export { f as AggregateInput, g as AggregateResult, h as AnyColumn, i as Auth, j as AuthConfig, B as BadRequest, k as Cache, C as CacheClient, l as ClientInfo, m as ColRef, n as ColumnBuilder, o as ColumnDef, p as ColumnMap, q as ColumnType, r as Conflict, D as DBClient, b as DBOps, s as Database, t as DeadlockDetected, u as Documents, v as EXTENSION_DEPENDENCIES, w as EmbeddingModelRef, x as EnvSchemas, E as EnvServiceDatabase, y as EnvTables, z as EnvTypedDatabase, F as EnvTypedTable, G as ErrorDef, I as ErrorMap, J as ErrorThrowers, K as FileContext, L as FindManyOpts, M as Flags, N as Forbidden, O as HttpMethod, Q as IndexBuilder, U as IndexDef, V as InsertShape, W as InsertValues, X as LifecycleHook, Y as Log, Z as Logger, $ as Materialized, a0 as Middleware, a1 as MiddlewareContext, a2 as MiddlewareHandler, a3 as MutateInput, a4 as NotFound, a5 as Notifications, a6 as OnDeleteAction, a7 as OrderBySpec, a8 as PALBASE_EXTENSIONS, a9 as PBRequest, aa as PalError, ab as PalbaseAnalyticsClient, ac as PalbaseAnalyticsManagementNamespace, ad as PalbaseAnalyticsProperties, ae as PalbaseAnalyticsQueryNamespace, af as PalbaseAttestAndroidParams, ag as PalbaseAttestAndroidResult, ah as PalbaseAttestiOSParams, ai as PalbaseAttestiOSResult, aj as PalbaseAuthAdminClient, ak as PalbaseAuthClient, al as PalbaseBatchOverrideOperation, am as PalbaseBatchSetOverridesResult, an as PalbaseBindDeviceParams, ao as PalbaseBucketClient, ap as PalbaseClearAllOverridesResult, aq as PalbaseClearOverrideResult, ar as PalbaseCohortQueryInput, as as PalbaseCohortResult, at as PalbaseCollectionRef, au as PalbaseCountQueryInput, av as PalbaseCountResult, aw as PalbaseCreateLinkParams, ax as PalbaseDeviceInfo, ay as PalbaseDeviceTokenView, az as PalbaseDocsClient, aA as PalbaseDocumentRef, aB as PalbaseDocumentSnapshot, aC as PalbaseEmailClient, aD as PalbaseEmailSendParams, aE as PalbaseEmailSendResponse, aF as PalbaseEventNamesResult, aG as PalbaseEventsQueryInput, aH as PalbaseEventsResult, aI as PalbaseExtension, aJ as PalbaseFileObject, aK as PalbaseFlag, aL as PalbaseFlagContext, aM as PalbaseFlagSource, aN as PalbaseFlagValue, aO as PalbaseFlagVariant, aP as PalbaseFlagsClient, aQ as PalbaseFlagsServiceClient, aR as PalbaseFunctionsClient, aS as PalbaseFunnelQueryInput, aT as PalbaseFunnelResult, aU as PalbaseIdentifyTraits, aV as PalbaseInboxClient, aW as PalbaseInboxListOptions, aX as PalbaseInboxListResult, aY as PalbaseInboxMessage, aZ as PalbaseInboxSendParams, a_ as PalbaseInboxSendResponse, a$ as PalbaseInitialLink, b0 as PalbaseInvokeOptions, b1 as PalbaseLink, b2 as PalbaseLinkAnalytics, b3 as PalbaseLinkDetails, b4 as PalbaseLinksClient, b5 as PalbaseListLinksOptions, b6 as PalbaseListLinksResult, b7 as PalbaseListOptions, b8 as PalbaseMatchParams, b9 as PalbaseMultiChannelResponse, ba as PalbaseNotificationsClient, bb as PalbaseOverviewResult, bc as PalbasePreferences, bd as PalbasePreferencesClient, be as PalbasePushClient, bf as PalbasePushSendParams, bg as PalbasePushSendResponse, bh as PalbaseQrCodeOptions, bi as PalbaseQuerySnapshot, bj as PalbaseRealtimeClient, bk as PalbaseRegisterDeviceParams, bl as PalbaseRetentionQueryInput, bm as PalbaseRetentionResult, bn as PalbaseSession, bo as PalbaseSetOverrideResult, bp as PalbaseSetOverridesResult, bq as PalbaseSignedUrlResponse, br as PalbaseSmsClient, bs as PalbaseSmsSendParams, bt as PalbaseSmsSendResponse, bu as PalbaseStorageClient, bv as PalbaseTransformOptions, bw as PalbaseUpdateLinkParams, bx as PalbaseUploadOptions, by as PalbaseUser, bz as PalbaseUserDetailResult, bA as PalbaseUsersQueryInput, bB as PalbaseUsersResult, bC as PalbaseVerifyRequestSignatureParams, bD as PalbaseWhereOperator, bE as PolicyBinOp, bF as PolicyBuilder, bG as PolicyCommand, bH as PolicyDef, bI as PolicyExprCtx, bJ as PolicyExprRef, bK as PolicyMode, bL as PolicyOperand, bM as QueryInput, R as RateLimitConfig, bN as RawConstraintDef, bO as Realtime, bP as Ref, bQ as RequestStore, bR as RowShape, a as RuntimeServices, bS as Secrets, bT as SecretsService, bU as SerializationFailure, bV as SetShape, bW as SetValue, bX as ShutdownRunner, bY as SqlFragment, bZ as Storage, b_ as TABLE_META, b$ as TableDef, c0 as TableHandle, c1 as TableInput, c2 as TooManyRequests, c3 as TxColumnExpr, c4 as TxInsertShape, c5 as TxInsertValue, c6 as TxNow, c7 as TxPlan, T as TxPlanBody, c8 as TxPlanError, c9 as TxPlanHandle, ca as TxPlanOpResult, cb as TxPlanRejection, c as TxPlanResponse, cc as TxRefError, cd as TxRow, ce as TxRows, cf as TxSelectOptions, cg as TxSetShape, ch as TxSetValue, ci as TxTable, cj as TxTables, ck as TxWhere, cl as TxWireExpr, cm as TxWireGuard, cn as TxWireOp, co as TxWireRef, cp as TxWireValue, cq as TypedDB, cr as TypedTable, cs as TypedTx, ct as Unauthorized, cu as UniqueViolation, cv as UserT, cw as VerifiedDevice, cx as WhereFilter, cy as WhereOp, cz as __getRuntime, d as __requestALS, cA as __resetLifecycleHooks, cB as __runStartHooks, _ as __runWithRuntime, cC as __setRuntime, cD as bigint, cE as boolean, cF as col, cG as dec, cH as decrement, cI as defineMiddleware, cJ as defineSchema, cK as defineTable, cL as enumType, cM as exprCtx, cN as inc, cO as increment, cP as index, cQ as installationRef, cR as integer, cS as isPalbaseExtension, cT as isRetryable, cU as jsonb, cV as makeTypedDB, cW as now, cX as numeric, cY as onShutdown, cZ as onStart, c_ as openai, c$ as ownedByUser, d0 as policy, d1 as raw, d2 as sqlFragment, d3 as text, d4 as timestamp, d5 as userRef, d6 as uuid, d7 as vector, d8 as withRetry } from './index-
|
|
3
|
-
import { M as ModuleClients, C as Container } from './index-
|
|
4
|
-
export { D as DECLARATION_REFUSAL, a as DeclarationRefused, b as DiError, c as DiKind, d as ModulePressure, e as assertNoOrphanEntryPoints, f as buildContainer, i as isDeclarationRefused } from './index-
|
|
1
|
+
import { P as PalbaseResult, e as PolicyExpr, S as SchemaDef, A as AuthSpec, H as HttpError } from './index-BWgnGj68.cjs';
|
|
2
|
+
export { f as AggregateInput, g as AggregateResult, h as AnyColumn, i as Auth, j as AuthConfig, B as BadRequest, k as Cache, C as CacheClient, l as ClientInfo, m as ColRef, n as ColumnBuilder, o as ColumnDef, p as ColumnMap, q as ColumnType, r as Conflict, D as DBClient, b as DBOps, s as Database, t as DeadlockDetected, u as Documents, v as EXTENSION_DEPENDENCIES, w as EmbeddingModelRef, x as EnvSchemas, E as EnvServiceDatabase, y as EnvTables, z as EnvTypedDatabase, F as EnvTypedTable, G as ErrorDef, I as ErrorMap, J as ErrorThrowers, K as FileContext, L as FindManyOpts, M as Flags, N as Forbidden, O as HttpMethod, Q as IndexBuilder, U as IndexDef, V as InsertShape, W as InsertValues, X as LifecycleHook, Y as Log, Z as Logger, $ as Materialized, a0 as Middleware, a1 as MiddlewareContext, a2 as MiddlewareHandler, a3 as MutateInput, a4 as NotFound, a5 as Notifications, a6 as OnDeleteAction, a7 as OrderBySpec, a8 as PALBASE_EXTENSIONS, a9 as PBRequest, aa as PalError, ab as PalbaseAnalyticsClient, ac as PalbaseAnalyticsManagementNamespace, ad as PalbaseAnalyticsProperties, ae as PalbaseAnalyticsQueryNamespace, af as PalbaseAttestAndroidParams, ag as PalbaseAttestAndroidResult, ah as PalbaseAttestiOSParams, ai as PalbaseAttestiOSResult, aj as PalbaseAuthAdminClient, ak as PalbaseAuthClient, al as PalbaseBatchOverrideOperation, am as PalbaseBatchSetOverridesResult, an as PalbaseBindDeviceParams, ao as PalbaseBucketClient, ap as PalbaseClearAllOverridesResult, aq as PalbaseClearOverrideResult, ar as PalbaseCohortQueryInput, as as PalbaseCohortResult, at as PalbaseCollectionRef, au as PalbaseCountQueryInput, av as PalbaseCountResult, aw as PalbaseCreateLinkParams, ax as PalbaseDeviceInfo, ay as PalbaseDeviceTokenView, az as PalbaseDocsClient, aA as PalbaseDocumentRef, aB as PalbaseDocumentSnapshot, aC as PalbaseEmailClient, aD as PalbaseEmailSendParams, aE as PalbaseEmailSendResponse, aF as PalbaseEventNamesResult, aG as PalbaseEventsQueryInput, aH as PalbaseEventsResult, aI as PalbaseExtension, aJ as PalbaseFileObject, aK as PalbaseFlag, aL as PalbaseFlagContext, aM as PalbaseFlagSource, aN as PalbaseFlagValue, aO as PalbaseFlagVariant, aP as PalbaseFlagsClient, aQ as PalbaseFlagsServiceClient, aR as PalbaseFunctionsClient, aS as PalbaseFunnelQueryInput, aT as PalbaseFunnelResult, aU as PalbaseIdentifyTraits, aV as PalbaseInboxClient, aW as PalbaseInboxListOptions, aX as PalbaseInboxListResult, aY as PalbaseInboxMessage, aZ as PalbaseInboxSendParams, a_ as PalbaseInboxSendResponse, a$ as PalbaseInitialLink, b0 as PalbaseInvokeOptions, b1 as PalbaseLink, b2 as PalbaseLinkAnalytics, b3 as PalbaseLinkDetails, b4 as PalbaseLinksClient, b5 as PalbaseListLinksOptions, b6 as PalbaseListLinksResult, b7 as PalbaseListOptions, b8 as PalbaseMatchParams, b9 as PalbaseMultiChannelResponse, ba as PalbaseNotificationsClient, bb as PalbaseOverviewResult, bc as PalbasePreferences, bd as PalbasePreferencesClient, be as PalbasePushClient, bf as PalbasePushSendParams, bg as PalbasePushSendResponse, bh as PalbaseQrCodeOptions, bi as PalbaseQuerySnapshot, bj as PalbaseRealtimeClient, bk as PalbaseRegisterDeviceParams, bl as PalbaseRetentionQueryInput, bm as PalbaseRetentionResult, bn as PalbaseSession, bo as PalbaseSetOverrideResult, bp as PalbaseSetOverridesResult, bq as PalbaseSignedUrlResponse, br as PalbaseSmsClient, bs as PalbaseSmsSendParams, bt as PalbaseSmsSendResponse, bu as PalbaseStorageClient, bv as PalbaseTransformOptions, bw as PalbaseUpdateLinkParams, bx as PalbaseUploadOptions, by as PalbaseUser, bz as PalbaseUserDetailResult, bA as PalbaseUsersQueryInput, bB as PalbaseUsersResult, bC as PalbaseVerifyRequestSignatureParams, bD as PalbaseWhereOperator, bE as PolicyBinOp, bF as PolicyBuilder, bG as PolicyCommand, bH as PolicyDef, bI as PolicyExprCtx, bJ as PolicyExprRef, bK as PolicyMode, bL as PolicyOperand, bM as QueryInput, R as RateLimitConfig, bN as RawConstraintDef, bO as Realtime, bP as Ref, bQ as RequestStore, bR as RowShape, a as RuntimeServices, bS as Secrets, bT as SecretsService, bU as SerializationFailure, bV as SetShape, bW as SetValue, bX as ShutdownRunner, bY as SqlFragment, bZ as Storage, b_ as TABLE_META, b$ as TableDef, c0 as TableHandle, c1 as TableInput, c2 as TooManyRequests, c3 as TxColumnExpr, c4 as TxInsertShape, c5 as TxInsertValue, c6 as TxNow, c7 as TxPlan, T as TxPlanBody, c8 as TxPlanError, c9 as TxPlanHandle, ca as TxPlanOpResult, cb as TxPlanRejection, c as TxPlanResponse, cc as TxRefError, cd as TxRow, ce as TxRows, cf as TxSelectOptions, cg as TxSetShape, ch as TxSetValue, ci as TxTable, cj as TxTables, ck as TxWhere, cl as TxWireExpr, cm as TxWireGuard, cn as TxWireOp, co as TxWireRef, cp as TxWireValue, cq as TypedDB, cr as TypedTable, cs as TypedTx, ct as Unauthorized, cu as UniqueViolation, cv as UserT, cw as VerifiedDevice, cx as WhereFilter, cy as WhereOp, cz as __getRuntime, d as __requestALS, cA as __resetLifecycleHooks, cB as __runStartHooks, _ as __runWithRuntime, cC as __setRuntime, cD as bigint, cE as boolean, cF as col, cG as dec, cH as decrement, cI as defineMiddleware, cJ as defineSchema, cK as defineTable, cL as enumType, cM as exprCtx, cN as inc, cO as increment, cP as index, cQ as installationRef, cR as integer, cS as isPalbaseExtension, cT as isRetryable, cU as jsonb, cV as makeTypedDB, cW as now, cX as numeric, cY as onShutdown, cZ as onStart, c_ as openai, c$ as ownedByUser, d0 as policy, d1 as raw, d2 as sqlFragment, d3 as text, d4 as timestamp, d5 as userRef, d6 as uuid, d7 as vector, d8 as withRetry } from './index-BWgnGj68.cjs';
|
|
3
|
+
import { M as ModuleClients, C as Container } from './index-g6iQyYci.cjs';
|
|
4
|
+
export { D as DECLARATION_REFUSAL, a as DeclarationRefused, b as DiError, c as DiKind, d as ModulePressure, e as assertNoOrphanEntryPoints, f as buildContainer, i as isDeclarationRefused } from './index-g6iQyYci.cjs';
|
|
5
5
|
export { TableTypes, Tables } from './db/env.cjs';
|
|
6
6
|
export { PalbaseBucketName, PalbaseFlagKey, PalbaseSecretName } from './stack.cjs';
|
|
7
|
-
import { a as RouteOptions } from './registry-
|
|
8
|
-
export { H as HttpMethodUpper, b as ParamKind, P as ParamMeta, R as RouteMeta, c as Signal, d as Sse, S as SseConfig, e as SseOut, f as SseWriter, T as ThrowDescriptor, g as Upload, U as UploadConfig, h as UploadedObject, i as getRoutes, r as recordThrows } from './registry-
|
|
7
|
+
import { a as RouteOptions } from './registry-6VT5RPeO.cjs';
|
|
8
|
+
export { H as HttpMethodUpper, b as ParamKind, P as ParamMeta, R as RouteMeta, c as Signal, d as Sse, S as SseConfig, e as SseOut, f as SseWriter, T as ThrowDescriptor, g as Upload, U as UploadConfig, h as UploadedObject, i as getRoutes, r as recordThrows } from './registry-6VT5RPeO.cjs';
|
|
9
9
|
import { ZodTypeAny, z } from 'zod';
|
|
10
10
|
export { z } from 'zod';
|
|
11
11
|
import { T as Token } from './module-Dl1KFVtc.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as PalbaseResult, e as PolicyExpr, S as SchemaDef, A as AuthSpec, H as HttpError } from './index-
|
|
2
|
-
export { f as AggregateInput, g as AggregateResult, h as AnyColumn, i as Auth, j as AuthConfig, B as BadRequest, k as Cache, C as CacheClient, l as ClientInfo, m as ColRef, n as ColumnBuilder, o as ColumnDef, p as ColumnMap, q as ColumnType, r as Conflict, D as DBClient, b as DBOps, s as Database, t as DeadlockDetected, u as Documents, v as EXTENSION_DEPENDENCIES, w as EmbeddingModelRef, x as EnvSchemas, E as EnvServiceDatabase, y as EnvTables, z as EnvTypedDatabase, F as EnvTypedTable, G as ErrorDef, I as ErrorMap, J as ErrorThrowers, K as FileContext, L as FindManyOpts, M as Flags, N as Forbidden, O as HttpMethod, Q as IndexBuilder, U as IndexDef, V as InsertShape, W as InsertValues, X as LifecycleHook, Y as Log, Z as Logger, $ as Materialized, a0 as Middleware, a1 as MiddlewareContext, a2 as MiddlewareHandler, a3 as MutateInput, a4 as NotFound, a5 as Notifications, a6 as OnDeleteAction, a7 as OrderBySpec, a8 as PALBASE_EXTENSIONS, a9 as PBRequest, aa as PalError, ab as PalbaseAnalyticsClient, ac as PalbaseAnalyticsManagementNamespace, ad as PalbaseAnalyticsProperties, ae as PalbaseAnalyticsQueryNamespace, af as PalbaseAttestAndroidParams, ag as PalbaseAttestAndroidResult, ah as PalbaseAttestiOSParams, ai as PalbaseAttestiOSResult, aj as PalbaseAuthAdminClient, ak as PalbaseAuthClient, al as PalbaseBatchOverrideOperation, am as PalbaseBatchSetOverridesResult, an as PalbaseBindDeviceParams, ao as PalbaseBucketClient, ap as PalbaseClearAllOverridesResult, aq as PalbaseClearOverrideResult, ar as PalbaseCohortQueryInput, as as PalbaseCohortResult, at as PalbaseCollectionRef, au as PalbaseCountQueryInput, av as PalbaseCountResult, aw as PalbaseCreateLinkParams, ax as PalbaseDeviceInfo, ay as PalbaseDeviceTokenView, az as PalbaseDocsClient, aA as PalbaseDocumentRef, aB as PalbaseDocumentSnapshot, aC as PalbaseEmailClient, aD as PalbaseEmailSendParams, aE as PalbaseEmailSendResponse, aF as PalbaseEventNamesResult, aG as PalbaseEventsQueryInput, aH as PalbaseEventsResult, aI as PalbaseExtension, aJ as PalbaseFileObject, aK as PalbaseFlag, aL as PalbaseFlagContext, aM as PalbaseFlagSource, aN as PalbaseFlagValue, aO as PalbaseFlagVariant, aP as PalbaseFlagsClient, aQ as PalbaseFlagsServiceClient, aR as PalbaseFunctionsClient, aS as PalbaseFunnelQueryInput, aT as PalbaseFunnelResult, aU as PalbaseIdentifyTraits, aV as PalbaseInboxClient, aW as PalbaseInboxListOptions, aX as PalbaseInboxListResult, aY as PalbaseInboxMessage, aZ as PalbaseInboxSendParams, a_ as PalbaseInboxSendResponse, a$ as PalbaseInitialLink, b0 as PalbaseInvokeOptions, b1 as PalbaseLink, b2 as PalbaseLinkAnalytics, b3 as PalbaseLinkDetails, b4 as PalbaseLinksClient, b5 as PalbaseListLinksOptions, b6 as PalbaseListLinksResult, b7 as PalbaseListOptions, b8 as PalbaseMatchParams, b9 as PalbaseMultiChannelResponse, ba as PalbaseNotificationsClient, bb as PalbaseOverviewResult, bc as PalbasePreferences, bd as PalbasePreferencesClient, be as PalbasePushClient, bf as PalbasePushSendParams, bg as PalbasePushSendResponse, bh as PalbaseQrCodeOptions, bi as PalbaseQuerySnapshot, bj as PalbaseRealtimeClient, bk as PalbaseRegisterDeviceParams, bl as PalbaseRetentionQueryInput, bm as PalbaseRetentionResult, bn as PalbaseSession, bo as PalbaseSetOverrideResult, bp as PalbaseSetOverridesResult, bq as PalbaseSignedUrlResponse, br as PalbaseSmsClient, bs as PalbaseSmsSendParams, bt as PalbaseSmsSendResponse, bu as PalbaseStorageClient, bv as PalbaseTransformOptions, bw as PalbaseUpdateLinkParams, bx as PalbaseUploadOptions, by as PalbaseUser, bz as PalbaseUserDetailResult, bA as PalbaseUsersQueryInput, bB as PalbaseUsersResult, bC as PalbaseVerifyRequestSignatureParams, bD as PalbaseWhereOperator, bE as PolicyBinOp, bF as PolicyBuilder, bG as PolicyCommand, bH as PolicyDef, bI as PolicyExprCtx, bJ as PolicyExprRef, bK as PolicyMode, bL as PolicyOperand, bM as QueryInput, R as RateLimitConfig, bN as RawConstraintDef, bO as Realtime, bP as Ref, bQ as RequestStore, bR as RowShape, a as RuntimeServices, bS as Secrets, bT as SecretsService, bU as SerializationFailure, bV as SetShape, bW as SetValue, bX as ShutdownRunner, bY as SqlFragment, bZ as Storage, b_ as TABLE_META, b$ as TableDef, c0 as TableHandle, c1 as TableInput, c2 as TooManyRequests, c3 as TxColumnExpr, c4 as TxInsertShape, c5 as TxInsertValue, c6 as TxNow, c7 as TxPlan, T as TxPlanBody, c8 as TxPlanError, c9 as TxPlanHandle, ca as TxPlanOpResult, cb as TxPlanRejection, c as TxPlanResponse, cc as TxRefError, cd as TxRow, ce as TxRows, cf as TxSelectOptions, cg as TxSetShape, ch as TxSetValue, ci as TxTable, cj as TxTables, ck as TxWhere, cl as TxWireExpr, cm as TxWireGuard, cn as TxWireOp, co as TxWireRef, cp as TxWireValue, cq as TypedDB, cr as TypedTable, cs as TypedTx, ct as Unauthorized, cu as UniqueViolation, cv as UserT, cw as VerifiedDevice, cx as WhereFilter, cy as WhereOp, cz as __getRuntime, d as __requestALS, cA as __resetLifecycleHooks, cB as __runStartHooks, _ as __runWithRuntime, cC as __setRuntime, cD as bigint, cE as boolean, cF as col, cG as dec, cH as decrement, cI as defineMiddleware, cJ as defineSchema, cK as defineTable, cL as enumType, cM as exprCtx, cN as inc, cO as increment, cP as index, cQ as installationRef, cR as integer, cS as isPalbaseExtension, cT as isRetryable, cU as jsonb, cV as makeTypedDB, cW as now, cX as numeric, cY as onShutdown, cZ as onStart, c_ as openai, c$ as ownedByUser, d0 as policy, d1 as raw, d2 as sqlFragment, d3 as text, d4 as timestamp, d5 as userRef, d6 as uuid, d7 as vector, d8 as withRetry } from './index-
|
|
3
|
-
import { M as ModuleClients, C as Container } from './index-
|
|
4
|
-
export { D as DECLARATION_REFUSAL, a as DeclarationRefused, b as DiError, c as DiKind, d as ModulePressure, e as assertNoOrphanEntryPoints, f as buildContainer, i as isDeclarationRefused } from './index-
|
|
1
|
+
import { P as PalbaseResult, e as PolicyExpr, S as SchemaDef, A as AuthSpec, H as HttpError } from './index-Dg10RnZO.js';
|
|
2
|
+
export { f as AggregateInput, g as AggregateResult, h as AnyColumn, i as Auth, j as AuthConfig, B as BadRequest, k as Cache, C as CacheClient, l as ClientInfo, m as ColRef, n as ColumnBuilder, o as ColumnDef, p as ColumnMap, q as ColumnType, r as Conflict, D as DBClient, b as DBOps, s as Database, t as DeadlockDetected, u as Documents, v as EXTENSION_DEPENDENCIES, w as EmbeddingModelRef, x as EnvSchemas, E as EnvServiceDatabase, y as EnvTables, z as EnvTypedDatabase, F as EnvTypedTable, G as ErrorDef, I as ErrorMap, J as ErrorThrowers, K as FileContext, L as FindManyOpts, M as Flags, N as Forbidden, O as HttpMethod, Q as IndexBuilder, U as IndexDef, V as InsertShape, W as InsertValues, X as LifecycleHook, Y as Log, Z as Logger, $ as Materialized, a0 as Middleware, a1 as MiddlewareContext, a2 as MiddlewareHandler, a3 as MutateInput, a4 as NotFound, a5 as Notifications, a6 as OnDeleteAction, a7 as OrderBySpec, a8 as PALBASE_EXTENSIONS, a9 as PBRequest, aa as PalError, ab as PalbaseAnalyticsClient, ac as PalbaseAnalyticsManagementNamespace, ad as PalbaseAnalyticsProperties, ae as PalbaseAnalyticsQueryNamespace, af as PalbaseAttestAndroidParams, ag as PalbaseAttestAndroidResult, ah as PalbaseAttestiOSParams, ai as PalbaseAttestiOSResult, aj as PalbaseAuthAdminClient, ak as PalbaseAuthClient, al as PalbaseBatchOverrideOperation, am as PalbaseBatchSetOverridesResult, an as PalbaseBindDeviceParams, ao as PalbaseBucketClient, ap as PalbaseClearAllOverridesResult, aq as PalbaseClearOverrideResult, ar as PalbaseCohortQueryInput, as as PalbaseCohortResult, at as PalbaseCollectionRef, au as PalbaseCountQueryInput, av as PalbaseCountResult, aw as PalbaseCreateLinkParams, ax as PalbaseDeviceInfo, ay as PalbaseDeviceTokenView, az as PalbaseDocsClient, aA as PalbaseDocumentRef, aB as PalbaseDocumentSnapshot, aC as PalbaseEmailClient, aD as PalbaseEmailSendParams, aE as PalbaseEmailSendResponse, aF as PalbaseEventNamesResult, aG as PalbaseEventsQueryInput, aH as PalbaseEventsResult, aI as PalbaseExtension, aJ as PalbaseFileObject, aK as PalbaseFlag, aL as PalbaseFlagContext, aM as PalbaseFlagSource, aN as PalbaseFlagValue, aO as PalbaseFlagVariant, aP as PalbaseFlagsClient, aQ as PalbaseFlagsServiceClient, aR as PalbaseFunctionsClient, aS as PalbaseFunnelQueryInput, aT as PalbaseFunnelResult, aU as PalbaseIdentifyTraits, aV as PalbaseInboxClient, aW as PalbaseInboxListOptions, aX as PalbaseInboxListResult, aY as PalbaseInboxMessage, aZ as PalbaseInboxSendParams, a_ as PalbaseInboxSendResponse, a$ as PalbaseInitialLink, b0 as PalbaseInvokeOptions, b1 as PalbaseLink, b2 as PalbaseLinkAnalytics, b3 as PalbaseLinkDetails, b4 as PalbaseLinksClient, b5 as PalbaseListLinksOptions, b6 as PalbaseListLinksResult, b7 as PalbaseListOptions, b8 as PalbaseMatchParams, b9 as PalbaseMultiChannelResponse, ba as PalbaseNotificationsClient, bb as PalbaseOverviewResult, bc as PalbasePreferences, bd as PalbasePreferencesClient, be as PalbasePushClient, bf as PalbasePushSendParams, bg as PalbasePushSendResponse, bh as PalbaseQrCodeOptions, bi as PalbaseQuerySnapshot, bj as PalbaseRealtimeClient, bk as PalbaseRegisterDeviceParams, bl as PalbaseRetentionQueryInput, bm as PalbaseRetentionResult, bn as PalbaseSession, bo as PalbaseSetOverrideResult, bp as PalbaseSetOverridesResult, bq as PalbaseSignedUrlResponse, br as PalbaseSmsClient, bs as PalbaseSmsSendParams, bt as PalbaseSmsSendResponse, bu as PalbaseStorageClient, bv as PalbaseTransformOptions, bw as PalbaseUpdateLinkParams, bx as PalbaseUploadOptions, by as PalbaseUser, bz as PalbaseUserDetailResult, bA as PalbaseUsersQueryInput, bB as PalbaseUsersResult, bC as PalbaseVerifyRequestSignatureParams, bD as PalbaseWhereOperator, bE as PolicyBinOp, bF as PolicyBuilder, bG as PolicyCommand, bH as PolicyDef, bI as PolicyExprCtx, bJ as PolicyExprRef, bK as PolicyMode, bL as PolicyOperand, bM as QueryInput, R as RateLimitConfig, bN as RawConstraintDef, bO as Realtime, bP as Ref, bQ as RequestStore, bR as RowShape, a as RuntimeServices, bS as Secrets, bT as SecretsService, bU as SerializationFailure, bV as SetShape, bW as SetValue, bX as ShutdownRunner, bY as SqlFragment, bZ as Storage, b_ as TABLE_META, b$ as TableDef, c0 as TableHandle, c1 as TableInput, c2 as TooManyRequests, c3 as TxColumnExpr, c4 as TxInsertShape, c5 as TxInsertValue, c6 as TxNow, c7 as TxPlan, T as TxPlanBody, c8 as TxPlanError, c9 as TxPlanHandle, ca as TxPlanOpResult, cb as TxPlanRejection, c as TxPlanResponse, cc as TxRefError, cd as TxRow, ce as TxRows, cf as TxSelectOptions, cg as TxSetShape, ch as TxSetValue, ci as TxTable, cj as TxTables, ck as TxWhere, cl as TxWireExpr, cm as TxWireGuard, cn as TxWireOp, co as TxWireRef, cp as TxWireValue, cq as TypedDB, cr as TypedTable, cs as TypedTx, ct as Unauthorized, cu as UniqueViolation, cv as UserT, cw as VerifiedDevice, cx as WhereFilter, cy as WhereOp, cz as __getRuntime, d as __requestALS, cA as __resetLifecycleHooks, cB as __runStartHooks, _ as __runWithRuntime, cC as __setRuntime, cD as bigint, cE as boolean, cF as col, cG as dec, cH as decrement, cI as defineMiddleware, cJ as defineSchema, cK as defineTable, cL as enumType, cM as exprCtx, cN as inc, cO as increment, cP as index, cQ as installationRef, cR as integer, cS as isPalbaseExtension, cT as isRetryable, cU as jsonb, cV as makeTypedDB, cW as now, cX as numeric, cY as onShutdown, cZ as onStart, c_ as openai, c$ as ownedByUser, d0 as policy, d1 as raw, d2 as sqlFragment, d3 as text, d4 as timestamp, d5 as userRef, d6 as uuid, d7 as vector, d8 as withRetry } from './index-Dg10RnZO.js';
|
|
3
|
+
import { M as ModuleClients, C as Container } from './index-Bi74dcOu.js';
|
|
4
|
+
export { D as DECLARATION_REFUSAL, a as DeclarationRefused, b as DiError, c as DiKind, d as ModulePressure, e as assertNoOrphanEntryPoints, f as buildContainer, i as isDeclarationRefused } from './index-Bi74dcOu.js';
|
|
5
5
|
export { TableTypes, Tables } from './db/env.js';
|
|
6
6
|
export { PalbaseBucketName, PalbaseFlagKey, PalbaseSecretName } from './stack.js';
|
|
7
|
-
import { a as RouteOptions } from './registry-
|
|
8
|
-
export { H as HttpMethodUpper, b as ParamKind, P as ParamMeta, R as RouteMeta, c as Signal, d as Sse, S as SseConfig, e as SseOut, f as SseWriter, T as ThrowDescriptor, g as Upload, U as UploadConfig, h as UploadedObject, i as getRoutes, r as recordThrows } from './registry-
|
|
7
|
+
import { a as RouteOptions } from './registry-B-sxJJN0.js';
|
|
8
|
+
export { H as HttpMethodUpper, b as ParamKind, P as ParamMeta, R as RouteMeta, c as Signal, d as Sse, S as SseConfig, e as SseOut, f as SseWriter, T as ThrowDescriptor, g as Upload, U as UploadConfig, h as UploadedObject, i as getRoutes, r as recordThrows } from './registry-B-sxJJN0.js';
|
|
9
9
|
import { ZodTypeAny, z } from 'zod';
|
|
10
10
|
export { z } from 'zod';
|
|
11
11
|
import { T as Token } from './module-Dl1KFVtc.js';
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
openai,
|
|
14
14
|
policy,
|
|
15
15
|
raw
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GOPZPM2A.js";
|
|
17
17
|
import {
|
|
18
18
|
defineError,
|
|
19
19
|
getErrorRegistry
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
makeEnvDts,
|
|
36
36
|
roomsOf,
|
|
37
37
|
webhooksOf
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-N54QZER3.js";
|
|
39
39
|
import {
|
|
40
40
|
Auth,
|
|
41
41
|
Cache,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
__setRuntime,
|
|
56
56
|
onShutdown,
|
|
57
57
|
onStart
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-QMFOL2K6.js";
|
|
59
59
|
import {
|
|
60
60
|
bigint,
|
|
61
61
|
boolean,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
userRef,
|
|
71
71
|
uuid,
|
|
72
72
|
vector
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-XOX6RFPZ.js";
|
|
74
74
|
import {
|
|
75
75
|
TxPlanError,
|
|
76
76
|
TxRefError,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
sqlFragment,
|
|
85
85
|
toSchemaJSON,
|
|
86
86
|
withRetry
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-C4ZA5AT2.js";
|
|
88
88
|
import {
|
|
89
89
|
Controller,
|
|
90
90
|
__resetDefaultAuth,
|
package/dist/openapi/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenApiGeneratorV31 } from '@asteasolutions/zod-to-openapi';
|
|
2
2
|
import { ZodTypeAny } from 'zod';
|
|
3
|
-
import { A as AuthSpec, R as RateLimitConfig } from '../index-
|
|
4
|
-
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig, S as SseConfig } from '../registry-
|
|
3
|
+
import { A as AuthSpec, R as RateLimitConfig } from '../index-BWgnGj68.cjs';
|
|
4
|
+
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig, S as SseConfig } from '../registry-6VT5RPeO.cjs';
|
|
5
5
|
import '../db/env.cjs';
|
|
6
6
|
import '../stack.cjs';
|
|
7
7
|
import 'node:async_hooks';
|
package/dist/openapi/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenApiGeneratorV31 } from '@asteasolutions/zod-to-openapi';
|
|
2
2
|
import { ZodTypeAny } from 'zod';
|
|
3
|
-
import { A as AuthSpec, R as RateLimitConfig } from '../index-
|
|
4
|
-
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig, S as SseConfig } from '../registry-
|
|
3
|
+
import { A as AuthSpec, R as RateLimitConfig } from '../index-Dg10RnZO.js';
|
|
4
|
+
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig, S as SseConfig } from '../registry-B-sxJJN0.js';
|
|
5
5
|
import '../db/env.js';
|
|
6
6
|
import '../stack.js';
|
|
7
7
|
import 'node:async_hooks';
|
package/dist/test/index.cjs
CHANGED
|
@@ -1174,7 +1174,7 @@ function createMockDB() {
|
|
|
1174
1174
|
// ops write to, so a test that writes three rows and counts them gets 3 —
|
|
1175
1175
|
// a mock that answered 0 would make the surface look broken in exactly the
|
|
1176
1176
|
// tests meant to prove it works.
|
|
1177
|
-
async updateMany(table, where, set) {
|
|
1177
|
+
async updateMany(table, where, set, opts) {
|
|
1178
1178
|
if (Object.keys(where).length === 0) throw new Error(`updateMany(${table}): bo\u015F filtre`);
|
|
1179
1179
|
assertUsableFilter("updateMany", table, where);
|
|
1180
1180
|
refuseFragment("updateMany", table, where);
|
|
@@ -1194,7 +1194,8 @@ function createMockDB() {
|
|
|
1194
1194
|
row[k] = v;
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
|
|
1197
|
+
for (const row of hit) track(tracked.updated, table, row);
|
|
1198
|
+
return opts?.returning === false ? hit.length : hit;
|
|
1198
1199
|
},
|
|
1199
1200
|
async deleteMany(table, where) {
|
|
1200
1201
|
if (Object.keys(where).length === 0) throw new Error(`deleteMany(${table}): bo\u015F filtre`);
|
|
@@ -1444,7 +1445,8 @@ function createMockDB() {
|
|
|
1444
1445
|
async delete(table, id) {
|
|
1445
1446
|
const rows = store.get(table) ?? [];
|
|
1446
1447
|
const idx = rows.findIndex((r) => r["id"] === id);
|
|
1447
|
-
if (idx
|
|
1448
|
+
if (idx < 0) return;
|
|
1449
|
+
rows.splice(idx, 1);
|
|
1448
1450
|
const list = tracked.deleted.get(table);
|
|
1449
1451
|
if (list) list.push(id);
|
|
1450
1452
|
else tracked.deleted.set(table, [
|
|
@@ -1825,9 +1827,29 @@ var __requestALS = (() => {
|
|
|
1825
1827
|
return g[REQUEST_ALS] ??= new import_node_async_hooks.AsyncLocalStorage();
|
|
1826
1828
|
})();
|
|
1827
1829
|
var runtime = null;
|
|
1830
|
+
var REQUIRED_SERVICES = [
|
|
1831
|
+
"Database",
|
|
1832
|
+
"Auth",
|
|
1833
|
+
"Secrets",
|
|
1834
|
+
"Documents",
|
|
1835
|
+
"Storage",
|
|
1836
|
+
"Cache",
|
|
1837
|
+
"Log",
|
|
1838
|
+
"Notifications",
|
|
1839
|
+
"Flags",
|
|
1840
|
+
"Realtime"
|
|
1841
|
+
];
|
|
1842
|
+
function refuseIncompleteBox(services) {
|
|
1843
|
+
const missing = REQUIRED_SERVICES.filter((k) => services[k] === void 0);
|
|
1844
|
+
if (missing.length > 0) {
|
|
1845
|
+
throw new Error(`the request scope is missing ${missing.join(", ")} \u2014 this box was most likely written by a DIFFERENT @palbase/backend major sharing the same process (the request store is a process-wide well-known Symbol, deliberately, so two bundles of ONE version can share it). Align the versions, or pass every service when building the scope yourself.`);
|
|
1846
|
+
}
|
|
1847
|
+
return services;
|
|
1848
|
+
}
|
|
1849
|
+
__name(refuseIncompleteBox, "refuseIncompleteBox");
|
|
1828
1850
|
function __getRuntime() {
|
|
1829
1851
|
const scoped = __requestALS.getStore();
|
|
1830
|
-
if (scoped) return scoped.runtime;
|
|
1852
|
+
if (scoped) return refuseIncompleteBox(scoped.runtime);
|
|
1831
1853
|
if (runtime === null) {
|
|
1832
1854
|
throw new Error("Palbase services accessed outside a request scope. The Database/Documents/\u2026 singletons are only available inside an endpoint handler (or after the runtime has called __runWithRuntime / __setRuntime).");
|
|
1833
1855
|
}
|
|
@@ -1903,7 +1925,12 @@ function makeTypedSurface(raw) {
|
|
|
1903
1925
|
$findById: /* @__PURE__ */ __name((table, id) => raw.findById(table, id), "$findById"),
|
|
1904
1926
|
$findMany: /* @__PURE__ */ __name((table, query, opts) => raw.findMany(table, query, opts), "$findMany"),
|
|
1905
1927
|
$put: /* @__PURE__ */ __name((table, data, opts) => raw.put(table, data, opts), "$put"),
|
|
1906
|
-
|
|
1928
|
+
// `opts` İLETİLİR. Düşürüldüğü sürece `Database.$updateMany(t, w, s,
|
|
1929
|
+
// { returning: false })` sessizce SATIRLARI döndürüyordu, sayıyı değil —
|
|
1930
|
+
// ve `if (n === 0) throw new Conflict(...)` guard'ı HİÇ çalışmıyordu,
|
|
1931
|
+
// çünkü `[] === 0` yanlıştır. Komşu forwarder'lar (`$findMany`, `$put`)
|
|
1932
|
+
// kendi opsiyonlarını zaten iletiyordu; bu biri unutulmuştu.
|
|
1933
|
+
$updateMany: /* @__PURE__ */ __name((table, where, set, opts) => raw.updateMany(table, where, set, opts), "$updateMany"),
|
|
1907
1934
|
$deleteMany: /* @__PURE__ */ __name((table, where) => raw.deleteMany(table, where), "$deleteMany"),
|
|
1908
1935
|
$count: /* @__PURE__ */ __name((table, where) => raw.count(table, where), "$count"),
|
|
1909
1936
|
$search: /* @__PURE__ */ __name((table, params) => raw.search(table, params), "$search"),
|
|
@@ -2034,13 +2061,13 @@ var Flags = Object.assign({
|
|
|
2034
2061
|
* Lazily resolve the runtime's cross-user sibling on each call. We do NOT
|
|
2035
2062
|
* cache it: `rawFlags.asService()` reads the CURRENT request scope through
|
|
2036
2063
|
* the runtime proxy, so caching would leak one request's sibling into
|
|
2037
|
-
* another concurrent request. Mirrors `Database
|
|
2064
|
+
* another concurrent request. Mirrors `Database.$asService()`.
|
|
2038
2065
|
*/
|
|
2039
2066
|
$asService() {
|
|
2040
2067
|
return rawFlags.asService();
|
|
2041
2068
|
},
|
|
2042
2069
|
/**
|
|
2043
|
-
* The name this member carried before
|
|
2070
|
+
* The name this member carried before 32.0.0.
|
|
2044
2071
|
*
|
|
2045
2072
|
* It does NOT work silently. A retired member that quietly keeps returning
|
|
2046
2073
|
* is how a rename becomes a mystery: the old call site goes on compiling,
|
|
@@ -2050,7 +2077,7 @@ var Flags = Object.assign({
|
|
|
2050
2077
|
* Database.$asService()" while the promise went unkept.
|
|
2051
2078
|
*/
|
|
2052
2079
|
asService() {
|
|
2053
|
-
throw new Error("Flags.asService() was renamed to Flags.$asService() in
|
|
2080
|
+
throw new Error("Flags.asService() was renamed to Flags.$asService() in 32.0.0 \u2014 system members carry the `$` prefix, like Database.$asService().");
|
|
2054
2081
|
}
|
|
2055
2082
|
});
|
|
2056
2083
|
var Realtime = makeServiceProxy("Realtime");
|