@authhero/kysely-adapter 0.4.3 → 0.5.1
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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +1005 -168
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +4700 -1676
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -654,6 +654,148 @@ declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
654
654
|
enabled?: boolean | undefined;
|
|
655
655
|
}>;
|
|
656
656
|
export type Hook = z.infer<typeof hookSchema>;
|
|
657
|
+
declare const LogType: z.ZodEnum<[
|
|
658
|
+
"sapi",
|
|
659
|
+
"ssa",
|
|
660
|
+
"fsa",
|
|
661
|
+
"ss",
|
|
662
|
+
"ssa",
|
|
663
|
+
"fs",
|
|
664
|
+
"s",
|
|
665
|
+
"f",
|
|
666
|
+
"fp",
|
|
667
|
+
"slo",
|
|
668
|
+
"scoa",
|
|
669
|
+
"fcoa",
|
|
670
|
+
"seccft",
|
|
671
|
+
"cls",
|
|
672
|
+
"seacft",
|
|
673
|
+
"serft"
|
|
674
|
+
]>;
|
|
675
|
+
export type LogType$1 = z.infer<typeof LogType>;
|
|
676
|
+
declare const logSchema: z.ZodObject<{
|
|
677
|
+
type: z.ZodEnum<[
|
|
678
|
+
"sapi",
|
|
679
|
+
"ssa",
|
|
680
|
+
"fsa",
|
|
681
|
+
"ss",
|
|
682
|
+
"ssa",
|
|
683
|
+
"fs",
|
|
684
|
+
"s",
|
|
685
|
+
"f",
|
|
686
|
+
"fp",
|
|
687
|
+
"slo",
|
|
688
|
+
"scoa",
|
|
689
|
+
"fcoa",
|
|
690
|
+
"seccft",
|
|
691
|
+
"cls",
|
|
692
|
+
"seacft",
|
|
693
|
+
"serft"
|
|
694
|
+
]>;
|
|
695
|
+
date: z.ZodString;
|
|
696
|
+
description: z.ZodOptional<z.ZodString>;
|
|
697
|
+
log_id: z.ZodOptional<z.ZodString>;
|
|
698
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
699
|
+
ip: z.ZodString;
|
|
700
|
+
user_agent: z.ZodString;
|
|
701
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
702
|
+
isMobile: z.ZodBoolean;
|
|
703
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
704
|
+
user_name: z.ZodOptional<z.ZodString>;
|
|
705
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
706
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
707
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
708
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
709
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
710
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
711
|
+
strategy: z.ZodOptional<z.ZodString>;
|
|
712
|
+
strategy_type: z.ZodOptional<z.ZodString>;
|
|
713
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
714
|
+
auth0_client: z.ZodOptional<z.ZodObject<{
|
|
715
|
+
name: z.ZodString;
|
|
716
|
+
version: z.ZodString;
|
|
717
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
718
|
+
node: z.ZodOptional<z.ZodString>;
|
|
719
|
+
}, "strip", z.ZodTypeAny, {
|
|
720
|
+
node?: string | undefined;
|
|
721
|
+
}, {
|
|
722
|
+
node?: string | undefined;
|
|
723
|
+
}>>;
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
725
|
+
name: string;
|
|
726
|
+
version: string;
|
|
727
|
+
env?: {
|
|
728
|
+
node?: string | undefined;
|
|
729
|
+
} | undefined;
|
|
730
|
+
}, {
|
|
731
|
+
name: string;
|
|
732
|
+
version: string;
|
|
733
|
+
env?: {
|
|
734
|
+
node?: string | undefined;
|
|
735
|
+
} | undefined;
|
|
736
|
+
}>>;
|
|
737
|
+
}, "strip", z.ZodTypeAny, {
|
|
738
|
+
type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
|
|
739
|
+
date: string;
|
|
740
|
+
ip: string;
|
|
741
|
+
user_agent: string;
|
|
742
|
+
isMobile: boolean;
|
|
743
|
+
description?: string | undefined;
|
|
744
|
+
connection?: string | undefined;
|
|
745
|
+
user_id?: string | undefined;
|
|
746
|
+
client_id?: string | undefined;
|
|
747
|
+
audience?: string | undefined;
|
|
748
|
+
scope?: string[] | undefined;
|
|
749
|
+
log_id?: string | undefined;
|
|
750
|
+
_id?: string | undefined;
|
|
751
|
+
details?: any;
|
|
752
|
+
user_name?: string | undefined;
|
|
753
|
+
connection_id?: string | undefined;
|
|
754
|
+
client_name?: string | undefined;
|
|
755
|
+
strategy?: string | undefined;
|
|
756
|
+
strategy_type?: string | undefined;
|
|
757
|
+
hostname?: string | undefined;
|
|
758
|
+
auth0_client?: {
|
|
759
|
+
name: string;
|
|
760
|
+
version: string;
|
|
761
|
+
env?: {
|
|
762
|
+
node?: string | undefined;
|
|
763
|
+
} | undefined;
|
|
764
|
+
} | undefined;
|
|
765
|
+
}, {
|
|
766
|
+
type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
|
|
767
|
+
date: string;
|
|
768
|
+
ip: string;
|
|
769
|
+
user_agent: string;
|
|
770
|
+
isMobile: boolean;
|
|
771
|
+
description?: string | undefined;
|
|
772
|
+
connection?: string | undefined;
|
|
773
|
+
user_id?: string | undefined;
|
|
774
|
+
client_id?: string | undefined;
|
|
775
|
+
audience?: string | undefined;
|
|
776
|
+
scope?: string[] | undefined;
|
|
777
|
+
log_id?: string | undefined;
|
|
778
|
+
_id?: string | undefined;
|
|
779
|
+
details?: any;
|
|
780
|
+
user_name?: string | undefined;
|
|
781
|
+
connection_id?: string | undefined;
|
|
782
|
+
client_name?: string | undefined;
|
|
783
|
+
strategy?: string | undefined;
|
|
784
|
+
strategy_type?: string | undefined;
|
|
785
|
+
hostname?: string | undefined;
|
|
786
|
+
auth0_client?: {
|
|
787
|
+
name: string;
|
|
788
|
+
version: string;
|
|
789
|
+
env?: {
|
|
790
|
+
node?: string | undefined;
|
|
791
|
+
} | undefined;
|
|
792
|
+
} | undefined;
|
|
793
|
+
}>;
|
|
794
|
+
export type Log = z.infer<typeof logSchema>;
|
|
795
|
+
export type LogsResponse = Log & {
|
|
796
|
+
log_id: string;
|
|
797
|
+
_id: string;
|
|
798
|
+
};
|
|
657
799
|
declare const otpInsertSchema: z.ZodObject<{
|
|
658
800
|
id: z.ZodString;
|
|
659
801
|
email: z.ZodString;
|
|
@@ -1142,148 +1284,840 @@ declare const universalLoginSessionSchema: z.ZodObject<{
|
|
|
1142
1284
|
auth0Client?: string | undefined;
|
|
1143
1285
|
}>;
|
|
1144
1286
|
export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
|
|
1145
|
-
declare const
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
"
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
"
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
"
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
"
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1287
|
+
declare const themeInsertSchema: z.ZodObject<{
|
|
1288
|
+
borders: z.ZodObject<{
|
|
1289
|
+
button_border_radius: z.ZodNumber;
|
|
1290
|
+
button_border_weight: z.ZodNumber;
|
|
1291
|
+
buttons_style: z.ZodEnum<[
|
|
1292
|
+
"pill"
|
|
1293
|
+
]>;
|
|
1294
|
+
input_border_radius: z.ZodNumber;
|
|
1295
|
+
input_border_weight: z.ZodNumber;
|
|
1296
|
+
inputs_style: z.ZodEnum<[
|
|
1297
|
+
"pill"
|
|
1298
|
+
]>;
|
|
1299
|
+
show_widget_shadow: z.ZodBoolean;
|
|
1300
|
+
widget_border_weight: z.ZodNumber;
|
|
1301
|
+
widget_corner_radius: z.ZodNumber;
|
|
1302
|
+
}, "strip", z.ZodTypeAny, {
|
|
1303
|
+
button_border_radius: number;
|
|
1304
|
+
button_border_weight: number;
|
|
1305
|
+
buttons_style: "pill";
|
|
1306
|
+
input_border_radius: number;
|
|
1307
|
+
input_border_weight: number;
|
|
1308
|
+
inputs_style: "pill";
|
|
1309
|
+
show_widget_shadow: boolean;
|
|
1310
|
+
widget_border_weight: number;
|
|
1311
|
+
widget_corner_radius: number;
|
|
1312
|
+
}, {
|
|
1313
|
+
button_border_radius: number;
|
|
1314
|
+
button_border_weight: number;
|
|
1315
|
+
buttons_style: "pill";
|
|
1316
|
+
input_border_radius: number;
|
|
1317
|
+
input_border_weight: number;
|
|
1318
|
+
inputs_style: "pill";
|
|
1319
|
+
show_widget_shadow: boolean;
|
|
1320
|
+
widget_border_weight: number;
|
|
1321
|
+
widget_corner_radius: number;
|
|
1322
|
+
}>;
|
|
1323
|
+
colors: z.ZodObject<{
|
|
1324
|
+
base_focus_color: z.ZodString;
|
|
1325
|
+
base_hover_color: z.ZodString;
|
|
1326
|
+
body_text: z.ZodString;
|
|
1327
|
+
captcha_widget_theme: z.ZodEnum<[
|
|
1328
|
+
"auto"
|
|
1329
|
+
]>;
|
|
1330
|
+
error: z.ZodString;
|
|
1331
|
+
header: z.ZodString;
|
|
1332
|
+
icons: z.ZodString;
|
|
1333
|
+
input_background: z.ZodString;
|
|
1334
|
+
input_border: z.ZodString;
|
|
1335
|
+
input_filled_text: z.ZodString;
|
|
1336
|
+
input_labels_placeholders: z.ZodString;
|
|
1337
|
+
links_focused_components: z.ZodString;
|
|
1338
|
+
primary_button: z.ZodString;
|
|
1339
|
+
primary_button_label: z.ZodString;
|
|
1340
|
+
secondary_button_border: z.ZodString;
|
|
1341
|
+
secondary_button_label: z.ZodString;
|
|
1342
|
+
success: z.ZodString;
|
|
1343
|
+
widget_background: z.ZodString;
|
|
1344
|
+
widget_border: z.ZodString;
|
|
1345
|
+
}, "strip", z.ZodTypeAny, {
|
|
1346
|
+
base_focus_color: string;
|
|
1347
|
+
base_hover_color: string;
|
|
1348
|
+
body_text: string;
|
|
1349
|
+
captcha_widget_theme: "auto";
|
|
1350
|
+
error: string;
|
|
1351
|
+
header: string;
|
|
1352
|
+
icons: string;
|
|
1353
|
+
input_background: string;
|
|
1354
|
+
input_border: string;
|
|
1355
|
+
input_filled_text: string;
|
|
1356
|
+
input_labels_placeholders: string;
|
|
1357
|
+
links_focused_components: string;
|
|
1358
|
+
primary_button: string;
|
|
1359
|
+
primary_button_label: string;
|
|
1360
|
+
secondary_button_border: string;
|
|
1361
|
+
secondary_button_label: string;
|
|
1362
|
+
success: string;
|
|
1363
|
+
widget_background: string;
|
|
1364
|
+
widget_border: string;
|
|
1365
|
+
}, {
|
|
1366
|
+
base_focus_color: string;
|
|
1367
|
+
base_hover_color: string;
|
|
1368
|
+
body_text: string;
|
|
1369
|
+
captcha_widget_theme: "auto";
|
|
1370
|
+
error: string;
|
|
1371
|
+
header: string;
|
|
1372
|
+
icons: string;
|
|
1373
|
+
input_background: string;
|
|
1374
|
+
input_border: string;
|
|
1375
|
+
input_filled_text: string;
|
|
1376
|
+
input_labels_placeholders: string;
|
|
1377
|
+
links_focused_components: string;
|
|
1378
|
+
primary_button: string;
|
|
1379
|
+
primary_button_label: string;
|
|
1380
|
+
secondary_button_border: string;
|
|
1381
|
+
secondary_button_label: string;
|
|
1382
|
+
success: string;
|
|
1383
|
+
widget_background: string;
|
|
1384
|
+
widget_border: string;
|
|
1385
|
+
}>;
|
|
1386
|
+
displayName: z.ZodString;
|
|
1387
|
+
fonts: z.ZodObject<{
|
|
1388
|
+
body_text: z.ZodObject<{
|
|
1389
|
+
bold: z.ZodBoolean;
|
|
1390
|
+
size: z.ZodNumber;
|
|
1207
1391
|
}, "strip", z.ZodTypeAny, {
|
|
1208
|
-
|
|
1392
|
+
bold: boolean;
|
|
1393
|
+
size: number;
|
|
1209
1394
|
}, {
|
|
1210
|
-
|
|
1211
|
-
|
|
1395
|
+
bold: boolean;
|
|
1396
|
+
size: number;
|
|
1397
|
+
}>;
|
|
1398
|
+
buttons_text: z.ZodObject<{
|
|
1399
|
+
bold: z.ZodBoolean;
|
|
1400
|
+
size: z.ZodNumber;
|
|
1401
|
+
}, "strip", z.ZodTypeAny, {
|
|
1402
|
+
bold: boolean;
|
|
1403
|
+
size: number;
|
|
1404
|
+
}, {
|
|
1405
|
+
bold: boolean;
|
|
1406
|
+
size: number;
|
|
1407
|
+
}>;
|
|
1408
|
+
font_url: z.ZodString;
|
|
1409
|
+
input_labels: z.ZodObject<{
|
|
1410
|
+
bold: z.ZodBoolean;
|
|
1411
|
+
size: z.ZodNumber;
|
|
1412
|
+
}, "strip", z.ZodTypeAny, {
|
|
1413
|
+
bold: boolean;
|
|
1414
|
+
size: number;
|
|
1415
|
+
}, {
|
|
1416
|
+
bold: boolean;
|
|
1417
|
+
size: number;
|
|
1418
|
+
}>;
|
|
1419
|
+
links: z.ZodObject<{
|
|
1420
|
+
bold: z.ZodBoolean;
|
|
1421
|
+
size: z.ZodNumber;
|
|
1422
|
+
}, "strip", z.ZodTypeAny, {
|
|
1423
|
+
bold: boolean;
|
|
1424
|
+
size: number;
|
|
1425
|
+
}, {
|
|
1426
|
+
bold: boolean;
|
|
1427
|
+
size: number;
|
|
1428
|
+
}>;
|
|
1429
|
+
links_style: z.ZodEnum<[
|
|
1430
|
+
"normal"
|
|
1431
|
+
]>;
|
|
1432
|
+
reference_text_size: z.ZodNumber;
|
|
1433
|
+
subtitle: z.ZodObject<{
|
|
1434
|
+
bold: z.ZodBoolean;
|
|
1435
|
+
size: z.ZodNumber;
|
|
1436
|
+
}, "strip", z.ZodTypeAny, {
|
|
1437
|
+
bold: boolean;
|
|
1438
|
+
size: number;
|
|
1439
|
+
}, {
|
|
1440
|
+
bold: boolean;
|
|
1441
|
+
size: number;
|
|
1442
|
+
}>;
|
|
1443
|
+
title: z.ZodObject<{
|
|
1444
|
+
bold: z.ZodBoolean;
|
|
1445
|
+
size: z.ZodNumber;
|
|
1446
|
+
}, "strip", z.ZodTypeAny, {
|
|
1447
|
+
bold: boolean;
|
|
1448
|
+
size: number;
|
|
1449
|
+
}, {
|
|
1450
|
+
bold: boolean;
|
|
1451
|
+
size: number;
|
|
1452
|
+
}>;
|
|
1212
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1454
|
+
title: {
|
|
1455
|
+
bold: boolean;
|
|
1456
|
+
size: number;
|
|
1457
|
+
};
|
|
1458
|
+
body_text: {
|
|
1459
|
+
bold: boolean;
|
|
1460
|
+
size: number;
|
|
1461
|
+
};
|
|
1462
|
+
buttons_text: {
|
|
1463
|
+
bold: boolean;
|
|
1464
|
+
size: number;
|
|
1465
|
+
};
|
|
1466
|
+
font_url: string;
|
|
1467
|
+
input_labels: {
|
|
1468
|
+
bold: boolean;
|
|
1469
|
+
size: number;
|
|
1470
|
+
};
|
|
1471
|
+
links: {
|
|
1472
|
+
bold: boolean;
|
|
1473
|
+
size: number;
|
|
1474
|
+
};
|
|
1475
|
+
links_style: "normal";
|
|
1476
|
+
reference_text_size: number;
|
|
1477
|
+
subtitle: {
|
|
1478
|
+
bold: boolean;
|
|
1479
|
+
size: number;
|
|
1480
|
+
};
|
|
1218
1481
|
}, {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1482
|
+
title: {
|
|
1483
|
+
bold: boolean;
|
|
1484
|
+
size: number;
|
|
1485
|
+
};
|
|
1486
|
+
body_text: {
|
|
1487
|
+
bold: boolean;
|
|
1488
|
+
size: number;
|
|
1489
|
+
};
|
|
1490
|
+
buttons_text: {
|
|
1491
|
+
bold: boolean;
|
|
1492
|
+
size: number;
|
|
1493
|
+
};
|
|
1494
|
+
font_url: string;
|
|
1495
|
+
input_labels: {
|
|
1496
|
+
bold: boolean;
|
|
1497
|
+
size: number;
|
|
1498
|
+
};
|
|
1499
|
+
links: {
|
|
1500
|
+
bold: boolean;
|
|
1501
|
+
size: number;
|
|
1502
|
+
};
|
|
1503
|
+
links_style: "normal";
|
|
1504
|
+
reference_text_size: number;
|
|
1505
|
+
subtitle: {
|
|
1506
|
+
bold: boolean;
|
|
1507
|
+
size: number;
|
|
1508
|
+
};
|
|
1509
|
+
}>;
|
|
1510
|
+
page_background: z.ZodObject<{
|
|
1511
|
+
background_color: z.ZodString;
|
|
1512
|
+
background_image_url: z.ZodString;
|
|
1513
|
+
page_layout: z.ZodEnum<[
|
|
1514
|
+
"center"
|
|
1515
|
+
]>;
|
|
1516
|
+
}, "strip", z.ZodTypeAny, {
|
|
1517
|
+
background_color: string;
|
|
1518
|
+
background_image_url: string;
|
|
1519
|
+
page_layout: "center";
|
|
1520
|
+
}, {
|
|
1521
|
+
background_color: string;
|
|
1522
|
+
background_image_url: string;
|
|
1523
|
+
page_layout: "center";
|
|
1524
|
+
}>;
|
|
1525
|
+
widget: z.ZodObject<{
|
|
1526
|
+
header_text_alignment: z.ZodEnum<[
|
|
1527
|
+
"center"
|
|
1528
|
+
]>;
|
|
1529
|
+
logo_height: z.ZodNumber;
|
|
1530
|
+
logo_position: z.ZodEnum<[
|
|
1531
|
+
"center"
|
|
1532
|
+
]>;
|
|
1533
|
+
logo_url: z.ZodString;
|
|
1534
|
+
social_buttons_layout: z.ZodEnum<[
|
|
1535
|
+
"bottom"
|
|
1536
|
+
]>;
|
|
1537
|
+
}, "strip", z.ZodTypeAny, {
|
|
1538
|
+
logo_url: string;
|
|
1539
|
+
header_text_alignment: "center";
|
|
1540
|
+
logo_height: number;
|
|
1541
|
+
logo_position: "center";
|
|
1542
|
+
social_buttons_layout: "bottom";
|
|
1543
|
+
}, {
|
|
1544
|
+
logo_url: string;
|
|
1545
|
+
header_text_alignment: "center";
|
|
1546
|
+
logo_height: number;
|
|
1547
|
+
logo_position: "center";
|
|
1548
|
+
social_buttons_layout: "bottom";
|
|
1549
|
+
}>;
|
|
1225
1550
|
}, "strip", z.ZodTypeAny, {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1551
|
+
page_background: {
|
|
1552
|
+
background_color: string;
|
|
1553
|
+
background_image_url: string;
|
|
1554
|
+
page_layout: "center";
|
|
1555
|
+
};
|
|
1556
|
+
colors: {
|
|
1557
|
+
base_focus_color: string;
|
|
1558
|
+
base_hover_color: string;
|
|
1559
|
+
body_text: string;
|
|
1560
|
+
captcha_widget_theme: "auto";
|
|
1561
|
+
error: string;
|
|
1562
|
+
header: string;
|
|
1563
|
+
icons: string;
|
|
1564
|
+
input_background: string;
|
|
1565
|
+
input_border: string;
|
|
1566
|
+
input_filled_text: string;
|
|
1567
|
+
input_labels_placeholders: string;
|
|
1568
|
+
links_focused_components: string;
|
|
1569
|
+
primary_button: string;
|
|
1570
|
+
primary_button_label: string;
|
|
1571
|
+
secondary_button_border: string;
|
|
1572
|
+
secondary_button_label: string;
|
|
1573
|
+
success: string;
|
|
1574
|
+
widget_background: string;
|
|
1575
|
+
widget_border: string;
|
|
1576
|
+
};
|
|
1577
|
+
borders: {
|
|
1578
|
+
button_border_radius: number;
|
|
1579
|
+
button_border_weight: number;
|
|
1580
|
+
buttons_style: "pill";
|
|
1581
|
+
input_border_radius: number;
|
|
1582
|
+
input_border_weight: number;
|
|
1583
|
+
inputs_style: "pill";
|
|
1584
|
+
show_widget_shadow: boolean;
|
|
1585
|
+
widget_border_weight: number;
|
|
1586
|
+
widget_corner_radius: number;
|
|
1587
|
+
};
|
|
1588
|
+
displayName: string;
|
|
1589
|
+
fonts: {
|
|
1590
|
+
title: {
|
|
1591
|
+
bold: boolean;
|
|
1592
|
+
size: number;
|
|
1593
|
+
};
|
|
1594
|
+
body_text: {
|
|
1595
|
+
bold: boolean;
|
|
1596
|
+
size: number;
|
|
1597
|
+
};
|
|
1598
|
+
buttons_text: {
|
|
1599
|
+
bold: boolean;
|
|
1600
|
+
size: number;
|
|
1601
|
+
};
|
|
1602
|
+
font_url: string;
|
|
1603
|
+
input_labels: {
|
|
1604
|
+
bold: boolean;
|
|
1605
|
+
size: number;
|
|
1606
|
+
};
|
|
1607
|
+
links: {
|
|
1608
|
+
bold: boolean;
|
|
1609
|
+
size: number;
|
|
1610
|
+
};
|
|
1611
|
+
links_style: "normal";
|
|
1612
|
+
reference_text_size: number;
|
|
1613
|
+
subtitle: {
|
|
1614
|
+
bold: boolean;
|
|
1615
|
+
size: number;
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
widget: {
|
|
1619
|
+
logo_url: string;
|
|
1620
|
+
header_text_alignment: "center";
|
|
1621
|
+
logo_height: number;
|
|
1622
|
+
logo_position: "center";
|
|
1623
|
+
social_buttons_layout: "bottom";
|
|
1624
|
+
};
|
|
1253
1625
|
}, {
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1626
|
+
page_background: {
|
|
1627
|
+
background_color: string;
|
|
1628
|
+
background_image_url: string;
|
|
1629
|
+
page_layout: "center";
|
|
1630
|
+
};
|
|
1631
|
+
colors: {
|
|
1632
|
+
base_focus_color: string;
|
|
1633
|
+
base_hover_color: string;
|
|
1634
|
+
body_text: string;
|
|
1635
|
+
captcha_widget_theme: "auto";
|
|
1636
|
+
error: string;
|
|
1637
|
+
header: string;
|
|
1638
|
+
icons: string;
|
|
1639
|
+
input_background: string;
|
|
1640
|
+
input_border: string;
|
|
1641
|
+
input_filled_text: string;
|
|
1642
|
+
input_labels_placeholders: string;
|
|
1643
|
+
links_focused_components: string;
|
|
1644
|
+
primary_button: string;
|
|
1645
|
+
primary_button_label: string;
|
|
1646
|
+
secondary_button_border: string;
|
|
1647
|
+
secondary_button_label: string;
|
|
1648
|
+
success: string;
|
|
1649
|
+
widget_background: string;
|
|
1650
|
+
widget_border: string;
|
|
1651
|
+
};
|
|
1652
|
+
borders: {
|
|
1653
|
+
button_border_radius: number;
|
|
1654
|
+
button_border_weight: number;
|
|
1655
|
+
buttons_style: "pill";
|
|
1656
|
+
input_border_radius: number;
|
|
1657
|
+
input_border_weight: number;
|
|
1658
|
+
inputs_style: "pill";
|
|
1659
|
+
show_widget_shadow: boolean;
|
|
1660
|
+
widget_border_weight: number;
|
|
1661
|
+
widget_corner_radius: number;
|
|
1662
|
+
};
|
|
1663
|
+
displayName: string;
|
|
1664
|
+
fonts: {
|
|
1665
|
+
title: {
|
|
1666
|
+
bold: boolean;
|
|
1667
|
+
size: number;
|
|
1668
|
+
};
|
|
1669
|
+
body_text: {
|
|
1670
|
+
bold: boolean;
|
|
1671
|
+
size: number;
|
|
1672
|
+
};
|
|
1673
|
+
buttons_text: {
|
|
1674
|
+
bold: boolean;
|
|
1675
|
+
size: number;
|
|
1676
|
+
};
|
|
1677
|
+
font_url: string;
|
|
1678
|
+
input_labels: {
|
|
1679
|
+
bold: boolean;
|
|
1680
|
+
size: number;
|
|
1681
|
+
};
|
|
1682
|
+
links: {
|
|
1683
|
+
bold: boolean;
|
|
1684
|
+
size: number;
|
|
1685
|
+
};
|
|
1686
|
+
links_style: "normal";
|
|
1687
|
+
reference_text_size: number;
|
|
1688
|
+
subtitle: {
|
|
1689
|
+
bold: boolean;
|
|
1690
|
+
size: number;
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1693
|
+
widget: {
|
|
1694
|
+
logo_url: string;
|
|
1695
|
+
header_text_alignment: "center";
|
|
1696
|
+
logo_height: number;
|
|
1697
|
+
logo_position: "center";
|
|
1698
|
+
social_buttons_layout: "bottom";
|
|
1699
|
+
};
|
|
1281
1700
|
}>;
|
|
1282
|
-
export type
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1701
|
+
export type ThemeInsert = z.infer<typeof themeInsertSchema>;
|
|
1702
|
+
declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1703
|
+
borders: z.ZodObject<{
|
|
1704
|
+
button_border_radius: z.ZodNumber;
|
|
1705
|
+
button_border_weight: z.ZodNumber;
|
|
1706
|
+
buttons_style: z.ZodEnum<[
|
|
1707
|
+
"pill"
|
|
1708
|
+
]>;
|
|
1709
|
+
input_border_radius: z.ZodNumber;
|
|
1710
|
+
input_border_weight: z.ZodNumber;
|
|
1711
|
+
inputs_style: z.ZodEnum<[
|
|
1712
|
+
"pill"
|
|
1713
|
+
]>;
|
|
1714
|
+
show_widget_shadow: z.ZodBoolean;
|
|
1715
|
+
widget_border_weight: z.ZodNumber;
|
|
1716
|
+
widget_corner_radius: z.ZodNumber;
|
|
1717
|
+
}, "strip", z.ZodTypeAny, {
|
|
1718
|
+
button_border_radius: number;
|
|
1719
|
+
button_border_weight: number;
|
|
1720
|
+
buttons_style: "pill";
|
|
1721
|
+
input_border_radius: number;
|
|
1722
|
+
input_border_weight: number;
|
|
1723
|
+
inputs_style: "pill";
|
|
1724
|
+
show_widget_shadow: boolean;
|
|
1725
|
+
widget_border_weight: number;
|
|
1726
|
+
widget_corner_radius: number;
|
|
1727
|
+
}, {
|
|
1728
|
+
button_border_radius: number;
|
|
1729
|
+
button_border_weight: number;
|
|
1730
|
+
buttons_style: "pill";
|
|
1731
|
+
input_border_radius: number;
|
|
1732
|
+
input_border_weight: number;
|
|
1733
|
+
inputs_style: "pill";
|
|
1734
|
+
show_widget_shadow: boolean;
|
|
1735
|
+
widget_border_weight: number;
|
|
1736
|
+
widget_corner_radius: number;
|
|
1737
|
+
}>;
|
|
1738
|
+
colors: z.ZodObject<{
|
|
1739
|
+
base_focus_color: z.ZodString;
|
|
1740
|
+
base_hover_color: z.ZodString;
|
|
1741
|
+
body_text: z.ZodString;
|
|
1742
|
+
captcha_widget_theme: z.ZodEnum<[
|
|
1743
|
+
"auto"
|
|
1744
|
+
]>;
|
|
1745
|
+
error: z.ZodString;
|
|
1746
|
+
header: z.ZodString;
|
|
1747
|
+
icons: z.ZodString;
|
|
1748
|
+
input_background: z.ZodString;
|
|
1749
|
+
input_border: z.ZodString;
|
|
1750
|
+
input_filled_text: z.ZodString;
|
|
1751
|
+
input_labels_placeholders: z.ZodString;
|
|
1752
|
+
links_focused_components: z.ZodString;
|
|
1753
|
+
primary_button: z.ZodString;
|
|
1754
|
+
primary_button_label: z.ZodString;
|
|
1755
|
+
secondary_button_border: z.ZodString;
|
|
1756
|
+
secondary_button_label: z.ZodString;
|
|
1757
|
+
success: z.ZodString;
|
|
1758
|
+
widget_background: z.ZodString;
|
|
1759
|
+
widget_border: z.ZodString;
|
|
1760
|
+
}, "strip", z.ZodTypeAny, {
|
|
1761
|
+
base_focus_color: string;
|
|
1762
|
+
base_hover_color: string;
|
|
1763
|
+
body_text: string;
|
|
1764
|
+
captcha_widget_theme: "auto";
|
|
1765
|
+
error: string;
|
|
1766
|
+
header: string;
|
|
1767
|
+
icons: string;
|
|
1768
|
+
input_background: string;
|
|
1769
|
+
input_border: string;
|
|
1770
|
+
input_filled_text: string;
|
|
1771
|
+
input_labels_placeholders: string;
|
|
1772
|
+
links_focused_components: string;
|
|
1773
|
+
primary_button: string;
|
|
1774
|
+
primary_button_label: string;
|
|
1775
|
+
secondary_button_border: string;
|
|
1776
|
+
secondary_button_label: string;
|
|
1777
|
+
success: string;
|
|
1778
|
+
widget_background: string;
|
|
1779
|
+
widget_border: string;
|
|
1780
|
+
}, {
|
|
1781
|
+
base_focus_color: string;
|
|
1782
|
+
base_hover_color: string;
|
|
1783
|
+
body_text: string;
|
|
1784
|
+
captcha_widget_theme: "auto";
|
|
1785
|
+
error: string;
|
|
1786
|
+
header: string;
|
|
1787
|
+
icons: string;
|
|
1788
|
+
input_background: string;
|
|
1789
|
+
input_border: string;
|
|
1790
|
+
input_filled_text: string;
|
|
1791
|
+
input_labels_placeholders: string;
|
|
1792
|
+
links_focused_components: string;
|
|
1793
|
+
primary_button: string;
|
|
1794
|
+
primary_button_label: string;
|
|
1795
|
+
secondary_button_border: string;
|
|
1796
|
+
secondary_button_label: string;
|
|
1797
|
+
success: string;
|
|
1798
|
+
widget_background: string;
|
|
1799
|
+
widget_border: string;
|
|
1800
|
+
}>;
|
|
1801
|
+
displayName: z.ZodString;
|
|
1802
|
+
fonts: z.ZodObject<{
|
|
1803
|
+
body_text: z.ZodObject<{
|
|
1804
|
+
bold: z.ZodBoolean;
|
|
1805
|
+
size: z.ZodNumber;
|
|
1806
|
+
}, "strip", z.ZodTypeAny, {
|
|
1807
|
+
bold: boolean;
|
|
1808
|
+
size: number;
|
|
1809
|
+
}, {
|
|
1810
|
+
bold: boolean;
|
|
1811
|
+
size: number;
|
|
1812
|
+
}>;
|
|
1813
|
+
buttons_text: z.ZodObject<{
|
|
1814
|
+
bold: z.ZodBoolean;
|
|
1815
|
+
size: z.ZodNumber;
|
|
1816
|
+
}, "strip", z.ZodTypeAny, {
|
|
1817
|
+
bold: boolean;
|
|
1818
|
+
size: number;
|
|
1819
|
+
}, {
|
|
1820
|
+
bold: boolean;
|
|
1821
|
+
size: number;
|
|
1822
|
+
}>;
|
|
1823
|
+
font_url: z.ZodString;
|
|
1824
|
+
input_labels: z.ZodObject<{
|
|
1825
|
+
bold: z.ZodBoolean;
|
|
1826
|
+
size: z.ZodNumber;
|
|
1827
|
+
}, "strip", z.ZodTypeAny, {
|
|
1828
|
+
bold: boolean;
|
|
1829
|
+
size: number;
|
|
1830
|
+
}, {
|
|
1831
|
+
bold: boolean;
|
|
1832
|
+
size: number;
|
|
1833
|
+
}>;
|
|
1834
|
+
links: z.ZodObject<{
|
|
1835
|
+
bold: z.ZodBoolean;
|
|
1836
|
+
size: z.ZodNumber;
|
|
1837
|
+
}, "strip", z.ZodTypeAny, {
|
|
1838
|
+
bold: boolean;
|
|
1839
|
+
size: number;
|
|
1840
|
+
}, {
|
|
1841
|
+
bold: boolean;
|
|
1842
|
+
size: number;
|
|
1843
|
+
}>;
|
|
1844
|
+
links_style: z.ZodEnum<[
|
|
1845
|
+
"normal"
|
|
1846
|
+
]>;
|
|
1847
|
+
reference_text_size: z.ZodNumber;
|
|
1848
|
+
subtitle: z.ZodObject<{
|
|
1849
|
+
bold: z.ZodBoolean;
|
|
1850
|
+
size: z.ZodNumber;
|
|
1851
|
+
}, "strip", z.ZodTypeAny, {
|
|
1852
|
+
bold: boolean;
|
|
1853
|
+
size: number;
|
|
1854
|
+
}, {
|
|
1855
|
+
bold: boolean;
|
|
1856
|
+
size: number;
|
|
1857
|
+
}>;
|
|
1858
|
+
title: z.ZodObject<{
|
|
1859
|
+
bold: z.ZodBoolean;
|
|
1860
|
+
size: z.ZodNumber;
|
|
1861
|
+
}, "strip", z.ZodTypeAny, {
|
|
1862
|
+
bold: boolean;
|
|
1863
|
+
size: number;
|
|
1864
|
+
}, {
|
|
1865
|
+
bold: boolean;
|
|
1866
|
+
size: number;
|
|
1867
|
+
}>;
|
|
1868
|
+
}, "strip", z.ZodTypeAny, {
|
|
1869
|
+
title: {
|
|
1870
|
+
bold: boolean;
|
|
1871
|
+
size: number;
|
|
1872
|
+
};
|
|
1873
|
+
body_text: {
|
|
1874
|
+
bold: boolean;
|
|
1875
|
+
size: number;
|
|
1876
|
+
};
|
|
1877
|
+
buttons_text: {
|
|
1878
|
+
bold: boolean;
|
|
1879
|
+
size: number;
|
|
1880
|
+
};
|
|
1881
|
+
font_url: string;
|
|
1882
|
+
input_labels: {
|
|
1883
|
+
bold: boolean;
|
|
1884
|
+
size: number;
|
|
1885
|
+
};
|
|
1886
|
+
links: {
|
|
1887
|
+
bold: boolean;
|
|
1888
|
+
size: number;
|
|
1889
|
+
};
|
|
1890
|
+
links_style: "normal";
|
|
1891
|
+
reference_text_size: number;
|
|
1892
|
+
subtitle: {
|
|
1893
|
+
bold: boolean;
|
|
1894
|
+
size: number;
|
|
1895
|
+
};
|
|
1896
|
+
}, {
|
|
1897
|
+
title: {
|
|
1898
|
+
bold: boolean;
|
|
1899
|
+
size: number;
|
|
1900
|
+
};
|
|
1901
|
+
body_text: {
|
|
1902
|
+
bold: boolean;
|
|
1903
|
+
size: number;
|
|
1904
|
+
};
|
|
1905
|
+
buttons_text: {
|
|
1906
|
+
bold: boolean;
|
|
1907
|
+
size: number;
|
|
1908
|
+
};
|
|
1909
|
+
font_url: string;
|
|
1910
|
+
input_labels: {
|
|
1911
|
+
bold: boolean;
|
|
1912
|
+
size: number;
|
|
1913
|
+
};
|
|
1914
|
+
links: {
|
|
1915
|
+
bold: boolean;
|
|
1916
|
+
size: number;
|
|
1917
|
+
};
|
|
1918
|
+
links_style: "normal";
|
|
1919
|
+
reference_text_size: number;
|
|
1920
|
+
subtitle: {
|
|
1921
|
+
bold: boolean;
|
|
1922
|
+
size: number;
|
|
1923
|
+
};
|
|
1924
|
+
}>;
|
|
1925
|
+
page_background: z.ZodObject<{
|
|
1926
|
+
background_color: z.ZodString;
|
|
1927
|
+
background_image_url: z.ZodString;
|
|
1928
|
+
page_layout: z.ZodEnum<[
|
|
1929
|
+
"center"
|
|
1930
|
+
]>;
|
|
1931
|
+
}, "strip", z.ZodTypeAny, {
|
|
1932
|
+
background_color: string;
|
|
1933
|
+
background_image_url: string;
|
|
1934
|
+
page_layout: "center";
|
|
1935
|
+
}, {
|
|
1936
|
+
background_color: string;
|
|
1937
|
+
background_image_url: string;
|
|
1938
|
+
page_layout: "center";
|
|
1939
|
+
}>;
|
|
1940
|
+
widget: z.ZodObject<{
|
|
1941
|
+
header_text_alignment: z.ZodEnum<[
|
|
1942
|
+
"center"
|
|
1943
|
+
]>;
|
|
1944
|
+
logo_height: z.ZodNumber;
|
|
1945
|
+
logo_position: z.ZodEnum<[
|
|
1946
|
+
"center"
|
|
1947
|
+
]>;
|
|
1948
|
+
logo_url: z.ZodString;
|
|
1949
|
+
social_buttons_layout: z.ZodEnum<[
|
|
1950
|
+
"bottom"
|
|
1951
|
+
]>;
|
|
1952
|
+
}, "strip", z.ZodTypeAny, {
|
|
1953
|
+
logo_url: string;
|
|
1954
|
+
header_text_alignment: "center";
|
|
1955
|
+
logo_height: number;
|
|
1956
|
+
logo_position: "center";
|
|
1957
|
+
social_buttons_layout: "bottom";
|
|
1958
|
+
}, {
|
|
1959
|
+
logo_url: string;
|
|
1960
|
+
header_text_alignment: "center";
|
|
1961
|
+
logo_height: number;
|
|
1962
|
+
logo_position: "center";
|
|
1963
|
+
social_buttons_layout: "bottom";
|
|
1964
|
+
}>;
|
|
1965
|
+
}, {
|
|
1966
|
+
themeId: z.ZodString;
|
|
1967
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1968
|
+
page_background: {
|
|
1969
|
+
background_color: string;
|
|
1970
|
+
background_image_url: string;
|
|
1971
|
+
page_layout: "center";
|
|
1972
|
+
};
|
|
1973
|
+
colors: {
|
|
1974
|
+
base_focus_color: string;
|
|
1975
|
+
base_hover_color: string;
|
|
1976
|
+
body_text: string;
|
|
1977
|
+
captcha_widget_theme: "auto";
|
|
1978
|
+
error: string;
|
|
1979
|
+
header: string;
|
|
1980
|
+
icons: string;
|
|
1981
|
+
input_background: string;
|
|
1982
|
+
input_border: string;
|
|
1983
|
+
input_filled_text: string;
|
|
1984
|
+
input_labels_placeholders: string;
|
|
1985
|
+
links_focused_components: string;
|
|
1986
|
+
primary_button: string;
|
|
1987
|
+
primary_button_label: string;
|
|
1988
|
+
secondary_button_border: string;
|
|
1989
|
+
secondary_button_label: string;
|
|
1990
|
+
success: string;
|
|
1991
|
+
widget_background: string;
|
|
1992
|
+
widget_border: string;
|
|
1993
|
+
};
|
|
1994
|
+
borders: {
|
|
1995
|
+
button_border_radius: number;
|
|
1996
|
+
button_border_weight: number;
|
|
1997
|
+
buttons_style: "pill";
|
|
1998
|
+
input_border_radius: number;
|
|
1999
|
+
input_border_weight: number;
|
|
2000
|
+
inputs_style: "pill";
|
|
2001
|
+
show_widget_shadow: boolean;
|
|
2002
|
+
widget_border_weight: number;
|
|
2003
|
+
widget_corner_radius: number;
|
|
2004
|
+
};
|
|
2005
|
+
displayName: string;
|
|
2006
|
+
fonts: {
|
|
2007
|
+
title: {
|
|
2008
|
+
bold: boolean;
|
|
2009
|
+
size: number;
|
|
2010
|
+
};
|
|
2011
|
+
body_text: {
|
|
2012
|
+
bold: boolean;
|
|
2013
|
+
size: number;
|
|
2014
|
+
};
|
|
2015
|
+
buttons_text: {
|
|
2016
|
+
bold: boolean;
|
|
2017
|
+
size: number;
|
|
2018
|
+
};
|
|
2019
|
+
font_url: string;
|
|
2020
|
+
input_labels: {
|
|
2021
|
+
bold: boolean;
|
|
2022
|
+
size: number;
|
|
2023
|
+
};
|
|
2024
|
+
links: {
|
|
2025
|
+
bold: boolean;
|
|
2026
|
+
size: number;
|
|
2027
|
+
};
|
|
2028
|
+
links_style: "normal";
|
|
2029
|
+
reference_text_size: number;
|
|
2030
|
+
subtitle: {
|
|
2031
|
+
bold: boolean;
|
|
2032
|
+
size: number;
|
|
2033
|
+
};
|
|
2034
|
+
};
|
|
2035
|
+
widget: {
|
|
2036
|
+
logo_url: string;
|
|
2037
|
+
header_text_alignment: "center";
|
|
2038
|
+
logo_height: number;
|
|
2039
|
+
logo_position: "center";
|
|
2040
|
+
social_buttons_layout: "bottom";
|
|
2041
|
+
};
|
|
2042
|
+
themeId: string;
|
|
2043
|
+
}, {
|
|
2044
|
+
page_background: {
|
|
2045
|
+
background_color: string;
|
|
2046
|
+
background_image_url: string;
|
|
2047
|
+
page_layout: "center";
|
|
2048
|
+
};
|
|
2049
|
+
colors: {
|
|
2050
|
+
base_focus_color: string;
|
|
2051
|
+
base_hover_color: string;
|
|
2052
|
+
body_text: string;
|
|
2053
|
+
captcha_widget_theme: "auto";
|
|
2054
|
+
error: string;
|
|
2055
|
+
header: string;
|
|
2056
|
+
icons: string;
|
|
2057
|
+
input_background: string;
|
|
2058
|
+
input_border: string;
|
|
2059
|
+
input_filled_text: string;
|
|
2060
|
+
input_labels_placeholders: string;
|
|
2061
|
+
links_focused_components: string;
|
|
2062
|
+
primary_button: string;
|
|
2063
|
+
primary_button_label: string;
|
|
2064
|
+
secondary_button_border: string;
|
|
2065
|
+
secondary_button_label: string;
|
|
2066
|
+
success: string;
|
|
2067
|
+
widget_background: string;
|
|
2068
|
+
widget_border: string;
|
|
2069
|
+
};
|
|
2070
|
+
borders: {
|
|
2071
|
+
button_border_radius: number;
|
|
2072
|
+
button_border_weight: number;
|
|
2073
|
+
buttons_style: "pill";
|
|
2074
|
+
input_border_radius: number;
|
|
2075
|
+
input_border_weight: number;
|
|
2076
|
+
inputs_style: "pill";
|
|
2077
|
+
show_widget_shadow: boolean;
|
|
2078
|
+
widget_border_weight: number;
|
|
2079
|
+
widget_corner_radius: number;
|
|
2080
|
+
};
|
|
2081
|
+
displayName: string;
|
|
2082
|
+
fonts: {
|
|
2083
|
+
title: {
|
|
2084
|
+
bold: boolean;
|
|
2085
|
+
size: number;
|
|
2086
|
+
};
|
|
2087
|
+
body_text: {
|
|
2088
|
+
bold: boolean;
|
|
2089
|
+
size: number;
|
|
2090
|
+
};
|
|
2091
|
+
buttons_text: {
|
|
2092
|
+
bold: boolean;
|
|
2093
|
+
size: number;
|
|
2094
|
+
};
|
|
2095
|
+
font_url: string;
|
|
2096
|
+
input_labels: {
|
|
2097
|
+
bold: boolean;
|
|
2098
|
+
size: number;
|
|
2099
|
+
};
|
|
2100
|
+
links: {
|
|
2101
|
+
bold: boolean;
|
|
2102
|
+
size: number;
|
|
2103
|
+
};
|
|
2104
|
+
links_style: "normal";
|
|
2105
|
+
reference_text_size: number;
|
|
2106
|
+
subtitle: {
|
|
2107
|
+
bold: boolean;
|
|
2108
|
+
size: number;
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2111
|
+
widget: {
|
|
2112
|
+
logo_url: string;
|
|
2113
|
+
header_text_alignment: "center";
|
|
2114
|
+
logo_height: number;
|
|
2115
|
+
logo_position: "center";
|
|
2116
|
+
social_buttons_layout: "bottom";
|
|
2117
|
+
};
|
|
2118
|
+
themeId: string;
|
|
2119
|
+
}>;
|
|
2120
|
+
export type Theme = z.infer<typeof themeSchema>;
|
|
1287
2121
|
export interface CodesAdapter {
|
|
1288
2122
|
create: (tenant_id: string, authCode: Code) => Promise<void>;
|
|
1289
2123
|
list: (tenant_id: string, user_id: string) => Promise<Code[]>;
|
|
@@ -1426,6 +2260,12 @@ export interface HooksAdapter {
|
|
|
1426
2260
|
update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
|
|
1427
2261
|
list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
|
|
1428
2262
|
}
|
|
2263
|
+
export interface ThemesAdapter {
|
|
2264
|
+
create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
|
|
2265
|
+
remove: (tenant_id: string, themeId: string) => Promise<boolean>;
|
|
2266
|
+
get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
|
|
2267
|
+
update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
|
|
2268
|
+
}
|
|
1429
2269
|
export interface SqlAuthenticationCode {
|
|
1430
2270
|
code: string;
|
|
1431
2271
|
tenant_id: string;
|
|
@@ -1471,13 +2311,6 @@ export interface SqlOTP {
|
|
|
1471
2311
|
used_at?: string;
|
|
1472
2312
|
user_id?: string;
|
|
1473
2313
|
}
|
|
1474
|
-
export interface SqlPassword {
|
|
1475
|
-
tenant_id: string;
|
|
1476
|
-
user_id: string;
|
|
1477
|
-
password: string;
|
|
1478
|
-
created_at: string;
|
|
1479
|
-
updated_at: string;
|
|
1480
|
-
}
|
|
1481
2314
|
export interface SqlTicket {
|
|
1482
2315
|
id: string;
|
|
1483
2316
|
tenant_id: string;
|
|
@@ -1537,24 +2370,28 @@ export interface SqlLog {
|
|
|
1537
2370
|
hostname?: string;
|
|
1538
2371
|
session_connection?: string;
|
|
1539
2372
|
}
|
|
1540
|
-
|
|
1541
|
-
tenant_id:
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
2373
|
+
declare const sqlThemeSchema: z.ZodObject<z.objectUtil.extendShape<any, {
|
|
2374
|
+
tenant_id: z.ZodString;
|
|
2375
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2376
|
+
[x: string]: any;
|
|
2377
|
+
tenant_id?: unknown;
|
|
2378
|
+
}, {
|
|
2379
|
+
[x: string]: any;
|
|
2380
|
+
tenant_id?: unknown;
|
|
2381
|
+
}>;
|
|
2382
|
+
export type SqlTheme = z.infer<typeof sqlThemeSchema>;
|
|
1550
2383
|
export interface Database {
|
|
1551
|
-
|
|
1552
|
-
branding: SqlBranding & {
|
|
2384
|
+
applications: Application & {
|
|
1553
2385
|
tenant_id: string;
|
|
1554
2386
|
};
|
|
2387
|
+
authentication_codes: SqlAuthenticationCode;
|
|
2388
|
+
branding: SqlBranding;
|
|
1555
2389
|
codes: Code & {
|
|
1556
2390
|
tenant_id: string;
|
|
1557
2391
|
};
|
|
2392
|
+
connections: Connection & {
|
|
2393
|
+
tenant_id: string;
|
|
2394
|
+
};
|
|
1558
2395
|
domains: Domain & {
|
|
1559
2396
|
tenant_id: string;
|
|
1560
2397
|
};
|
|
@@ -1562,20 +2399,19 @@ export interface Database {
|
|
|
1562
2399
|
tenant_id: string;
|
|
1563
2400
|
};
|
|
1564
2401
|
keys: Certificate;
|
|
1565
|
-
|
|
1566
|
-
|
|
2402
|
+
logs: SqlLog;
|
|
2403
|
+
otps: SqlOTP;
|
|
2404
|
+
passwords: Password & {
|
|
1567
2405
|
tenant_id: string;
|
|
1568
2406
|
};
|
|
1569
|
-
|
|
2407
|
+
users: SqlUser;
|
|
2408
|
+
sessions: Session & {
|
|
1570
2409
|
tenant_id: string;
|
|
1571
2410
|
};
|
|
1572
|
-
otps: SqlOTP;
|
|
1573
|
-
passwords: SqlPassword;
|
|
1574
|
-
sessions: SqlSession;
|
|
1575
2411
|
tenants: Tenant;
|
|
2412
|
+
themes: SqlTheme;
|
|
1576
2413
|
tickets: SqlTicket;
|
|
1577
2414
|
universal_login_sessions: SqlUniversalLoginSession;
|
|
1578
|
-
logs: SqlLog;
|
|
1579
2415
|
}
|
|
1580
2416
|
declare function createAdapters(db: Kysely<Database>): {
|
|
1581
2417
|
applications: ApplicationsAdapter;
|
|
@@ -1630,19 +2466,20 @@ declare function createAdapters(db: Kysely<Database>): {
|
|
|
1630
2466
|
}[];
|
|
1631
2467
|
} | null>;
|
|
1632
2468
|
};
|
|
2469
|
+
codes: CodesAdapter;
|
|
2470
|
+
connections: ConnectionsAdapter;
|
|
2471
|
+
domains: DomainsAdapter;
|
|
2472
|
+
hooks: HooksAdapter;
|
|
1633
2473
|
keys: KeysAdapter;
|
|
2474
|
+
logs: LogsDataAdapter;
|
|
2475
|
+
OTP: OTPAdapter;
|
|
2476
|
+
passwords: PasswordsAdapter;
|
|
1634
2477
|
users: UserDataAdapter;
|
|
1635
2478
|
sessions: SessionsAdapter;
|
|
1636
2479
|
tenants: TenantsDataAdapter;
|
|
2480
|
+
themes: ThemesAdapter;
|
|
1637
2481
|
tickets: TicketsAdapter;
|
|
1638
2482
|
universalLoginSessions: UniversalLoginSessionsAdapter;
|
|
1639
|
-
OTP: OTPAdapter;
|
|
1640
|
-
logs: LogsDataAdapter;
|
|
1641
|
-
passwords: PasswordsAdapter;
|
|
1642
|
-
codes: CodesAdapter;
|
|
1643
|
-
connections: ConnectionsAdapter;
|
|
1644
|
-
domains: DomainsAdapter;
|
|
1645
|
-
hooks: HooksAdapter;
|
|
1646
2483
|
};
|
|
1647
2484
|
|
|
1648
2485
|
export {
|