authhero 0.9.0 → 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.
- package/dist/authhero.cjs +15 -15
- package/dist/authhero.d.ts +1443 -75
- package/dist/authhero.mjs +6208 -6151
- package/package.json +11 -7
- package/dist/authhero.iife.js +0 -125
package/dist/authhero.d.ts
CHANGED
|
@@ -10,12 +10,317 @@ export type Variables = {
|
|
|
10
10
|
connection?: string;
|
|
11
11
|
body?: any;
|
|
12
12
|
};
|
|
13
|
+
export declare const totalsSchema: z.ZodObject<{
|
|
14
|
+
start: z.ZodNumber;
|
|
15
|
+
limit: z.ZodNumber;
|
|
16
|
+
length: z.ZodNumber;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
start: number;
|
|
19
|
+
limit: number;
|
|
20
|
+
length: number;
|
|
21
|
+
}, {
|
|
22
|
+
start: number;
|
|
23
|
+
limit: number;
|
|
24
|
+
length: number;
|
|
25
|
+
}>;
|
|
13
26
|
export interface Totals {
|
|
14
27
|
start: number;
|
|
15
28
|
limit: number;
|
|
16
29
|
length: number;
|
|
17
30
|
}
|
|
18
|
-
declare const
|
|
31
|
+
export declare const baseUserSchema: z.ZodObject<{
|
|
32
|
+
email: z.ZodOptional<z.ZodString>;
|
|
33
|
+
username: z.ZodOptional<z.ZodString>;
|
|
34
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
35
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
36
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
37
|
+
name: z.ZodOptional<z.ZodString>;
|
|
38
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
39
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
40
|
+
linked_to: z.ZodOptional<z.ZodString>;
|
|
41
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
42
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
43
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
44
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
email?: string | undefined;
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
username?: string | undefined;
|
|
49
|
+
given_name?: string | undefined;
|
|
50
|
+
family_name?: string | undefined;
|
|
51
|
+
user_id?: string | undefined;
|
|
52
|
+
profileData?: string | undefined;
|
|
53
|
+
nickname?: string | undefined;
|
|
54
|
+
picture?: string | undefined;
|
|
55
|
+
locale?: string | undefined;
|
|
56
|
+
linked_to?: string | undefined;
|
|
57
|
+
app_metadata?: any;
|
|
58
|
+
user_metadata?: any;
|
|
59
|
+
}, {
|
|
60
|
+
email?: string | undefined;
|
|
61
|
+
name?: string | undefined;
|
|
62
|
+
username?: string | undefined;
|
|
63
|
+
given_name?: string | undefined;
|
|
64
|
+
family_name?: string | undefined;
|
|
65
|
+
user_id?: string | undefined;
|
|
66
|
+
profileData?: string | undefined;
|
|
67
|
+
nickname?: string | undefined;
|
|
68
|
+
picture?: string | undefined;
|
|
69
|
+
locale?: string | undefined;
|
|
70
|
+
linked_to?: string | undefined;
|
|
71
|
+
app_metadata?: any;
|
|
72
|
+
user_metadata?: any;
|
|
73
|
+
}>;
|
|
74
|
+
export type BaseUser = z.infer<typeof baseUserSchema>;
|
|
75
|
+
export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
76
|
+
email: z.ZodOptional<z.ZodString>;
|
|
77
|
+
username: z.ZodOptional<z.ZodString>;
|
|
78
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
79
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
80
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
81
|
+
name: z.ZodOptional<z.ZodString>;
|
|
82
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
83
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
84
|
+
linked_to: z.ZodOptional<z.ZodString>;
|
|
85
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
86
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
87
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
88
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
89
|
+
}, {
|
|
90
|
+
email_verified: z.ZodDefault<z.ZodBoolean>;
|
|
91
|
+
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
last_ip: z.ZodOptional<z.ZodString>;
|
|
93
|
+
last_login: z.ZodOptional<z.ZodString>;
|
|
94
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
95
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
96
|
+
connection: z.ZodDefault<z.ZodString>;
|
|
97
|
+
}>, "strip", z.ZodTypeAny, {
|
|
98
|
+
email_verified: boolean;
|
|
99
|
+
connection: string;
|
|
100
|
+
provider: string;
|
|
101
|
+
email?: string | undefined;
|
|
102
|
+
name?: string | undefined;
|
|
103
|
+
username?: string | undefined;
|
|
104
|
+
given_name?: string | undefined;
|
|
105
|
+
family_name?: string | undefined;
|
|
106
|
+
user_id?: string | undefined;
|
|
107
|
+
profileData?: string | undefined;
|
|
108
|
+
nickname?: string | undefined;
|
|
109
|
+
picture?: string | undefined;
|
|
110
|
+
locale?: string | undefined;
|
|
111
|
+
linked_to?: string | undefined;
|
|
112
|
+
app_metadata?: any;
|
|
113
|
+
user_metadata?: any;
|
|
114
|
+
verify_email?: boolean | undefined;
|
|
115
|
+
last_ip?: string | undefined;
|
|
116
|
+
last_login?: string | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
email?: string | undefined;
|
|
119
|
+
email_verified?: boolean | undefined;
|
|
120
|
+
name?: string | undefined;
|
|
121
|
+
username?: string | undefined;
|
|
122
|
+
given_name?: string | undefined;
|
|
123
|
+
family_name?: string | undefined;
|
|
124
|
+
connection?: string | undefined;
|
|
125
|
+
user_id?: string | undefined;
|
|
126
|
+
provider?: string | undefined;
|
|
127
|
+
profileData?: string | undefined;
|
|
128
|
+
nickname?: string | undefined;
|
|
129
|
+
picture?: string | undefined;
|
|
130
|
+
locale?: string | undefined;
|
|
131
|
+
linked_to?: string | undefined;
|
|
132
|
+
app_metadata?: any;
|
|
133
|
+
user_metadata?: any;
|
|
134
|
+
verify_email?: boolean | undefined;
|
|
135
|
+
last_ip?: string | undefined;
|
|
136
|
+
last_login?: string | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
export declare const userSchema: z.ZodObject<{
|
|
139
|
+
user_id: z.ZodString;
|
|
140
|
+
email: z.ZodString;
|
|
141
|
+
is_social: z.ZodBoolean;
|
|
142
|
+
login_count: z.ZodNumber;
|
|
143
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
+
connection: z.ZodString;
|
|
145
|
+
user_id: z.ZodString;
|
|
146
|
+
provider: z.ZodString;
|
|
147
|
+
isSocial: z.ZodBoolean;
|
|
148
|
+
access_token: z.ZodOptional<z.ZodString>;
|
|
149
|
+
access_token_secret: z.ZodOptional<z.ZodString>;
|
|
150
|
+
refresh_token: z.ZodOptional<z.ZodString>;
|
|
151
|
+
profileData: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
email: z.ZodOptional<z.ZodString>;
|
|
153
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
name: z.ZodOptional<z.ZodString>;
|
|
155
|
+
username: z.ZodOptional<z.ZodString>;
|
|
156
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
157
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
158
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
161
|
+
email: z.ZodOptional<z.ZodString>;
|
|
162
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
name: z.ZodOptional<z.ZodString>;
|
|
164
|
+
username: z.ZodOptional<z.ZodString>;
|
|
165
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
166
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
167
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
170
|
+
email: z.ZodOptional<z.ZodString>;
|
|
171
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
name: z.ZodOptional<z.ZodString>;
|
|
173
|
+
username: z.ZodOptional<z.ZodString>;
|
|
174
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
175
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
176
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.ZodAny, "strip">>>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
connection: string;
|
|
181
|
+
user_id: string;
|
|
182
|
+
provider: string;
|
|
183
|
+
isSocial: boolean;
|
|
184
|
+
access_token?: string | undefined;
|
|
185
|
+
access_token_secret?: string | undefined;
|
|
186
|
+
refresh_token?: string | undefined;
|
|
187
|
+
profileData?: z.objectOutputType<{
|
|
188
|
+
email: z.ZodOptional<z.ZodString>;
|
|
189
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
name: z.ZodOptional<z.ZodString>;
|
|
191
|
+
username: z.ZodOptional<z.ZodString>;
|
|
192
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
193
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
194
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
connection: string;
|
|
199
|
+
user_id: string;
|
|
200
|
+
provider: string;
|
|
201
|
+
isSocial: boolean;
|
|
202
|
+
access_token?: string | undefined;
|
|
203
|
+
access_token_secret?: string | undefined;
|
|
204
|
+
refresh_token?: string | undefined;
|
|
205
|
+
profileData?: z.objectInputType<{
|
|
206
|
+
email: z.ZodOptional<z.ZodString>;
|
|
207
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
name: z.ZodOptional<z.ZodString>;
|
|
209
|
+
username: z.ZodOptional<z.ZodString>;
|
|
210
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
211
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
212
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
215
|
+
}>, "many">>;
|
|
216
|
+
created_at: z.ZodString;
|
|
217
|
+
updated_at: z.ZodString;
|
|
218
|
+
username: z.ZodOptional<z.ZodString>;
|
|
219
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
220
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
221
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
222
|
+
name: z.ZodOptional<z.ZodString>;
|
|
223
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
224
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
225
|
+
linked_to: z.ZodOptional<z.ZodString>;
|
|
226
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
227
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
228
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
229
|
+
email_verified: z.ZodDefault<z.ZodBoolean>;
|
|
230
|
+
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
last_ip: z.ZodOptional<z.ZodString>;
|
|
232
|
+
last_login: z.ZodOptional<z.ZodString>;
|
|
233
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
234
|
+
connection: z.ZodDefault<z.ZodString>;
|
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
created_at: string;
|
|
237
|
+
updated_at: string;
|
|
238
|
+
email: string;
|
|
239
|
+
email_verified: boolean;
|
|
240
|
+
connection: string;
|
|
241
|
+
user_id: string;
|
|
242
|
+
provider: string;
|
|
243
|
+
is_social: boolean;
|
|
244
|
+
login_count: number;
|
|
245
|
+
name?: string | undefined;
|
|
246
|
+
username?: string | undefined;
|
|
247
|
+
given_name?: string | undefined;
|
|
248
|
+
family_name?: string | undefined;
|
|
249
|
+
profileData?: string | undefined;
|
|
250
|
+
nickname?: string | undefined;
|
|
251
|
+
picture?: string | undefined;
|
|
252
|
+
locale?: string | undefined;
|
|
253
|
+
linked_to?: string | undefined;
|
|
254
|
+
app_metadata?: any;
|
|
255
|
+
user_metadata?: any;
|
|
256
|
+
verify_email?: boolean | undefined;
|
|
257
|
+
last_ip?: string | undefined;
|
|
258
|
+
last_login?: string | undefined;
|
|
259
|
+
identities?: {
|
|
260
|
+
connection: string;
|
|
261
|
+
user_id: string;
|
|
262
|
+
provider: string;
|
|
263
|
+
isSocial: boolean;
|
|
264
|
+
access_token?: string | undefined;
|
|
265
|
+
access_token_secret?: string | undefined;
|
|
266
|
+
refresh_token?: string | undefined;
|
|
267
|
+
profileData?: z.objectOutputType<{
|
|
268
|
+
email: z.ZodOptional<z.ZodString>;
|
|
269
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
name: z.ZodOptional<z.ZodString>;
|
|
271
|
+
username: z.ZodOptional<z.ZodString>;
|
|
272
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
273
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
274
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
277
|
+
}[] | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
created_at: string;
|
|
280
|
+
updated_at: string;
|
|
281
|
+
email: string;
|
|
282
|
+
user_id: string;
|
|
283
|
+
is_social: boolean;
|
|
284
|
+
login_count: number;
|
|
285
|
+
email_verified?: boolean | undefined;
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
username?: string | undefined;
|
|
288
|
+
given_name?: string | undefined;
|
|
289
|
+
family_name?: string | undefined;
|
|
290
|
+
connection?: string | undefined;
|
|
291
|
+
provider?: string | undefined;
|
|
292
|
+
profileData?: string | undefined;
|
|
293
|
+
nickname?: string | undefined;
|
|
294
|
+
picture?: string | undefined;
|
|
295
|
+
locale?: string | undefined;
|
|
296
|
+
linked_to?: string | undefined;
|
|
297
|
+
app_metadata?: any;
|
|
298
|
+
user_metadata?: any;
|
|
299
|
+
verify_email?: boolean | undefined;
|
|
300
|
+
last_ip?: string | undefined;
|
|
301
|
+
last_login?: string | undefined;
|
|
302
|
+
identities?: {
|
|
303
|
+
connection: string;
|
|
304
|
+
user_id: string;
|
|
305
|
+
provider: string;
|
|
306
|
+
isSocial: boolean;
|
|
307
|
+
access_token?: string | undefined;
|
|
308
|
+
access_token_secret?: string | undefined;
|
|
309
|
+
refresh_token?: string | undefined;
|
|
310
|
+
profileData?: z.objectInputType<{
|
|
311
|
+
email: z.ZodOptional<z.ZodString>;
|
|
312
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
313
|
+
name: z.ZodOptional<z.ZodString>;
|
|
314
|
+
username: z.ZodOptional<z.ZodString>;
|
|
315
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
316
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
317
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
320
|
+
}[] | undefined;
|
|
321
|
+
}>;
|
|
322
|
+
export type User = z.infer<typeof userSchema>;
|
|
323
|
+
export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
19
324
|
user_id: z.ZodString;
|
|
20
325
|
email: z.ZodString;
|
|
21
326
|
is_social: z.ZodBoolean;
|
|
@@ -199,8 +504,131 @@ declare const userSchema: z.ZodObject<{
|
|
|
199
504
|
}, z.ZodAny, "strip"> | undefined;
|
|
200
505
|
}[] | undefined;
|
|
201
506
|
}>;
|
|
202
|
-
export
|
|
203
|
-
|
|
507
|
+
export interface PostUsersBody extends BaseUser {
|
|
508
|
+
password?: string;
|
|
509
|
+
verify_email?: boolean;
|
|
510
|
+
username?: string;
|
|
511
|
+
connection?: string;
|
|
512
|
+
email_verified?: boolean;
|
|
513
|
+
}
|
|
514
|
+
export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
515
|
+
email: z.ZodOptional<z.ZodString>;
|
|
516
|
+
username: z.ZodOptional<z.ZodString>;
|
|
517
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
518
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
519
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
520
|
+
name: z.ZodOptional<z.ZodString>;
|
|
521
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
522
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
523
|
+
linked_to: z.ZodOptional<z.ZodString>;
|
|
524
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
525
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
526
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
527
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
528
|
+
}, {
|
|
529
|
+
email: z.ZodString;
|
|
530
|
+
login_count: z.ZodNumber;
|
|
531
|
+
multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
532
|
+
last_ip: z.ZodOptional<z.ZodString>;
|
|
533
|
+
last_login: z.ZodOptional<z.ZodString>;
|
|
534
|
+
user_id: z.ZodString;
|
|
535
|
+
}>, "strip", z.ZodAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
536
|
+
email: z.ZodOptional<z.ZodString>;
|
|
537
|
+
username: z.ZodOptional<z.ZodString>;
|
|
538
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
539
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
540
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
541
|
+
name: z.ZodOptional<z.ZodString>;
|
|
542
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
543
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
544
|
+
linked_to: z.ZodOptional<z.ZodString>;
|
|
545
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
546
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
547
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
548
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
549
|
+
}, {
|
|
550
|
+
email: z.ZodString;
|
|
551
|
+
login_count: z.ZodNumber;
|
|
552
|
+
multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
553
|
+
last_ip: z.ZodOptional<z.ZodString>;
|
|
554
|
+
last_login: z.ZodOptional<z.ZodString>;
|
|
555
|
+
user_id: z.ZodString;
|
|
556
|
+
}>, z.ZodAny, "strip">, z.objectInputType<z.objectUtil.extendShape<{
|
|
557
|
+
email: z.ZodOptional<z.ZodString>;
|
|
558
|
+
username: z.ZodOptional<z.ZodString>;
|
|
559
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
560
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
561
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
562
|
+
name: z.ZodOptional<z.ZodString>;
|
|
563
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
564
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
565
|
+
linked_to: z.ZodOptional<z.ZodString>;
|
|
566
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
567
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
568
|
+
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
569
|
+
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
570
|
+
}, {
|
|
571
|
+
email: z.ZodString;
|
|
572
|
+
login_count: z.ZodNumber;
|
|
573
|
+
multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
574
|
+
last_ip: z.ZodOptional<z.ZodString>;
|
|
575
|
+
last_login: z.ZodOptional<z.ZodString>;
|
|
576
|
+
user_id: z.ZodString;
|
|
577
|
+
}>, z.ZodAny, "strip">>;
|
|
578
|
+
export type UserResponse = z.infer<typeof userResponseSchema>;
|
|
579
|
+
export declare const samlpAddon: z.ZodObject<{
|
|
580
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
581
|
+
recipient: z.ZodOptional<z.ZodString>;
|
|
582
|
+
createUpnClaim: z.ZodOptional<z.ZodBoolean>;
|
|
583
|
+
mapUnknownClaimsAsIs: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
+
passthroughClaimsWithNoMapping: z.ZodOptional<z.ZodBoolean>;
|
|
585
|
+
mapIdentities: z.ZodOptional<z.ZodBoolean>;
|
|
586
|
+
signatureAlgorithm: z.ZodOptional<z.ZodString>;
|
|
587
|
+
digestAlgorithm: z.ZodOptional<z.ZodString>;
|
|
588
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
589
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
590
|
+
lifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
591
|
+
signResponse: z.ZodOptional<z.ZodBoolean>;
|
|
592
|
+
nameIdentifierFormat: z.ZodOptional<z.ZodString>;
|
|
593
|
+
nameIdentifierProbes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
594
|
+
authnContextClassRef: z.ZodOptional<z.ZodString>;
|
|
595
|
+
mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
|
+
audience?: string | undefined;
|
|
598
|
+
recipient?: string | undefined;
|
|
599
|
+
createUpnClaim?: boolean | undefined;
|
|
600
|
+
mapUnknownClaimsAsIs?: boolean | undefined;
|
|
601
|
+
passthroughClaimsWithNoMapping?: boolean | undefined;
|
|
602
|
+
mapIdentities?: boolean | undefined;
|
|
603
|
+
signatureAlgorithm?: string | undefined;
|
|
604
|
+
digestAlgorithm?: string | undefined;
|
|
605
|
+
issuer?: string | undefined;
|
|
606
|
+
destination?: string | undefined;
|
|
607
|
+
lifetimeInSeconds?: number | undefined;
|
|
608
|
+
signResponse?: boolean | undefined;
|
|
609
|
+
nameIdentifierFormat?: string | undefined;
|
|
610
|
+
nameIdentifierProbes?: string[] | undefined;
|
|
611
|
+
authnContextClassRef?: string | undefined;
|
|
612
|
+
mappings?: Record<string, string> | undefined;
|
|
613
|
+
}, {
|
|
614
|
+
audience?: string | undefined;
|
|
615
|
+
recipient?: string | undefined;
|
|
616
|
+
createUpnClaim?: boolean | undefined;
|
|
617
|
+
mapUnknownClaimsAsIs?: boolean | undefined;
|
|
618
|
+
passthroughClaimsWithNoMapping?: boolean | undefined;
|
|
619
|
+
mapIdentities?: boolean | undefined;
|
|
620
|
+
signatureAlgorithm?: string | undefined;
|
|
621
|
+
digestAlgorithm?: string | undefined;
|
|
622
|
+
issuer?: string | undefined;
|
|
623
|
+
destination?: string | undefined;
|
|
624
|
+
lifetimeInSeconds?: number | undefined;
|
|
625
|
+
signResponse?: boolean | undefined;
|
|
626
|
+
nameIdentifierFormat?: string | undefined;
|
|
627
|
+
nameIdentifierProbes?: string[] | undefined;
|
|
628
|
+
authnContextClassRef?: string | undefined;
|
|
629
|
+
mappings?: Record<string, string> | undefined;
|
|
630
|
+
}>;
|
|
631
|
+
export declare const applicationInsertSchema: z.ZodObject<{
|
|
204
632
|
id: z.ZodString;
|
|
205
633
|
name: z.ZodString;
|
|
206
634
|
callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -371,7 +799,7 @@ declare const applicationInsertSchema: z.ZodObject<{
|
|
|
371
799
|
disable_sign_ups?: boolean | undefined;
|
|
372
800
|
}>;
|
|
373
801
|
export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
|
|
374
|
-
declare const applicationSchema: z.ZodObject<{
|
|
802
|
+
export declare const applicationSchema: z.ZodObject<{
|
|
375
803
|
id: z.ZodString;
|
|
376
804
|
name: z.ZodString;
|
|
377
805
|
callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -548,23 +976,73 @@ declare const applicationSchema: z.ZodObject<{
|
|
|
548
976
|
disable_sign_ups?: boolean | undefined;
|
|
549
977
|
}>;
|
|
550
978
|
export type Application = z.infer<typeof applicationSchema>;
|
|
551
|
-
declare enum AuthorizationResponseType {
|
|
979
|
+
export declare enum AuthorizationResponseType {
|
|
552
980
|
TOKEN = "token",
|
|
553
981
|
TOKEN_ID_TOKEN = "token id_token",
|
|
554
982
|
CODE = "code"
|
|
555
983
|
}
|
|
556
|
-
declare enum AuthorizationResponseMode {
|
|
984
|
+
export declare enum AuthorizationResponseMode {
|
|
557
985
|
QUERY = "query",
|
|
558
986
|
FRAGMENT = "fragment",
|
|
559
987
|
FORM_POST = "form_post",
|
|
560
988
|
WEB_MESSAGE = "web_message",
|
|
561
989
|
SAML_POST = "saml_post"
|
|
562
990
|
}
|
|
563
|
-
declare enum CodeChallengeMethod {
|
|
991
|
+
export declare enum CodeChallengeMethod {
|
|
564
992
|
S265 = "S256",
|
|
565
993
|
plain = "plain"
|
|
566
994
|
}
|
|
567
|
-
declare const
|
|
995
|
+
export declare const authParamsSchema: z.ZodObject<{
|
|
996
|
+
client_id: z.ZodString;
|
|
997
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
998
|
+
act_as: z.ZodOptional<z.ZodString>;
|
|
999
|
+
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
1000
|
+
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
1001
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
1008
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
ui_locales: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
}, "strip", z.ZodTypeAny, {
|
|
1012
|
+
client_id: string;
|
|
1013
|
+
username?: string | undefined;
|
|
1014
|
+
audience?: string | undefined;
|
|
1015
|
+
vendor_id?: string | undefined;
|
|
1016
|
+
act_as?: string | undefined;
|
|
1017
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
1018
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
1019
|
+
redirect_uri?: string | undefined;
|
|
1020
|
+
state?: string | undefined;
|
|
1021
|
+
nonce?: string | undefined;
|
|
1022
|
+
scope?: string | undefined;
|
|
1023
|
+
prompt?: string | undefined;
|
|
1024
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1025
|
+
code_challenge?: string | undefined;
|
|
1026
|
+
ui_locales?: string | undefined;
|
|
1027
|
+
}, {
|
|
1028
|
+
client_id: string;
|
|
1029
|
+
username?: string | undefined;
|
|
1030
|
+
audience?: string | undefined;
|
|
1031
|
+
vendor_id?: string | undefined;
|
|
1032
|
+
act_as?: string | undefined;
|
|
1033
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
1034
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
1035
|
+
redirect_uri?: string | undefined;
|
|
1036
|
+
state?: string | undefined;
|
|
1037
|
+
nonce?: string | undefined;
|
|
1038
|
+
scope?: string | undefined;
|
|
1039
|
+
prompt?: string | undefined;
|
|
1040
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1041
|
+
code_challenge?: string | undefined;
|
|
1042
|
+
ui_locales?: string | undefined;
|
|
1043
|
+
}>;
|
|
1044
|
+
export type AuthParams = z.infer<typeof authParamsSchema>;
|
|
1045
|
+
export declare const brandingSchema: z.ZodObject<{
|
|
568
1046
|
colors: z.ZodOptional<z.ZodObject<{
|
|
569
1047
|
primary: z.ZodString;
|
|
570
1048
|
page_background: z.ZodOptional<z.ZodObject<{
|
|
@@ -1086,7 +1564,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1086
1564
|
disable_sign_ups?: boolean | undefined;
|
|
1087
1565
|
}>;
|
|
1088
1566
|
export type Client = z.infer<typeof ClientSchema>;
|
|
1089
|
-
declare const codeTypeSchema: z.ZodEnum<[
|
|
1567
|
+
export declare const codeTypeSchema: z.ZodEnum<[
|
|
1090
1568
|
"password_reset",
|
|
1091
1569
|
"email_verification",
|
|
1092
1570
|
"otp",
|
|
@@ -1095,7 +1573,7 @@ declare const codeTypeSchema: z.ZodEnum<[
|
|
|
1095
1573
|
"ticket"
|
|
1096
1574
|
]>;
|
|
1097
1575
|
export type CodeType = z.infer<typeof codeTypeSchema>;
|
|
1098
|
-
declare const codeInsertSchema: z.ZodObject<{
|
|
1576
|
+
export declare const codeInsertSchema: z.ZodObject<{
|
|
1099
1577
|
code_id: z.ZodString;
|
|
1100
1578
|
login_id: z.ZodString;
|
|
1101
1579
|
connection_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1128,7 +1606,7 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
1128
1606
|
used_at?: string | undefined;
|
|
1129
1607
|
}>;
|
|
1130
1608
|
export type CodeInsert = z.infer<typeof codeInsertSchema>;
|
|
1131
|
-
declare const codeSchema: z.ZodObject<{
|
|
1609
|
+
export declare const codeSchema: z.ZodObject<{
|
|
1132
1610
|
created_at: z.ZodString;
|
|
1133
1611
|
code_id: z.ZodString;
|
|
1134
1612
|
login_id: z.ZodString;
|
|
@@ -1164,7 +1642,7 @@ declare const codeSchema: z.ZodObject<{
|
|
|
1164
1642
|
used_at?: string | undefined;
|
|
1165
1643
|
}>;
|
|
1166
1644
|
export type Code = z.infer<typeof codeSchema>;
|
|
1167
|
-
declare const connectionInsertSchema: z.ZodObject<{
|
|
1645
|
+
export declare const connectionInsertSchema: z.ZodObject<{
|
|
1168
1646
|
id: z.ZodOptional<z.ZodString>;
|
|
1169
1647
|
name: z.ZodString;
|
|
1170
1648
|
strategy: z.ZodOptional<z.ZodEnum<[
|
|
@@ -1271,7 +1749,7 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1271
1749
|
enabled_clients?: string[] | undefined;
|
|
1272
1750
|
}>;
|
|
1273
1751
|
export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
|
|
1274
|
-
declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1752
|
+
export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1275
1753
|
id: z.ZodString;
|
|
1276
1754
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
1277
1755
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1386,7 +1864,30 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1386
1864
|
enabled_clients?: string[] | undefined;
|
|
1387
1865
|
}>;
|
|
1388
1866
|
export type Connection = z.infer<typeof connectionSchema>;
|
|
1389
|
-
declare const
|
|
1867
|
+
export declare const domainInsertSchema: z.ZodObject<{
|
|
1868
|
+
domain: z.ZodString;
|
|
1869
|
+
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
dkim_public_key: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
email_api_key: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
email_service: z.ZodEnum<[
|
|
1873
|
+
"mailgun",
|
|
1874
|
+
"mailchannels"
|
|
1875
|
+
]>;
|
|
1876
|
+
}, "strip", z.ZodTypeAny, {
|
|
1877
|
+
domain: string;
|
|
1878
|
+
email_service: "mailgun" | "mailchannels";
|
|
1879
|
+
dkim_private_key?: string | undefined;
|
|
1880
|
+
dkim_public_key?: string | undefined;
|
|
1881
|
+
email_api_key?: string | undefined;
|
|
1882
|
+
}, {
|
|
1883
|
+
domain: string;
|
|
1884
|
+
email_service: "mailgun" | "mailchannels";
|
|
1885
|
+
dkim_private_key?: string | undefined;
|
|
1886
|
+
dkim_public_key?: string | undefined;
|
|
1887
|
+
email_api_key?: string | undefined;
|
|
1888
|
+
}>;
|
|
1889
|
+
export type DomainInsert = z.infer<typeof domainInsertSchema>;
|
|
1890
|
+
export declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1390
1891
|
created_at: z.ZodString;
|
|
1391
1892
|
updated_at: z.ZodString;
|
|
1392
1893
|
}, {
|
|
@@ -1419,7 +1920,7 @@ declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1419
1920
|
email_api_key?: string | undefined;
|
|
1420
1921
|
}>;
|
|
1421
1922
|
export type Domain = z.infer<typeof domainSchema>;
|
|
1422
|
-
declare const hookInsertSchema: z.ZodObject<{
|
|
1923
|
+
export declare const hookInsertSchema: z.ZodObject<{
|
|
1423
1924
|
trigger_id: z.ZodEnum<[
|
|
1424
1925
|
"pre-user-signup",
|
|
1425
1926
|
"post-user-registration",
|
|
@@ -1446,7 +1947,7 @@ declare const hookInsertSchema: z.ZodObject<{
|
|
|
1446
1947
|
priority?: number | undefined;
|
|
1447
1948
|
}>;
|
|
1448
1949
|
export type HookInsert = z.infer<typeof hookInsertSchema>;
|
|
1449
|
-
declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1950
|
+
export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1450
1951
|
trigger_id: z.ZodEnum<[
|
|
1451
1952
|
"pre-user-signup",
|
|
1452
1953
|
"post-user-registration",
|
|
@@ -1481,7 +1982,287 @@ declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1481
1982
|
priority?: number | undefined;
|
|
1482
1983
|
}>;
|
|
1483
1984
|
export type Hook = z.infer<typeof hookSchema>;
|
|
1484
|
-
declare const
|
|
1985
|
+
export declare const profileDataSchema: z.ZodObject<{
|
|
1986
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1988
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1989
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1990
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
1991
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
1992
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1993
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
1995
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1996
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1997
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1999
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
2000
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2002
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
2003
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
2004
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2006
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2008
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
2009
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2010
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2011
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
}, z.ZodAny, "strip">>;
|
|
2013
|
+
export declare const identitySchema: z.ZodObject<{
|
|
2014
|
+
connection: z.ZodString;
|
|
2015
|
+
user_id: z.ZodString;
|
|
2016
|
+
provider: z.ZodString;
|
|
2017
|
+
isSocial: z.ZodBoolean;
|
|
2018
|
+
access_token: z.ZodOptional<z.ZodString>;
|
|
2019
|
+
access_token_secret: z.ZodOptional<z.ZodString>;
|
|
2020
|
+
refresh_token: z.ZodOptional<z.ZodString>;
|
|
2021
|
+
profileData: z.ZodOptional<z.ZodObject<{
|
|
2022
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2023
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2024
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2025
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2026
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
2027
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2028
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2029
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
2030
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
2031
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2032
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2033
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2034
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2035
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
2036
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2037
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2038
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
2039
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
2040
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2042
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2047
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
}, z.ZodAny, "strip">>>;
|
|
2049
|
+
}, "strip", z.ZodTypeAny, {
|
|
2050
|
+
connection: string;
|
|
2051
|
+
user_id: string;
|
|
2052
|
+
provider: string;
|
|
2053
|
+
isSocial: boolean;
|
|
2054
|
+
access_token?: string | undefined;
|
|
2055
|
+
access_token_secret?: string | undefined;
|
|
2056
|
+
refresh_token?: string | undefined;
|
|
2057
|
+
profileData?: z.objectOutputType<{
|
|
2058
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2059
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2060
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2061
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2062
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
2063
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2064
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2065
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
2066
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
2067
|
+
}, {
|
|
2068
|
+
connection: string;
|
|
2069
|
+
user_id: string;
|
|
2070
|
+
provider: string;
|
|
2071
|
+
isSocial: boolean;
|
|
2072
|
+
access_token?: string | undefined;
|
|
2073
|
+
access_token_secret?: string | undefined;
|
|
2074
|
+
refresh_token?: string | undefined;
|
|
2075
|
+
profileData?: z.objectInputType<{
|
|
2076
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2078
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2079
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2080
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
2081
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
2082
|
+
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
2083
|
+
family_name: z.ZodOptional<z.ZodString>;
|
|
2084
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
2085
|
+
}>;
|
|
2086
|
+
export type Identity = z.infer<typeof identitySchema>;
|
|
2087
|
+
export declare const jwksSchema: z.ZodObject<{
|
|
2088
|
+
alg: z.ZodEnum<[
|
|
2089
|
+
"RS256",
|
|
2090
|
+
"RS384",
|
|
2091
|
+
"RS512",
|
|
2092
|
+
"ES256",
|
|
2093
|
+
"ES384",
|
|
2094
|
+
"ES512",
|
|
2095
|
+
"HS256",
|
|
2096
|
+
"HS384",
|
|
2097
|
+
"HS512"
|
|
2098
|
+
]>;
|
|
2099
|
+
e: z.ZodString;
|
|
2100
|
+
kid: z.ZodString;
|
|
2101
|
+
kty: z.ZodEnum<[
|
|
2102
|
+
"RSA",
|
|
2103
|
+
"EC",
|
|
2104
|
+
"oct"
|
|
2105
|
+
]>;
|
|
2106
|
+
n: z.ZodString;
|
|
2107
|
+
x5t: z.ZodOptional<z.ZodString>;
|
|
2108
|
+
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2109
|
+
use: z.ZodOptional<z.ZodEnum<[
|
|
2110
|
+
"sig",
|
|
2111
|
+
"enc"
|
|
2112
|
+
]>>;
|
|
2113
|
+
}, "strip", z.ZodTypeAny, {
|
|
2114
|
+
kid: string;
|
|
2115
|
+
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
2116
|
+
e: string;
|
|
2117
|
+
kty: "RSA" | "EC" | "oct";
|
|
2118
|
+
n: string;
|
|
2119
|
+
x5t?: string | undefined;
|
|
2120
|
+
x5c?: string[] | undefined;
|
|
2121
|
+
use?: "sig" | "enc" | undefined;
|
|
2122
|
+
}, {
|
|
2123
|
+
kid: string;
|
|
2124
|
+
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
2125
|
+
e: string;
|
|
2126
|
+
kty: "RSA" | "EC" | "oct";
|
|
2127
|
+
n: string;
|
|
2128
|
+
x5t?: string | undefined;
|
|
2129
|
+
x5c?: string[] | undefined;
|
|
2130
|
+
use?: "sig" | "enc" | undefined;
|
|
2131
|
+
}>;
|
|
2132
|
+
export declare const jwksKeySchema: z.ZodObject<{
|
|
2133
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
2134
|
+
alg: z.ZodEnum<[
|
|
2135
|
+
"RS256",
|
|
2136
|
+
"RS384",
|
|
2137
|
+
"RS512",
|
|
2138
|
+
"ES256",
|
|
2139
|
+
"ES384",
|
|
2140
|
+
"ES512",
|
|
2141
|
+
"HS256",
|
|
2142
|
+
"HS384",
|
|
2143
|
+
"HS512"
|
|
2144
|
+
]>;
|
|
2145
|
+
e: z.ZodString;
|
|
2146
|
+
kid: z.ZodString;
|
|
2147
|
+
kty: z.ZodEnum<[
|
|
2148
|
+
"RSA",
|
|
2149
|
+
"EC",
|
|
2150
|
+
"oct"
|
|
2151
|
+
]>;
|
|
2152
|
+
n: z.ZodString;
|
|
2153
|
+
x5t: z.ZodOptional<z.ZodString>;
|
|
2154
|
+
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2155
|
+
use: z.ZodOptional<z.ZodEnum<[
|
|
2156
|
+
"sig",
|
|
2157
|
+
"enc"
|
|
2158
|
+
]>>;
|
|
2159
|
+
}, "strip", z.ZodTypeAny, {
|
|
2160
|
+
kid: string;
|
|
2161
|
+
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
2162
|
+
e: string;
|
|
2163
|
+
kty: "RSA" | "EC" | "oct";
|
|
2164
|
+
n: string;
|
|
2165
|
+
x5t?: string | undefined;
|
|
2166
|
+
x5c?: string[] | undefined;
|
|
2167
|
+
use?: "sig" | "enc" | undefined;
|
|
2168
|
+
}, {
|
|
2169
|
+
kid: string;
|
|
2170
|
+
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
2171
|
+
e: string;
|
|
2172
|
+
kty: "RSA" | "EC" | "oct";
|
|
2173
|
+
n: string;
|
|
2174
|
+
x5t?: string | undefined;
|
|
2175
|
+
x5c?: string[] | undefined;
|
|
2176
|
+
use?: "sig" | "enc" | undefined;
|
|
2177
|
+
}>, "many">;
|
|
2178
|
+
}, "strip", z.ZodTypeAny, {
|
|
2179
|
+
keys: {
|
|
2180
|
+
kid: string;
|
|
2181
|
+
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
2182
|
+
e: string;
|
|
2183
|
+
kty: "RSA" | "EC" | "oct";
|
|
2184
|
+
n: string;
|
|
2185
|
+
x5t?: string | undefined;
|
|
2186
|
+
x5c?: string[] | undefined;
|
|
2187
|
+
use?: "sig" | "enc" | undefined;
|
|
2188
|
+
}[];
|
|
2189
|
+
}, {
|
|
2190
|
+
keys: {
|
|
2191
|
+
kid: string;
|
|
2192
|
+
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
2193
|
+
e: string;
|
|
2194
|
+
kty: "RSA" | "EC" | "oct";
|
|
2195
|
+
n: string;
|
|
2196
|
+
x5t?: string | undefined;
|
|
2197
|
+
x5c?: string[] | undefined;
|
|
2198
|
+
use?: "sig" | "enc" | undefined;
|
|
2199
|
+
}[];
|
|
2200
|
+
}>;
|
|
2201
|
+
export declare const openIDConfigurationSchema: z.ZodObject<{
|
|
2202
|
+
issuer: z.ZodString;
|
|
2203
|
+
authorization_endpoint: z.ZodString;
|
|
2204
|
+
token_endpoint: z.ZodString;
|
|
2205
|
+
device_authorization_endpoint: z.ZodString;
|
|
2206
|
+
userinfo_endpoint: z.ZodString;
|
|
2207
|
+
mfa_challenge_endpoint: z.ZodString;
|
|
2208
|
+
jwks_uri: z.ZodString;
|
|
2209
|
+
registration_endpoint: z.ZodString;
|
|
2210
|
+
revocation_endpoint: z.ZodString;
|
|
2211
|
+
scopes_supported: z.ZodArray<z.ZodString, "many">;
|
|
2212
|
+
response_types_supported: z.ZodArray<z.ZodString, "many">;
|
|
2213
|
+
code_challenge_methods_supported: z.ZodArray<z.ZodString, "many">;
|
|
2214
|
+
response_modes_supported: z.ZodArray<z.ZodString, "many">;
|
|
2215
|
+
subject_types_supported: z.ZodArray<z.ZodString, "many">;
|
|
2216
|
+
id_token_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
|
|
2217
|
+
token_endpoint_auth_methods_supported: z.ZodArray<z.ZodString, "many">;
|
|
2218
|
+
claims_supported: z.ZodArray<z.ZodString, "many">;
|
|
2219
|
+
request_uri_parameter_supported: z.ZodBoolean;
|
|
2220
|
+
request_parameter_supported: z.ZodBoolean;
|
|
2221
|
+
token_endpoint_auth_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
|
|
2222
|
+
}, "strip", z.ZodTypeAny, {
|
|
2223
|
+
issuer: string;
|
|
2224
|
+
authorization_endpoint: string;
|
|
2225
|
+
token_endpoint: string;
|
|
2226
|
+
userinfo_endpoint: string;
|
|
2227
|
+
jwks_uri: string;
|
|
2228
|
+
device_authorization_endpoint: string;
|
|
2229
|
+
mfa_challenge_endpoint: string;
|
|
2230
|
+
registration_endpoint: string;
|
|
2231
|
+
revocation_endpoint: string;
|
|
2232
|
+
scopes_supported: string[];
|
|
2233
|
+
response_types_supported: string[];
|
|
2234
|
+
code_challenge_methods_supported: string[];
|
|
2235
|
+
response_modes_supported: string[];
|
|
2236
|
+
subject_types_supported: string[];
|
|
2237
|
+
id_token_signing_alg_values_supported: string[];
|
|
2238
|
+
token_endpoint_auth_methods_supported: string[];
|
|
2239
|
+
claims_supported: string[];
|
|
2240
|
+
request_uri_parameter_supported: boolean;
|
|
2241
|
+
request_parameter_supported: boolean;
|
|
2242
|
+
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
2243
|
+
}, {
|
|
2244
|
+
issuer: string;
|
|
2245
|
+
authorization_endpoint: string;
|
|
2246
|
+
token_endpoint: string;
|
|
2247
|
+
userinfo_endpoint: string;
|
|
2248
|
+
jwks_uri: string;
|
|
2249
|
+
device_authorization_endpoint: string;
|
|
2250
|
+
mfa_challenge_endpoint: string;
|
|
2251
|
+
registration_endpoint: string;
|
|
2252
|
+
revocation_endpoint: string;
|
|
2253
|
+
scopes_supported: string[];
|
|
2254
|
+
response_types_supported: string[];
|
|
2255
|
+
code_challenge_methods_supported: string[];
|
|
2256
|
+
response_modes_supported: string[];
|
|
2257
|
+
subject_types_supported: string[];
|
|
2258
|
+
id_token_signing_alg_values_supported: string[];
|
|
2259
|
+
token_endpoint_auth_methods_supported: string[];
|
|
2260
|
+
claims_supported: string[];
|
|
2261
|
+
request_uri_parameter_supported: boolean;
|
|
2262
|
+
request_parameter_supported: boolean;
|
|
2263
|
+
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
2264
|
+
}>;
|
|
2265
|
+
export declare const loginInsertSchema: z.ZodObject<{
|
|
1485
2266
|
auth0Client: z.ZodOptional<z.ZodString>;
|
|
1486
2267
|
authParams: z.ZodObject<{
|
|
1487
2268
|
client_id: z.ZodString;
|
|
@@ -1581,7 +2362,7 @@ declare const loginInsertSchema: z.ZodObject<{
|
|
|
1581
2362
|
ip?: string | undefined;
|
|
1582
2363
|
}>;
|
|
1583
2364
|
export type LoginInsert = z.infer<typeof loginInsertSchema>;
|
|
1584
|
-
declare const loginSchema: z.ZodObject<{
|
|
2365
|
+
export declare const loginSchema: z.ZodObject<{
|
|
1585
2366
|
login_id: z.ZodString;
|
|
1586
2367
|
created_at: z.ZodString;
|
|
1587
2368
|
updated_at: z.ZodString;
|
|
@@ -1690,7 +2471,82 @@ declare const loginSchema: z.ZodObject<{
|
|
|
1690
2471
|
ip?: string | undefined;
|
|
1691
2472
|
}>;
|
|
1692
2473
|
export type Login = z.infer<typeof loginSchema>;
|
|
1693
|
-
declare
|
|
2474
|
+
export declare enum LogTypes {
|
|
2475
|
+
FAILED_SILENT_AUTH = "fsa",
|
|
2476
|
+
FAILED_SIGNUP = "fs",
|
|
2477
|
+
FAILED_LOGIN = "f",
|
|
2478
|
+
FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
|
|
2479
|
+
FAILED_CHANGE_PASSWORD = "fcp",
|
|
2480
|
+
FAILED_BY_CONNECTOR = "fc",
|
|
2481
|
+
FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu",
|
|
2482
|
+
FAILED_HOOK = "fh",
|
|
2483
|
+
FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
|
|
2484
|
+
SUCCESS_API_OPERATION = "sapi",
|
|
2485
|
+
SUCCESS_CHANGE_PASSWORD = "scp",
|
|
2486
|
+
SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr",
|
|
2487
|
+
SUCCESS_CHANGE_USERNAME = "scu",
|
|
2488
|
+
SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
|
|
2489
|
+
SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
|
|
2490
|
+
SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
|
|
2491
|
+
SUCCESS_LOGIN = "s",
|
|
2492
|
+
SUCCESS_LOGOUT = "slo",
|
|
2493
|
+
SUCCESS_SIGNUP = "ss",
|
|
2494
|
+
SUCCESS_SILENT_AUTH = "ssa",
|
|
2495
|
+
SUCCESS_VERIFICATION_EMAIL = "sv",
|
|
2496
|
+
SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr",
|
|
2497
|
+
CODE_LINK_SENT = "cls"
|
|
2498
|
+
}
|
|
2499
|
+
declare const LogType: z.ZodEnum<[
|
|
2500
|
+
"cls",
|
|
2501
|
+
"fsa",
|
|
2502
|
+
"fs",
|
|
2503
|
+
"f",
|
|
2504
|
+
"fc",
|
|
2505
|
+
"fcoa",
|
|
2506
|
+
"fcp",
|
|
2507
|
+
"fh",
|
|
2508
|
+
"fp",
|
|
2509
|
+
"fs",
|
|
2510
|
+
"fu",
|
|
2511
|
+
"s",
|
|
2512
|
+
"sapi",
|
|
2513
|
+
"scoa",
|
|
2514
|
+
"scp",
|
|
2515
|
+
"scpr",
|
|
2516
|
+
"scu",
|
|
2517
|
+
"seacft",
|
|
2518
|
+
"serft",
|
|
2519
|
+
"slo",
|
|
2520
|
+
"ss",
|
|
2521
|
+
"ssa",
|
|
2522
|
+
"sv",
|
|
2523
|
+
"svr"
|
|
2524
|
+
]>;
|
|
2525
|
+
type LogType$1 = z.infer<typeof LogType>;
|
|
2526
|
+
export declare const Auth0Client: z.ZodObject<{
|
|
2527
|
+
name: z.ZodString;
|
|
2528
|
+
version: z.ZodString;
|
|
2529
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
2530
|
+
node: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
}, "strip", z.ZodTypeAny, {
|
|
2532
|
+
node?: string | undefined;
|
|
2533
|
+
}, {
|
|
2534
|
+
node?: string | undefined;
|
|
2535
|
+
}>>;
|
|
2536
|
+
}, "strip", z.ZodTypeAny, {
|
|
2537
|
+
name: string;
|
|
2538
|
+
version: string;
|
|
2539
|
+
env?: {
|
|
2540
|
+
node?: string | undefined;
|
|
2541
|
+
} | undefined;
|
|
2542
|
+
}, {
|
|
2543
|
+
name: string;
|
|
2544
|
+
version: string;
|
|
2545
|
+
env?: {
|
|
2546
|
+
node?: string | undefined;
|
|
2547
|
+
} | undefined;
|
|
2548
|
+
}>;
|
|
2549
|
+
export declare const logSchema: z.ZodObject<{
|
|
1694
2550
|
type: z.ZodEnum<[
|
|
1695
2551
|
"cls",
|
|
1696
2552
|
"fsa",
|
|
@@ -1821,7 +2677,7 @@ export type LogsResponse = Log & {
|
|
|
1821
2677
|
log_id: string;
|
|
1822
2678
|
_id: string;
|
|
1823
2679
|
};
|
|
1824
|
-
declare const passwordInsertSchema: z.ZodObject<{
|
|
2680
|
+
export declare const passwordInsertSchema: z.ZodObject<{
|
|
1825
2681
|
user_id: z.ZodString;
|
|
1826
2682
|
password: z.ZodString;
|
|
1827
2683
|
algorithm: z.ZodDefault<z.ZodEnum<[
|
|
@@ -1838,7 +2694,7 @@ declare const passwordInsertSchema: z.ZodObject<{
|
|
|
1838
2694
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
1839
2695
|
}>;
|
|
1840
2696
|
export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
|
|
1841
|
-
declare const passwordSchema: z.ZodObject<{
|
|
2697
|
+
export declare const passwordSchema: z.ZodObject<{
|
|
1842
2698
|
created_at: z.ZodString;
|
|
1843
2699
|
updated_at: z.ZodString;
|
|
1844
2700
|
user_id: z.ZodString;
|
|
@@ -1861,7 +2717,7 @@ declare const passwordSchema: z.ZodObject<{
|
|
|
1861
2717
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
1862
2718
|
}>;
|
|
1863
2719
|
export type Password = z.infer<typeof passwordSchema>;
|
|
1864
|
-
declare const sessionInsertSchema: z.ZodObject<{
|
|
2720
|
+
export declare const sessionInsertSchema: z.ZodObject<{
|
|
1865
2721
|
session_id: z.ZodString;
|
|
1866
2722
|
client_id: z.ZodString;
|
|
1867
2723
|
expires_at: z.ZodString;
|
|
@@ -1884,7 +2740,7 @@ declare const sessionInsertSchema: z.ZodObject<{
|
|
|
1884
2740
|
deleted_at?: string | undefined;
|
|
1885
2741
|
}>;
|
|
1886
2742
|
export type SessionInsert = z.infer<typeof sessionInsertSchema>;
|
|
1887
|
-
declare const sessionSchema: z.ZodObject<{
|
|
2743
|
+
export declare const sessionSchema: z.ZodObject<{
|
|
1888
2744
|
session_id: z.ZodString;
|
|
1889
2745
|
client_id: z.ZodString;
|
|
1890
2746
|
expires_at: z.ZodString;
|
|
@@ -1910,7 +2766,7 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
1910
2766
|
deleted_at?: string | undefined;
|
|
1911
2767
|
}>;
|
|
1912
2768
|
export type Session = z.infer<typeof sessionSchema>;
|
|
1913
|
-
declare const signingKeySchema: z.ZodObject<{
|
|
2769
|
+
export declare const signingKeySchema: z.ZodObject<{
|
|
1914
2770
|
kid: z.ZodString;
|
|
1915
2771
|
cert: z.ZodString;
|
|
1916
2772
|
fingerprint: z.ZodString;
|
|
@@ -1951,6 +2807,77 @@ declare const signingKeySchema: z.ZodObject<{
|
|
|
1951
2807
|
revoked_at?: string | undefined;
|
|
1952
2808
|
}>;
|
|
1953
2809
|
export type SigningKey = z.infer<typeof signingKeySchema>;
|
|
2810
|
+
export declare const tenantInsertSchema: z.ZodObject<{
|
|
2811
|
+
name: z.ZodString;
|
|
2812
|
+
audience: z.ZodString;
|
|
2813
|
+
sender_email: z.ZodString;
|
|
2814
|
+
sender_name: z.ZodString;
|
|
2815
|
+
support_url: z.ZodOptional<z.ZodString>;
|
|
2816
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
2817
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
2818
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
2819
|
+
language: z.ZodOptional<z.ZodString>;
|
|
2820
|
+
}, "strip", z.ZodTypeAny, {
|
|
2821
|
+
name: string;
|
|
2822
|
+
audience: string;
|
|
2823
|
+
sender_email: string;
|
|
2824
|
+
sender_name: string;
|
|
2825
|
+
support_url?: string | undefined;
|
|
2826
|
+
logo?: string | undefined;
|
|
2827
|
+
primary_color?: string | undefined;
|
|
2828
|
+
secondary_color?: string | undefined;
|
|
2829
|
+
language?: string | undefined;
|
|
2830
|
+
}, {
|
|
2831
|
+
name: string;
|
|
2832
|
+
audience: string;
|
|
2833
|
+
sender_email: string;
|
|
2834
|
+
sender_name: string;
|
|
2835
|
+
support_url?: string | undefined;
|
|
2836
|
+
logo?: string | undefined;
|
|
2837
|
+
primary_color?: string | undefined;
|
|
2838
|
+
secondary_color?: string | undefined;
|
|
2839
|
+
language?: string | undefined;
|
|
2840
|
+
}>;
|
|
2841
|
+
export declare const tenantSchema: z.ZodObject<{
|
|
2842
|
+
name: z.ZodString;
|
|
2843
|
+
audience: z.ZodString;
|
|
2844
|
+
sender_email: z.ZodString;
|
|
2845
|
+
sender_name: z.ZodString;
|
|
2846
|
+
support_url: z.ZodOptional<z.ZodString>;
|
|
2847
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
2848
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
2849
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
2850
|
+
language: z.ZodOptional<z.ZodString>;
|
|
2851
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2852
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2853
|
+
id: z.ZodString;
|
|
2854
|
+
}, "strip", z.ZodTypeAny, {
|
|
2855
|
+
created_at: string;
|
|
2856
|
+
updated_at: string;
|
|
2857
|
+
name: string;
|
|
2858
|
+
audience: string;
|
|
2859
|
+
id: string;
|
|
2860
|
+
sender_email: string;
|
|
2861
|
+
sender_name: string;
|
|
2862
|
+
support_url?: string | undefined;
|
|
2863
|
+
logo?: string | undefined;
|
|
2864
|
+
primary_color?: string | undefined;
|
|
2865
|
+
secondary_color?: string | undefined;
|
|
2866
|
+
language?: string | undefined;
|
|
2867
|
+
}, {
|
|
2868
|
+
created_at: string;
|
|
2869
|
+
updated_at: string;
|
|
2870
|
+
name: string;
|
|
2871
|
+
audience: string;
|
|
2872
|
+
id: string;
|
|
2873
|
+
sender_email: string;
|
|
2874
|
+
sender_name: string;
|
|
2875
|
+
support_url?: string | undefined;
|
|
2876
|
+
logo?: string | undefined;
|
|
2877
|
+
primary_color?: string | undefined;
|
|
2878
|
+
secondary_color?: string | undefined;
|
|
2879
|
+
language?: string | undefined;
|
|
2880
|
+
}>;
|
|
1954
2881
|
export interface Tenant {
|
|
1955
2882
|
id: string;
|
|
1956
2883
|
name: string;
|
|
@@ -1965,7 +2892,440 @@ export interface Tenant {
|
|
|
1965
2892
|
created_at: string;
|
|
1966
2893
|
updated_at: string;
|
|
1967
2894
|
}
|
|
1968
|
-
declare const
|
|
2895
|
+
export declare const vendorSettingsSchema: z.ZodObject<{
|
|
2896
|
+
logoUrl: z.ZodString;
|
|
2897
|
+
loginBackgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2898
|
+
style: z.ZodObject<{
|
|
2899
|
+
primaryColor: z.ZodString;
|
|
2900
|
+
buttonTextColor: z.ZodString;
|
|
2901
|
+
primaryHoverColor: z.ZodString;
|
|
2902
|
+
}, "strip", z.ZodTypeAny, {
|
|
2903
|
+
primaryColor: string;
|
|
2904
|
+
buttonTextColor: string;
|
|
2905
|
+
primaryHoverColor: string;
|
|
2906
|
+
}, {
|
|
2907
|
+
primaryColor: string;
|
|
2908
|
+
buttonTextColor: string;
|
|
2909
|
+
primaryHoverColor: string;
|
|
2910
|
+
}>;
|
|
2911
|
+
supportEmail: z.ZodNullable<z.ZodString>;
|
|
2912
|
+
supportUrl: z.ZodNullable<z.ZodString>;
|
|
2913
|
+
name: z.ZodString;
|
|
2914
|
+
showGreyishBackground: z.ZodOptional<z.ZodBoolean>;
|
|
2915
|
+
termsAndConditionsUrl: z.ZodNullable<z.ZodString>;
|
|
2916
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
2917
|
+
checkoutHideSocial: z.ZodOptional<z.ZodBoolean>;
|
|
2918
|
+
siteUrl: z.ZodNullable<z.ZodString>;
|
|
2919
|
+
manageSubscriptionsUrl: z.ZodOptional<z.ZodString>;
|
|
2920
|
+
}, "strip", z.ZodTypeAny, {
|
|
2921
|
+
name: string;
|
|
2922
|
+
style: {
|
|
2923
|
+
primaryColor: string;
|
|
2924
|
+
buttonTextColor: string;
|
|
2925
|
+
primaryHoverColor: string;
|
|
2926
|
+
};
|
|
2927
|
+
logoUrl: string;
|
|
2928
|
+
supportEmail: string | null;
|
|
2929
|
+
supportUrl: string | null;
|
|
2930
|
+
termsAndConditionsUrl: string | null;
|
|
2931
|
+
siteUrl: string | null;
|
|
2932
|
+
loginBackgroundImage?: string | null | undefined;
|
|
2933
|
+
showGreyishBackground?: boolean | undefined;
|
|
2934
|
+
companyName?: string | undefined;
|
|
2935
|
+
checkoutHideSocial?: boolean | undefined;
|
|
2936
|
+
manageSubscriptionsUrl?: string | undefined;
|
|
2937
|
+
}, {
|
|
2938
|
+
name: string;
|
|
2939
|
+
style: {
|
|
2940
|
+
primaryColor: string;
|
|
2941
|
+
buttonTextColor: string;
|
|
2942
|
+
primaryHoverColor: string;
|
|
2943
|
+
};
|
|
2944
|
+
logoUrl: string;
|
|
2945
|
+
supportEmail: string | null;
|
|
2946
|
+
supportUrl: string | null;
|
|
2947
|
+
termsAndConditionsUrl: string | null;
|
|
2948
|
+
siteUrl: string | null;
|
|
2949
|
+
loginBackgroundImage?: string | null | undefined;
|
|
2950
|
+
showGreyishBackground?: boolean | undefined;
|
|
2951
|
+
companyName?: string | undefined;
|
|
2952
|
+
checkoutHideSocial?: boolean | undefined;
|
|
2953
|
+
manageSubscriptionsUrl?: string | undefined;
|
|
2954
|
+
}>;
|
|
2955
|
+
export type VendorSettings = z.infer<typeof vendorSettingsSchema>;
|
|
2956
|
+
export declare enum GrantType {
|
|
2957
|
+
RefreshToken = "refresh_token",
|
|
2958
|
+
AuthorizationCode = "authorization_code",
|
|
2959
|
+
ClientCredential = "client_credentials",
|
|
2960
|
+
Passwordless = "passwordless",
|
|
2961
|
+
Password = "password"
|
|
2962
|
+
}
|
|
2963
|
+
export declare const authorizationCodeGrantTypeParamsSchema: z.ZodObject<{
|
|
2964
|
+
grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
|
|
2965
|
+
code: z.ZodString;
|
|
2966
|
+
client_secret: z.ZodString;
|
|
2967
|
+
client_id: z.ZodString;
|
|
2968
|
+
}, "strip", z.ZodTypeAny, {
|
|
2969
|
+
code: string;
|
|
2970
|
+
client_secret: string;
|
|
2971
|
+
client_id: string;
|
|
2972
|
+
grant_type: GrantType.AuthorizationCode;
|
|
2973
|
+
}, {
|
|
2974
|
+
code: string;
|
|
2975
|
+
client_secret: string;
|
|
2976
|
+
client_id: string;
|
|
2977
|
+
grant_type: GrantType;
|
|
2978
|
+
}>;
|
|
2979
|
+
export type AuthorizationCodeGrantTypeParams = z.infer<typeof authorizationCodeGrantTypeParamsSchema>;
|
|
2980
|
+
export declare const pkceAuthorizationCodeGrantTypeParamsSchema: z.ZodObject<{
|
|
2981
|
+
grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
|
|
2982
|
+
code: z.ZodString;
|
|
2983
|
+
code_verifier: z.ZodString;
|
|
2984
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
2985
|
+
redirect_uri: z.ZodString;
|
|
2986
|
+
}, "strip", z.ZodTypeAny, {
|
|
2987
|
+
code: string;
|
|
2988
|
+
redirect_uri: string;
|
|
2989
|
+
grant_type: GrantType.AuthorizationCode;
|
|
2990
|
+
code_verifier: string;
|
|
2991
|
+
client_id?: string | undefined;
|
|
2992
|
+
}, {
|
|
2993
|
+
code: string;
|
|
2994
|
+
redirect_uri: string;
|
|
2995
|
+
grant_type: GrantType;
|
|
2996
|
+
code_verifier: string;
|
|
2997
|
+
client_id?: string | undefined;
|
|
2998
|
+
}>;
|
|
2999
|
+
export type PKCEAuthorizationCodeGrantTypeParams = z.infer<typeof pkceAuthorizationCodeGrantTypeParamsSchema>;
|
|
3000
|
+
export declare const clientCredentialGrantTypeParamsSchema: z.ZodObject<{
|
|
3001
|
+
grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.ClientCredential, GrantType>;
|
|
3002
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
3003
|
+
client_secret: z.ZodString;
|
|
3004
|
+
client_id: z.ZodString;
|
|
3005
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
3006
|
+
}, "strip", z.ZodTypeAny, {
|
|
3007
|
+
client_secret: string;
|
|
3008
|
+
client_id: string;
|
|
3009
|
+
grant_type: GrantType.ClientCredential;
|
|
3010
|
+
audience?: string | undefined;
|
|
3011
|
+
scope?: string | undefined;
|
|
3012
|
+
}, {
|
|
3013
|
+
client_secret: string;
|
|
3014
|
+
client_id: string;
|
|
3015
|
+
grant_type: GrantType;
|
|
3016
|
+
audience?: string | undefined;
|
|
3017
|
+
scope?: string | undefined;
|
|
3018
|
+
}>;
|
|
3019
|
+
export type ClientCredentialsGrantTypeParams = z.infer<typeof clientCredentialGrantTypeParamsSchema>;
|
|
3020
|
+
declare const tokenResponseSchema: z.ZodObject<{
|
|
3021
|
+
access_token: z.ZodString;
|
|
3022
|
+
id_token: z.ZodOptional<z.ZodString>;
|
|
3023
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
3024
|
+
state: z.ZodOptional<z.ZodString>;
|
|
3025
|
+
refresh_token: z.ZodOptional<z.ZodString>;
|
|
3026
|
+
token_type: z.ZodString;
|
|
3027
|
+
expires_in: z.ZodNumber;
|
|
3028
|
+
}, "strip", z.ZodTypeAny, {
|
|
3029
|
+
access_token: string;
|
|
3030
|
+
token_type: string;
|
|
3031
|
+
expires_in: number;
|
|
3032
|
+
refresh_token?: string | undefined;
|
|
3033
|
+
state?: string | undefined;
|
|
3034
|
+
scope?: string | undefined;
|
|
3035
|
+
id_token?: string | undefined;
|
|
3036
|
+
}, {
|
|
3037
|
+
access_token: string;
|
|
3038
|
+
token_type: string;
|
|
3039
|
+
expires_in: number;
|
|
3040
|
+
refresh_token?: string | undefined;
|
|
3041
|
+
state?: string | undefined;
|
|
3042
|
+
scope?: string | undefined;
|
|
3043
|
+
id_token?: string | undefined;
|
|
3044
|
+
}>;
|
|
3045
|
+
export type TokenResponse = z.infer<typeof tokenResponseSchema>;
|
|
3046
|
+
declare const codeResponseSchema: z.ZodObject<{
|
|
3047
|
+
code: z.ZodString;
|
|
3048
|
+
state: z.ZodOptional<z.ZodString>;
|
|
3049
|
+
}, "strip", z.ZodTypeAny, {
|
|
3050
|
+
code: string;
|
|
3051
|
+
state?: string | undefined;
|
|
3052
|
+
}, {
|
|
3053
|
+
code: string;
|
|
3054
|
+
state?: string | undefined;
|
|
3055
|
+
}>;
|
|
3056
|
+
export type CodeResponse = z.infer<typeof codeResponseSchema>;
|
|
3057
|
+
export declare const bordersSchema: z.ZodObject<{
|
|
3058
|
+
button_border_radius: z.ZodNumber;
|
|
3059
|
+
button_border_weight: z.ZodNumber;
|
|
3060
|
+
buttons_style: z.ZodEnum<[
|
|
3061
|
+
"pill"
|
|
3062
|
+
]>;
|
|
3063
|
+
input_border_radius: z.ZodNumber;
|
|
3064
|
+
input_border_weight: z.ZodNumber;
|
|
3065
|
+
inputs_style: z.ZodEnum<[
|
|
3066
|
+
"pill"
|
|
3067
|
+
]>;
|
|
3068
|
+
show_widget_shadow: z.ZodBoolean;
|
|
3069
|
+
widget_border_weight: z.ZodNumber;
|
|
3070
|
+
widget_corner_radius: z.ZodNumber;
|
|
3071
|
+
}, "strip", z.ZodTypeAny, {
|
|
3072
|
+
button_border_radius: number;
|
|
3073
|
+
button_border_weight: number;
|
|
3074
|
+
buttons_style: "pill";
|
|
3075
|
+
input_border_radius: number;
|
|
3076
|
+
input_border_weight: number;
|
|
3077
|
+
inputs_style: "pill";
|
|
3078
|
+
show_widget_shadow: boolean;
|
|
3079
|
+
widget_border_weight: number;
|
|
3080
|
+
widget_corner_radius: number;
|
|
3081
|
+
}, {
|
|
3082
|
+
button_border_radius: number;
|
|
3083
|
+
button_border_weight: number;
|
|
3084
|
+
buttons_style: "pill";
|
|
3085
|
+
input_border_radius: number;
|
|
3086
|
+
input_border_weight: number;
|
|
3087
|
+
inputs_style: "pill";
|
|
3088
|
+
show_widget_shadow: boolean;
|
|
3089
|
+
widget_border_weight: number;
|
|
3090
|
+
widget_corner_radius: number;
|
|
3091
|
+
}>;
|
|
3092
|
+
export declare const colorsSchema: z.ZodObject<{
|
|
3093
|
+
base_focus_color: z.ZodString;
|
|
3094
|
+
base_hover_color: z.ZodString;
|
|
3095
|
+
body_text: z.ZodString;
|
|
3096
|
+
captcha_widget_theme: z.ZodEnum<[
|
|
3097
|
+
"auto"
|
|
3098
|
+
]>;
|
|
3099
|
+
error: z.ZodString;
|
|
3100
|
+
header: z.ZodString;
|
|
3101
|
+
icons: z.ZodString;
|
|
3102
|
+
input_background: z.ZodString;
|
|
3103
|
+
input_border: z.ZodString;
|
|
3104
|
+
input_filled_text: z.ZodString;
|
|
3105
|
+
input_labels_placeholders: z.ZodString;
|
|
3106
|
+
links_focused_components: z.ZodString;
|
|
3107
|
+
primary_button: z.ZodString;
|
|
3108
|
+
primary_button_label: z.ZodString;
|
|
3109
|
+
secondary_button_border: z.ZodString;
|
|
3110
|
+
secondary_button_label: z.ZodString;
|
|
3111
|
+
success: z.ZodString;
|
|
3112
|
+
widget_background: z.ZodString;
|
|
3113
|
+
widget_border: z.ZodString;
|
|
3114
|
+
}, "strip", z.ZodTypeAny, {
|
|
3115
|
+
base_focus_color: string;
|
|
3116
|
+
base_hover_color: string;
|
|
3117
|
+
body_text: string;
|
|
3118
|
+
captcha_widget_theme: "auto";
|
|
3119
|
+
error: string;
|
|
3120
|
+
header: string;
|
|
3121
|
+
icons: string;
|
|
3122
|
+
input_background: string;
|
|
3123
|
+
input_border: string;
|
|
3124
|
+
input_filled_text: string;
|
|
3125
|
+
input_labels_placeholders: string;
|
|
3126
|
+
links_focused_components: string;
|
|
3127
|
+
primary_button: string;
|
|
3128
|
+
primary_button_label: string;
|
|
3129
|
+
secondary_button_border: string;
|
|
3130
|
+
secondary_button_label: string;
|
|
3131
|
+
success: string;
|
|
3132
|
+
widget_background: string;
|
|
3133
|
+
widget_border: string;
|
|
3134
|
+
}, {
|
|
3135
|
+
base_focus_color: string;
|
|
3136
|
+
base_hover_color: string;
|
|
3137
|
+
body_text: string;
|
|
3138
|
+
captcha_widget_theme: "auto";
|
|
3139
|
+
error: string;
|
|
3140
|
+
header: string;
|
|
3141
|
+
icons: string;
|
|
3142
|
+
input_background: string;
|
|
3143
|
+
input_border: string;
|
|
3144
|
+
input_filled_text: string;
|
|
3145
|
+
input_labels_placeholders: string;
|
|
3146
|
+
links_focused_components: string;
|
|
3147
|
+
primary_button: string;
|
|
3148
|
+
primary_button_label: string;
|
|
3149
|
+
secondary_button_border: string;
|
|
3150
|
+
secondary_button_label: string;
|
|
3151
|
+
success: string;
|
|
3152
|
+
widget_background: string;
|
|
3153
|
+
widget_border: string;
|
|
3154
|
+
}>;
|
|
3155
|
+
export declare const fontDetailsSchema: z.ZodObject<{
|
|
3156
|
+
bold: z.ZodBoolean;
|
|
3157
|
+
size: z.ZodNumber;
|
|
3158
|
+
}, "strip", z.ZodTypeAny, {
|
|
3159
|
+
bold: boolean;
|
|
3160
|
+
size: number;
|
|
3161
|
+
}, {
|
|
3162
|
+
bold: boolean;
|
|
3163
|
+
size: number;
|
|
3164
|
+
}>;
|
|
3165
|
+
export declare const fontsSchema: z.ZodObject<{
|
|
3166
|
+
body_text: z.ZodObject<{
|
|
3167
|
+
bold: z.ZodBoolean;
|
|
3168
|
+
size: z.ZodNumber;
|
|
3169
|
+
}, "strip", z.ZodTypeAny, {
|
|
3170
|
+
bold: boolean;
|
|
3171
|
+
size: number;
|
|
3172
|
+
}, {
|
|
3173
|
+
bold: boolean;
|
|
3174
|
+
size: number;
|
|
3175
|
+
}>;
|
|
3176
|
+
buttons_text: z.ZodObject<{
|
|
3177
|
+
bold: z.ZodBoolean;
|
|
3178
|
+
size: z.ZodNumber;
|
|
3179
|
+
}, "strip", z.ZodTypeAny, {
|
|
3180
|
+
bold: boolean;
|
|
3181
|
+
size: number;
|
|
3182
|
+
}, {
|
|
3183
|
+
bold: boolean;
|
|
3184
|
+
size: number;
|
|
3185
|
+
}>;
|
|
3186
|
+
font_url: z.ZodString;
|
|
3187
|
+
input_labels: z.ZodObject<{
|
|
3188
|
+
bold: z.ZodBoolean;
|
|
3189
|
+
size: z.ZodNumber;
|
|
3190
|
+
}, "strip", z.ZodTypeAny, {
|
|
3191
|
+
bold: boolean;
|
|
3192
|
+
size: number;
|
|
3193
|
+
}, {
|
|
3194
|
+
bold: boolean;
|
|
3195
|
+
size: number;
|
|
3196
|
+
}>;
|
|
3197
|
+
links: z.ZodObject<{
|
|
3198
|
+
bold: z.ZodBoolean;
|
|
3199
|
+
size: z.ZodNumber;
|
|
3200
|
+
}, "strip", z.ZodTypeAny, {
|
|
3201
|
+
bold: boolean;
|
|
3202
|
+
size: number;
|
|
3203
|
+
}, {
|
|
3204
|
+
bold: boolean;
|
|
3205
|
+
size: number;
|
|
3206
|
+
}>;
|
|
3207
|
+
links_style: z.ZodEnum<[
|
|
3208
|
+
"normal"
|
|
3209
|
+
]>;
|
|
3210
|
+
reference_text_size: z.ZodNumber;
|
|
3211
|
+
subtitle: z.ZodObject<{
|
|
3212
|
+
bold: z.ZodBoolean;
|
|
3213
|
+
size: z.ZodNumber;
|
|
3214
|
+
}, "strip", z.ZodTypeAny, {
|
|
3215
|
+
bold: boolean;
|
|
3216
|
+
size: number;
|
|
3217
|
+
}, {
|
|
3218
|
+
bold: boolean;
|
|
3219
|
+
size: number;
|
|
3220
|
+
}>;
|
|
3221
|
+
title: z.ZodObject<{
|
|
3222
|
+
bold: z.ZodBoolean;
|
|
3223
|
+
size: z.ZodNumber;
|
|
3224
|
+
}, "strip", z.ZodTypeAny, {
|
|
3225
|
+
bold: boolean;
|
|
3226
|
+
size: number;
|
|
3227
|
+
}, {
|
|
3228
|
+
bold: boolean;
|
|
3229
|
+
size: number;
|
|
3230
|
+
}>;
|
|
3231
|
+
}, "strip", z.ZodTypeAny, {
|
|
3232
|
+
title: {
|
|
3233
|
+
bold: boolean;
|
|
3234
|
+
size: number;
|
|
3235
|
+
};
|
|
3236
|
+
body_text: {
|
|
3237
|
+
bold: boolean;
|
|
3238
|
+
size: number;
|
|
3239
|
+
};
|
|
3240
|
+
buttons_text: {
|
|
3241
|
+
bold: boolean;
|
|
3242
|
+
size: number;
|
|
3243
|
+
};
|
|
3244
|
+
font_url: string;
|
|
3245
|
+
input_labels: {
|
|
3246
|
+
bold: boolean;
|
|
3247
|
+
size: number;
|
|
3248
|
+
};
|
|
3249
|
+
links: {
|
|
3250
|
+
bold: boolean;
|
|
3251
|
+
size: number;
|
|
3252
|
+
};
|
|
3253
|
+
links_style: "normal";
|
|
3254
|
+
reference_text_size: number;
|
|
3255
|
+
subtitle: {
|
|
3256
|
+
bold: boolean;
|
|
3257
|
+
size: number;
|
|
3258
|
+
};
|
|
3259
|
+
}, {
|
|
3260
|
+
title: {
|
|
3261
|
+
bold: boolean;
|
|
3262
|
+
size: number;
|
|
3263
|
+
};
|
|
3264
|
+
body_text: {
|
|
3265
|
+
bold: boolean;
|
|
3266
|
+
size: number;
|
|
3267
|
+
};
|
|
3268
|
+
buttons_text: {
|
|
3269
|
+
bold: boolean;
|
|
3270
|
+
size: number;
|
|
3271
|
+
};
|
|
3272
|
+
font_url: string;
|
|
3273
|
+
input_labels: {
|
|
3274
|
+
bold: boolean;
|
|
3275
|
+
size: number;
|
|
3276
|
+
};
|
|
3277
|
+
links: {
|
|
3278
|
+
bold: boolean;
|
|
3279
|
+
size: number;
|
|
3280
|
+
};
|
|
3281
|
+
links_style: "normal";
|
|
3282
|
+
reference_text_size: number;
|
|
3283
|
+
subtitle: {
|
|
3284
|
+
bold: boolean;
|
|
3285
|
+
size: number;
|
|
3286
|
+
};
|
|
3287
|
+
}>;
|
|
3288
|
+
export declare const pageBackgroundSchema: z.ZodObject<{
|
|
3289
|
+
background_color: z.ZodString;
|
|
3290
|
+
background_image_url: z.ZodString;
|
|
3291
|
+
page_layout: z.ZodEnum<[
|
|
3292
|
+
"center"
|
|
3293
|
+
]>;
|
|
3294
|
+
}, "strip", z.ZodTypeAny, {
|
|
3295
|
+
background_color: string;
|
|
3296
|
+
background_image_url: string;
|
|
3297
|
+
page_layout: "center";
|
|
3298
|
+
}, {
|
|
3299
|
+
background_color: string;
|
|
3300
|
+
background_image_url: string;
|
|
3301
|
+
page_layout: "center";
|
|
3302
|
+
}>;
|
|
3303
|
+
export declare const widgetSchema: z.ZodObject<{
|
|
3304
|
+
header_text_alignment: z.ZodEnum<[
|
|
3305
|
+
"center"
|
|
3306
|
+
]>;
|
|
3307
|
+
logo_height: z.ZodNumber;
|
|
3308
|
+
logo_position: z.ZodEnum<[
|
|
3309
|
+
"center"
|
|
3310
|
+
]>;
|
|
3311
|
+
logo_url: z.ZodString;
|
|
3312
|
+
social_buttons_layout: z.ZodEnum<[
|
|
3313
|
+
"bottom"
|
|
3314
|
+
]>;
|
|
3315
|
+
}, "strip", z.ZodTypeAny, {
|
|
3316
|
+
logo_url: string;
|
|
3317
|
+
header_text_alignment: "center";
|
|
3318
|
+
logo_height: number;
|
|
3319
|
+
logo_position: "center";
|
|
3320
|
+
social_buttons_layout: "bottom";
|
|
3321
|
+
}, {
|
|
3322
|
+
logo_url: string;
|
|
3323
|
+
header_text_alignment: "center";
|
|
3324
|
+
logo_height: number;
|
|
3325
|
+
logo_position: "center";
|
|
3326
|
+
social_buttons_layout: "bottom";
|
|
3327
|
+
}>;
|
|
3328
|
+
export declare const themeInsertSchema: z.ZodObject<{
|
|
1969
3329
|
borders: z.ZodObject<{
|
|
1970
3330
|
button_border_radius: z.ZodNumber;
|
|
1971
3331
|
button_border_weight: z.ZodNumber;
|
|
@@ -2380,7 +3740,7 @@ declare const themeInsertSchema: z.ZodObject<{
|
|
|
2380
3740
|
};
|
|
2381
3741
|
}>;
|
|
2382
3742
|
export type ThemeInsert = z.infer<typeof themeInsertSchema>;
|
|
2383
|
-
declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3743
|
+
export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2384
3744
|
borders: z.ZodObject<{
|
|
2385
3745
|
button_border_radius: z.ZodNumber;
|
|
2386
3746
|
button_border_weight: z.ZodNumber;
|
|
@@ -2799,7 +4159,7 @@ declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2799
4159
|
themeId: string;
|
|
2800
4160
|
}>;
|
|
2801
4161
|
export type Theme = z.infer<typeof themeSchema>;
|
|
2802
|
-
declare const promptSettingSchema: z.ZodObject<{
|
|
4162
|
+
export declare const promptSettingSchema: z.ZodObject<{
|
|
2803
4163
|
universal_login_experience: z.ZodDefault<z.ZodEnum<[
|
|
2804
4164
|
"new",
|
|
2805
4165
|
"classic"
|
|
@@ -2836,6 +4196,10 @@ export interface Ticket {
|
|
|
2836
4196
|
expires_at: Date;
|
|
2837
4197
|
used_at?: Date;
|
|
2838
4198
|
}
|
|
4199
|
+
export declare function parseUserId(user_id: string): {
|
|
4200
|
+
connection: string;
|
|
4201
|
+
id: string;
|
|
4202
|
+
};
|
|
2839
4203
|
export interface ListParams {
|
|
2840
4204
|
page: number;
|
|
2841
4205
|
per_page: number;
|
|
@@ -3005,16 +4369,16 @@ export type Bindings = {
|
|
|
3005
4369
|
AUTH_URL: string;
|
|
3006
4370
|
JWKS_URL: string;
|
|
3007
4371
|
JWKS_SERVICE: Fetcher;
|
|
4372
|
+
ISSUER: string;
|
|
3008
4373
|
data: DataAdapters;
|
|
3009
4374
|
JWKS_CACHE_TIMEOUT_IN_SECONDS: number;
|
|
3010
4375
|
ORGANIZATION_NAME: string;
|
|
3011
4376
|
};
|
|
3012
4377
|
export interface AuthHeroConfig {
|
|
3013
4378
|
dataAdapter: DataAdapters;
|
|
3014
|
-
issuer: string;
|
|
3015
4379
|
}
|
|
3016
4380
|
export declare function init(config: AuthHeroConfig): {
|
|
3017
|
-
|
|
4381
|
+
app: OpenAPIHono<{
|
|
3018
4382
|
Bindings: Bindings;
|
|
3019
4383
|
}, {}, "/">;
|
|
3020
4384
|
managementApp: OpenAPIHono<{
|
|
@@ -3058,16 +4422,16 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
3058
4422
|
status: 200;
|
|
3059
4423
|
};
|
|
3060
4424
|
};
|
|
3061
|
-
}, "/
|
|
4425
|
+
}, "/prompts"> & import("hono/types").MergeSchemaPath<{
|
|
3062
4426
|
"/": {
|
|
3063
4427
|
$get: {
|
|
3064
4428
|
input: {
|
|
3065
4429
|
query: {
|
|
3066
|
-
sort?: string |
|
|
3067
|
-
page?: string |
|
|
3068
|
-
per_page?: string |
|
|
3069
|
-
include_totals?: string |
|
|
3070
|
-
q?: string |
|
|
4430
|
+
sort?: string | undefined;
|
|
4431
|
+
page?: string | undefined;
|
|
4432
|
+
per_page?: string | undefined;
|
|
4433
|
+
include_totals?: string | undefined;
|
|
4434
|
+
q?: string | undefined;
|
|
3071
4435
|
};
|
|
3072
4436
|
} & {
|
|
3073
4437
|
header: {
|
|
@@ -3316,16 +4680,16 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
3316
4680
|
status: 201;
|
|
3317
4681
|
};
|
|
3318
4682
|
};
|
|
3319
|
-
}, "/
|
|
4683
|
+
}, "/connections"> & import("hono/types").MergeSchemaPath<{
|
|
3320
4684
|
"/": {
|
|
3321
4685
|
$get: {
|
|
3322
4686
|
input: {
|
|
3323
4687
|
query: {
|
|
3324
|
-
sort?: string |
|
|
3325
|
-
page?: string |
|
|
3326
|
-
per_page?: string |
|
|
3327
|
-
include_totals?: string |
|
|
3328
|
-
q?: string |
|
|
4688
|
+
sort?: string | undefined;
|
|
4689
|
+
page?: string | undefined;
|
|
4690
|
+
per_page?: string | undefined;
|
|
4691
|
+
include_totals?: string | undefined;
|
|
4692
|
+
q?: string | undefined;
|
|
3329
4693
|
};
|
|
3330
4694
|
} & {
|
|
3331
4695
|
header: {
|
|
@@ -3493,16 +4857,16 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
3493
4857
|
status: 200;
|
|
3494
4858
|
};
|
|
3495
4859
|
};
|
|
3496
|
-
}, "/
|
|
4860
|
+
}, "/hooks"> & import("hono/types").MergeSchemaPath<{
|
|
3497
4861
|
"/": {
|
|
3498
4862
|
$get: {
|
|
3499
4863
|
input: {
|
|
3500
4864
|
query: {
|
|
3501
|
-
sort?: string |
|
|
3502
|
-
page?: string |
|
|
3503
|
-
per_page?: string |
|
|
3504
|
-
include_totals?: string |
|
|
3505
|
-
q?: string |
|
|
4865
|
+
sort?: string | undefined;
|
|
4866
|
+
page?: string | undefined;
|
|
4867
|
+
per_page?: string | undefined;
|
|
4868
|
+
include_totals?: string | undefined;
|
|
4869
|
+
q?: string | undefined;
|
|
3506
4870
|
};
|
|
3507
4871
|
} & {
|
|
3508
4872
|
header: {
|
|
@@ -3620,16 +4984,16 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
3620
4984
|
status: 200;
|
|
3621
4985
|
};
|
|
3622
4986
|
};
|
|
3623
|
-
}, "/
|
|
4987
|
+
}, "/logs"> & import("hono/types").MergeSchemaPath<{
|
|
3624
4988
|
"/": {
|
|
3625
4989
|
$get: {
|
|
3626
4990
|
input: {
|
|
3627
4991
|
query: {
|
|
3628
|
-
sort?: string |
|
|
3629
|
-
page?: string |
|
|
3630
|
-
per_page?: string |
|
|
3631
|
-
include_totals?: string |
|
|
3632
|
-
q?: string |
|
|
4992
|
+
sort?: string | undefined;
|
|
4993
|
+
page?: string | undefined;
|
|
4994
|
+
per_page?: string | undefined;
|
|
4995
|
+
include_totals?: string | undefined;
|
|
4996
|
+
q?: string | undefined;
|
|
3633
4997
|
};
|
|
3634
4998
|
};
|
|
3635
4999
|
output: {};
|
|
@@ -3709,16 +5073,16 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
3709
5073
|
status: 200;
|
|
3710
5074
|
};
|
|
3711
5075
|
};
|
|
3712
|
-
}, "/
|
|
5076
|
+
}, "/tenants"> & import("hono/types").MergeSchemaPath<{
|
|
3713
5077
|
"/": {
|
|
3714
5078
|
$get: {
|
|
3715
5079
|
input: {
|
|
3716
5080
|
query: {
|
|
3717
|
-
sort?: string |
|
|
3718
|
-
page?: string |
|
|
3719
|
-
per_page?: string |
|
|
3720
|
-
include_totals?: string |
|
|
3721
|
-
q?: string |
|
|
5081
|
+
sort?: string | undefined;
|
|
5082
|
+
page?: string | undefined;
|
|
5083
|
+
per_page?: string | undefined;
|
|
5084
|
+
include_totals?: string | undefined;
|
|
5085
|
+
q?: string | undefined;
|
|
3722
5086
|
};
|
|
3723
5087
|
} & {
|
|
3724
5088
|
header: {
|
|
@@ -4040,12 +5404,12 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4040
5404
|
status: 201;
|
|
4041
5405
|
};
|
|
4042
5406
|
};
|
|
4043
|
-
}, "/
|
|
5407
|
+
}, "/clients"> & import("hono/types").MergeSchemaPath<{
|
|
4044
5408
|
"/": {
|
|
4045
5409
|
$get: {
|
|
4046
5410
|
input: {
|
|
4047
5411
|
query: {
|
|
4048
|
-
email: string
|
|
5412
|
+
email: string;
|
|
4049
5413
|
};
|
|
4050
5414
|
} & {
|
|
4051
5415
|
header: {
|
|
@@ -4057,7 +5421,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4057
5421
|
status: 200;
|
|
4058
5422
|
};
|
|
4059
5423
|
};
|
|
4060
|
-
}, "/
|
|
5424
|
+
}, "/users-by-email"> & import("hono/types").MergeSchemaPath<{
|
|
4061
5425
|
"/signing": {
|
|
4062
5426
|
$get: {
|
|
4063
5427
|
input: {
|
|
@@ -4143,16 +5507,16 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4143
5507
|
status: 201;
|
|
4144
5508
|
};
|
|
4145
5509
|
};
|
|
4146
|
-
}, "/
|
|
5510
|
+
}, "/keys"> & import("hono/types").MergeSchemaPath<{
|
|
4147
5511
|
"/": {
|
|
4148
5512
|
$get: {
|
|
4149
5513
|
input: {
|
|
4150
5514
|
query: {
|
|
4151
|
-
sort?: string |
|
|
4152
|
-
page?: string |
|
|
4153
|
-
per_page?: string |
|
|
4154
|
-
include_totals?: string |
|
|
4155
|
-
q?: string |
|
|
5515
|
+
sort?: string | undefined;
|
|
5516
|
+
page?: string | undefined;
|
|
5517
|
+
per_page?: string | undefined;
|
|
5518
|
+
include_totals?: string | undefined;
|
|
5519
|
+
q?: string | undefined;
|
|
4156
5520
|
};
|
|
4157
5521
|
} & {
|
|
4158
5522
|
header: {
|
|
@@ -4556,11 +5920,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4556
5920
|
};
|
|
4557
5921
|
} & {
|
|
4558
5922
|
query: {
|
|
4559
|
-
sort?: string |
|
|
4560
|
-
page?: string |
|
|
4561
|
-
per_page?: string |
|
|
4562
|
-
include_totals?: string |
|
|
4563
|
-
q?: string |
|
|
5923
|
+
sort?: string | undefined;
|
|
5924
|
+
page?: string | undefined;
|
|
5925
|
+
per_page?: string | undefined;
|
|
5926
|
+
include_totals?: string | undefined;
|
|
5927
|
+
q?: string | undefined;
|
|
4564
5928
|
};
|
|
4565
5929
|
} & {
|
|
4566
5930
|
header: {
|
|
@@ -4593,7 +5957,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4593
5957
|
status: 200;
|
|
4594
5958
|
};
|
|
4595
5959
|
};
|
|
4596
|
-
}, "/
|
|
5960
|
+
}, "/users"> & import("hono/types").MergeSchemaPath<{
|
|
4597
5961
|
"/": {
|
|
4598
5962
|
$get: {
|
|
4599
5963
|
input: {
|
|
@@ -4651,7 +6015,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4651
6015
|
status: 200;
|
|
4652
6016
|
};
|
|
4653
6017
|
};
|
|
4654
|
-
}, "/
|
|
6018
|
+
}, "/branding">, "/">;
|
|
4655
6019
|
oauthApp: OpenAPIHono<{
|
|
4656
6020
|
Bindings: Bindings;
|
|
4657
6021
|
Variables: Variables;
|
|
@@ -4708,4 +6072,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4708
6072
|
}, "/.well-known">, "/">;
|
|
4709
6073
|
};
|
|
4710
6074
|
|
|
6075
|
+
export {
|
|
6076
|
+
LogType$1 as LogType,
|
|
6077
|
+
};
|
|
6078
|
+
|
|
4711
6079
|
export {};
|