@authhero/adapter-interfaces 3.7.0 → 3.8.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.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +22 -2
- package/dist/adapter-interfaces.mjs +428 -420
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/Themes.d.ts +0 -1
- package/dist/types/types/AuditEvent.d.ts +4 -0
- package/dist/types/types/Strategy.d.ts +17 -0
- package/package.json +1 -1
|
@@ -10,6 +10,5 @@ export interface ThemesAdapter {
|
|
|
10
10
|
create: (tenant_id: string, theme: ThemeInsert, themeId?: string, options?: CreateOptions) => Promise<Theme>;
|
|
11
11
|
remove: (tenant_id: string, themeId: string) => Promise<boolean>;
|
|
12
12
|
get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
|
|
13
|
-
list: (tenant_id: string) => Promise<Theme[]>;
|
|
14
13
|
update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
|
|
15
14
|
}
|
|
@@ -111,6 +111,8 @@ export declare const auditEventInsertSchema: z.ZodObject<{
|
|
|
111
111
|
body: z.ZodOptional<z.ZodUnknown>;
|
|
112
112
|
}, z.core.$strip>>;
|
|
113
113
|
connection: z.ZodOptional<z.ZodString>;
|
|
114
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
115
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
114
116
|
strategy: z.ZodOptional<z.ZodString>;
|
|
115
117
|
strategy_type: z.ZodOptional<z.ZodString>;
|
|
116
118
|
audience: z.ZodOptional<z.ZodString>;
|
|
@@ -183,6 +185,8 @@ export declare const auditEventSchema: z.ZodObject<{
|
|
|
183
185
|
body: z.ZodOptional<z.ZodUnknown>;
|
|
184
186
|
}, z.core.$strip>>;
|
|
185
187
|
connection: z.ZodOptional<z.ZodString>;
|
|
188
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
189
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
186
190
|
strategy: z.ZodOptional<z.ZodString>;
|
|
187
191
|
strategy_type: z.ZodOptional<z.ZodString>;
|
|
188
192
|
audience: z.ZodOptional<z.ZodString>;
|
|
@@ -20,3 +20,20 @@ export declare const StrategyType: {
|
|
|
20
20
|
readonly SOCIAL: "social";
|
|
21
21
|
readonly PASSWORDLESS: "passwordless";
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* The strategy value Auth0 stores on database connections. The canonical
|
|
25
|
+
* target for new connection rows; see isDatabaseConnectionStrategy for
|
|
26
|
+
* the legacy spellings still present in existing data.
|
|
27
|
+
*/
|
|
28
|
+
export declare const DATABASE_CONNECTION_STRATEGY = "auth0";
|
|
29
|
+
/**
|
|
30
|
+
* True when a connection's `strategy` field marks it as a native database
|
|
31
|
+
* (username/password) connection.
|
|
32
|
+
*
|
|
33
|
+
* Auth0 stores database connections with `strategy: "auth0"`. Existing
|
|
34
|
+
* AuthHero data also contains two legacy spellings: the connection NAME
|
|
35
|
+
* ("Username-Password-Authentication") reused as the strategy, and the
|
|
36
|
+
* legacy provider literal ("auth2"). All readers must accept all three
|
|
37
|
+
* until connection rows are backfilled to "auth0".
|
|
38
|
+
*/
|
|
39
|
+
export declare function isDatabaseConnectionStrategy(strategy: string | undefined | null): boolean;
|