@authhero/adapter-interfaces 4.16.0 → 4.18.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.
@@ -342,6 +342,7 @@ declare const requestContextSchema: z.ZodObject<{
342
342
  user_agent: z.ZodOptional<z.ZodString>;
343
343
  correlation_id: z.ZodOptional<z.ZodString>;
344
344
  redirect_uri: z.ZodOptional<z.ZodString>;
345
+ authorization_url: z.ZodOptional<z.ZodString>;
345
346
  }, z.core.$strip>;
346
347
  type RequestContext = z.infer<typeof requestContextSchema>;
347
348
  declare const responseContextSchema: z.ZodObject<{
@@ -407,6 +408,7 @@ declare const auditEventInsertSchema: z.ZodObject<{
407
408
  user_agent: z.ZodOptional<z.ZodString>;
408
409
  correlation_id: z.ZodOptional<z.ZodString>;
409
410
  redirect_uri: z.ZodOptional<z.ZodString>;
411
+ authorization_url: z.ZodOptional<z.ZodString>;
410
412
  }, z.core.$strip>;
411
413
  response: z.ZodOptional<z.ZodObject<{
412
414
  status_code: z.ZodNumber;
@@ -434,6 +436,7 @@ declare const auditEventInsertSchema: z.ZodObject<{
434
436
  }, z.core.$strip>>;
435
437
  hostname: z.ZodString;
436
438
  is_mobile: z.ZodOptional<z.ZodBoolean>;
439
+ execution_id: z.ZodOptional<z.ZodString>;
437
440
  timestamp: z.ZodString;
438
441
  }, z.core.$strip>;
439
442
  type AuditEventInsert = z.infer<typeof auditEventInsertSchema>;
@@ -482,6 +485,7 @@ declare const auditEventSchema: z.ZodObject<{
482
485
  user_agent: z.ZodOptional<z.ZodString>;
483
486
  correlation_id: z.ZodOptional<z.ZodString>;
484
487
  redirect_uri: z.ZodOptional<z.ZodString>;
488
+ authorization_url: z.ZodOptional<z.ZodString>;
485
489
  }, z.core.$strip>;
486
490
  response: z.ZodOptional<z.ZodObject<{
487
491
  status_code: z.ZodNumber;
@@ -509,6 +513,7 @@ declare const auditEventSchema: z.ZodObject<{
509
513
  }, z.core.$strip>>;
510
514
  hostname: z.ZodString;
511
515
  is_mobile: z.ZodOptional<z.ZodBoolean>;
516
+ execution_id: z.ZodOptional<z.ZodString>;
512
517
  timestamp: z.ZodString;
513
518
  id: z.ZodString;
514
519
  }, z.core.$strip>;
@@ -13104,6 +13109,16 @@ interface OutboxAdapter {
13104
13109
  * the tenant.
13105
13110
  */
13106
13111
  replay(id: string, tenantId: string): Promise<boolean>;
13112
+ /**
13113
+ * Permanently delete a dead-lettered event so an operator can drop one that
13114
+ * will never succeed. Only deletes when the row matches both the id and
13115
+ * `tenantId` and is dead-lettered — pending and processed events are never
13116
+ * touched. Returns false when no such row exists.
13117
+ *
13118
+ * Optional so third-party adapters keep compiling; the management API
13119
+ * answers 501 when it is missing.
13120
+ */
13121
+ discard?(id: string, tenantId: string): Promise<boolean>;
13107
13122
  /** Delete processed events older than the given ISO date. Returns count deleted. */
13108
13123
  cleanup(olderThan: string): Promise<number>;
13109
13124
  }
@@ -122,7 +122,8 @@ var t = e.object({
122
122
  ip: e.string(),
123
123
  user_agent: e.string().optional(),
124
124
  correlation_id: e.string().optional(),
125
- redirect_uri: e.string().optional()
125
+ redirect_uri: e.string().optional(),
126
+ authorization_url: e.string().optional()
126
127
  }), he = e.object({
127
128
  status_code: e.number(),
128
129
  body: e.unknown().optional()
@@ -158,6 +159,7 @@ var t = e.object({
158
159
  auth0_client: _e.optional(),
159
160
  hostname: e.string(),
160
161
  is_mobile: e.boolean().optional(),
162
+ execution_id: e.string().optional(),
161
163
  timestamp: e.string()
162
164
  }), ye = ve.extend({ id: e.string() }), be = e.enum([
163
165
  "AUTH0",