@donotdev/core 0.2.2 → 0.2.3

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.
Files changed (59) hide show
  1. package/functions/index.js +13 -13
  2. package/i18n/locales/eager/dndev_ar.json +4 -0
  3. package/i18n/locales/eager/dndev_da.json +4 -0
  4. package/i18n/locales/eager/dndev_de.json +4 -0
  5. package/i18n/locales/eager/dndev_en.json +4 -0
  6. package/i18n/locales/eager/dndev_es.json +4 -0
  7. package/i18n/locales/eager/dndev_fr.json +4 -0
  8. package/i18n/locales/eager/dndev_it.json +4 -0
  9. package/i18n/locales/eager/dndev_ja.json +4 -0
  10. package/i18n/locales/eager/dndev_ko.json +4 -0
  11. package/i18n/locales/eager/dndev_nl.json +4 -0
  12. package/i18n/locales/eager/dndev_pl.json +636 -0
  13. package/i18n/locales/eager/dndev_pt.json +4 -0
  14. package/i18n/locales/eager/dndev_zh.json +4 -0
  15. package/i18n/locales/lazy/auth_ar.json +5 -2
  16. package/i18n/locales/lazy/auth_da.json +5 -2
  17. package/i18n/locales/lazy/auth_de.json +5 -2
  18. package/i18n/locales/lazy/auth_en.json +5 -2
  19. package/i18n/locales/lazy/auth_es.json +5 -2
  20. package/i18n/locales/lazy/auth_fr.json +5 -2
  21. package/i18n/locales/lazy/auth_it.json +5 -2
  22. package/i18n/locales/lazy/auth_ja.json +5 -2
  23. package/i18n/locales/lazy/auth_ko.json +5 -2
  24. package/i18n/locales/lazy/auth_nl.json +5 -2
  25. package/i18n/locales/lazy/auth_pl.json +195 -0
  26. package/i18n/locales/lazy/auth_pt.json +5 -2
  27. package/i18n/locales/lazy/auth_zh.json +5 -2
  28. package/i18n/locales/lazy/billing_pl.json +93 -0
  29. package/i18n/locales/lazy/blog_pl.json +9 -0
  30. package/i18n/locales/lazy/cookies_pl.json +35 -0
  31. package/i18n/locales/lazy/crud_ar.json +40 -3
  32. package/i18n/locales/lazy/crud_da.json +39 -4
  33. package/i18n/locales/lazy/crud_de.json +40 -3
  34. package/i18n/locales/lazy/crud_en.json +38 -4
  35. package/i18n/locales/lazy/crud_es.json +40 -3
  36. package/i18n/locales/lazy/crud_fr.json +39 -3
  37. package/i18n/locales/lazy/crud_it.json +40 -3
  38. package/i18n/locales/lazy/crud_ja.json +40 -3
  39. package/i18n/locales/lazy/crud_ko.json +40 -3
  40. package/i18n/locales/lazy/crud_nl.json +39 -4
  41. package/i18n/locales/lazy/crud_pl.json +582 -0
  42. package/i18n/locales/lazy/crud_pt.json +39 -4
  43. package/i18n/locales/lazy/crud_zh.json +39 -4
  44. package/i18n/locales/lazy/homeTemplate_pl.json +52 -0
  45. package/i18n/locales/lazy/legalNotice_de.json +55 -0
  46. package/i18n/locales/lazy/legalNotice_pl.json +55 -0
  47. package/i18n/locales/lazy/oauth_pl.json +11 -0
  48. package/i18n/locales/lazy/privacy_pl.json +178 -0
  49. package/i18n/locales/lazy/terms_pl.json +200 -0
  50. package/index.d.ts +881 -60
  51. package/index.js +6 -6
  52. package/next/index.d.ts +129 -4
  53. package/next/index.js +527 -152
  54. package/next/runtime.js +3 -0
  55. package/package.json +5 -3
  56. package/server.d.ts +744 -41
  57. package/server.js +1 -1
  58. package/symbol-index.json +1 -1
  59. package/vite/index.js +68 -68
