@absolutejs/auth 0.48.5 → 0.48.6

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.
@@ -25,6 +25,7 @@ export declare const startImpersonation: <UserType>({ allowNested, authSessionSt
25
25
  actorId: string;
26
26
  readOnly?: boolean;
27
27
  reason: string;
28
+ suppressSideEffects?: boolean;
28
29
  };
29
30
  inMemorySession: SessionRecord<UserType>;
30
31
  sessionDurationMs?: number;
package/dist/types.d.ts CHANGED
@@ -53,6 +53,13 @@ export type Impersonator = {
53
53
  reason: string;
54
54
  returnToSessionId?: UserSessionId;
55
55
  startedAt: number;
56
+ /** Sandbox lever, surfaced for the app to enforce: when true, the app should
57
+ * suppress outbound side-effects (emails / SMS / push / notifications)
58
+ * triggered while acting as the member — so an admin can run a flow and watch
59
+ * the behavior WITHOUT the member or their partners being contacted. Like
60
+ * `readOnly`, the package only carries it; enforce it at your emitters.
61
+ * Independent of `readOnly` (a session can act AND suppress = "sandbox"). */
62
+ suppressSideEffects?: boolean;
56
63
  };
57
64
  export type SessionData<UserType> = {
58
65
  /** Snapshot of your user, serialized into the session at login and handed to
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.48.5",
2
+ "version": "0.48.6",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {