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