package/server.d.ts CHANGED
@@ -3213,6 +3213,22 @@ interface PageMeta {
3213
3213
  * ```
3214
3214
  */
3215
3215
  hideFromMenu?: boolean;
3216
+ /**
3217
+ * Signed-in visitors of this page are sent to this path (e.g. a landing page whose
3218
+ * members work from `/catalogue`). A same-site app path (`/x`), never the page itself.
3219
+ * @description Next + Supabase cookie session: the generated proxy redirects before
3220
+ * render (no flash). Every app: the page renders inside `SignedInRedirect`, which
3221
+ * navigates (replace) once the user is known, for sign-ins on the page itself and
3222
+ * sessions the server cannot read. A pending return-to (`?returnTo=` or the saved
3223
+ * `dndev.auth.returnTo`) skips the redirect.
3224
+ * @example
3225
+ * ```tsx
3226
+ * export const meta: PageMeta = {
3227
+ * signedInRedirect: '/catalogue',
3228
+ * };
3229
+ * ```
3230
+ */
3231
+ signedInRedirect?: string;
3216
3232
  /**
3217
3233
  * Hide breadcrumbs on this page (default: false)
3218
3234
  * @description Set to true to hide framework breadcrumbs on this route
@@ -4673,7 +4689,7 @@ declare function validateStripeBackConfig(config: unknown): {
4673
4689
  } | {
4674
4690
  mode: "automatic";
4675
4691
  };
4676
- taxIdCollection: "optional" | "disabled" | "required";
4692
+ taxIdCollection: "optional" | "required" | "disabled";
4677
4693
  billingAddressCollection: "required" | "auto";
4678
4694
  shipping?: {
4679
4695
  allowedCountries: string[];
@@ -5509,6 +5525,13 @@ interface ResolvedLineItem {
5509
5525
  /** Unit price excl. VAT, in the smallest currency unit (cents) */
5510
5526
  unitAmount: number;
5511
5527
  quantity: number;
5528
+ /**
5529
+ * Automatic tax only: Stripe tax code of this line (`price_data.product_data.tax_code`),
5530
+ * e.g. `txcd_92010001` for a shipping line sent as an order line. Omit to use the
5531
+ * account's default product tax code.
5532
+ * @since 0.2.3
5533
+ */
5534
+ taxCode?: string;
5512
5535
  }
5513
5536
  /**
5514
5537
  * Output of `resolveLineItems`: the server-side order and its priced lines.
@@ -5544,6 +5567,15 @@ interface ResolvedOrderSession {
5544
5567
  expiresAt?: number;
5545
5568
  /** Footer printed on the post-payment invoice (e.g. a legal mention). Needs `invoiceCreation`. */
5546
5569
  invoiceFooter?: string;
5570
+ /**
5571
+ * Existing Stripe Customer ID (`cus_...`) the session is created for. Its tax IDs and
5572
+ * address then drive Stripe Tax and the invoice. Replaces `customer_email` and
5573
+ * `customerCreation` (Stripe only applies those when it creates a Customer). Checkout
5574
+ * updates the Customer from the session: address under automatic tax, shipping when
5575
+ * shipping is collected, name when tax ID collection is enabled (Stripe requirement).
5576
+ * @since 0.2.3
5577
+ */
5578
+ customerId?: string;
5547
5579
  }
5548
5580
  /**
5549
5581
  * Context passed to `resolveLineItems`.
@@ -5651,6 +5683,48 @@ interface OrderHookContext {
5651
5683
  */
5652
5684
  eventId: string;
5653
5685
  }
5686
+ /**
5687
+ * Provider-neutral snapshot of a Stripe customer tax ID (`customer.tax_id.updated`).
5688
+ *
5689
+ * @version 0.2.0
5690
+ * @since 0.2.3
5691
+ * @author AMBROISE PARK Consulting
5692
+ */
5693
+ interface TaxIdSnapshot {
5694
+ /** Stripe TaxId ID (`txi_...`) */
5695
+ id: string;
5696
+ /** Stripe Customer ID (`cus_...`) owning the tax ID, null when not owned by a Customer */
5697
+ customerId: string | null;
5698
+ /** Stripe tax ID type, e.g. `eu_vat` */
5699
+ type: string;
5700
+ /** Tax ID value, e.g. `DE123456789` */
5701
+ value: string;
5702
+ /** ISO 3166-1 alpha-2 country of the tax ID */
5703
+ country: string | null;
5704
+ /** Government verification (null when Stripe does not verify this type) */
5705
+ verification: {
5706
+ /** 'pending' | 'verified' | 'unverified' | 'unavailable' */
5707
+ status: 'pending' | 'verified' | 'unverified' | 'unavailable';
5708
+ verifiedName: string | null;
5709
+ verifiedAddress: string | null;
5710
+ } | null;
5711
+ }
5712
+ /**
5713
+ * Context passed to `onTaxIdUpdated`.
5714
+ *
5715
+ * @version 0.2.0
5716
+ * @since 0.2.3
5717
+ * @author AMBROISE PARK Consulting
5718
+ */
5719
+ interface TaxIdHookContext {
5720
+ /** Back config key of the StripeOrder item whose hook runs */
5721
+ billingConfigKey: string;
5722
+ /**
5723
+ * Stripe event ID. Delivery is at-least-once: key side effects on `taxId.id` +
5724
+ * `verification.status` (or `eventId`) so a replay is a no-op.
5725
+ */
5726
+ eventId: string;
5727
+ }
5654
5728
  /**
5655
5729
  * Client checkout options (useStripeBilling `checkout`).
5656
5730
  *
@@ -5787,6 +5861,16 @@ type StripeOrderBackItem = Extract<StripeBackConfigItemData, {
5787
5861
  onOrderPaymentFailed?: (session: CheckoutSessionSnapshot, ctx: OrderHookContext) => Promise<void>;
5788
5862
  /** Checkout session expired without payment. */
5789
5863
  onOrderExpired?: (session: CheckoutSessionSnapshot, ctx: OrderHookContext) => Promise<void>;
5864
+ /**
5865
+ * Stripe event `customer.tax_id.updated` (e.g. government verification finished:
5866
+ * `taxId.verification.status` became `verified` / `unverified` / `unavailable`).
5867
+ * Not tied to an order: it runs once per event for every StripeOrder item that
5868
+ * defines it (one function shared by several items runs once). Errors propagate:
5869
+ * the webhook answers non-2xx and Stripe retries. Subscribe the webhook endpoint
5870
+ * to `customer.tax_id.updated`.
5871
+ * @since 0.2.3
5872
+ */
5873
+ onTaxIdUpdated?: (taxId: TaxIdSnapshot, ctx: TaxIdHookContext) => Promise<void>;
5790
5874
  };
5791
5875
  /**
5792
5876
  * Backend billing configuration type with hooks
@@ -6630,7 +6714,14 @@ interface AuthProvider {
6630
6714
  * Used to build the redirect URL in password reset emails.
6631
6715
  */
6632
6716
  getPasswordResetRedirectUrl?(): string;
6633
- sendEmailVerification(): Promise<void>;
6717
+ /**
6718
+ * Send (again) the address-confirmation email.
6719
+ *
6720
+ * @param email - Address to confirm. Needed when nobody is signed in (sign-up with
6721
+ * email confirmation leaves no session); providers that can only resend to the
6722
+ * signed-in user ignore it.
6723
+ */
6724
+ sendEmailVerification(email?: string): Promise<void>;
6634
6725
  sendSignInLinkToEmail(email: string, actionCodeSettings?: {
6635
6726
  url: string;
6636
6727
  handleCodeInApp: boolean;
@@ -6645,14 +6736,19 @@ interface AuthProvider {
6645
6736
  reauthenticateWithProvider(partnerId: AuthPartnerId, method?: AuthMethod): Promise<void>;
6646
6737
  deleteAccount(password?: string): Promise<void>;
6647
6738
  /**
6648
- * Set session persistence (remember me).
6739
+ * Set session persistence (remember me) for the next sign-in.
6649
6740
  * Provider-specific: Firebase uses browserLocal/browserSession persistence,
6650
- * Supabase uses cookie duration, etc.
6651
- * No-op if the provider doesn't support persistence control.
6741
+ * Supabase uses persistent or session cookies.
6742
+ * Throws when this provider instance cannot honour it (see `supportsRememberMe`).
6652
6743
  *
6653
6744
  * @param remember - true for persistent session, false for session-only
6654
6745
  */
6655
6746
  setRememberMe?(remember: boolean): Promise<void>;
6747
+ /**
6748
+ * Whether `setRememberMe` works on this instance (e.g. Supabase only with the cookie
6749
+ * client). Omitted = it works whenever `setRememberMe` exists.
6750
+ */
6751
+ supportsRememberMe?(): boolean;
6656
6752
  /**
6657
6753
  * Signed-in state read synchronously from the request cookies, without the auth
6658
6754
  * service. Lets the server render, and the client's hydration pass, show the real
@@ -6755,7 +6851,7 @@ interface AuthAPI {
6755
6851
  updatePassword: (newPassword: string) => Promise<void>;
6756
6852
  verifyPasswordResetCode: (code: string) => Promise<string | null>;
6757
6853
  confirmPasswordReset: (code: string, newPassword: string) => Promise<void>;
6758
- sendEmailVerification: () => Promise<void>;
6854
+ sendEmailVerification: (email?: string) => Promise<void>;
6759
6855
  getEmailVerificationStatus: () => Promise<{
6760
6856
  status: string;
6761
6857
  }>;
@@ -6767,7 +6863,10 @@ interface AuthAPI {
6767
6863
  reauthenticateWithPassword: (password: string) => Promise<void>;
6768
6864
  reauthenticateWithProvider: (partnerId: AuthPartnerId, method?: AuthMethod) => Promise<void>;
6769
6865
  deleteAccount: (password?: string) => Promise<void>;
6866
+ /** Choose persistent vs session-only for the next sign-in. Throws when unsupported. */
6770
6867
  setRememberMe: (remember: boolean) => Promise<void>;
6868
+ /** Whether the provider can honour `setRememberMe` (render the checkbox only then). */
6869
+ canRememberMe: () => boolean;
6771
6870
  isAuthenticated: boolean;
6772
6871
  userRole: string;
6773
6872
  userTier: string;
@@ -7647,7 +7746,17 @@ interface EntityField<T extends string = FieldType> {
7647
7746
  editable?: Editable;
7648
7747
  /** Validation rules for this field. For select/multiselect/radio fields, include `options` array here. */
7649
7748
  validation?: ValidationRules<T>;
7650
- /** Whether the field is internationalized */
7749
+ /**
7750
+ * Translated field (types: text, textarea, richtext, field-array).
7751
+ * The field keeps the default language; the other languages live in the companion
7752
+ * field `<name>I18n` (`{ en: '…', de: '…' }`, Supabase column `<name>_i18n jsonb`).
7753
+ * `useCrudDoc`, `useCrudList` and `useCrudCardList` return the current language,
7754
+ * falling back to the default-language value when a translation is missing or empty.
7755
+ * Edit forms read with `translate: false` so they never save a translation as the
7756
+ * default-language value.
7757
+ *
7758
+ * @since 0.2.3
7759
+ */
7651
7760
  i18n?: boolean;
7652
7761
  /** Display label for the field */
7653
7762
  label: string;
@@ -7751,6 +7860,10 @@ type EntityFieldMapDefault = Record<string, EntityField> & BaseEntityFields;
7751
7860
  */
7752
7861
  type EntityRowFromFields<F extends Record<string, EntityField>> = {
7753
7862
  [K in keyof F]: F[K] extends EntityField<infer FT> ? FT extends keyof FieldTypeToValue ? FieldTypeToValue[FT] : unknown : unknown;
7863
+ } & {
7864
+ [K in keyof F as F[K] extends {
7865
+ i18n: true;
7866
+ } ? `${K & string}I18n` : never]?: F[K] extends EntityField<infer FT> ? FT extends keyof FieldTypeToValue ? Partial<Record<string, FieldTypeToValue[FT]>> | null : unknown : unknown;
7754
7867
  } & Record<string, unknown>;
7755
7868
  /**
7756
7869
  * Unique key constraint definition for entity deduplication
@@ -7901,6 +8014,42 @@ interface ListCardLayout {
7901
8014
  /** Fields rendered in the card footer */
7902
8015
  footer?: string[];
7903
8016
  }
8017
+ /**
8018
+ * schema.org `ItemAvailability` member (https://schema.org/ItemAvailability).
8019
+ *
8020
+ * @version 0.1.0
8021
+ * @since 0.2.3
8022
+ */
8023
+ type SchemaOrgAvailability = 'BackOrder' | 'Discontinued' | 'InStock' | 'InStoreOnly' | 'LimitedAvailability' | 'MadeToOrder' | 'OnlineOnly' | 'OutOfStock' | 'PreOrder' | 'PreSale' | 'Reserved' | 'SoldOut';
8024
+ /**
8025
+ * Entity-level SEO options (`deriveEntitySeo`, `<Seo entity data>`, llms.txt).
8026
+ * By default the title and description come from the card fields (`listCardFields`),
8027
+ * formatted like the card shows them; these options override that.
8028
+ *
8029
+ * @version 0.1.0
8030
+ * @since 0.2.3
8031
+ */
8032
+ interface EntitySeoConfig {
8033
+ /**
8034
+ * Record title (no site name). Return `null` to have no title.
8035
+ * Replaces the `listCardFields.title` text.
8036
+ */
8037
+ title?: (item: Record<string, unknown>, t: (key: string, options?: Record<string, unknown>) => string) => string | null;
8038
+ /**
8039
+ * Plain-text description (truncated to 160 characters). Return `null` to have none.
8040
+ * Replaces the long-text / card subtitle and content text.
8041
+ */
8042
+ description?: (item: Record<string, unknown>, t: (key: string, options?: Record<string, unknown>) => string) => string | null;
8043
+ /**
8044
+ * schema.org availability of the Product offer, by record `status`. Merged over the
8045
+ * base mapping `{ available: 'InStock' }`. A status without a mapping emits no
8046
+ * `availability`. Read from the record the page renders: needs a guest-visible `status`
8047
+ * field (the base `status` is `visibility: 'admin'`, so crawlers get none without it).
8048
+ *
8049
+ * @example `{ promoted: 'InStock', reserved: 'SoldOut', signed: 'SoldOut' }`
8050
+ */
8051
+ availability?: Readonly<Record<string, SchemaOrgAvailability>>;
8052
+ }
7904
8053
  /**
7905
8054
  * Definition of a business entity without base fields
7906
8055
  *
@@ -8069,6 +8218,21 @@ interface BusinessEntity<out F extends Record<string, EntityField> = Record<stri
8069
8218
  field: string;
8070
8219
  direction?: 'asc' | 'desc';
8071
8220
  };
8221
+ /**
8222
+ * SEO overrides and schema.org availability for this entity's records.
8223
+ * Without it, the title and description are the card's text (`listCardFields`).
8224
+ *
8225
+ * @example
8226
+ * ```typescript
8227
+ * seo: {
8228
+ * title: (item, t) => t('seo.title', { district: item.district_code }),
8229
+ * availability: { promoted: 'InStock', reserved: 'SoldOut', signed: 'SoldOut' },
8230
+ * }
8231
+ * ```
8232
+ *
8233
+ * @since 0.2.3
8234
+ */
8235
+ seo?: EntitySeoConfig;
8072
8236
  }
8073
8237
  /**
8074
8238
  * Complete entity definition including base fields
@@ -8141,6 +8305,11 @@ interface SchemaMetadata {
8141
8305
  * Used by backend CRUD functions for deduplication
8142
8306
  */
8143
8307
  uniqueKeys?: UniqueKeyDefinition[];
8308
+ /**
8309
+ * SOC2 security configuration copied from the entity definition.
8310
+ * CrudService reads `security.piiFields` from here to encrypt on write and decrypt on read.
8311
+ */
8312
+ security?: SecurityEntityConfig;
8144
8313
  /** Custom validation function (for function validation) */
8145
8314
  customValidate?: (data: Record<string, any>, operation: 'create' | 'update') => Promise<void>;
8146
8315
  }
@@ -8466,8 +8635,10 @@ interface ColumnDef<T extends FieldValues> {
8466
8635
  * include only the buckets they need. Items are processed in input order per
8467
8636
  * bucket and returned in the same order in {@link BulkResult}.
8468
8637
  *
8469
- * Semantics (enforced by the service, not the adapter):
8470
- * - Atomic: all ops succeed or none do.
8638
+ * Semantics:
8639
+ * - Partial success: each row succeeds or fails on its own. Rows that worked
8640
+ * stay written (no rollback); rows that failed are listed in
8641
+ * {@link BulkResult.failed} with the reason.
8471
8642
  * - Collision rejection: an id appearing in both `updates` and `deletes`, or both
8472
8643
  * `inserts` and `updates`, fails up-front with {@link BulkCollisionError}.
8473
8644
  * - Empty bulk (`{}`) is a no-op that returns a zeroed {@link BulkResult}
@@ -8500,28 +8671,47 @@ interface BulkOperations<T extends Record<string, unknown>> {
8500
8671
  deletes?: string[];
8501
8672
  }
8502
8673
  /**
8503
- * Result of a bulk CRUD operation. Each id list preserves the input order of the
8504
- * corresponding bucket in {@link BulkOperations}.
8674
+ * One row of a bulk operation that was not written.
8675
+ *
8676
+ * @version 0.1.0
8677
+ * @since 0.2.3
8678
+ * @author AMBROISE PARK Consulting
8679
+ */
8680
+ interface BulkFailure {
8681
+ /** Bucket the row came from. */
8682
+ op: 'insert' | 'update' | 'delete';
8683
+ /** Record id (updates and deletes). */
8684
+ id?: string;
8685
+ /** Position in `inserts` (inserted rows have no id yet). */
8686
+ index?: number;
8687
+ /** Why the row was not written (backend message, or access denied / not found). */
8688
+ error: string;
8689
+ }
8690
+ /**
8691
+ * Result of a bulk CRUD operation: partial success. Rows that were written are
8692
+ * listed per bucket in input order; rows that were not are in `failed`. Nothing
8693
+ * that succeeded is rolled back.
8505
8694
  *
8506
8695
  * @example
8507
- * const r: BulkResult = await adapter.bulk('events', {
8508
- * inserts: [{ title: 'A' }],
8509
- * deletes: ['x'],
8696
+ * const r: BulkResult = await adapter.bulk('products', {
8697
+ * updates: [{ id: 'p1', patch: { size: '50 ml' } }, { id: 'p2', patch: { size: '50 ml' } }],
8510
8698
  * });
8511
- * r.insertedIds; // ['evt_123']
8512
- * r.deletedIds; // ['x']
8699
+ * r.updatedIds; // ['p1']
8700
+ * r.failed; // [{ op: 'update', id: 'p2', error: 'Update affected 0 rows: …' }]
8513
8701
  *
8514
- * @version 0.1.0
8702
+ * @version 0.2.0
8515
8703
  * @since 0.2.0
8516
8704
  * @author AMBROISE PARK Consulting
8517
8705
  */
8518
8706
  interface BulkResult {
8519
- /** Server-assigned IDs for `inserts`, in input order. */
8707
+ /** Server-assigned IDs of the inserted rows, in input order of the inserts that succeeded. */
8520
8708
  insertedIds: string[];
8521
8709
  /** IDs that were updated, in input order. */
8522
8710
  updatedIds: string[];
8523
8711
  /** IDs that were deleted, in input order. */
8524
8712
  deletedIds: string[];
8713
+ /** Rows that were not written, with the reason. Empty when everything succeeded. */
8714
+ failed: BulkFailure[];
8525
8715
  }
8526
8716
  /**
8527
8717
  * One collection's worth of operations inside a {@link bulkAcross} call.
@@ -8746,11 +8936,12 @@ interface ICrudAdapter {
8746
8936
  data: Record<string, unknown>;
8747
8937
  }>;
8748
8938
  /**
8749
- * Execute a bulk transactional operation.
8750
- * - All ops commit atomically. One transaction/writeBatch.
8751
- * - One round-trip where the transport supports it.
8939
+ * Execute a bulk operation: many rows in as few round-trips as the backend allows.
8940
+ * - Partial success: rows that are written stay written; rows that fail are
8941
+ * returned in `BulkResult.failed` with the reason (no rollback).
8752
8942
  * - Empty ops returns a zeroed BulkResult without wire contact.
8753
- * - Throws on partial failure; never leaves store in mixed state.
8943
+ * - Throws only when the batch cannot be attempted at all (invalid input,
8944
+ * id collision, no session).
8754
8945
  *
8755
8946
  * @example
8756
8947
  * const r = await adapter.bulk('events', { inserts: [{ title: 'A' }], deletes: ['x'] });
@@ -8989,6 +9180,39 @@ interface EntityListProps extends EntityBrowseBaseProps {
8989
9180
  * @default true (admin tables typically need export)
8990
9181
  */
8991
9182
  exportable?: boolean;
9183
+ /**
9184
+ * Edit the list in place, spreadsheet-style: list fields of type text, email,
9185
+ * url, tel, textarea, number, select, radio and reference are edited in their
9186
+ * cells (references and selects as dropdowns), checked rows take one value
9187
+ * for a field at once, blocks paste from Excel / Sheets. Fields the viewer may
9188
+ * not edit (`editable`) stay read-only. Save writes every change in one
9189
+ * `useCrud().bulk({ updates })`. Rows open from the leading open-link icon
9190
+ * (a row click edits). Opt out with `editable={false}` (read-only cells, row
9191
+ * click opens the record).
9192
+ * @default true
9193
+ * @since 0.2.3
9194
+ */
9195
+ editable?: boolean;
9196
+ /**
9197
+ * Nested list of one parent's children (e.g. the products of a brand on the
9198
+ * brand page): lists only rows whose `field` equals `value`, hides that column
9199
+ * and filter, and the add button opens the create form with `field` prefilled
9200
+ * (`EntityFormRenderer` reads it from the URL). `field` must be a `reference`
9201
+ * field of the entity.
9202
+ * @example
9203
+ * ```tsx
9204
+ * <EntityList entity={productEntity} basePath="/produits" parent={{ field: 'brandId', value: brandId }} />
9205
+ * ```
9206
+ * @since 0.2.3
9207
+ */
9208
+ parent?: EntityListParent;
9209
+ }
9210
+ /** Parent of a nested `EntityList`: the reference field and the parent record id. */
9211
+ interface EntityListParent {
9212
+ /** Reference field of the listed entity pointing at the parent (e.g. `'brandId'`) */
9213
+ field: string;
9214
+ /** Parent record id */
9215
+ value: string;
8992
9216
  }
8993
9217
  /** Props for the entity card grid component with filtering and sorting. */
8994
9218
  interface EntityCardListProps extends EntityBrowseBaseProps {
@@ -9038,8 +9262,7 @@ interface EntityCardListProps extends EntityBrowseBaseProps {
9038
9262
  }
9039
9263
  /**
9040
9264
  * Props for CrudCard — presentational card built from entity + item + field slots.
9041
- * Not route-aware: parent (e.g. EntityCardList) provides detailHref or onClick.
9042
- * For a11y/SEO prefer detailHref so the card is wrapped in a Link.
9265
+ * Not route-aware: parent (e.g. EntityCardList) passes `href` (real link, a11y/SEO) or onClick.
9043
9266
  */
9044
9267
  interface CrudCardProps {
9045
9268
  /** The list item (must have id) */
@@ -9053,6 +9276,11 @@ interface CrudCardProps {
9053
9276
  * Navigation via Link is handled by the parent wrapper (CrudCardLink), not by CrudCard itself.
9054
9277
  */
9055
9278
  onClick?: (id: string) => void;
9279
+ /**
9280
+ * Detail page URL: the card renders a real `<a href>` (crawlable, client-side
9281
+ * navigation through the app router). Takes precedence over `onClick`.
9282
+ */
9283
+ href?: string;
9056
9284
  /** Field names for card title (values joined with space) */
9057
9285
  titleFields?: string[];
9058
9286
  /** Field names for subtitle */
@@ -9666,8 +9894,14 @@ interface RateLimitBackend {
9666
9894
  interface AuthHardeningContext {
9667
9895
  /** @throws if identifier is currently locked out */
9668
9896
  checkLockout(identifier: string): void;
9669
- /** Record a failed auth attempt; may trigger lockout */
9670
- recordFailure(identifier: string): void;
9897
+ /**
9898
+ * Record a failed auth attempt; may trigger lockout.
9899
+ * @returns Failure count for the identifier and whether this attempt locked it
9900
+ */
9901
+ recordFailure(identifier: string): {
9902
+ locked: boolean;
9903
+ attempts: number;
9904
+ };
9671
9905
  /** Clear failure counter on successful auth */
9672
9906
  recordSuccess(identifier: string): void;
9673
9907
  }
@@ -14312,6 +14546,215 @@ declare function parseDateToNoonUTC(dateString: string): string | undefined;
14312
14546
  */
14313
14547
  declare function toDateOnly(date: DateValue | number | string | null | undefined): string;
14314
14548
 
14549
+ /**
14550
+ * @fileoverview Field values as text
14551
+ * @description How an entity field value reads as plain text: the text CRUD cards show
14552
+ * (title, subtitle) and entity-derived SEO uses (`deriveEntitySeo`). One implementation
14553
+ * for both: `@donotdev/crud` display formatters delegate their text output here. Pure,
14554
+ * no React: same output on the server (Next route handlers) and in the browser.
14555
+ *
14556
+ * Order (same as the CRUD display): entity `options.displayValue` (needs the record),
14557
+ * empty value, type formatter, then `options.displayKey` interpolation.
14558
+ *
14559
+ * @version 0.1.0
14560
+ * @since 0.2.3
14561
+ * @author AMBROISE PARK Consulting
14562
+ */
14563
+
14564
+ /**
14565
+ * Translation function used for field text. Pass an i18next `t` bound to the entity
14566
+ * namespace first, then `crud` (what CRUD cards use: `useTranslation([entity.namespace, 'crud'])`).
14567
+ *
14568
+ * @version 0.1.0
14569
+ * @since 0.2.3
14570
+ */
14571
+ type FieldTextTranslate = (key: string, options?: Record<string, unknown>) => string;
14572
+ /**
14573
+ * Formats one non-empty field value as text.
14574
+ *
14575
+ * @version 0.1.0
14576
+ * @since 0.2.3
14577
+ */
14578
+ type FieldTextFormatter = (value: unknown, field: EntityField, t: FieldTextTranslate, options: {
14579
+ locale?: string;
14580
+ }) => string;
14581
+ /**
14582
+ * Options of {@link formatFieldText}.
14583
+ *
14584
+ * @version 0.1.0
14585
+ * @since 0.2.3
14586
+ */
14587
+ interface FieldTextOptions {
14588
+ /** Locale for dates and numbers (i18next language) */
14589
+ locale?: string;
14590
+ /** The whole record: enables the field's `options.displayValue` resolver */
14591
+ item?: Record<string, unknown>;
14592
+ /**
14593
+ * Type formatter to use instead of the built-in one ({@link FIELD_TEXT_FORMATTERS}).
14594
+ * `@donotdev/crud` passes its field type registry formatter (custom field types).
14595
+ */
14596
+ formatter?: FieldTextFormatter;
14597
+ }
14598
+ /**
14599
+ * Whether a field value is empty (`null`, `undefined` or `''`).
14600
+ *
14601
+ * @param value - Field value
14602
+ * @returns true when the value has nothing to show
14603
+ *
14604
+ * @version 0.1.0
14605
+ * @since 0.2.3
14606
+ */
14607
+ declare function isEmptyFieldValue(value: unknown): boolean;
14608
+ /**
14609
+ * Translates a label with `namespace:key` support (option labels, field labels).
14610
+ * `ns:status.*` keys try the `t` default namespaces first (entity overrides), then `ns`.
14611
+ *
14612
+ * @param label - Label or i18n key (`'crud:status.draft'`, `'status.available'`)
14613
+ * @param t - Translation function (entity namespace first, then `crud`)
14614
+ * @returns Translated label
14615
+ *
14616
+ * @example
14617
+ * ```ts
14618
+ * translateEntityLabel('crud:status.draft', t); // entity "status.draft" if any, else crud's
14619
+ * ```
14620
+ *
14621
+ * @version 0.1.0
14622
+ * @since 0.2.3
14623
+ */
14624
+ declare function translateEntityLabel(label: string, t: FieldTextTranslate): string;
14625
+ /**
14626
+ * Plain text of an HTML string: tags become spaces, whitespace collapsed.
14627
+ *
14628
+ * @param value - HTML
14629
+ * @returns Text content
14630
+ *
14631
+ * @version 0.1.0
14632
+ * @since 0.2.3
14633
+ */
14634
+ declare function stripHtmlTags(value: string): string;
14635
+ /**
14636
+ * Built-in text formatters, by field type. Types that only render visually
14637
+ * (images, files, rating, map) have none.
14638
+ *
14639
+ * @version 0.1.0
14640
+ * @since 0.2.3
14641
+ */
14642
+ declare const FIELD_TEXT_FORMATTERS: Readonly<Record<string, FieldTextFormatter>>;
14643
+ /**
14644
+ * A field value as text, formatted like the CRUD card shows it.
14645
+ *
14646
+ * 1. `options.displayValue(value, item, t)` when `item` is given (`null` hides the field)
14647
+ * 2. empty value → `null`
14648
+ * 3. type formatter: `options.formatter`, else {@link FIELD_TEXT_FORMATTERS}; a type
14649
+ * without one shows its primitive value as is (objects: `null`). `''` → `null`
14650
+ * 4. `options.displayKey` → `t(displayKey, { value: <formatted> })`
14651
+ *
14652
+ * @param value - Field value
14653
+ * @param field - Entity field definition
14654
+ * @param t - Translation function (entity namespace first, then `crud`)
14655
+ * @param options - Locale, record, formatter override
14656
+ * @returns The text, or `null` when the field has nothing to show
14657
+ *
14658
+ * @example
14659
+ * ```ts
14660
+ * // size: { type: 'number', options: { displayKey: 'fields.size_display' } }, "{{value}}m²"
14661
+ * formatFieldText(16, entity.fields.size, t); // "16m²"
14662
+ * ```
14663
+ *
14664
+ * @version 0.1.0
14665
+ * @since 0.2.3
14666
+ */
14667
+ declare function formatFieldText(value: unknown, field: EntityField, t: FieldTextTranslate, options?: FieldTextOptions): string | null;
14668
+
14669
+ /**
14670
+ * @fileoverview Entity-derived SEO
14671
+ * @description Builds a page's SEO identity (title, description, image, JSON-LD) from an
14672
+ * entity definition and one of its records. The entity already says which fields are the
14673
+ * card title (listCardFields), which are long text, images and prices, so pages do not
14674
+ * repeat that mapping. Title and description text is formatted like the CRUD card shows
14675
+ * it (`formatFieldText`, the same implementation the card uses); the entity's `seo`
14676
+ * option overrides it. Pure: same output on the server (Next SSR) and in the browser (Vite).
14677
+ *
14678
+ * @version 0.1.0
14679
+ * @since 0.2.3
14680
+ * @author AMBROISE PARK Consulting
14681
+ */
14682
+
14683
+ /** Record shape accepted by {@link deriveEntitySeo}. */
14684
+ type EntitySeoRecord = Record<string, unknown>;
14685
+ /** SEO identity of one record. */
14686
+ interface EntitySeo {
14687
+ /** Record title (no site name) */
14688
+ title?: string;
14689
+ /** Plain-text description, at most 160 characters */
14690
+ description?: string;
14691
+ /** Absolute or root-relative URL of the main image */
14692
+ image?: string;
14693
+ /** All image URLs, main first */
14694
+ images: string[];
14695
+ /** Price, when the entity has a price/currency field with a positive value */
14696
+ price?: {
14697
+ amount: number;
14698
+ currency: string;
14699
+ };
14700
+ /**
14701
+ * schema.org availability URL (`https://schema.org/InStock`) of the record's `status`,
14702
+ * from `entity.seo.availability` over `{ available: 'InStock' }`; absent when unmapped
14703
+ */
14704
+ availability?: string;
14705
+ }
14706
+ /**
14707
+ * How {@link deriveEntitySeo} formats text.
14708
+ *
14709
+ * @version 0.1.0
14710
+ * @since 0.2.3
14711
+ */
14712
+ interface EntitySeoOptions {
14713
+ /**
14714
+ * Translation function with the entity namespace first, then `crud`, in the page
14715
+ * language (what the CRUD card uses: `useTranslation([entity.namespace, 'crud'])`)
14716
+ */
14717
+ t: FieldTextTranslate;
14718
+ /** Locale for dates and numbers (i18next language) */
14719
+ locale?: string;
14720
+ }
14721
+ /**
14722
+ * Derive a record's SEO identity from its entity definition.
14723
+ *
14724
+ * - title: `entity.seo.title`, else the `listCardFields.title` texts formatted like the
14725
+ * card (joined with `titleSeparator`), else the first text field
14726
+ * - description: `entity.seo.description`, else the first long-text field
14727
+ * (textarea/richtext, HTML stripped, card order first), else the card subtitle and
14728
+ * content texts (joined with ` · `); at most 160 characters
14729
+ * - images: first image/images field with a value, card order first
14730
+ * - price: first price/currency field with a positive value
14731
+ * - availability: schema.org URL of the record `status` (`entity.seo.availability`
14732
+ * over `{ available: 'InStock' }`); absent for an unmapped status
14733
+ *
14734
+ * @param entity - Entity definition (from defineEntity)
14735
+ * @param data - One record of that entity
14736
+ * @param options - Translation function (entity namespace, then `crud`) and locale
14737
+ * @returns The record's SEO identity; fields without a value are omitted
14738
+ *
14739
+ * @example
14740
+ * ```ts
14741
+ * const { t, i18n } = useTranslation([productEntity.namespace, 'crud']);
14742
+ * deriveEntitySeo(productEntity, product, { t, locale: i18n.language });
14743
+ * // { title: 'Bakuchiol Ampoule Cream', description: 'Crème…', image: 'https://…', images: [...], price: { amount: 32, currency: 'EUR' }, availability: 'https://schema.org/InStock' }
14744
+ * ```
14745
+ */
14746
+ declare function deriveEntitySeo(entity: AnyEntity, data: EntitySeoRecord, options: EntitySeoOptions): EntitySeo;
14747
+ /**
14748
+ * schema.org Product JSON-LD for a record.
14749
+ * `offers` only when a positive price exists (an Offer needs a price); its
14750
+ * `availability` only when the record status is mapped ({@link EntitySeo.availability}).
14751
+ *
14752
+ * @param seo - Output of {@link deriveEntitySeo}
14753
+ * @param url - Absolute canonical URL of the page
14754
+ * @returns JSON-LD object, or null when the record has no title
14755
+ */
14756
+ declare function buildProductJsonLd(seo: EntitySeo, url: string): Record<string, unknown> | null;
14757
+
14315
14758
  /**
14316
14759
  * @fileoverview Firestore rule condition generator for stakeholder ownership
14317
14760
  * @description Given EntityOwnershipConfig, returns a rule condition string suitable for
@@ -14773,6 +15216,224 @@ declare function hasProvider(key: keyof DndevProviders): boolean;
14773
15216
  */
