@web-ts-toolkit/access-router 0.47.0 → 0.48.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/README.md CHANGED
@@ -136,7 +136,28 @@ calling `res.json(result)` does not automatically set HTTP 403; map its code exp
136
136
  Advanced mutation validators drive dispatch: nested `data` validators run first, then the whole-body (`default`)
137
137
  validator sees that transformed envelope, and the service persists only the final parsed `data`, `select`,
138
138
  `populate`, `tasks`, and allowed `options`. Missing body options fall back to `returning_all`/`include_permissions`
139
- query params; only `includePermissions`/`populateAccess` (plus `returningAll` for update/upsert) are forwarded.
139
+ query params; only `includePermissions`/`includeFieldPermissions`/`populateAccess` (plus `returningAll` for update/upsert) are forwarded.
140
+
141
+ ## Basic model GET queries
142
+
143
+ `GET /users?select=name&sort=name%20-createdAt` projects `name` and sorts by
144
+ name ascending, then createdAt descending. GET list `sort` is a single
145
+ space-separated signed-field string; `-` means descending. Sorting runs before
146
+ pagination and can use permitted fields omitted from `select`. Malformed or
147
+ disallowed sort fields return HTTP 400 before the model query executes.
148
+
149
+ Model options `sortableFields` allow additional sorting fields without granting
150
+ output visibility, and `stripDisallowedSort: true` drops disallowed sort keys
151
+ instead of rejecting the request (malformed fields still fail). When no sort is
152
+ supplied, normal model service defaults apply; `?sort=` explicitly disables them.
153
+ GET-by-id reads also accept `select` as a query param.
154
+
155
+ Two router options lock down permission metadata regardless of client input or
156
+ per-operation `defaults`: `stripPermissionsField: true` removes the whole
157
+ permissions field from outputs (equivalent to `includePermissions: false` with
158
+ the field — including its placeholder — deleted; enforcement still runs), and
159
+ `disableFieldPermissions: true` never computes `_view`/`_edit` maps while still
160
+ honoring `includePermissions` for `docPermissions`-hook keys.
140
161
 
141
162
  ## Main Exports
142
163
 
