@authhero/adapter-interfaces 0.152.0 → 0.153.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.
@@ -48747,8 +48747,10 @@ export interface OutboxEvent extends AuditEvent {
48747
48747
  error: string | null;
48748
48748
  }
48749
48749
  export interface OutboxAdapter {
48750
- /** Write an audit event to the outbox */
48751
- create(tenantId: string, event: AuditEventInsert): Promise<void>;
48750
+ /** Write an audit event to the outbox. Returns the event ID. */
48751
+ create(tenantId: string, event: AuditEventInsert): Promise<string>;
48752
+ /** Fetch events by their IDs */
48753
+ getByIds(ids: string[]): Promise<OutboxEvent[]>;
48752
48754
  /** Fetch unprocessed events ready for delivery */
48753
48755
  getUnprocessed(limit: number): Promise<OutboxEvent[]>;
48754
48756
  /** Atomically claim events for exclusive processing. Returns IDs that were successfully claimed. */
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.152.0",
14
+ "version": "0.153.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],