@djangocfg/api 2.1.359 → 2.1.361
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/auth-server.cjs +68 -0
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +68 -0
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +75 -67
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +7 -10
- package/dist/auth.d.ts +7 -10
- package/dist/auth.mjs +75 -67
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +68 -0
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +14 -20
- package/dist/clients.d.ts +14 -20
- package/dist/clients.mjs +68 -0
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +68 -0
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.mjs +68 -0
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +79 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -40
- package/dist/index.d.ts +28 -40
- package/dist/index.mjs +79 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts +1 -1
- package/src/_api/generated/_cfg_accounts/openapi.json +1811 -0
- package/src/_api/generated/_cfg_accounts/schemas/User.ts +7 -7
- package/src/_api/generated/_cfg_centrifugo/hooks/useCfgCentrifugoAuthTokenRetrieve.ts +1 -1
- package/src/_api/generated/_cfg_centrifugo/openapi.json +132 -0
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +1 -1
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +1 -1
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +1 -1
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDisableCreate.ts +1 -1
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupConfirmCreate.ts +1 -1
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupCreate.ts +1 -1
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyBackupCreate.ts +1 -1
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyCreate.ts +1 -1
- package/src/_api/generated/_cfg_totp/openapi.json +927 -0
- package/src/_api/generated/_cfg_totp/schemas/TotpVerifyUser.ts +7 -7
- package/src/_api/generated/helpers/auth.ts +27 -2
- package/src/_api/generated/openapi.json +2789 -0
- package/src/_api/generated/types.gen.ts +28 -40
|
@@ -636,8 +636,8 @@ export type TokenRefreshRequest = {
|
|
|
636
636
|
export type TotpVerifyUser = {
|
|
637
637
|
readonly id: number;
|
|
638
638
|
readonly email: string;
|
|
639
|
-
first_name?: string;
|
|
640
|
-
last_name?: string;
|
|
639
|
+
first_name?: string | null;
|
|
640
|
+
last_name?: string | null;
|
|
641
641
|
/**
|
|
642
642
|
* Get user's full name.
|
|
643
643
|
*/
|
|
@@ -650,14 +650,11 @@ export type TotpVerifyUser = {
|
|
|
650
650
|
* Get formatted username for display.
|
|
651
651
|
*/
|
|
652
652
|
readonly display_username: string;
|
|
653
|
-
company?: string;
|
|
654
|
-
phone?: string;
|
|
655
|
-
position?: string;
|
|
656
|
-
language?: string;
|
|
657
|
-
|
|
658
|
-
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
659
|
-
*/
|
|
660
|
-
timezone?: string;
|
|
653
|
+
company?: string | null;
|
|
654
|
+
phone?: string | null;
|
|
655
|
+
position?: string | null;
|
|
656
|
+
language?: string | null;
|
|
657
|
+
timezone?: string | null;
|
|
661
658
|
readonly avatar: string | null;
|
|
662
659
|
/**
|
|
663
660
|
* Staff status
|
|
@@ -683,8 +680,8 @@ export type TotpVerifyUser = {
|
|
|
683
680
|
export type User = {
|
|
684
681
|
readonly id: number;
|
|
685
682
|
readonly email: string;
|
|
686
|
-
first_name?: string;
|
|
687
|
-
last_name?: string;
|
|
683
|
+
first_name?: string | null;
|
|
684
|
+
last_name?: string | null;
|
|
688
685
|
/**
|
|
689
686
|
* Get user's full name.
|
|
690
687
|
*/
|
|
@@ -697,14 +694,11 @@ export type User = {
|
|
|
697
694
|
* Get formatted username for display.
|
|
698
695
|
*/
|
|
699
696
|
readonly display_username: string;
|
|
700
|
-
company?: string;
|
|
701
|
-
phone?: string;
|
|
702
|
-
position?: string;
|
|
703
|
-
language?: string;
|
|
704
|
-
|
|
705
|
-
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
706
|
-
*/
|
|
707
|
-
timezone?: string;
|
|
697
|
+
company?: string | null;
|
|
698
|
+
phone?: string | null;
|
|
699
|
+
position?: string | null;
|
|
700
|
+
language?: string | null;
|
|
701
|
+
timezone?: string | null;
|
|
708
702
|
readonly avatar: string | null;
|
|
709
703
|
/**
|
|
710
704
|
* Staff status
|
|
@@ -847,32 +841,26 @@ export type TokenRefreshWritable = {
|
|
|
847
841
|
* User data returned after 2FA verification.
|
|
848
842
|
*/
|
|
849
843
|
export type TotpVerifyUserWritable = {
|
|
850
|
-
first_name?: string;
|
|
851
|
-
last_name?: string;
|
|
852
|
-
company?: string;
|
|
853
|
-
phone?: string;
|
|
854
|
-
position?: string;
|
|
855
|
-
language?: string;
|
|
856
|
-
|
|
857
|
-
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
858
|
-
*/
|
|
859
|
-
timezone?: string;
|
|
844
|
+
first_name?: string | null;
|
|
845
|
+
last_name?: string | null;
|
|
846
|
+
company?: string | null;
|
|
847
|
+
phone?: string | null;
|
|
848
|
+
position?: string | null;
|
|
849
|
+
language?: string | null;
|
|
850
|
+
timezone?: string | null;
|
|
860
851
|
};
|
|
861
852
|
|
|
862
853
|
/**
|
|
863
854
|
* Serializer for user details.
|
|
864
855
|
*/
|
|
865
856
|
export type UserWritable = {
|
|
866
|
-
first_name?: string;
|
|
867
|
-
last_name?: string;
|
|
868
|
-
company?: string;
|
|
869
|
-
phone?: string;
|
|
870
|
-
position?: string;
|
|
871
|
-
language?: string;
|
|
872
|
-
|
|
873
|
-
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
874
|
-
*/
|
|
875
|
-
timezone?: string;
|
|
857
|
+
first_name?: string | null;
|
|
858
|
+
last_name?: string | null;
|
|
859
|
+
company?: string | null;
|
|
860
|
+
phone?: string | null;
|
|
861
|
+
position?: string | null;
|
|
862
|
+
language?: string | null;
|
|
863
|
+
timezone?: string | null;
|
|
876
864
|
};
|
|
877
865
|
|
|
878
866
|
/**
|