@dyrected/core 2.21.0 → 2.23.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.
@@ -661,8 +661,9 @@ type ViewComponentSlots = CollectionViewComponentSlots;
661
661
  * - `'calendar'`: Event schedule grid plotting records across month/week/day views by date.
662
662
  * - `'gantt'`: Timeline bars plotted across start and end dates.
663
663
  * - `'cards'`: Visual image/thumbnail gallery grid.
664
+ * - `'custom'`: A host-supplied component registered under `AdminComponents.viewLayouts`.
664
665
  */
665
- type ViewLayout = 'table' | 'spreadsheet' | 'kanban' | 'calendar' | 'gantt' | 'cards';
666
+ type ViewLayout = 'table' | 'spreadsheet' | 'kanban' | 'calendar' | 'gantt' | 'cards' | 'custom';
666
667
  /**
667
668
  * Scope and placement for an operational view action:
668
669
  * - `'row'`: Renders as an inline action button on each document/row.
@@ -723,8 +724,34 @@ interface ViewMetricGroupByConfig {
723
724
  orderBy?: 'count' | 'asc' | 'desc';
724
725
  /** Optional where filter when discovering groups. */
725
726
  where?: Record<string, unknown>;
727
+ /** Time interval bucket when grouping by a date or datetime field: `'day' | 'week' | 'month' | 'quarter' | 'year'`. */
728
+ bucket?: 'day' | 'week' | 'month' | 'quarter' | 'year';
729
+ /** When true (or by default for dynamic groupBy), omits groups with zero or null aggregate values from the breakdown. Set to `false` to retain zero-count groups. */
730
+ filterZero?: boolean;
726
731
  }
727
732
  type ViewMetricGroupBy = string | ViewMetricGroupByConfig;
733
+ /**
734
+ * Period-over-period trend delta configuration for KPI metrics.
735
+ */
736
+ interface ViewMetricTrendConfig {
737
+ /** Date or datetime field used to partition the evaluation period. Defaults to "createdAt". */
738
+ dateField?: string;
739
+ /**
740
+ * Comparison period:
741
+ * - "previous_period": compares the current evaluation window against the immediate preceding window of equal duration
742
+ * - "previous_day": compares against the same interval yesterday
743
+ * - "previous_month": compares against the same interval last month
744
+ * - "previous_week": compares against the same interval last week
745
+ * - "previous_year": compares against the same interval last year
746
+ * Defaults to "previous_period".
747
+ */
748
+ period?: 'previous_period' | 'previous_day' | 'previous_week' | 'previous_month' | 'previous_year';
749
+ /**
750
+ * By default, positive growth is styled with emerald/up and reduction with rose/down.
751
+ * Set `invertColors: true` for inverted metrics where an increase is undesirable (e.g. churn, bounce rate, error counts).
752
+ */
753
+ invertColors?: boolean;
754
+ }
728
755
  interface ViewSubMetric {
729
756
  /** Short label for the sub-metric (e.g. "Pending", "Collected"). Supports `{{group.label}}` and `{{group.value}}` when `groupBy` is used. */
730
757
  label: string;
@@ -740,10 +767,14 @@ interface ViewSubMetric {
740
767
  transform?: string;
741
768
  /** JEXL math formula evaluated over `aggregates` (e.g. `"aggregates.a - aggregates.b"`). */
742
769
  expression?: string;
770
+ /** Optional accent color for this sub-metric item and its distribution bar segment. */
771
+ color?: MetricColor;
743
772
  /** Display formatter: `'currency' | 'number' | 'percent'`. */
744
773
  format?: 'currency' | 'number' | 'percent' | string;
745
774
  /** 3-letter currency code (e.g. `"USD"`, `"NGN"`, `"EUR"`) used when `format: "currency"`. */
746
775
  currency?: string;
776
+ /** Period-over-period trend delta comparison configuration. */
777
+ trend?: ViewMetricTrendConfig;
747
778
  }
748
779
  /**
749
780
  * Configuration for a KPI summary card rendered at the top of an operational view.
@@ -790,6 +821,22 @@ interface ViewMetric {
790
821
  format?: 'currency' | 'number' | 'percent' | string;
791
822
  /** 3-letter currency code (e.g. `"USD"`, `"NGN"`, `"EUR"`) used when `format: "currency"`. */
792
823
  currency?: string;
824
+ /** Period-over-period trend delta comparison configuration. */
825
+ trend?: ViewMetricTrendConfig;
826
+ /**
827
+ * Responsive column span for this metric card in the metrics grid:
828
+ * - `1`: standard single card width (default)
829
+ * - `2`: spans 2 columns on medium screens and up
830
+ * - `3`: spans 3 columns on large screens and up
831
+ * - `4`: spans 4 columns on extra large screens
832
+ * - `'full'`: spans the full width of the metrics grid
833
+ */
834
+ span?: 1 | 2 | 3 | 4 | 'full';
835
+ /**
836
+ * Controls the horizontal segmented distribution bar for sub-metrics.
837
+ * Defaults to `true` when 2 or more sub-metrics have numerical values. Set to `false` to disable.
838
+ */
839
+ showDistribution?: boolean;
793
840
  /** Optional secondary breakdown items shown in the card footer. */
794
841
  subMetrics?: ViewSubMetric[];
795
842
  }