package/advanced.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as Filter, a8 as FilterOperator, a9 as FindAccess, aa as FindArgs, ab as FindByIdArgs, ac as FindByIdOptions, ad as FindOneArgs, ae as FindOneOptions, af as FindOptions, ag as GlobalOptions, ah as GlobalPermissionValue, ai as GuardHook, aj as IdentifierHook, ak as Include, al as IoTsContextEntryLike, am as IoTsDecodeErrorLike, an as IoTsDecoderLike, ao as JoiSchemaLike, ap as JoiValidationErrorDetailLike, aq as KeyValueProjection, ar as LegacyInclude, as as ListQueryInput, at as ListResult, au as MIDDLEWARE, av as MaybePromise, aw as ModelBaseFilterHook, ax as ModelChangeHook, ay as ModelDeleteHook, az as ModelDocPermissionsHook, aA as ModelDocument, aB as ModelDocumentHook, aC as ModelHook, aD as ModelHookContext, aE as ModelIdentifierHook, aF as ModelListHook, aG as ModelOverrideFilterHook, aH as ModelRequest, aI as ModelRouterOptions, aJ as ModelValidateHook, aK as PERMISSIONS, aL as PERMISSION_KEYS, aM as ParentRef, aN as PathValue, aO as PermissionSchema, aP as Populate, aQ as PopulateAccess, aR as PrepareAccess, aS as Projection, aT as PublicCreateArgs, aU as PublicCreateOptions, aV as PublicErrorResult, aW as PublicListArgs, aX as PublicListOptions, aY as PublicListResult, aZ as PublicOutput, a_ as PublicReadArgs, a$ as PublicReadOptions, b0 as PublicServiceResult, b1 as PublicSingleResult, b2 as PublicUpdateArgs, b3 as PublicUpdateOptions, b4 as PublicUpsertArgs, b5 as PublicUpsertOptions, b6 as ReadQueryInput, b7 as Request, b8 as RequestSchemaAdapter, b9 as RequestSchemaFailure, ba as RequestSchemaIssue, bb as RequestSchemaLike, bc as RequestSchemaOptions, bd as RequestSchemaResult, be as RequestSchemaSuccess, bf as RequestSchemaValidator, bg as RequestSchemas, bh as RootDataListQueryEntry, bi as RootDataOperation, bj as RootDataReadByFilterQueryEntry, bk as RootDataReadByIdQueryEntry, bl as RootModelCountQueryEntry, bm as RootModelCreateQueryEntry, bn as RootModelDeleteQueryEntry, bo as RootModelDistinctQueryEntry, bp as RootModelListQueryEntry, bq as RootModelNewQueryEntry, br as RootModelOperation, bs as RootModelReadByFilterQueryEntry, bt as RootModelReadByIdQueryEntry, bu as RootModelSubBulkUpdateQueryEntry, bv as RootModelSubCreateQueryEntry, bw as RootModelSubDeleteQueryEntry, bx as RootModelSubListQueryEntry, by as RootModelSubReadQueryEntry, bz as RootModelSubUpdateQueryEntry, bA as RootModelUpdateQueryEntry, bB as RootModelUpsertQueryEntry, bC as RootOperationResult, bD as RootQueryEntry, bE as RootRouterOptions, bF as RootSubOperation, bG as RootTarget, bH as RouteGuardAccess, bI as SelectAccess, bJ as SelectedPopulatedPublicOutput, bK as SelectedPublicOutput, bL as ServiceResult, bM as SingleResult, bN as Sort, bO as SortOrder, bP as StandardSchemaFailure, bQ as StandardSchemaInferOutput, bR as StandardSchemaIssue, bS as StandardSchemaPathSegment, bT as StandardSchemaResult, bU as StandardSchemaSuccess, bV as StandardSchemaV1, bW as StatusCodes, bX as SubListBody, bY as SubPopulate, bZ as SubQueryEntry, b_ as SubReadBody, b$ as SubdocumentBulkRecord, c0 as SubdocumentBulkUpdateInput, c1 as SubdocumentCreateInput, c2 as SubdocumentCreateOptions, c3 as SubdocumentId, c4 as SubdocumentListOptions, c5 as SubdocumentName, c6 as SubdocumentParentArgs, c7 as SubdocumentParentOptions, c8 as SubdocumentReadOptions, c9 as SubdocumentRecord, ca as SuperstructFailureLike, cb as SuperstructValidateLike, cc as Task, cd as TaskType, ce as TransformAccess, cf as TypedFilter, cg as UpdateByIdArgs, ch as UpdateByIdOptions, ci as UpdateOneArgs, cj as UpdateOneOptions, ck as UpdateQueryInput, cl as UpsertArgs, cm as UpsertOptions, cn as UpsertQueryInput, co as ValibotIssueLike, cp as ValibotPathItemLike, cq as ValibotSafeParseLike, cr as ValibotSafeParseResult, cs as ValidateAccess, ct as ValidateRule, cu as Validation, cv as ValidationError, cw as VineValidationErrorLike, cx as VineValidationMessageLike, cy as VineValidatorLike, cz as YupSchemaLike, cA as YupValidationErrorLike, cB as defineRequestSchema, cC as fromAjv, cD as fromArkType, cE as fromIoTs, cF as fromJoi, cG as fromStandardSchema, cH as fromSuperstruct, cI as fromValibot, cJ as fromVine, cK as fromYup, cL as fromZod, cM as parseBody, cN as parseBodyWithSchema, cO as parseNestedBodyWithSchema, cP as parsePathParam, cQ as parseQuery } from './parsers-BidvJUu7.mjs';
1
+ export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as Filter, a8 as FilterOperator, a9 as FindAccess, aa as FindArgs, ab as FindByIdArgs, ac as FindByIdOptions, ad as FindOneArgs, ae as FindOneOptions, af as FindOptions, ag as GlobalOptions, ah as GlobalPermissionValue, ai as GuardHook, aj as IdentifierHook, ak as Include, al as IoTsContextEntryLike, am as IoTsDecodeErrorLike, an as IoTsDecoderLike, ao as JoiSchemaLike, ap as JoiValidationErrorDetailLike, aq as KeyValueProjection, ar as LegacyInclude, as as ListQueryInput, at as ListResult, au as MIDDLEWARE, av as MaybePromise, aw as ModelBaseFilterHook, ax as ModelChangeHook, ay as ModelDeleteHook, az as ModelDocPermissionsHook, aA as ModelDocument, aB as ModelDocumentHook, aC as ModelHook, aD as ModelHookContext, aE as ModelIdentifierHook, aF as ModelListHook, aG as ModelOverrideFilterHook, aH as ModelRequest, aI as ModelRouterOptions, aJ as ModelValidateHook, aK as PERMISSIONS, aL as PERMISSION_KEYS, aM as ParentRef, aN as PathValue, aO as PermissionSchema, aP as Populate, aQ as PopulateAccess, aR as PrepareAccess, aS as Projection, aT as PublicCreateArgs, aU as PublicCreateOptions, aV as PublicErrorResult, aW as PublicListArgs, aX as PublicListOptions, aY as PublicListResult, aZ as PublicOutput, a_ as PublicReadArgs, a$ as PublicReadOptions, b0 as PublicServiceResult, b1 as PublicSingleResult, b2 as PublicUpdateArgs, b3 as PublicUpdateOptions, b4 as PublicUpsertArgs, b5 as PublicUpsertOptions, b6 as ReadQueryInput, b7 as Request, b8 as RequestSchemaAdapter, b9 as RequestSchemaFailure, ba as RequestSchemaIssue, bb as RequestSchemaLike, bc as RequestSchemaOptions, bd as RequestSchemaResult, be as RequestSchemaSuccess, bf as RequestSchemaValidator, bg as RequestSchemas, bh as RootDataListQueryEntry, bi as RootDataOperation, bj as RootDataReadByFilterQueryEntry, bk as RootDataReadByIdQueryEntry, bl as RootModelCountQueryEntry, bm as RootModelCreateQueryEntry, bn as RootModelDeleteQueryEntry, bo as RootModelDistinctQueryEntry, bp as RootModelListQueryEntry, bq as RootModelNewQueryEntry, br as RootModelOperation, bs as RootModelReadByFilterQueryEntry, bt as RootModelReadByIdQueryEntry, bu as RootModelSubBulkUpdateQueryEntry, bv as RootModelSubCreateQueryEntry, bw as RootModelSubDeleteQueryEntry, bx as RootModelSubListQueryEntry, by as RootModelSubReadQueryEntry, bz as RootModelSubUpdateQueryEntry, bA as RootModelUpdateQueryEntry, bB as RootModelUpsertQueryEntry, bC as RootOperationResult, bD as RootQueryEntry, bE as RootRouterOptions, bF as RootSubOperation, bG as RootTarget, bH as RouteGuardAccess, bI as SelectAccess, bJ as SelectedPopulatedPublicOutput, bK as SelectedPublicOutput, bL as ServiceResult, bM as SingleResult, bN as Sort, bO as SortOrder, bP as StandardSchemaFailure, bQ as StandardSchemaInferOutput, bR as StandardSchemaIssue, bS as StandardSchemaPathSegment, bT as StandardSchemaResult, bU as StandardSchemaSuccess, bV as StandardSchemaV1, bW as StatusCodes, bX as SubListBody, bY as SubPopulate, bZ as SubQueryEntry, b_ as SubReadBody, b$ as SubdocumentBulkRecord, c0 as SubdocumentBulkUpdateInput, c1 as SubdocumentCreateInput, c2 as SubdocumentCreateOptions, c3 as SubdocumentId, c4 as SubdocumentListOptions, c5 as SubdocumentName, c6 as SubdocumentParentArgs, c7 as SubdocumentParentOptions, c8 as SubdocumentReadOptions, c9 as SubdocumentRecord, ca as SuperstructFailureLike, cb as SuperstructValidateLike, cc as Task, cd as TaskType, ce as TransformAccess, cf as TypedFilter, cg as UpdateByIdArgs, ch as UpdateByIdOptions, ci as UpdateOneArgs, cj as UpdateOneOptions, ck as UpdateQueryInput, cl as UpsertArgs, cm as UpsertOptions, cn as UpsertQueryInput, co as ValibotIssueLike, cp as ValibotPathItemLike, cq as ValibotSafeParseLike, cr as ValibotSafeParseResult, cs as ValidateAccess, ct as ValidateRule, cu as Validation, cv as ValidationError, cw as VineValidationErrorLike, cx as VineValidationMessageLike, cy as VineValidatorLike, cz as YupSchemaLike, cA as YupValidationErrorLike, cB as defineRequestSchema, cC as fromAjv, cD as fromArkType, cE as fromIoTs, cF as fromJoi, cG as fromStandardSchema, cH as fromSuperstruct, cI as fromValibot, cJ as fromVine, cK as fromYup, cL as fromZod, cM as parseBody, cN as parseBodyWithSchema, cO as parseNestedBodyWithSchema, cP as parsePathParam, cQ as parseQuery } from './parsers-D6iK8khR.mjs';
2
2
  import { z } from 'zod';