14774
15217
  declare function resetProviders(): void;
14775
15218
 
15219
+ /**
15220
+ * @fileoverview Translated entity fields
15221
+ * @description A field defined with `i18n: true` keeps the default language in its own
15222
+ * column and every other language in a companion map field `<name>I18n`
15223
+ * (`{ en: '…', de: '…' }`, jsonb column `<name>_i18n` on Supabase). Reads swap in the
15224
+ * current language; a missing or empty translation keeps the default-language value.
15225
+ * Shared by the schema builder (companion schemas), the SQL generator (companion
15226
+ * columns) and the crud read hooks (resolution).
15227
+ *
15228
+ * @version 0.1.0
15229
+ * @since 0.2.3
15230
+ * @author AMBROISE PARK Consulting
15231
+ */
15232
+ /**
15233
+ * Field types that can be translated (`i18n: true`).
15234
+ *
15235
+ * @version 0.1.0
15236
+ * @since 0.2.3
15237
+ * @author AMBROISE PARK Consulting
15238
+ */
15239
+ declare const TRANSLATABLE_FIELD_TYPES: readonly string[];
15240
+ /**
15241
+ * Name of the companion field holding the translations of `field`.
15242
+ *
15243
+ * @param field - Translated field name (`description`)
15244
+ * @returns Companion field name (`descriptionI18n`)
15245
+ *
15246
+ * @version 0.1.0
15247
+ * @since 0.2.3
15248
+ * @author AMBROISE PARK Consulting
15249
+ */
15250
+ declare function i18nFieldName(field: string): string;
15251
+ /**
15252
+ * Names of the translated fields (`i18n: true`) of an entity field map.
15253
+ *
15254
+ * @param fields - Entity field map
15255
+ *
15256
+ * @version 0.1.0
15257
+ * @since 0.2.3
15258
+ * @author AMBROISE PARK Consulting
15259
+ */
15260
+ declare function getTranslatedFieldNames(fields: Record<string, {
15261
+ i18n?: boolean;
15262
+ }>): string[];
15263
+ /**
15264
+ * Row with its translated fields in `language`. A field keeps its stored value when its
15265
+ * companion has no non-empty entry for `language` (the default language never has one).
15266
+ * Returns the same object when nothing changes.
15267
+ *
15268
+ * @param row - Stored row (companion fields included)
15269
+ * @param fieldNames - Translated field names ({@link getTranslatedFieldNames})
15270
+ * @param language - Language to show
15271
+ *
15272
+ * @version 0.1.0
15273
+ * @since 0.2.3
15274
+ * @author AMBROISE PARK Consulting
15275
+ */
15276
+ declare function translateRow<T extends Record<string, unknown>>(row: T, fieldNames: readonly string[], language: string): T;
15277
+
15278
+ /**
15279
+ * Languages of an app and the one served at the root.
15280
+ *
15281
+ * @version 0.1.0
15282
+ * @since 0.2.3
15283
+ * @author AMBROISE PARK Consulting
15284
+ */
15285
+ interface LanguageRouting {
15286
+ /** Language codes the app ships */
15287
+ languages: readonly string[];
15288
+ /** Language served without prefix (the i18n fallback language) */
15289
+ defaultLanguage: string;
15290
+ }
15291
+ /**
15292
+ * A pathname split into its language and the route path behind the prefix.
15293
+ *
15294
+ * @version 0.1.0
15295
+ * @since 0.2.3
15296
+ * @author AMBROISE PARK Consulting
15297
+ */
15298
+ interface LanguagePath {
15299
+ /** Language of the URL (the default language when unprefixed) */
15300
+ language: string;
15301
+ /** Route path without the language prefix, always starting with `/` */
15302
+ path: string;
15303
+ /** Whether the pathname carried a language prefix */
15304
+ prefixed: boolean;
15305
+ }
15306
+ /**
15307
+ * Whether the app has a URL per language (2+ languages). One language ⇒ no prefix.
15308
+ *
15309
+ * @param languages - Language codes the app ships
15310
+ *
15311
+ * @version 0.1.0
15312
+ * @since 0.2.3
15313
+ * @author AMBROISE PARK Consulting
15314
+ */
15315
+ declare function isMultilingual(languages: readonly string[]): boolean;
15316
+ /**
15317
+ * URL segment of the internal Next tree that renders pages per request with the
15318
+ * visitor's cookies (personalized SSR): first segment with one language, after the
15319
+ * language with 2+ (`/fr/${SESSION_RENDER_SEGMENT}/…`). The generated proxy rewrites
15320
+ * requests carrying an auth cookie to it and answers 404 on a direct hit; the server
15321
+ * render of those pages reads that internal pathname, the browser the public one.
15322
+ * Reserved: no app path may use it as its first or second segment. Same value as
15323
+ * NEXT_RENDER.sessionSegment in @donotdev/core/config.
15324
+ *
15325
+ * @version 0.1.0
15326
+ * @since 0.2.3
15327
+ * @author AMBROISE PARK Consulting
15328
+ */
15329
+ declare const SESSION_RENDER_SEGMENT = "dndev-session";
15330
+ /**
15331
+ * Public pathname of a pathname read during a Next server render: drops the internal
15332
+ * per-request tree segment, first or after the language (`/dndev-session/produits` →
15333
+ * `/produits`, `/en/dndev-session/produits` → `/en/produits`), so the server HTML and
15334
+ * the browser's hydration pass compute the same paths, links, canonical and hreflang
15335
+ * URLs. Any other pathname is returned unchanged.
15336
+ *
15337
+ * @param pathname - URL pathname
15338
+ * @returns The pathname as the browser shows it
15339
+ *
15340
+ * @version 0.1.0
15341
+ * @since 0.2.3
15342
+ * @author AMBROISE PARK Consulting
15343
+ */
15344
+ declare function publicPathname(pathname: string): string;
15345
+ /**
15346
+ * Split a pathname into its language and route path.
15347
+ *
15348
+ * @param pathname - URL pathname (`/en/produits`, `/produits`)
15349
+ * @param routing - App languages
15350
+ * @returns `/en/produits` → `{ language: 'en', path: '/produits', prefixed: true }`;
15351
+ * `/produits` → the default language, unprefixed
15352
+ *
15353
+ * @version 0.1.0
15354
+ * @since 0.2.3
15355
+ * @author AMBROISE PARK Consulting
15356
+ */
15357
+ declare function splitLanguagePath(pathname: string, routing: LanguageRouting): LanguagePath;
15358
+ /**
15359
+ * The URL of an app path in a language. Absolute paths only (`/…`): relative paths,
15360
+ * hashes, queries and external URLs are returned unchanged. A path that already
15361
+ * carries a language prefix keeps that language (an explicit link to another
15362
+ * language); `/<default>/x` becomes `/x`.
15363
+ *
15364
+ * @param path - App path, optionally with query and hash (`/produits?page=2`)
15365
+ * @param language - Language to link in
15366
+ * @param routing - App languages
15367
+ * @returns `/produits` in `en` → `/en/produits`; in the default language → `/produits`
15368
+ *
15369
+ * @version 0.1.0
15370
+ * @since 0.2.3
15371
+ * @author AMBROISE PARK Consulting
15372
+ */
15373
+ declare function localizePath(path: string, language: string, routing: LanguageRouting): string;
15374
+ /**
15375
+ * Absolute URL of an app path in every language (hreflang alternates, sitemap).
15376
+ *
15377
+ * @param path - App path without language prefix (`/produits`)
15378
+ * @param baseUrl - Absolute site URL, no trailing slash
15379
+ * @param routing - App languages
15380
+ * @returns `{ fr: 'https://x/produits', en: 'https://x/en/produits' }`
15381
+ *
15382
+ * @version 0.1.0
15383
+ * @since 0.2.3
15384
+ * @author AMBROISE PARK Consulting
15385
+ */
15386
+ declare function languageUrls(path: string, baseUrl: string, routing: LanguageRouting): Record<string, string>;
15387
+ /**
15388
+ * How to serve a request for a pathname (Next proxy; Vite on the first load).
15389
+ *
15390
+ * - `pass`: a prefixed URL of another language, served as is
15391
+ * - `rewrite`: an unprefixed URL served internally as `destination` (`/<default>/…`,
15392
+ * the app/[lang] route of the default language); the browser keeps the URL
15393
+ * - `redirect`: `/<default>/…` → the unprefixed URL (`permanent`), or a first visit
15394
+ * to an unprefixed URL → the visitor's language
15395
+ *
15396
+ * @version 0.1.0
15397
+ * @since 0.2.3
15398
+ * @author AMBROISE PARK Consulting
15399
+ */
15400
+ type LanguageRouteDecision = {
15401
+ type: 'pass';
15402
+ language: string;
15403
+ path: string;
15404
+ } | {
15405
+ type: 'rewrite';
15406
+ language: string;
15407
+ path: string;
15408
+ destination: string;
15409
+ } | {
15410
+ type: 'redirect';
15411
+ language: string;
15412
+ path: string;
15413
+ location: string;
15414
+ permanent: boolean;
15415
+ };
15416
+ /**
15417
+ * Decide how to serve a pathname. An unprefixed URL is the default language unless
15418
+ * the visitor prefers another one: their language cookie first, then their browser
15419
+ * languages (`Accept-Language` / `navigator.languages`). Crawlers send neither, so
15420
+ * they always get the default language at the root.
15421
+ *
15422
+ * Single-language apps always `pass`.
15423
+ *
15424
+ * @param pathname - Request pathname (no query)
15425
+ * @param visitor - Stored language (language cookie) and browser languages
15426
+ * @param routing - App languages
15427
+ *
15428
+ * @version 0.1.0
15429
+ * @since 0.2.3
15430
+ * @author AMBROISE PARK Consulting
15431
+ */
15432
+ declare function resolveLanguageRoute(pathname: string, visitor: {
15433
+ stored?: string | null;
15434
+ preferred?: readonly string[];
15435
+ }, routing: LanguageRouting): LanguageRouteDecision;
15436
+
14776
15437
  /**
14777
15438
  * @fileoverview Request language resolution
14778
15439
  * @description One rule for the language of a render, shared by the server (cookie
@@ -15546,17 +16207,30 @@ type index_d_DateFormatOptions = DateFormatOptions;
15546
16207
  type index_d_DateFormatPreset = DateFormatPreset;
15547
16208
  type index_d_DoNotDevError = DoNotDevError;
15548
16209
  declare const index_d_DoNotDevError: typeof DoNotDevError;
16210
+ type index_d_EntitySeo = EntitySeo;
16211
+ type index_d_EntitySeoOptions = EntitySeoOptions;
16212
+ type index_d_EntitySeoRecord = EntitySeoRecord;
15549
16213
  type index_d_ErrorHandlerConfig = ErrorHandlerConfig;
15550
16214
  type index_d_ErrorHandlerFunction = ErrorHandlerFunction;
16215
+ declare const index_d_FIELD_TEXT_FORMATTERS: typeof FIELD_TEXT_FORMATTERS;
16216
+ type index_d_FieldTextFormatter = FieldTextFormatter;
16217
+ type index_d_FieldTextOptions = FieldTextOptions;
16218
+ type index_d_FieldTextTranslate = FieldTextTranslate;
15551
16219
  type index_d_FilterVisibleFieldsOptions = FilterVisibleFieldsOptions;
15552
16220
  type index_d_GetVisibleFieldsOptions = GetVisibleFieldsOptions;
15553
16221
  type index_d_HandleErrorOptions = HandleErrorOptions;
15554
16222
  declare const index_d_LANGUAGE_COOKIE: typeof LANGUAGE_COOKIE;
16223
+ type index_d_LanguagePath = LanguagePath;
16224
+ type index_d_LanguageRouteDecision = LanguageRouteDecision;
16225
+ type index_d_LanguageRouting = LanguageRouting;
15555
16226
  type index_d_LockoutResult = LockoutResult;
16227
+ declare const index_d_SESSION_RENDER_SEGMENT: typeof SESSION_RENDER_SEGMENT;
15556
16228
  type index_d_SingletonManager = SingletonManager;
15557
16229
  declare const index_d_SingletonManager: typeof SingletonManager;
16230
+ declare const index_d_TRANSLATABLE_FIELD_TYPES: typeof TRANSLATABLE_FIELD_TYPES;
15558
16231
  declare const index_d_addMonths: typeof addMonths;
15559
16232
  declare const index_d_addYears: typeof addYears;
16233
+ declare const index_d_buildProductJsonLd: typeof buildProductJsonLd;
15560
16234
  declare const index_d_calculateSubscriptionEndDate: typeof calculateSubscriptionEndDate;
15561
16235
  declare const index_d_captureErrorToSentry: typeof captureErrorToSentry;
15562
16236
  declare const index_d_clearGlobalSingleton: typeof clearGlobalSingleton;
@@ -15569,6 +16243,7 @@ declare const index_d_createMetadata: typeof createMetadata;
15569
16243
  declare const index_d_createMethodProxy: typeof createMethodProxy;
15570
16244
  declare const index_d_createSingleton: typeof createSingleton;
15571
16245
  declare const index_d_createSingletonWithParams: typeof createSingletonWithParams;
16246
+ declare const index_d_deriveEntitySeo: typeof deriveEntitySeo;
15572
16247
  declare const index_d_detectErrorSource: typeof detectErrorSource;
15573
16248
  declare const index_d_ensureSpreadable: typeof ensureSpreadable;
15574
16249
  declare const index_d_evaluateCondition: typeof evaluateCondition;
@@ -15576,6 +16251,7 @@ declare const index_d_evaluateFieldConditions: typeof evaluateFieldConditions;
15576
16251
  declare const index_d_filterVisibleFields: typeof filterVisibleFields;
15577
16252
  declare const index_d_formatCurrency: typeof formatCurrency;
15578
16253
  declare const index_d_formatDate: typeof formatDate;
16254
+ declare const index_d_formatFieldText: typeof formatFieldText;
15579
16255
  declare const index_d_formatRelativeTime: typeof formatRelativeTime;
15580
16256
  declare const index_d_generateCodeChallenge: typeof generateCodeChallenge;
15581
16257
  declare const index_d_generateCodeVerifier: typeof generateCodeVerifier;
@@ -15590,6 +16266,7 @@ declare const index_d_getGlobalSingleton: typeof getGlobalSingleton;
15590
16266
  declare const index_d_getListCardFieldNames: typeof getListCardFieldNames;
15591
16267
  declare const index_d_getProvider: typeof getProvider;
15592
16268
  declare const index_d_getRoleFromClaims: typeof getRoleFromClaims;
16269
+ declare const index_d_getTranslatedFieldNames: typeof getTranslatedFieldNames;
15593
16270
  declare const index_d_getVisibleFields: typeof getVisibleFields;
15594
16271
  declare const index_d_getWeekFromISOString: typeof getWeekFromISOString;
15595
16272
  declare const index_d_handleError: typeof handleError;
@@ -15597,11 +16274,16 @@ declare const index_d_hasProvider: typeof hasProvider;
15597
16274
  declare const index_d_hasRestrictedVisibility: typeof hasRestrictedVisibility;
15598
16275
  declare const index_d_hasRoleAccess: typeof hasRoleAccess;
15599
16276
  declare const index_d_hasTierAccess: typeof hasTierAccess;
16277
+ declare const index_d_i18nFieldName: typeof i18nFieldName;
15600
16278
  declare const index_d_isCompactDateString: typeof isCompactDateString;
16279
+ declare const index_d_isEmptyFieldValue: typeof isEmptyFieldValue;
15601
16280
  declare const index_d_isFieldVisible: typeof isFieldVisible;
16281
+ declare const index_d_isMultilingual: typeof isMultilingual;
15602
16282
  declare const index_d_isPKCESupported: typeof isPKCESupported;
15603
16283
  declare const index_d_isoToCompactString: typeof isoToCompactString;
16284
+ declare const index_d_languageUrls: typeof languageUrls;
15604
16285
  declare const index_d_lazyImport: typeof lazyImport;
16286
+ declare const index_d_localizePath: typeof localizePath;
15605
16287
  declare const index_d_mapToDoNotDevError: typeof mapToDoNotDevError;
15606
16288
  declare const index_d_maybeTranslate: typeof maybeTranslate;
15607
16289
  declare const index_d_normalizeToISOString: typeof normalizeToISOString;
@@ -15610,19 +16292,25 @@ declare const index_d_parseDate: typeof parseDate;
15610
16292
  declare const index_d_parseDateToNoonUTC: typeof parseDateToNoonUTC;
15611
16293
  declare const index_d_parseISODate: typeof parseISODate;
15612
16294
  declare const index_d_parseServerCookie: typeof parseServerCookie;
16295
+ declare const index_d_publicPathname: typeof publicPathname;
15613
16296
  declare const index_d_readCookieValue: typeof readCookieValue;
15614
16297
  declare const index_d_resetProviders: typeof resetProviders;
15615
16298
  declare const index_d_resolveLanguage: typeof resolveLanguage;
16299
+ declare const index_d_resolveLanguageRoute: typeof resolveLanguageRoute;
15616
16300
  declare const index_d_safeValidate: typeof safeValidate;
15617
16301
  declare const index_d_sanitizeHref: typeof sanitizeHref;
15618
16302
  declare const index_d_showNotification: typeof showNotification;
16303
+ declare const index_d_splitLanguagePath: typeof splitLanguagePath;
16304
+ declare const index_d_stripHtmlTags: typeof stripHtmlTags;
15619
16305
  declare const index_d_timestampToISOString: typeof timestampToISOString;
15620
16306
  declare const index_d_toDateOnly: typeof toDateOnly;
15621
16307
  declare const index_d_toISOString: typeof toISOString;
15622
16308
  declare const index_d_translateArray: typeof translateArray;
15623
16309
  declare const index_d_translateArrayRange: typeof translateArrayRange;
15624
16310
  declare const index_d_translateArrayWithIndices: typeof translateArrayWithIndices;
16311
+ declare const index_d_translateEntityLabel: typeof translateEntityLabel;
15625
16312
  declare const index_d_translateObjectArray: typeof translateObjectArray;
16313
+ declare const index_d_translateRow: typeof translateRow;
15626
16314
  declare const index_d_updateMetadata: typeof updateMetadata;
15627
16315
  declare const index_d_validateCodeChallenge: typeof validateCodeChallenge;
15628
16316
  declare const index_d_validateCodeVerifier: typeof validateCodeVerifier;
@@ -15638,8 +16326,8 @@ declare const index_d_wrapAuthError: typeof wrapAuthError;
15638
16326
  declare const index_d_wrapCrudError: typeof wrapCrudError;
15639
16327
  declare const index_d_wrapStorageError: typeof wrapStorageError;
15640
16328
  declare namespace index_d {
15641
- export { index_d_AuthHardening as AuthHardening, index_d_CURRENCY_MAP as CURRENCY_MAP, index_d_ConditionBuilder as ConditionBuilder, index_d_DEFAULT_CRUD_TIMEOUT as DEFAULT_CRUD_TIMEOUT, index_d_DEFAULT_ERROR_MESSAGES as DEFAULT_ERROR_MESSAGES, index_d_DEFAULT_UPLOAD_TIMEOUT as DEFAULT_UPLOAD_TIMEOUT, index_d_DoNotDevError as DoNotDevError, index_d_LANGUAGE_COOKIE as LANGUAGE_COOKIE, index_d_SingletonManager as SingletonManager, index_d_addMonths as addMonths, index_d_addYears as addYears, index_d_calculateSubscriptionEndDate as calculateSubscriptionEndDate, index_d_captureErrorToSentry as captureErrorToSentry, index_d_clearGlobalSingleton as clearGlobalSingleton, index_d_commonErrorCodeMappings as commonErrorCodeMappings, index_d_compactToISOString as compactToISOString, index_d_configureProviders as configureProviders, index_d_createAsyncSingleton as createAsyncSingleton, index_d_createErrorHandler as createErrorHandler, index_d_createMetadata as createMetadata, index_d_createMethodProxy as createMethodProxy, index_d_createSingleton as createSingleton, index_d_createSingletonWithParams as createSingletonWithParams, index_d_detectErrorSource as detectErrorSource, index_d_ensureSpreadable as ensureSpreadable, index_d_evaluateCondition as evaluateCondition, index_d_evaluateFieldConditions as evaluateFieldConditions, index_d_filterVisibleFields as filterVisibleFields, index_d_formatCurrency as formatCurrency, index_d_formatDate as formatDate, index_d_formatRelativeTime as formatRelativeTime, index_d_generateCodeChallenge as generateCodeChallenge, index_d_generateCodeVerifier as generateCodeVerifier, index_d_generateFirestoreRuleCondition as generateFirestoreRuleCondition, index_d_generatePKCEPair as generatePKCEPair, index_d_generateUUID as generateUUID, index_d_getConditionDependencies as getConditionDependencies, index_d_getCurrencyLocale as getCurrencyLocale, index_d_getCurrencySymbol as getCurrencySymbol, index_d_getCurrentTimestamp as getCurrentTimestamp, index_d_getGlobalSingleton as getGlobalSingleton, index_d_getListCardFieldNames as getListCardFieldNames, index_d_getProvider as getProvider, index_d_getRoleFromClaims as getRoleFromClaims, index_d_getVisibleFields as getVisibleFields, index_d_getWeekFromISOString as getWeekFromISOString, index_d_handleError as handleError, index_d_hasProvider as hasProvider, index_d_hasRestrictedVisibility as hasRestrictedVisibility, index_d_hasRoleAccess as hasRoleAccess, index_d_hasTierAccess as hasTierAccess, index_d_isCompactDateString as isCompactDateString, index_d_isFieldVisible as isFieldVisible, index_d_isPKCESupported as isPKCESupported, index_d_isoToCompactString as isoToCompactString, index_d_lazyImport as lazyImport, index_d_mapToDoNotDevError as mapToDoNotDevError, index_d_maybeTranslate as maybeTranslate, index_d_normalizeToISOString as normalizeToISOString, index_d_parseAcceptLanguage as parseAcceptLanguage, index_d_parseDate as parseDate, index_d_parseDateToNoonUTC as parseDateToNoonUTC, index_d_parseISODate as parseISODate, index_d_parseServerCookie as parseServerCookie, index_d_readCookieValue as readCookieValue, index_d_resetProviders as resetProviders, index_d_resolveLanguage as resolveLanguage, index_d_safeValidate as safeValidate, index_d_sanitizeHref as sanitizeHref, index_d_showNotification as showNotification, index_d_timestampToISOString as timestampToISOString, index_d_toDateOnly as toDateOnly, index_d_toISOString as toISOString, index_d_translateArray as translateArray, index_d_translateArrayRange as translateArrayRange, index_d_translateArrayWithIndices as translateArrayWithIndices, index_d_translateObjectArray as translateObjectArray, index_d_updateMetadata as updateMetadata, index_d_validateCodeChallenge as validateCodeChallenge, index_d_validateCodeVerifier as validateCodeVerifier, index_d_validateEnvVar as validateEnvVar, index_d_validateMetadata as validateMetadata, index_d_validateUrl as validateUrl, index_d_validateWithSchema as validateWithSchema, index_d_when as when, index_d_withErrorHandling as withErrorHandling, index_d_withGracefulDegradation as withGracefulDegradation, index_d_withTimeout as withTimeout, index_d_wrapAuthError as wrapAuthError, index_d_wrapCrudError as wrapCrudError, index_d_wrapStorageError as wrapStorageError };
15642
- export type { index_d_AuthHardeningConfig as AuthHardeningConfig, index_d_CurrencyEntry as CurrencyEntry, index_d_DateFormatOptions as DateFormatOptions, index_d_DateFormatPreset as DateFormatPreset, index_d_ErrorHandlerConfig as ErrorHandlerConfig, index_d_ErrorHandlerFunction as ErrorHandlerFunction, index_d_FilterVisibleFieldsOptions as FilterVisibleFieldsOptions, index_d_GetVisibleFieldsOptions as GetVisibleFieldsOptions, index_d_HandleErrorOptions as HandleErrorOptions, index_d_LockoutResult as LockoutResult };
16329
+ export { index_d_AuthHardening as AuthHardening, index_d_CURRENCY_MAP as CURRENCY_MAP, index_d_ConditionBuilder as ConditionBuilder, index_d_DEFAULT_CRUD_TIMEOUT as DEFAULT_CRUD_TIMEOUT, index_d_DEFAULT_ERROR_MESSAGES as DEFAULT_ERROR_MESSAGES, index_d_DEFAULT_UPLOAD_TIMEOUT as DEFAULT_UPLOAD_TIMEOUT, index_d_DoNotDevError as DoNotDevError, index_d_FIELD_TEXT_FORMATTERS as FIELD_TEXT_FORMATTERS, index_d_LANGUAGE_COOKIE as LANGUAGE_COOKIE, index_d_SESSION_RENDER_SEGMENT as SESSION_RENDER_SEGMENT, index_d_SingletonManager as SingletonManager, index_d_TRANSLATABLE_FIELD_TYPES as TRANSLATABLE_FIELD_TYPES, index_d_addMonths as addMonths, index_d_addYears as addYears, index_d_buildProductJsonLd as buildProductJsonLd, index_d_calculateSubscriptionEndDate as calculateSubscriptionEndDate, index_d_captureErrorToSentry as captureErrorToSentry, index_d_clearGlobalSingleton as clearGlobalSingleton, index_d_commonErrorCodeMappings as commonErrorCodeMappings, index_d_compactToISOString as compactToISOString, index_d_configureProviders as configureProviders, index_d_createAsyncSingleton as createAsyncSingleton, index_d_createErrorHandler as createErrorHandler, index_d_createMetadata as createMetadata, index_d_createMethodProxy as createMethodProxy, index_d_createSingleton as createSingleton, index_d_createSingletonWithParams as createSingletonWithParams, index_d_deriveEntitySeo as deriveEntitySeo, index_d_detectErrorSource as detectErrorSource, index_d_ensureSpreadable as ensureSpreadable, index_d_evaluateCondition as evaluateCondition, index_d_evaluateFieldConditions as evaluateFieldConditions, index_d_filterVisibleFields as filterVisibleFields, index_d_formatCurrency as formatCurrency, index_d_formatDate as formatDate, index_d_formatFieldText as formatFieldText, index_d_formatRelativeTime as formatRelativeTime, index_d_generateCodeChallenge as generateCodeChallenge, index_d_generateCodeVerifier as generateCodeVerifier, index_d_generateFirestoreRuleCondition as generateFirestoreRuleCondition, index_d_generatePKCEPair as generatePKCEPair, index_d_generateUUID as generateUUID, index_d_getConditionDependencies as getConditionDependencies, index_d_getCurrencyLocale as getCurrencyLocale, index_d_getCurrencySymbol as getCurrencySymbol, index_d_getCurrentTimestamp as getCurrentTimestamp, index_d_getGlobalSingleton as getGlobalSingleton, index_d_getListCardFieldNames as getListCardFieldNames, index_d_getProvider as getProvider, index_d_getRoleFromClaims as getRoleFromClaims, index_d_getTranslatedFieldNames as getTranslatedFieldNames, index_d_getVisibleFields as getVisibleFields, index_d_getWeekFromISOString as getWeekFromISOString, index_d_handleError as handleError, index_d_hasProvider as hasProvider, index_d_hasRestrictedVisibility as hasRestrictedVisibility, index_d_hasRoleAccess as hasRoleAccess, index_d_hasTierAccess as hasTierAccess, index_d_i18nFieldName as i18nFieldName, index_d_isCompactDateString as isCompactDateString, index_d_isEmptyFieldValue as isEmptyFieldValue, index_d_isFieldVisible as isFieldVisible, index_d_isMultilingual as isMultilingual, index_d_isPKCESupported as isPKCESupported, index_d_isoToCompactString as isoToCompactString, index_d_languageUrls as languageUrls, index_d_lazyImport as lazyImport, index_d_localizePath as localizePath, index_d_mapToDoNotDevError as mapToDoNotDevError, index_d_maybeTranslate as maybeTranslate, index_d_normalizeToISOString as normalizeToISOString, index_d_parseAcceptLanguage as parseAcceptLanguage, index_d_parseDate as parseDate, index_d_parseDateToNoonUTC as parseDateToNoonUTC, index_d_parseISODate as parseISODate, index_d_parseServerCookie as parseServerCookie, index_d_publicPathname as publicPathname, index_d_readCookieValue as readCookieValue, index_d_resetProviders as resetProviders, index_d_resolveLanguage as resolveLanguage, index_d_resolveLanguageRoute as resolveLanguageRoute, index_d_safeValidate as safeValidate, index_d_sanitizeHref as sanitizeHref, index_d_showNotification as showNotification, index_d_splitLanguagePath as splitLanguagePath, index_d_stripHtmlTags as stripHtmlTags, index_d_timestampToISOString as timestampToISOString, index_d_toDateOnly as toDateOnly, index_d_toISOString as toISOString, index_d_translateArray as translateArray, index_d_translateArrayRange as translateArrayRange, index_d_translateArrayWithIndices as translateArrayWithIndices, index_d_translateEntityLabel as translateEntityLabel, index_d_translateObjectArray as translateObjectArray, index_d_translateRow as translateRow, index_d_updateMetadata as updateMetadata, index_d_validateCodeChallenge as validateCodeChallenge, index_d_validateCodeVerifier as validateCodeVerifier, index_d_validateEnvVar as validateEnvVar, index_d_validateMetadata as validateMetadata, index_d_validateUrl as validateUrl, index_d_validateWithSchema as validateWithSchema, index_d_when as when, index_d_withErrorHandling as withErrorHandling, index_d_withGracefulDegradation as withGracefulDegradation, index_d_withTimeout as withTimeout, index_d_wrapAuthError as wrapAuthError, index_d_wrapCrudError as wrapCrudError, index_d_wrapStorageError as wrapStorageError };
16330
+ export type { index_d_AuthHardeningConfig as AuthHardeningConfig, index_d_CurrencyEntry as CurrencyEntry, index_d_DateFormatOptions as DateFormatOptions, index_d_DateFormatPreset as DateFormatPreset, index_d_EntitySeo as EntitySeo, index_d_EntitySeoOptions as EntitySeoOptions, index_d_EntitySeoRecord as EntitySeoRecord, index_d_ErrorHandlerConfig as ErrorHandlerConfig, index_d_ErrorHandlerFunction as ErrorHandlerFunction, index_d_FieldTextFormatter as FieldTextFormatter, index_d_FieldTextOptions as FieldTextOptions, index_d_FieldTextTranslate as FieldTextTranslate, index_d_FilterVisibleFieldsOptions as FilterVisibleFieldsOptions, index_d_GetVisibleFieldsOptions as GetVisibleFieldsOptions, index_d_HandleErrorOptions as HandleErrorOptions, index_d_LanguagePath as LanguagePath, index_d_LanguageRouteDecision as LanguageRouteDecision, index_d_LanguageRouting as LanguageRouting, index_d_LockoutResult as LockoutResult };
15643
16331
  }
15644
16332
 
15645
16333
  /**
@@ -15731,17 +16419,6 @@ declare const priceSchema: CustomSchemaGenerator;
15731
16419
  */