@@ -939,10 +986,43 @@ interface CardsViewConfig extends ViewConfigBase {
939
986
  /** Field name used to organize records into groups. */
940
987
  groupBy?: string;
941
988
  }
989
+ /**
990
+ * Custom view — the host app supplies the component that renders documents.
991
+ *
992
+ * Dyrected keeps owning the header, KPI metrics, search, pagination, selection,
993
+ * bulk actions and action execution. The component only renders documents and
994
+ * reads everything else through `useCollectionView()` / `useViewActions()`.
995
+ */
996
+ interface CustomViewConfig extends ViewConfigBase {
997
+ layout: 'custom';
998
+ /** Key in `AdminComponents.viewLayouts`, for example `"guests.seatingChart"`. */
999
+ component: string;
1000
+ /**
1001
+ * Serializable options handed to the component through
1002
+ * `useCollectionView().config.options`. Never put functions here: the config
1003
+ * travels to the admin as JSON.
1004
+ */
1005
+ options?: Record<string, unknown>;
1006
+ /** How the host loads documents for this layout. Defaults to `{ pageSize: 50 }`. */
1007
+ data?: CustomViewDataConfig;
1008
+ }
1009
+ /** Document loading strategy for a custom view. */
1010
+ interface CustomViewDataConfig {
1011
+ /** Documents per page. Defaults to 50, and is capped at 100 by the API. */
1012
+ pageSize?: number;
1013
+ /**
1014
+ * Load every matching document, up to {@link CUSTOM_VIEW_FETCH_ALL_LIMIT}.
1015
+ * Use it for layouts that need the full set (a map, a seating chart). A
1016
+ * visible notice tells the user when the result was truncated.
1017
+ */
1018
+ fetchAll?: boolean;
1019
+ }
1020
+ /** Safety cap on documents loaded when `data.fetchAll` is set. */
1021
+ declare const CUSTOM_VIEW_FETCH_ALL_LIMIT = 1000;
942
1022
  /**
943
1023
  * Complete configuration for a tailored operational view.
944
1024
  */
945
- type ViewConfig = TableViewConfig | KanbanViewConfig | CalendarViewConfig | GanttViewConfig | CardsViewConfig;
1025
+ type ViewConfig = TableViewConfig | KanbanViewConfig | CalendarViewConfig | GanttViewConfig | CardsViewConfig | CustomViewConfig;
946
1026
  /**
947
1027
  * Backwards-compatible aliases for builder types.
948
1028
  */
@@ -952,6 +1032,7 @@ type DefineKanbanViewOptions = KanbanViewConfig;
952
1032
  type DefineCalendarViewOptions = CalendarViewConfig;
953
1033
  type DefineGanttViewOptions = GanttViewConfig;
954
1034
  type DefineCardsViewOptions = CardsViewConfig;
1035
+ type DefineCustomViewOptions = CustomViewConfig;
955
1036
  type DefineViewOptions = ViewConfig;
956
1037
  /**
957
1038
  * Options for defining a custom workflow action with `defineAction`.
@@ -1032,6 +1113,7 @@ declare function defineView(config: DefineKanbanViewOptions): DefineKanbanViewOp
1032
1113
  declare function defineView(config: DefineCalendarViewOptions): DefineCalendarViewOptions;
1033
1114
  declare function defineView(config: DefineGanttViewOptions): DefineGanttViewOptions;
1034
1115
  declare function defineView(config: DefineCardsViewOptions): DefineCardsViewOptions;
1116
+ declare function defineView(config: DefineCustomViewOptions): DefineCustomViewOptions;
1035
1117
  declare function defineView<const T extends DefineViewOptions>(config: T): T;
1036
1118
  /** Convenience helper for table views. Enforces no view-specific required fields. */
1037
1119
  declare function defineTableView(config: DefineTableViewOptions): DefineTableViewOptions;
@@ -1041,6 +1123,8 @@ declare function defineKanbanView(config: DefineKanbanViewOptions): DefineKanban
1041
1123
  declare function defineCalendarView(config: DefineCalendarViewOptions): DefineCalendarViewOptions;
1042
1124
  /** Convenience helper for gantt views. Enforces `startDateField` and `endDateField` are provided. */
1043
1125
  declare function defineGanttView(config: DefineGanttViewOptions): DefineGanttViewOptions;
1126
+ /** Convenience helper for custom-layout views. Enforces `component` is provided. */
1127
+ declare function defineCustomView(config: DefineCustomViewOptions): DefineCustomViewOptions;
1044
1128
  /** Convenience helper for cards views. Optional `groupBy`. */
1045
1129
  declare function defineCardsView(config: DefineCardsViewOptions): DefineCardsViewOptions;