3
3
  import 'mongoose';
4
4
  import 'express';
@@ -16,6 +16,10 @@ declare const listQuerySchema: z.ZodObject<{
16
16
  true: "true";
17
17
  false: "false";
18
18
  }>>;
19
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
20
+ true: "true";
21
+ false: "false";
22
+ }>>;
19
23
  include_count: z.ZodOptional<z.ZodEnum<{
20
24
  true: "true";
21
25
  false: "false";
@@ -24,22 +28,33 @@ declare const listQuerySchema: z.ZodObject<{
24
28
  true: "true";
25
29
  false: "false";
26
30
  }>>;
31
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
32
+ sort: z.ZodOptional<z.ZodString>;
27
33
  }, z.core.$loose>;
28
34
  declare const createQuerySchema: z.ZodObject<{
29
35
  include_permissions: z.ZodOptional<z.ZodEnum<{
30
36
  true: "true";
31
37
  false: "false";
32
38
  }>>;
39
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
40
+ true: "true";
41
+ false: "false";
42
+ }>>;
33
43
  }, z.core.$loose>;
34
44
  declare const readQuerySchema: z.ZodObject<{
35
45
  include_permissions: z.ZodOptional<z.ZodEnum<{
36
46
  true: "true";
37
47
  false: "false";
38
48
  }>>;
49
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
50
+ true: "true";
51
+ false: "false";
52
+ }>>;
39
53
  try_list: z.ZodOptional<z.ZodEnum<{
40
54
  true: "true";
41
55
  false: "false";
42
56
  }>>;
57
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
43
58
  }, z.core.$loose>;
44
59
  declare const updateQuerySchema: z.ZodObject<{
45
60
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -50,6 +65,11 @@ declare const updateQuerySchema: z.ZodObject<{
50
65
  true: "true";
51
66
  false: "false";
52
67
  }>>;
68
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
69
+ true: "true";
70
+ false: "false";
71
+ }>>;
72
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
53
73
  }, z.core.$loose>;
54
74
  declare const upsertQuerySchema: z.ZodObject<{
55
75
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -60,6 +80,10 @@ declare const upsertQuerySchema: z.ZodObject<{
60
80
  true: "true";
61
81
  false: "false";
62
82
  }>>;
83
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
84
+ true: "true";
85
+ false: "false";
86
+ }>>;
63
87
  }, z.core.$loose>;
