@lpdjs/firestore-repo-service 2.6.2-beta.0 → 2.6.2-beta.1

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 (45) hide show
  1. package/dist/{create-servers-CVudVM8e.d.ts → create-servers-BlxW-09M.d.ts} +5 -5
  2. package/dist/{create-servers-B4GrBqdA.d.cts → create-servers-DoOU7VMv.d.cts} +5 -5
  3. package/dist/{firebase-auth-Dpvrd8MP.d.cts → firebase-auth-BTclYg-c.d.cts} +8 -4
  4. package/dist/{firebase-auth-Dpvrd8MP.d.ts → firebase-auth-BTclYg-c.d.ts} +8 -4
  5. package/dist/{index-oFhGCBrY.d.ts → index-BM1mgnpJ.d.ts} +2 -2
  6. package/dist/{index-DzO9MfNI.d.cts → index-BuxFmMV8.d.cts} +2 -2
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +8 -8
  9. package/dist/index.d.ts +8 -8
  10. package/dist/index.js.map +1 -1
  11. package/dist/{openapi-DB8bXZB-.d.ts → openapi-ChZojCEO.d.ts} +1 -1
  12. package/dist/{openapi-B2w5tVRR.d.cts → openapi-DpMtzJGo.d.cts} +1 -1
  13. package/dist/{queue-DYmbVDu5.d.ts → queue-B7uCIF1O.d.ts} +1 -1
  14. package/dist/{queue-B8YUTnBT.d.cts → queue-QISiqmAy.d.cts} +1 -1
  15. package/dist/servers/admin/index.cjs.map +1 -1
  16. package/dist/servers/admin/index.d.cts +3 -3
  17. package/dist/servers/admin/index.d.ts +3 -3
  18. package/dist/servers/admin/index.js.map +1 -1
  19. package/dist/servers/auth/index.cjs +2 -2
  20. package/dist/servers/auth/index.cjs.map +1 -1
  21. package/dist/servers/auth/index.d.cts +1 -1
  22. package/dist/servers/auth/index.d.ts +1 -1
  23. package/dist/servers/auth/index.js +2 -2
  24. package/dist/servers/auth/index.js.map +1 -1
  25. package/dist/servers/crud/index.cjs.map +1 -1
  26. package/dist/servers/crud/index.d.cts +5 -5
  27. package/dist/servers/crud/index.d.ts +5 -5
  28. package/dist/servers/crud/index.js.map +1 -1
  29. package/dist/servers/index.cjs +34 -34
  30. package/dist/servers/index.cjs.map +1 -1
  31. package/dist/servers/index.d.cts +8 -8
  32. package/dist/servers/index.d.ts +8 -8
  33. package/dist/servers/index.js +34 -34
  34. package/dist/servers/index.js.map +1 -1
  35. package/dist/sync/bigquery.d.cts +2 -2
  36. package/dist/sync/bigquery.d.ts +2 -2
  37. package/dist/sync/index.cjs.map +1 -1
  38. package/dist/sync/index.d.cts +5 -5
  39. package/dist/sync/index.d.ts +5 -5
  40. package/dist/sync/index.js.map +1 -1
  41. package/dist/{types-wcX7xfdo.d.cts → types-CCREogoy.d.cts} +1 -1
  42. package/dist/{types-FLGn8CAI.d.ts → types-CMrrjq1V.d.ts} +1 -1
  43. package/dist/{types-BHZ-Gk-s.d.ts → types-CeyFvYXO.d.ts} +1 -1
  44. package/dist/{types-GvexCqrq.d.cts → types-KYdNUffK.d.cts} +1 -1
  45. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { S as SyncQueue } from './queue-DYmbVDu5.js';
2
- import { F as FirestoreSyncConfig, S as SyncEvent } from './types-FLGn8CAI.js';
3
- import { O as OpenAPIDocument } from './openapi-DB8bXZB-.js';
1
+ import { S as SyncQueue } from './queue-B7uCIF1O.js';
2
+ import { F as FirestoreSyncConfig, S as SyncEvent } from './types-CMrrjq1V.js';
3
+ import { O as OpenAPIDocument } from './openapi-ChZojCEO.js';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
6
  import { H as HistoryTriggersConfig } from './read-CTWZjxyh.js';
