@authhero/adapter-interfaces 0.1.1 → 0.1.3

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.
@@ -0,0 +1,2221 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { z } from '@hono/zod-openapi';
4
+
5
+ export declare const applicationInsertSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ name: z.ZodString;
8
+ allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
9
+ allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
10
+ allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
11
+ email_validation: z.ZodDefault<z.ZodEnum<[
12
+ "enabled",
13
+ "disabled",
14
+ "enforced"
15
+ ]>>;
16
+ client_secret: z.ZodDefault<z.ZodString>;
17
+ disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ id: string;
20
+ name: string;
21
+ allowed_web_origins: string;
22
+ allowed_callback_urls: string;
23
+ allowed_logout_urls: string;
24
+ email_validation: "enabled" | "disabled" | "enforced";
25
+ client_secret: string;
26
+ disable_sign_ups: boolean;
27
+ }, {
28
+ id: string;
29
+ name: string;
30
+ allowed_web_origins?: string | undefined;
31
+ allowed_callback_urls?: string | undefined;
32
+ allowed_logout_urls?: string | undefined;
33
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
34
+ client_secret?: string | undefined;
35
+ disable_sign_ups?: boolean | undefined;
36
+ }>;
37
+ export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
38
+ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
39
+ created_at: z.ZodEffects<z.ZodString, string, string>;
40
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
41
+ }, {
42
+ id: z.ZodString;
43
+ name: z.ZodString;
44
+ allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
45
+ allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
46
+ allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
47
+ email_validation: z.ZodDefault<z.ZodEnum<[
48
+ "enabled",
49
+ "disabled",
50
+ "enforced"
51
+ ]>>;
52
+ client_secret: z.ZodDefault<z.ZodString>;
53
+ disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
54
+ }>, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ name: string;
57
+ allowed_web_origins: string;
58
+ allowed_callback_urls: string;
59
+ allowed_logout_urls: string;
60
+ email_validation: "enabled" | "disabled" | "enforced";
61
+ client_secret: string;
62
+ disable_sign_ups: boolean;
63
+ created_at: string;
64
+ updated_at: string;
65
+ }, {
66
+ id: string;
67
+ name: string;
68
+ created_at: string;
69
+ updated_at: string;
70
+ allowed_web_origins?: string | undefined;
71
+ allowed_callback_urls?: string | undefined;
72
+ allowed_logout_urls?: string | undefined;
73
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
74
+ client_secret?: string | undefined;
75
+ disable_sign_ups?: boolean | undefined;
76
+ }>;
77
+ export type Application = z.infer<typeof applicationSchema>;
78
+ export declare enum AuthorizationResponseType {
79
+ TOKEN = "token",
80
+ TOKEN_ID_TOKEN = "token id_token",
81
+ CODE = "code"
82
+ }
83
+ export declare enum AuthorizationResponseMode {
84
+ QUERY = "query",
85
+ FRAGMENT = "fragment",
86
+ FORM_POST = "form_post",
87
+ WEB_MESSAGE = "web_message"
88
+ }
89
+ export declare enum CodeChallengeMethod {
90
+ S265 = "S256",
91
+ plain = "plain"
92
+ }
93
+ export declare const authParamsSchema: z.ZodObject<{
94
+ client_id: z.ZodString;
95
+ vendor_id: z.ZodOptional<z.ZodString>;
96
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
97
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
98
+ redirect_uri: z.ZodOptional<z.ZodString>;
99
+ audience: z.ZodOptional<z.ZodString>;
100
+ state: z.ZodOptional<z.ZodString>;
101
+ nonce: z.ZodOptional<z.ZodString>;
102
+ scope: z.ZodOptional<z.ZodString>;
103
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
104
+ code_challenge: z.ZodOptional<z.ZodString>;
105
+ username: z.ZodOptional<z.ZodString>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ client_id: string;
108
+ vendor_id?: string | undefined;
109
+ response_type?: AuthorizationResponseType | undefined;
110
+ response_mode?: AuthorizationResponseMode | undefined;
111
+ redirect_uri?: string | undefined;
112
+ audience?: string | undefined;
113
+ state?: string | undefined;
114
+ nonce?: string | undefined;
115
+ scope?: string | undefined;
116
+ code_challenge_method?: CodeChallengeMethod | undefined;
117
+ code_challenge?: string | undefined;
118
+ username?: string | undefined;
119
+ }, {
120
+ client_id: string;
121
+ vendor_id?: string | undefined;
122
+ response_type?: AuthorizationResponseType | undefined;
123
+ response_mode?: AuthorizationResponseMode | undefined;
124
+ redirect_uri?: string | undefined;
125
+ audience?: string | undefined;
126
+ state?: string | undefined;
127
+ nonce?: string | undefined;
128
+ scope?: string | undefined;
129
+ code_challenge_method?: CodeChallengeMethod | undefined;
130
+ code_challenge?: string | undefined;
131
+ username?: string | undefined;
132
+ }>;
133
+ export type AuthParams = z.infer<typeof authParamsSchema>;
134
+ export declare const authenticationCodeSchema: z.ZodObject<{
135
+ authParams: z.ZodObject<{
136
+ client_id: z.ZodString;
137
+ vendor_id: z.ZodOptional<z.ZodString>;
138
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
139
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
140
+ redirect_uri: z.ZodOptional<z.ZodString>;
141
+ audience: z.ZodOptional<z.ZodString>;
142
+ state: z.ZodOptional<z.ZodString>;
143
+ nonce: z.ZodOptional<z.ZodString>;
144
+ scope: z.ZodOptional<z.ZodString>;
145
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
146
+ code_challenge: z.ZodOptional<z.ZodString>;
147
+ username: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ client_id: string;
150
+ vendor_id?: string | undefined;
151
+ response_type?: AuthorizationResponseType | undefined;
152
+ response_mode?: AuthorizationResponseMode | undefined;
153
+ redirect_uri?: string | undefined;
154
+ audience?: string | undefined;
155
+ state?: string | undefined;
156
+ nonce?: string | undefined;
157
+ scope?: string | undefined;
158
+ code_challenge_method?: CodeChallengeMethod | undefined;
159
+ code_challenge?: string | undefined;
160
+ username?: string | undefined;
161
+ }, {
162
+ client_id: string;
163
+ vendor_id?: string | undefined;
164
+ response_type?: AuthorizationResponseType | undefined;
165
+ response_mode?: AuthorizationResponseMode | undefined;
166
+ redirect_uri?: string | undefined;
167
+ audience?: string | undefined;
168
+ state?: string | undefined;
169
+ nonce?: string | undefined;
170
+ scope?: string | undefined;
171
+ code_challenge_method?: CodeChallengeMethod | undefined;
172
+ code_challenge?: string | undefined;
173
+ username?: string | undefined;
174
+ }>;
175
+ nonce: z.ZodOptional<z.ZodString>;
176
+ code: z.ZodString;
177
+ user_id: z.ZodString;
178
+ created_at: z.ZodString;
179
+ expires_at: z.ZodString;
180
+ used_at: z.ZodOptional<z.ZodString>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ code: string;
183
+ created_at: string;
184
+ authParams: {
185
+ client_id: string;
186
+ vendor_id?: string | undefined;
187
+ response_type?: AuthorizationResponseType | undefined;
188
+ response_mode?: AuthorizationResponseMode | undefined;
189
+ redirect_uri?: string | undefined;
190
+ audience?: string | undefined;
191
+ state?: string | undefined;
192
+ nonce?: string | undefined;
193
+ scope?: string | undefined;
194
+ code_challenge_method?: CodeChallengeMethod | undefined;
195
+ code_challenge?: string | undefined;
196
+ username?: string | undefined;
197
+ };
198
+ user_id: string;
199
+ expires_at: string;
200
+ nonce?: string | undefined;
201
+ used_at?: string | undefined;
202
+ }, {
203
+ code: string;
204
+ created_at: string;
205
+ authParams: {
206
+ client_id: string;
207
+ vendor_id?: string | undefined;
208
+ response_type?: AuthorizationResponseType | undefined;
209
+ response_mode?: AuthorizationResponseMode | undefined;
210
+ redirect_uri?: string | undefined;
211
+ audience?: string | undefined;
212
+ state?: string | undefined;
213
+ nonce?: string | undefined;
214
+ scope?: string | undefined;
215
+ code_challenge_method?: CodeChallengeMethod | undefined;
216
+ code_challenge?: string | undefined;
217
+ username?: string | undefined;
218
+ };
219
+ user_id: string;
220
+ expires_at: string;
221
+ nonce?: string | undefined;
222
+ used_at?: string | undefined;
223
+ }>;
224
+ export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
225
+ export declare enum GrantType {
226
+ RefreshToken = "refresh_token",
227
+ AuthorizationCode = "authorization_code",
228
+ ClientCredential = "client_credentials",
229
+ Passwordless = "passwordless",
230
+ Password = "password"
231
+ }
232
+ export declare const authorizationCodeGrantTypeParamsSchema: z.ZodObject<{
233
+ grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
234
+ code: z.ZodString;
235
+ client_secret: z.ZodString;
236
+ client_id: z.ZodString;
237
+ }, "strip", z.ZodTypeAny, {
238
+ client_secret: string;
239
+ code: string;
240
+ client_id: string;
241
+ grant_type: GrantType.AuthorizationCode;
242
+ }, {
243
+ client_secret: string;
244
+ code: string;
245
+ client_id: string;
246
+ grant_type: GrantType;
247
+ }>;
248
+ export type AuthorizationCodeGrantTypeParams = z.infer<typeof authorizationCodeGrantTypeParamsSchema>;
249
+ export declare const pkceAuthorizationCodeGrantTypeParamsSchema: z.ZodObject<{
250
+ grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
251
+ code: z.ZodString;
252
+ code_verifier: z.ZodString;
253
+ client_id: z.ZodOptional<z.ZodString>;
254
+ redirect_uri: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
256
+ code: string;
257
+ redirect_uri: string;
258
+ grant_type: GrantType.AuthorizationCode;
259
+ code_verifier: string;
260
+ client_id?: string | undefined;
261
+ }, {
262
+ code: string;
263
+ redirect_uri: string;
264
+ grant_type: GrantType;
265
+ code_verifier: string;
266
+ client_id?: string | undefined;
267
+ }>;
268
+ export type PKCEAuthorizationCodeGrantTypeParams = z.infer<typeof pkceAuthorizationCodeGrantTypeParamsSchema>;
269
+ export declare const clientCredentialGrantTypeParamsSchema: z.ZodObject<{
270
+ grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.ClientCredential, GrantType>;
271
+ scope: z.ZodOptional<z.ZodString>;
272
+ client_secret: z.ZodString;
273
+ client_id: z.ZodString;
274
+ audience: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ client_secret: string;
277
+ client_id: string;
278
+ grant_type: GrantType.ClientCredential;
279
+ audience?: string | undefined;
280
+ scope?: string | undefined;
281
+ }, {
282
+ client_secret: string;
283
+ client_id: string;
284
+ grant_type: GrantType;
285
+ audience?: string | undefined;
286
+ scope?: string | undefined;
287
+ }>;
288
+ export type ClientCredentialsGrantTypeParams = z.infer<typeof clientCredentialGrantTypeParamsSchema>;
289
+ declare const tokenResponseSchema: z.ZodObject<{
290
+ access_token: z.ZodString;
291
+ id_token: z.ZodOptional<z.ZodString>;
292
+ scope: z.ZodOptional<z.ZodString>;
293
+ state: z.ZodOptional<z.ZodString>;
294
+ refresh_token: z.ZodOptional<z.ZodString>;
295
+ token_type: z.ZodString;
296
+ expires_in: z.ZodNumber;
297
+ }, "strip", z.ZodTypeAny, {
298
+ access_token: string;
299
+ token_type: string;
300
+ expires_in: number;
301
+ state?: string | undefined;
302
+ scope?: string | undefined;
303
+ refresh_token?: string | undefined;
304
+ id_token?: string | undefined;
305
+ }, {
306
+ access_token: string;
307
+ token_type: string;
308
+ expires_in: number;
309
+ state?: string | undefined;
310
+ scope?: string | undefined;
311
+ refresh_token?: string | undefined;
312
+ id_token?: string | undefined;
313
+ }>;
314
+ export type TokenResponse = z.infer<typeof tokenResponseSchema>;
315
+ declare const codeResponseSchema: z.ZodObject<{
316
+ code: z.ZodString;
317
+ state: z.ZodOptional<z.ZodString>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ code: string;
320
+ state?: string | undefined;
321
+ }, {
322
+ code: string;
323
+ state?: string | undefined;
324
+ }>;
325
+ export type CodeResponse = z.infer<typeof codeResponseSchema>;
326
+ export interface LoginState {
327
+ connection?: string;
328
+ authParams: AuthParams;
329
+ state: string;
330
+ errorMessage?: string;
331
+ }
332
+ export declare const ClientSchema: z.ZodObject<z.objectUtil.extendShape<{
333
+ id: z.ZodString;
334
+ name: z.ZodString;
335
+ domains: z.ZodArray<z.ZodObject<{
336
+ domain: z.ZodString;
337
+ dkim_private_key: z.ZodOptional<z.ZodString>;
338
+ dkim_public_key: z.ZodOptional<z.ZodString>;
339
+ email_api_key: z.ZodOptional<z.ZodString>;
340
+ email_service: z.ZodOptional<z.ZodUnion<[
341
+ z.ZodLiteral<"mailgun">,
342
+ z.ZodLiteral<"mailchannels">
343
+ ]>>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ domain: string;
346
+ dkim_private_key?: string | undefined;
347
+ dkim_public_key?: string | undefined;
348
+ email_api_key?: string | undefined;
349
+ email_service?: "mailgun" | "mailchannels" | undefined;
350
+ }, {
351
+ domain: string;
352
+ dkim_private_key?: string | undefined;
353
+ dkim_public_key?: string | undefined;
354
+ email_api_key?: string | undefined;
355
+ email_service?: "mailgun" | "mailchannels" | undefined;
356
+ }>, "many">;
357
+ allowed_callback_urls: z.ZodArray<z.ZodString, "many">;
358
+ allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
359
+ allowed_web_origins: z.ZodArray<z.ZodString, "many">;
360
+ email_validation: z.ZodUnion<[
361
+ z.ZodLiteral<"enabled">,
362
+ z.ZodLiteral<"disabled">,
363
+ z.ZodLiteral<"enforced">
364
+ ]>;
365
+ tenant_id: z.ZodString;
366
+ client_secret: z.ZodString;
367
+ disable_sign_ups: z.ZodBoolean;
368
+ tenant: z.ZodObject<{
369
+ name: z.ZodString;
370
+ audience: z.ZodOptional<z.ZodString>;
371
+ logo: z.ZodOptional<z.ZodString>;
372
+ primary_color: z.ZodOptional<z.ZodString>;
373
+ secondary_color: z.ZodOptional<z.ZodString>;
374
+ sender_email: z.ZodString;
375
+ sender_name: z.ZodString;
376
+ support_url: z.ZodOptional<z.ZodString>;
377
+ language: z.ZodOptional<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ name: string;
380
+ sender_email: string;
381
+ sender_name: string;
382
+ audience?: string | undefined;
383
+ logo?: string | undefined;
384
+ primary_color?: string | undefined;
385
+ secondary_color?: string | undefined;
386
+ support_url?: string | undefined;
387
+ language?: string | undefined;
388
+ }, {
389
+ name: string;
390
+ sender_email: string;
391
+ sender_name: string;
392
+ audience?: string | undefined;
393
+ logo?: string | undefined;
394
+ primary_color?: string | undefined;
395
+ secondary_color?: string | undefined;
396
+ support_url?: string | undefined;
397
+ language?: string | undefined;
398
+ }>;
399
+ }, {
400
+ connections: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
401
+ id: z.ZodString;
402
+ created_at: z.ZodEffects<z.ZodString, string, string>;
403
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
404
+ }, {
405
+ id: z.ZodOptional<z.ZodString>;
406
+ name: z.ZodString;
407
+ client_id: z.ZodOptional<z.ZodString>;
408
+ client_secret: z.ZodOptional<z.ZodString>;
409
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
410
+ response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
411
+ response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
412
+ private_key: z.ZodOptional<z.ZodString>;
413
+ kid: z.ZodOptional<z.ZodString>;
414
+ team_id: z.ZodOptional<z.ZodString>;
415
+ token_endpoint: z.ZodOptional<z.ZodString>;
416
+ token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
417
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
418
+ scope: z.ZodOptional<z.ZodString>;
419
+ }>, "strip", z.ZodTypeAny, {
420
+ name: string;
421
+ created_at: string;
422
+ updated_at: string;
423
+ id?: string | undefined;
424
+ client_secret?: string | undefined;
425
+ client_id?: string | undefined;
426
+ response_type?: AuthorizationResponseType | undefined;
427
+ response_mode?: AuthorizationResponseMode | undefined;
428
+ scope?: string | undefined;
429
+ authorization_endpoint?: string | undefined;
430
+ private_key?: string | undefined;
431
+ kid?: string | undefined;
432
+ team_id?: string | undefined;
433
+ token_endpoint?: string | undefined;
434
+ token_exchange_basic_auth?: boolean | undefined;
435
+ userinfo_endpoint?: string | undefined;
436
+ }, {
437
+ name: string;
438
+ created_at: string;
439
+ updated_at: string;
440
+ id?: string | undefined;
441
+ client_secret?: string | undefined;
442
+ client_id?: string | undefined;
443
+ response_type?: AuthorizationResponseType | undefined;
444
+ response_mode?: AuthorizationResponseMode | undefined;
445
+ scope?: string | undefined;
446
+ authorization_endpoint?: string | undefined;
447
+ private_key?: string | undefined;
448
+ kid?: string | undefined;
449
+ team_id?: string | undefined;
450
+ token_endpoint?: string | undefined;
451
+ token_exchange_basic_auth?: boolean | undefined;
452
+ userinfo_endpoint?: string | undefined;
453
+ }>, "many">;
454
+ }>, "strip", z.ZodTypeAny, {
455
+ id: string;
456
+ name: string;
457
+ allowed_web_origins: string[];
458
+ allowed_callback_urls: string[];
459
+ allowed_logout_urls: string[];
460
+ email_validation: "enabled" | "disabled" | "enforced";
461
+ client_secret: string;
462
+ disable_sign_ups: boolean;
463
+ domains: {
464
+ domain: string;
465
+ dkim_private_key?: string | undefined;
466
+ dkim_public_key?: string | undefined;
467
+ email_api_key?: string | undefined;
468
+ email_service?: "mailgun" | "mailchannels" | undefined;
469
+ }[];
470
+ tenant_id: string;
471
+ tenant: {
472
+ name: string;
473
+ sender_email: string;
474
+ sender_name: string;
475
+ audience?: string | undefined;
476
+ logo?: string | undefined;
477
+ primary_color?: string | undefined;
478
+ secondary_color?: string | undefined;
479
+ support_url?: string | undefined;
480
+ language?: string | undefined;
481
+ };
482
+ connections: {
483
+ name: string;
484
+ created_at: string;
485
+ updated_at: string;
486
+ id?: string | undefined;
487
+ client_secret?: string | undefined;
488
+ client_id?: string | undefined;
489
+ response_type?: AuthorizationResponseType | undefined;
490
+ response_mode?: AuthorizationResponseMode | undefined;
491
+ scope?: string | undefined;
492
+ authorization_endpoint?: string | undefined;
493
+ private_key?: string | undefined;
494
+ kid?: string | undefined;
495
+ team_id?: string | undefined;
496
+ token_endpoint?: string | undefined;
497
+ token_exchange_basic_auth?: boolean | undefined;
498
+ userinfo_endpoint?: string | undefined;
499
+ }[];
500
+ }, {
501
+ id: string;
502
+ name: string;
503
+ allowed_web_origins: string[];
504
+ allowed_callback_urls: string[];
505
+ allowed_logout_urls: string[];
506
+ email_validation: "enabled" | "disabled" | "enforced";
507
+ client_secret: string;
508
+ disable_sign_ups: boolean;
509
+ domains: {
510
+ domain: string;
511
+ dkim_private_key?: string | undefined;
512
+ dkim_public_key?: string | undefined;
513
+ email_api_key?: string | undefined;
514
+ email_service?: "mailgun" | "mailchannels" | undefined;
515
+ }[];
516
+ tenant_id: string;
517
+ tenant: {
518
+ name: string;
519
+ sender_email: string;
520
+ sender_name: string;
521
+ audience?: string | undefined;
522
+ logo?: string | undefined;
523
+ primary_color?: string | undefined;
524
+ secondary_color?: string | undefined;
525
+ support_url?: string | undefined;
526
+ language?: string | undefined;
527
+ };
528
+ connections: {
529
+ name: string;
530
+ created_at: string;
531
+ updated_at: string;
532
+ id?: string | undefined;
533
+ client_secret?: string | undefined;
534
+ client_id?: string | undefined;
535
+ response_type?: AuthorizationResponseType | undefined;
536
+ response_mode?: AuthorizationResponseMode | undefined;
537
+ scope?: string | undefined;
538
+ authorization_endpoint?: string | undefined;
539
+ private_key?: string | undefined;
540
+ kid?: string | undefined;
541
+ team_id?: string | undefined;
542
+ token_endpoint?: string | undefined;
543
+ token_exchange_basic_auth?: boolean | undefined;
544
+ userinfo_endpoint?: string | undefined;
545
+ }[];
546
+ }>;
547
+ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
548
+ id: z.ZodString;
549
+ name: z.ZodString;
550
+ domains: z.ZodArray<z.ZodObject<{
551
+ domain: z.ZodString;
552
+ dkim_private_key: z.ZodOptional<z.ZodString>;
553
+ dkim_public_key: z.ZodOptional<z.ZodString>;
554
+ email_api_key: z.ZodOptional<z.ZodString>;
555
+ email_service: z.ZodOptional<z.ZodUnion<[
556
+ z.ZodLiteral<"mailgun">,
557
+ z.ZodLiteral<"mailchannels">
558
+ ]>>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ domain: string;
561
+ dkim_private_key?: string | undefined;
562
+ dkim_public_key?: string | undefined;
563
+ email_api_key?: string | undefined;
564
+ email_service?: "mailgun" | "mailchannels" | undefined;
565
+ }, {
566
+ domain: string;
567
+ dkim_private_key?: string | undefined;
568
+ dkim_public_key?: string | undefined;
569
+ email_api_key?: string | undefined;
570
+ email_service?: "mailgun" | "mailchannels" | undefined;
571
+ }>, "many">;
572
+ allowed_callback_urls: z.ZodArray<z.ZodString, "many">;
573
+ allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
574
+ allowed_web_origins: z.ZodArray<z.ZodString, "many">;
575
+ email_validation: z.ZodUnion<[
576
+ z.ZodLiteral<"enabled">,
577
+ z.ZodLiteral<"disabled">,
578
+ z.ZodLiteral<"enforced">
579
+ ]>;
580
+ tenant_id: z.ZodString;
581
+ client_secret: z.ZodString;
582
+ disable_sign_ups: z.ZodBoolean;
583
+ tenant: z.ZodObject<{
584
+ name: z.ZodString;
585
+ audience: z.ZodOptional<z.ZodString>;
586
+ logo: z.ZodOptional<z.ZodString>;
587
+ primary_color: z.ZodOptional<z.ZodString>;
588
+ secondary_color: z.ZodOptional<z.ZodString>;
589
+ sender_email: z.ZodString;
590
+ sender_name: z.ZodString;
591
+ support_url: z.ZodOptional<z.ZodString>;
592
+ language: z.ZodOptional<z.ZodString>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ name: string;
595
+ sender_email: string;
596
+ sender_name: string;
597
+ audience?: string | undefined;
598
+ logo?: string | undefined;
599
+ primary_color?: string | undefined;
600
+ secondary_color?: string | undefined;
601
+ support_url?: string | undefined;
602
+ language?: string | undefined;
603
+ }, {
604
+ name: string;
605
+ sender_email: string;
606
+ sender_name: string;
607
+ audience?: string | undefined;
608
+ logo?: string | undefined;
609
+ primary_color?: string | undefined;
610
+ secondary_color?: string | undefined;
611
+ support_url?: string | undefined;
612
+ language?: string | undefined;
613
+ }>;
614
+ }, {
615
+ connections: z.ZodArray<z.ZodObject<{
616
+ created_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
617
+ updated_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
618
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
619
+ name: z.ZodOptional<z.ZodString>;
620
+ client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
621
+ client_secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
622
+ authorization_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
623
+ response_type: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>>;
624
+ response_mode: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>>;
625
+ private_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
626
+ kid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
627
+ team_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
628
+ token_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
629
+ token_exchange_basic_auth: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
630
+ userinfo_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
631
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ id?: string | undefined;
634
+ name?: string | undefined;
635
+ client_secret?: string | undefined;
636
+ created_at?: string | undefined;
637
+ updated_at?: string | undefined;
638
+ client_id?: string | undefined;
639
+ response_type?: AuthorizationResponseType | undefined;
640
+ response_mode?: AuthorizationResponseMode | undefined;
641
+ scope?: string | undefined;
642
+ authorization_endpoint?: string | undefined;
643
+ private_key?: string | undefined;
644
+ kid?: string | undefined;
645
+ team_id?: string | undefined;
646
+ token_endpoint?: string | undefined;
647
+ token_exchange_basic_auth?: boolean | undefined;
648
+ userinfo_endpoint?: string | undefined;
649
+ }, {
650
+ id?: string | undefined;
651
+ name?: string | undefined;
652
+ client_secret?: string | undefined;
653
+ created_at?: string | undefined;
654
+ updated_at?: string | undefined;
655
+ client_id?: string | undefined;
656
+ response_type?: AuthorizationResponseType | undefined;
657
+ response_mode?: AuthorizationResponseMode | undefined;
658
+ scope?: string | undefined;
659
+ authorization_endpoint?: string | undefined;
660
+ private_key?: string | undefined;
661
+ kid?: string | undefined;
662
+ team_id?: string | undefined;
663
+ token_endpoint?: string | undefined;
664
+ token_exchange_basic_auth?: boolean | undefined;
665
+ userinfo_endpoint?: string | undefined;
666
+ }>, "many">;
667
+ }>, "strip", z.ZodTypeAny, {
668
+ id: string;
669
+ name: string;
670
+ allowed_web_origins: string[];
671
+ allowed_callback_urls: string[];
672
+ allowed_logout_urls: string[];
673
+ email_validation: "enabled" | "disabled" | "enforced";
674
+ client_secret: string;
675
+ disable_sign_ups: boolean;
676
+ domains: {
677
+ domain: string;
678
+ dkim_private_key?: string | undefined;
679
+ dkim_public_key?: string | undefined;
680
+ email_api_key?: string | undefined;
681
+ email_service?: "mailgun" | "mailchannels" | undefined;
682
+ }[];
683
+ tenant_id: string;
684
+ tenant: {
685
+ name: string;
686
+ sender_email: string;
687
+ sender_name: string;
688
+ audience?: string | undefined;
689
+ logo?: string | undefined;
690
+ primary_color?: string | undefined;
691
+ secondary_color?: string | undefined;
692
+ support_url?: string | undefined;
693
+ language?: string | undefined;
694
+ };
695
+ connections: {
696
+ id?: string | undefined;
697
+ name?: string | undefined;
698
+ client_secret?: string | undefined;
699
+ created_at?: string | undefined;
700
+ updated_at?: string | undefined;
701
+ client_id?: string | undefined;
702
+ response_type?: AuthorizationResponseType | undefined;
703
+ response_mode?: AuthorizationResponseMode | undefined;
704
+ scope?: string | undefined;
705
+ authorization_endpoint?: string | undefined;
706
+ private_key?: string | undefined;
707
+ kid?: string | undefined;
708
+ team_id?: string | undefined;
709
+ token_endpoint?: string | undefined;
710
+ token_exchange_basic_auth?: boolean | undefined;
711
+ userinfo_endpoint?: string | undefined;
712
+ }[];
713
+ }, {
714
+ id: string;
715
+ name: string;
716
+ allowed_web_origins: string[];
717
+ allowed_callback_urls: string[];
718
+ allowed_logout_urls: string[];
719
+ email_validation: "enabled" | "disabled" | "enforced";
720
+ client_secret: string;
721
+ disable_sign_ups: boolean;
722
+ domains: {
723
+ domain: string;
724
+ dkim_private_key?: string | undefined;
725
+ dkim_public_key?: string | undefined;
726
+ email_api_key?: string | undefined;
727
+ email_service?: "mailgun" | "mailchannels" | undefined;
728
+ }[];
729
+ tenant_id: string;
730
+ tenant: {
731
+ name: string;
732
+ sender_email: string;
733
+ sender_name: string;
734
+ audience?: string | undefined;
735
+ logo?: string | undefined;
736
+ primary_color?: string | undefined;
737
+ secondary_color?: string | undefined;
738
+ support_url?: string | undefined;
739
+ language?: string | undefined;
740
+ };
741
+ connections: {
742
+ id?: string | undefined;
743
+ name?: string | undefined;
744
+ client_secret?: string | undefined;
745
+ created_at?: string | undefined;
746
+ updated_at?: string | undefined;
747
+ client_id?: string | undefined;
748
+ response_type?: AuthorizationResponseType | undefined;
749
+ response_mode?: AuthorizationResponseMode | undefined;
750
+ scope?: string | undefined;
751
+ authorization_endpoint?: string | undefined;
752
+ private_key?: string | undefined;
753
+ kid?: string | undefined;
754
+ team_id?: string | undefined;
755
+ token_endpoint?: string | undefined;
756
+ token_exchange_basic_auth?: boolean | undefined;
757
+ userinfo_endpoint?: string | undefined;
758
+ }[];
759
+ }>;
760
+ export type Client = z.infer<typeof ClientSchema>;
761
+ export type PartialClient = z.infer<typeof PartialClientSchema>;
762
+ export declare const certificateSchema: z.ZodObject<{
763
+ private_key: z.ZodString;
764
+ public_key: z.ZodString;
765
+ kid: z.ZodString;
766
+ created_at: z.ZodString;
767
+ revoked_at: z.ZodOptional<z.ZodString>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ created_at: string;
770
+ private_key: string;
771
+ kid: string;
772
+ public_key: string;
773
+ revoked_at?: string | undefined;
774
+ }, {
775
+ created_at: string;
776
+ private_key: string;
777
+ kid: string;
778
+ public_key: string;
779
+ revoked_at?: string | undefined;
780
+ }>;
781
+ export interface Certificate {
782
+ private_key: string;
783
+ public_key: string;
784
+ kid: string;
785
+ created_at: string;
786
+ revoked_at?: string;
787
+ }
788
+ export declare const signingKeySchema: z.ZodObject<{
789
+ kid: z.ZodString;
790
+ cert: z.ZodString;
791
+ fingerprint: z.ZodString;
792
+ thumbprint: z.ZodString;
793
+ pkcs7: z.ZodOptional<z.ZodString>;
794
+ current: z.ZodOptional<z.ZodBoolean>;
795
+ next: z.ZodOptional<z.ZodBoolean>;
796
+ previous: z.ZodOptional<z.ZodBoolean>;
797
+ current_since: z.ZodOptional<z.ZodString>;
798
+ current_until: z.ZodOptional<z.ZodString>;
799
+ revoked: z.ZodOptional<z.ZodBoolean>;
800
+ revoked_at: z.ZodOptional<z.ZodString>;
801
+ }, "strip", z.ZodTypeAny, {
802
+ kid: string;
803
+ cert: string;
804
+ fingerprint: string;
805
+ thumbprint: string;
806
+ revoked_at?: string | undefined;
807
+ pkcs7?: string | undefined;
808
+ current?: boolean | undefined;
809
+ next?: boolean | undefined;
810
+ previous?: boolean | undefined;
811
+ current_since?: string | undefined;
812
+ current_until?: string | undefined;
813
+ revoked?: boolean | undefined;
814
+ }, {
815
+ kid: string;
816
+ cert: string;
817
+ fingerprint: string;
818
+ thumbprint: string;
819
+ revoked_at?: string | undefined;
820
+ pkcs7?: string | undefined;
821
+ current?: boolean | undefined;
822
+ next?: boolean | undefined;
823
+ previous?: boolean | undefined;
824
+ current_since?: string | undefined;
825
+ current_until?: string | undefined;
826
+ revoked?: boolean | undefined;
827
+ }>;
828
+ export interface Session {
829
+ id: string;
830
+ tenant_id: string;
831
+ client_id: string;
832
+ created_at: Date;
833
+ expires_at: Date;
834
+ used_at: Date;
835
+ deleted_at?: Date;
836
+ user_id: string;
837
+ }
838
+ export interface OTP {
839
+ id: string;
840
+ tenant_id: string;
841
+ client_id: string;
842
+ email: string;
843
+ code: string;
844
+ ip?: string;
845
+ send: "link" | "code";
846
+ authParams: {
847
+ nonce?: string;
848
+ state?: string;
849
+ scope?: string;
850
+ response_type?: AuthorizationResponseType;
851
+ response_mode?: AuthorizationResponseMode;
852
+ redirect_uri?: string;
853
+ };
854
+ created_at: Date;
855
+ expires_at: Date;
856
+ used_at?: string;
857
+ user_id?: string;
858
+ }
859
+ export interface Ticket {
860
+ id: string;
861
+ tenant_id: string;
862
+ client_id: string;
863
+ email: string;
864
+ authParams?: {
865
+ nonce?: string;
866
+ state?: string;
867
+ scope?: string;
868
+ response_type?: AuthorizationResponseType;
869
+ response_mode?: AuthorizationResponseMode;
870
+ redirect_uri?: string;
871
+ };
872
+ created_at: Date;
873
+ expires_at: Date;
874
+ used_at?: Date;
875
+ }
876
+ export interface Code {
877
+ id: string;
878
+ code: string;
879
+ type: "password_reset" | "validation";
880
+ created_at: string;
881
+ expires_at: string;
882
+ used_at?: string;
883
+ user_id: string;
884
+ }
885
+ export interface PasswordResponse {
886
+ valid: boolean;
887
+ message: string;
888
+ }
889
+ export interface PasswordParams {
890
+ user_id: string;
891
+ password: string;
892
+ }
893
+ export declare const baseUserSchema: z.ZodObject<{
894
+ email: z.ZodOptional<z.ZodString>;
895
+ username: z.ZodOptional<z.ZodString>;
896
+ given_name: z.ZodOptional<z.ZodString>;
897
+ family_name: z.ZodOptional<z.ZodString>;
898
+ nickname: z.ZodOptional<z.ZodString>;
899
+ name: z.ZodOptional<z.ZodString>;
900
+ picture: z.ZodOptional<z.ZodString>;
901
+ locale: z.ZodOptional<z.ZodString>;
902
+ linked_to: z.ZodOptional<z.ZodString>;
903
+ profileData: z.ZodOptional<z.ZodString>;
904
+ user_id: z.ZodOptional<z.ZodString>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ name?: string | undefined;
907
+ username?: string | undefined;
908
+ user_id?: string | undefined;
909
+ email?: string | undefined;
910
+ given_name?: string | undefined;
911
+ family_name?: string | undefined;
912
+ profileData?: string | undefined;
913
+ nickname?: string | undefined;
914
+ picture?: string | undefined;
915
+ locale?: string | undefined;
916
+ linked_to?: string | undefined;
917
+ }, {
918
+ name?: string | undefined;
919
+ username?: string | undefined;
920
+ user_id?: string | undefined;
921
+ email?: string | undefined;
922
+ given_name?: string | undefined;
923
+ family_name?: string | undefined;
924
+ profileData?: string | undefined;
925
+ nickname?: string | undefined;
926
+ picture?: string | undefined;
927
+ locale?: string | undefined;
928
+ linked_to?: string | undefined;
929
+ }>;
930
+ export type BaseUser = z.infer<typeof baseUserSchema>;
931
+ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
932
+ email: z.ZodOptional<z.ZodString>;
933
+ username: z.ZodOptional<z.ZodString>;
934
+ given_name: z.ZodOptional<z.ZodString>;
935
+ family_name: z.ZodOptional<z.ZodString>;
936
+ nickname: z.ZodOptional<z.ZodString>;
937
+ name: z.ZodOptional<z.ZodString>;
938
+ picture: z.ZodOptional<z.ZodString>;
939
+ locale: z.ZodOptional<z.ZodString>;
940
+ linked_to: z.ZodOptional<z.ZodString>;
941
+ profileData: z.ZodOptional<z.ZodString>;
942
+ user_id: z.ZodOptional<z.ZodString>;
943
+ }, {
944
+ email_verified: z.ZodDefault<z.ZodBoolean>;
945
+ verify_email: z.ZodOptional<z.ZodBoolean>;
946
+ last_ip: z.ZodOptional<z.ZodString>;
947
+ last_login: z.ZodOptional<z.ZodString>;
948
+ user_id: z.ZodOptional<z.ZodString>;
949
+ provider: z.ZodDefault<z.ZodString>;
950
+ connection: z.ZodDefault<z.ZodString>;
951
+ }>, "strip", z.ZodTypeAny, {
952
+ email_verified: boolean;
953
+ connection: string;
954
+ provider: string;
955
+ name?: string | undefined;
956
+ username?: string | undefined;
957
+ user_id?: string | undefined;
958
+ email?: string | undefined;
959
+ given_name?: string | undefined;
960
+ family_name?: string | undefined;
961
+ profileData?: string | undefined;
962
+ nickname?: string | undefined;
963
+ picture?: string | undefined;
964
+ locale?: string | undefined;
965
+ linked_to?: string | undefined;
966
+ verify_email?: boolean | undefined;
967
+ last_ip?: string | undefined;
968
+ last_login?: string | undefined;
969
+ }, {
970
+ name?: string | undefined;
971
+ username?: string | undefined;
972
+ user_id?: string | undefined;
973
+ email?: string | undefined;
974
+ email_verified?: boolean | undefined;
975
+ given_name?: string | undefined;
976
+ family_name?: string | undefined;
977
+ connection?: string | undefined;
978
+ provider?: string | undefined;
979
+ profileData?: string | undefined;
980
+ nickname?: string | undefined;
981
+ picture?: string | undefined;
982
+ locale?: string | undefined;
983
+ linked_to?: string | undefined;
984
+ verify_email?: boolean | undefined;
985
+ last_ip?: string | undefined;
986
+ last_login?: string | undefined;
987
+ }>;
988
+ export declare const userSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
989
+ email: z.ZodOptional<z.ZodString>;
990
+ username: z.ZodOptional<z.ZodString>;
991
+ given_name: z.ZodOptional<z.ZodString>;
992
+ family_name: z.ZodOptional<z.ZodString>;
993
+ nickname: z.ZodOptional<z.ZodString>;
994
+ name: z.ZodOptional<z.ZodString>;
995
+ picture: z.ZodOptional<z.ZodString>;
996
+ locale: z.ZodOptional<z.ZodString>;
997
+ linked_to: z.ZodOptional<z.ZodString>;
998
+ profileData: z.ZodOptional<z.ZodString>;
999
+ user_id: z.ZodOptional<z.ZodString>;
1000
+ }, {
1001
+ email_verified: z.ZodDefault<z.ZodBoolean>;
1002
+ verify_email: z.ZodOptional<z.ZodBoolean>;
1003
+ last_ip: z.ZodOptional<z.ZodString>;
1004
+ last_login: z.ZodOptional<z.ZodString>;
1005
+ user_id: z.ZodOptional<z.ZodString>;
1006
+ provider: z.ZodDefault<z.ZodString>;
1007
+ connection: z.ZodDefault<z.ZodString>;
1008
+ }>, {
1009
+ created_at: z.ZodString;
1010
+ updated_at: z.ZodString;
1011
+ }>, {
1012
+ user_id: z.ZodString;
1013
+ email: z.ZodString;
1014
+ is_social: z.ZodBoolean;
1015
+ login_count: z.ZodNumber;
1016
+ identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1017
+ connection: z.ZodString;
1018
+ user_id: z.ZodString;
1019
+ provider: z.ZodString;
1020
+ isSocial: z.ZodBoolean;
1021
+ access_token: z.ZodOptional<z.ZodString>;
1022
+ access_token_secret: z.ZodOptional<z.ZodString>;
1023
+ refresh_token: z.ZodOptional<z.ZodString>;
1024
+ profileData: z.ZodOptional<z.ZodObject<{
1025
+ email: z.ZodOptional<z.ZodString>;
1026
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1027
+ name: z.ZodOptional<z.ZodString>;
1028
+ username: z.ZodOptional<z.ZodString>;
1029
+ given_name: z.ZodOptional<z.ZodString>;
1030
+ phone_number: z.ZodOptional<z.ZodString>;
1031
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1032
+ family_name: z.ZodOptional<z.ZodString>;
1033
+ }, "strip", z.ZodAny, z.objectOutputType<{
1034
+ email: z.ZodOptional<z.ZodString>;
1035
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1036
+ name: z.ZodOptional<z.ZodString>;
1037
+ username: z.ZodOptional<z.ZodString>;
1038
+ given_name: z.ZodOptional<z.ZodString>;
1039
+ phone_number: z.ZodOptional<z.ZodString>;
1040
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1041
+ family_name: z.ZodOptional<z.ZodString>;
1042
+ }, z.ZodAny, "strip">, z.objectInputType<{
1043
+ email: z.ZodOptional<z.ZodString>;
1044
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1045
+ name: z.ZodOptional<z.ZodString>;
1046
+ username: z.ZodOptional<z.ZodString>;
1047
+ given_name: z.ZodOptional<z.ZodString>;
1048
+ phone_number: z.ZodOptional<z.ZodString>;
1049
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1050
+ family_name: z.ZodOptional<z.ZodString>;
1051
+ }, z.ZodAny, "strip">>>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ user_id: string;
1054
+ connection: string;
1055
+ provider: string;
1056
+ isSocial: boolean;
1057
+ refresh_token?: string | undefined;
1058
+ access_token?: string | undefined;
1059
+ access_token_secret?: string | undefined;
1060
+ profileData?: z.objectOutputType<{
1061
+ email: z.ZodOptional<z.ZodString>;
1062
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1063
+ name: z.ZodOptional<z.ZodString>;
1064
+ username: z.ZodOptional<z.ZodString>;
1065
+ given_name: z.ZodOptional<z.ZodString>;
1066
+ phone_number: z.ZodOptional<z.ZodString>;
1067
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1068
+ family_name: z.ZodOptional<z.ZodString>;
1069
+ }, z.ZodAny, "strip"> | undefined;
1070
+ }, {
1071
+ user_id: string;
1072
+ connection: string;
1073
+ provider: string;
1074
+ isSocial: boolean;
1075
+ refresh_token?: string | undefined;
1076
+ access_token?: string | undefined;
1077
+ access_token_secret?: string | undefined;
1078
+ profileData?: z.objectInputType<{
1079
+ email: z.ZodOptional<z.ZodString>;
1080
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1081
+ name: z.ZodOptional<z.ZodString>;
1082
+ username: z.ZodOptional<z.ZodString>;
1083
+ given_name: z.ZodOptional<z.ZodString>;
1084
+ phone_number: z.ZodOptional<z.ZodString>;
1085
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1086
+ family_name: z.ZodOptional<z.ZodString>;
1087
+ }, z.ZodAny, "strip"> | undefined;
1088
+ }>, "many">>;
1089
+ }>, "strip", z.ZodTypeAny, {
1090
+ created_at: string;
1091
+ updated_at: string;
1092
+ user_id: string;
1093
+ email: string;
1094
+ email_verified: boolean;
1095
+ connection: string;
1096
+ provider: string;
1097
+ is_social: boolean;
1098
+ login_count: number;
1099
+ name?: string | undefined;
1100
+ username?: string | undefined;
1101
+ given_name?: string | undefined;
1102
+ family_name?: string | undefined;
1103
+ profileData?: string | undefined;
1104
+ nickname?: string | undefined;
1105
+ picture?: string | undefined;
1106
+ locale?: string | undefined;
1107
+ linked_to?: string | undefined;
1108
+ verify_email?: boolean | undefined;
1109
+ last_ip?: string | undefined;
1110
+ last_login?: string | undefined;
1111
+ identities?: {
1112
+ user_id: string;
1113
+ connection: string;
1114
+ provider: string;
1115
+ isSocial: boolean;
1116
+ refresh_token?: string | undefined;
1117
+ access_token?: string | undefined;
1118
+ access_token_secret?: string | undefined;
1119
+ profileData?: z.objectOutputType<{
1120
+ email: z.ZodOptional<z.ZodString>;
1121
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1122
+ name: z.ZodOptional<z.ZodString>;
1123
+ username: z.ZodOptional<z.ZodString>;
1124
+ given_name: z.ZodOptional<z.ZodString>;
1125
+ phone_number: z.ZodOptional<z.ZodString>;
1126
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1127
+ family_name: z.ZodOptional<z.ZodString>;
1128
+ }, z.ZodAny, "strip"> | undefined;
1129
+ }[] | undefined;
1130
+ }, {
1131
+ created_at: string;
1132
+ updated_at: string;
1133
+ user_id: string;
1134
+ email: string;
1135
+ is_social: boolean;
1136
+ login_count: number;
1137
+ name?: string | undefined;
1138
+ username?: string | undefined;
1139
+ email_verified?: boolean | undefined;
1140
+ given_name?: string | undefined;
1141
+ family_name?: string | undefined;
1142
+ connection?: string | undefined;
1143
+ provider?: string | undefined;
1144
+ profileData?: string | undefined;
1145
+ nickname?: string | undefined;
1146
+ picture?: string | undefined;
1147
+ locale?: string | undefined;
1148
+ linked_to?: string | undefined;
1149
+ verify_email?: boolean | undefined;
1150
+ last_ip?: string | undefined;
1151
+ last_login?: string | undefined;
1152
+ identities?: {
1153
+ user_id: string;
1154
+ connection: string;
1155
+ provider: string;
1156
+ isSocial: boolean;
1157
+ refresh_token?: string | undefined;
1158
+ access_token?: string | undefined;
1159
+ access_token_secret?: string | undefined;
1160
+ profileData?: z.objectInputType<{
1161
+ email: z.ZodOptional<z.ZodString>;
1162
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1163
+ name: z.ZodOptional<z.ZodString>;
1164
+ username: z.ZodOptional<z.ZodString>;
1165
+ given_name: z.ZodOptional<z.ZodString>;
1166
+ phone_number: z.ZodOptional<z.ZodString>;
1167
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1168
+ family_name: z.ZodOptional<z.ZodString>;
1169
+ }, z.ZodAny, "strip"> | undefined;
1170
+ }[] | undefined;
1171
+ }>;
1172
+ export type User = z.infer<typeof userSchema>;
1173
+ export declare const auth0UserResponseSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1174
+ email: z.ZodOptional<z.ZodString>;
1175
+ username: z.ZodOptional<z.ZodString>;
1176
+ given_name: z.ZodOptional<z.ZodString>;
1177
+ family_name: z.ZodOptional<z.ZodString>;
1178
+ nickname: z.ZodOptional<z.ZodString>;
1179
+ name: z.ZodOptional<z.ZodString>;
1180
+ picture: z.ZodOptional<z.ZodString>;
1181
+ locale: z.ZodOptional<z.ZodString>;
1182
+ linked_to: z.ZodOptional<z.ZodString>;
1183
+ profileData: z.ZodOptional<z.ZodString>;
1184
+ user_id: z.ZodOptional<z.ZodString>;
1185
+ }, {
1186
+ email_verified: z.ZodDefault<z.ZodBoolean>;
1187
+ verify_email: z.ZodOptional<z.ZodBoolean>;
1188
+ last_ip: z.ZodOptional<z.ZodString>;
1189
+ last_login: z.ZodOptional<z.ZodString>;
1190
+ user_id: z.ZodOptional<z.ZodString>;
1191
+ provider: z.ZodDefault<z.ZodString>;
1192
+ connection: z.ZodDefault<z.ZodString>;
1193
+ }>, {
1194
+ created_at: z.ZodString;
1195
+ updated_at: z.ZodString;
1196
+ }>, {
1197
+ user_id: z.ZodString;
1198
+ email: z.ZodString;
1199
+ is_social: z.ZodBoolean;
1200
+ login_count: z.ZodNumber;
1201
+ identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1202
+ connection: z.ZodString;
1203
+ user_id: z.ZodString;
1204
+ provider: z.ZodString;
1205
+ isSocial: z.ZodBoolean;
1206
+ access_token: z.ZodOptional<z.ZodString>;
1207
+ access_token_secret: z.ZodOptional<z.ZodString>;
1208
+ refresh_token: z.ZodOptional<z.ZodString>;
1209
+ profileData: z.ZodOptional<z.ZodObject<{
1210
+ email: z.ZodOptional<z.ZodString>;
1211
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1212
+ name: z.ZodOptional<z.ZodString>;
1213
+ username: z.ZodOptional<z.ZodString>;
1214
+ given_name: z.ZodOptional<z.ZodString>;
1215
+ phone_number: z.ZodOptional<z.ZodString>;
1216
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1217
+ family_name: z.ZodOptional<z.ZodString>;
1218
+ }, "strip", z.ZodAny, z.objectOutputType<{
1219
+ email: z.ZodOptional<z.ZodString>;
1220
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1221
+ name: z.ZodOptional<z.ZodString>;
1222
+ username: z.ZodOptional<z.ZodString>;
1223
+ given_name: z.ZodOptional<z.ZodString>;
1224
+ phone_number: z.ZodOptional<z.ZodString>;
1225
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1226
+ family_name: z.ZodOptional<z.ZodString>;
1227
+ }, z.ZodAny, "strip">, z.objectInputType<{
1228
+ email: z.ZodOptional<z.ZodString>;
1229
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1230
+ name: z.ZodOptional<z.ZodString>;
1231
+ username: z.ZodOptional<z.ZodString>;
1232
+ given_name: z.ZodOptional<z.ZodString>;
1233
+ phone_number: z.ZodOptional<z.ZodString>;
1234
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1235
+ family_name: z.ZodOptional<z.ZodString>;
1236
+ }, z.ZodAny, "strip">>>;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ user_id: string;
1239
+ connection: string;
1240
+ provider: string;
1241
+ isSocial: boolean;
1242
+ refresh_token?: string | undefined;
1243
+ access_token?: string | undefined;
1244
+ access_token_secret?: string | undefined;
1245
+ profileData?: z.objectOutputType<{
1246
+ email: z.ZodOptional<z.ZodString>;
1247
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1248
+ name: z.ZodOptional<z.ZodString>;
1249
+ username: z.ZodOptional<z.ZodString>;
1250
+ given_name: z.ZodOptional<z.ZodString>;
1251
+ phone_number: z.ZodOptional<z.ZodString>;
1252
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1253
+ family_name: z.ZodOptional<z.ZodString>;
1254
+ }, z.ZodAny, "strip"> | undefined;
1255
+ }, {
1256
+ user_id: string;
1257
+ connection: string;
1258
+ provider: string;
1259
+ isSocial: boolean;
1260
+ refresh_token?: string | undefined;
1261
+ access_token?: string | undefined;
1262
+ access_token_secret?: string | undefined;
1263
+ profileData?: z.objectInputType<{
1264
+ email: z.ZodOptional<z.ZodString>;
1265
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1266
+ name: z.ZodOptional<z.ZodString>;
1267
+ username: z.ZodOptional<z.ZodString>;
1268
+ given_name: z.ZodOptional<z.ZodString>;
1269
+ phone_number: z.ZodOptional<z.ZodString>;
1270
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1271
+ family_name: z.ZodOptional<z.ZodString>;
1272
+ }, z.ZodAny, "strip"> | undefined;
1273
+ }>, "many">>;
1274
+ }>, "strip", z.ZodTypeAny, {
1275
+ created_at: string;
1276
+ updated_at: string;
1277
+ user_id: string;
1278
+ email: string;
1279
+ email_verified: boolean;
1280
+ connection: string;
1281
+ provider: string;
1282
+ is_social: boolean;
1283
+ login_count: number;
1284
+ name?: string | undefined;
1285
+ username?: string | undefined;
1286
+ given_name?: string | undefined;
1287
+ family_name?: string | undefined;
1288
+ profileData?: string | undefined;
1289
+ nickname?: string | undefined;
1290
+ picture?: string | undefined;
1291
+ locale?: string | undefined;
1292
+ linked_to?: string | undefined;
1293
+ verify_email?: boolean | undefined;
1294
+ last_ip?: string | undefined;
1295
+ last_login?: string | undefined;
1296
+ identities?: {
1297
+ user_id: string;
1298
+ connection: string;
1299
+ provider: string;
1300
+ isSocial: boolean;
1301
+ refresh_token?: string | undefined;
1302
+ access_token?: string | undefined;
1303
+ access_token_secret?: string | undefined;
1304
+ profileData?: z.objectOutputType<{
1305
+ email: z.ZodOptional<z.ZodString>;
1306
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1307
+ name: z.ZodOptional<z.ZodString>;
1308
+ username: z.ZodOptional<z.ZodString>;
1309
+ given_name: z.ZodOptional<z.ZodString>;
1310
+ phone_number: z.ZodOptional<z.ZodString>;
1311
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1312
+ family_name: z.ZodOptional<z.ZodString>;
1313
+ }, z.ZodAny, "strip"> | undefined;
1314
+ }[] | undefined;
1315
+ }, {
1316
+ created_at: string;
1317
+ updated_at: string;
1318
+ user_id: string;
1319
+ email: string;
1320
+ is_social: boolean;
1321
+ login_count: number;
1322
+ name?: string | undefined;
1323
+ username?: string | undefined;
1324
+ email_verified?: boolean | undefined;
1325
+ given_name?: string | undefined;
1326
+ family_name?: string | undefined;
1327
+ connection?: string | undefined;
1328
+ provider?: string | undefined;
1329
+ profileData?: string | undefined;
1330
+ nickname?: string | undefined;
1331
+ picture?: string | undefined;
1332
+ locale?: string | undefined;
1333
+ linked_to?: string | undefined;
1334
+ verify_email?: boolean | undefined;
1335
+ last_ip?: string | undefined;
1336
+ last_login?: string | undefined;
1337
+ identities?: {
1338
+ user_id: string;
1339
+ connection: string;
1340
+ provider: string;
1341
+ isSocial: boolean;
1342
+ refresh_token?: string | undefined;
1343
+ access_token?: string | undefined;
1344
+ access_token_secret?: string | undefined;
1345
+ profileData?: z.objectInputType<{
1346
+ email: z.ZodOptional<z.ZodString>;
1347
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1348
+ name: z.ZodOptional<z.ZodString>;
1349
+ username: z.ZodOptional<z.ZodString>;
1350
+ given_name: z.ZodOptional<z.ZodString>;
1351
+ phone_number: z.ZodOptional<z.ZodString>;
1352
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1353
+ family_name: z.ZodOptional<z.ZodString>;
1354
+ }, z.ZodAny, "strip"> | undefined;
1355
+ }[] | undefined;
1356
+ }>;
1357
+ export declare const totalsSchema: z.ZodObject<{
1358
+ start: z.ZodNumber;
1359
+ limit: z.ZodNumber;
1360
+ length: z.ZodNumber;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ length: number;
1363
+ start: number;
1364
+ limit: number;
1365
+ }, {
1366
+ length: number;
1367
+ start: number;
1368
+ limit: number;
1369
+ }>;
1370
+ export interface Totals {
1371
+ start: number;
1372
+ limit: number;
1373
+ length: number;
1374
+ }
1375
+ export interface PostUsersBody extends BaseUser {
1376
+ password?: string;
1377
+ verify_email?: boolean;
1378
+ username?: string;
1379
+ connection?: string;
1380
+ email_verified?: boolean;
1381
+ }
1382
+ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
1383
+ email: z.ZodOptional<z.ZodString>;
1384
+ username: z.ZodOptional<z.ZodString>;
1385
+ given_name: z.ZodOptional<z.ZodString>;
1386
+ family_name: z.ZodOptional<z.ZodString>;
1387
+ nickname: z.ZodOptional<z.ZodString>;
1388
+ name: z.ZodOptional<z.ZodString>;
1389
+ picture: z.ZodOptional<z.ZodString>;
1390
+ locale: z.ZodOptional<z.ZodString>;
1391
+ linked_to: z.ZodOptional<z.ZodString>;
1392
+ profileData: z.ZodOptional<z.ZodString>;
1393
+ user_id: z.ZodOptional<z.ZodString>;
1394
+ }, {
1395
+ email: z.ZodString;
1396
+ login_count: z.ZodNumber;
1397
+ multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1398
+ last_ip: z.ZodOptional<z.ZodString>;
1399
+ last_login: z.ZodOptional<z.ZodString>;
1400
+ user_id: z.ZodString;
1401
+ }>, "strip", z.ZodAny, z.objectOutputType<z.objectUtil.extendShape<{
1402
+ email: z.ZodOptional<z.ZodString>;
1403
+ username: z.ZodOptional<z.ZodString>;
1404
+ given_name: z.ZodOptional<z.ZodString>;
1405
+ family_name: z.ZodOptional<z.ZodString>;
1406
+ nickname: z.ZodOptional<z.ZodString>;
1407
+ name: z.ZodOptional<z.ZodString>;
1408
+ picture: z.ZodOptional<z.ZodString>;
1409
+ locale: z.ZodOptional<z.ZodString>;
1410
+ linked_to: z.ZodOptional<z.ZodString>;
1411
+ profileData: z.ZodOptional<z.ZodString>;
1412
+ user_id: z.ZodOptional<z.ZodString>;
1413
+ }, {
1414
+ email: z.ZodString;
1415
+ login_count: z.ZodNumber;
1416
+ multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1417
+ last_ip: z.ZodOptional<z.ZodString>;
1418
+ last_login: z.ZodOptional<z.ZodString>;
1419
+ user_id: z.ZodString;
1420
+ }>, z.ZodAny, "strip">, z.objectInputType<z.objectUtil.extendShape<{
1421
+ email: z.ZodOptional<z.ZodString>;
1422
+ username: z.ZodOptional<z.ZodString>;
1423
+ given_name: z.ZodOptional<z.ZodString>;
1424
+ family_name: z.ZodOptional<z.ZodString>;
1425
+ nickname: z.ZodOptional<z.ZodString>;
1426
+ name: z.ZodOptional<z.ZodString>;
1427
+ picture: z.ZodOptional<z.ZodString>;
1428
+ locale: z.ZodOptional<z.ZodString>;
1429
+ linked_to: z.ZodOptional<z.ZodString>;
1430
+ profileData: z.ZodOptional<z.ZodString>;
1431
+ user_id: z.ZodOptional<z.ZodString>;
1432
+ }, {
1433
+ email: z.ZodString;
1434
+ login_count: z.ZodNumber;
1435
+ multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1436
+ last_ip: z.ZodOptional<z.ZodString>;
1437
+ last_login: z.ZodOptional<z.ZodString>;
1438
+ user_id: z.ZodString;
1439
+ }>, z.ZodAny, "strip">>;
1440
+ export type UserResponse = z.infer<typeof userResponseSchema>;
1441
+ export declare enum LogTypes {
1442
+ SUCCESS_API_OPERATION = "sapi",
1443
+ SUCCESS_SILENT_AUTH = "ssa",
1444
+ FAILED_SILENT_AUTH = "fsa",
1445
+ SUCCESS_SIGNUP = "ss",
1446
+ FAILED_SIGNUP = "fs",
1447
+ SUCCESS_LOGIN = "s",
1448
+ FAILED_LOGIN = "f",
1449
+ FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
1450
+ SUCCESS_LOGOUT = "slo",
1451
+ SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
1452
+ FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
1453
+ SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
1454
+ SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
1455
+ CODE_LINK_SENT = "cls",
1456
+ NOT_IMPLEMENTED_1 = "seccft"
1457
+ }
1458
+ declare const LogType: z.ZodEnum<[
1459
+ "sapi",
1460
+ "ssa",
1461
+ "fsa",
1462
+ "ss",
1463
+ "ssa",
1464
+ "fs",
1465
+ "s",
1466
+ "f",
1467
+ "fp",
1468
+ "slo",
1469
+ "scoa",
1470
+ "fcoa",
1471
+ "seccft",
1472
+ "cls",
1473
+ "seacft",
1474
+ "serft"
1475
+ ]>;
1476
+ type LogType$1 = z.infer<typeof LogType>;
1477
+ export declare const Auth0Client: z.ZodObject<{
1478
+ name: z.ZodString;
1479
+ version: z.ZodString;
1480
+ env: z.ZodOptional<z.ZodObject<{
1481
+ node: z.ZodOptional<z.ZodString>;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ node?: string | undefined;
1484
+ }, {
1485
+ node?: string | undefined;
1486
+ }>>;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ name: string;
1489
+ version: string;
1490
+ env?: {
1491
+ node?: string | undefined;
1492
+ } | undefined;
1493
+ }, {
1494
+ name: string;
1495
+ version: string;
1496
+ env?: {
1497
+ node?: string | undefined;
1498
+ } | undefined;
1499
+ }>;
1500
+ export declare const logSchema: z.ZodObject<{
1501
+ type: z.ZodEnum<[
1502
+ "sapi",
1503
+ "ssa",
1504
+ "fsa",
1505
+ "ss",
1506
+ "ssa",
1507
+ "fs",
1508
+ "s",
1509
+ "f",
1510
+ "fp",
1511
+ "slo",
1512
+ "scoa",
1513
+ "fcoa",
1514
+ "seccft",
1515
+ "cls",
1516
+ "seacft",
1517
+ "serft"
1518
+ ]>;
1519
+ date: z.ZodString;
1520
+ description: z.ZodOptional<z.ZodString>;
1521
+ log_id: z.ZodOptional<z.ZodString>;
1522
+ _id: z.ZodOptional<z.ZodString>;
1523
+ ip: z.ZodString;
1524
+ user_agent: z.ZodString;
1525
+ details: z.ZodOptional<z.ZodAny>;
1526
+ isMobile: z.ZodBoolean;
1527
+ user_id: z.ZodOptional<z.ZodString>;
1528
+ user_name: z.ZodOptional<z.ZodString>;
1529
+ connection: z.ZodOptional<z.ZodString>;
1530
+ connection_id: z.ZodOptional<z.ZodString>;
1531
+ client_id: z.ZodOptional<z.ZodString>;
1532
+ client_name: z.ZodOptional<z.ZodString>;
1533
+ audience: z.ZodOptional<z.ZodString>;
1534
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1535
+ strategy: z.ZodOptional<z.ZodString>;
1536
+ strategy_type: z.ZodOptional<z.ZodString>;
1537
+ hostname: z.ZodOptional<z.ZodString>;
1538
+ auth0_client: z.ZodOptional<z.ZodObject<{
1539
+ name: z.ZodString;
1540
+ version: z.ZodString;
1541
+ env: z.ZodOptional<z.ZodObject<{
1542
+ node: z.ZodOptional<z.ZodString>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ node?: string | undefined;
1545
+ }, {
1546
+ node?: string | undefined;
1547
+ }>>;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ name: string;
1550
+ version: string;
1551
+ env?: {
1552
+ node?: string | undefined;
1553
+ } | undefined;
1554
+ }, {
1555
+ name: string;
1556
+ version: string;
1557
+ env?: {
1558
+ node?: string | undefined;
1559
+ } | undefined;
1560
+ }>>;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1563
+ date: string;
1564
+ ip: string;
1565
+ user_agent: string;
1566
+ isMobile: boolean;
1567
+ description?: string | undefined;
1568
+ client_id?: string | undefined;
1569
+ audience?: string | undefined;
1570
+ scope?: string[] | undefined;
1571
+ user_id?: string | undefined;
1572
+ connection?: string | undefined;
1573
+ log_id?: string | undefined;
1574
+ _id?: string | undefined;
1575
+ details?: any;
1576
+ user_name?: string | undefined;
1577
+ connection_id?: string | undefined;
1578
+ client_name?: string | undefined;
1579
+ strategy?: string | undefined;
1580
+ strategy_type?: string | undefined;
1581
+ hostname?: string | undefined;
1582
+ auth0_client?: {
1583
+ name: string;
1584
+ version: string;
1585
+ env?: {
1586
+ node?: string | undefined;
1587
+ } | undefined;
1588
+ } | undefined;
1589
+ }, {
1590
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1591
+ date: string;
1592
+ ip: string;
1593
+ user_agent: string;
1594
+ isMobile: boolean;
1595
+ description?: string | undefined;
1596
+ client_id?: string | undefined;
1597
+ audience?: string | undefined;
1598
+ scope?: string[] | undefined;
1599
+ user_id?: string | undefined;
1600
+ connection?: string | undefined;
1601
+ log_id?: string | undefined;
1602
+ _id?: string | undefined;
1603
+ details?: any;
1604
+ user_name?: string | undefined;
1605
+ connection_id?: string | undefined;
1606
+ client_name?: string | undefined;
1607
+ strategy?: string | undefined;
1608
+ strategy_type?: string | undefined;
1609
+ hostname?: string | undefined;
1610
+ auth0_client?: {
1611
+ name: string;
1612
+ version: string;
1613
+ env?: {
1614
+ node?: string | undefined;
1615
+ } | undefined;
1616
+ } | undefined;
1617
+ }>;
1618
+ export type Log = z.infer<typeof logSchema>;
1619
+ export type LogsResponse = Log & {
1620
+ log_id: string;
1621
+ _id: string;
1622
+ };
1623
+ export declare const brandingSchema: z.ZodObject<{
1624
+ colors: z.ZodOptional<z.ZodObject<{
1625
+ primary: z.ZodString;
1626
+ page_background: z.ZodOptional<z.ZodObject<{
1627
+ type: z.ZodOptional<z.ZodString>;
1628
+ start: z.ZodOptional<z.ZodString>;
1629
+ end: z.ZodOptional<z.ZodString>;
1630
+ angle_deg: z.ZodOptional<z.ZodNumber>;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ type?: string | undefined;
1633
+ start?: string | undefined;
1634
+ end?: string | undefined;
1635
+ angle_deg?: number | undefined;
1636
+ }, {
1637
+ type?: string | undefined;
1638
+ start?: string | undefined;
1639
+ end?: string | undefined;
1640
+ angle_deg?: number | undefined;
1641
+ }>>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ primary: string;
1644
+ page_background?: {
1645
+ type?: string | undefined;
1646
+ start?: string | undefined;
1647
+ end?: string | undefined;
1648
+ angle_deg?: number | undefined;
1649
+ } | undefined;
1650
+ }, {
1651
+ primary: string;
1652
+ page_background?: {
1653
+ type?: string | undefined;
1654
+ start?: string | undefined;
1655
+ end?: string | undefined;
1656
+ angle_deg?: number | undefined;
1657
+ } | undefined;
1658
+ }>>;
1659
+ logo_url: z.ZodOptional<z.ZodString>;
1660
+ favicon_url: z.ZodOptional<z.ZodString>;
1661
+ font: z.ZodOptional<z.ZodObject<{
1662
+ url: z.ZodString;
1663
+ }, "strip", z.ZodTypeAny, {
1664
+ url: string;
1665
+ }, {
1666
+ url: string;
1667
+ }>>;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ colors?: {
1670
+ primary: string;
1671
+ page_background?: {
1672
+ type?: string | undefined;
1673
+ start?: string | undefined;
1674
+ end?: string | undefined;
1675
+ angle_deg?: number | undefined;
1676
+ } | undefined;
1677
+ } | undefined;
1678
+ logo_url?: string | undefined;
1679
+ favicon_url?: string | undefined;
1680
+ font?: {
1681
+ url: string;
1682
+ } | undefined;
1683
+ }, {
1684
+ colors?: {
1685
+ primary: string;
1686
+ page_background?: {
1687
+ type?: string | undefined;
1688
+ start?: string | undefined;
1689
+ end?: string | undefined;
1690
+ angle_deg?: number | undefined;
1691
+ } | undefined;
1692
+ } | undefined;
1693
+ logo_url?: string | undefined;
1694
+ favicon_url?: string | undefined;
1695
+ font?: {
1696
+ url: string;
1697
+ } | undefined;
1698
+ }>;
1699
+ export type Branding = z.infer<typeof brandingSchema>;
1700
+ export declare const domainInsertSchema: z.ZodObject<{
1701
+ domain: z.ZodString;
1702
+ dkim_private_key: z.ZodOptional<z.ZodString>;
1703
+ dkim_public_key: z.ZodOptional<z.ZodString>;
1704
+ email_api_key: z.ZodOptional<z.ZodString>;
1705
+ email_service: z.ZodEnum<[
1706
+ "mailgun",
1707
+ "mailchannels"
1708
+ ]>;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ domain: string;
1711
+ email_service: "mailgun" | "mailchannels";
1712
+ dkim_private_key?: string | undefined;
1713
+ dkim_public_key?: string | undefined;
1714
+ email_api_key?: string | undefined;
1715
+ }, {
1716
+ domain: string;
1717
+ email_service: "mailgun" | "mailchannels";
1718
+ dkim_private_key?: string | undefined;
1719
+ dkim_public_key?: string | undefined;
1720
+ email_api_key?: string | undefined;
1721
+ }>;
1722
+ export type DomainInsert = z.infer<typeof domainInsertSchema>;
1723
+ export declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
1724
+ created_at: z.ZodString;
1725
+ updated_at: z.ZodString;
1726
+ }, {
1727
+ id: z.ZodString;
1728
+ domain: z.ZodString;
1729
+ dkim_private_key: z.ZodOptional<z.ZodString>;
1730
+ dkim_public_key: z.ZodOptional<z.ZodString>;
1731
+ email_api_key: z.ZodOptional<z.ZodString>;
1732
+ email_service: z.ZodEnum<[
1733
+ "mailgun",
1734
+ "mailchannels"
1735
+ ]>;
1736
+ }>, "strip", z.ZodTypeAny, {
1737
+ id: string;
1738
+ created_at: string;
1739
+ updated_at: string;
1740
+ domain: string;
1741
+ email_service: "mailgun" | "mailchannels";
1742
+ dkim_private_key?: string | undefined;
1743
+ dkim_public_key?: string | undefined;
1744
+ email_api_key?: string | undefined;
1745
+ }, {
1746
+ id: string;
1747
+ created_at: string;
1748
+ updated_at: string;
1749
+ domain: string;
1750
+ email_service: "mailgun" | "mailchannels";
1751
+ dkim_private_key?: string | undefined;
1752
+ dkim_public_key?: string | undefined;
1753
+ email_api_key?: string | undefined;
1754
+ }>;
1755
+ export type Domain = z.infer<typeof domainSchema>;
1756
+ export declare const hookInsertSchema: z.ZodObject<{
1757
+ trigger_id: z.ZodEnum<[
1758
+ "post-user-registration",
1759
+ "post-user-login"
1760
+ ]>;
1761
+ enabled: z.ZodDefault<z.ZodBoolean>;
1762
+ url: z.ZodString;
1763
+ hook_id: z.ZodOptional<z.ZodString>;
1764
+ }, "strip", z.ZodTypeAny, {
1765
+ enabled: boolean;
1766
+ url: string;
1767
+ trigger_id: "post-user-registration" | "post-user-login";
1768
+ hook_id?: string | undefined;
1769
+ }, {
1770
+ url: string;
1771
+ trigger_id: "post-user-registration" | "post-user-login";
1772
+ enabled?: boolean | undefined;
1773
+ hook_id?: string | undefined;
1774
+ }>;
1775
+ export type HookInsert = z.infer<typeof hookInsertSchema>;
1776
+ export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
1777
+ trigger_id: z.ZodEnum<[
1778
+ "post-user-registration",
1779
+ "post-user-login"
1780
+ ]>;
1781
+ enabled: z.ZodDefault<z.ZodBoolean>;
1782
+ url: z.ZodString;
1783
+ hook_id: z.ZodOptional<z.ZodString>;
1784
+ }, {
1785
+ hook_id: z.ZodString;
1786
+ created_at: z.ZodString;
1787
+ updated_at: z.ZodString;
1788
+ }>, "strip", z.ZodTypeAny, {
1789
+ enabled: boolean;
1790
+ created_at: string;
1791
+ updated_at: string;
1792
+ url: string;
1793
+ trigger_id: "post-user-registration" | "post-user-login";
1794
+ hook_id: string;
1795
+ }, {
1796
+ created_at: string;
1797
+ updated_at: string;
1798
+ url: string;
1799
+ trigger_id: "post-user-registration" | "post-user-login";
1800
+ hook_id: string;
1801
+ enabled?: boolean | undefined;
1802
+ }>;
1803
+ export type Hook = z.infer<typeof hookSchema>;
1804
+ export declare const tenantInsertSchema: z.ZodObject<{
1805
+ name: z.ZodString;
1806
+ audience: z.ZodString;
1807
+ sender_email: z.ZodString;
1808
+ sender_name: z.ZodString;
1809
+ support_url: z.ZodOptional<z.ZodString>;
1810
+ logo: z.ZodOptional<z.ZodString>;
1811
+ primary_color: z.ZodOptional<z.ZodString>;
1812
+ secondary_color: z.ZodOptional<z.ZodString>;
1813
+ language: z.ZodOptional<z.ZodString>;
1814
+ }, "strip", z.ZodTypeAny, {
1815
+ name: string;
1816
+ audience: string;
1817
+ sender_email: string;
1818
+ sender_name: string;
1819
+ logo?: string | undefined;
1820
+ primary_color?: string | undefined;
1821
+ secondary_color?: string | undefined;
1822
+ support_url?: string | undefined;
1823
+ language?: string | undefined;
1824
+ }, {
1825
+ name: string;
1826
+ audience: string;
1827
+ sender_email: string;
1828
+ sender_name: string;
1829
+ logo?: string | undefined;
1830
+ primary_color?: string | undefined;
1831
+ secondary_color?: string | undefined;
1832
+ support_url?: string | undefined;
1833
+ language?: string | undefined;
1834
+ }>;
1835
+ export declare const tenantSchema: z.ZodObject<z.objectUtil.extendShape<{
1836
+ name: z.ZodString;
1837
+ audience: z.ZodString;
1838
+ sender_email: z.ZodString;
1839
+ sender_name: z.ZodString;
1840
+ support_url: z.ZodOptional<z.ZodString>;
1841
+ logo: z.ZodOptional<z.ZodString>;
1842
+ primary_color: z.ZodOptional<z.ZodString>;
1843
+ secondary_color: z.ZodOptional<z.ZodString>;
1844
+ language: z.ZodOptional<z.ZodString>;
1845
+ }, {
1846
+ created_at: z.ZodEffects<z.ZodString, string, string>;
1847
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
1848
+ }>, "strip", z.ZodTypeAny, {
1849
+ name: string;
1850
+ created_at: string;
1851
+ updated_at: string;
1852
+ audience: string;
1853
+ sender_email: string;
1854
+ sender_name: string;
1855
+ logo?: string | undefined;
1856
+ primary_color?: string | undefined;
1857
+ secondary_color?: string | undefined;
1858
+ support_url?: string | undefined;
1859
+ language?: string | undefined;
1860
+ }, {
1861
+ name: string;
1862
+ created_at: string;
1863
+ updated_at: string;
1864
+ audience: string;
1865
+ sender_email: string;
1866
+ sender_name: string;
1867
+ logo?: string | undefined;
1868
+ primary_color?: string | undefined;
1869
+ secondary_color?: string | undefined;
1870
+ support_url?: string | undefined;
1871
+ language?: string | undefined;
1872
+ }>;
1873
+ export interface Tenant {
1874
+ id: string;
1875
+ name: string;
1876
+ audience: string;
1877
+ sender_email: string;
1878
+ sender_name: string;
1879
+ support_url?: string;
1880
+ logo?: string;
1881
+ primary_color?: string;
1882
+ secondary_color?: string;
1883
+ language?: string;
1884
+ created_at: string;
1885
+ updated_at: string;
1886
+ }
1887
+ export declare const vendorSettingsSchema: z.ZodObject<{
1888
+ logoUrl: z.ZodString;
1889
+ loginBackgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1890
+ style: z.ZodObject<{
1891
+ primaryColor: z.ZodString;
1892
+ buttonTextColor: z.ZodString;
1893
+ primaryHoverColor: z.ZodString;
1894
+ }, "strip", z.ZodTypeAny, {
1895
+ primaryColor: string;
1896
+ buttonTextColor: string;
1897
+ primaryHoverColor: string;
1898
+ }, {
1899
+ primaryColor: string;
1900
+ buttonTextColor: string;
1901
+ primaryHoverColor: string;
1902
+ }>;
1903
+ supportEmail: z.ZodNullable<z.ZodString>;
1904
+ supportUrl: z.ZodNullable<z.ZodString>;
1905
+ name: z.ZodString;
1906
+ showGreyishBackground: z.ZodOptional<z.ZodBoolean>;
1907
+ termsAndConditionsUrl: z.ZodNullable<z.ZodString>;
1908
+ companyName: z.ZodOptional<z.ZodString>;
1909
+ checkoutHideSocial: z.ZodOptional<z.ZodBoolean>;
1910
+ siteUrl: z.ZodNullable<z.ZodString>;
1911
+ manageSubscriptionsUrl: z.ZodOptional<z.ZodString>;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ name: string;
1914
+ style: {
1915
+ primaryColor: string;
1916
+ buttonTextColor: string;
1917
+ primaryHoverColor: string;
1918
+ };
1919
+ logoUrl: string;
1920
+ supportEmail: string | null;
1921
+ supportUrl: string | null;
1922
+ termsAndConditionsUrl: string | null;
1923
+ siteUrl: string | null;
1924
+ loginBackgroundImage?: string | null | undefined;
1925
+ showGreyishBackground?: boolean | undefined;
1926
+ companyName?: string | undefined;
1927
+ checkoutHideSocial?: boolean | undefined;
1928
+ manageSubscriptionsUrl?: string | undefined;
1929
+ }, {
1930
+ name: string;
1931
+ style: {
1932
+ primaryColor: string;
1933
+ buttonTextColor: string;
1934
+ primaryHoverColor: string;
1935
+ };
1936
+ logoUrl: string;
1937
+ supportEmail: string | null;
1938
+ supportUrl: string | null;
1939
+ termsAndConditionsUrl: string | null;
1940
+ siteUrl: string | null;
1941
+ loginBackgroundImage?: string | null | undefined;
1942
+ showGreyishBackground?: boolean | undefined;
1943
+ companyName?: string | undefined;
1944
+ checkoutHideSocial?: boolean | undefined;
1945
+ manageSubscriptionsUrl?: string | undefined;
1946
+ }>;
1947
+ export type VendorSettings = z.infer<typeof vendorSettingsSchema>;
1948
+ export declare const connectionInsertSchema: z.ZodObject<{
1949
+ id: z.ZodOptional<z.ZodString>;
1950
+ name: z.ZodString;
1951
+ client_id: z.ZodOptional<z.ZodString>;
1952
+ client_secret: z.ZodOptional<z.ZodString>;
1953
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1954
+ response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1955
+ response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1956
+ private_key: z.ZodOptional<z.ZodString>;
1957
+ kid: z.ZodOptional<z.ZodString>;
1958
+ team_id: z.ZodOptional<z.ZodString>;
1959
+ token_endpoint: z.ZodOptional<z.ZodString>;
1960
+ token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
1961
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1962
+ scope: z.ZodOptional<z.ZodString>;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ name: string;
1965
+ id?: string | undefined;
1966
+ client_secret?: string | undefined;
1967
+ client_id?: string | undefined;
1968
+ response_type?: AuthorizationResponseType | undefined;
1969
+ response_mode?: AuthorizationResponseMode | undefined;
1970
+ scope?: string | undefined;
1971
+ authorization_endpoint?: string | undefined;
1972
+ private_key?: string | undefined;
1973
+ kid?: string | undefined;
1974
+ team_id?: string | undefined;
1975
+ token_endpoint?: string | undefined;
1976
+ token_exchange_basic_auth?: boolean | undefined;
1977
+ userinfo_endpoint?: string | undefined;
1978
+ }, {
1979
+ name: string;
1980
+ id?: string | undefined;
1981
+ client_secret?: string | undefined;
1982
+ client_id?: string | undefined;
1983
+ response_type?: AuthorizationResponseType | undefined;
1984
+ response_mode?: AuthorizationResponseMode | undefined;
1985
+ scope?: string | undefined;
1986
+ authorization_endpoint?: string | undefined;
1987
+ private_key?: string | undefined;
1988
+ kid?: string | undefined;
1989
+ team_id?: string | undefined;
1990
+ token_endpoint?: string | undefined;
1991
+ token_exchange_basic_auth?: boolean | undefined;
1992
+ userinfo_endpoint?: string | undefined;
1993
+ }>;
1994
+ export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
1995
+ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1996
+ id: z.ZodString;
1997
+ created_at: z.ZodEffects<z.ZodString, string, string>;
1998
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
1999
+ }, {
2000
+ id: z.ZodOptional<z.ZodString>;
2001
+ name: z.ZodString;
2002
+ client_id: z.ZodOptional<z.ZodString>;
2003
+ client_secret: z.ZodOptional<z.ZodString>;
2004
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
2005
+ response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
2006
+ response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
2007
+ private_key: z.ZodOptional<z.ZodString>;
2008
+ kid: z.ZodOptional<z.ZodString>;
2009
+ team_id: z.ZodOptional<z.ZodString>;
2010
+ token_endpoint: z.ZodOptional<z.ZodString>;
2011
+ token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
2012
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
2013
+ scope: z.ZodOptional<z.ZodString>;
2014
+ }>, "strip", z.ZodTypeAny, {
2015
+ name: string;
2016
+ created_at: string;
2017
+ updated_at: string;
2018
+ id?: string | undefined;
2019
+ client_secret?: string | undefined;
2020
+ client_id?: string | undefined;
2021
+ response_type?: AuthorizationResponseType | undefined;
2022
+ response_mode?: AuthorizationResponseMode | undefined;
2023
+ scope?: string | undefined;
2024
+ authorization_endpoint?: string | undefined;
2025
+ private_key?: string | undefined;
2026
+ kid?: string | undefined;
2027
+ team_id?: string | undefined;
2028
+ token_endpoint?: string | undefined;
2029
+ token_exchange_basic_auth?: boolean | undefined;
2030
+ userinfo_endpoint?: string | undefined;
2031
+ }, {
2032
+ name: string;
2033
+ created_at: string;
2034
+ updated_at: string;
2035
+ id?: string | undefined;
2036
+ client_secret?: string | undefined;
2037
+ client_id?: string | undefined;
2038
+ response_type?: AuthorizationResponseType | undefined;
2039
+ response_mode?: AuthorizationResponseMode | undefined;
2040
+ scope?: string | undefined;
2041
+ authorization_endpoint?: string | undefined;
2042
+ private_key?: string | undefined;
2043
+ kid?: string | undefined;
2044
+ team_id?: string | undefined;
2045
+ token_endpoint?: string | undefined;
2046
+ token_exchange_basic_auth?: boolean | undefined;
2047
+ userinfo_endpoint?: string | undefined;
2048
+ }>;
2049
+ export type Connection = z.infer<typeof connectionSchema>;
2050
+ export interface CodesAdapter {
2051
+ create: (tenant_id: string, authCode: Code) => Promise<void>;
2052
+ list: (tenant_id: string, user_id: string) => Promise<Code[]>;
2053
+ }
2054
+ export interface OTPAdapter {
2055
+ create: (authCode: OTP) => Promise<void>;
2056
+ list: (tenant_id: string, email: string) => Promise<OTP[]>;
2057
+ remove: (tenant_id: string, id: string) => Promise<void>;
2058
+ }
2059
+ export interface PasswordsAdapter {
2060
+ create: (tenant_id: string, params: PasswordParams) => Promise<void>;
2061
+ update: (tenant_id: string, params: PasswordParams) => Promise<boolean>;
2062
+ validate: (tenant_id: string, params: PasswordParams) => Promise<PasswordResponse>;
2063
+ }
2064
+ export interface SessionsAdapter {
2065
+ create: (session: Session) => Promise<void>;
2066
+ get: (tenant_id: string, id: string) => Promise<Session | null>;
2067
+ update: (tenant_id: string, id: string, session: {
2068
+ used_at: string;
2069
+ }) => Promise<boolean>;
2070
+ remove: (tenant_id: string, id: string) => Promise<boolean>;
2071
+ }
2072
+ export interface ListParams {
2073
+ page: number;
2074
+ per_page: number;
2075
+ include_totals: boolean;
2076
+ q?: string;
2077
+ sort?: {
2078
+ sort_by: string;
2079
+ sort_order: "asc" | "desc";
2080
+ };
2081
+ }
2082
+ export interface CreateTenantParams {
2083
+ name: string;
2084
+ audience: string;
2085
+ sender_name: string;
2086
+ sender_email: string;
2087
+ id?: string;
2088
+ }
2089
+ export interface TenantsDataAdapter {
2090
+ create(params: CreateTenantParams): Promise<Tenant>;
2091
+ get(id: string): Promise<Tenant | null>;
2092
+ list(params: ListParams): Promise<{
2093
+ tenants: Tenant[];
2094
+ totals?: Totals;
2095
+ }>;
2096
+ update(id: string, tenant: Partial<Tenant>): Promise<void>;
2097
+ remove(tenantId: string): Promise<boolean>;
2098
+ }
2099
+ export interface TicketsAdapter {
2100
+ create: (ticket: Ticket) => Promise<void>;
2101
+ get: (tenant_id: string, id: string) => Promise<Ticket | null>;
2102
+ remove: (tenant_id: string, id: string) => Promise<void>;
2103
+ }
2104
+ export interface ListUsersResponse extends Totals {
2105
+ users: User[];
2106
+ }
2107
+ export interface UserDataAdapter {
2108
+ get(tenant_id: string, id: string): Promise<User | null>;
2109
+ create(tenantId: string, user: User): Promise<User>;
2110
+ remove(tenantId: string, id: string): Promise<boolean>;
2111
+ list(tenantId: string, params: ListParams): Promise<ListUsersResponse>;
2112
+ update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
2113
+ unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
2114
+ }
2115
+ export interface ListLogsResponse extends Totals {
2116
+ logs: LogsResponse[];
2117
+ }
2118
+ export interface LogsDataAdapter {
2119
+ create(tenantId: string, params: Log): Promise<Log>;
2120
+ list(tenantId: string, params: ListParams): Promise<ListLogsResponse>;
2121
+ get(tenantId: string, logId: string): Promise<LogsResponse | null>;
2122
+ }
2123
+ export interface CreateApplicationParams {
2124
+ name: string;
2125
+ allowed_web_origins: string;
2126
+ allowed_callback_urls: string;
2127
+ allowed_logout_urls: string;
2128
+ email_validation: "enabled" | "disabled" | "enforced";
2129
+ client_secret: string;
2130
+ id: string;
2131
+ disable_sign_ups: boolean;
2132
+ }
2133
+ export interface ApplicationsAdapter {
2134
+ create(tenant_id: string, params: CreateApplicationParams): Promise<Application>;
2135
+ get(tenant_id: string, id: string): Promise<Application | null>;
2136
+ remove(tenant_id: string, id: string): Promise<boolean>;
2137
+ list(tenant_id: string, params: ListParams): Promise<{
2138
+ applications: Application[];
2139
+ totals?: Totals;
2140
+ }>;
2141
+ update(tenant_id: string, id: string, application: Partial<Application>): Promise<boolean>;
2142
+ }
2143
+ export interface UniversalLoginSession {
2144
+ id: string;
2145
+ tenant_id: string;
2146
+ created_at: string;
2147
+ updated_at: string;
2148
+ expires_at: string;
2149
+ authParams: AuthParams;
2150
+ auth0Client?: string;
2151
+ }
2152
+ export interface UniversalLoginSessionsAdapter {
2153
+ create: (session: UniversalLoginSession) => Promise<void>;
2154
+ update: (id: string, session: UniversalLoginSession) => Promise<boolean>;
2155
+ get: (id: string) => Promise<UniversalLoginSession | null>;
2156
+ }
2157
+ export interface ListConnectionsResponse extends Totals {
2158
+ connections: Connection[];
2159
+ }
2160
+ export interface ConnectionsAdapter {
2161
+ create(tenant_id: string, params: ConnectionInsert): Promise<Connection>;
2162
+ remove(tenant_id: string, connection_id: string): Promise<boolean>;
2163
+ get(tenant_id: string, connection_id: string): Promise<Connection | null>;
2164
+ update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
2165
+ list(tenant_id: string, params: ListParams): Promise<ListConnectionsResponse>;
2166
+ }
2167
+ export interface ListDomainsResponse extends Totals {
2168
+ domains: Domain[];
2169
+ }
2170
+ export interface DomainsAdapter {
2171
+ create(tenant_id: string, params: Domain): Promise<Domain>;
2172
+ list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
2173
+ }
2174
+ export interface KeysAdapter {
2175
+ create: (key: Certificate) => Promise<void>;
2176
+ list: () => Promise<Certificate[]>;
2177
+ revoke: (kid: string, revoke_at: Date) => Promise<boolean>;
2178
+ }
2179
+ export interface BrandingAdapter {
2180
+ set: (tenant_id: string, authCode: Branding) => Promise<void>;
2181
+ get: (tenant_id: string) => Promise<Branding | null>;
2182
+ }
2183
+ export interface AuthenticationCodesAdapter {
2184
+ create: (tenant_id: string, authCode: AuthenticationCode) => Promise<void>;
2185
+ get: (tenant_id: string, code: string) => Promise<AuthenticationCode>;
2186
+ }
2187
+ export interface ListHooksResponse extends Totals {
2188
+ hooks: Hook[];
2189
+ }
2190
+ export interface HooksAdapter {
2191
+ create: (tenant_id: string, hook: HookInsert) => Promise<Hook>;
2192
+ remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
2193
+ get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
2194
+ update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
2195
+ list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
2196
+ }
2197
+ export interface DataAdapters {
2198
+ applications: ApplicationsAdapter;
2199
+ branding: BrandingAdapter;
2200
+ codes: CodesAdapter;
2201
+ OTP: OTPAdapter;
2202
+ passwords: PasswordsAdapter;
2203
+ sessions: SessionsAdapter;
2204
+ tenants: TenantsDataAdapter;
2205
+ tickets: TicketsAdapter;
2206
+ universalLoginSessions: UniversalLoginSessionsAdapter;
2207
+ users: UserDataAdapter;
2208
+ logs: LogsDataAdapter;
2209
+ connections: ConnectionsAdapter;
2210
+ domains: DomainsAdapter;
2211
+ keys: KeysAdapter;
2212
+ hooks: HooksAdapter;
2213
+ authenticationCodes: AuthenticationCodesAdapter;
2214
+ }
2215
+ export declare const tmp = "tmp";
2216
+
2217
+ export {
2218
+ LogType$1 as LogType,
2219
+ };
2220
+
2221
+ export {};