authhero 0.275.0 → 0.276.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/authhero.cjs +25 -25
- package/dist/authhero.d.ts +16 -2
- package/dist/authhero.mjs +1062 -1043
- package/dist/stats.html +1 -1
- package/package.json +4 -4
package/dist/authhero.d.ts
CHANGED
|
@@ -13114,43 +13114,56 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13114
13114
|
}>;
|
|
13115
13115
|
export type Log = z.infer<typeof logSchema>;
|
|
13116
13116
|
export declare const passwordInsertSchema: z.ZodObject<{
|
|
13117
|
+
id: z.ZodOptional<z.ZodString>;
|
|
13117
13118
|
user_id: z.ZodString;
|
|
13118
13119
|
password: z.ZodString;
|
|
13119
13120
|
algorithm: z.ZodDefault<z.ZodEnum<[
|
|
13120
13121
|
"bcrypt",
|
|
13121
13122
|
"argon2id"
|
|
13122
13123
|
]>>;
|
|
13124
|
+
is_current: z.ZodDefault<z.ZodBoolean>;
|
|
13123
13125
|
}, "strip", z.ZodTypeAny, {
|
|
13124
13126
|
password: string;
|
|
13125
13127
|
user_id: string;
|
|
13126
13128
|
algorithm: "bcrypt" | "argon2id";
|
|
13129
|
+
is_current: boolean;
|
|
13130
|
+
id?: string | undefined;
|
|
13127
13131
|
}, {
|
|
13128
13132
|
password: string;
|
|
13129
13133
|
user_id: string;
|
|
13134
|
+
id?: string | undefined;
|
|
13130
13135
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
13136
|
+
is_current?: boolean | undefined;
|
|
13131
13137
|
}>;
|
|
13132
13138
|
export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
|
|
13133
13139
|
export declare const passwordSchema: z.ZodObject<{
|
|
13134
|
-
created_at: z.ZodString;
|
|
13135
|
-
updated_at: z.ZodString;
|
|
13136
13140
|
user_id: z.ZodString;
|
|
13137
13141
|
password: z.ZodString;
|
|
13138
13142
|
algorithm: z.ZodDefault<z.ZodEnum<[
|
|
13139
13143
|
"bcrypt",
|
|
13140
13144
|
"argon2id"
|
|
13141
13145
|
]>>;
|
|
13146
|
+
is_current: z.ZodDefault<z.ZodBoolean>;
|
|
13147
|
+
} & {
|
|
13148
|
+
id: z.ZodString;
|
|
13149
|
+
created_at: z.ZodString;
|
|
13150
|
+
updated_at: z.ZodString;
|
|
13142
13151
|
}, "strip", z.ZodTypeAny, {
|
|
13143
13152
|
password: string;
|
|
13144
13153
|
created_at: string;
|
|
13145
13154
|
updated_at: string;
|
|
13146
13155
|
user_id: string;
|
|
13156
|
+
id: string;
|
|
13147
13157
|
algorithm: "bcrypt" | "argon2id";
|
|
13158
|
+
is_current: boolean;
|
|
13148
13159
|
}, {
|
|
13149
13160
|
password: string;
|
|
13150
13161
|
created_at: string;
|
|
13151
13162
|
updated_at: string;
|
|
13152
13163
|
user_id: string;
|
|
13164
|
+
id: string;
|
|
13153
13165
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
13166
|
+
is_current?: boolean | undefined;
|
|
13154
13167
|
}>;
|
|
13155
13168
|
export type Password = z.infer<typeof passwordSchema>;
|
|
13156
13169
|
export declare const sessionInsertSchema: z.ZodObject<{
|
|
@@ -17080,6 +17093,7 @@ export interface PasswordsAdapter {
|
|
|
17080
17093
|
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
17081
17094
|
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
17082
17095
|
get: (tenant_id: string, user_id: string) => Promise<Password | null>;
|
|
17096
|
+
list: (tenant_id: string, user_id: string, limit?: number) => Promise<Password[]>;
|
|
17083
17097
|
}
|
|
17084
17098
|
export interface ListSesssionsResponse extends Totals {
|
|
17085
17099
|
sessions: Session[];
|