64
88
  declare const listBodySchema: z.ZodObject<{
65
89
  filter: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
@@ -231,6 +255,7 @@ declare const listBodySchema: z.ZodObject<{
231
255
  options: z.ZodOptional<z.ZodObject<{
232
256
  skim: z.ZodOptional<z.ZodBoolean>;
233
257
  includePermissions: z.ZodOptional<z.ZodBoolean>;
258
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
234
259
  includeCount: z.ZodOptional<z.ZodBoolean>;
235
260
  includeExtraHeaders: z.ZodOptional<z.ZodBoolean>;
236
261
  populateAccess: z.ZodOptional<z.ZodUnknown>;
@@ -405,6 +430,7 @@ declare const readFilterBodySchema: z.ZodObject<{
405
430
  options: z.ZodOptional<z.ZodObject<{
406
431
  skim: z.ZodOptional<z.ZodBoolean>;
407
432
  includePermissions: z.ZodOptional<z.ZodBoolean>;
433
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
408
434
  tryList: z.ZodOptional<z.ZodBoolean>;
409
435
  populateAccess: z.ZodOptional<z.ZodUnknown>;
410
436
  }, z.core.$loose>>;
@@ -573,6 +599,7 @@ declare const readByIdBodySchema: z.ZodObject<{
573
599
  options: z.ZodOptional<z.ZodObject<{
574
600
  skim: z.ZodOptional<z.ZodBoolean>;
575
601
  includePermissions: z.ZodOptional<z.ZodBoolean>;
602
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
576
603
  tryList: z.ZodOptional<z.ZodBoolean>;
577
604
  populateAccess: z.ZodOptional<z.ZodUnknown>;
578
605
  }, z.core.$loose>>;
@@ -608,6 +635,7 @@ declare const advancedCreateBodySchema: z.ZodObject<{
608
635
  }, z.core.$strip>>]>>;
609
636
  options: z.ZodOptional<z.ZodObject<{
610
637
  includePermissions: z.ZodOptional<z.ZodBoolean>;
638
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
611
639
  populateAccess: z.ZodOptional<z.ZodUnknown>;
612
640
  }, z.core.$loose>>;
613
641
  }, z.core.$loose>;
@@ -645,6 +673,7 @@ declare const advancedUpdateBodySchema: z.ZodObject<{
645
673
  options: z.ZodOptional<z.ZodObject<{
646
674
  returningAll: z.ZodOptional<z.ZodBoolean>;
647
675
  includePermissions: z.ZodOptional<z.ZodBoolean>;
676
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
648
677
  populateAccess: z.ZodOptional<z.ZodUnknown>;
649
678
  }, z.core.$loose>>;
650
679
  }, z.core.$loose>;
@@ -681,6 +710,7 @@ declare const advancedUpsertBodySchema: z.ZodObject<{
681
710
  options: z.ZodOptional<z.ZodObject<{
682
711
  returningAll: z.ZodOptional<z.ZodBoolean>;
683
712
  includePermissions: z.ZodOptional<z.ZodBoolean>;
713
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
684
714
  populateAccess: z.ZodOptional<z.ZodUnknown>;
685
715
  }, z.core.$loose>>;
686
716
  }, z.core.$loose>;
@@ -716,6 +746,10 @@ declare const requestSchemas: {
716
746
  true: "true";
717
747
  false: "false";
718
748
  }>>;
749
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
750
+ true: "true";
751
+ false: "false";
752
+ }>>;
719
753
  include_count: z.ZodOptional<z.ZodEnum<{
720
754
  true: "true";
721
755
  false: "false";
@@ -724,22 +758,33 @@ declare const requestSchemas: {
724
758
  true: "true";
725
759
  false: "false";
726
760
  }>>;
761
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
762
+ sort: z.ZodOptional<z.ZodString>;
727
763
  }, z.core.$loose>;
728
764
  createQuery: z.ZodObject<{
729
765
  include_permissions: z.ZodOptional<z.ZodEnum<{
730
766
  true: "true";
731
767
  false: "false";
732
768
  }>>;
769
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
770
+ true: "true";
771
+ false: "false";
772
+ }>>;
733
773
  }, z.core.$loose>;
734
774
  readQuery: z.ZodObject<{
735
775
  include_permissions: z.ZodOptional<z.ZodEnum<{
736
776
  true: "true";
737
777
  false: "false";
738
778
  }>>;
779
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
780
+ true: "true";
781
+ false: "false";
782
+ }>>;
739
783
  try_list: z.ZodOptional<z.ZodEnum<{
740
784
  true: "true";
741
785
  false: "false";
742
786
  }>>;
787
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
743
788
  }, z.core.$loose>;
744
789
  updateQuery: z.ZodObject<{
745
790
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -750,6 +795,11 @@ declare const requestSchemas: {
750
795
  true: "true";
751
796
  false: "false";
752
797
  }>>;
798
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
799
+ true: "true";
800
+ false: "false";
801
+ }>>;
802
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
753
803
  }, z.core.$loose>;
754
804
  upsertQuery: z.ZodObject<{
755
805
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -760,6 +810,10 @@ declare const requestSchemas: {
760
810
  true: "true";
761
811
  false: "false";
762
812
  }>>;
813
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
814
+ true: "true";
815
+ false: "false";
816
+ }>>;
763
817
  }, z.core.$loose>;
764
818
  };
765
819
 
@@ -793,6 +847,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
793
847
  options: z.ZodOptional<z.ZodObject<{
794
848
  skim: z.ZodOptional<z.ZodBoolean>;
795
849
  includePermissions: z.ZodOptional<z.ZodBoolean>;
850
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
796
851
  }, z.core.$loose>>;
797
852
  name: z.ZodString;
798
853
  order: z.ZodOptional<z.ZodNumber>;
