@rebasepro/types 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,11 @@ export interface StorageAuthorizeContext {
22
22
  operation: StorageOperation;
23
23
  /** Null when the route allows unauthenticated access. */
24
24
  user: StorageAuthorizeUser | null;
25
- /** Named backend the request targeted, when one was given. */
25
+ /**
26
+ * Named backend the request targeted, when one was given — as its canonical
27
+ * key, the one the request is served from (`" media "` arrives as
28
+ * `"media"`). Absent for the default source, however the request named it.
29
+ */
26
30
  storageId?: string;
27
31
  /**
28
32
  * Trusted, RLS-bypassing data access, so the hook can answer the question it
@@ -45,6 +45,13 @@ export type User = {
45
45
  * Whether the user's email address has been verified.
46
46
  */
47
47
  readonly emailVerified?: boolean;
48
+ /**
49
+ * The address this account is moving to, while the link mailed there is
50
+ * waiting to be followed (`client.auth.changeEmail`). `email` stays the
51
+ * account's address until then. `null` or absent when no change is
52
+ * waiting.
53
+ */
54
+ readonly pendingEmail?: string | null;
48
55
  /**
49
56
  * Role IDs assigned to this user (e.g. `["admin", "editor"]`).
50
57
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebasepro/types",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Rebase type definitions — shared interfaces and controller types",
5
5
  "keywords": [
6
6
  "rebase",