7
- import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-BHZ-Gk-s.js';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-oFhGCBrY.js';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-CeyFvYXO.js';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BM1mgnpJ.js';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -1,11 +1,11 @@
1
- import { S as SyncQueue } from './queue-B8YUTnBT.cjs';
2
- import { F as FirestoreSyncConfig, S as SyncEvent } from './types-wcX7xfdo.cjs';
3
- import { O as OpenAPIDocument } from './openapi-B2w5tVRR.cjs';
1
+ import { S as SyncQueue } from './queue-QISiqmAy.cjs';
2
+ import { F as FirestoreSyncConfig, S as SyncEvent } from './types-CCREogoy.cjs';
3
+ import { O as OpenAPIDocument } from './openapi-DpMtzJGo.cjs';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
6
  import { H as HistoryTriggersConfig } from './read-CTWZjxyh.cjs';
7
- import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-GvexCqrq.cjs';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-DzO9MfNI.cjs';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-KYdNUffK.cjs';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BuxFmMV8.cjs';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -279,10 +279,14 @@ interface FirebaseAuthConfig<TContext = unknown> {
279
279
  * requests are exempt (a browser never auto-attaches an `Authorization`
280
280
  * header, so they are not CSRF-able).
281
281
  *
282
- * Defaults to `true` for `cookie`/`both` modes and `false` for `bearer`.
283
- * This is the primary protection when `sameSite: "None"` is used and a
284
- * defense-in-depth layer otherwise. Disable only if you implement your own
285
- * CSRF protection upstream.
282
+ * **Defaults to `true` only when `sameSite: "None"`** (and not in `bearer`
283
+ * mode). With the default `Lax`/`Strict` cookie the browser already blocks
284
+ * the session cookie on cross-site mutations, so the check is unnecessary
285
+ * and is left off to avoid false positives behind proxies whose `Host`
286
+ * differs from the public origin (e.g. Cloud Functions v2 / Cloud Run).
287
+ * Set to `true` to force the check on regardless of `sameSite`, or `false`
288
+ * to disable it even with `sameSite: "None"` (only if you implement your
289
+ * own CSRF protection upstream).
286
290
  */
287
291
  csrfProtection?: boolean;
288
292
  /**
@@ -279,10 +279,14 @@ interface FirebaseAuthConfig<TContext = unknown> {
279
279
  * requests are exempt (a browser never auto-attaches an `Authorization`
280
280
  * header, so they are not CSRF-able).
281
281
  *
282
- * Defaults to `true` for `cookie`/`both` modes and `false` for `bearer`.
283
- * This is the primary protection when `sameSite: "None"` is used and a
284
- * defense-in-depth layer otherwise. Disable only if you implement your own
285
- * CSRF protection upstream.
282
+ * **Defaults to `true` only when `sameSite: "None"`** (and not in `bearer`
283
+ * mode). With the default `Lax`/`Strict` cookie the browser already blocks
284
+ * the session cookie on cross-site mutations, so the check is unnecessary
285
+ * and is left off to avoid false positives behind proxies whose `Host`
286
+ * differs from the public origin (e.g. Cloud Functions v2 / Cloud Run).
287
+ * Set to `true` to force the check on regardless of `sameSite`, or `false`
288
+ * to disable it even with `sameSite: "None"` (only if you implement your
289
+ * own CSRF protection upstream).
286
290
  */
287
291
  csrfProtection?: boolean;
288
292
  /**
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-BHZ-Gk-s.js';
4
- import { A as AuthExtension, h as Middleware } from './firebase-auth-Dpvrd8MP.js';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-CeyFvYXO.js';
4
+ import { A as AuthExtension, h as Middleware } from './firebase-auth-BTclYg-c.js';
5
5
 
6
6
  interface PageOptions {
7
7
  title: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-GvexCqrq.cjs';
4
- import { A as AuthExtension, h as Middleware } from './firebase-auth-Dpvrd8MP.cjs';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-KYdNUffK.cjs';
4
+ import { A as AuthExtension, h as Middleware } from './firebase-auth-BTclYg-c.cjs';
5
5
 
6
6
  interface PageOptions {
7
7
  title: string;