@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.
|
@@ -54,6 +54,16 @@ export interface OutboxAdapter {
|
|
|
54
54
|
* the tenant.
|
|
55
55
|
*/
|
|
56
56
|
replay(id: string, tenantId: string): Promise<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* Permanently delete a dead-lettered event so an operator can drop one that
|
|
59
|
+
* will never succeed. Only deletes when the row matches both the id and
|
|
60
|
+
* `tenantId` and is dead-lettered — pending and processed events are never
|
|
61
|
+
* touched. Returns false when no such row exists.
|
|
62
|
+
*
|
|
63
|
+
* Optional so third-party adapters keep compiling; the management API
|
|
64
|
+
* answers 501 when it is missing.
|
|
65
|
+
*/
|
|
66
|
+
discard?(id: string, tenantId: string): Promise<boolean>;
|
|
57
67
|
/** Delete processed events older than the given ISO date. Returns count deleted. */
|
|
58
68
|
cleanup(olderThan: string): Promise<number>;
|
|
59
69
|
}
|
|
@@ -42,6 +42,7 @@ export declare const requestContextSchema: z.ZodObject<{
|
|
|
42
42
|
user_agent: z.ZodOptional<z.ZodString>;
|
|
43
43
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
44
44
|
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
45
|
+
authorization_url: z.ZodOptional<z.ZodString>;
|
|
45
46
|
}, z.core.$strip>;
|
|
46
47
|
export type RequestContext = z.infer<typeof requestContextSchema>;
|
|
47
48
|
export declare const responseContextSchema: z.ZodObject<{
|
|
@@ -107,6 +108,7 @@ export declare const auditEventInsertSchema: z.ZodObject<{
|
|
|
107
108
|
user_agent: z.ZodOptional<z.ZodString>;
|
|
108
109
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
109
110
|
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
111
|
+
authorization_url: z.ZodOptional<z.ZodString>;
|
|
110
112
|
}, z.core.$strip>;
|
|
111
113
|
response: z.ZodOptional<z.ZodObject<{
|
|
112
114
|
status_code: z.ZodNumber;
|
|
@@ -134,6 +136,7 @@ export declare const auditEventInsertSchema: z.ZodObject<{
|
|
|
134
136
|
}, z.core.$strip>>;
|
|
135
137
|
hostname: z.ZodString;
|
|
136
138
|
is_mobile: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
execution_id: z.ZodOptional<z.ZodString>;
|
|
137
140
|
timestamp: z.ZodString;
|
|
138
141
|
}, z.core.$strip>;
|
|
139
142
|
export type AuditEventInsert = z.infer<typeof auditEventInsertSchema>;
|
|
@@ -182,6 +185,7 @@ export declare const auditEventSchema: z.ZodObject<{
|
|
|
182
185
|
user_agent: z.ZodOptional<z.ZodString>;
|
|
183
186
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
184
187
|
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
188
|
+
authorization_url: z.ZodOptional<z.ZodString>;
|
|
185
189
|
}, z.core.$strip>;
|
|
186
190
|
response: z.ZodOptional<z.ZodObject<{
|
|
187
191
|
status_code: z.ZodNumber;
|
|
@@ -209,6 +213,7 @@ export declare const auditEventSchema: z.ZodObject<{
|
|
|
209
213
|
}, z.core.$strip>>;
|
|
210
214
|
hostname: z.ZodString;
|
|
211
215
|
is_mobile: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
execution_id: z.ZodOptional<z.ZodString>;
|
|
212
217
|
timestamp: z.ZodString;
|
|
213
218
|
id: z.ZodString;
|
|
214
219
|
}, z.core.$strip>;
|