@@ -970,6 +1025,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
970
1025
  options: z.ZodOptional<z.ZodObject<{
971
1026
  skim: z.ZodOptional<z.ZodBoolean>;
972
1027
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1028
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
973
1029
  includeCount: z.ZodOptional<z.ZodBoolean>;
974
1030
  populateAccess: z.ZodOptional<z.ZodUnknown>;
975
1031
  lean: z.ZodOptional<z.ZodBoolean>;
@@ -1145,6 +1201,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1145
1201
  options: z.ZodOptional<z.ZodObject<{
1146
1202
  skim: z.ZodOptional<z.ZodBoolean>;
1147
1203
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1204
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1148
1205
  tryList: z.ZodOptional<z.ZodBoolean>;
1149
1206
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1150
1207
  lean: z.ZodOptional<z.ZodBoolean>;
@@ -1321,6 +1378,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1321
1378
  options: z.ZodOptional<z.ZodObject<{
1322
1379
  skim: z.ZodOptional<z.ZodBoolean>;
1323
1380
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1381
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1324
1382
  tryList: z.ZodOptional<z.ZodBoolean>;
1325
1383
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1326
1384
  lean: z.ZodOptional<z.ZodBoolean>;
@@ -1363,6 +1421,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1363
1421
  options: z.ZodOptional<z.ZodObject<{
1364
1422
  skim: z.ZodOptional<z.ZodBoolean>;
1365
1423
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1424
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1366
1425
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1367
1426
  }, z.core.$loose>>;
1368
1427
  name: z.ZodString;
@@ -1405,6 +1464,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1405
1464
  skim: z.ZodOptional<z.ZodBoolean>;
1406
1465
  returningAll: z.ZodOptional<z.ZodBoolean>;
1407
1466
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1467
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1408
1468
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1409
1469
  }, z.core.$loose>>;
1410
1470
  name: z.ZodString;
@@ -1446,6 +1506,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1446
1506
  skim: z.ZodOptional<z.ZodBoolean>;
1447
1507
  returningAll: z.ZodOptional<z.ZodBoolean>;
1448
1508
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1509
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1449
1510
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1450
1511
  }, z.core.$loose>>;
1451
1512
  name: z.ZodString;
package/advanced.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as Filter, a8 as FilterOperator, a9 as FindAccess, aa as FindArgs, ab as FindByIdArgs, ac as FindByIdOptions, ad as FindOneArgs, ae as FindOneOptions, af as FindOptions, ag as GlobalOptions, ah as GlobalPermissionValue, ai as GuardHook, aj as IdentifierHook, ak as Include, al as IoTsContextEntryLike, am as IoTsDecodeErrorLike, an as IoTsDecoderLike, ao as JoiSchemaLike, ap as JoiValidationErrorDetailLike, aq as KeyValueProjection, ar as LegacyInclude, as as ListQueryInput, at as ListResult, au as MIDDLEWARE, av as MaybePromise, aw as ModelBaseFilterHook, ax as ModelChangeHook, ay as ModelDeleteHook, az as ModelDocPermissionsHook, aA as ModelDocument, aB as ModelDocumentHook, aC as ModelHook, aD as ModelHookContext, aE as ModelIdentifierHook, aF as ModelListHook, aG as ModelOverrideFilterHook, aH as ModelRequest, aI as ModelRouterOptions, aJ as ModelValidateHook, aK as PERMISSIONS, aL as PERMISSION_KEYS, aM as ParentRef, aN as PathValue, aO as PermissionSchema, aP as Populate, aQ as PopulateAccess, aR as PrepareAccess, aS as Projection, aT as PublicCreateArgs, aU as PublicCreateOptions, aV as PublicErrorResult, aW as PublicListArgs, aX as PublicListOptions, aY as PublicListResult, aZ as PublicOutput, a_ as PublicReadArgs, a$ as PublicReadOptions, b0 as PublicServiceResult, b1 as PublicSingleResult, b2 as PublicUpdateArgs, b3 as PublicUpdateOptions, b4 as PublicUpsertArgs, b5 as PublicUpsertOptions, b6 as ReadQueryInput, b7 as Request, b8 as RequestSchemaAdapter, b9 as RequestSchemaFailure, ba as RequestSchemaIssue, bb as RequestSchemaLike, bc as RequestSchemaOptions, bd as RequestSchemaResult, be as RequestSchemaSuccess, bf as RequestSchemaValidator, bg as RequestSchemas, bh as RootDataListQueryEntry, bi as RootDataOperation, bj as RootDataReadByFilterQueryEntry, bk as RootDataReadByIdQueryEntry, bl as RootModelCountQueryEntry, bm as RootModelCreateQueryEntry, bn as RootModelDeleteQueryEntry, bo as RootModelDistinctQueryEntry, bp as RootModelListQueryEntry, bq as RootModelNewQueryEntry, br as RootModelOperation, bs as RootModelReadByFilterQueryEntry, bt as RootModelReadByIdQueryEntry, bu as RootModelSubBulkUpdateQueryEntry, bv as RootModelSubCreateQueryEntry, bw as RootModelSubDeleteQueryEntry, bx as RootModelSubListQueryEntry, by as RootModelSubReadQueryEntry, bz as RootModelSubUpdateQueryEntry, bA as RootModelUpdateQueryEntry, bB as RootModelUpsertQueryEntry, bC as RootOperationResult, bD as RootQueryEntry, bE as RootRouterOptions, bF as RootSubOperation, bG as RootTarget, bH as RouteGuardAccess, bI as SelectAccess, bJ as SelectedPopulatedPublicOutput, bK as SelectedPublicOutput, bL as ServiceResult, bM as SingleResult, bN as Sort, bO as SortOrder, bP as StandardSchemaFailure, bQ as StandardSchemaInferOutput, bR as StandardSchemaIssue, bS as StandardSchemaPathSegment, bT as StandardSchemaResult, bU as StandardSchemaSuccess, bV as StandardSchemaV1, bW as StatusCodes, bX as SubListBody, bY as SubPopulate, bZ as SubQueryEntry, b_ as SubReadBody, b$ as SubdocumentBulkRecord, c0 as SubdocumentBulkUpdateInput, c1 as SubdocumentCreateInput, c2 as SubdocumentCreateOptions, c3 as SubdocumentId, c4 as SubdocumentListOptions, c5 as SubdocumentName, c6 as SubdocumentParentArgs, c7 as SubdocumentParentOptions, c8 as SubdocumentReadOptions, c9 as SubdocumentRecord, ca as SuperstructFailureLike, cb as SuperstructValidateLike, cc as Task, cd as TaskType, ce as TransformAccess, cf as TypedFilter, cg as UpdateByIdArgs, ch as UpdateByIdOptions, ci as UpdateOneArgs, cj as UpdateOneOptions, ck as UpdateQueryInput, cl as UpsertArgs, cm as UpsertOptions, cn as UpsertQueryInput, co as ValibotIssueLike, cp as ValibotPathItemLike, cq as ValibotSafeParseLike, cr as ValibotSafeParseResult, cs as ValidateAccess, ct as ValidateRule, cu as Validation, cv as ValidationError, cw as VineValidationErrorLike, cx as VineValidationMessageLike, cy as VineValidatorLike, cz as YupSchemaLike, cA as YupValidationErrorLike, cB as defineRequestSchema, cC as fromAjv, cD as fromArkType, cE as fromIoTs, cF as fromJoi, cG as fromStandardSchema, cH as fromSuperstruct, cI as fromValibot, cJ as fromVine, cK as fromYup, cL as fromZod, cM as parseBody, cN as parseBodyWithSchema, cO as parseNestedBodyWithSchema, cP as parsePathParam, cQ as parseQuery } from './parsers-BidvJUu7.js';
1
+ export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as Filter, a8 as FilterOperator, a9 as FindAccess, aa as FindArgs, ab as FindByIdArgs, ac as FindByIdOptions, ad as FindOneArgs, ae as FindOneOptions, af as FindOptions, ag as GlobalOptions, ah as GlobalPermissionValue, ai as GuardHook, aj as IdentifierHook, ak as Include, al as IoTsContextEntryLike, am as IoTsDecodeErrorLike, an as IoTsDecoderLike, ao as JoiSchemaLike, ap as JoiValidationErrorDetailLike, aq as KeyValueProjection, ar as LegacyInclude, as as ListQueryInput, at as ListResult, au as MIDDLEWARE, av as MaybePromise, aw as ModelBaseFilterHook, ax as ModelChangeHook, ay as ModelDeleteHook, az as ModelDocPermissionsHook, aA as ModelDocument, aB as ModelDocumentHook, aC as ModelHook, aD as ModelHookContext, aE as ModelIdentifierHook, aF as ModelListHook, aG as ModelOverrideFilterHook, aH as ModelRequest, aI as ModelRouterOptions, aJ as ModelValidateHook, aK as PERMISSIONS, aL as PERMISSION_KEYS, aM as ParentRef, aN as PathValue, aO as PermissionSchema, aP as Populate, aQ as PopulateAccess, aR as PrepareAccess, aS as Projection, aT as PublicCreateArgs, aU as PublicCreateOptions, aV as PublicErrorResult, aW as PublicListArgs, aX as PublicListOptions, aY as PublicListResult, aZ as PublicOutput, a_ as PublicReadArgs, a$ as PublicReadOptions, b0 as PublicServiceResult, b1 as PublicSingleResult, b2 as PublicUpdateArgs, b3 as PublicUpdateOptions, b4 as PublicUpsertArgs, b5 as PublicUpsertOptions, b6 as ReadQueryInput, b7 as Request, b8 as RequestSchemaAdapter, b9 as RequestSchemaFailure, ba as RequestSchemaIssue, bb as RequestSchemaLike, bc as RequestSchemaOptions, bd as RequestSchemaResult, be as RequestSchemaSuccess, bf as RequestSchemaValidator, bg as RequestSchemas, bh as RootDataListQueryEntry, bi as RootDataOperation, bj as RootDataReadByFilterQueryEntry, bk as RootDataReadByIdQueryEntry, bl as RootModelCountQueryEntry, bm as RootModelCreateQueryEntry, bn as RootModelDeleteQueryEntry, bo as RootModelDistinctQueryEntry, bp as RootModelListQueryEntry, bq as RootModelNewQueryEntry, br as RootModelOperation, bs as RootModelReadByFilterQueryEntry, bt as RootModelReadByIdQueryEntry, bu as RootModelSubBulkUpdateQueryEntry, bv as RootModelSubCreateQueryEntry, bw as RootModelSubDeleteQueryEntry, bx as RootModelSubListQueryEntry, by as RootModelSubReadQueryEntry, bz as RootModelSubUpdateQueryEntry, bA as RootModelUpdateQueryEntry, bB as RootModelUpsertQueryEntry, bC as RootOperationResult, bD as RootQueryEntry, bE as RootRouterOptions, bF as RootSubOperation, bG as RootTarget, bH as RouteGuardAccess, bI as SelectAccess, bJ as SelectedPopulatedPublicOutput, bK as SelectedPublicOutput, bL as ServiceResult, bM as SingleResult, bN as Sort, bO as SortOrder, bP as StandardSchemaFailure, bQ as StandardSchemaInferOutput, bR as StandardSchemaIssue, bS as StandardSchemaPathSegment, bT as StandardSchemaResult, bU as StandardSchemaSuccess, bV as StandardSchemaV1, bW as StatusCodes, bX as SubListBody, bY as SubPopulate, bZ as SubQueryEntry, b_ as SubReadBody, b$ as SubdocumentBulkRecord, c0 as SubdocumentBulkUpdateInput, c1 as SubdocumentCreateInput, c2 as SubdocumentCreateOptions, c3 as SubdocumentId, c4 as SubdocumentListOptions, c5 as SubdocumentName, c6 as SubdocumentParentArgs, c7 as SubdocumentParentOptions, c8 as SubdocumentReadOptions, c9 as SubdocumentRecord, ca as SuperstructFailureLike, cb as SuperstructValidateLike, cc as Task, cd as TaskType, ce as TransformAccess, cf as TypedFilter, cg as UpdateByIdArgs, ch as UpdateByIdOptions, ci as UpdateOneArgs, cj as UpdateOneOptions, ck as UpdateQueryInput, cl as UpsertArgs, cm as UpsertOptions, cn as UpsertQueryInput, co as ValibotIssueLike, cp as ValibotPathItemLike, cq as ValibotSafeParseLike, cr as ValibotSafeParseResult, cs as ValidateAccess, ct as ValidateRule, cu as Validation, cv as ValidationError, cw as VineValidationErrorLike, cx as VineValidationMessageLike, cy as VineValidatorLike, cz as YupSchemaLike, cA as YupValidationErrorLike, cB as defineRequestSchema, cC as fromAjv, cD as fromArkType, cE as fromIoTs, cF as fromJoi, cG as fromStandardSchema, cH as fromSuperstruct, cI as fromValibot, cJ as fromVine, cK as fromYup, cL as fromZod, cM as parseBody, cN as parseBodyWithSchema, cO as parseNestedBodyWithSchema, cP as parsePathParam, cQ as parseQuery } from './parsers-D6iK8khR.js';
2
2
  import { z } from 'zod';
