@web-ts-toolkit/access-router 0.70.0 → 0.71.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.
@@ -787,6 +787,7 @@ declare class AccessRuntime {
787
787
  allowGlobalModelLookup?: boolean;
788
788
  });
789
789
  private readonly globalOptions;
790
+ private syncProxySnapshotDiagnosticsState;
790
791
  private readonly defaultModelOptions;
791
792
  private readonly modelOptions;
792
793
  private readonly modelOptionOverrides;
@@ -1901,6 +1902,7 @@ interface AccessRouterLogger {
1901
1902
  error?: (...args: unknown[]) => unknown;
1902
1903
  isLevelEnabled?: (level: string) => boolean;
1903
1904
  }
1905
+ type AuthorizationSnapshotProxyLogMode = 'error' | 'warn' | 'silent';
1904
1906
  /**
1905
1907
  * Runtime-wide request initialization and resource settings, configured with
1906
1908
  * api.setGlobalOptions / api.setGlobalOption. These are not model options or wire
@@ -1922,6 +1924,13 @@ interface GlobalOptions {
1922
1924
  */
1923
1925
  globalPermissions?: (this: AccessRouterRequest, req: AccessRouterRequest) => MaybePromise<GlobalPermissionValue>;
1924
1926
  logger?: AccessRouterLogger;
1927
+ /**
1928
+ * Controls the diagnostic log emitted when an authorization snapshot rejects a
1929
+ * Proxy value. Rejection always fails closed with a 400 response; this only
1930
+ * tunes log noise. Invalid values are treated as 'error'. Logs carry the
1931
+ * value's property path and stack, never the rejected value itself.
1932
+ */
1933
+ authorizationSnapshotProxyLog?: AuthorizationSnapshotProxyLogMode;
1925
1934
  /** Request budgets and separate hook/persistence pools; concurrency limits are captured on first owner use. */
1926
1935
  requestComplexity?: RequestComplexityOptions;
1927
1936
  }
@@ -4006,4 +4015,4 @@ declare function fromIoTs<TValue = unknown>(decoder: IoTsDecoderLike<TValue>): R
4006
4015
  declare function fromSuperstruct<TStruct, TOutput = unknown>(struct: TStruct, validate: SuperstructValidateLike): RequestSchemaValidator<TOutput>;
4007
4016
  declare function fromVine<TValue = unknown>(validator: VineValidatorLike<TValue>): RequestSchemaValidator<TValue>;
4008
4017
 
