@authhero/adapter-interfaces 0.11.7 → 0.13.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.
|
@@ -2448,32 +2448,6 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
2448
2448
|
deleted_at?: string | undefined;
|
|
2449
2449
|
}>;
|
|
2450
2450
|
export type Session = z.infer<typeof sessionSchema>;
|
|
2451
|
-
export declare const certificateSchema: z.ZodObject<{
|
|
2452
|
-
private_key: z.ZodString;
|
|
2453
|
-
public_key: z.ZodString;
|
|
2454
|
-
kid: z.ZodString;
|
|
2455
|
-
created_at: z.ZodString;
|
|
2456
|
-
revoked_at: z.ZodOptional<z.ZodString>;
|
|
2457
|
-
}, "strip", z.ZodTypeAny, {
|
|
2458
|
-
created_at: string;
|
|
2459
|
-
private_key: string;
|
|
2460
|
-
kid: string;
|
|
2461
|
-
public_key: string;
|
|
2462
|
-
revoked_at?: string | undefined;
|
|
2463
|
-
}, {
|
|
2464
|
-
created_at: string;
|
|
2465
|
-
private_key: string;
|
|
2466
|
-
kid: string;
|
|
2467
|
-
public_key: string;
|
|
2468
|
-
revoked_at?: string | undefined;
|
|
2469
|
-
}>;
|
|
2470
|
-
export interface Certificate {
|
|
2471
|
-
private_key: string;
|
|
2472
|
-
public_key: string;
|
|
2473
|
-
kid: string;
|
|
2474
|
-
created_at: string;
|
|
2475
|
-
revoked_at?: string;
|
|
2476
|
-
}
|
|
2477
2451
|
export declare const signingKeySchema: z.ZodObject<{
|
|
2478
2452
|
kid: z.ZodString;
|
|
2479
2453
|
cert: z.ZodString;
|
|
@@ -2492,7 +2466,6 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
2492
2466
|
cert: string;
|
|
2493
2467
|
fingerprint: string;
|
|
2494
2468
|
thumbprint: string;
|
|
2495
|
-
revoked_at?: string | undefined;
|
|
2496
2469
|
pkcs7?: string | undefined;
|
|
2497
2470
|
current?: boolean | undefined;
|
|
2498
2471
|
next?: boolean | undefined;
|
|
@@ -2500,12 +2473,12 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
2500
2473
|
current_since?: string | undefined;
|
|
2501
2474
|
current_until?: string | undefined;
|
|
2502
2475
|
revoked?: boolean | undefined;
|
|
2476
|
+
revoked_at?: string | undefined;
|
|
2503
2477
|
}, {
|
|
2504
2478
|
kid: string;
|
|
2505
2479
|
cert: string;
|
|
2506
2480
|
fingerprint: string;
|
|
2507
2481
|
thumbprint: string;
|
|
2508
|
-
revoked_at?: string | undefined;
|
|
2509
2482
|
pkcs7?: string | undefined;
|
|
2510
2483
|
current?: boolean | undefined;
|
|
2511
2484
|
next?: boolean | undefined;
|
|
@@ -2513,7 +2486,9 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
2513
2486
|
current_since?: string | undefined;
|
|
2514
2487
|
current_until?: string | undefined;
|
|
2515
2488
|
revoked?: boolean | undefined;
|
|
2489
|
+
revoked_at?: string | undefined;
|
|
2516
2490
|
}>;
|
|
2491
|
+
export type SigningKey = z.infer<typeof signingKeySchema>;
|
|
2517
2492
|
export declare const tenantInsertSchema: z.ZodObject<{
|
|
2518
2493
|
name: z.ZodString;
|
|
2519
2494
|
audience: z.ZodString;
|
|
@@ -3889,613 +3864,59 @@ export interface Ticket {
|
|
|
3889
3864
|
expires_at: Date;
|
|
3890
3865
|
used_at?: Date;
|
|
3891
3866
|
}
|
|
3892
|
-
export declare
|
|
3893
|
-
|
|
3894
|
-
expires_at: z.ZodString;
|
|
3895
|
-
auth0Client: z.ZodOptional<z.ZodString>;
|
|
3896
|
-
authParams: z.ZodObject<{
|
|
3897
|
-
client_id: z.ZodString;
|
|
3898
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
3899
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
3900
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
3901
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
3902
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
3903
|
-
state: z.ZodOptional<z.ZodString>;
|
|
3904
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
3905
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
3906
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
3907
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
3908
|
-
username: z.ZodOptional<z.ZodString>;
|
|
3909
|
-
}, "strip", z.ZodTypeAny, {
|
|
3910
|
-
client_id: string;
|
|
3911
|
-
username?: string | undefined;
|
|
3912
|
-
audience?: string | undefined;
|
|
3913
|
-
vendor_id?: string | undefined;
|
|
3914
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
3915
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
3916
|
-
redirect_uri?: string | undefined;
|
|
3917
|
-
state?: string | undefined;
|
|
3918
|
-
nonce?: string | undefined;
|
|
3919
|
-
scope?: string | undefined;
|
|
3920
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
3921
|
-
code_challenge?: string | undefined;
|
|
3922
|
-
}, {
|
|
3923
|
-
client_id: string;
|
|
3924
|
-
username?: string | undefined;
|
|
3925
|
-
audience?: string | undefined;
|
|
3926
|
-
vendor_id?: string | undefined;
|
|
3927
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
3928
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
3929
|
-
redirect_uri?: string | undefined;
|
|
3930
|
-
state?: string | undefined;
|
|
3931
|
-
nonce?: string | undefined;
|
|
3932
|
-
scope?: string | undefined;
|
|
3933
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
3934
|
-
code_challenge?: string | undefined;
|
|
3935
|
-
}>;
|
|
3936
|
-
}, "strip", z.ZodTypeAny, {
|
|
3937
|
-
id: string;
|
|
3938
|
-
expires_at: string;
|
|
3939
|
-
authParams: {
|
|
3940
|
-
client_id: string;
|
|
3941
|
-
username?: string | undefined;
|
|
3942
|
-
audience?: string | undefined;
|
|
3943
|
-
vendor_id?: string | undefined;
|
|
3944
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
3945
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
3946
|
-
redirect_uri?: string | undefined;
|
|
3947
|
-
state?: string | undefined;
|
|
3948
|
-
nonce?: string | undefined;
|
|
3949
|
-
scope?: string | undefined;
|
|
3950
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
3951
|
-
code_challenge?: string | undefined;
|
|
3952
|
-
};
|
|
3953
|
-
auth0Client?: string | undefined;
|
|
3954
|
-
}, {
|
|
3867
|
+
export declare function parseUserId(user_id: string): {
|
|
3868
|
+
connection: string;
|
|
3955
3869
|
id: string;
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
state?: string | undefined;
|
|
3966
|
-
nonce?: string | undefined;
|
|
3967
|
-
scope?: string | undefined;
|
|
3968
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
3969
|
-
code_challenge?: string | undefined;
|
|
3870
|
+
};
|
|
3871
|
+
export interface ListParams {
|
|
3872
|
+
page: number;
|
|
3873
|
+
per_page: number;
|
|
3874
|
+
include_totals: boolean;
|
|
3875
|
+
q?: string;
|
|
3876
|
+
sort?: {
|
|
3877
|
+
sort_by: string;
|
|
3878
|
+
sort_order: "asc" | "desc";
|
|
3970
3879
|
};
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4012
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4013
|
-
redirect_uri?: string | undefined;
|
|
4014
|
-
state?: string | undefined;
|
|
4015
|
-
nonce?: string | undefined;
|
|
4016
|
-
scope?: string | undefined;
|
|
4017
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4018
|
-
code_challenge?: string | undefined;
|
|
4019
|
-
}>;
|
|
4020
|
-
}, "strip", z.ZodTypeAny, {
|
|
4021
|
-
created_at: string;
|
|
4022
|
-
updated_at: string;
|
|
4023
|
-
id: string;
|
|
4024
|
-
expires_at: string;
|
|
4025
|
-
authParams: {
|
|
4026
|
-
client_id: string;
|
|
4027
|
-
username?: string | undefined;
|
|
4028
|
-
audience?: string | undefined;
|
|
4029
|
-
vendor_id?: string | undefined;
|
|
4030
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4031
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4032
|
-
redirect_uri?: string | undefined;
|
|
4033
|
-
state?: string | undefined;
|
|
4034
|
-
nonce?: string | undefined;
|
|
4035
|
-
scope?: string | undefined;
|
|
4036
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4037
|
-
code_challenge?: string | undefined;
|
|
4038
|
-
};
|
|
4039
|
-
auth0Client?: string | undefined;
|
|
4040
|
-
}, {
|
|
4041
|
-
created_at: string;
|
|
4042
|
-
updated_at: string;
|
|
4043
|
-
id: string;
|
|
4044
|
-
expires_at: string;
|
|
4045
|
-
authParams: {
|
|
4046
|
-
client_id: string;
|
|
4047
|
-
username?: string | undefined;
|
|
4048
|
-
audience?: string | undefined;
|
|
4049
|
-
vendor_id?: string | undefined;
|
|
4050
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4051
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4052
|
-
redirect_uri?: string | undefined;
|
|
4053
|
-
state?: string | undefined;
|
|
4054
|
-
nonce?: string | undefined;
|
|
4055
|
-
scope?: string | undefined;
|
|
4056
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4057
|
-
code_challenge?: string | undefined;
|
|
4058
|
-
};
|
|
4059
|
-
auth0Client?: string | undefined;
|
|
4060
|
-
}>;
|
|
4061
|
-
export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
|
|
4062
|
-
export declare const otpInsertSchema: z.ZodObject<{
|
|
4063
|
-
id: z.ZodString;
|
|
4064
|
-
email: z.ZodString;
|
|
4065
|
-
code: z.ZodString;
|
|
4066
|
-
ip: z.ZodOptional<z.ZodString>;
|
|
4067
|
-
send: z.ZodEnum<[
|
|
4068
|
-
"code",
|
|
4069
|
-
"link"
|
|
4070
|
-
]>;
|
|
4071
|
-
authParams: z.ZodObject<{
|
|
4072
|
-
client_id: z.ZodString;
|
|
4073
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
4074
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
4075
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
4076
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
4077
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
4078
|
-
state: z.ZodOptional<z.ZodString>;
|
|
4079
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
4080
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
4081
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
4082
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
4083
|
-
username: z.ZodOptional<z.ZodString>;
|
|
4084
|
-
}, "strip", z.ZodTypeAny, {
|
|
4085
|
-
client_id: string;
|
|
4086
|
-
username?: string | undefined;
|
|
4087
|
-
audience?: string | undefined;
|
|
4088
|
-
vendor_id?: string | undefined;
|
|
4089
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4090
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4091
|
-
redirect_uri?: string | undefined;
|
|
4092
|
-
state?: string | undefined;
|
|
4093
|
-
nonce?: string | undefined;
|
|
4094
|
-
scope?: string | undefined;
|
|
4095
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4096
|
-
code_challenge?: string | undefined;
|
|
4097
|
-
}, {
|
|
4098
|
-
client_id: string;
|
|
4099
|
-
username?: string | undefined;
|
|
4100
|
-
audience?: string | undefined;
|
|
4101
|
-
vendor_id?: string | undefined;
|
|
4102
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4103
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4104
|
-
redirect_uri?: string | undefined;
|
|
4105
|
-
state?: string | undefined;
|
|
4106
|
-
nonce?: string | undefined;
|
|
4107
|
-
scope?: string | undefined;
|
|
4108
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4109
|
-
code_challenge?: string | undefined;
|
|
4110
|
-
}>;
|
|
4111
|
-
expires_at: z.ZodString;
|
|
4112
|
-
used_at: z.ZodOptional<z.ZodString>;
|
|
4113
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
4114
|
-
}, "strip", z.ZodTypeAny, {
|
|
4115
|
-
code: string;
|
|
4116
|
-
email: string;
|
|
4117
|
-
id: string;
|
|
4118
|
-
expires_at: string;
|
|
4119
|
-
authParams: {
|
|
4120
|
-
client_id: string;
|
|
4121
|
-
username?: string | undefined;
|
|
4122
|
-
audience?: string | undefined;
|
|
4123
|
-
vendor_id?: string | undefined;
|
|
4124
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4125
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4126
|
-
redirect_uri?: string | undefined;
|
|
4127
|
-
state?: string | undefined;
|
|
4128
|
-
nonce?: string | undefined;
|
|
4129
|
-
scope?: string | undefined;
|
|
4130
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4131
|
-
code_challenge?: string | undefined;
|
|
4132
|
-
};
|
|
4133
|
-
send: "code" | "link";
|
|
4134
|
-
user_id?: string | undefined;
|
|
4135
|
-
used_at?: string | undefined;
|
|
4136
|
-
ip?: string | undefined;
|
|
4137
|
-
}, {
|
|
4138
|
-
code: string;
|
|
4139
|
-
email: string;
|
|
4140
|
-
id: string;
|
|
4141
|
-
expires_at: string;
|
|
4142
|
-
authParams: {
|
|
4143
|
-
client_id: string;
|
|
4144
|
-
username?: string | undefined;
|
|
4145
|
-
audience?: string | undefined;
|
|
4146
|
-
vendor_id?: string | undefined;
|
|
4147
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4148
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4149
|
-
redirect_uri?: string | undefined;
|
|
4150
|
-
state?: string | undefined;
|
|
4151
|
-
nonce?: string | undefined;
|
|
4152
|
-
scope?: string | undefined;
|
|
4153
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4154
|
-
code_challenge?: string | undefined;
|
|
4155
|
-
};
|
|
4156
|
-
send: "code" | "link";
|
|
4157
|
-
user_id?: string | undefined;
|
|
4158
|
-
used_at?: string | undefined;
|
|
4159
|
-
ip?: string | undefined;
|
|
4160
|
-
}>;
|
|
4161
|
-
export type OTPInsert = z.infer<typeof otpInsertSchema>;
|
|
4162
|
-
export declare const otpSchema: z.ZodObject<{
|
|
4163
|
-
id: z.ZodString;
|
|
4164
|
-
email: z.ZodString;
|
|
4165
|
-
code: z.ZodString;
|
|
4166
|
-
ip: z.ZodOptional<z.ZodString>;
|
|
4167
|
-
send: z.ZodEnum<[
|
|
4168
|
-
"code",
|
|
4169
|
-
"link"
|
|
4170
|
-
]>;
|
|
4171
|
-
authParams: z.ZodObject<{
|
|
4172
|
-
client_id: z.ZodString;
|
|
4173
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
4174
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
4175
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
4176
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
4177
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
4178
|
-
state: z.ZodOptional<z.ZodString>;
|
|
4179
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
4180
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
4181
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
4182
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
4183
|
-
username: z.ZodOptional<z.ZodString>;
|
|
4184
|
-
}, "strip", z.ZodTypeAny, {
|
|
4185
|
-
client_id: string;
|
|
4186
|
-
username?: string | undefined;
|
|
4187
|
-
audience?: string | undefined;
|
|
4188
|
-
vendor_id?: string | undefined;
|
|
4189
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4190
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4191
|
-
redirect_uri?: string | undefined;
|
|
4192
|
-
state?: string | undefined;
|
|
4193
|
-
nonce?: string | undefined;
|
|
4194
|
-
scope?: string | undefined;
|
|
4195
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4196
|
-
code_challenge?: string | undefined;
|
|
4197
|
-
}, {
|
|
4198
|
-
client_id: string;
|
|
4199
|
-
username?: string | undefined;
|
|
4200
|
-
audience?: string | undefined;
|
|
4201
|
-
vendor_id?: string | undefined;
|
|
4202
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4203
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4204
|
-
redirect_uri?: string | undefined;
|
|
4205
|
-
state?: string | undefined;
|
|
4206
|
-
nonce?: string | undefined;
|
|
4207
|
-
scope?: string | undefined;
|
|
4208
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4209
|
-
code_challenge?: string | undefined;
|
|
4210
|
-
}>;
|
|
4211
|
-
expires_at: z.ZodString;
|
|
4212
|
-
used_at: z.ZodOptional<z.ZodString>;
|
|
4213
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
4214
|
-
created_at: z.ZodString;
|
|
4215
|
-
}, "strip", z.ZodTypeAny, {
|
|
4216
|
-
code: string;
|
|
4217
|
-
created_at: string;
|
|
4218
|
-
email: string;
|
|
4219
|
-
id: string;
|
|
4220
|
-
expires_at: string;
|
|
4221
|
-
authParams: {
|
|
4222
|
-
client_id: string;
|
|
4223
|
-
username?: string | undefined;
|
|
4224
|
-
audience?: string | undefined;
|
|
4225
|
-
vendor_id?: string | undefined;
|
|
4226
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4227
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4228
|
-
redirect_uri?: string | undefined;
|
|
4229
|
-
state?: string | undefined;
|
|
4230
|
-
nonce?: string | undefined;
|
|
4231
|
-
scope?: string | undefined;
|
|
4232
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4233
|
-
code_challenge?: string | undefined;
|
|
4234
|
-
};
|
|
4235
|
-
send: "code" | "link";
|
|
4236
|
-
user_id?: string | undefined;
|
|
4237
|
-
used_at?: string | undefined;
|
|
4238
|
-
ip?: string | undefined;
|
|
4239
|
-
}, {
|
|
4240
|
-
code: string;
|
|
4241
|
-
created_at: string;
|
|
4242
|
-
email: string;
|
|
4243
|
-
id: string;
|
|
4244
|
-
expires_at: string;
|
|
4245
|
-
authParams: {
|
|
4246
|
-
client_id: string;
|
|
4247
|
-
username?: string | undefined;
|
|
4248
|
-
audience?: string | undefined;
|
|
4249
|
-
vendor_id?: string | undefined;
|
|
4250
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4251
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4252
|
-
redirect_uri?: string | undefined;
|
|
4253
|
-
state?: string | undefined;
|
|
4254
|
-
nonce?: string | undefined;
|
|
4255
|
-
scope?: string | undefined;
|
|
4256
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4257
|
-
code_challenge?: string | undefined;
|
|
4258
|
-
};
|
|
4259
|
-
send: "code" | "link";
|
|
4260
|
-
user_id?: string | undefined;
|
|
4261
|
-
used_at?: string | undefined;
|
|
4262
|
-
ip?: string | undefined;
|
|
4263
|
-
}>;
|
|
4264
|
-
export type OTP = z.infer<typeof otpSchema>;
|
|
4265
|
-
export declare const authenticationCodeInsertSchema: z.ZodObject<{
|
|
4266
|
-
authParams: z.ZodObject<{
|
|
4267
|
-
client_id: z.ZodString;
|
|
4268
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
4269
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
4270
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
4271
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
4272
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
4273
|
-
state: z.ZodOptional<z.ZodString>;
|
|
4274
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
4275
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
4276
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
4277
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
4278
|
-
username: z.ZodOptional<z.ZodString>;
|
|
4279
|
-
}, "strip", z.ZodTypeAny, {
|
|
4280
|
-
client_id: string;
|
|
4281
|
-
username?: string | undefined;
|
|
4282
|
-
audience?: string | undefined;
|
|
4283
|
-
vendor_id?: string | undefined;
|
|
4284
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4285
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4286
|
-
redirect_uri?: string | undefined;
|
|
4287
|
-
state?: string | undefined;
|
|
4288
|
-
nonce?: string | undefined;
|
|
4289
|
-
scope?: string | undefined;
|
|
4290
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4291
|
-
code_challenge?: string | undefined;
|
|
4292
|
-
}, {
|
|
4293
|
-
client_id: string;
|
|
4294
|
-
username?: string | undefined;
|
|
4295
|
-
audience?: string | undefined;
|
|
4296
|
-
vendor_id?: string | undefined;
|
|
4297
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4298
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4299
|
-
redirect_uri?: string | undefined;
|
|
4300
|
-
state?: string | undefined;
|
|
4301
|
-
nonce?: string | undefined;
|
|
4302
|
-
scope?: string | undefined;
|
|
4303
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4304
|
-
code_challenge?: string | undefined;
|
|
4305
|
-
}>;
|
|
4306
|
-
code: z.ZodString;
|
|
4307
|
-
user_id: z.ZodString;
|
|
4308
|
-
created_at: z.ZodString;
|
|
4309
|
-
expires_at: z.ZodString;
|
|
4310
|
-
used_at: z.ZodOptional<z.ZodString>;
|
|
4311
|
-
}, "strip", z.ZodTypeAny, {
|
|
4312
|
-
code: string;
|
|
4313
|
-
created_at: string;
|
|
4314
|
-
user_id: string;
|
|
4315
|
-
expires_at: string;
|
|
4316
|
-
authParams: {
|
|
4317
|
-
client_id: string;
|
|
4318
|
-
username?: string | undefined;
|
|
4319
|
-
audience?: string | undefined;
|
|
4320
|
-
vendor_id?: string | undefined;
|
|
4321
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4322
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4323
|
-
redirect_uri?: string | undefined;
|
|
4324
|
-
state?: string | undefined;
|
|
4325
|
-
nonce?: string | undefined;
|
|
4326
|
-
scope?: string | undefined;
|
|
4327
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4328
|
-
code_challenge?: string | undefined;
|
|
4329
|
-
};
|
|
4330
|
-
used_at?: string | undefined;
|
|
4331
|
-
}, {
|
|
4332
|
-
code: string;
|
|
4333
|
-
created_at: string;
|
|
4334
|
-
user_id: string;
|
|
4335
|
-
expires_at: string;
|
|
4336
|
-
authParams: {
|
|
4337
|
-
client_id: string;
|
|
4338
|
-
username?: string | undefined;
|
|
4339
|
-
audience?: string | undefined;
|
|
4340
|
-
vendor_id?: string | undefined;
|
|
4341
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4342
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4343
|
-
redirect_uri?: string | undefined;
|
|
4344
|
-
state?: string | undefined;
|
|
4345
|
-
nonce?: string | undefined;
|
|
4346
|
-
scope?: string | undefined;
|
|
4347
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4348
|
-
code_challenge?: string | undefined;
|
|
4349
|
-
};
|
|
4350
|
-
used_at?: string | undefined;
|
|
4351
|
-
}>;
|
|
4352
|
-
export type AuthenticationCodeInsert = z.infer<typeof authenticationCodeInsertSchema>;
|
|
4353
|
-
export declare const authenticationCodeSchema: z.ZodObject<{
|
|
4354
|
-
created_at: z.ZodString;
|
|
4355
|
-
authParams: z.ZodObject<{
|
|
4356
|
-
client_id: z.ZodString;
|
|
4357
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
4358
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
4359
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
4360
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
4361
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
4362
|
-
state: z.ZodOptional<z.ZodString>;
|
|
4363
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
4364
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
4365
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
4366
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
4367
|
-
username: z.ZodOptional<z.ZodString>;
|
|
4368
|
-
}, "strip", z.ZodTypeAny, {
|
|
4369
|
-
client_id: string;
|
|
4370
|
-
username?: string | undefined;
|
|
4371
|
-
audience?: string | undefined;
|
|
4372
|
-
vendor_id?: string | undefined;
|
|
4373
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4374
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4375
|
-
redirect_uri?: string | undefined;
|
|
4376
|
-
state?: string | undefined;
|
|
4377
|
-
nonce?: string | undefined;
|
|
4378
|
-
scope?: string | undefined;
|
|
4379
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4380
|
-
code_challenge?: string | undefined;
|
|
4381
|
-
}, {
|
|
4382
|
-
client_id: string;
|
|
4383
|
-
username?: string | undefined;
|
|
4384
|
-
audience?: string | undefined;
|
|
4385
|
-
vendor_id?: string | undefined;
|
|
4386
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4387
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4388
|
-
redirect_uri?: string | undefined;
|
|
4389
|
-
state?: string | undefined;
|
|
4390
|
-
nonce?: string | undefined;
|
|
4391
|
-
scope?: string | undefined;
|
|
4392
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4393
|
-
code_challenge?: string | undefined;
|
|
4394
|
-
}>;
|
|
4395
|
-
code: z.ZodString;
|
|
4396
|
-
user_id: z.ZodString;
|
|
4397
|
-
expires_at: z.ZodString;
|
|
4398
|
-
used_at: z.ZodOptional<z.ZodString>;
|
|
4399
|
-
}, "strip", z.ZodTypeAny, {
|
|
4400
|
-
code: string;
|
|
4401
|
-
created_at: string;
|
|
4402
|
-
user_id: string;
|
|
4403
|
-
expires_at: string;
|
|
4404
|
-
authParams: {
|
|
4405
|
-
client_id: string;
|
|
4406
|
-
username?: string | undefined;
|
|
4407
|
-
audience?: string | undefined;
|
|
4408
|
-
vendor_id?: string | undefined;
|
|
4409
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4410
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4411
|
-
redirect_uri?: string | undefined;
|
|
4412
|
-
state?: string | undefined;
|
|
4413
|
-
nonce?: string | undefined;
|
|
4414
|
-
scope?: string | undefined;
|
|
4415
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4416
|
-
code_challenge?: string | undefined;
|
|
4417
|
-
};
|
|
4418
|
-
used_at?: string | undefined;
|
|
4419
|
-
}, {
|
|
4420
|
-
code: string;
|
|
4421
|
-
created_at: string;
|
|
4422
|
-
user_id: string;
|
|
4423
|
-
expires_at: string;
|
|
4424
|
-
authParams: {
|
|
4425
|
-
client_id: string;
|
|
4426
|
-
username?: string | undefined;
|
|
4427
|
-
audience?: string | undefined;
|
|
4428
|
-
vendor_id?: string | undefined;
|
|
4429
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
4430
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
4431
|
-
redirect_uri?: string | undefined;
|
|
4432
|
-
state?: string | undefined;
|
|
4433
|
-
nonce?: string | undefined;
|
|
4434
|
-
scope?: string | undefined;
|
|
4435
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
4436
|
-
code_challenge?: string | undefined;
|
|
4437
|
-
};
|
|
4438
|
-
used_at?: string | undefined;
|
|
4439
|
-
}>;
|
|
4440
|
-
export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
|
|
4441
|
-
export declare function parseUserId(user_id: string): {
|
|
4442
|
-
connection: string;
|
|
4443
|
-
id: string;
|
|
4444
|
-
};
|
|
4445
|
-
export interface ListParams {
|
|
4446
|
-
page: number;
|
|
4447
|
-
per_page: number;
|
|
4448
|
-
include_totals: boolean;
|
|
4449
|
-
q?: string;
|
|
4450
|
-
sort?: {
|
|
4451
|
-
sort_by: string;
|
|
4452
|
-
sort_order: "asc" | "desc";
|
|
4453
|
-
};
|
|
4454
|
-
}
|
|
4455
|
-
export interface ListCodesResponse extends Totals {
|
|
4456
|
-
codes: Code[];
|
|
4457
|
-
}
|
|
4458
|
-
export interface CodesAdapter {
|
|
4459
|
-
create: (tenant_id: string, authCode: CodeInsert) => Promise<Code>;
|
|
4460
|
-
get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
|
|
4461
|
-
list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
|
|
4462
|
-
remove: (tenant_id: string, code: string) => Promise<boolean>;
|
|
4463
|
-
}
|
|
4464
|
-
export interface OTPAdapter {
|
|
4465
|
-
create: (tenant_id: string, authCode: OTPInsert) => Promise<void>;
|
|
4466
|
-
list: (tenant_id: string, email: string) => Promise<OTP[]>;
|
|
4467
|
-
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
4468
|
-
}
|
|
4469
|
-
export interface PasswordsAdapter {
|
|
4470
|
-
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
4471
|
-
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
4472
|
-
get: (tenant_id: string, user_id: string) => Promise<Password>;
|
|
4473
|
-
}
|
|
4474
|
-
export interface ListSesssionsResponse extends Totals {
|
|
4475
|
-
sessions: Session[];
|
|
4476
|
-
}
|
|
4477
|
-
export interface SessionsAdapter {
|
|
4478
|
-
create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
|
|
4479
|
-
get: (tenant_id: string, id: string) => Promise<Session | null>;
|
|
4480
|
-
list(tenantId: string, params: ListParams): Promise<ListSesssionsResponse>;
|
|
4481
|
-
update: (tenant_id: string, id: string, session: {
|
|
4482
|
-
used_at: string;
|
|
4483
|
-
}) => Promise<boolean>;
|
|
4484
|
-
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
4485
|
-
}
|
|
4486
|
-
export interface CreateTenantParams {
|
|
4487
|
-
name: string;
|
|
4488
|
-
audience: string;
|
|
4489
|
-
sender_name: string;
|
|
4490
|
-
sender_email: string;
|
|
4491
|
-
id?: string;
|
|
4492
|
-
}
|
|
4493
|
-
export interface TenantsDataAdapter {
|
|
4494
|
-
create(params: CreateTenantParams): Promise<Tenant>;
|
|
4495
|
-
get(id: string): Promise<Tenant | null>;
|
|
4496
|
-
list(params: ListParams): Promise<{
|
|
4497
|
-
tenants: Tenant[];
|
|
4498
|
-
totals?: Totals;
|
|
3880
|
+
}
|
|
3881
|
+
export interface ListCodesResponse extends Totals {
|
|
3882
|
+
codes: Code[];
|
|
3883
|
+
}
|
|
3884
|
+
export interface CodesAdapter {
|
|
3885
|
+
create: (tenant_id: string, authCode: CodeInsert) => Promise<Code>;
|
|
3886
|
+
get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
|
|
3887
|
+
list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
|
|
3888
|
+
remove: (tenant_id: string, code: string) => Promise<boolean>;
|
|
3889
|
+
}
|
|
3890
|
+
export interface PasswordsAdapter {
|
|
3891
|
+
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
3892
|
+
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
3893
|
+
get: (tenant_id: string, user_id: string) => Promise<Password>;
|
|
3894
|
+
}
|
|
3895
|
+
export interface ListSesssionsResponse extends Totals {
|
|
3896
|
+
sessions: Session[];
|
|
3897
|
+
}
|
|
3898
|
+
export interface SessionsAdapter {
|
|
3899
|
+
create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
|
|
3900
|
+
get: (tenant_id: string, id: string) => Promise<Session | null>;
|
|
3901
|
+
list(tenantId: string, params: ListParams): Promise<ListSesssionsResponse>;
|
|
3902
|
+
update: (tenant_id: string, id: string, session: {
|
|
3903
|
+
used_at: string;
|
|
3904
|
+
}) => Promise<boolean>;
|
|
3905
|
+
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
3906
|
+
}
|
|
3907
|
+
export interface CreateTenantParams {
|
|
3908
|
+
name: string;
|
|
3909
|
+
audience: string;
|
|
3910
|
+
sender_name: string;
|
|
3911
|
+
sender_email: string;
|
|
3912
|
+
id?: string;
|
|
3913
|
+
}
|
|
3914
|
+
export interface TenantsDataAdapter {
|
|
3915
|
+
create(params: CreateTenantParams): Promise<Tenant>;
|
|
3916
|
+
get(id: string): Promise<Tenant | null>;
|
|
3917
|
+
list(params: ListParams): Promise<{
|
|
3918
|
+
tenants: Tenant[];
|
|
3919
|
+
totals?: Totals;
|
|
4499
3920
|
}>;
|
|
4500
3921
|
update(id: string, tenant: Partial<Tenant>): Promise<void>;
|
|
4501
3922
|
remove(tenantId: string): Promise<boolean>;
|
|
@@ -4534,11 +3955,6 @@ export interface ApplicationsAdapter {
|
|
|
4534
3955
|
}>;
|
|
4535
3956
|
update(tenant_id: string, id: string, application: Partial<Application>): Promise<boolean>;
|
|
4536
3957
|
}
|
|
4537
|
-
export interface UniversalLoginSessionsAdapter {
|
|
4538
|
-
create: (tenant_id: string, session: UniversalLoginSessionInsert) => Promise<UniversalLoginSession>;
|
|
4539
|
-
update: (tenant_id: string, id: string, session: UniversalLoginSession) => Promise<boolean>;
|
|
4540
|
-
get: (id: string) => Promise<UniversalLoginSession | null>;
|
|
4541
|
-
}
|
|
4542
3958
|
export interface ListConnectionsResponse extends Totals {
|
|
4543
3959
|
connections: Connection[];
|
|
4544
3960
|
}
|
|
@@ -4557,18 +3973,14 @@ export interface DomainsAdapter {
|
|
|
4557
3973
|
list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
|
|
4558
3974
|
}
|
|
4559
3975
|
export interface KeysAdapter {
|
|
4560
|
-
create: (key:
|
|
4561
|
-
list: () => Promise<
|
|
4562
|
-
|
|
3976
|
+
create: (key: SigningKey) => Promise<void>;
|
|
3977
|
+
list: () => Promise<SigningKey[]>;
|
|
3978
|
+
update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
|
|
4563
3979
|
}
|
|
4564
3980
|
export interface BrandingAdapter {
|
|
4565
3981
|
set: (tenant_id: string, authCode: Branding) => Promise<void>;
|
|
4566
3982
|
get: (tenant_id: string) => Promise<Branding | null>;
|
|
4567
3983
|
}
|
|
4568
|
-
export interface AuthenticationCodesAdapter {
|
|
4569
|
-
create: (tenant_id: string, authCode: AuthenticationCode) => Promise<void>;
|
|
4570
|
-
get: (tenant_id: string, code: string) => Promise<AuthenticationCode>;
|
|
4571
|
-
}
|
|
4572
3984
|
export interface ListHooksResponse extends Totals {
|
|
4573
3985
|
hooks: Hook[];
|
|
4574
3986
|
}
|
|
@@ -4596,7 +4008,6 @@ export interface LoginsAdapter {
|
|
|
4596
4008
|
}
|
|
4597
4009
|
export interface DataAdapters {
|
|
4598
4010
|
applications: ApplicationsAdapter;
|
|
4599
|
-
authenticationCodes: AuthenticationCodesAdapter;
|
|
4600
4011
|
branding: BrandingAdapter;
|
|
4601
4012
|
clients: ClientsAdapter;
|
|
4602
4013
|
codes: CodesAdapter;
|
|
@@ -4606,13 +4017,11 @@ export interface DataAdapters {
|
|
|
4606
4017
|
keys: KeysAdapter;
|
|
4607
4018
|
logins: LoginsAdapter;
|
|
4608
4019
|
logs: LogsDataAdapter;
|
|
4609
|
-
OTP: OTPAdapter;
|
|
4610
4020
|
passwords: PasswordsAdapter;
|
|
4611
4021
|
sessions: SessionsAdapter;
|
|
4612
4022
|
tenants: TenantsDataAdapter;
|
|
4613
4023
|
themes: ThemesAdapter;
|
|
4614
4024
|
tickets: TicketsAdapter;
|
|
4615
|
-
universalLoginSessions: UniversalLoginSessionsAdapter;
|
|
4616
4025
|
users: UserDataAdapter;
|
|
4617
4026
|
}
|
|
4618
4027
|
|