3
3
  import 'mongoose';
4
4
  import 'express';
@@ -16,6 +16,10 @@ declare const listQuerySchema: z.ZodObject<{
16
16
  true: "true";
17
17
  false: "false";
18
18
  }>>;
19
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
20
+ true: "true";
21
+ false: "false";
22
+ }>>;
19
23
  include_count: z.ZodOptional<z.ZodEnum<{
20
24
  true: "true";
21
25
  false: "false";
@@ -24,22 +28,33 @@ declare const listQuerySchema: z.ZodObject<{
24
28
  true: "true";
25
29
  false: "false";
26
30
  }>>;
31
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
32
+ sort: z.ZodOptional<z.ZodString>;
27
33
  }, z.core.$loose>;
28
34
  declare const createQuerySchema: z.ZodObject<{
29
35
  include_permissions: z.ZodOptional<z.ZodEnum<{
30
36
  true: "true";
31
37
  false: "false";
32
38
  }>>;
39
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
40
+ true: "true";
41
+ false: "false";
42
+ }>>;
33
43
  }, z.core.$loose>;
34
44
  declare const readQuerySchema: z.ZodObject<{
35
45
  include_permissions: z.ZodOptional<z.ZodEnum<{
36
46
  true: "true";
37
47
  false: "false";
38
48
  }>>;
49
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
50
+ true: "true";
51
+ false: "false";
52
+ }>>;
39
53
  try_list: z.ZodOptional<z.ZodEnum<{
40
54
  true: "true";
41
55
  false: "false";
42
56
  }>>;