4009
- export { type DataRouterOptions as $, type AccessRouterBaseRequest as A, type BaseFilterAccess as B, type Change as C, type CorrelatedListInclude as D, type CorrelatedReadByFilterInclude as E, type CorrelatedReadByIdInclude as F, type CountBody as G, type CreateArgs as H, type CreateAuthorization as I, type CreateOptions as J, type CreateQueryInput as K, CustomHeaders as L, DATA_MIDDLEWARE as M, type DataBaseFilterHook as N, type DataFieldOptions as O, type DataFilter as P, type DataFindArgs as Q, type DataFindOneArgs as R, type DataFindOneOptions as S, type DataFindOptions as T, type DataHook as U, type DataHookContext as V, type DataIdentifierHook as W, type DataListHook as X, type DataOverrideFilterHook as Y, type DataRequest as Z, type DataRequestSchemas as _, type AccessRouterFieldKey as a, type ModelOutputListHook as a$, type DecorateAccess as a0, type DecorateAllAccess as a1, type DeepFieldPath as a2, type DefaultModelRouterOptions as a3, type Defaults as a4, type DistinctArgs as a5, type DistinctBody as a6, type DocPermissionsAccess as a7, type DocumentGrants as a8, type ErrorResult as a9, type IoTsContextEntryLike as aA, type IoTsDecodeErrorLike as aB, type IoTsDecoderLike as aC, type JoiSchemaLike as aD, type JoiValidationErrorDetailLike as aE, type KeyValueProjection as aF, type LegacyInclude as aG, type ListQueryInput as aH, type ListResult as aI, MIDDLEWARE as aJ, type MaybePromise as aK, type ModelBaseFilterHook as aL, type ModelChangeHook as aM, type ModelDeleteHook as aN, type ModelDocPermissionsAccessRecord as aO, type ModelDocPermissionsDefinition as aP, type ModelDocPermissionsDescriptor as aQ, type ModelDocPermissionsHook as aR, type ModelDocument as aS, type ModelDocumentHook as aT, type ModelHook as aU, type ModelHookContext as aV, type ModelHydrationOptions as aW, type ModelIdentifierHook as aX, type ModelListHook as aY, type ModelOutputContext as aZ, type ModelOutputHook as a_, type ExistsOptions as aa, type ExtendedDataRouterOptions as ab, type ExtendedDefaultModelRouterOptions as ac, type ExtendedModelRouterOptions as ad, type FieldAuthorization as ae, type FieldOperationAccess as af, type FieldPermissionHook as ag, type FieldValidation as ah, type Filter as ai, FilterOperator as aj, type FilteredOutput as ak, type FindAccess as al, type FindArgs as am, type FindByIdArgs as an, type FindByIdOptions as ao, type FindOneArgs as ap, type FindOneOptions as aq, type FindOptions as ar, type GlobalOptions as as, type GlobalPermissionValue as at, type GuardHook as au, type HydrationMode as av, type IdentifierHook as aw, type Include as ax, type InputFieldAuthorization as ay, type InputFieldPath as az, type AccessRouterLogger as b, type RequestSchemaFailure as b$, type ModelOverrideFilterHook as b0, type ModelRequest as b1, type ModelRouterOptions as b2, type ModelValidateHook as b3, type ModelVirtualAccess as b4, type ModelVirtualAccessRecord as b5, type ModelVirtualContext as b6, type ModelVirtualDescriptor as b7, type ModelVirtualDoc as b8, type ModelVirtualGetter as b9, type PopulateAccess as bA, type PopulatePlanningOptions as bB, type PrepareAccess as bC, type Projection as bD, type PublicCreateArgs as bE, type PublicCreateOptions as bF, type PublicErrorResult as bG, type PublicListArgs as bH, type PublicListOptions as bI, type PublicListResult as bJ, type PublicOutput as bK, type PublicReadArgs as bL, type PublicReadOptions as bM, type PublicServiceResult as bN, type PublicSingleResult as bO, type PublicSubdocumentCreateOptions as bP, type PublicSubdocumentListOptions as bQ, type PublicSubdocumentMutationOptions as bR, type PublicSubdocumentReadOptions as bS, type PublicUpdateArgs as bT, type PublicUpdateOptions as bU, type PublicUpsertArgs as bV, type PublicUpsertOptions as bW, type ReadQueryInput as bX, type RelatedAuthorization as bY, type Request as bZ, type RequestSchemaAdapter as b_, type ModelVirtualLeaf as ba, type ModelVirtualPopulateDependency as bb, type ModelVirtualPopulateInputs as bc, type ModelVirtualRecordAccess as bd, type ModelVirtuals as be, type MutationAuthorization as bf, type NewArgs as bg, type NewOptions as bh, type OperationAccess as bi, type OperationAccessContext as bj, type OperationAccessPaths as bk, type OperationAccessRule as bl, type OperationAccessSetter as bm, type OperationAccessVariants as bn, type OperationAuthorization as bo, type OutputAuthorization as bp, type OutputFieldOptions as bq, type OutputFieldPath as br, type OutputPlanningOptions as bs, PERMISSIONS as bt, PERMISSION_KEYS as bu, type PairedRouteAccess as bv, type ParentRef as bw, type PathValue as bx, type PermissionSchema as by, type Populate as bz, type AccessRouterRequest as c, type SubdocumentCreateAuthorization as c$, type RequestSchemaIssue as c0, type RequestSchemaLike as c1, type RequestSchemaOptions as c2, type RequestSchemaResult as c3, type RequestSchemaSuccess as c4, type RequestSchemaValidator as c5, type RequestSchemas as c6, type RootDataListQueryEntry as c7, type RootDataOperation as c8, type RootDataReadByFilterQueryEntry as c9, type RowAuthorization as cA, type SelectAccess as cB, type SelectedPopulatedPublicOutput as cC, type SelectedPublicOutput as cD, type ServiceAuthorization as cE, type ServiceOutputContext as cF, type ServiceOutputDecorator as cG, type ServiceResult as cH, type SingleResult as cI, type Sort as cJ, type SortOrder as cK, type StandardSchemaFailure as cL, type StandardSchemaInferOutput as cM, type StandardSchemaIssue as cN, type StandardSchemaPathSegment as cO, type StandardSchemaResult as cP, type StandardSchemaSuccess as cQ, type StandardSchemaV1 as cR, StatusCodes as cS, type SubListBody as cT, type SubOperationAccess as cU, type SubPopulate as cV, type SubQueryEntry as cW, type SubReadBody as cX, type SubRouteGuardOptions as cY, type SubdocumentBulkRecord as cZ, type SubdocumentBulkUpdateInput as c_, type RootDataReadByIdQueryEntry as ca, type RootModelCountQueryEntry as cb, type RootModelCreateQueryEntry as cc, type RootModelDeleteQueryEntry as cd, type RootModelDistinctQueryEntry as ce, type RootModelListQueryEntry as cf, type RootModelNewQueryEntry as cg, type RootModelOperation as ch, type RootModelReadByFilterQueryEntry as ci, type RootModelReadByIdQueryEntry as cj, type RootModelSubBulkUpdateQueryEntry as ck, type RootModelSubCreateQueryEntry as cl, type RootModelSubDeleteQueryEntry as cm, type RootModelSubListQueryEntry as cn, type RootModelSubReadQueryEntry as co, type RootModelSubUpdateQueryEntry as cp, type RootModelUpdateQueryEntry as cq, type RootModelUpsertQueryEntry as cr, type RootOperationResult as cs, type RootQueryEntry as ct, type RootRouterOptions as cu, type RootSubOperation as cv, type RootTarget as cw, type RouteBaseAccess as cx, type RouteGuardAccess as cy, type RouteVariant as cz, type AccessRouterRequestExtensions as d, parseBodyWithSchema as d$, type SubdocumentCreateInput as d0, type SubdocumentCreateOptions as d1, type SubdocumentCreateVisibilityAuthorization as d2, type SubdocumentDeleteAuthorization as d3, type SubdocumentDeleteOptions as d4, type SubdocumentGateAuthorization as d5, type SubdocumentId as d6, type SubdocumentInputAuthorization as d7, type SubdocumentListOptions as d8, type SubdocumentModel as d9, type ValibotIssueLike as dA, type ValibotPathItemLike as dB, type ValibotSafeParseLike as dC, type ValibotSafeParseResult as dD, type ValidateAccess as dE, type ValidateRule as dF, type Validation as dG, type ValidationError as dH, type VineValidationErrorLike as dI, type VineValidationMessageLike as dJ, type VineValidatorLike as dK, type VirtualSubModel as dL, type WithVirtuals as dM, type YupSchemaLike as dN, type YupValidationErrorLike as dO, defineRequestSchema as dP, fromAjv as dQ, fromArkType as dR, fromIoTs as dS, fromJoi as dT, fromStandardSchema as dU, fromSuperstruct as dV, fromValibot as dW, fromVine as dX, fromYup as dY, fromZod as dZ, parseBody as d_, type SubdocumentMutationAuthorization as da, type SubdocumentName as db, type SubdocumentOutputAuthorization as dc, type SubdocumentParentArgs as dd, type SubdocumentParentOptions as de, type SubdocumentReadAuthorization as df, type SubdocumentReadOptions as dg, type SubdocumentRecord as dh, type SubdocumentUpdateOptions as di, type SubdocumentVirtuals as dj, type SubdocumentVisibilityAuthorization as dk, type SuperstructFailureLike as dl, type SuperstructValidateLike as dm, type Task as dn, type TaskType as dp, type TransformAccess as dq, type TypedFilter as dr, type UpdateByIdArgs as ds, type UpdateByIdOptions as dt, type UpdateOneArgs as du, type UpdateOneOptions as dv, type UpdateQueryInput as dw, type UpsertArgs as dx, type UpsertOptions as dy, type UpsertQueryInput as dz, type AdvancedCreateBody as e, parseNestedBodyWithSchema as e0, parsePathParam as e1, parseQuery as e2, AccessRuntime as e3, DataService as e4, Service as e5, PublicService as e6, type OpenApiRouterOptions as e7, type OpenApiRegistryOptions as e8, type OpenApiRouteDescriptor as e9, type OpenApiDocumentOptions as ea, type OpenApiParameter as eb, type OpenApiSchema as ec, type OpenApiResponses as ed, type AccessRouterPermissionMap as ee, type AccessRouterPermissions as ef, type OpenApiMethod as eg, type Permissions as eh, defaultRuntime as ei, type AdvancedListBody as f, type AdvancedReadBody as g, type AdvancedReadFilterBody as h, type AdvancedUpdateBody as i, type AdvancedUpsertBody as j, type AfterPersistAccess as k, type AjvErrorObjectLike as l, type AjvValidationErrorLike as m, type AjvValidatorLike as n, type AllowedOutputFieldOptions as o, type ArkTypeErrorsLike as p, type ArkTypeLike as q, type ArkTypeProblemLike as r, type AuthorizationMode as s, type AuthorizedListResult as t, type AuthorizedSingleResult as u, Codes as v, type CorrelatedCountInclude as w, type CorrelatedFilter as x, type CorrelatedInclude as y, type CorrelatedIncludeArgs as z };
4018
+ export { type DataRequestSchemas as $, type AccessRouterBaseRequest as A, type BaseFilterAccess as B, type Change as C, type CorrelatedIncludeArgs as D, type CorrelatedListInclude as E, type CorrelatedReadByFilterInclude as F, type CorrelatedReadByIdInclude as G, type CountBody as H, type CreateArgs as I, type CreateAuthorization as J, type CreateOptions as K, type CreateQueryInput as L, CustomHeaders as M, DATA_MIDDLEWARE as N, type DataBaseFilterHook as O, type DataFieldOptions as P, type DataFilter as Q, type DataFindArgs as R, type DataFindOneArgs as S, type DataFindOneOptions as T, type DataFindOptions as U, type DataHook as V, type DataHookContext as W, type DataIdentifierHook as X, type DataListHook as Y, type DataOverrideFilterHook as Z, type DataRequest as _, type AccessRouterFieldKey as a, type ModelOutputHook as a$, type DataRouterOptions as a0, type DecorateAccess as a1, type DecorateAllAccess as a2, type DeepFieldPath as a3, type DefaultModelRouterOptions as a4, type Defaults as a5, type DistinctArgs as a6, type DistinctBody as a7, type DocPermissionsAccess as a8, type DocumentGrants as a9, type InputFieldPath as aA, type IoTsContextEntryLike as aB, type IoTsDecodeErrorLike as aC, type IoTsDecoderLike as aD, type JoiSchemaLike as aE, type JoiValidationErrorDetailLike as aF, type KeyValueProjection as aG, type LegacyInclude as aH, type ListQueryInput as aI, type ListResult as aJ, MIDDLEWARE as aK, type MaybePromise as aL, type ModelBaseFilterHook as aM, type ModelChangeHook as aN, type ModelDeleteHook as aO, type ModelDocPermissionsAccessRecord as aP, type ModelDocPermissionsDefinition as aQ, type ModelDocPermissionsDescriptor as aR, type ModelDocPermissionsHook as aS, type ModelDocument as aT, type ModelDocumentHook as aU, type ModelHook as aV, type ModelHookContext as aW, type ModelHydrationOptions as aX, type ModelIdentifierHook as aY, type ModelListHook as aZ, type ModelOutputContext as a_, type ErrorResult as aa, type ExistsOptions as ab, type ExtendedDataRouterOptions as ac, type ExtendedDefaultModelRouterOptions as ad, type ExtendedModelRouterOptions as ae, type FieldAuthorization as af, type FieldOperationAccess as ag, type FieldPermissionHook as ah, type FieldValidation as ai, type Filter as aj, FilterOperator as ak, type FilteredOutput as al, type FindAccess as am, type FindArgs as an, type FindByIdArgs as ao, type FindByIdOptions as ap, type FindOneArgs as aq, type FindOneOptions as ar, type FindOptions as as, type GlobalOptions as at, type GlobalPermissionValue as au, type GuardHook as av, type HydrationMode as aw, type IdentifierHook as ax, type Include as ay, type InputFieldAuthorization as az, type AccessRouterLogger as b, type RequestSchemaAdapter as b$, type ModelOutputListHook as b0, type ModelOverrideFilterHook as b1, type ModelRequest as b2, type ModelRouterOptions as b3, type ModelValidateHook as b4, type ModelVirtualAccess as b5, type ModelVirtualAccessRecord as b6, type ModelVirtualContext as b7, type ModelVirtualDescriptor as b8, type ModelVirtualDoc as b9, type Populate as bA, type PopulateAccess as bB, type PopulatePlanningOptions as bC, type PrepareAccess as bD, type Projection as bE, type PublicCreateArgs as bF, type PublicCreateOptions as bG, type PublicErrorResult as bH, type PublicListArgs as bI, type PublicListOptions as bJ, type PublicListResult as bK, type PublicOutput as bL, type PublicReadArgs as bM, type PublicReadOptions as bN, type PublicServiceResult as bO, type PublicSingleResult as bP, type PublicSubdocumentCreateOptions as bQ, type PublicSubdocumentListOptions as bR, type PublicSubdocumentMutationOptions as bS, type PublicSubdocumentReadOptions as bT, type PublicUpdateArgs as bU, type PublicUpdateOptions as bV, type PublicUpsertArgs as bW, type PublicUpsertOptions as bX, type ReadQueryInput as bY, type RelatedAuthorization as bZ, type Request as b_, type ModelVirtualGetter as ba, type ModelVirtualLeaf as bb, type ModelVirtualPopulateDependency as bc, type ModelVirtualPopulateInputs as bd, type ModelVirtualRecordAccess as be, type ModelVirtuals as bf, type MutationAuthorization as bg, type NewArgs as bh, type NewOptions as bi, type OperationAccess as bj, type OperationAccessContext as bk, type OperationAccessPaths as bl, type OperationAccessRule as bm, type OperationAccessSetter as bn, type OperationAccessVariants as bo, type OperationAuthorization as bp, type OutputAuthorization as bq, type OutputFieldOptions as br, type OutputFieldPath as bs, type OutputPlanningOptions as bt, PERMISSIONS as bu, PERMISSION_KEYS as bv, type PairedRouteAccess as bw, type ParentRef as bx, type PathValue as by, type PermissionSchema as bz, type AccessRouterRequest as c, type SubdocumentBulkUpdateInput as c$, type RequestSchemaFailure as c0, type RequestSchemaIssue as c1, type RequestSchemaLike as c2, type RequestSchemaOptions as c3, type RequestSchemaResult as c4, type RequestSchemaSuccess as c5, type RequestSchemaValidator as c6, type RequestSchemas as c7, type RootDataListQueryEntry as c8, type RootDataOperation as c9, type RouteVariant as cA, type RowAuthorization as cB, type SelectAccess as cC, type SelectedPopulatedPublicOutput as cD, type SelectedPublicOutput as cE, type ServiceAuthorization as cF, type ServiceOutputContext as cG, type ServiceOutputDecorator as cH, type ServiceResult as cI, type SingleResult as cJ, type Sort as cK, type SortOrder as cL, type StandardSchemaFailure as cM, type StandardSchemaInferOutput as cN, type StandardSchemaIssue as cO, type StandardSchemaPathSegment as cP, type StandardSchemaResult as cQ, type StandardSchemaSuccess as cR, type StandardSchemaV1 as cS, StatusCodes as cT, type SubListBody as cU, type SubOperationAccess as cV, type SubPopulate as cW, type SubQueryEntry as cX, type SubReadBody as cY, type SubRouteGuardOptions as cZ, type SubdocumentBulkRecord as c_, type RootDataReadByFilterQueryEntry as ca, type RootDataReadByIdQueryEntry as cb, type RootModelCountQueryEntry as cc, type RootModelCreateQueryEntry as cd, type RootModelDeleteQueryEntry as ce, type RootModelDistinctQueryEntry as cf, type RootModelListQueryEntry as cg, type RootModelNewQueryEntry as ch, type RootModelOperation as ci, type RootModelReadByFilterQueryEntry as cj, type RootModelReadByIdQueryEntry as ck, type RootModelSubBulkUpdateQueryEntry as cl, type RootModelSubCreateQueryEntry as cm, type RootModelSubDeleteQueryEntry as cn, type RootModelSubListQueryEntry as co, type RootModelSubReadQueryEntry as cp, type RootModelSubUpdateQueryEntry as cq, type RootModelUpdateQueryEntry as cr, type RootModelUpsertQueryEntry as cs, type RootOperationResult as ct, type RootQueryEntry as cu, type RootRouterOptions as cv, type RootSubOperation as cw, type RootTarget as cx, type RouteBaseAccess as cy, type RouteGuardAccess as cz, type AccessRouterRequestExtensions as d, parseBody as d$, type SubdocumentCreateAuthorization as d0, type SubdocumentCreateInput as d1, type SubdocumentCreateOptions as d2, type SubdocumentCreateVisibilityAuthorization as d3, type SubdocumentDeleteAuthorization as d4, type SubdocumentDeleteOptions as d5, type SubdocumentGateAuthorization as d6, type SubdocumentId as d7, type SubdocumentInputAuthorization as d8, type SubdocumentListOptions as d9, type UpsertQueryInput as dA, type ValibotIssueLike as dB, type ValibotPathItemLike as dC, type ValibotSafeParseLike as dD, type ValibotSafeParseResult as dE, type ValidateAccess as dF, type ValidateRule as dG, type Validation as dH, type ValidationError as dI, type VineValidationErrorLike as dJ, type VineValidationMessageLike as dK, type VineValidatorLike as dL, type VirtualSubModel as dM, type WithVirtuals as dN, type YupSchemaLike as dO, type YupValidationErrorLike as dP, defineRequestSchema as dQ, fromAjv as dR, fromArkType as dS, fromIoTs as dT, fromJoi as dU, fromStandardSchema as dV, fromSuperstruct as dW, fromValibot as dX, fromVine as dY, fromYup as dZ, fromZod as d_, type SubdocumentModel as da, type SubdocumentMutationAuthorization as db, type SubdocumentName as dc, type SubdocumentOutputAuthorization as dd, type SubdocumentParentArgs as de, type SubdocumentParentOptions as df, type SubdocumentReadAuthorization as dg, type SubdocumentReadOptions as dh, type SubdocumentRecord as di, type SubdocumentUpdateOptions as dj, type SubdocumentVirtuals as dk, type SubdocumentVisibilityAuthorization as dl, type SuperstructFailureLike as dm, type SuperstructValidateLike as dn, type Task as dp, type TaskType as dq, type TransformAccess as dr, type TypedFilter as ds, type UpdateByIdArgs as dt, type UpdateByIdOptions as du, type UpdateOneArgs as dv, type UpdateOneOptions as dw, type UpdateQueryInput as dx, type UpsertArgs as dy, type UpsertOptions as dz, type AdvancedCreateBody as e, parseBodyWithSchema as e0, parseNestedBodyWithSchema as e1, parsePathParam as e2, parseQuery as e3, AccessRuntime as e4, DataService as e5, Service as e6, PublicService as e7, type OpenApiRouterOptions as e8, type OpenApiRegistryOptions as e9, type OpenApiRouteDescriptor as ea, type OpenApiDocumentOptions as eb, type OpenApiParameter as ec, type OpenApiSchema as ed, type OpenApiResponses as ee, type AccessRouterPermissionMap as ef, type AccessRouterPermissions as eg, type OpenApiMethod as eh, type Permissions as ei, defaultRuntime as ej, type AdvancedListBody as f, type AdvancedReadBody as g, type AdvancedReadFilterBody as h, type AdvancedUpdateBody as i, type AdvancedUpsertBody as j, type AfterPersistAccess as k, type AjvErrorObjectLike as l, type AjvValidationErrorLike as m, type AjvValidatorLike as n, type AllowedOutputFieldOptions as o, type ArkTypeErrorsLike as p, type ArkTypeLike as q, type ArkTypeProblemLike as r, type AuthorizationMode as s, type AuthorizationSnapshotProxyLogMode as t, type AuthorizedListResult as u, type AuthorizedSingleResult as v, Codes as w, type CorrelatedCountInclude as x, type CorrelatedFilter as y, type CorrelatedInclude as z };
@@ -787,6 +787,7 @@ declare class AccessRuntime {
787
787
  allowGlobalModelLookup?: boolean;
788
788
  });