1046
1130
  /**
@@ -1060,6 +1144,73 @@ declare function defineCardsView(config: DefineCardsViewOptions): DefineCardsVie
1060
1144
  */
1061
1145
  declare function defineAction<const T extends DefineActionOptions>(config: T): T;
1062
1146
 
1147
+ interface PageAction {
1148
+ label: string;
1149
+ icon?: AdminIconName | string;
1150
+ onClick?: () => void;
1151
+ disabled?: boolean;
1152
+ variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
1153
+ }
1154
+ interface PageBreadcrumbItem {
1155
+ label: string;
1156
+ to?: string;
1157
+ }
1158
+ interface PageConfig {
1159
+ /** URL slug → /pages/:slug. Lowercase kebab, unique. Optional if defined on workspace. */
1160
+ slug?: string;
1161
+ /** Label shown in the navigation sidebar and default title. Optional if defined on workspace. */
1162
+ label?: string;
1163
+ /** Lucide icon name for navigation. Optional if defined on workspace. */
1164
+ icon?: AdminIconName | string;
1165
+ /** Key in AdminComponents.pages. */
1166
+ component: string;
1167
+ /** Sidebar group. Same semantics as workspace groups. Omitted → ungrouped. */
1168
+ group?: string | NavGroup;
1169
+ /** Relative position: insert immediately after this collection or nav item slug. */
1170
+ after?: string;
1171
+ /** Relative position: insert immediately before this collection or nav item slug. */
1172
+ before?: string;
1173
+ /** Numeric sort weight within its group (lower numbers first, default 100). */
1174
+ order?: number;
1175
+ /** Fast shortcut to pin item to start or end of its group: 'first' | 'last'. */
1176
+ position?: "first" | "last";
1177
+ /** Live badge in navigation. Reuses NavBadgeConfig. */
1178
+ badge?: NavBadgeConfig | string;
1179
+ /**
1180
+ * Declarative UI gating rule controlling navigation visibility and route access.
1181
+ *
1182
+ * IMPORTANT: This is a best-effort client-side UI gate. Pages calling the SDK
1183
+ * or host API must rely on server-side access control for true security.
1184
+ */
1185
+ access?: string[] | AccessRule | {
1186
+ read?: AccessRule<any>;
1187
+ };
1188
+ /**
1189
+ * Layout presentation style.
1190
+ * - 'contained' (default): padded, centered with responsive max-width.
1191
+ * - 'full': edge-to-edge layout without horizontal padding.
1192
+ */
1193
+ layout?: "contained" | "full";
1194
+ /**
1195
+ * Whether to display the admin host header/chrome.
1196
+ * Set to `false` for full custom kiosk interfaces or custom headers.
1197
+ * @default true
1198
+ */
1199
+ chrome?: boolean;
1200
+ /** Serializable options readable via usePageMeta / props. */
1201
+ options?: Record<string, unknown>;
1202
+ }
1203
+ type DefinePageInput = PageConfig & {
1204
+ slug: string;
1205
+ label: string;
1206
+ component: string;
1207
+ };
1208
+ /**
1209
+ * Type-safe helper to define a custom admin page in navigation.
1210
+ * Returns a navigation workspace item configured for the page.
1211
+ */
1212
+ declare function definePage<const T extends DefinePageInput>(config: T): DefineWorkspaceOptions;
1213
+
1063
1214
  /**
1064
1215
  * Definition of a navigation group in the Dyrected admin sidebar.
1065
1216
  */
@@ -1127,11 +1278,13 @@ interface DefineWorkspaceOptions {
1127
1278
  access?: string[] | AccessRule;
1128
1279
  /** Custom internal route or external URL. */
1129
1280
  href?: string;
1281
+ /** References or defines a custom admin page. Can be a PageConfig or component key. */
1282
+ page?: PageConfig | string;
1130
1283
  /** Views belonging to this item. The first view is automatically the default. */
1131
1284
  views?: ViewConfig[];
1132
1285
  }
1133
1286
  /**
1134
- * Helper to define an operational workspace or customize placement of collections/globals.
1287
+ * Helper to define an operational workspace or customize placement of collections/globals/pages.
1135
1288
  *
1136
1289
  * @example
1137
1290
  * ```ts
@@ -1152,7 +1305,7 @@ declare function defineWorkspace(options: DefineWorkspaceOptions): DefineWorkspa
1152
1305
  */