57
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
43
58
  }, z.core.$loose>;
44
59
  declare const updateQuerySchema: z.ZodObject<{
45
60
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -50,6 +65,11 @@ declare const updateQuerySchema: z.ZodObject<{
50
65
  true: "true";
51
66
  false: "false";
52
67
  }>>;
68
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
69
+ true: "true";
70
+ false: "false";
71
+ }>>;
72
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
53
73
  }, z.core.$loose>;
54
74
  declare const upsertQuerySchema: z.ZodObject<{
55
75
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -60,6 +80,10 @@ declare const upsertQuerySchema: z.ZodObject<{
60
80
  true: "true";
61
81
  false: "false";
62
82
  }>>;
83
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
84
+ true: "true";
85
+ false: "false";
86
+ }>>;
63
87
  }, z.core.$loose>;
64
88
  declare const listBodySchema: z.ZodObject<{
65
89
  filter: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
@@ -231,6 +255,7 @@ declare const listBodySchema: z.ZodObject<{
231
255
  options: z.ZodOptional<z.ZodObject<{
232
256
  skim: z.ZodOptional<z.ZodBoolean>;
233
257
  includePermissions: z.ZodOptional<z.ZodBoolean>;
258
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
234
259
  includeCount: z.ZodOptional<z.ZodBoolean>;
235
260
  includeExtraHeaders: z.ZodOptional<z.ZodBoolean>;
236
261
  populateAccess: z.ZodOptional<z.ZodUnknown>;
@@ -405,6 +430,7 @@ declare const readFilterBodySchema: z.ZodObject<{
405
430
  options: z.ZodOptional<z.ZodObject<{
406
431
  skim: z.ZodOptional<z.ZodBoolean>;
407
432
  includePermissions: z.ZodOptional<z.ZodBoolean>;
433
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
408
434
  tryList: z.ZodOptional<z.ZodBoolean>;
409
435
  populateAccess: z.ZodOptional<z.ZodUnknown>;
410
436
  }, z.core.$loose>>;
@@ -573,6 +599,7 @@ declare const readByIdBodySchema: z.ZodObject<{
573
599
  options: z.ZodOptional<z.ZodObject<{
574
600
  skim: z.ZodOptional<z.ZodBoolean>;
575
601
  includePermissions: z.ZodOptional<z.ZodBoolean>;
602
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
576
603
  tryList: z.ZodOptional<z.ZodBoolean>;
577
604
  populateAccess: z.ZodOptional<z.ZodUnknown>;
578
605
  }, z.core.$loose>>;
@@ -608,6 +635,7 @@ declare const advancedCreateBodySchema: z.ZodObject<{
608
635
  }, z.core.$strip>>]>>;
609
636
  options: z.ZodOptional<z.ZodObject<{
610
637
  includePermissions: z.ZodOptional<z.ZodBoolean>;
638
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
611
639
  populateAccess: z.ZodOptional<z.ZodUnknown>;
612
640
  }, z.core.$loose>>;
613
641
  }, z.core.$loose>;
@@ -645,6 +673,7 @@ declare const advancedUpdateBodySchema: z.ZodObject<{
645
673
  options: z.ZodOptional<z.ZodObject<{
646
674
  returningAll: z.ZodOptional<z.ZodBoolean>;
647
675
  includePermissions: z.ZodOptional<z.ZodBoolean>;
676
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
648
677
  populateAccess: z.ZodOptional<z.ZodUnknown>;
649
678
  }, z.core.$loose>>;
650
679
  }, z.core.$loose>;
@@ -681,6 +710,7 @@ declare const advancedUpsertBodySchema: z.ZodObject<{
681
710
  options: z.ZodOptional<z.ZodObject<{
682
711
  returningAll: z.ZodOptional<z.ZodBoolean>;
683
712
  includePermissions: z.ZodOptional<z.ZodBoolean>;
713
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
684
714
  populateAccess: z.ZodOptional<z.ZodUnknown>;
685
715
  }, z.core.$loose>>;
686
716
  }, z.core.$loose>;
@@ -716,6 +746,10 @@ declare const requestSchemas: {
716
746
  true: "true";
717
747
  false: "false";
718
748
  }>>;
749
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
750
+ true: "true";
751
+ false: "false";
752
+ }>>;
719
753
  include_count: z.ZodOptional<z.ZodEnum<{
720
754
  true: "true";
721
755
  false: "false";
@@ -724,22 +758,33 @@ declare const requestSchemas: {
724
758
  true: "true";
725
759
  false: "false";
726
760
  }>>;
761
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
762
+ sort: z.ZodOptional<z.ZodString>;
727
763
  }, z.core.$loose>;
728
764
  createQuery: z.ZodObject<{
729
765
  include_permissions: z.ZodOptional<z.ZodEnum<{
730
766
  true: "true";
731
767
  false: "false";
732
768
  }>>;
769
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
770
+ true: "true";
771
+ false: "false";
772
+ }>>;
733
773
  }, z.core.$loose>;
734
774
  readQuery: z.ZodObject<{
735
775
  include_permissions: z.ZodOptional<z.ZodEnum<{
736
776
  true: "true";
737
777
  false: "false";
738
778
  }>>;
779
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
780
+ true: "true";
781
+ false: "false";
782
+ }>>;
739
783
  try_list: z.ZodOptional<z.ZodEnum<{
740
784
  true: "true";
741
785
  false: "false";
742
786
  }>>;
787
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
743
788
  }, z.core.$loose>;