15732
16420
  declare function getSchemaType(field: EntityField<FieldType>): v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;
15733
16421
 
15734
- /**
15735
- * Recursively validates that all string values that look like potential dates
15736
- * within an object adhere to the ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ).
15737
- *
15738
- * @param data - The object or data structure to validate
15739
- * @param {string} [currentPath=''] - Internal tracking of the object path for error messages
15740
- * @throws Error if any string resembling a date is not in the correct ISO format
15741
- * @version 0.1.0
15742
- * @since 0.0.1
15743
- * @author AMBROISE PARK Consulting
15744
- */
15745
16422
  declare function validateDates(data: Record<string, unknown> | unknown[], currentPath?: string): void;
15746
16423
 
15747
16424
  /**
@@ -16080,6 +16757,32 @@ declare function defineEntity<const F extends Record<string, EntityField>>(entit
16080
16757
  fields: F;
16081
16758
  }): Entity<MutableMergedEntityFieldMap<F>>;
16082
16759
 
16760
+ /**
16761
+ * @fileoverview Entity registry (collection → entity)
16762
+ * @description `defineEntity()` records every entity here under its collection, so the
16763
+ * framework can resolve a reference field (`validation.reference: 'brands'`) to the full
16764
+ * referenced entity without any app wiring. Pure module (no React, no browser APIs):
16765
+ * safe on server and client. Backed by a global singleton so duplicated module
16766
+ * instances (HMR, bundler splits) share one map.
16767
+ *
16768
+ * @version 0.1.0
16769
+ * @since 0.2.3
16770
+ * @author AMBROISE PARK Consulting
16771
+ */
16772
+
16773
+ /**
16774
+ * Entity defined for a collection, if the app defined one.
16775
+ *
16776
+ * @param collection - Collection name (e.g. a reference field's `validation.reference`)
16777
+ * @returns The entity, or `undefined` when no entity was defined for that collection
16778
+ *
16779
+ * @example
16780
+ * ```typescript
16781
+ * const brandEntity = getEntityByCollection('brands');
16782
+ * ```
16783
+ */
16784
+ declare function getEntityByCollection(collection: string): AnyEntity | undefined;
16785
+
16083
16786
  /**
16084
16787
  * @fileoverview Unified Schema Generation
16085
16788
  * @description Creates Valibot schemas from entity definitions with visibility metadata.
@@ -16554,5 +17257,5 @@ type ValidateResult<T> = {
16554
17257
  declare function validateBlock(block: unknown, opts?: ValidateBlockOptions): ValidateResult<CanvasBlock>;
16555
17258
  declare function validateEvent(event: unknown, widgetKind: string): ValidateResult<CanvasEvent>;
16556
17259
 
16557
- export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AIChatRequestSchema, AIChatResponseSchema, AIMessageSchema, AIProviderConfigSchema, AIToolCallSchema, AIToolDefinitionSchema, AIUsageSchema, AI_ERROR_CODES, AI_MODELS, AI_PROVIDERS, AI_ROLES, AI_TIERS, AI_TOKEN_PRICING, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AuthHardening, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BulkAcrossCycleError, BulkCollisionError, BulkDeleteIdSchema, BulkInsertSchema, BulkNotImplementedError, BulkRequestSchema, BulkResponseSchema, BulkUpdateSchema, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONTEXTS, CRUD_OPERATORS, CURRENCY_MAP, CanvasBlockSchema, CanvasEventSchema, CanvasLifetimeSchema, CanvasWidgetMetadataSchema, CheckoutLineItemInputSchema, CheckoutSessionMetadataSchema, ConditionBuilder, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_AI_CONFIG, DEFAULT_AI_MARKUP, DEFAULT_CRUD_TIMEOUT, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEFAULT_UPLOAD_TIMEOUT, DENSITY, DoNotDevError, EDITABLE, EMAIL_ERROR_CODES, EMAIL_PROVIDERS, EMAIL_VERIFICATION_STATUS, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TYPES, FIREBASE_ERROR_MAP, FOOTER_MODE, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, LANGUAGE_COOKIE, LAYOUT_PRESET, LIST_SCHEMA_TYPE, MAX_CHECKOUT_LINE_ITEMS, MAX_SHIPPING_RATE_IDS, OAUTH_EVENTS, OAUTH_PARTNERS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, ProxiedImageUrlSchema, ROUTE_SOURCES, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, SendEmailRequestSchema, SendEmailResponseSchema, index_d as ServerUtils, SingletonManager, StripeBackConfigSchema, StripeFrontConfigSchema, StripeOrderBackSchema, StripeOrderShippingSchema, StripeOrderTaxSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, USER_ROLES, UserSubscriptionSchema, VISIBILITY, WebhookEventSchema, addMonths, addYears, addressSchema, arraySchema, baseFields, booleanSchema, calculateSubscriptionEndDate, captureErrorToSentry, checkGitHubAccessSchema, clearGlobalSingleton, clearSchemaGenerators, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createSchemas, createSingleton, createSingletonWithParams, dateSchema, defineEntity, deleteEntitySchema, detectBulkCollisions, detectErrorSource, disconnectOAuthSchema, emailSchema, enhanceSchema, ensureSpreadable, evaluateCondition, evaluateFieldConditions, exchangeTokenSchema, fileSchema, filesSchema, filterVisibleFields, formatCurrency, formatDate, formatRelativeTime, gdprConsentSchema, generateCodeChallenge, generateCodeVerifier, generateFirestoreRuleCondition, generatePKCEPair, generateUUID, geopointSchema, getBreakpointFromWidth, getBreakpointUtils, getCollectionName, getConditionDependencies, getConnectionsSchema, getCurrencyLocale, getCurrencySymbol, getCurrentTimestamp, getEntitySchema, getGlobalSingleton, getListCardFieldNames, getProvider, getRegisteredSchemaTypes, getRegisteredScopeProviders, getRoleFromClaims, getSchemaType, getScopeValue, getVisibleFields, getWeekFromISOString, getWidget, githubPermissionSchema, githubRepoConfigSchema, grantGitHubAccessSchema, handleError, hasCustomSchemaGenerator, hasMetadata, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, ibanSchema, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isCompactDateString, isFieldVisible, isFrameworkField, isOAuthPartnerId, isPKCESupported, isoToCompactString, lazyImport, listEntitiesSchema, listWidgets, mapSchema, mapToDoNotDevError, maybeTranslate, multiselectSchema, neverSchema, normalizeToISOString, numberSchema, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseAcceptLanguage, parseDate, parseDateToNoonUTC, parseISODate, parseServerCookie, passwordSchema, pictureSchema, picturesSchema, priceSchema, rangeOptions, readCookieValue, referenceSchema, refreshTokenSchema, registerSchemaGenerator, registerScopeProvider, registerUniqueConstraintValidator, registerWidget, resetProviders, resolveLanguage, revokeGitHubAccessSchema, safeValidate, sanitizeHref, selectSchema, showNotification, stringSchema, switchSchema, telSchema, textSchema, timestampToISOString, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateObjectArray, unregisterScopeProvider, updateEntitySchema, updateMetadata, urlSchema, validateAIChatRequest, validateAIChatResponse, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateBlock, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateEnvVar, validateEvent, validateMetadata, validateOAuthPartners, validateSendEmailRequest, validateSendEmailResponse, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUrl, validateUserSubscription, validateWebhookEvent, validateWithSchema, when, withErrorHandling, withGracefulDegradation, withTimeout, wrapAuthError, wrapCrudError, wrapStorageError };
16558
- export type { AIAPI, AIChatRequest, AIChatResponse, AIConfig, AICostConfig, AICostEvent, AICostRecord, AICostResult, AIErrorCode, AIMessage, AIModelPricing, AIProvider, AIProviderConfig, AIRateLimitConfig, AIRouteConfig, AITierId, AIToolCall, AIToolDefinition, AIToolParameter, AIUsage, AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyEntity, AnyFieldValue, AnyValibotSchema, ApiResponse, AppConfig, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AttemptRecord, AuditEvent, AuditEventType, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthHardeningConfig, AuthHardeningContext, AuthMethod, AuthPartner, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthSessionSnapshot, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BeforeCheckoutHook, BeforeCheckoutOptions, BeforeCheckoutResult, BillingAPI, BillingAdapter, BillingAuthProvider, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, Breakpoint, BreakpointUtils, BuiltInFieldType, BulkAcrossBatch, BulkAcrossResult, BulkCollisionReport, BulkOperations, BulkRequest, BulkResponse, BulkResult, BusinessEntity, CachedError, CanAPI, CanvasBlock, CanvasCallerAccess, CanvasEvent, CanvasLifetime, CanvasSurface, CanvasWidgetMetadata, CanvasWidgetProps, CheckGitHubAccessRequest, CheckoutAddress, CheckoutLineItemInput, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CheckoutSessionParams, CheckoutSessionResult, CheckoutSessionSnapshot, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, ConditionBuilderLike, ConditionExpression, ConditionGroup, ConditionInput, ConditionNode, ConditionOperator, ConditionResult, ConditionalBehavior, ConfidenceLevel, ConnectOptions, ConsentAPI, ConsentActions, ConsentCategory, ConsentState, Context, CookieOptions, CreateCheckoutSessionRequest, CreateCheckoutSessionRequestInput, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudCardProps, CrudConfig, CrudCreateInput, CrudDocQuery, CrudListQuery, CrudOperationOptions, CrudOperator, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DnDevWrapper, DndevFrameworkConfig, DndevProviders, DndevStoreApi, DoNotDevCookieCategories, DocumentSubscriptionCallback, DynamicFormRule, Editable, EffectiveConnectionType, EmailConfig, EmailErrorCode, EmailProvider, EmailRouteConfig, EmailTemplate, EmailTemplateRegistry, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityBrowseBaseProps, EntityCardListProps, EntityDisplayRendererProps, EntityField, EntityFieldMapDefault, EntityFormRendererProps, EntityHookErrors, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecommendationsProps, EntityRecord, EntityRowFromFields, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, ExchangeTokenParams, ExchangeTokenRequest, ExchangeTokenResponse, FaviconConfig, Feature, FeatureAccessHookResult, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterMode, FooterZoneConfig, FormConfig, FormStep, FunctionCallConfig, FunctionCallContext, FunctionCallOptions, FunctionCallResult, FunctionClient, FunctionClientFactoryOptions, FunctionDefaults, FunctionEndpoint, FunctionError, FunctionLoader, FunctionMemory, FunctionMeta, FunctionPlatform, FunctionResponse, FunctionSchema, FunctionSchemas, FunctionSystem, FunctionTrigger, FunctionsConfig, GetCustomClaimsResponse, GetEntityData, GetEntityRequest, GetEntityResponse, GetUserAuthStatusResponse, GetVisibleFieldsOptions, GitHubPermission, GitHubRepoConfig, GrantGitHubAccessRequest, GroupByDefinition, HandleErrorOptions, HeaderZoneConfig, I18nConfig, I18nPluginConfig, I18nProviderProps, ICallableProvider, ICrudAdapter, ID, INetworkManager, IServerAuthAdapter, IStorageAdapter, IStorageManager, IStorageStrategy, InferEntityRow, Invoice, InvoiceItem, LanguageData, LanguageInfo, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MergedEntityFieldMap, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutableMergedEntityFieldMap, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, Observable, OperationSchemas, OrderByClause, OrderDirection, OrderHookContext, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginatedQueryResult, PaginationOptions, PaidLineItem, PartnerConnectionState, PartnerIconId, PartnerId, PartnerResult, PartnerType, PayloadCacheEventData, PayloadDocument, PayloadDocumentEventData, PayloadEventKey, PayloadEventName, PayloadGlobalEventData, PayloadMediaEventData, PayloadPageRegenerationEventData, PayloadRequest, PayloadUserEventData, PaymentEventData, PaymentMethod, PaymentMethodType, PaymentMode, Permission, Picture, Platform, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryConfig, QueryOptions, QueryOrderBy, QueryWhereClause, RateLimitBackend, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RegisteredWidgetBase, RemoveCustomClaimsResponse, ResolveLineItemsContext, ResolvedLayoutConfig, ResolvedLineItem, ResolvedOrder, ResolvedOrderSession, RevokeGitHubAccessRequest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, SendEmailRequest, SendEmailResponse, SeoMeta, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SignUpMetadata, SlotContent, StatusField, StorageOptions, StorageScope, StorageType, Store, StripeBackConfig, StripeCheckoutProvider, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripeOrderBackItem, StripePayment, StripePaymentBackItem, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionBackItem, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SubscriptionUpdate, SupportedLanguage, TechnicalField, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, TokenInfo, TokenResponse, TokenState, TokenStatus, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UpdateSubscriptionFn, UploadOptions, UploadProgressCallback, UploadResult, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseTranslationOptionsEnhanced, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidateBlockOptions, ValidateResult, ValidationRules, ValueTypeForField, VerifiedToken, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WidgetDef, WithMetadata, dndevSchema };
17260
+ export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AIChatRequestSchema, AIChatResponseSchema, AIMessageSchema, AIProviderConfigSchema, AIToolCallSchema, AIToolDefinitionSchema, AIUsageSchema, AI_ERROR_CODES, AI_MODELS, AI_PROVIDERS, AI_ROLES, AI_TIERS, AI_TOKEN_PRICING, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AuthHardening, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BulkAcrossCycleError, BulkCollisionError, BulkDeleteIdSchema, BulkInsertSchema, BulkNotImplementedError, BulkRequestSchema, BulkResponseSchema, BulkUpdateSchema, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONTEXTS, CRUD_OPERATORS, CURRENCY_MAP, CanvasBlockSchema, CanvasEventSchema, CanvasLifetimeSchema, CanvasWidgetMetadataSchema, CheckoutLineItemInputSchema, CheckoutSessionMetadataSchema, ConditionBuilder, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_AI_CONFIG, DEFAULT_AI_MARKUP, DEFAULT_CRUD_TIMEOUT, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEFAULT_UPLOAD_TIMEOUT, DENSITY, DoNotDevError, EDITABLE, EMAIL_ERROR_CODES, EMAIL_PROVIDERS, EMAIL_VERIFICATION_STATUS, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TEXT_FORMATTERS, FIELD_TYPES, FIREBASE_ERROR_MAP, FOOTER_MODE, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, LANGUAGE_COOKIE, LAYOUT_PRESET, LIST_SCHEMA_TYPE, MAX_CHECKOUT_LINE_ITEMS, MAX_SHIPPING_RATE_IDS, OAUTH_EVENTS, OAUTH_PARTNERS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, ProxiedImageUrlSchema, ROUTE_SOURCES, SESSION_RENDER_SEGMENT, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, SendEmailRequestSchema, SendEmailResponseSchema, index_d as ServerUtils, SingletonManager, StripeBackConfigSchema, StripeFrontConfigSchema, StripeOrderBackSchema, StripeOrderShippingSchema, StripeOrderTaxSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, TRANSLATABLE_FIELD_TYPES, USER_ROLES, UserSubscriptionSchema, VISIBILITY, WebhookEventSchema, addMonths, addYears, addressSchema, arraySchema, baseFields, booleanSchema, buildProductJsonLd, calculateSubscriptionEndDate, captureErrorToSentry, checkGitHubAccessSchema, clearGlobalSingleton, clearSchemaGenerators, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createSchemas, createSingleton, createSingletonWithParams, dateSchema, defineEntity, deleteEntitySchema, deriveEntitySeo, detectBulkCollisions, detectErrorSource, disconnectOAuthSchema, emailSchema, enhanceSchema, ensureSpreadable, evaluateCondition, evaluateFieldConditions, exchangeTokenSchema, fileSchema, filesSchema, filterVisibleFields, formatCurrency, formatDate, formatFieldText, formatRelativeTime, gdprConsentSchema, generateCodeChallenge, generateCodeVerifier, generateFirestoreRuleCondition, generatePKCEPair, generateUUID, geopointSchema, getBreakpointFromWidth, getBreakpointUtils, getCollectionName, getConditionDependencies, getConnectionsSchema, getCurrencyLocale, getCurrencySymbol, getCurrentTimestamp, getEntityByCollection, getEntitySchema, getGlobalSingleton, getListCardFieldNames, getProvider, getRegisteredSchemaTypes, getRegisteredScopeProviders, getRoleFromClaims, getSchemaType, getScopeValue, getTranslatedFieldNames, getVisibleFields, getWeekFromISOString, getWidget, githubPermissionSchema, githubRepoConfigSchema, grantGitHubAccessSchema, handleError, hasCustomSchemaGenerator, hasMetadata, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, i18nFieldName, ibanSchema, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isCompactDateString, isEmptyFieldValue, isFieldVisible, isFrameworkField, isMultilingual, isOAuthPartnerId, isPKCESupported, isoToCompactString, languageUrls, lazyImport, listEntitiesSchema, listWidgets, localizePath, mapSchema, mapToDoNotDevError, maybeTranslate, multiselectSchema, neverSchema, normalizeToISOString, numberSchema, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseAcceptLanguage, parseDate, parseDateToNoonUTC, parseISODate, parseServerCookie, passwordSchema, pictureSchema, picturesSchema, priceSchema, publicPathname, rangeOptions, readCookieValue, referenceSchema, refreshTokenSchema, registerSchemaGenerator, registerScopeProvider, registerUniqueConstraintValidator, registerWidget, resetProviders, resolveLanguage, resolveLanguageRoute, revokeGitHubAccessSchema, safeValidate, sanitizeHref, selectSchema, showNotification, splitLanguagePath, stringSchema, stripHtmlTags, switchSchema, telSchema, textSchema, timestampToISOString, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateEntityLabel, translateObjectArray, translateRow, unregisterScopeProvider, updateEntitySchema, updateMetadata, urlSchema, validateAIChatRequest, validateAIChatResponse, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateBlock, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateEnvVar, validateEvent, validateMetadata, validateOAuthPartners, validateSendEmailRequest, validateSendEmailResponse, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUrl, validateUserSubscription, validateWebhookEvent, validateWithSchema, when, withErrorHandling, withGracefulDegradation, withTimeout, wrapAuthError, wrapCrudError, wrapStorageError };
17261
+ export type { AIAPI, AIChatRequest, AIChatResponse, AIConfig, AICostConfig, AICostEvent, AICostRecord, AICostResult, AIErrorCode, AIMessage, AIModelPricing, AIProvider, AIProviderConfig, AIRateLimitConfig, AIRouteConfig, AITierId, AIToolCall, AIToolDefinition, AIToolParameter, AIUsage, AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyEntity, AnyFieldValue, AnyValibotSchema, ApiResponse, AppConfig, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AttemptRecord, AuditEvent, AuditEventType, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthHardeningConfig, AuthHardeningContext, AuthMethod, AuthPartner, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthSessionSnapshot, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BeforeCheckoutHook, BeforeCheckoutOptions, BeforeCheckoutResult, BillingAPI, BillingAdapter, BillingAuthProvider, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, Breakpoint, BreakpointUtils, BuiltInFieldType, BulkAcrossBatch, BulkAcrossResult, BulkCollisionReport, BulkFailure, BulkOperations, BulkRequest, BulkResponse, BulkResult, BusinessEntity, CachedError, CanAPI, CanvasBlock, CanvasCallerAccess, CanvasEvent, CanvasLifetime, CanvasSurface, CanvasWidgetMetadata, CanvasWidgetProps, CheckGitHubAccessRequest, CheckoutAddress, CheckoutLineItemInput, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CheckoutSessionParams, CheckoutSessionResult, CheckoutSessionSnapshot, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, ConditionBuilderLike, ConditionExpression, ConditionGroup, ConditionInput, ConditionNode, ConditionOperator, ConditionResult, ConditionalBehavior, ConfidenceLevel, ConnectOptions, ConsentAPI, ConsentActions, ConsentCategory, ConsentState, Context, CookieOptions, CreateCheckoutSessionRequest, CreateCheckoutSessionRequestInput, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CrudAPI, CrudCardProps, CrudConfig, CrudCreateInput, CrudDocQuery, CrudListQuery, CrudOperationOptions, CrudOperator, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomSchemaGenerator, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DeleteEntityRequest, DeleteEntityResponse, Density, DnDevOverride, DnDevWrapper, DndevFrameworkConfig, DndevProviders, DndevStoreApi, DoNotDevCookieCategories, DocumentSubscriptionCallback, DynamicFormRule, Editable, EffectiveConnectionType, EmailConfig, EmailErrorCode, EmailProvider, EmailRouteConfig, EmailTemplate, EmailTemplateRegistry, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityBrowseBaseProps, EntityCardListProps, EntityDisplayRendererProps, EntityField, EntityFieldMapDefault, EntityFormRendererProps, EntityHookErrors, EntityListParent, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecommendationsProps, EntityRecord, EntityRowFromFields, EntitySeo, EntitySeoConfig, EntitySeoOptions, EntitySeoRecord, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, ExchangeTokenParams, ExchangeTokenRequest, ExchangeTokenResponse, FaviconConfig, Feature, FeatureAccessHookResult, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldTextFormatter, FieldTextOptions, FieldTextTranslate, FieldType, FieldTypeToValue, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterMode, FooterZoneConfig, FormConfig, FormStep, FunctionCallConfig, FunctionCallContext, FunctionCallOptions, FunctionCallResult, FunctionClient, FunctionClientFactoryOptions, FunctionDefaults, FunctionEndpoint, FunctionError, FunctionLoader, FunctionMemory, FunctionMeta, FunctionPlatform, FunctionResponse, FunctionSchema, FunctionSchemas, FunctionSystem, FunctionTrigger, FunctionsConfig, GetCustomClaimsResponse, GetEntityData, GetEntityRequest, GetEntityResponse, GetUserAuthStatusResponse, GetVisibleFieldsOptions, GitHubPermission, GitHubRepoConfig, GrantGitHubAccessRequest, GroupByDefinition, HandleErrorOptions, HeaderZoneConfig, I18nConfig, I18nPluginConfig, I18nProviderProps, ICallableProvider, ICrudAdapter, ID, INetworkManager, IServerAuthAdapter, IStorageAdapter, IStorageManager, IStorageStrategy, InferEntityRow, Invoice, InvoiceItem, LanguageData, LanguageInfo, LanguagePath, LanguageRouteDecision, LanguageRouting, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MergedEntityFieldMap, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutableMergedEntityFieldMap, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, Observable, OperationSchemas, OrderByClause, OrderDirection, OrderHookContext, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginatedQueryResult, PaginationOptions, PaidLineItem, PartnerConnectionState, PartnerIconId, PartnerId, PartnerResult, PartnerType, PayloadCacheEventData, PayloadDocument, PayloadDocumentEventData, PayloadEventKey, PayloadEventName, PayloadGlobalEventData, PayloadMediaEventData, PayloadPageRegenerationEventData, PayloadRequest, PayloadUserEventData, PaymentEventData, PaymentMethod, PaymentMethodType, PaymentMode, Permission, Picture, Platform, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryConfig, QueryOptions, QueryOrderBy, QueryWhereClause, RateLimitBackend, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RegisteredWidgetBase, RemoveCustomClaimsResponse, ResolveLineItemsContext, ResolvedLayoutConfig, ResolvedLineItem, ResolvedOrder, ResolvedOrderSession, RevokeGitHubAccessRequest, RouteMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaMetadata, SchemaOrgAvailability, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, SendEmailRequest, SendEmailResponse, SeoMeta, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SignUpMetadata, SlotContent, StatusField, StorageOptions, StorageScope, StorageType, Store, StripeBackConfig, StripeCheckoutProvider, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripeOrderBackItem, StripePayment, StripePaymentBackItem, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionBackItem, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SubscriptionUpdate, SupportedLanguage, TaxIdHookContext, TaxIdSnapshot, TechnicalField, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, TokenInfo, TokenResponse, TokenState, TokenStatus, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UpdateSubscriptionFn, UploadOptions, UploadProgressCallback, UploadResult, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseTranslationOptionsEnhanced, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidateBlockOptions, ValidateResult, ValidationRules, ValueTypeForField, VerifiedToken, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WidgetDef, WithMetadata, dndevSchema };