@36node/auth-sdk 1.1.1 → 1.2.0-pr-12-9569deef24
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/main.js +338 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +339 -2
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +506 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -114,6 +114,46 @@ export const $User: {
|
|
|
114
114
|
readonly type: "string";
|
|
115
115
|
readonly description: "用户名";
|
|
116
116
|
};
|
|
117
|
+
readonly employeeId: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly description: "员工编号";
|
|
120
|
+
};
|
|
121
|
+
readonly permissions: {
|
|
122
|
+
readonly description: "权限";
|
|
123
|
+
readonly type: "array";
|
|
124
|
+
readonly items: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly groups: {
|
|
129
|
+
readonly description: "团队";
|
|
130
|
+
readonly type: "array";
|
|
131
|
+
readonly items: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly lastLoginAt: {
|
|
136
|
+
readonly format: "date-time";
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly description: "最后登录时间";
|
|
139
|
+
};
|
|
140
|
+
readonly active: {
|
|
141
|
+
readonly type: "boolean";
|
|
142
|
+
readonly description: "是否启用";
|
|
143
|
+
};
|
|
144
|
+
readonly inviteCode: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
readonly description: "邀请码";
|
|
147
|
+
};
|
|
148
|
+
readonly status: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly description: "状态";
|
|
151
|
+
};
|
|
152
|
+
readonly expireAt: {
|
|
153
|
+
readonly format: "date-time";
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly description: "过期时间";
|
|
156
|
+
};
|
|
117
157
|
readonly id: {
|
|
118
158
|
readonly type: "string";
|
|
119
159
|
readonly description: "Entity id";
|
|
@@ -420,6 +460,41 @@ export const $CreateUserDto: {
|
|
|
420
460
|
readonly type: "string";
|
|
421
461
|
readonly description: "用户名";
|
|
422
462
|
};
|
|
463
|
+
readonly employeeId: {
|
|
464
|
+
readonly type: "string";
|
|
465
|
+
readonly description: "员工编号";
|
|
466
|
+
};
|
|
467
|
+
readonly permissions: {
|
|
468
|
+
readonly description: "权限";
|
|
469
|
+
readonly type: "array";
|
|
470
|
+
readonly items: {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
readonly groups: {
|
|
475
|
+
readonly description: "团队";
|
|
476
|
+
readonly type: "array";
|
|
477
|
+
readonly items: {
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly active: {
|
|
482
|
+
readonly type: "boolean";
|
|
483
|
+
readonly description: "是否启用";
|
|
484
|
+
};
|
|
485
|
+
readonly inviteCode: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly description: "邀请码";
|
|
488
|
+
};
|
|
489
|
+
readonly status: {
|
|
490
|
+
readonly type: "string";
|
|
491
|
+
readonly description: "状态";
|
|
492
|
+
};
|
|
493
|
+
readonly expireAt: {
|
|
494
|
+
readonly format: "date-time";
|
|
495
|
+
readonly type: "string";
|
|
496
|
+
readonly description: "过期时间";
|
|
497
|
+
};
|
|
423
498
|
};
|
|
424
499
|
};
|
|
425
500
|
export const $UpdateUserDto: {
|
|
@@ -510,6 +585,46 @@ export const $UpdateUserDto: {
|
|
|
510
585
|
readonly type: "string";
|
|
511
586
|
readonly description: "用户名";
|
|
512
587
|
};
|
|
588
|
+
readonly employeeId: {
|
|
589
|
+
readonly type: "string";
|
|
590
|
+
readonly description: "员工编号";
|
|
591
|
+
};
|
|
592
|
+
readonly permissions: {
|
|
593
|
+
readonly description: "权限";
|
|
594
|
+
readonly type: "array";
|
|
595
|
+
readonly items: {
|
|
596
|
+
readonly type: "string";
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
readonly groups: {
|
|
600
|
+
readonly description: "团队";
|
|
601
|
+
readonly type: "array";
|
|
602
|
+
readonly items: {
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
readonly lastLoginAt: {
|
|
607
|
+
readonly format: "date-time";
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
readonly description: "最后登录时间";
|
|
610
|
+
};
|
|
611
|
+
readonly active: {
|
|
612
|
+
readonly type: "boolean";
|
|
613
|
+
readonly description: "是否启用";
|
|
614
|
+
};
|
|
615
|
+
readonly inviteCode: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly description: "邀请码";
|
|
618
|
+
};
|
|
619
|
+
readonly status: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly description: "状态";
|
|
622
|
+
};
|
|
623
|
+
readonly expireAt: {
|
|
624
|
+
readonly format: "date-time";
|
|
625
|
+
readonly type: "string";
|
|
626
|
+
readonly description: "过期时间";
|
|
627
|
+
};
|
|
513
628
|
};
|
|
514
629
|
};
|
|
515
630
|
export const $ResetPasswordDto: {
|
|
@@ -565,6 +680,29 @@ export const $CreateNamespaceDto: {
|
|
|
565
680
|
readonly type: "string";
|
|
566
681
|
readonly description: "所属的 namespace";
|
|
567
682
|
};
|
|
683
|
+
readonly permissions: {
|
|
684
|
+
readonly description: "权限";
|
|
685
|
+
readonly type: "array";
|
|
686
|
+
readonly items: {
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
readonly active: {
|
|
691
|
+
readonly type: "boolean";
|
|
692
|
+
readonly description: "是否启用";
|
|
693
|
+
};
|
|
694
|
+
readonly defaultPassword: {
|
|
695
|
+
readonly type: "string";
|
|
696
|
+
readonly description: "默认密码";
|
|
697
|
+
};
|
|
698
|
+
readonly exportable: {
|
|
699
|
+
readonly type: "boolean";
|
|
700
|
+
readonly description: "是否可导出";
|
|
701
|
+
};
|
|
702
|
+
readonly userCount: {
|
|
703
|
+
readonly type: "number";
|
|
704
|
+
readonly description: "人数";
|
|
705
|
+
};
|
|
568
706
|
};
|
|
569
707
|
readonly required: readonly ["name", "key"];
|
|
570
708
|
};
|
|
@@ -598,6 +736,29 @@ export const $Namespace: {
|
|
|
598
736
|
readonly type: "string";
|
|
599
737
|
readonly description: "所属的 namespace";
|
|
600
738
|
};
|
|
739
|
+
readonly permissions: {
|
|
740
|
+
readonly description: "权限";
|
|
741
|
+
readonly type: "array";
|
|
742
|
+
readonly items: {
|
|
743
|
+
readonly type: "string";
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
readonly active: {
|
|
747
|
+
readonly type: "boolean";
|
|
748
|
+
readonly description: "是否启用";
|
|
749
|
+
};
|
|
750
|
+
readonly defaultPassword: {
|
|
751
|
+
readonly type: "string";
|
|
752
|
+
readonly description: "默认密码";
|
|
753
|
+
};
|
|
754
|
+
readonly exportable: {
|
|
755
|
+
readonly type: "boolean";
|
|
756
|
+
readonly description: "是否可导出";
|
|
757
|
+
};
|
|
758
|
+
readonly userCount: {
|
|
759
|
+
readonly type: "number";
|
|
760
|
+
readonly description: "人数";
|
|
761
|
+
};
|
|
601
762
|
readonly id: {
|
|
602
763
|
readonly type: "string";
|
|
603
764
|
readonly description: "Entity id";
|
|
@@ -645,6 +806,29 @@ export const $UpdateNamespaceDto: {
|
|
|
645
806
|
readonly type: "string";
|
|
646
807
|
readonly description: "名称";
|
|
647
808
|
};
|
|
809
|
+
readonly permissions: {
|
|
810
|
+
readonly description: "权限";
|
|
811
|
+
readonly type: "array";
|
|
812
|
+
readonly items: {
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
readonly active: {
|
|
817
|
+
readonly type: "boolean";
|
|
818
|
+
readonly description: "是否启用";
|
|
819
|
+
};
|
|
820
|
+
readonly defaultPassword: {
|
|
821
|
+
readonly type: "string";
|
|
822
|
+
readonly description: "默认密码";
|
|
823
|
+
};
|
|
824
|
+
readonly exportable: {
|
|
825
|
+
readonly type: "boolean";
|
|
826
|
+
readonly description: "是否可导出";
|
|
827
|
+
};
|
|
828
|
+
readonly userCount: {
|
|
829
|
+
readonly type: "number";
|
|
830
|
+
readonly description: "人数";
|
|
831
|
+
};
|
|
648
832
|
};
|
|
649
833
|
};
|
|
650
834
|
export const $CreateSessionDto: {
|
|
@@ -743,6 +927,102 @@ export const $UpdateSessionDto: {
|
|
|
743
927
|
};
|
|
744
928
|
};
|
|
745
929
|
};
|
|
930
|
+
export const $CreateGroupDto: {
|
|
931
|
+
readonly type: "object";
|
|
932
|
+
readonly properties: {
|
|
933
|
+
readonly name: {
|
|
934
|
+
readonly type: "string";
|
|
935
|
+
readonly description: "名称";
|
|
936
|
+
};
|
|
937
|
+
readonly permissions: {
|
|
938
|
+
readonly description: "权限";
|
|
939
|
+
readonly type: "array";
|
|
940
|
+
readonly items: {
|
|
941
|
+
readonly type: "string";
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
readonly active: {
|
|
945
|
+
readonly type: "boolean";
|
|
946
|
+
readonly description: "是否启用";
|
|
947
|
+
};
|
|
948
|
+
readonly userCount: {
|
|
949
|
+
readonly type: "number";
|
|
950
|
+
readonly description: "人数";
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
readonly required: readonly ["name"];
|
|
954
|
+
};
|
|
955
|
+
export const $Group: {
|
|
956
|
+
readonly type: "object";
|
|
957
|
+
readonly properties: {
|
|
958
|
+
readonly name: {
|
|
959
|
+
readonly type: "string";
|
|
960
|
+
readonly description: "名称";
|
|
961
|
+
};
|
|
962
|
+
readonly permissions: {
|
|
963
|
+
readonly description: "权限";
|
|
964
|
+
readonly type: "array";
|
|
965
|
+
readonly items: {
|
|
966
|
+
readonly type: "string";
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
readonly active: {
|
|
970
|
+
readonly type: "boolean";
|
|
971
|
+
readonly description: "是否启用";
|
|
972
|
+
};
|
|
973
|
+
readonly userCount: {
|
|
974
|
+
readonly type: "number";
|
|
975
|
+
readonly description: "人数";
|
|
976
|
+
};
|
|
977
|
+
readonly id: {
|
|
978
|
+
readonly type: "string";
|
|
979
|
+
readonly description: "Entity id";
|
|
980
|
+
};
|
|
981
|
+
readonly createdAt: {
|
|
982
|
+
readonly format: "date-time";
|
|
983
|
+
readonly type: "string";
|
|
984
|
+
readonly description: "Entity created at when";
|
|
985
|
+
};
|
|
986
|
+
readonly updatedAt: {
|
|
987
|
+
readonly format: "date-time";
|
|
988
|
+
readonly type: "string";
|
|
989
|
+
readonly description: "Entity updated at when";
|
|
990
|
+
};
|
|
991
|
+
readonly createdBy: {
|
|
992
|
+
readonly type: "string";
|
|
993
|
+
readonly description: "Entity created by who";
|
|
994
|
+
};
|
|
995
|
+
readonly updatedBy: {
|
|
996
|
+
readonly type: "string";
|
|
997
|
+
readonly description: "Entity updated by who";
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
readonly required: readonly ["name", "id"];
|
|
1001
|
+
};
|
|
1002
|
+
export const $UpdateGroupDto: {
|
|
1003
|
+
readonly type: "object";
|
|
1004
|
+
readonly properties: {
|
|
1005
|
+
readonly name: {
|
|
1006
|
+
readonly type: "string";
|
|
1007
|
+
readonly description: "名称";
|
|
1008
|
+
};
|
|
1009
|
+
readonly permissions: {
|
|
1010
|
+
readonly description: "权限";
|
|
1011
|
+
readonly type: "array";
|
|
1012
|
+
readonly items: {
|
|
1013
|
+
readonly type: "string";
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
readonly active: {
|
|
1017
|
+
readonly type: "boolean";
|
|
1018
|
+
readonly description: "是否启用";
|
|
1019
|
+
};
|
|
1020
|
+
readonly userCount: {
|
|
1021
|
+
readonly type: "number";
|
|
1022
|
+
readonly description: "人数";
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
746
1026
|
export const $CreateCaptchaDto: {
|
|
747
1027
|
readonly type: "object";
|
|
748
1028
|
readonly properties: {
|
|
@@ -1165,6 +1445,14 @@ export type User = {
|
|
|
1165
1445
|
roles?: Array<string>;
|
|
1166
1446
|
super?: boolean;
|
|
1167
1447
|
username?: string;
|
|
1448
|
+
employeeId?: string;
|
|
1449
|
+
permissions?: Array<string>;
|
|
1450
|
+
groups?: Array<string>;
|
|
1451
|
+
lastLoginAt?: string;
|
|
1452
|
+
active?: boolean;
|
|
1453
|
+
inviteCode?: string;
|
|
1454
|
+
status?: string;
|
|
1455
|
+
expireAt?: string;
|
|
1168
1456
|
id: string;
|
|
1169
1457
|
createdAt?: string;
|
|
1170
1458
|
updatedAt?: string;
|
|
@@ -1247,6 +1535,13 @@ export type CreateUserDto = {
|
|
|
1247
1535
|
roles?: Array<string>;
|
|
1248
1536
|
super?: boolean;
|
|
1249
1537
|
username?: string;
|
|
1538
|
+
employeeId?: string;
|
|
1539
|
+
permissions?: Array<string>;
|
|
1540
|
+
groups?: Array<string>;
|
|
1541
|
+
active?: boolean;
|
|
1542
|
+
inviteCode?: string;
|
|
1543
|
+
status?: string;
|
|
1544
|
+
expireAt?: string;
|
|
1250
1545
|
};
|
|
1251
1546
|
export type UpdateUserDto = {
|
|
1252
1547
|
readonly hasPassword?: boolean;
|
|
@@ -1269,6 +1564,14 @@ export type UpdateUserDto = {
|
|
|
1269
1564
|
roles?: Array<string>;
|
|
1270
1565
|
super?: boolean;
|
|
1271
1566
|
username?: string;
|
|
1567
|
+
employeeId?: string;
|
|
1568
|
+
permissions?: Array<string>;
|
|
1569
|
+
groups?: Array<string>;
|
|
1570
|
+
lastLoginAt?: string;
|
|
1571
|
+
active?: boolean;
|
|
1572
|
+
inviteCode?: string;
|
|
1573
|
+
status?: string;
|
|
1574
|
+
expireAt?: string;
|
|
1272
1575
|
};
|
|
1273
1576
|
export type ResetPasswordDto = {
|
|
1274
1577
|
password?: string;
|
|
@@ -1284,6 +1587,11 @@ export type CreateNamespaceDto = {
|
|
|
1284
1587
|
name: string;
|
|
1285
1588
|
key: string;
|
|
1286
1589
|
ns?: string;
|
|
1590
|
+
permissions?: Array<string>;
|
|
1591
|
+
active?: boolean;
|
|
1592
|
+
defaultPassword?: string;
|
|
1593
|
+
exportable?: boolean;
|
|
1594
|
+
userCount?: number;
|
|
1287
1595
|
};
|
|
1288
1596
|
export type Namespace = {
|
|
1289
1597
|
data?: string;
|
|
@@ -1292,6 +1600,11 @@ export type Namespace = {
|
|
|
1292
1600
|
name: string;
|
|
1293
1601
|
key: string;
|
|
1294
1602
|
ns?: string;
|
|
1603
|
+
permissions?: Array<string>;
|
|
1604
|
+
active?: boolean;
|
|
1605
|
+
defaultPassword?: string;
|
|
1606
|
+
exportable?: boolean;
|
|
1607
|
+
userCount?: number;
|
|
1295
1608
|
id: string;
|
|
1296
1609
|
createdAt?: string;
|
|
1297
1610
|
updatedAt?: string;
|
|
@@ -1303,6 +1616,11 @@ export type UpdateNamespaceDto = {
|
|
|
1303
1616
|
desc?: string;
|
|
1304
1617
|
labels?: Array<string>;
|
|
1305
1618
|
name?: string;
|
|
1619
|
+
permissions?: Array<string>;
|
|
1620
|
+
active?: boolean;
|
|
1621
|
+
defaultPassword?: string;
|
|
1622
|
+
exportable?: boolean;
|
|
1623
|
+
userCount?: number;
|
|
1306
1624
|
};
|
|
1307
1625
|
export type CreateSessionDto = {
|
|
1308
1626
|
uid: string;
|
|
@@ -1334,6 +1652,29 @@ export type UpdateSessionDto = {
|
|
|
1334
1652
|
client?: string;
|
|
1335
1653
|
uid?: string;
|
|
1336
1654
|
};
|
|
1655
|
+
export type CreateGroupDto = {
|
|
1656
|
+
name: string;
|
|
1657
|
+
permissions?: Array<string>;
|
|
1658
|
+
active?: boolean;
|
|
1659
|
+
userCount?: number;
|
|
1660
|
+
};
|
|
1661
|
+
export type Group = {
|
|
1662
|
+
name: string;
|
|
1663
|
+
permissions?: Array<string>;
|
|
1664
|
+
active?: boolean;
|
|
1665
|
+
userCount?: number;
|
|
1666
|
+
id: string;
|
|
1667
|
+
createdAt?: string;
|
|
1668
|
+
updatedAt?: string;
|
|
1669
|
+
createdBy?: string;
|
|
1670
|
+
updatedBy?: string;
|
|
1671
|
+
};
|
|
1672
|
+
export type UpdateGroupDto = {
|
|
1673
|
+
name?: string;
|
|
1674
|
+
permissions?: Array<string>;
|
|
1675
|
+
active?: boolean;
|
|
1676
|
+
userCount?: number;
|
|
1677
|
+
};
|
|
1337
1678
|
export type CreateCaptchaDto = {
|
|
1338
1679
|
code?: string;
|
|
1339
1680
|
expireAt?: string;
|
|
@@ -1488,6 +1829,8 @@ export type RefreshData = {
|
|
|
1488
1829
|
};
|
|
1489
1830
|
export type RefreshResponse = SessionWithToken | Token;
|
|
1490
1831
|
export type RefreshError = unknown;
|
|
1832
|
+
export type CleanupAllDataResponse = void;
|
|
1833
|
+
export type CleanupAllDataError = unknown;
|
|
1491
1834
|
export type CreateUserData = {
|
|
1492
1835
|
body: CreateUserDto;
|
|
1493
1836
|
};
|
|
@@ -1497,16 +1840,20 @@ export type ListUsersData = {
|
|
|
1497
1840
|
query?: {
|
|
1498
1841
|
_limit?: number;
|
|
1499
1842
|
_offset?: number;
|
|
1500
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
1843
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
1844
|
+
active?: boolean;
|
|
1501
1845
|
email?: string;
|
|
1846
|
+
expireAt_gt?: string;
|
|
1847
|
+
expireAt_lt?: string;
|
|
1848
|
+
groups?: Array<string>;
|
|
1502
1849
|
id?: Array<string>;
|
|
1503
1850
|
name_like?: string;
|
|
1504
1851
|
nickname_like?: string;
|
|
1505
|
-
|
|
1506
|
-
ns_start?: Array<string>;
|
|
1852
|
+
ns_tree?: string;
|
|
1507
1853
|
phone?: string;
|
|
1508
1854
|
registerRegion?: string;
|
|
1509
1855
|
roles?: Array<string>;
|
|
1856
|
+
status?: string;
|
|
1510
1857
|
username?: string;
|
|
1511
1858
|
username_like?: string;
|
|
1512
1859
|
};
|
|
@@ -1535,6 +1882,14 @@ export type DeleteUserData = {
|
|
|
1535
1882
|
};
|
|
1536
1883
|
export type DeleteUserResponse = void;
|
|
1537
1884
|
export type DeleteUserError = unknown;
|
|
1885
|
+
export type UpsertUserByEmployeeIdData = {
|
|
1886
|
+
body: UpdateUserDto;
|
|
1887
|
+
path: {
|
|
1888
|
+
userEmployeeId: string;
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
export type UpsertUserByEmployeeIdResponse = User;
|
|
1892
|
+
export type UpsertUserByEmployeeIdError = unknown;
|
|
1538
1893
|
export type VerifyIdentityData = {
|
|
1539
1894
|
path: {
|
|
1540
1895
|
userId: string;
|
|
@@ -1569,10 +1924,10 @@ export type ListNamespacesData = {
|
|
|
1569
1924
|
_offset?: number;
|
|
1570
1925
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
|
|
1571
1926
|
key?: string;
|
|
1927
|
+
key_tree?: string;
|
|
1572
1928
|
labels?: Array<string>;
|
|
1573
1929
|
name_like?: string;
|
|
1574
|
-
|
|
1575
|
-
ns_start?: Array<string>;
|
|
1930
|
+
ns_tree?: string;
|
|
1576
1931
|
};
|
|
1577
1932
|
};
|
|
1578
1933
|
export type ListNamespacesResponse = Array<Namespace>;
|
|
@@ -1587,7 +1942,7 @@ export type GetNamespaceError = unknown;
|
|
|
1587
1942
|
export type UpdateNamespaceData = {
|
|
1588
1943
|
body: UpdateNamespaceDto;
|
|
1589
1944
|
path: {
|
|
1590
|
-
|
|
1945
|
+
namespaceIdOrKey: string;
|
|
1591
1946
|
};
|
|
1592
1947
|
};
|
|
1593
1948
|
export type UpdateNamespaceResponse = Namespace;
|
|
@@ -1638,6 +1993,45 @@ export type DeleteSessionData = {
|
|
|
1638
1993
|
};
|
|
1639
1994
|
export type DeleteSessionResponse = void;
|
|
1640
1995
|
export type DeleteSessionError = unknown;
|
|
1996
|
+
export type CreateGroupData = {
|
|
1997
|
+
body: CreateGroupDto;
|
|
1998
|
+
};
|
|
1999
|
+
export type CreateGroupResponse = Group;
|
|
2000
|
+
export type CreateGroupError = unknown;
|
|
2001
|
+
export type ListGroupsData = {
|
|
2002
|
+
query?: {
|
|
2003
|
+
_limit?: number;
|
|
2004
|
+
_offset?: number;
|
|
2005
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
2006
|
+
active?: boolean;
|
|
2007
|
+
name?: string;
|
|
2008
|
+
name_like?: string;
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
export type ListGroupsResponse = Array<Group>;
|
|
2012
|
+
export type ListGroupsError = unknown;
|
|
2013
|
+
export type GetGroupData = {
|
|
2014
|
+
path: {
|
|
2015
|
+
groupIdOrName: string;
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
export type GetGroupResponse = Group;
|
|
2019
|
+
export type GetGroupError = unknown;
|
|
2020
|
+
export type UpdateGroupData = {
|
|
2021
|
+
body: UpdateGroupDto;
|
|
2022
|
+
path: {
|
|
2023
|
+
groupId: string;
|
|
2024
|
+
};
|
|
2025
|
+
};
|
|
2026
|
+
export type UpdateGroupResponse = Group;
|
|
2027
|
+
export type UpdateGroupError = unknown;
|
|
2028
|
+
export type DeleteGroupData = {
|
|
2029
|
+
path: {
|
|
2030
|
+
groupId: string;
|
|
2031
|
+
};
|
|
2032
|
+
};
|
|
2033
|
+
export type DeleteGroupResponse = void;
|
|
2034
|
+
export type DeleteGroupError = unknown;
|
|
1641
2035
|
export type CreateCaptchaData = {
|
|
1642
2036
|
body: CreateCaptchaDto;
|
|
1643
2037
|
};
|
|
@@ -1999,6 +2393,28 @@ export const refresh: <ThrowOnError extends boolean = false>(options: {
|
|
|
1999
2393
|
} & RefreshData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2000
2394
|
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2001
2395
|
}, "headers">) => import("@hey-api/client-fetch").RequestResult<RefreshResponse, unknown, ThrowOnError>;
|
|
2396
|
+
export const cleanupAllData: <ThrowOnError extends boolean = false>(options?: {
|
|
2397
|
+
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2398
|
+
cache?: RequestCache;
|
|
2399
|
+
credentials?: RequestCredentials;
|
|
2400
|
+
integrity?: string;
|
|
2401
|
+
keepalive?: boolean;
|
|
2402
|
+
mode?: RequestMode;
|
|
2403
|
+
redirect?: RequestRedirect;
|
|
2404
|
+
referrer?: string;
|
|
2405
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2406
|
+
signal?: AbortSignal;
|
|
2407
|
+
window?: null;
|
|
2408
|
+
path?: Record<string, unknown>;
|
|
2409
|
+
query?: Record<string, unknown>;
|
|
2410
|
+
baseUrl?: string;
|
|
2411
|
+
bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
|
|
2412
|
+
fetch?: (request: Request) => Promise<Response>;
|
|
2413
|
+
parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
|
|
2414
|
+
querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
|
|
2415
|
+
throwOnError?: ThrowOnError;
|
|
2416
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2417
|
+
}) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
2002
2418
|
export const createUser: <ThrowOnError extends boolean = false>(options: {
|
|
2003
2419
|
headers?: Record<string, unknown> | HeadersInit;
|
|
2004
2420
|
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
@@ -2058,6 +2474,31 @@ export const updateUser: <ThrowOnError extends boolean = false>(options: {
|
|
|
2058
2474
|
export const deleteUser: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2059
2475
|
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2060
2476
|
} & DeleteUserData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
2477
|
+
export const upsertUserByEmployeeId: <ThrowOnError extends boolean = false>(options: {
|
|
2478
|
+
headers?: Record<string, unknown> | HeadersInit;
|
|
2479
|
+
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2480
|
+
cache?: RequestCache;
|
|
2481
|
+
credentials?: RequestCredentials;
|
|
2482
|
+
integrity?: string;
|
|
2483
|
+
keepalive?: boolean;
|
|
2484
|
+
mode?: RequestMode;
|
|
2485
|
+
redirect?: RequestRedirect;
|
|
2486
|
+
referrer?: string;
|
|
2487
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2488
|
+
signal?: AbortSignal;
|
|
2489
|
+
window?: null;
|
|
2490
|
+
path?: Record<string, unknown>;
|
|
2491
|
+
query?: Record<string, unknown>;
|
|
2492
|
+
baseUrl?: string;
|
|
2493
|
+
bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
|
|
2494
|
+
fetch?: (request: Request) => Promise<Response>;
|
|
2495
|
+
parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
|
|
2496
|
+
querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
|
|
2497
|
+
throwOnError?: ThrowOnError;
|
|
2498
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2499
|
+
} & UpsertUserByEmployeeIdData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2500
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2501
|
+
}, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
|
|
2061
2502
|
export const verifyIdentity: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2062
2503
|
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2063
2504
|
} & VerifyIdentityData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
|
|
@@ -2229,6 +2670,65 @@ export const updateSession: <ThrowOnError extends boolean = false>(options: {
|
|
|
2229
2670
|
export const deleteSession: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2230
2671
|
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2231
2672
|
} & DeleteSessionData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
2673
|
+
export const createGroup: <ThrowOnError extends boolean = false>(options: {
|
|
2674
|
+
headers?: Record<string, unknown> | HeadersInit;
|
|
2675
|
+
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2676
|
+
cache?: RequestCache;
|
|
2677
|
+
credentials?: RequestCredentials;
|
|
2678
|
+
integrity?: string;
|
|
2679
|
+
keepalive?: boolean;
|
|
2680
|
+
mode?: RequestMode;
|
|
2681
|
+
redirect?: RequestRedirect;
|
|
2682
|
+
referrer?: string;
|
|
2683
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2684
|
+
signal?: AbortSignal;
|
|
2685
|
+
window?: null;
|
|
2686
|
+
path?: Record<string, unknown>;
|
|
2687
|
+
query?: Record<string, unknown>;
|
|
2688
|
+
baseUrl?: string;
|
|
2689
|
+
bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
|
|
2690
|
+
fetch?: (request: Request) => Promise<Response>;
|
|
2691
|
+
parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
|
|
2692
|
+
querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
|
|
2693
|
+
throwOnError?: ThrowOnError;
|
|
2694
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2695
|
+
} & CreateGroupData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2696
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2697
|
+
}, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Group, unknown, ThrowOnError>;
|
|
2698
|
+
export const listGroups: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2699
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2700
|
+
} & ListGroupsData) => import("@hey-api/client-fetch").RequestResult<ListGroupsResponse, unknown, ThrowOnError>;
|
|
2701
|
+
export const getGroup: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2702
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2703
|
+
} & GetGroupData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Group, unknown, ThrowOnError>;
|
|
2704
|
+
export const updateGroup: <ThrowOnError extends boolean = false>(options: {
|
|
2705
|
+
headers?: Record<string, unknown> | HeadersInit;
|
|
2706
|
+
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2707
|
+
cache?: RequestCache;
|
|
2708
|
+
credentials?: RequestCredentials;
|
|
2709
|
+
integrity?: string;
|
|
2710
|
+
keepalive?: boolean;
|
|
2711
|
+
mode?: RequestMode;
|
|
2712
|
+
redirect?: RequestRedirect;
|
|
2713
|
+
referrer?: string;
|
|
2714
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2715
|
+
signal?: AbortSignal;
|
|
2716
|
+
window?: null;
|
|
2717
|
+
path?: Record<string, unknown>;
|
|
2718
|
+
query?: Record<string, unknown>;
|
|
2719
|
+
baseUrl?: string;
|
|
2720
|
+
bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
|
|
2721
|
+
fetch?: (request: Request) => Promise<Response>;
|
|
2722
|
+
parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
|
|
2723
|
+
querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
|
|
2724
|
+
throwOnError?: ThrowOnError;
|
|
2725
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2726
|
+
} & UpdateGroupData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2727
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2728
|
+
}, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Group, unknown, ThrowOnError>;
|
|
2729
|
+
export const deleteGroup: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2730
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2731
|
+
} & DeleteGroupData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
2232
2732
|
export const createCaptcha: <ThrowOnError extends boolean = false>(options: {
|
|
2233
2733
|
headers?: Record<string, unknown> | HeadersInit;
|
|
2234
2734
|
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|