744
789
  updateQuery: z.ZodObject<{
745
790
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -750,6 +795,11 @@ declare const requestSchemas: {
750
795
  true: "true";
751
796
  false: "false";
752
797
  }>>;
798
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
799
+ true: "true";
800
+ false: "false";
801
+ }>>;
802
+ select: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
753
803
  }, z.core.$loose>;
754
804
  upsertQuery: z.ZodObject<{
755
805
  returning_all: z.ZodOptional<z.ZodEnum<{
@@ -760,6 +810,10 @@ declare const requestSchemas: {
760
810
  true: "true";
761
811
  false: "false";
762
812
  }>>;
813
+ include_field_permissions: z.ZodOptional<z.ZodEnum<{
814
+ true: "true";
815
+ false: "false";
816
+ }>>;
763
817
  }, z.core.$loose>;
764
818
  };
765
819
 
@@ -793,6 +847,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
793
847
  options: z.ZodOptional<z.ZodObject<{
794
848
  skim: z.ZodOptional<z.ZodBoolean>;
795
849
  includePermissions: z.ZodOptional<z.ZodBoolean>;
850
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
796
851
  }, z.core.$loose>>;
797
852
  name: z.ZodString;
798
853
  order: z.ZodOptional<z.ZodNumber>;
@@ -970,6 +1025,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
970
1025
  options: z.ZodOptional<z.ZodObject<{
971
1026
  skim: z.ZodOptional<z.ZodBoolean>;
972
1027
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1028
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
973
1029
  includeCount: z.ZodOptional<z.ZodBoolean>;
974
1030
  populateAccess: z.ZodOptional<z.ZodUnknown>;
975
1031
  lean: z.ZodOptional<z.ZodBoolean>;
@@ -1145,6 +1201,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1145
1201
  options: z.ZodOptional<z.ZodObject<{
1146
1202
  skim: z.ZodOptional<z.ZodBoolean>;
1147
1203
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1204
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1148
1205
  tryList: z.ZodOptional<z.ZodBoolean>;
1149
1206
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1150
1207
  lean: z.ZodOptional<z.ZodBoolean>;
@@ -1321,6 +1378,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1321
1378
  options: z.ZodOptional<z.ZodObject<{
1322
1379
  skim: z.ZodOptional<z.ZodBoolean>;
1323
1380
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1381
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1324
1382
  tryList: z.ZodOptional<z.ZodBoolean>;
1325
1383
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1326
1384
  lean: z.ZodOptional<z.ZodBoolean>;
@@ -1363,6 +1421,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1363
1421
  options: z.ZodOptional<z.ZodObject<{
1364
1422
  skim: z.ZodOptional<z.ZodBoolean>;
1365
1423
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1424
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1366
1425
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1367
1426
  }, z.core.$loose>>;
1368
1427
  name: z.ZodString;
@@ -1405,6 +1464,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1405
1464
  skim: z.ZodOptional<z.ZodBoolean>;
1406
1465
  returningAll: z.ZodOptional<z.ZodBoolean>;
1407
1466
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1467
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1408
1468
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1409
1469
  }, z.core.$loose>>;
1410
1470
  name: z.ZodString;
@@ -1446,6 +1506,7 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
1446
1506
  skim: z.ZodOptional<z.ZodBoolean>;
1447
1507
  returningAll: z.ZodOptional<z.ZodBoolean>;
1448
1508
  includePermissions: z.ZodOptional<z.ZodBoolean>;
1509
+ includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
1449
1510
  populateAccess: z.ZodOptional<z.ZodUnknown>;
1450
1511
  }, z.core.$loose>>;
1451
1512
  name: z.ZodString;