789
789
  private readonly globalOptions;
790
+ private syncProxySnapshotDiagnosticsState;
790
791
  private readonly defaultModelOptions;
791
792
  private readonly modelOptions;
792
793
  private readonly modelOptionOverrides;
@@ -1901,6 +1902,7 @@ interface AccessRouterLogger {
1901
1902
  error?: (...args: unknown[]) => unknown;
1902
1903
  isLevelEnabled?: (level: string) => boolean;
1903
1904
  }
1905
+ type AuthorizationSnapshotProxyLogMode = 'error' | 'warn' | 'silent';
1904
1906
  /**
1905
1907
  * Runtime-wide request initialization and resource settings, configured with
1906
1908
  * api.setGlobalOptions / api.setGlobalOption. These are not model options or wire
@@ -1922,6 +1924,13 @@ interface GlobalOptions {
1922
1924
  */
1923
1925
  globalPermissions?: (this: AccessRouterRequest, req: AccessRouterRequest) => MaybePromise<GlobalPermissionValue>;
1924
1926
  logger?: AccessRouterLogger;
1927
+ /**
1928
+ * Controls the diagnostic log emitted when an authorization snapshot rejects a
1929
+ * Proxy value. Rejection always fails closed with a 400 response; this only
1930
+ * tunes log noise. Invalid values are treated as 'error'. Logs carry the
1931
+ * value's property path and stack, never the rejected value itself.
1932
+ */
1933
+ authorizationSnapshotProxyLog?: AuthorizationSnapshotProxyLogMode;
1925
1934
  /** Request budgets and separate hook/persistence pools; concurrency limits are captured on first owner use. */
