@djangocfg/api 2.1.55 → 2.1.57
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.cjs +28 -15
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +6 -6
- package/dist/auth.d.ts +6 -6
- package/dist/auth.mjs +28 -15
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +56 -17
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +17 -17
- package/dist/clients.d.ts +17 -17
- package/dist/clients.mjs +56 -17
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +763 -12
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +11 -11
- package/dist/hooks.d.ts +11 -11
- package/dist/hooks.mjs +763 -12
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +893 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -41
- package/dist/index.d.ts +59 -41
- package/dist/index.mjs +893 -69
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts +2 -2
- package/src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/User.schema.ts +1 -1
- package/src/generated/cfg_accounts/api-instance.ts +61 -13
- package/src/generated/cfg_centrifugo/api-instance.ts +61 -13
- package/src/generated/cfg_totp/CLAUDE.md +90 -0
- package/src/generated/cfg_totp/_utils/fetchers/index.ts +33 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp.ts +49 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__2fa_management.ts +108 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__2fa_setup.ts +153 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__2fa_verification.ts +152 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__backup_codes.ts +152 -0
- package/src/generated/cfg_totp/_utils/hooks/index.ts +33 -0
- package/src/generated/cfg_totp/_utils/hooks/totp.ts +42 -0
- package/src/generated/cfg_totp/_utils/hooks/totp__2fa_management.ts +58 -0
- package/src/generated/cfg_totp/_utils/hooks/totp__2fa_setup.ts +63 -0
- package/src/generated/cfg_totp/_utils/hooks/totp__2fa_verification.ts +62 -0
- package/src/generated/cfg_totp/_utils/hooks/totp__backup_codes.ts +59 -0
- package/src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts +19 -0
- package/src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts +20 -0
- package/src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts +21 -0
- package/src/generated/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts +20 -0
- package/src/generated/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts +21 -0
- package/src/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts +26 -0
- package/src/generated/cfg_totp/_utils/schemas/DisableRequest.schema.ts +19 -0
- package/src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListList.schema.ts +24 -0
- package/src/generated/cfg_totp/_utils/schemas/SetupRequest.schema.ts +19 -0
- package/src/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts +23 -0
- package/src/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts +20 -0
- package/src/generated/cfg_totp/_utils/schemas/VerifyRequest.schema.ts +20 -0
- package/src/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts +24 -0
- package/src/generated/cfg_totp/_utils/schemas/index.ts +32 -0
- package/src/generated/cfg_totp/api-instance.ts +180 -0
- package/src/generated/cfg_totp/client.ts +313 -0
- package/src/generated/cfg_totp/enums.ts +12 -0
- package/src/generated/cfg_totp/errors.ts +117 -0
- package/src/generated/cfg_totp/http.ts +104 -0
- package/src/generated/cfg_totp/index.ts +302 -0
- package/src/generated/cfg_totp/logger.ts +260 -0
- package/src/generated/cfg_totp/retry.ts +176 -0
- package/src/generated/cfg_totp/schema.json +859 -0
- package/src/generated/cfg_totp/storage.ts +162 -0
- package/src/generated/cfg_totp/totp/client.ts +23 -0
- package/src/generated/cfg_totp/totp/index.ts +3 -0
- package/src/generated/cfg_totp/totp/models.ts +1 -0
- package/src/generated/cfg_totp/totp__2fa_management/client.ts +41 -0
- package/src/generated/cfg_totp/totp__2fa_management/index.ts +3 -0
- package/src/generated/cfg_totp/totp__2fa_management/models.ts +60 -0
- package/src/generated/cfg_totp/totp__2fa_setup/client.ts +32 -0
- package/src/generated/cfg_totp/totp__2fa_setup/index.ts +3 -0
- package/src/generated/cfg_totp/totp__2fa_setup/models.ts +54 -0
- package/src/generated/cfg_totp/totp__2fa_verification/client.ts +32 -0
- package/src/generated/cfg_totp/totp__2fa_verification/index.ts +3 -0
- package/src/generated/cfg_totp/totp__2fa_verification/models.ts +44 -0
- package/src/generated/cfg_totp/totp__backup_codes/client.ts +31 -0
- package/src/generated/cfg_totp/totp__backup_codes/index.ts +3 -0
- package/src/generated/cfg_totp/totp__backup_codes/models.ts +37 -0
- package/src/generated/cfg_totp/validation-events.ts +134 -0
- package/src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts +2 -2
- package/src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts +1 -1
- package/src/generated/cfg_webpush/api-instance.ts +61 -13
package/dist/hooks.d.cts
CHANGED
|
@@ -514,8 +514,8 @@ interface StorageAdapter {
|
|
|
514
514
|
* Request to start OAuth flow.
|
|
515
515
|
*/
|
|
516
516
|
declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
|
|
517
|
-
redirect_uri: z.ZodOptional<z.ZodURL
|
|
518
|
-
source_url: z.ZodOptional<z.ZodURL
|
|
517
|
+
redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
518
|
+
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
519
519
|
}, z.core.$strip>;
|
|
520
520
|
/**
|
|
521
521
|
* Infer TypeScript type from Zod schema
|
|
@@ -533,7 +533,7 @@ type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestS
|
|
|
533
533
|
* Response with OAuth authorization URL.
|
|
534
534
|
*/
|
|
535
535
|
declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
|
|
536
|
-
authorization_url: z.ZodURL
|
|
536
|
+
authorization_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
537
537
|
state: z.ZodString;
|
|
538
538
|
}, z.core.$strip>;
|
|
539
539
|
/**
|
|
@@ -554,7 +554,7 @@ type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
|
|
|
554
554
|
declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
|
|
555
555
|
code: z.ZodString;
|
|
556
556
|
state: z.ZodString;
|
|
557
|
-
redirect_uri: z.ZodOptional<z.ZodURL
|
|
557
|
+
redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
558
558
|
}, z.core.$strip>;
|
|
559
559
|
/**
|
|
560
560
|
* Infer TypeScript type from Zod schema
|
|
@@ -592,7 +592,7 @@ type OAuthDisconnectRequestRequest = z.infer<typeof OAuthDisconnectRequestReques
|
|
|
592
592
|
declare const OAuthTokenResponseSchema: z.ZodObject<{
|
|
593
593
|
access: z.ZodString;
|
|
594
594
|
refresh: z.ZodString;
|
|
595
|
-
user: z.ZodRecord<z.ZodString, z.
|
|
595
|
+
user: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
596
596
|
is_new_user: z.ZodBoolean;
|
|
597
597
|
is_new_connection: z.ZodBoolean;
|
|
598
598
|
}, z.core.$strip>;
|
|
@@ -614,7 +614,7 @@ type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
|
|
|
614
614
|
declare const OTPRequestRequestSchema: z.ZodObject<{
|
|
615
615
|
identifier: z.ZodString;
|
|
616
616
|
channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
|
|
617
|
-
source_url: z.ZodOptional<z.ZodURL
|
|
617
|
+
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
618
618
|
}, z.core.$strip>;
|
|
619
619
|
/**
|
|
620
620
|
* Infer TypeScript type from Zod schema
|
|
@@ -653,7 +653,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
|
|
|
653
653
|
identifier: z.ZodString;
|
|
654
654
|
otp: z.ZodString;
|
|
655
655
|
channel: z.ZodOptional<z.ZodEnum<typeof OTPVerifyRequestChannel>>;
|
|
656
|
-
source_url: z.ZodOptional<z.ZodURL
|
|
656
|
+
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
657
657
|
}, z.core.$strip>;
|
|
658
658
|
/**
|
|
659
659
|
* Infer TypeScript type from Zod schema
|
|
@@ -684,7 +684,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
|
684
684
|
company: z.ZodOptional<z.ZodString>;
|
|
685
685
|
phone: z.ZodOptional<z.ZodString>;
|
|
686
686
|
position: z.ZodOptional<z.ZodString>;
|
|
687
|
-
avatar: z.ZodNullable<z.ZodURL
|
|
687
|
+
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
688
688
|
is_staff: z.ZodBoolean;
|
|
689
689
|
is_superuser: z.ZodBoolean;
|
|
690
690
|
date_joined: z.ZodISODateTime;
|
|
@@ -692,7 +692,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
|
692
692
|
unanswered_messages_count: z.ZodInt;
|
|
693
693
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
694
694
|
token: z.ZodString;
|
|
695
|
-
centrifugo_url: z.ZodURL
|
|
695
|
+
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
696
696
|
expires_at: z.ZodISODateTime;
|
|
697
697
|
channels: z.ZodArray<z.ZodString>;
|
|
698
698
|
}, z.core.$strip>>;
|
|
@@ -775,7 +775,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
775
775
|
company: z.ZodOptional<z.ZodString>;
|
|
776
776
|
phone: z.ZodOptional<z.ZodString>;
|
|
777
777
|
position: z.ZodOptional<z.ZodString>;
|
|
778
|
-
avatar: z.ZodNullable<z.ZodURL
|
|
778
|
+
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
779
779
|
is_staff: z.ZodBoolean;
|
|
780
780
|
is_superuser: z.ZodBoolean;
|
|
781
781
|
date_joined: z.ZodISODateTime;
|
|
@@ -783,7 +783,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
783
783
|
unanswered_messages_count: z.ZodInt;
|
|
784
784
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
785
785
|
token: z.ZodString;
|
|
786
|
-
centrifugo_url: z.ZodURL
|
|
786
|
+
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
787
787
|
expires_at: z.ZodISODateTime;
|
|
788
788
|
channels: z.ZodArray<z.ZodString>;
|
|
789
789
|
}, z.core.$strip>>;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -514,8 +514,8 @@ interface StorageAdapter {
|
|
|
514
514
|
* Request to start OAuth flow.
|
|
515
515
|
*/
|
|
516
516
|
declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
|
|
517
|
-
redirect_uri: z.ZodOptional<z.ZodURL
|
|
518
|
-
source_url: z.ZodOptional<z.ZodURL
|
|
517
|
+
redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
518
|
+
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
519
519
|
}, z.core.$strip>;
|
|
520
520
|
/**
|
|
521
521
|
* Infer TypeScript type from Zod schema
|
|
@@ -533,7 +533,7 @@ type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestS
|
|
|
533
533
|
* Response with OAuth authorization URL.
|
|
534
534
|
*/
|
|
535
535
|
declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
|
|
536
|
-
authorization_url: z.ZodURL
|
|
536
|
+
authorization_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
537
537
|
state: z.ZodString;
|
|
538
538
|
}, z.core.$strip>;
|
|
539
539
|
/**
|
|
@@ -554,7 +554,7 @@ type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
|
|
|
554
554
|
declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
|
|
555
555
|
code: z.ZodString;
|
|
556
556
|
state: z.ZodString;
|
|
557
|
-
redirect_uri: z.ZodOptional<z.ZodURL
|
|
557
|
+
redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
558
558
|
}, z.core.$strip>;
|
|
559
559
|
/**
|
|
560
560
|
* Infer TypeScript type from Zod schema
|
|
@@ -592,7 +592,7 @@ type OAuthDisconnectRequestRequest = z.infer<typeof OAuthDisconnectRequestReques
|
|
|
592
592
|
declare const OAuthTokenResponseSchema: z.ZodObject<{
|
|
593
593
|
access: z.ZodString;
|
|
594
594
|
refresh: z.ZodString;
|
|
595
|
-
user: z.ZodRecord<z.ZodString, z.
|
|
595
|
+
user: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
596
596
|
is_new_user: z.ZodBoolean;
|
|
597
597
|
is_new_connection: z.ZodBoolean;
|
|
598
598
|
}, z.core.$strip>;
|
|
@@ -614,7 +614,7 @@ type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
|
|
|
614
614
|
declare const OTPRequestRequestSchema: z.ZodObject<{
|
|
615
615
|
identifier: z.ZodString;
|
|
616
616
|
channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
|
|
617
|
-
source_url: z.ZodOptional<z.ZodURL
|
|
617
|
+
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
618
618
|
}, z.core.$strip>;
|
|
619
619
|
/**
|
|
620
620
|
* Infer TypeScript type from Zod schema
|
|
@@ -653,7 +653,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
|
|
|
653
653
|
identifier: z.ZodString;
|
|
654
654
|
otp: z.ZodString;
|
|
655
655
|
channel: z.ZodOptional<z.ZodEnum<typeof OTPVerifyRequestChannel>>;
|
|
656
|
-
source_url: z.ZodOptional<z.ZodURL
|
|
656
|
+
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
657
657
|
}, z.core.$strip>;
|
|
658
658
|
/**
|
|
659
659
|
* Infer TypeScript type from Zod schema
|
|
@@ -684,7 +684,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
|
684
684
|
company: z.ZodOptional<z.ZodString>;
|
|
685
685
|
phone: z.ZodOptional<z.ZodString>;
|
|
686
686
|
position: z.ZodOptional<z.ZodString>;
|
|
687
|
-
avatar: z.ZodNullable<z.ZodURL
|
|
687
|
+
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
688
688
|
is_staff: z.ZodBoolean;
|
|
689
689
|
is_superuser: z.ZodBoolean;
|
|
690
690
|
date_joined: z.ZodISODateTime;
|
|
@@ -692,7 +692,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
|
692
692
|
unanswered_messages_count: z.ZodInt;
|
|
693
693
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
694
694
|
token: z.ZodString;
|
|
695
|
-
centrifugo_url: z.ZodURL
|
|
695
|
+
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
696
696
|
expires_at: z.ZodISODateTime;
|
|
697
697
|
channels: z.ZodArray<z.ZodString>;
|
|
698
698
|
}, z.core.$strip>>;
|
|
@@ -775,7 +775,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
775
775
|
company: z.ZodOptional<z.ZodString>;
|
|
776
776
|
phone: z.ZodOptional<z.ZodString>;
|
|
777
777
|
position: z.ZodOptional<z.ZodString>;
|
|
778
|
-
avatar: z.ZodNullable<z.ZodURL
|
|
778
|
+
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
779
779
|
is_staff: z.ZodBoolean;
|
|
780
780
|
is_superuser: z.ZodBoolean;
|
|
781
781
|
date_joined: z.ZodISODateTime;
|
|
@@ -783,7 +783,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
783
783
|
unanswered_messages_count: z.ZodInt;
|
|
784
784
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
785
785
|
token: z.ZodString;
|
|
786
|
-
centrifugo_url: z.ZodURL
|
|
786
|
+
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
787
787
|
expires_at: z.ZodISODateTime;
|
|
788
788
|
channels: z.ZodArray<z.ZodString>;
|
|
789
789
|
}, z.core.$strip>>;
|