authhero 0.21.0 → 0.23.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 +19 -19
- package/dist/authhero.d.ts +37 -3
- package/dist/authhero.mjs +3037 -2870
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export type Variables = {
|
|
|
9
9
|
username?: string;
|
|
10
10
|
connection?: string;
|
|
11
11
|
body?: any;
|
|
12
|
+
user?: {
|
|
13
|
+
sub: string;
|
|
14
|
+
tenant_id: string;
|
|
15
|
+
};
|
|
12
16
|
};
|
|
13
17
|
export declare const totalsSchema: z.ZodObject<{
|
|
14
18
|
start: z.ZodNumber;
|
|
@@ -4274,10 +4278,11 @@ export interface ListCodesResponse extends Totals {
|
|
|
4274
4278
|
codes: Code[];
|
|
4275
4279
|
}
|
|
4276
4280
|
export interface CodesAdapter {
|
|
4277
|
-
create: (tenant_id: string,
|
|
4281
|
+
create: (tenant_id: string, code: CodeInsert) => Promise<Code>;
|
|
4278
4282
|
get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
|
|
4279
4283
|
list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
|
|
4280
|
-
|
|
4284
|
+
used: (tenant_id: string, code_id: string) => Promise<boolean>;
|
|
4285
|
+
remove: (tenant_id: string, code_id: string) => Promise<boolean>;
|
|
4281
4286
|
}
|
|
4282
4287
|
export interface PasswordsAdapter {
|
|
4283
4288
|
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
@@ -6284,7 +6289,36 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6284
6289
|
status: 200;
|
|
6285
6290
|
};
|
|
6286
6291
|
};
|
|
6287
|
-
}, "/.well-known"
|
|
6292
|
+
}, "/.well-known"> & import("hono/types").MergeSchemaPath<{
|
|
6293
|
+
"/": {
|
|
6294
|
+
$get: {
|
|
6295
|
+
input: {};
|
|
6296
|
+
output: {
|
|
6297
|
+
sub: string;
|
|
6298
|
+
email_verified: boolean;
|
|
6299
|
+
email?: string | undefined;
|
|
6300
|
+
given_name?: string | undefined;
|
|
6301
|
+
family_name?: string | undefined;
|
|
6302
|
+
};
|
|
6303
|
+
outputFormat: "json" | "text";
|
|
6304
|
+
status: 200;
|
|
6305
|
+
};
|
|
6306
|
+
};
|
|
6307
|
+
}, "/userinfo"> & import("hono/types").MergeSchemaPath<{
|
|
6308
|
+
"/": {
|
|
6309
|
+
$get: {
|
|
6310
|
+
input: {
|
|
6311
|
+
query: {
|
|
6312
|
+
client_id: string;
|
|
6313
|
+
returnTo?: string | undefined;
|
|
6314
|
+
};
|
|
6315
|
+
};
|
|
6316
|
+
output: {};
|
|
6317
|
+
outputFormat: string;
|
|
6318
|
+
status: 302;
|
|
6319
|
+
};
|
|
6320
|
+
};
|
|
6321
|
+
}, "/v2/logout">, "/">;
|
|
6288
6322
|
createX509Certificate: typeof createX509Certificate;
|
|
6289
6323
|
};
|
|
6290
6324
|
|