1153
1306
  interface CompiledNavItem {
1154
1307
  id: string;
1155
- type: "workspace" | "collection" | "global" | "dashboard" | "trash" | "link";
1308
+ type: "workspace" | "collection" | "global" | "dashboard" | "trash" | "link" | "page";
1156
1309
  slug: string;
1157
1310
  label: string;
1158
1311
  icon?: string;
@@ -1163,6 +1316,7 @@ interface CompiledNavItem {
1163
1316
  order: number;
1164
1317
  collection?: string;
1165
1318
  global?: string;
1319
+ page?: PageConfig;
1166
1320
  views: ViewConfig[];
1167
1321
  }
1168
1322
  /**
@@ -1185,7 +1339,7 @@ interface CompiledNavTree {
1185
1339
  ungrouped: CompiledNavItem[];
1186
1340
  }
1187
1341
  interface PinnedNavItemRef {
1188
- type: "workspace" | "collection" | "global" | "trash" | "link" | "dashboard";
1342
+ type: "workspace" | "collection" | "global" | "trash" | "link" | "dashboard" | "page";
1189
1343
  slug: string;
1190
1344
  view?: string;
1191
1345
  label?: string;
@@ -1249,6 +1403,8 @@ interface AdminConfig {
1249
1403
  * If omitted, all collections and globals appear in default sections.
1250
1404
  */
1251
1405
  navigation?: DefineWorkspaceOptions[];
1406
+ /** Optional custom landing page slug replacing the dashboard as the root view. */
1407
+ homePage?: string;
1252
1408
  /** Custom component slots around the built-in dashboard. */
1253
1409
  components?: AdminDashboardComponentSlots;
1254
1410
  branding?: {
@@ -2568,7 +2724,9 @@ interface CollectionConfig<TDoc extends object = Record<string, unknown>> {
2568
2724
  description?: string;
2569
2725
  /**
2570
2726
  * Field names included in backend free-text search for this collection.
2571
- * When omitted, Dyrected infers a conservative default from common text-like fields.
2727
+ * When omitted, Dyrected searches `useAsTitle` plus every visible `text`, `textarea`,
2728
+ * `richText`, `email` and `url` field (up to eight), chosen by field type, not name.
2729
+ * Relationship fields are searched only when listed here. Matching is case-insensitive.
2572
2730
  */
2573
2731
  searchableFields?: string[];
2574
2732
  /**
@@ -4506,4 +4664,4 @@ interface DyrectedContext {
4506
4664
  */
4507
4665
  declare function createDyrectedApp(rawConfig: DyrectedConfig | any): Promise<Hono<DyrectedContext, hono_types.BlankSchema, "/">>;
4508
4666
 
4509
- export { type RelationshipField as $, type AdminAuthConfig as A, type Block as B, type CollectionConfig as C, type DyrectedConfig as D, type DetailTab as E, type Field as F, type GlobalConfig as G, type HookRequestContext as H, type DetailTabsOptions as I, type DetailTabs as J, type DetailTextOptions as K, type LifecycleEventName as L, type DetailText as M, type DetailSchema as N, type DyrectedContext as O, type PublicAdminAuthConfig as P, type AIConfig as Q, type AIPIIConfig as R, type IdStrategy as S, type TaskRunResult as T, type CompiledNavTree as U, type CompiledNavItem as V, type WorkflowConfig as W, type UserNavigationPreferences as X, type DefineWorkspaceOptions as Y, type ViewConfig as Z, type DateTimeField as _, type DeclarativeHookExpression as a, type AggregateArgs as a$, type SelectField as a0, type ArrayField as a1, type FieldType as a2, type BooleanField as a3, type AuthConfig as a4, type AccessPolicyResolver as a5, type DateField as a6, type TextField as a7, type EmailField as a8, type IconField as a9, AI_ACTIONS_COLLECTION as aA, AI_AUDIT_COLLECTION as aB, AI_CHUNKS_COLLECTION as aC, AI_MESSAGES_COLLECTION as aD, AI_THREADS_COLLECTION as aE, type AccessConfig as aF, type AccessFunction as aG, type AccessFunctionArgs as aH, type AccessResult as aI, type AccessRule as aJ, type ActionConfig as aK, type ActionConfigBase as aL, type ActionConfigWithHandler as aM, type ActionConfigWithMutation as aN, type ActionContext as aO, type ActionType as aP, type AdminAuthAccessResolution as aQ, type AdminAuthClaimMapping as aR, type AdminAuthMember as aS, type AdminAuthProvider as aT, type AdminAuthProviderMembersConfig as aU, type AdminAuthProvisioningMode as aV, type AdminAuthResolveAccessArgs as aW, type AdminAuthResolvedIdentity as aX, type AdminConfig as aY, type AdminDashboardComponentSlots as aZ, type AdminIconName as a_, type ImageField as aa, type JoinField as ab, type JsonField as ac, type MoneyField as ad, type MultiSelectField as ae, type NumberField as af, type ObjectField as ag, type RadioField as ah, type RichTextField as ai, type RowField as aj, type TextareaField as ak, type TimeField as al, type UrlField as am, type AIAction as an, type AIActionStatus as ao, type AIActionType as ap, type AIAuditActionType as aq, type AIAuditRecord as ar, type AIChunk as as, type AIMessage as at, type AIPIIPattern as au, type AIRateLimitResult as av, type AIRateLimitStore as aw, type AIThread as ax, type AIToolContext as ay, type AIToolDefinition as az, type AuthenticatedUser as b, type DynamicOptionsResolverArgs as b$, type AggregateCastType as b0, type AggregateCollectionResult as b1, type AggregateInput as b2, type AggregateOperation as b3, type AggregateResult as b4, type AppTrashConfig as b5, type BaseAdminAuthProvider as b6, type BaseFieldAdmin as b7, type BlockVariant as b8, type BlocksField as b9, type CollectionRAGConfig as bA, type CollectionSchemaResult as bB, type CollectionSummaryResult as bC, type CollectionViewComponentSlots as bD, type CompiledNavGroup as bE, type CountOperation as bF, type CustomAdminAuthProvider as bG, DEFAULT_USER_NAV_PREFERENCES as bH, type DateFieldAdmin as bI, type DateFormat as bJ, type DefaultValueContext as bK, type DefineActionOptions as bL, type DefineCalendarViewOptions as bM, type DefineCardsViewOptions as bN, type DefineGanttViewOptions as bO, type DefineKanbanViewOptions as bP, type DefineTableViewOptions as bQ, type DefineViewBaseOptions as bR, type DefineViewOptions as bS, type DetailSpan as bT, type DisplayTone as bU, type DisplayVariant as bV, type DistinctCountOperation as bW, type DistinctValuesOperation as bX, type DynamicOptionItem as bY, type DynamicOptionsConfig as bZ, type DynamicOptionsResolver as b_, type BooleanFieldAdmin as ba, type BooleanFormat as bb, CURRENT_NAV_PREFERENCES_VERSION as bc, type CalendarViewConfig as bd, type CardsViewConfig as be, type CharacterLimitFieldAdmin as bf, type CharacterLimitFieldConfig as bg, type CollectionAfterChangeHook as bh, type CollectionAfterDeleteHook as bi, type CollectionAfterReadHook as bj, type CollectionAfterReadHookEntry as bk, type CollectionAfterRestoreHook as bl, type CollectionAfterTransitionHook as bm, type CollectionAfterTrashHook as bn, type CollectionBeforeChangeHook as bo, type CollectionBeforeChangeHookEntry as bp, type CollectionBeforeCommitHook as bq, type CollectionBeforeDeleteHook as br, type CollectionBeforeReadHook as bs, type CollectionBeforeReadHookEntry as bt, type CollectionBeforeRestoreHook as bu, type CollectionBeforeTransitionHook as bv, type CollectionBeforeTrashHook as bw, type CollectionEmailConfig as bx, type CollectionIndex as by, type CollectionListComponentSlots as bz, type WorkflowTransition as c, type PublicAdminAuthProvider as c$, type DyrectedAIContext as c0, type DyrectedLoggerConfig as c1, type DyrectedObservabilityConfig as c2, type EmailFieldAdmin as c3, type EmailTemplateArgs as c4, type EmailTemplateResult as c5, type FieldAdminHooks as c6, type FieldAdminOnChangeHook as c7, type FieldAdminOnChangeHookArgs as c8, type FieldAdminOptionsHook as c9, type ImageTransformOptions as cA, type InferAggregateResult as cB, type JoinFieldAdmin as cC, type JsonFieldAdmin as cD, type JsonFormat as cE, type KanbanViewConfig as cF, LIFECYCLE_EVENT_NAMES as cG, type LifecycleEventHandler as cH, type LinkFormat as cI, type MetricColor as cJ, type MoneyFieldAdmin as cK, type MoneyFieldConfig as cL, type MultiSelectFieldAdmin as cM, type NamedAccessPolicy as cN, type NavBadgeConfig as cO, type NavGroup as cP, type NumberFieldAdmin as cQ, type NumberFormat as cR, type NumberLimitFieldAdmin as cS, type NumberLimitFieldConfig as cT, type NumericOperation as cU, type NumericUpdateOperator as cV, type OIDCAdminAuthProvider as cW, type OptionFormat as cX, type OutboundEmail as cY, type PaginatedResult as cZ, type PinnedNavItemRef as c_, type FieldAdminOptionsHookArgs as ca, type FieldAdminOptionsHookResult as cb, type FieldAfterReadHook as cc, type FieldAfterReadHookArgs as cd, type FieldBase as ce, type FieldBeforeChangeHook as cf, type FieldBeforeChangeHookArgs as cg, type FieldHook as ch, type FieldHooks as ci, type FileData as cj, type GanttViewConfig as ck, type GetDocumentResult as cl, type GlobalAfterChangeHook as cm, type GlobalAfterReadHook as cn, type GlobalAfterReadHookEntry as co, type GlobalBeforeChangeHook as cp, type GlobalBeforeChangeHookEntry as cq, type GlobalBeforeReadHook as cr, type GlobalBeforeReadHookEntry as cs, type GlobalRAGConfig as ct, type GlobalSchemaResult as cu, type GlobalSummaryResult as cv, type HeadingLevel as cw, type HookFunction as cx, type IconFieldAdmin as cy, type ImageService as cz, type LifecycleEvent as d, attachRequestMetrics as d$, type QueryCollectionResult as d0, type RAGSearchResult as d1, type RadioFieldAdmin as d2, type RateLimitConfig as d3, type ReadonlyDatabaseAdapter as d4, type RichTextFeature as d5, type RichTextFieldConfig as d6, type SelectFieldAdmin as d7, type SqlWhereResult as d8, type StorageAdapter as d9, type WordLimitFieldConfig as dA, type WorkflowMetadata as dB, type WorkflowOnTransitionContext as dC, type WorkflowOnTransitionHook as dD, type WorkflowRole as dE, type WorkflowState as dF, type WorkflowTransitionContext as dG, coerceBooleanWhere as dH, defineAction as dI, defineCalendarView as dJ, defineCardsView as dK, defineGanttView as dL, defineKanbanView as dM, defineTableView as dN, defineView as dO, defineWorkspace as dP, isAICollection as dQ, parseMongoWhere as dR, parseSqlWhere as dS, type CollectionTokenPayload as dT, DEFAULT_INVITE_EXPIRY as dU, DEFAULT_RESET_PASSWORD_EXPIRY as dV, DEFAULT_SESSION_EXPIRY as dW, type DyrectedObservabilityRuntime as dX, type RequestBodyCapture as dY, type RequestTraceContext as dZ, type ResolvedObservabilityConfig as d_, type TableViewConfig as da, type TaskContext as db, type TaskLogger as dc, type TaskRunStatus as dd, type TextFieldAdmin as de, type TextFormat as df, type TextareaFieldAdmin as dg, type TrashConfig as dh, type TrustProxyConfig as di, type TypedField as dj, type UploadConfig as dk, type UrlFieldAdmin as dl, type UrlLinkValue as dm, type ViewActionFeatures as dn, type ViewComponentSlots as dp, type ViewConfigBase as dq, type ViewLayout as dr, type ViewMetric as ds, type ViewMetricGroupBy as dt, type ViewMetricGroupByConfig as du, type ViewSubMetric as dv, type WhereClause as dw, type WhereOperator as dx, type WhereOperatorName as dy, type WordLimitFieldAdmin as dz, type DatabaseAdapter as e, bindObservabilityRuntime as e0, buildRequestLogger as e1, captureRequestBody as e2, createDyrectedApp as e3, createObservabilityRuntime as e4, createRequestSpan as e5, decodeCollectionToken as e6, endRequestSpan as e7, getConfigLogger as e8, getObservabilityRuntime as e9, getRequestLogger as ea, redactBody as eb, redactHeaders as ec, renderPrometheusMetrics as ed, resolveInviteTokenExpiry as ee, resolveObservabilityConfig as ef, resolveResetPasswordTokenExpiry as eg, resolveSessionTokenExpiry as eh, shouldSampleRequest as ei, signCollectionToken as ej, verifyCollectionToken as ek, type BaseDocument as f, type TaskConfig as g, type DetailActionOptions as h, type DetailAction as i, type DetailComputedOptions as j, type ComputedHandler as k, type DetailComputed as l, type DetailCustomOptions as m, type DetailCustom as n, type DetailDividerOptions as o, type DetailDivider as p, type DisplayFieldOptions as q, type DetailField as r, type DetailItem as s, type DetailGridOptions as t, type DetailGrid as u, type DetailRepeatOptions as v, type DetailRepeat as w, type DetailSectionOptions as x, type DetailSection as y, type DetailTabOptions as z };
4667
+ export { type RelationshipField as $, type AdminAuthConfig as A, type Block as B, type CollectionConfig as C, type DyrectedConfig as D, type DetailTab as E, type Field as F, type GlobalConfig as G, type HookRequestContext as H, type DetailTabsOptions as I, type DetailTabs as J, type DetailTextOptions as K, type LifecycleEventName as L, type DetailText as M, type DetailSchema as N, type DyrectedContext as O, type PublicAdminAuthConfig as P, type AIConfig as Q, type AIPIIConfig as R, type IdStrategy as S, type TaskRunResult as T, type CompiledNavTree as U, type CompiledNavItem as V, type WorkflowConfig as W, type UserNavigationPreferences as X, type DefineWorkspaceOptions as Y, type ViewConfig as Z, type DateTimeField as _, type DeclarativeHookExpression as a, type AggregateArgs as a$, type SelectField as a0, type ArrayField as a1, type FieldType as a2, type BooleanField as a3, type AuthConfig as a4, type AccessPolicyResolver as a5, type DateField as a6, type TextField as a7, type EmailField as a8, type IconField as a9, AI_ACTIONS_COLLECTION as aA, AI_AUDIT_COLLECTION as aB, AI_CHUNKS_COLLECTION as aC, AI_MESSAGES_COLLECTION as aD, AI_THREADS_COLLECTION as aE, type AccessConfig as aF, type AccessFunction as aG, type AccessFunctionArgs as aH, type AccessResult as aI, type AccessRule as aJ, type ActionConfig as aK, type ActionConfigBase as aL, type ActionConfigWithHandler as aM, type ActionConfigWithMutation as aN, type ActionContext as aO, type ActionType as aP, type AdminAuthAccessResolution as aQ, type AdminAuthClaimMapping as aR, type AdminAuthMember as aS, type AdminAuthProvider as aT, type AdminAuthProviderMembersConfig as aU, type AdminAuthProvisioningMode as aV, type AdminAuthResolveAccessArgs as aW, type AdminAuthResolvedIdentity as aX, type AdminConfig as aY, type AdminDashboardComponentSlots as aZ, type AdminIconName as a_, type ImageField as aa, type JoinField as ab, type JsonField as ac, type MoneyField as ad, type MultiSelectField as ae, type NumberField as af, type ObjectField as ag, type RadioField as ah, type RichTextField as ai, type RowField as aj, type TextareaField as ak, type TimeField as al, type UrlField as am, type AIAction as an, type AIActionStatus as ao, type AIActionType as ap, type AIAuditActionType as aq, type AIAuditRecord as ar, type AIChunk as as, type AIMessage as at, type AIPIIPattern as au, type AIRateLimitResult as av, type AIRateLimitStore as aw, type AIThread as ax, type AIToolContext as ay, type AIToolDefinition as az, type AuthenticatedUser as b, type DistinctCountOperation as b$, type AggregateCastType as b0, type AggregateCollectionResult as b1, type AggregateInput as b2, type AggregateOperation as b3, type AggregateResult as b4, type AppTrashConfig as b5, type BaseAdminAuthProvider as b6, type BaseFieldAdmin as b7, type BlockVariant as b8, type BlocksField as b9, type CollectionListComponentSlots as bA, type CollectionRAGConfig as bB, type CollectionSchemaResult as bC, type CollectionSummaryResult as bD, type CollectionViewComponentSlots as bE, type CompiledNavGroup as bF, type CountOperation as bG, type CustomAdminAuthProvider as bH, type CustomViewConfig as bI, type CustomViewDataConfig as bJ, DEFAULT_USER_NAV_PREFERENCES as bK, type DateFieldAdmin as bL, type DateFormat as bM, type DefaultValueContext as bN, type DefineActionOptions as bO, type DefineCalendarViewOptions as bP, type DefineCardsViewOptions as bQ, type DefineCustomViewOptions as bR, type DefineGanttViewOptions as bS, type DefineKanbanViewOptions as bT, type DefinePageInput as bU, type DefineTableViewOptions as bV, type DefineViewBaseOptions as bW, type DefineViewOptions as bX, type DetailSpan as bY, type DisplayTone as bZ, type DisplayVariant as b_, type BooleanFieldAdmin as ba, type BooleanFormat as bb, CURRENT_NAV_PREFERENCES_VERSION as bc, CUSTOM_VIEW_FETCH_ALL_LIMIT as bd, type CalendarViewConfig as be, type CardsViewConfig as bf, type CharacterLimitFieldAdmin as bg, type CharacterLimitFieldConfig as bh, type CollectionAfterChangeHook as bi, type CollectionAfterDeleteHook as bj, type CollectionAfterReadHook as bk, type CollectionAfterReadHookEntry as bl, type CollectionAfterRestoreHook as bm, type CollectionAfterTransitionHook as bn, type CollectionAfterTrashHook as bo, type CollectionBeforeChangeHook as bp, type CollectionBeforeChangeHookEntry as bq, type CollectionBeforeCommitHook as br, type CollectionBeforeDeleteHook as bs, type CollectionBeforeReadHook as bt, type CollectionBeforeReadHookEntry as bu, type CollectionBeforeRestoreHook as bv, type CollectionBeforeTransitionHook as bw, type CollectionBeforeTrashHook as bx, type CollectionEmailConfig as by, type CollectionIndex as bz, type WorkflowTransition as c, type OIDCAdminAuthProvider as c$, type DistinctValuesOperation as c0, type DynamicOptionItem as c1, type DynamicOptionsConfig as c2, type DynamicOptionsResolver as c3, type DynamicOptionsResolverArgs as c4, type DyrectedAIContext as c5, type DyrectedLoggerConfig as c6, type DyrectedObservabilityConfig as c7, type EmailFieldAdmin as c8, type EmailTemplateArgs as c9, type GlobalSummaryResult as cA, type HeadingLevel as cB, type HookFunction as cC, type IconFieldAdmin as cD, type ImageService as cE, type ImageTransformOptions as cF, type InferAggregateResult as cG, type JoinFieldAdmin as cH, type JsonFieldAdmin as cI, type JsonFormat as cJ, type KanbanViewConfig as cK, LIFECYCLE_EVENT_NAMES as cL, type LifecycleEventHandler as cM, type LinkFormat as cN, type MetricColor as cO, type MoneyFieldAdmin as cP, type MoneyFieldConfig as cQ, type MultiSelectFieldAdmin as cR, type NamedAccessPolicy as cS, type NavBadgeConfig as cT, type NavGroup as cU, type NumberFieldAdmin as cV, type NumberFormat as cW, type NumberLimitFieldAdmin as cX, type NumberLimitFieldConfig as cY, type NumericOperation as cZ, type NumericUpdateOperator as c_, type EmailTemplateResult as ca, type FieldAdminHooks as cb, type FieldAdminOnChangeHook as cc, type FieldAdminOnChangeHookArgs as cd, type FieldAdminOptionsHook as ce, type FieldAdminOptionsHookArgs as cf, type FieldAdminOptionsHookResult as cg, type FieldAfterReadHook as ch, type FieldAfterReadHookArgs as ci, type FieldBase as cj, type FieldBeforeChangeHook as ck, type FieldBeforeChangeHookArgs as cl, type FieldHook as cm, type FieldHooks as cn, type FileData as co, type GanttViewConfig as cp, type GetDocumentResult as cq, type GlobalAfterChangeHook as cr, type GlobalAfterReadHook as cs, type GlobalAfterReadHookEntry as ct, type GlobalBeforeChangeHook as cu, type GlobalBeforeChangeHookEntry as cv, type GlobalBeforeReadHook as cw, type GlobalBeforeReadHookEntry as cx, type GlobalRAGConfig as cy, type GlobalSchemaResult as cz, type LifecycleEvent as d, isAICollection as d$, type OptionFormat as d0, type OutboundEmail as d1, type PageAction as d2, type PageBreadcrumbItem as d3, type PageConfig as d4, type PaginatedResult as d5, type PinnedNavItemRef as d6, type PublicAdminAuthProvider as d7, type QueryCollectionResult as d8, type RAGSearchResult as d9, type ViewMetric as dA, type ViewMetricGroupBy as dB, type ViewMetricGroupByConfig as dC, type ViewMetricTrendConfig as dD, type ViewSubMetric as dE, type WhereClause as dF, type WhereOperator as dG, type WhereOperatorName as dH, type WordLimitFieldAdmin as dI, type WordLimitFieldConfig as dJ, type WorkflowMetadata as dK, type WorkflowOnTransitionContext as dL, type WorkflowOnTransitionHook as dM, type WorkflowRole as dN, type WorkflowState as dO, type WorkflowTransitionContext as dP, coerceBooleanWhere as dQ, defineAction as dR, defineCalendarView as dS, defineCardsView as dT, defineCustomView as dU, defineGanttView as dV, defineKanbanView as dW, definePage as dX, defineTableView as dY, defineView as dZ, defineWorkspace as d_, type RadioFieldAdmin as da, type RateLimitConfig as db, type ReadonlyDatabaseAdapter as dc, type RichTextFeature as dd, type RichTextFieldConfig as de, type SelectFieldAdmin as df, type SqlWhereResult as dg, type StorageAdapter as dh, type TableViewConfig as di, type TaskContext as dj, type TaskLogger as dk, type TaskRunStatus as dl, type TextFieldAdmin as dm, type TextFormat as dn, type TextareaFieldAdmin as dp, type TrashConfig as dq, type TrustProxyConfig as dr, type TypedField as ds, type UploadConfig as dt, type UrlFieldAdmin as du, type UrlLinkValue as dv, type ViewActionFeatures as dw, type ViewComponentSlots as dx, type ViewConfigBase as dy, type ViewLayout as dz, type DatabaseAdapter as e, parseMongoWhere as e0, parseSqlWhere as e1, type CollectionTokenPayload as e2, DEFAULT_INVITE_EXPIRY as e3, DEFAULT_RESET_PASSWORD_EXPIRY as e4, DEFAULT_SESSION_EXPIRY as e5, type DyrectedObservabilityRuntime as e6, type RequestBodyCapture as e7, type RequestTraceContext as e8, type ResolvedObservabilityConfig as e9, attachRequestMetrics as ea, bindObservabilityRuntime as eb, buildRequestLogger as ec, captureRequestBody as ed, createDyrectedApp as ee, createObservabilityRuntime as ef, createRequestSpan as eg, decodeCollectionToken as eh, endRequestSpan as ei, getConfigLogger as ej, getObservabilityRuntime as ek, getRequestLogger as el, redactBody as em, redactHeaders as en, renderPrometheusMetrics as eo, resolveInviteTokenExpiry as ep, resolveObservabilityConfig as eq, resolveResetPasswordTokenExpiry as er, resolveSessionTokenExpiry as es, shouldSampleRequest as et, signCollectionToken as eu, verifyCollectionToken as ev, type BaseDocument as f, type TaskConfig as g, type DetailActionOptions as h, type DetailAction as i, type DetailComputedOptions as j, type ComputedHandler as k, type DetailComputed as l, type DetailCustomOptions as m, type DetailCustom as n, type DetailDividerOptions as o, type DetailDivider as p, type DisplayFieldOptions as q, type DetailField as r, type DetailItem as s, type DetailGridOptions as t, type DetailGrid as u, type DetailRepeatOptions as v, type DetailRepeat as w, type DetailSectionOptions as x, type DetailSection as y, type DetailTabOptions as z };