authhero 0.5.0 → 0.6.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.
@@ -2,6 +2,14 @@
2
2
 
3
3
  import { OpenAPIHono, z } from '@hono/zod-openapi';
4
4
 
5
+ export type Variables = {
6
+ tenant_id: string;
7
+ client_id?: string;
8
+ user_id?: string;
9
+ username?: string;
10
+ connection?: string;
11
+ body?: any;
12
+ };
5
13
  export interface Totals {
6
14
  start: number;
7
15
  limit: number;
@@ -2980,7 +2988,6 @@ export interface DataAdapters {
2980
2988
  users: UserDataAdapter;
2981
2989
  }
2982
2990
  export type Bindings = {
2983
- ISSUER: string;
2984
2991
  ENVIRONMENT: string;
2985
2992
  AUTH_URL: string;
2986
2993
  data: DataAdapters;
@@ -2988,9 +2995,1581 @@ export type Bindings = {
2988
2995
  };
2989
2996
  export interface AuthHeroConfig {
2990
2997
  dataAdapter: DataAdapters;
2998
+ issuer: string;
2991
2999
  }
2992
- export declare function init(options: AuthHeroConfig): OpenAPIHono<{
2993
- Bindings: Bindings;
2994
- }, {}, "/">;
3000
+ export declare function init(config: AuthHeroConfig): {
3001
+ rootApp: OpenAPIHono<{
3002
+ Bindings: Bindings;
3003
+ }, {}, "/">;
3004
+ managementApp: OpenAPIHono<{
3005
+ Bindings: Bindings;
3006
+ Variables: Variables;
3007
+ }, import("hono/types").MergeSchemaPath<{
3008
+ "/": {
3009
+ $get: {
3010
+ input: {
3011
+ header: {
3012
+ "tenant-id": string;
3013
+ };
3014
+ };
3015
+ output: {
3016
+ universal_login_experience: "new" | "classic";
3017
+ identifier_first: boolean;
3018
+ password_first: boolean;
3019
+ webauthn_platform_first_factor: boolean;
3020
+ };
3021
+ outputFormat: "json" | "text";
3022
+ status: 200;
3023
+ };
3024
+ };
3025
+ } & {
3026
+ "/": {
3027
+ $patch: {
3028
+ input: {
3029
+ header: {
3030
+ "tenant-id": string;
3031
+ };
3032
+ } & {
3033
+ json: {
3034
+ universal_login_experience?: "new" | "classic" | undefined;
3035
+ identifier_first?: boolean | undefined;
3036
+ password_first?: boolean | undefined;
3037
+ webauthn_platform_first_factor?: boolean | undefined;
3038
+ };
3039
+ };
3040
+ output: {};
3041
+ outputFormat: string;
3042
+ status: 200;
3043
+ };
3044
+ };
3045
+ }, "/api/v2/prompts"> & import("hono/types").MergeSchemaPath<{
3046
+ "/": {
3047
+ $get: {
3048
+ input: {
3049
+ query: {
3050
+ sort?: string | string[] | undefined;
3051
+ page?: string | string[] | undefined;
3052
+ per_page?: string | string[] | undefined;
3053
+ include_totals?: string | string[] | undefined;
3054
+ q?: string | string[] | undefined;
3055
+ };
3056
+ } & {
3057
+ header: {
3058
+ "tenant-id": string;
3059
+ };
3060
+ };
3061
+ output: {
3062
+ created_at: string;
3063
+ updated_at: string;
3064
+ name: string;
3065
+ options?: {
3066
+ issuer?: string | undefined;
3067
+ client_secret?: string | undefined;
3068
+ client_id?: string | undefined;
3069
+ scope?: string | undefined;
3070
+ kid?: string | undefined;
3071
+ team_id?: string | undefined;
3072
+ realms?: string | undefined;
3073
+ app_secret?: string | undefined;
3074
+ authorization_endpoint?: string | undefined;
3075
+ token_endpoint?: string | undefined;
3076
+ userinfo_endpoint?: string | undefined;
3077
+ jwks_uri?: string | undefined;
3078
+ discovery_url?: string | undefined;
3079
+ } | undefined;
3080
+ id?: string | undefined;
3081
+ response_type?: AuthorizationResponseType | undefined;
3082
+ response_mode?: AuthorizationResponseMode | undefined;
3083
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
3084
+ enabled_clients?: string[] | undefined;
3085
+ }[] | {
3086
+ start: number;
3087
+ limit: number;
3088
+ length: number;
3089
+ connections: {
3090
+ created_at: string;
3091
+ updated_at: string;
3092
+ name: string;
3093
+ options?: {
3094
+ issuer?: string | undefined;
3095
+ client_secret?: string | undefined;
3096
+ client_id?: string | undefined;
3097
+ scope?: string | undefined;
3098
+ kid?: string | undefined;
3099
+ team_id?: string | undefined;
3100
+ realms?: string | undefined;
3101
+ app_secret?: string | undefined;
3102
+ authorization_endpoint?: string | undefined;
3103
+ token_endpoint?: string | undefined;
3104
+ userinfo_endpoint?: string | undefined;
3105
+ jwks_uri?: string | undefined;
3106
+ discovery_url?: string | undefined;
3107
+ } | undefined;
3108
+ id?: string | undefined;
3109
+ response_type?: AuthorizationResponseType | undefined;
3110
+ response_mode?: AuthorizationResponseMode | undefined;
3111
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
3112
+ enabled_clients?: string[] | undefined;
3113
+ }[];
3114
+ };
3115
+ outputFormat: "json" | "text";
3116
+ status: 200;
3117
+ };
3118
+ };
3119
+ } & {
3120
+ "/:id": {
3121
+ $get: {
3122
+ input: {
3123
+ param: {
3124
+ id: string;
3125
+ };
3126
+ } & {
3127
+ header: {
3128
+ "tenant-id": string;
3129
+ };
3130
+ };
3131
+ output: {
3132
+ created_at: string;
3133
+ updated_at: string;
3134
+ name: string;
3135
+ options?: {
3136
+ issuer?: string | undefined;
3137
+ client_secret?: string | undefined;
3138
+ client_id?: string | undefined;
3139
+ scope?: string | undefined;
3140
+ kid?: string | undefined;
3141
+ team_id?: string | undefined;
3142
+ realms?: string | undefined;
3143
+ app_secret?: string | undefined;
3144
+ authorization_endpoint?: string | undefined;
3145
+ token_endpoint?: string | undefined;
3146
+ userinfo_endpoint?: string | undefined;
3147
+ jwks_uri?: string | undefined;
3148
+ discovery_url?: string | undefined;
3149
+ } | undefined;
3150
+ id?: string | undefined;
3151
+ response_type?: AuthorizationResponseType | undefined;
3152
+ response_mode?: AuthorizationResponseMode | undefined;
3153
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
3154
+ enabled_clients?: string[] | undefined;
3155
+ };
3156
+ outputFormat: "json" | "text";
3157
+ status: 200;
3158
+ };
3159
+ };
3160
+ } & {
3161
+ "/:id": {
3162
+ $delete: {
3163
+ input: {
3164
+ param: {
3165
+ id: string;
3166
+ };
3167
+ } & {
3168
+ header: {
3169
+ "tenant-id": string;
3170
+ };
3171
+ };
3172
+ output: {};
3173
+ outputFormat: string;
3174
+ status: 200;
3175
+ };
3176
+ };
3177
+ } & {
3178
+ "/:id": {
3179
+ $patch: {
3180
+ input: {
3181
+ param: {
3182
+ id: string;
3183
+ };
3184
+ } & {
3185
+ header: {
3186
+ "tenant-id": string;
3187
+ };
3188
+ } & {
3189
+ json: {
3190
+ options?: {
3191
+ issuer?: string | undefined;
3192
+ client_secret?: string | undefined;
3193
+ client_id?: string | undefined;
3194
+ scope?: string | undefined;
3195
+ kid?: string | undefined;
3196
+ team_id?: string | undefined;
3197
+ realms?: string | undefined;
3198
+ app_secret?: string | undefined;
3199
+ authorization_endpoint?: string | undefined;
3200
+ token_endpoint?: string | undefined;
3201
+ userinfo_endpoint?: string | undefined;
3202
+ jwks_uri?: string | undefined;
3203
+ discovery_url?: string | undefined;
3204
+ } | undefined;
3205
+ name?: string | undefined;
3206
+ id?: string | undefined;
3207
+ strategy?: "email" | "custom" | "Username-Password-Authentication" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "oidc" | "oauth2" | undefined;
3208
+ response_type?: AuthorizationResponseType | undefined;
3209
+ response_mode?: AuthorizationResponseMode | undefined;
3210
+ enabled_clients?: string[] | undefined;
3211
+ };
3212
+ };
3213
+ output: {
3214
+ created_at: string;
3215
+ updated_at: string;
3216
+ name: string;
3217
+ options?: {
3218
+ issuer?: string | undefined;
3219
+ client_secret?: string | undefined;
3220
+ client_id?: string | undefined;
3221
+ scope?: string | undefined;
3222
+ kid?: string | undefined;
3223
+ team_id?: string | undefined;
3224
+ realms?: string | undefined;
3225
+ app_secret?: string | undefined;
3226
+ authorization_endpoint?: string | undefined;
3227
+ token_endpoint?: string | undefined;
3228
+ userinfo_endpoint?: string | undefined;
3229
+ jwks_uri?: string | undefined;
3230
+ discovery_url?: string | undefined;
3231
+ } | undefined;
3232
+ id?: string | undefined;
3233
+ response_type?: AuthorizationResponseType | undefined;
3234
+ response_mode?: AuthorizationResponseMode | undefined;
3235
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
3236
+ enabled_clients?: string[] | undefined;
3237
+ };
3238
+ outputFormat: "json" | "text";
3239
+ status: 200;
3240
+ };
3241
+ };
3242
+ } & {
3243
+ "/": {
3244
+ $post: {
3245
+ input: {
3246
+ header: {
3247
+ "tenant-id": string;
3248
+ };
3249
+ } & {
3250
+ json: {
3251
+ name: string;
3252
+ options?: {
3253
+ issuer?: string | undefined;
3254
+ client_secret?: string | undefined;
3255
+ client_id?: string | undefined;
3256
+ scope?: string | undefined;
3257
+ kid?: string | undefined;
3258
+ team_id?: string | undefined;
3259
+ realms?: string | undefined;
3260
+ app_secret?: string | undefined;
3261
+ authorization_endpoint?: string | undefined;
3262
+ token_endpoint?: string | undefined;
3263
+ userinfo_endpoint?: string | undefined;
3264
+ jwks_uri?: string | undefined;
3265
+ discovery_url?: string | undefined;
3266
+ } | undefined;
3267
+ id?: string | undefined;
3268
+ strategy?: "email" | "custom" | "Username-Password-Authentication" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "oidc" | "oauth2" | undefined;
3269
+ response_type?: AuthorizationResponseType | undefined;
3270
+ response_mode?: AuthorizationResponseMode | undefined;
3271
+ enabled_clients?: string[] | undefined;
3272
+ };
3273
+ };
3274
+ output: {
3275
+ created_at: string;
3276
+ updated_at: string;
3277
+ name: string;
3278
+ options?: {
3279
+ issuer?: string | undefined;
3280
+ client_secret?: string | undefined;
3281
+ client_id?: string | undefined;
3282
+ scope?: string | undefined;
3283
+ kid?: string | undefined;
3284
+ team_id?: string | undefined;
3285
+ realms?: string | undefined;
3286
+ app_secret?: string | undefined;
3287
+ authorization_endpoint?: string | undefined;
3288
+ token_endpoint?: string | undefined;
3289
+ userinfo_endpoint?: string | undefined;
3290
+ jwks_uri?: string | undefined;
3291
+ discovery_url?: string | undefined;
3292
+ } | undefined;
3293
+ id?: string | undefined;
3294
+ response_type?: AuthorizationResponseType | undefined;
3295
+ response_mode?: AuthorizationResponseMode | undefined;
3296
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
3297
+ enabled_clients?: string[] | undefined;
3298
+ };
3299
+ outputFormat: "json" | "text";
3300
+ status: 201;
3301
+ };
3302
+ };
3303
+ }, "/api/v2/connections"> & import("hono/types").MergeSchemaPath<{
3304
+ "/": {
3305
+ $get: {
3306
+ input: {
3307
+ query: {
3308
+ sort?: string | string[] | undefined;
3309
+ page?: string | string[] | undefined;
3310
+ per_page?: string | string[] | undefined;
3311
+ include_totals?: string | string[] | undefined;
3312
+ q?: string | string[] | undefined;
3313
+ };
3314
+ } & {
3315
+ header: {
3316
+ "tenant-id": string;
3317
+ };
3318
+ };
3319
+ output: {
3320
+ created_at: string;
3321
+ updated_at: string;
3322
+ enabled: boolean;
3323
+ url: string;
3324
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3325
+ hook_id: string;
3326
+ synchronous: boolean;
3327
+ priority?: number | undefined;
3328
+ }[] | {
3329
+ start: number;
3330
+ limit: number;
3331
+ length: number;
3332
+ hooks: {
3333
+ created_at: string;
3334
+ updated_at: string;
3335
+ enabled: boolean;
3336
+ url: string;
3337
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3338
+ hook_id: string;
3339
+ synchronous: boolean;
3340
+ priority?: number | undefined;
3341
+ }[];
3342
+ };
3343
+ outputFormat: "json" | "text";
3344
+ status: 200;
3345
+ };
3346
+ };
3347
+ } & {
3348
+ "/": {
3349
+ $post: {
3350
+ input: {
3351
+ header: {
3352
+ "tenant-id": string;
3353
+ };
3354
+ } & {
3355
+ json: {
3356
+ url: string;
3357
+ trigger_id: "post-user-registration" | "post-user-login" | "pre-user-signup";
3358
+ enabled?: boolean | undefined;
3359
+ hook_id?: string | undefined;
3360
+ synchronous?: boolean | undefined;
3361
+ priority?: number | undefined;
3362
+ };
3363
+ };
3364
+ output: {
3365
+ created_at: string;
3366
+ updated_at: string;
3367
+ enabled: boolean;
3368
+ url: string;
3369
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3370
+ hook_id: string;
3371
+ synchronous: boolean;
3372
+ priority?: number | undefined;
3373
+ };
3374
+ outputFormat: "json" | "text";
3375
+ status: 201;
3376
+ };
3377
+ };
3378
+ } & {
3379
+ "/:hook_id": {
3380
+ $patch: {
3381
+ input: {
3382
+ param: {
3383
+ hook_id: string;
3384
+ };
3385
+ } & {
3386
+ header: {
3387
+ "tenant-id": string;
3388
+ };
3389
+ } & {
3390
+ json: {
3391
+ enabled?: boolean | undefined;
3392
+ url?: string | undefined;
3393
+ trigger_id?: "post-user-registration" | "post-user-login" | "pre-user-signup" | undefined;
3394
+ synchronous?: boolean | undefined;
3395
+ priority?: number | undefined;
3396
+ };
3397
+ };
3398
+ output: {};
3399
+ outputFormat: string;
3400
+ status: 404;
3401
+ } | {
3402
+ input: {
3403
+ param: {
3404
+ hook_id: string;
3405
+ };
3406
+ } & {
3407
+ header: {
3408
+ "tenant-id": string;
3409
+ };
3410
+ } & {
3411
+ json: {
3412
+ enabled?: boolean | undefined;
3413
+ url?: string | undefined;
3414
+ trigger_id?: "post-user-registration" | "post-user-login" | "pre-user-signup" | undefined;
3415
+ synchronous?: boolean | undefined;
3416
+ priority?: number | undefined;
3417
+ };
3418
+ };
3419
+ output: never;
3420
+ outputFormat: "json" | "text";
3421
+ status: 200;
3422
+ };
3423
+ };
3424
+ } & {
3425
+ "/:hook_id": {
3426
+ $get: {
3427
+ input: {
3428
+ param: {
3429
+ hook_id: string;
3430
+ };
3431
+ } & {
3432
+ header: {
3433
+ "tenant-id": string;
3434
+ };
3435
+ };
3436
+ output: {};
3437
+ outputFormat: string;
3438
+ status: 404;
3439
+ } | {
3440
+ input: {
3441
+ param: {
3442
+ hook_id: string;
3443
+ };
3444
+ } & {
3445
+ header: {
3446
+ "tenant-id": string;
3447
+ };
3448
+ };
3449
+ output: {
3450
+ created_at: string;
3451
+ updated_at: string;
3452
+ enabled: boolean;
3453
+ url: string;
3454
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3455
+ hook_id: string;
3456
+ synchronous: boolean;
3457
+ priority?: number | undefined;
3458
+ };
3459
+ outputFormat: "json" | "text";
3460
+ status: 200;
3461
+ };
3462
+ };
3463
+ } & {
3464
+ "/:hook_id": {
3465
+ $delete: {
3466
+ input: {
3467
+ param: {
3468
+ hook_id: string;
3469
+ };
3470
+ } & {
3471
+ header: {
3472
+ "tenant-id": string;
3473
+ };
3474
+ };
3475
+ output: {};
3476
+ outputFormat: string;
3477
+ status: 200;
3478
+ };
3479
+ };
3480
+ }, "/api/v2/hooks"> & import("hono/types").MergeSchemaPath<{
3481
+ "/": {
3482
+ $get: {
3483
+ input: {
3484
+ query: {
3485
+ sort?: string | string[] | undefined;
3486
+ page?: string | string[] | undefined;
3487
+ per_page?: string | string[] | undefined;
3488
+ include_totals?: string | string[] | undefined;
3489
+ q?: string | string[] | undefined;
3490
+ };
3491
+ } & {
3492
+ header: {
3493
+ "tenant-id": string;
3494
+ };
3495
+ };
3496
+ output: {
3497
+ type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
3498
+ date: string;
3499
+ ip: string;
3500
+ user_agent: string;
3501
+ isMobile: boolean;
3502
+ description?: string | undefined;
3503
+ connection?: string | undefined;
3504
+ user_id?: string | undefined;
3505
+ audience?: string | undefined;
3506
+ client_id?: string | undefined;
3507
+ scope?: string[] | undefined;
3508
+ strategy?: string | undefined;
3509
+ connection_id?: string | undefined;
3510
+ log_id?: string | undefined;
3511
+ _id?: string | undefined;
3512
+ details?: any;
3513
+ user_name?: string | undefined;
3514
+ client_name?: string | undefined;
3515
+ strategy_type?: string | undefined;
3516
+ hostname?: string | undefined;
3517
+ auth0_client?: {
3518
+ name: string;
3519
+ version: string;
3520
+ env?: {
3521
+ node?: string | undefined;
3522
+ } | undefined;
3523
+ } | undefined;
3524
+ }[] | {
3525
+ start: number;
3526
+ limit: number;
3527
+ length: number;
3528
+ logs: {
3529
+ type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
3530
+ date: string;
3531
+ ip: string;
3532
+ user_agent: string;
3533
+ isMobile: boolean;
3534
+ description?: string | undefined;
3535
+ connection?: string | undefined;
3536
+ user_id?: string | undefined;
3537
+ audience?: string | undefined;
3538
+ client_id?: string | undefined;
3539
+ scope?: string[] | undefined;
3540
+ strategy?: string | undefined;
3541
+ connection_id?: string | undefined;
3542
+ log_id?: string | undefined;
3543
+ _id?: string | undefined;
3544
+ details?: any;
3545
+ user_name?: string | undefined;
3546
+ client_name?: string | undefined;
3547
+ strategy_type?: string | undefined;
3548
+ hostname?: string | undefined;
3549
+ auth0_client?: {
3550
+ name: string;
3551
+ version: string;
3552
+ env?: {
3553
+ node?: string | undefined;
3554
+ } | undefined;
3555
+ } | undefined;
3556
+ }[];
3557
+ };
3558
+ outputFormat: "json" | "text";
3559
+ status: 200;
3560
+ };
3561
+ };
3562
+ } & {
3563
+ "/:id": {
3564
+ $get: {
3565
+ input: {
3566
+ param: {
3567
+ id: string;
3568
+ };
3569
+ } & {
3570
+ header: {
3571
+ "tenant-id": string;
3572
+ };
3573
+ };
3574
+ output: {
3575
+ type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
3576
+ date: string;
3577
+ ip: string;
3578
+ user_agent: string;
3579
+ isMobile: boolean;
3580
+ description?: string | undefined;
3581
+ connection?: string | undefined;
3582
+ user_id?: string | undefined;
3583
+ audience?: string | undefined;
3584
+ client_id?: string | undefined;
3585
+ scope?: string[] | undefined;
3586
+ strategy?: string | undefined;
3587
+ connection_id?: string | undefined;
3588
+ log_id?: string | undefined;
3589
+ _id?: string | undefined;
3590
+ details?: any;
3591
+ user_name?: string | undefined;
3592
+ client_name?: string | undefined;
3593
+ strategy_type?: string | undefined;
3594
+ hostname?: string | undefined;
3595
+ auth0_client?: {
3596
+ name: string;
3597
+ version: string;
3598
+ env?: {
3599
+ node?: string | undefined;
3600
+ } | undefined;
3601
+ } | undefined;
3602
+ };
3603
+ outputFormat: "json" | "text";
3604
+ status: 200;
3605
+ };
3606
+ };
3607
+ }, "/api/v2/logs"> & import("hono/types").MergeSchemaPath<{
3608
+ "/": {
3609
+ $get: {
3610
+ input: {
3611
+ query: {
3612
+ sort?: string | string[] | undefined;
3613
+ page?: string | string[] | undefined;
3614
+ per_page?: string | string[] | undefined;
3615
+ include_totals?: string | string[] | undefined;
3616
+ q?: string | string[] | undefined;
3617
+ };
3618
+ };
3619
+ output: {};
3620
+ outputFormat: string;
3621
+ status: 200;
3622
+ };
3623
+ };
3624
+ } & {
3625
+ "/:id": {
3626
+ $get: {
3627
+ input: {
3628
+ param: {
3629
+ id: string;
3630
+ };
3631
+ };
3632
+ output: {};
3633
+ outputFormat: string;
3634
+ status: 200;
3635
+ };
3636
+ };
3637
+ } & {
3638
+ "/:id": {
3639
+ $delete: {
3640
+ input: {
3641
+ param: {
3642
+ id: string;
3643
+ };
3644
+ };
3645
+ output: {};
3646
+ outputFormat: string;
3647
+ status: 200;
3648
+ };
3649
+ };
3650
+ } & {
3651
+ "/:id": {
3652
+ $patch: {
3653
+ input: {
3654
+ param: {
3655
+ id: string;
3656
+ };
3657
+ } & {
3658
+ json: {
3659
+ name?: string | undefined;
3660
+ audience?: string | undefined;
3661
+ sender_email?: string | undefined;
3662
+ sender_name?: string | undefined;
3663
+ support_url?: string | undefined;
3664
+ logo?: string | undefined;
3665
+ primary_color?: string | undefined;
3666
+ secondary_color?: string | undefined;
3667
+ language?: string | undefined;
3668
+ };
3669
+ };
3670
+ output: {};
3671
+ outputFormat: string;
3672
+ status: 200;
3673
+ };
3674
+ };
3675
+ } & {
3676
+ "/": {
3677
+ $post: {
3678
+ input: {
3679
+ json: {
3680
+ name: string;
3681
+ audience: string;
3682
+ sender_email: string;
3683
+ sender_name: string;
3684
+ support_url?: string | undefined;
3685
+ logo?: string | undefined;
3686
+ primary_color?: string | undefined;
3687
+ secondary_color?: string | undefined;
3688
+ language?: string | undefined;
3689
+ };
3690
+ };
3691
+ output: {};
3692
+ outputFormat: string;
3693
+ status: 200;
3694
+ };
3695
+ };
3696
+ }, "/api/v2/tenants"> & import("hono/types").MergeSchemaPath<{
3697
+ "/": {
3698
+ $get: {
3699
+ input: {
3700
+ query: {
3701
+ sort?: string | string[] | undefined;
3702
+ page?: string | string[] | undefined;
3703
+ per_page?: string | string[] | undefined;
3704
+ include_totals?: string | string[] | undefined;
3705
+ q?: string | string[] | undefined;
3706
+ };
3707
+ } & {
3708
+ header: {
3709
+ "tenant-id": string;
3710
+ };
3711
+ };
3712
+ output: {
3713
+ created_at: string;
3714
+ updated_at: string;
3715
+ name: string;
3716
+ id: string;
3717
+ disable_sign_ups: boolean;
3718
+ callbacks?: string[] | undefined;
3719
+ allowed_origins?: string[] | undefined;
3720
+ web_origins?: string[] | undefined;
3721
+ allowed_logout_urls?: string[] | undefined;
3722
+ allowed_clients?: string[] | undefined;
3723
+ addons?: {
3724
+ samlp?: {
3725
+ audience?: string | undefined;
3726
+ recipient?: string | undefined;
3727
+ createUpnClaim?: boolean | undefined;
3728
+ mapUnknownClaimsAsIs?: boolean | undefined;
3729
+ passthroughClaimsWithNoMapping?: boolean | undefined;
3730
+ mapIdentities?: boolean | undefined;
3731
+ signatureAlgorithm?: string | undefined;
3732
+ digestAlgorithm?: string | undefined;
3733
+ issuer?: string | undefined;
3734
+ destination?: string | undefined;
3735
+ lifetimeInSeconds?: number | undefined;
3736
+ signResponse?: boolean | undefined;
3737
+ nameIdentifierFormat?: string | undefined;
3738
+ nameIdentifierProbes?: string[] | undefined;
3739
+ authnContextClassRef?: string | undefined;
3740
+ mappings?: {
3741
+ [x: string]: string;
3742
+ } | undefined;
3743
+ } | undefined;
3744
+ } | undefined;
3745
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3746
+ client_secret?: string | undefined;
3747
+ }[] | {
3748
+ start: number;
3749
+ limit: number;
3750
+ length: number;
3751
+ clients: {
3752
+ created_at: string;
3753
+ updated_at: string;
3754
+ name: string;
3755
+ id: string;
3756
+ disable_sign_ups: boolean;
3757
+ callbacks?: string[] | undefined;
3758
+ allowed_origins?: string[] | undefined;
3759
+ web_origins?: string[] | undefined;
3760
+ allowed_logout_urls?: string[] | undefined;
3761
+ allowed_clients?: string[] | undefined;
3762
+ addons?: {
3763
+ samlp?: {
3764
+ audience?: string | undefined;
3765
+ recipient?: string | undefined;
3766
+ createUpnClaim?: boolean | undefined;
3767
+ mapUnknownClaimsAsIs?: boolean | undefined;
3768
+ passthroughClaimsWithNoMapping?: boolean | undefined;
3769
+ mapIdentities?: boolean | undefined;
3770
+ signatureAlgorithm?: string | undefined;
3771
+ digestAlgorithm?: string | undefined;
3772
+ issuer?: string | undefined;
3773
+ destination?: string | undefined;
3774
+ lifetimeInSeconds?: number | undefined;
3775
+ signResponse?: boolean | undefined;
3776
+ nameIdentifierFormat?: string | undefined;
3777
+ nameIdentifierProbes?: string[] | undefined;
3778
+ authnContextClassRef?: string | undefined;
3779
+ mappings?: {
3780
+ [x: string]: string;
3781
+ } | undefined;
3782
+ } | undefined;
3783
+ } | undefined;
3784
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3785
+ client_secret?: string | undefined;
3786
+ }[];
3787
+ };
3788
+ outputFormat: "json" | "text";
3789
+ status: 200;
3790
+ };
3791
+ };
3792
+ } & {
3793
+ "/:id": {
3794
+ $get: {
3795
+ input: {
3796
+ param: {
3797
+ id: string;
3798
+ };
3799
+ } & {
3800
+ header: {
3801
+ "tenant-id": string;
3802
+ };
3803
+ };
3804
+ output: {
3805
+ created_at: string;
3806
+ updated_at: string;
3807
+ name: string;
3808
+ id: string;
3809
+ disable_sign_ups: boolean;
3810
+ callbacks?: string[] | undefined;
3811
+ allowed_origins?: string[] | undefined;
3812
+ web_origins?: string[] | undefined;
3813
+ allowed_logout_urls?: string[] | undefined;
3814
+ allowed_clients?: string[] | undefined;
3815
+ addons?: {
3816
+ samlp?: {
3817
+ audience?: string | undefined;
3818
+ recipient?: string | undefined;
3819
+ createUpnClaim?: boolean | undefined;
3820
+ mapUnknownClaimsAsIs?: boolean | undefined;
3821
+ passthroughClaimsWithNoMapping?: boolean | undefined;
3822
+ mapIdentities?: boolean | undefined;
3823
+ signatureAlgorithm?: string | undefined;
3824
+ digestAlgorithm?: string | undefined;
3825
+ issuer?: string | undefined;
3826
+ destination?: string | undefined;
3827
+ lifetimeInSeconds?: number | undefined;
3828
+ signResponse?: boolean | undefined;
3829
+ nameIdentifierFormat?: string | undefined;
3830
+ nameIdentifierProbes?: string[] | undefined;
3831
+ authnContextClassRef?: string | undefined;
3832
+ mappings?: {
3833
+ [x: string]: string;
3834
+ } | undefined;
3835
+ } | undefined;
3836
+ } | undefined;
3837
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3838
+ client_secret?: string | undefined;
3839
+ };
3840
+ outputFormat: "json" | "text";
3841
+ status: 200;
3842
+ };
3843
+ };
3844
+ } & {
3845
+ "/:id": {
3846
+ $delete: {
3847
+ input: {
3848
+ param: {
3849
+ id: string;
3850
+ };
3851
+ } & {
3852
+ header: {
3853
+ "tenant-id": string;
3854
+ };
3855
+ };
3856
+ output: {};
3857
+ outputFormat: string;
3858
+ status: 200;
3859
+ };
3860
+ };
3861
+ } & {
3862
+ "/:id": {
3863
+ $patch: {
3864
+ input: {
3865
+ param: {
3866
+ id: string;
3867
+ };
3868
+ } & {
3869
+ header: {
3870
+ "tenant-id": string;
3871
+ };
3872
+ } & {
3873
+ json: {
3874
+ name?: string | undefined;
3875
+ callbacks?: string[] | undefined;
3876
+ id?: string | undefined;
3877
+ disable_sign_ups?: boolean | undefined;
3878
+ allowed_origins?: string[] | undefined;
3879
+ web_origins?: string[] | undefined;
3880
+ allowed_logout_urls?: string[] | undefined;
3881
+ allowed_clients?: string[] | undefined;
3882
+ addons?: {
3883
+ samlp?: {
3884
+ audience?: string | undefined;
3885
+ recipient?: string | undefined;
3886
+ createUpnClaim?: boolean | undefined;
3887
+ mapUnknownClaimsAsIs?: boolean | undefined;
3888
+ passthroughClaimsWithNoMapping?: boolean | undefined;
3889
+ mapIdentities?: boolean | undefined;
3890
+ signatureAlgorithm?: string | undefined;
3891
+ digestAlgorithm?: string | undefined;
3892
+ issuer?: string | undefined;
3893
+ destination?: string | undefined;
3894
+ lifetimeInSeconds?: number | undefined;
3895
+ signResponse?: boolean | undefined;
3896
+ nameIdentifierFormat?: string | undefined;
3897
+ nameIdentifierProbes?: string[] | undefined;
3898
+ authnContextClassRef?: string | undefined;
3899
+ mappings?: Record<string, string> | undefined;
3900
+ } | undefined;
3901
+ } | undefined;
3902
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3903
+ client_secret?: string | undefined;
3904
+ };
3905
+ };
3906
+ output: {
3907
+ created_at: string;
3908
+ updated_at: string;
3909
+ name: string;
3910
+ id: string;
3911
+ disable_sign_ups: boolean;
3912
+ callbacks?: string[] | undefined;
3913
+ allowed_origins?: string[] | undefined;
3914
+ web_origins?: string[] | undefined;
3915
+ allowed_logout_urls?: string[] | undefined;
3916
+ allowed_clients?: string[] | undefined;
3917
+ addons?: {
3918
+ samlp?: {
3919
+ audience?: string | undefined;
3920
+ recipient?: string | undefined;
3921
+ createUpnClaim?: boolean | undefined;
3922
+ mapUnknownClaimsAsIs?: boolean | undefined;
3923
+ passthroughClaimsWithNoMapping?: boolean | undefined;
3924
+ mapIdentities?: boolean | undefined;
3925
+ signatureAlgorithm?: string | undefined;
3926
+ digestAlgorithm?: string | undefined;
3927
+ issuer?: string | undefined;
3928
+ destination?: string | undefined;
3929
+ lifetimeInSeconds?: number | undefined;
3930
+ signResponse?: boolean | undefined;
3931
+ nameIdentifierFormat?: string | undefined;
3932
+ nameIdentifierProbes?: string[] | undefined;
3933
+ authnContextClassRef?: string | undefined;
3934
+ mappings?: {
3935
+ [x: string]: string;
3936
+ } | undefined;
3937
+ } | undefined;
3938
+ } | undefined;
3939
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3940
+ client_secret?: string | undefined;
3941
+ };
3942
+ outputFormat: "json" | "text";
3943
+ status: 200;
3944
+ };
3945
+ };
3946
+ } & {
3947
+ "/": {
3948
+ $post: {
3949
+ input: {
3950
+ header: {
3951
+ "tenant-id": string;
3952
+ };
3953
+ } & {
3954
+ json: {
3955
+ name: string;
3956
+ id: string;
3957
+ callbacks?: string[] | undefined;
3958
+ disable_sign_ups?: boolean | undefined;
3959
+ allowed_origins?: string[] | undefined;
3960
+ web_origins?: string[] | undefined;
3961
+ allowed_logout_urls?: string[] | undefined;
3962
+ allowed_clients?: string[] | undefined;
3963
+ addons?: {
3964
+ samlp?: {
3965
+ audience?: string | undefined;
3966
+ recipient?: string | undefined;
3967
+ createUpnClaim?: boolean | undefined;
3968
+ mapUnknownClaimsAsIs?: boolean | undefined;
3969
+ passthroughClaimsWithNoMapping?: boolean | undefined;
3970
+ mapIdentities?: boolean | undefined;
3971
+ signatureAlgorithm?: string | undefined;
3972
+ digestAlgorithm?: string | undefined;
3973
+ issuer?: string | undefined;
3974
+ destination?: string | undefined;
3975
+ lifetimeInSeconds?: number | undefined;
3976
+ signResponse?: boolean | undefined;
3977
+ nameIdentifierFormat?: string | undefined;
3978
+ nameIdentifierProbes?: string[] | undefined;
3979
+ authnContextClassRef?: string | undefined;
3980
+ mappings?: Record<string, string> | undefined;
3981
+ } | undefined;
3982
+ } | undefined;
3983
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3984
+ client_secret?: string | undefined;
3985
+ };
3986
+ };
3987
+ output: {
3988
+ name: string;
3989
+ created_at: string;
3990
+ id: string;
3991
+ updated_at: string;
3992
+ disable_sign_ups: boolean;
3993
+ callbacks?: string[] | undefined;
3994
+ allowed_origins?: string[] | undefined;
3995
+ web_origins?: string[] | undefined;
3996
+ allowed_logout_urls?: string[] | undefined;
3997
+ allowed_clients?: string[] | undefined;
3998
+ addons?: {
3999
+ samlp?: {
4000
+ audience?: string | undefined;
4001
+ recipient?: string | undefined;
4002
+ createUpnClaim?: boolean | undefined;
4003
+ mapUnknownClaimsAsIs?: boolean | undefined;
4004
+ passthroughClaimsWithNoMapping?: boolean | undefined;
4005
+ mapIdentities?: boolean | undefined;
4006
+ signatureAlgorithm?: string | undefined;
4007
+ digestAlgorithm?: string | undefined;
4008
+ issuer?: string | undefined;
4009
+ destination?: string | undefined;
4010
+ lifetimeInSeconds?: number | undefined;
4011
+ signResponse?: boolean | undefined;
4012
+ nameIdentifierFormat?: string | undefined;
4013
+ nameIdentifierProbes?: string[] | undefined;
4014
+ authnContextClassRef?: string | undefined;
4015
+ mappings?: {
4016
+ [x: string]: string;
4017
+ } | undefined;
4018
+ } | undefined;
4019
+ } | undefined;
4020
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
4021
+ client_secret?: string | undefined;
4022
+ };
4023
+ outputFormat: "json" | "text";
4024
+ status: 201;
4025
+ };
4026
+ };
4027
+ }, "/api/v2/clients"> & import("hono/types").MergeSchemaPath<{
4028
+ "/": {
4029
+ $get: {
4030
+ input: {
4031
+ query: {
4032
+ email: string | string[];
4033
+ };
4034
+ } & {
4035
+ header: {
4036
+ "tenant-id": string;
4037
+ };
4038
+ };
4039
+ output: {};
4040
+ outputFormat: string;
4041
+ status: 200;
4042
+ };
4043
+ };
4044
+ }, "/api/v2/users-by-email"> & import("hono/types").MergeSchemaPath<{
4045
+ "/": {
4046
+ $get: {
4047
+ input: {
4048
+ query: {
4049
+ sort?: string | string[] | undefined;
4050
+ page?: string | string[] | undefined;
4051
+ per_page?: string | string[] | undefined;
4052
+ include_totals?: string | string[] | undefined;
4053
+ q?: string | string[] | undefined;
4054
+ };
4055
+ } & {
4056
+ header: {
4057
+ "tenant-id": string;
4058
+ };
4059
+ };
4060
+ output: {
4061
+ created_at: string;
4062
+ updated_at: string;
4063
+ email: string;
4064
+ email_verified: boolean;
4065
+ connection: string;
4066
+ user_id: string;
4067
+ provider: string;
4068
+ is_social: boolean;
4069
+ login_count: number;
4070
+ name?: string | undefined;
4071
+ username?: string | undefined;
4072
+ given_name?: string | undefined;
4073
+ family_name?: string | undefined;
4074
+ profileData?: string | undefined;
4075
+ nickname?: string | undefined;
4076
+ picture?: string | undefined;
4077
+ locale?: string | undefined;
4078
+ linked_to?: string | undefined;
4079
+ app_metadata?: any;
4080
+ user_metadata?: any;
4081
+ verify_email?: boolean | undefined;
4082
+ last_ip?: string | undefined;
4083
+ last_login?: string | undefined;
4084
+ identities?: {
4085
+ connection: string;
4086
+ user_id: string;
4087
+ provider: string;
4088
+ isSocial: boolean;
4089
+ access_token?: string | undefined;
4090
+ access_token_secret?: string | undefined;
4091
+ refresh_token?: string | undefined;
4092
+ profileData?: {
4093
+ [x: string]: any;
4094
+ email?: string | undefined;
4095
+ username?: string | undefined;
4096
+ given_name?: string | undefined;
4097
+ family_name?: string | undefined;
4098
+ name?: string | undefined;
4099
+ email_verified?: boolean | undefined;
4100
+ phone_number?: string | undefined;
4101
+ phone_verified?: boolean | undefined;
4102
+ } | undefined;
4103
+ }[] | undefined;
4104
+ }[] | {
4105
+ start: number;
4106
+ limit: number;
4107
+ length: number;
4108
+ users: {
4109
+ created_at: string;
4110
+ updated_at: string;
4111
+ email: string;
4112
+ email_verified: boolean;
4113
+ connection: string;
4114
+ user_id: string;
4115
+ provider: string;
4116
+ is_social: boolean;
4117
+ login_count: number;
4118
+ name?: string | undefined;
4119
+ username?: string | undefined;
4120
+ given_name?: string | undefined;
4121
+ family_name?: string | undefined;
4122
+ profileData?: string | undefined;
4123
+ nickname?: string | undefined;
4124
+ picture?: string | undefined;
4125
+ locale?: string | undefined;
4126
+ linked_to?: string | undefined;
4127
+ app_metadata?: any;
4128
+ user_metadata?: any;
4129
+ verify_email?: boolean | undefined;
4130
+ last_ip?: string | undefined;
4131
+ last_login?: string | undefined;
4132
+ identities?: {
4133
+ connection: string;
4134
+ user_id: string;
4135
+ provider: string;
4136
+ isSocial: boolean;
4137
+ access_token?: string | undefined;
4138
+ access_token_secret?: string | undefined;
4139
+ refresh_token?: string | undefined;
4140
+ profileData?: {
4141
+ [x: string]: any;
4142
+ email?: string | undefined;
4143
+ username?: string | undefined;
4144
+ given_name?: string | undefined;
4145
+ family_name?: string | undefined;
4146
+ name?: string | undefined;
4147
+ email_verified?: boolean | undefined;
4148
+ phone_number?: string | undefined;
4149
+ phone_verified?: boolean | undefined;
4150
+ } | undefined;
4151
+ }[] | undefined;
4152
+ }[];
4153
+ };
4154
+ outputFormat: "json" | "text";
4155
+ status: 200;
4156
+ };
4157
+ };
4158
+ } & {
4159
+ "/:user_id": {
4160
+ $get: {
4161
+ input: {
4162
+ param: {
4163
+ user_id: string;
4164
+ };
4165
+ } & {
4166
+ header: {
4167
+ "tenant-id": string;
4168
+ };
4169
+ };
4170
+ output: {
4171
+ created_at: string;
4172
+ updated_at: string;
4173
+ email: string;
4174
+ email_verified: boolean;
4175
+ connection: string;
4176
+ user_id: string;
4177
+ provider: string;
4178
+ is_social: boolean;
4179
+ login_count: number;
4180
+ name?: string | undefined;
4181
+ username?: string | undefined;
4182
+ given_name?: string | undefined;
4183
+ family_name?: string | undefined;
4184
+ profileData?: string | undefined;
4185
+ nickname?: string | undefined;
4186
+ picture?: string | undefined;
4187
+ locale?: string | undefined;
4188
+ linked_to?: string | undefined;
4189
+ app_metadata?: any;
4190
+ user_metadata?: any;
4191
+ verify_email?: boolean | undefined;
4192
+ last_ip?: string | undefined;
4193
+ last_login?: string | undefined;
4194
+ identities?: {
4195
+ connection: string;
4196
+ user_id: string;
4197
+ provider: string;
4198
+ isSocial: boolean;
4199
+ access_token?: string | undefined;
4200
+ access_token_secret?: string | undefined;
4201
+ refresh_token?: string | undefined;
4202
+ profileData?: {
4203
+ [x: string]: any;
4204
+ email?: string | undefined;
4205
+ username?: string | undefined;
4206
+ given_name?: string | undefined;
4207
+ family_name?: string | undefined;
4208
+ name?: string | undefined;
4209
+ email_verified?: boolean | undefined;
4210
+ phone_number?: string | undefined;
4211
+ phone_verified?: boolean | undefined;
4212
+ } | undefined;
4213
+ }[] | undefined;
4214
+ };
4215
+ outputFormat: "json" | "text";
4216
+ status: 200;
4217
+ };
4218
+ };
4219
+ } & {
4220
+ "/:user_id": {
4221
+ $delete: {
4222
+ input: {
4223
+ param: {
4224
+ user_id: string;
4225
+ };
4226
+ } & {
4227
+ header: {
4228
+ "tenant-id": string;
4229
+ };
4230
+ };
4231
+ output: {};
4232
+ outputFormat: string;
4233
+ status: 200;
4234
+ };
4235
+ };
4236
+ } & {
4237
+ "/": {
4238
+ $post: {
4239
+ input: {
4240
+ header: {
4241
+ "tenant-id": string;
4242
+ };
4243
+ } & {
4244
+ json: {
4245
+ verify_email?: boolean | undefined;
4246
+ email?: string | undefined;
4247
+ last_ip?: string | undefined;
4248
+ last_login?: string | undefined;
4249
+ user_id?: string | undefined;
4250
+ username?: string | undefined;
4251
+ given_name?: string | undefined;
4252
+ family_name?: string | undefined;
4253
+ nickname?: string | undefined;
4254
+ name?: string | undefined;
4255
+ picture?: string | undefined;
4256
+ locale?: string | undefined;
4257
+ linked_to?: string | undefined;
4258
+ profileData?: string | undefined;
4259
+ app_metadata?: any;
4260
+ user_metadata?: any;
4261
+ email_verified?: boolean | undefined;
4262
+ provider?: string | undefined;
4263
+ connection?: string | undefined;
4264
+ };
4265
+ };
4266
+ output: {
4267
+ created_at: string;
4268
+ updated_at: string;
4269
+ email: string;
4270
+ email_verified: boolean;
4271
+ connection: string;
4272
+ user_id: string;
4273
+ provider: string;
4274
+ is_social: boolean;
4275
+ login_count: number;
4276
+ name?: string | undefined;
4277
+ username?: string | undefined;
4278
+ given_name?: string | undefined;
4279
+ family_name?: string | undefined;
4280
+ profileData?: string | undefined;
4281
+ nickname?: string | undefined;
4282
+ picture?: string | undefined;
4283
+ locale?: string | undefined;
4284
+ linked_to?: string | undefined;
4285
+ app_metadata?: any;
4286
+ user_metadata?: any;
4287
+ verify_email?: boolean | undefined;
4288
+ last_ip?: string | undefined;
4289
+ last_login?: string | undefined;
4290
+ identities?: {
4291
+ connection: string;
4292
+ user_id: string;
4293
+ provider: string;
4294
+ isSocial: boolean;
4295
+ access_token?: string | undefined;
4296
+ access_token_secret?: string | undefined;
4297
+ refresh_token?: string | undefined;
4298
+ profileData?: {
4299
+ [x: string]: any;
4300
+ email?: string | undefined;
4301
+ username?: string | undefined;
4302
+ given_name?: string | undefined;
4303
+ family_name?: string | undefined;
4304
+ name?: string | undefined;
4305
+ email_verified?: boolean | undefined;
4306
+ phone_number?: string | undefined;
4307
+ phone_verified?: boolean | undefined;
4308
+ } | undefined;
4309
+ }[] | undefined;
4310
+ };
4311
+ outputFormat: "json" | "text";
4312
+ status: 200;
4313
+ };
4314
+ };
4315
+ } & {
4316
+ "/:user_id": {
4317
+ $patch: {
4318
+ input: {
4319
+ param: {
4320
+ user_id: string;
4321
+ };
4322
+ } & {
4323
+ header: {
4324
+ "tenant-id": string;
4325
+ };
4326
+ } & {
4327
+ json: {
4328
+ password?: string | undefined;
4329
+ verify_email?: boolean | undefined;
4330
+ email?: string | undefined;
4331
+ last_ip?: string | undefined;
4332
+ last_login?: string | undefined;
4333
+ user_id?: string | undefined;
4334
+ username?: string | undefined;
4335
+ given_name?: string | undefined;
4336
+ family_name?: string | undefined;
4337
+ nickname?: string | undefined;
4338
+ name?: string | undefined;
4339
+ picture?: string | undefined;
4340
+ locale?: string | undefined;
4341
+ linked_to?: string | undefined;
4342
+ profileData?: string | undefined;
4343
+ app_metadata?: any;
4344
+ user_metadata?: any;
4345
+ email_verified?: boolean | undefined;
4346
+ provider?: string | undefined;
4347
+ connection?: string | undefined;
4348
+ };
4349
+ };
4350
+ output: {};
4351
+ outputFormat: string;
4352
+ status: 200;
4353
+ };
4354
+ };
4355
+ } & {
4356
+ "/:user_id/identities": {
4357
+ $post: {
4358
+ input: {
4359
+ param: {
4360
+ user_id: string;
4361
+ };
4362
+ } & {
4363
+ header: {
4364
+ "tenant-id": string;
4365
+ };
4366
+ } & {
4367
+ json: {
4368
+ link_with: string;
4369
+ } | {
4370
+ user_id: string;
4371
+ provider: string;
4372
+ connection?: string | undefined;
4373
+ };
4374
+ };
4375
+ output: {};
4376
+ outputFormat: string;
4377
+ status: 200;
4378
+ };
4379
+ };
4380
+ } & {
4381
+ "/:user_id/identities/:provider/:linked_user_id": {
4382
+ $delete: {
4383
+ input: {
4384
+ param: {
4385
+ user_id: string;
4386
+ provider: string;
4387
+ linked_user_id: string;
4388
+ };
4389
+ } & {
4390
+ header: {
4391
+ "tenant-id": string;
4392
+ };
4393
+ };
4394
+ output: {
4395
+ created_at: string;
4396
+ updated_at: string;
4397
+ email: string;
4398
+ email_verified: boolean;
4399
+ connection: string;
4400
+ user_id: string;
4401
+ provider: string;
4402
+ is_social: boolean;
4403
+ login_count: number;
4404
+ name?: string | undefined;
4405
+ username?: string | undefined;
4406
+ given_name?: string | undefined;
4407
+ family_name?: string | undefined;
4408
+ profileData?: string | undefined;
4409
+ nickname?: string | undefined;
4410
+ picture?: string | undefined;
4411
+ locale?: string | undefined;
4412
+ linked_to?: string | undefined;
4413
+ app_metadata?: any;
4414
+ user_metadata?: any;
4415
+ verify_email?: boolean | undefined;
4416
+ last_ip?: string | undefined;
4417
+ last_login?: string | undefined;
4418
+ identities?: {
4419
+ connection: string;
4420
+ user_id: string;
4421
+ provider: string;
4422
+ isSocial: boolean;
4423
+ access_token?: string | undefined;
4424
+ access_token_secret?: string | undefined;
4425
+ refresh_token?: string | undefined;
4426
+ profileData?: {
4427
+ [x: string]: any;
4428
+ email?: string | undefined;
4429
+ username?: string | undefined;
4430
+ given_name?: string | undefined;
4431
+ family_name?: string | undefined;
4432
+ name?: string | undefined;
4433
+ email_verified?: boolean | undefined;
4434
+ phone_number?: string | undefined;
4435
+ phone_verified?: boolean | undefined;
4436
+ } | undefined;
4437
+ }[] | undefined;
4438
+ }[];
4439
+ outputFormat: "json" | "text";
4440
+ status: 200;
4441
+ };
4442
+ };
4443
+ } & {
4444
+ "/:user_id/sessions": {
4445
+ $get: {
4446
+ input: {
4447
+ param: {
4448
+ user_id: string;
4449
+ };
4450
+ } & {
4451
+ header: {
4452
+ "tenant-id": string;
4453
+ };
4454
+ };
4455
+ output: {};
4456
+ outputFormat: string;
4457
+ status: 200;
4458
+ };
4459
+ };
4460
+ }, "/api/v2/users"> & import("hono/types").MergeSchemaPath<{
4461
+ "/": {
4462
+ $get: {
4463
+ input: {
4464
+ header: {
4465
+ "tenant-id": string;
4466
+ };
4467
+ };
4468
+ output: {
4469
+ colors?: {
4470
+ primary: string;
4471
+ page_background?: {
4472
+ start?: string | undefined;
4473
+ type?: string | undefined;
4474
+ end?: string | undefined;
4475
+ angle_deg?: number | undefined;
4476
+ } | undefined;
4477
+ } | undefined;
4478
+ logo_url?: string | undefined;
4479
+ favicon_url?: string | undefined;
4480
+ font?: {
4481
+ url: string;
4482
+ } | undefined;
4483
+ };
4484
+ outputFormat: "json" | "text";
4485
+ status: 200;
4486
+ };
4487
+ };
4488
+ } & {
4489
+ "/": {
4490
+ $patch: {
4491
+ input: {
4492
+ header: {
4493
+ "tenant-id": string;
4494
+ };
4495
+ } & {
4496
+ json: {
4497
+ colors?: {
4498
+ primary: string;
4499
+ page_background?: {
4500
+ start?: string | undefined;
4501
+ type?: string | undefined;
4502
+ end?: string | undefined;
4503
+ angle_deg?: number | undefined;
4504
+ } | undefined;
4505
+ } | undefined;
4506
+ logo_url?: string | undefined;
4507
+ favicon_url?: string | undefined;
4508
+ font?: {
4509
+ url: string;
4510
+ } | undefined;
4511
+ };
4512
+ };
4513
+ output: {};
4514
+ outputFormat: string;
4515
+ status: 200;
4516
+ };
4517
+ };
4518
+ }, "/api/v2/branding">, "/">;
4519
+ oauthApp: OpenAPIHono<{
4520
+ Bindings: Bindings;
4521
+ Variables: Variables;
4522
+ }, import("hono/types").MergeSchemaPath<{
4523
+ "/jwks.json": {
4524
+ $get: {
4525
+ input: {};
4526
+ output: {
4527
+ keys: {
4528
+ kid: string;
4529
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
4530
+ e: string;
4531
+ kty: "RSA" | "EC" | "oct";
4532
+ n: string;
4533
+ x5t?: string | undefined;
4534
+ x5c?: string[] | undefined;
4535
+ use?: "sig" | "enc" | undefined;
4536
+ }[];
4537
+ };
4538
+ outputFormat: "json" | "text";
4539
+ status: 200;
4540
+ };
4541
+ };
4542
+ } & {
4543
+ "/openid-configuration": {
4544
+ $get: {
4545
+ input: {};
4546
+ output: {
4547
+ issuer: string;
4548
+ authorization_endpoint: string;
4549
+ token_endpoint: string;
4550
+ userinfo_endpoint: string;
4551
+ jwks_uri: string;
4552
+ device_authorization_endpoint: string;
4553
+ mfa_challenge_endpoint: string;
4554
+ registration_endpoint: string;
4555
+ revocation_endpoint: string;
4556
+ scopes_supported: string[];
4557
+ response_types_supported: string[];
4558
+ code_challenge_methods_supported: string[];
4559
+ response_modes_supported: string[];
4560
+ subject_types_supported: string[];
4561
+ id_token_signing_alg_values_supported: string[];
4562
+ token_endpoint_auth_methods_supported: string[];
4563
+ claims_supported: string[];
4564
+ request_uri_parameter_supported: boolean;
4565
+ request_parameter_supported: boolean;
4566
+ token_endpoint_auth_signing_alg_values_supported: string[];
4567
+ };
4568
+ outputFormat: "json" | "text";
4569
+ status: 200;
4570
+ };
4571
+ };
4572
+ }, "/.well-known">, "/">;
4573
+ };
2995
4574
 
2996
4575
  export {};