authhero 0.20.2 → 0.22.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.
@@ -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;
@@ -6200,6 +6204,35 @@ export declare function init(config: AuthHeroConfig): {
6200
6204
  Bindings: Bindings;
6201
6205
  Variables: Variables;
6202
6206
  }, import("hono/types").MergeSchemaPath<{
6207
+ "/": {
6208
+ $get: {
6209
+ input: {};
6210
+ output: {
6211
+ sub: string;
6212
+ email_verified: boolean;
6213
+ email?: string | undefined;
6214
+ given_name?: string | undefined;
6215
+ family_name?: string | undefined;
6216
+ };
6217
+ outputFormat: "json" | "text";
6218
+ status: 200;
6219
+ };
6220
+ };
6221
+ }, "/userinfo"> & import("hono/types").MergeSchemaPath<{
6222
+ "/": {
6223
+ $get: {
6224
+ input: {
6225
+ query: {
6226
+ client_id: string;
6227
+ returnTo?: string | undefined;
6228
+ };
6229
+ };
6230
+ output: {};
6231
+ outputFormat: string;
6232
+ status: 302;
6233
+ };
6234
+ };
6235
+ }, "/v2/logout"> & import("hono/types").MergeSchemaPath<{
6203
6236
  "/": {
6204
6237
  $post: {
6205
6238
  input: {