1926
1935
  requestComplexity?: RequestComplexityOptions;
1927
1936
  }
@@ -4006,4 +4015,4 @@ declare function fromIoTs<TValue = unknown>(decoder: IoTsDecoderLike<TValue>): R
4006
4015
  declare function fromSuperstruct<TStruct, TOutput = unknown>(struct: TStruct, validate: SuperstructValidateLike): RequestSchemaValidator<TOutput>;
4007
4016
  declare function fromVine<TValue = unknown>(validator: VineValidatorLike<TValue>): RequestSchemaValidator<TValue>;
4008
4017
 
4009
- export { type DataRouterOptions as $, type AccessRouterBaseRequest as A, type BaseFilterAccess as B, type Change as C, type CorrelatedListInclude as D, type CorrelatedReadByFilterInclude as E, type CorrelatedReadByIdInclude as F, type CountBody as G, type CreateArgs as H, type CreateAuthorization as I, type CreateOptions as J, type CreateQueryInput as K, CustomHeaders as L, DATA_MIDDLEWARE as M, type DataBaseFilterHook as N, type DataFieldOptions as O, type DataFilter as P, type DataFindArgs as Q, type DataFindOneArgs as R, type DataFindOneOptions as S, type DataFindOptions as T, type DataHook as U, type DataHookContext as V, type DataIdentifierHook as W, type DataListHook as X, type DataOverrideFilterHook as Y, type DataRequest as Z, type DataRequestSchemas as _, type AccessRouterFieldKey as a, type ModelOutputListHook as a$, type DecorateAccess as a0, type DecorateAllAccess as a1, type DeepFieldPath as a2, type DefaultModelRouterOptions as a3, type Defaults as a4, type DistinctArgs as a5, type DistinctBody as a6, type DocPermissionsAccess as a7, type DocumentGrants as a8, type ErrorResult as a9, type IoTsContextEntryLike as aA, type IoTsDecodeErrorLike as aB, type IoTsDecoderLike as aC, type JoiSchemaLike as aD, type JoiValidationErrorDetailLike as aE, type KeyValueProjection as aF, type LegacyInclude as aG, type ListQueryInput as aH, type ListResult as aI, MIDDLEWARE as aJ, type MaybePromise as aK, type ModelBaseFilterHook as aL, type ModelChangeHook as aM, type ModelDeleteHook as aN, type ModelDocPermissionsAccessRecord as aO, type ModelDocPermissionsDefinition as aP, type ModelDocPermissionsDescriptor as aQ, type ModelDocPermissionsHook as aR, type ModelDocument as aS, type ModelDocumentHook as aT, type ModelHook as aU, type ModelHookContext as aV, type ModelHydrationOptions as aW, type ModelIdentifierHook as aX, type ModelListHook as aY, type ModelOutputContext as aZ, type ModelOutputHook as a_, type ExistsOptions as aa, type ExtendedDataRouterOptions as ab, type ExtendedDefaultModelRouterOptions as ac, type ExtendedModelRouterOptions as ad, type FieldAuthorization as ae, type FieldOperationAccess as af, type FieldPermissionHook as ag, type FieldValidation as ah, type Filter as ai, FilterOperator as aj, type FilteredOutput as ak, type FindAccess as al, type FindArgs as am, type FindByIdArgs as an, type FindByIdOptions as ao, type FindOneArgs as ap, type FindOneOptions as aq, type FindOptions as ar, type GlobalOptions as as, type GlobalPermissionValue as at, type GuardHook as au, type HydrationMode as av, type IdentifierHook as aw, type Include as ax, type InputFieldAuthorization as ay, type InputFieldPath as az, type AccessRouterLogger as b, type RequestSchemaFailure as b$, type ModelOverrideFilterHook as b0, type ModelRequest as b1, type ModelRouterOptions as b2, type ModelValidateHook as b3, type ModelVirtualAccess as b4, type ModelVirtualAccessRecord as b5, type ModelVirtualContext as b6, type ModelVirtualDescriptor as b7, type ModelVirtualDoc as b8, type ModelVirtualGetter as b9, type PopulateAccess as bA, type PopulatePlanningOptions as bB, type PrepareAccess as bC, type Projection as bD, type PublicCreateArgs as bE, type PublicCreateOptions as bF, type PublicErrorResult as bG, type PublicListArgs as bH, type PublicListOptions as bI, type PublicListResult as bJ, type PublicOutput as bK, type PublicReadArgs as bL, type PublicReadOptions as bM, type PublicServiceResult as bN, type PublicSingleResult as bO, type PublicSubdocumentCreateOptions as bP, type PublicSubdocumentListOptions as bQ, type PublicSubdocumentMutationOptions as bR, type PublicSubdocumentReadOptions as bS, type PublicUpdateArgs as bT, type PublicUpdateOptions as bU, type PublicUpsertArgs as bV, type PublicUpsertOptions as bW, type ReadQueryInput as bX, type RelatedAuthorization as bY, type Request as bZ, type RequestSchemaAdapter as b_, type ModelVirtualLeaf as ba, type ModelVirtualPopulateDependency as bb, type ModelVirtualPopulateInputs as bc, type ModelVirtualRecordAccess as bd, type ModelVirtuals as be, type MutationAuthorization as bf, type NewArgs as bg, type NewOptions as bh, type OperationAccess as bi, type OperationAccessContext as bj, type OperationAccessPaths as bk, type OperationAccessRule as bl, type OperationAccessSetter as bm, type OperationAccessVariants as bn, type OperationAuthorization as bo, type OutputAuthorization as bp, type OutputFieldOptions as bq, type OutputFieldPath as br, type OutputPlanningOptions as bs, PERMISSIONS as bt, PERMISSION_KEYS as bu, type PairedRouteAccess as bv, type ParentRef as bw, type PathValue as bx, type PermissionSchema as by, type Populate as bz, type AccessRouterRequest as c, type SubdocumentCreateAuthorization as c$, type RequestSchemaIssue as c0, type RequestSchemaLike as c1, type RequestSchemaOptions as c2, type RequestSchemaResult as c3, type RequestSchemaSuccess as c4, type RequestSchemaValidator as c5, type RequestSchemas as c6, type RootDataListQueryEntry as c7, type RootDataOperation as c8, type RootDataReadByFilterQueryEntry as c9, type RowAuthorization as cA, type SelectAccess as cB, type SelectedPopulatedPublicOutput as cC, type SelectedPublicOutput as cD, type ServiceAuthorization as cE, type ServiceOutputContext as cF, type ServiceOutputDecorator as cG, type ServiceResult as cH, type SingleResult as cI, type Sort as cJ, type SortOrder as cK, type StandardSchemaFailure as cL, type StandardSchemaInferOutput as cM, type StandardSchemaIssue as cN, type StandardSchemaPathSegment as cO, type StandardSchemaResult as cP, type StandardSchemaSuccess as cQ, type StandardSchemaV1 as cR, StatusCodes as cS, type SubListBody as cT, type SubOperationAccess as cU, type SubPopulate as cV, type SubQueryEntry as cW, type SubReadBody as cX, type SubRouteGuardOptions as cY, type SubdocumentBulkRecord as cZ, type SubdocumentBulkUpdateInput as c_, type RootDataReadByIdQueryEntry as ca, type RootModelCountQueryEntry as cb, type RootModelCreateQueryEntry as cc, type RootModelDeleteQueryEntry as cd, type RootModelDistinctQueryEntry as ce, type RootModelListQueryEntry as cf, type RootModelNewQueryEntry as cg, type RootModelOperation as ch, type RootModelReadByFilterQueryEntry as ci, type RootModelReadByIdQueryEntry as cj, type RootModelSubBulkUpdateQueryEntry as ck, type RootModelSubCreateQueryEntry as cl, type RootModelSubDeleteQueryEntry as cm, type RootModelSubListQueryEntry as cn, type RootModelSubReadQueryEntry as co, type RootModelSubUpdateQueryEntry as cp, type RootModelUpdateQueryEntry as cq, type RootModelUpsertQueryEntry as cr, type RootOperationResult as cs, type RootQueryEntry as ct, type RootRouterOptions as cu, type RootSubOperation as cv, type RootTarget as cw, type RouteBaseAccess as cx, type RouteGuardAccess as cy, type RouteVariant as cz, type AccessRouterRequestExtensions as d, parseBodyWithSchema as d$, type SubdocumentCreateInput as d0, type SubdocumentCreateOptions as d1, type SubdocumentCreateVisibilityAuthorization as d2, type SubdocumentDeleteAuthorization as d3, type SubdocumentDeleteOptions as d4, type SubdocumentGateAuthorization as d5, type SubdocumentId as d6, type SubdocumentInputAuthorization as d7, type SubdocumentListOptions as d8, type SubdocumentModel as d9, type ValibotIssueLike as dA, type ValibotPathItemLike as dB, type ValibotSafeParseLike as dC, type ValibotSafeParseResult as dD, type ValidateAccess as dE, type ValidateRule as dF, type Validation as dG, type ValidationError as dH, type VineValidationErrorLike as dI, type VineValidationMessageLike as dJ, type VineValidatorLike as dK, type VirtualSubModel as dL, type WithVirtuals as dM, type YupSchemaLike as dN, type YupValidationErrorLike as dO, defineRequestSchema as dP, fromAjv as dQ, fromArkType as dR, fromIoTs as dS, fromJoi as dT, fromStandardSchema as dU, fromSuperstruct as dV, fromValibot as dW, fromVine as dX, fromYup as dY, fromZod as dZ, parseBody as d_, type SubdocumentMutationAuthorization as da, type SubdocumentName as db, type SubdocumentOutputAuthorization as dc, type SubdocumentParentArgs as dd, type SubdocumentParentOptions as de, type SubdocumentReadAuthorization as df, type SubdocumentReadOptions as dg, type SubdocumentRecord as dh, type SubdocumentUpdateOptions as di, type SubdocumentVirtuals as dj, type SubdocumentVisibilityAuthorization as dk, type SuperstructFailureLike as dl, type SuperstructValidateLike as dm, type Task as dn, type TaskType as dp, type TransformAccess as dq, type TypedFilter as dr, type UpdateByIdArgs as ds, type UpdateByIdOptions as dt, type UpdateOneArgs as du, type UpdateOneOptions as dv, type UpdateQueryInput as dw, type UpsertArgs as dx, type UpsertOptions as dy, type UpsertQueryInput as dz, type AdvancedCreateBody as e, parseNestedBodyWithSchema as e0, parsePathParam as e1, parseQuery as e2, AccessRuntime as e3, DataService as e4, Service as e5, PublicService as e6, type OpenApiRouterOptions as e7, type OpenApiRegistryOptions as e8, type OpenApiRouteDescriptor as e9, type OpenApiDocumentOptions as ea, type OpenApiParameter as eb, type OpenApiSchema as ec, type OpenApiResponses as ed, type AccessRouterPermissionMap as ee, type AccessRouterPermissions as ef, type OpenApiMethod as eg, type Permissions as eh, defaultRuntime as ei, type AdvancedListBody as f, type AdvancedReadBody as g, type AdvancedReadFilterBody as h, type AdvancedUpdateBody as i, type AdvancedUpsertBody as j, type AfterPersistAccess as k, type AjvErrorObjectLike as l, type AjvValidationErrorLike as m, type AjvValidatorLike as n, type AllowedOutputFieldOptions as o, type ArkTypeErrorsLike as p, type ArkTypeLike as q, type ArkTypeProblemLike as r, type AuthorizationMode as s, type AuthorizedListResult as t, type AuthorizedSingleResult as u, Codes as v, type CorrelatedCountInclude as w, type CorrelatedFilter as x, type CorrelatedInclude as y, type CorrelatedIncludeArgs as z };
4018
+ export { type DataRequestSchemas as $, type AccessRouterBaseRequest as A, type BaseFilterAccess as B, type Change as C, type CorrelatedIncludeArgs as D, type CorrelatedListInclude as E, type CorrelatedReadByFilterInclude as F, type CorrelatedReadByIdInclude as G, type CountBody as H, type CreateArgs as I, type CreateAuthorization as J, type CreateOptions as K, type CreateQueryInput as L, CustomHeaders as M, DATA_MIDDLEWARE as N, type DataBaseFilterHook as O, type DataFieldOptions as P, type DataFilter as Q, type DataFindArgs as R, type DataFindOneArgs as S, type DataFindOneOptions as T, type DataFindOptions as U, type DataHook as V, type DataHookContext as W, type DataIdentifierHook as X, type DataListHook as Y, type DataOverrideFilterHook as Z, type DataRequest as _, type AccessRouterFieldKey as a, type ModelOutputHook as a$, type DataRouterOptions as a0, type DecorateAccess as a1, type DecorateAllAccess as a2, type DeepFieldPath as a3, type DefaultModelRouterOptions as a4, type Defaults as a5, type DistinctArgs as a6, type DistinctBody as a7, type DocPermissionsAccess as a8, type DocumentGrants as a9, type InputFieldPath as aA, type IoTsContextEntryLike as aB, type IoTsDecodeErrorLike as aC, type IoTsDecoderLike as aD, type JoiSchemaLike as aE, type JoiValidationErrorDetailLike as aF, type KeyValueProjection as aG, type LegacyInclude as aH, type ListQueryInput as aI, type ListResult as aJ, MIDDLEWARE as aK, type MaybePromise as aL, type ModelBaseFilterHook as aM, type ModelChangeHook as aN, type ModelDeleteHook as aO, type ModelDocPermissionsAccessRecord as aP, type ModelDocPermissionsDefinition as aQ, type ModelDocPermissionsDescriptor as aR, type ModelDocPermissionsHook as aS, type ModelDocument as aT, type ModelDocumentHook as aU, type ModelHook as aV, type ModelHookContext as aW, type ModelHydrationOptions as aX, type ModelIdentifierHook as aY, type ModelListHook as aZ, type ModelOutputContext as a_, type ErrorResult as aa, type ExistsOptions as ab, type ExtendedDataRouterOptions as ac, type ExtendedDefaultModelRouterOptions as ad, type ExtendedModelRouterOptions as ae, type FieldAuthorization as af, type FieldOperationAccess as ag, type FieldPermissionHook as ah, type FieldValidation as ai, type Filter as aj, FilterOperator as ak, type FilteredOutput as al, type FindAccess as am, type FindArgs as an, type FindByIdArgs as ao, type FindByIdOptions as ap, type FindOneArgs as aq, type FindOneOptions as ar, type FindOptions as as, type GlobalOptions as at, type GlobalPermissionValue as au, type GuardHook as av, type HydrationMode as aw, type IdentifierHook as ax, type Include as ay, type InputFieldAuthorization as az, type AccessRouterLogger as b, type RequestSchemaAdapter as b$, type ModelOutputListHook as b0, type ModelOverrideFilterHook as b1, type ModelRequest as b2, type ModelRouterOptions as b3, type ModelValidateHook as b4, type ModelVirtualAccess as b5, type ModelVirtualAccessRecord as b6, type ModelVirtualContext as b7, type ModelVirtualDescriptor as b8, type ModelVirtualDoc as b9, type Populate as bA, type PopulateAccess as bB, type PopulatePlanningOptions as bC, type PrepareAccess as bD, type Projection as bE, type PublicCreateArgs as bF, type PublicCreateOptions as bG, type PublicErrorResult as bH, type PublicListArgs as bI, type PublicListOptions as bJ, type PublicListResult as bK, type PublicOutput as bL, type PublicReadArgs as bM, type PublicReadOptions as bN, type PublicServiceResult as bO, type PublicSingleResult as bP, type PublicSubdocumentCreateOptions as bQ, type PublicSubdocumentListOptions as bR, type PublicSubdocumentMutationOptions as bS, type PublicSubdocumentReadOptions as bT, type PublicUpdateArgs as bU, type PublicUpdateOptions as bV, type PublicUpsertArgs as bW, type PublicUpsertOptions as bX, type ReadQueryInput as bY, type RelatedAuthorization as bZ, type Request as b_, type ModelVirtualGetter as ba, type ModelVirtualLeaf as bb, type ModelVirtualPopulateDependency as bc, type ModelVirtualPopulateInputs as bd, type ModelVirtualRecordAccess as be, type ModelVirtuals as bf, type MutationAuthorization as bg, type NewArgs as bh, type NewOptions as bi, type OperationAccess as bj, type OperationAccessContext as bk, type OperationAccessPaths as bl, type OperationAccessRule as bm, type OperationAccessSetter as bn, type OperationAccessVariants as bo, type OperationAuthorization as bp, type OutputAuthorization as bq, type OutputFieldOptions as br, type OutputFieldPath as bs, type OutputPlanningOptions as bt, PERMISSIONS as bu, PERMISSION_KEYS as bv, type PairedRouteAccess as bw, type ParentRef as bx, type PathValue as by, type PermissionSchema as bz, type AccessRouterRequest as c, type SubdocumentBulkUpdateInput as c$, type RequestSchemaFailure as c0, type RequestSchemaIssue as c1, type RequestSchemaLike as c2, type RequestSchemaOptions as c3, type RequestSchemaResult as c4, type RequestSchemaSuccess as c5, type RequestSchemaValidator as c6, type RequestSchemas as c7, type RootDataListQueryEntry as c8, type RootDataOperation as c9, type RouteVariant as cA, type RowAuthorization as cB, type SelectAccess as cC, type SelectedPopulatedPublicOutput as cD, type SelectedPublicOutput as cE, type ServiceAuthorization as cF, type ServiceOutputContext as cG, type ServiceOutputDecorator as cH, type ServiceResult as cI, type SingleResult as cJ, type Sort as cK, type SortOrder as cL, type StandardSchemaFailure as cM, type StandardSchemaInferOutput as cN, type StandardSchemaIssue as cO, type StandardSchemaPathSegment as cP, type StandardSchemaResult as cQ, type StandardSchemaSuccess as cR, type StandardSchemaV1 as cS, StatusCodes as cT, type SubListBody as cU, type SubOperationAccess as cV, type SubPopulate as cW, type SubQueryEntry as cX, type SubReadBody as cY, type SubRouteGuardOptions as cZ, type SubdocumentBulkRecord as c_, type RootDataReadByFilterQueryEntry as ca, type RootDataReadByIdQueryEntry as cb, type RootModelCountQueryEntry as cc, type RootModelCreateQueryEntry as cd, type RootModelDeleteQueryEntry as ce, type RootModelDistinctQueryEntry as cf, type RootModelListQueryEntry as cg, type RootModelNewQueryEntry as ch, type RootModelOperation as ci, type RootModelReadByFilterQueryEntry as cj, type RootModelReadByIdQueryEntry as ck, type RootModelSubBulkUpdateQueryEntry as cl, type RootModelSubCreateQueryEntry as cm, type RootModelSubDeleteQueryEntry as cn, type RootModelSubListQueryEntry as co, type RootModelSubReadQueryEntry as cp, type RootModelSubUpdateQueryEntry as cq, type RootModelUpdateQueryEntry as cr, type RootModelUpsertQueryEntry as cs, type RootOperationResult as ct, type RootQueryEntry as cu, type RootRouterOptions as cv, type RootSubOperation as cw, type RootTarget as cx, type RouteBaseAccess as cy, type RouteGuardAccess as cz, type AccessRouterRequestExtensions as d, parseBody as d$, type SubdocumentCreateAuthorization as d0, type SubdocumentCreateInput as d1, type SubdocumentCreateOptions as d2, type SubdocumentCreateVisibilityAuthorization as d3, type SubdocumentDeleteAuthorization as d4, type SubdocumentDeleteOptions as d5, type SubdocumentGateAuthorization as d6, type SubdocumentId as d7, type SubdocumentInputAuthorization as d8, type SubdocumentListOptions as d9, type UpsertQueryInput as dA, type ValibotIssueLike as dB, type ValibotPathItemLike as dC, type ValibotSafeParseLike as dD, type ValibotSafeParseResult as dE, type ValidateAccess as dF, type ValidateRule as dG, type Validation as dH, type ValidationError as dI, type VineValidationErrorLike as dJ, type VineValidationMessageLike as dK, type VineValidatorLike as dL, type VirtualSubModel as dM, type WithVirtuals as dN, type YupSchemaLike as dO, type YupValidationErrorLike as dP, defineRequestSchema as dQ, fromAjv as dR, fromArkType as dS, fromIoTs as dT, fromJoi as dU, fromStandardSchema as dV, fromSuperstruct as dW, fromValibot as dX, fromVine as dY, fromYup as dZ, fromZod as d_, type SubdocumentModel as da, type SubdocumentMutationAuthorization as db, type SubdocumentName as dc, type SubdocumentOutputAuthorization as dd, type SubdocumentParentArgs as de, type SubdocumentParentOptions as df, type SubdocumentReadAuthorization as dg, type SubdocumentReadOptions as dh, type SubdocumentRecord as di, type SubdocumentUpdateOptions as dj, type SubdocumentVirtuals as dk, type SubdocumentVisibilityAuthorization as dl, type SuperstructFailureLike as dm, type SuperstructValidateLike as dn, type Task as dp, type TaskType as dq, type TransformAccess as dr, type TypedFilter as ds, type UpdateByIdArgs as dt, type UpdateByIdOptions as du, type UpdateOneArgs as dv, type UpdateOneOptions as dw, type UpdateQueryInput as dx, type UpsertArgs as dy, type UpsertOptions as dz, type AdvancedCreateBody as e, parseBodyWithSchema as e0, parseNestedBodyWithSchema as e1, parsePathParam as e2, parseQuery as e3, AccessRuntime as e4, DataService as e5, Service as e6, PublicService as e7, type OpenApiRouterOptions as e8, type OpenApiRegistryOptions as e9, type OpenApiRouteDescriptor as ea, type OpenApiDocumentOptions as eb, type OpenApiParameter as ec, type OpenApiSchema as ed, type OpenApiResponses as ee, type AccessRouterPermissionMap as ef, type AccessRouterPermissions as eg, type OpenApiMethod as eh, type Permissions as ei, defaultRuntime as ej, type AdvancedListBody as f, type AdvancedReadBody as g, type AdvancedReadFilterBody as h, type AdvancedUpdateBody as i, type AdvancedUpsertBody as j, type AfterPersistAccess as k, type AjvErrorObjectLike as l, type AjvValidationErrorLike as m, type AjvValidatorLike as n, type AllowedOutputFieldOptions as o, type ArkTypeErrorsLike as p, type ArkTypeLike as q, type ArkTypeProblemLike as r, type AuthorizationMode as s, type AuthorizationSnapshotProxyLogMode as t, type AuthorizedListResult as u, type AuthorizedSingleResult as v, Codes as w, type CorrelatedCountInclude as x, type CorrelatedFilter as y, type CorrelatedInclude as z };