@authhero/adapter-interfaces 0.152.0 → 0.154.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.
@@ -48663,6 +48663,7 @@ export interface GeoAdapter {
48663
48663
  export interface AuthenticationMethodsAdapter {
48664
48664
  create: (tenant_id: string, method: AuthenticationMethodInsert) => Promise<AuthenticationMethod>;
48665
48665
  get: (tenant_id: string, method_id: string) => Promise<AuthenticationMethod | null>;
48666
+ getByCredentialId: (tenant_id: string, credential_id: string) => Promise<AuthenticationMethod | null>;
48666
48667
  list: (tenant_id: string, user_id: string) => Promise<AuthenticationMethod[]>;
48667
48668
  update: (tenant_id: string, method_id: string, data: AuthenticationMethodUpdate) => Promise<AuthenticationMethod>;
48668
48669
  remove: (tenant_id: string, method_id: string) => Promise<boolean>;
@@ -48747,8 +48748,10 @@ export interface OutboxEvent extends AuditEvent {
48747
48748
  error: string | null;
48748
48749
  }
48749
48750
  export interface OutboxAdapter {
48750
- /** Write an audit event to the outbox */
48751
- create(tenantId: string, event: AuditEventInsert): Promise<void>;
48751
+ /** Write an audit event to the outbox. Returns the event ID. */
48752
+ create(tenantId: string, event: AuditEventInsert): Promise<string>;
48753
+ /** Fetch events by their IDs */
48754
+ getByIds(ids: string[]): Promise<OutboxEvent[]>;
48752
48755
  /** Fetch unprocessed events ready for delivery */
48753
48756
  getUnprocessed(limit: number): Promise<OutboxEvent[]>;
48754
48757
  /** 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.154.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],