@djangocfg/api 2.1.126 → 2.1.129
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 +10 -19
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +10 -19
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +18 -29
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +7 -16
- package/dist/auth.d.ts +7 -16
- package/dist/auth.mjs +18 -29
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +20 -31
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +46 -54
- package/dist/clients.d.ts +46 -54
- package/dist/clients.mjs +20 -31
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +8 -17
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +11 -20
- package/dist/hooks.d.ts +11 -20
- package/dist/hooks.mjs +8 -17
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +12 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -35
- package/dist/index.d.ts +15 -35
- package/dist/index.mjs +12 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts +2 -2
- package/src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.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 +2 -2
- package/src/generated/cfg_accounts/accounts/models.ts +1 -1
- package/src/generated/cfg_accounts/accounts__oauth/client.ts +1 -1
- package/src/generated/cfg_accounts/accounts__oauth/models.ts +1 -1
- package/src/generated/cfg_accounts/enums.ts +1 -19
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +2 -2
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts +2 -2
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +3 -3
- package/src/generated/cfg_centrifugo/schema.json +18 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts +2 -2
- package/src/generated/cfg_totp/_utils/hooks/totp__totp_management.ts +1 -1
- package/src/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts +3 -3
- package/src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts +2 -2
- package/src/generated/cfg_totp/schema.json +18 -0
- package/src/generated/cfg_totp/totp__totp_management/client.ts +3 -3
package/dist/clients.d.cts
CHANGED
|
@@ -30,18 +30,11 @@ declare class Auth {
|
|
|
30
30
|
accountsTokenRefreshCreate(data: TokenRefreshRequest$1): Promise<TokenRefresh$1>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* OAuth provider name (github, google, etc.)
|
|
35
|
-
* * `github` - GitHub
|
|
36
|
-
*/
|
|
37
|
-
declare enum OAuthConnectionProvider {
|
|
38
|
-
GITHUB = "github"
|
|
39
|
-
}
|
|
40
33
|
/**
|
|
41
34
|
* OAuth provider to disconnect
|
|
42
35
|
* * `github` - GitHub
|
|
43
36
|
*/
|
|
44
|
-
declare enum
|
|
37
|
+
declare enum OAuthConnectionProvider {
|
|
45
38
|
GITHUB = "github"
|
|
46
39
|
}
|
|
47
40
|
/**
|
|
@@ -53,26 +46,13 @@ declare enum OTPRequestRequestChannel {
|
|
|
53
46
|
EMAIL = "email",
|
|
54
47
|
PHONE = "phone"
|
|
55
48
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
58
|
-
* * `email` - Email
|
|
59
|
-
* * `phone` - Phone
|
|
60
|
-
*/
|
|
61
|
-
declare enum OTPVerifyRequestChannel {
|
|
62
|
-
EMAIL = "email",
|
|
63
|
-
PHONE = "phone"
|
|
64
|
-
}
|
|
65
49
|
|
|
66
50
|
type enums_OAuthConnectionProvider = OAuthConnectionProvider;
|
|
67
51
|
declare const enums_OAuthConnectionProvider: typeof OAuthConnectionProvider;
|
|
68
|
-
type enums_OAuthDisconnectRequestRequestProvider = OAuthDisconnectRequestRequestProvider;
|
|
69
|
-
declare const enums_OAuthDisconnectRequestRequestProvider: typeof OAuthDisconnectRequestRequestProvider;
|
|
70
52
|
type enums_OTPRequestRequestChannel = OTPRequestRequestChannel;
|
|
71
53
|
declare const enums_OTPRequestRequestChannel: typeof OTPRequestRequestChannel;
|
|
72
|
-
type enums_OTPVerifyRequestChannel = OTPVerifyRequestChannel;
|
|
73
|
-
declare const enums_OTPVerifyRequestChannel: typeof OTPVerifyRequestChannel;
|
|
74
54
|
declare namespace enums {
|
|
75
|
-
export { enums_OAuthConnectionProvider as OAuthConnectionProvider,
|
|
55
|
+
export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel };
|
|
76
56
|
}
|
|
77
57
|
|
|
78
58
|
/**
|
|
@@ -84,7 +64,7 @@ interface OAuthDisconnectRequestRequest$1 {
|
|
|
84
64
|
/** OAuth provider to disconnect
|
|
85
65
|
|
|
86
66
|
* `github` - GitHub */
|
|
87
|
-
provider:
|
|
67
|
+
provider: OAuthConnectionProvider;
|
|
88
68
|
}
|
|
89
69
|
/**
|
|
90
70
|
* Request to start OAuth flow.
|
|
@@ -380,7 +360,7 @@ interface OTPVerifyRequest$1 {
|
|
|
380
360
|
|
|
381
361
|
* `email` - Email
|
|
382
362
|
* `phone` - Phone */
|
|
383
|
-
channel?:
|
|
363
|
+
channel?: OTPRequestRequestChannel;
|
|
384
364
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
385
365
|
source_url?: string;
|
|
386
366
|
}
|
|
@@ -602,7 +582,7 @@ type AccountDeleteResponse = z.infer<typeof AccountDeleteResponseSchema>;
|
|
|
602
582
|
declare const CentrifugoTokenSchema: z.ZodObject<{
|
|
603
583
|
token: z.ZodString;
|
|
604
584
|
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
605
|
-
expires_at: z.
|
|
585
|
+
expires_at: z.ZodString;
|
|
606
586
|
channels: z.ZodArray<z.ZodString>;
|
|
607
587
|
}, z.core.$strip>;
|
|
608
588
|
/**
|
|
@@ -699,8 +679,8 @@ declare const OAuthConnectionSchema: z.ZodObject<{
|
|
|
699
679
|
provider_username: z.ZodString;
|
|
700
680
|
provider_email: z.ZodEmail;
|
|
701
681
|
provider_avatar_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
702
|
-
connected_at: z.
|
|
703
|
-
last_login_at: z.
|
|
682
|
+
connected_at: z.ZodString;
|
|
683
|
+
last_login_at: z.ZodString;
|
|
704
684
|
}, z.core.$strip>;
|
|
705
685
|
/**
|
|
706
686
|
* Infer TypeScript type from Zod schema
|
|
@@ -718,7 +698,7 @@ type OAuthConnection = z.infer<typeof OAuthConnectionSchema>;
|
|
|
718
698
|
* Request to disconnect OAuth provider.
|
|
719
699
|
*/
|
|
720
700
|
declare const OAuthDisconnectRequestRequestSchema: z.ZodObject<{
|
|
721
|
-
provider: z.ZodEnum<typeof
|
|
701
|
+
provider: z.ZodEnum<typeof OAuthConnectionProvider>;
|
|
722
702
|
}, z.core.$strip>;
|
|
723
703
|
/**
|
|
724
704
|
* Infer TypeScript type from Zod schema
|
|
@@ -876,7 +856,7 @@ type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>;
|
|
|
876
856
|
declare const OTPVerifyRequestSchema: z.ZodObject<{
|
|
877
857
|
identifier: z.ZodString;
|
|
878
858
|
otp: z.ZodString;
|
|
879
|
-
channel: z.ZodOptional<z.ZodEnum<typeof
|
|
859
|
+
channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
|
|
880
860
|
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
881
861
|
}, z.core.$strip>;
|
|
882
862
|
/**
|
|
@@ -933,13 +913,13 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
|
933
913
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
934
914
|
is_staff: z.ZodBoolean;
|
|
935
915
|
is_superuser: z.ZodBoolean;
|
|
936
|
-
date_joined: z.
|
|
937
|
-
last_login: z.ZodNullable<z.
|
|
916
|
+
date_joined: z.ZodString;
|
|
917
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
938
918
|
unanswered_messages_count: z.ZodInt;
|
|
939
919
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
940
920
|
token: z.ZodString;
|
|
941
921
|
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
942
|
-
expires_at: z.
|
|
922
|
+
expires_at: z.ZodString;
|
|
943
923
|
channels: z.ZodArray<z.ZodString>;
|
|
944
924
|
}, z.core.$strip>>;
|
|
945
925
|
}, z.core.$strip>>>;
|
|
@@ -1025,13 +1005,13 @@ declare const UserSchema: z.ZodObject<{
|
|
|
1025
1005
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
1026
1006
|
is_staff: z.ZodBoolean;
|
|
1027
1007
|
is_superuser: z.ZodBoolean;
|
|
1028
|
-
date_joined: z.
|
|
1029
|
-
last_login: z.ZodNullable<z.
|
|
1008
|
+
date_joined: z.ZodString;
|
|
1009
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
1030
1010
|
unanswered_messages_count: z.ZodInt;
|
|
1031
1011
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
1032
1012
|
token: z.ZodString;
|
|
1033
1013
|
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
1034
|
-
expires_at: z.
|
|
1014
|
+
expires_at: z.ZodString;
|
|
1035
1015
|
channels: z.ZodArray<z.ZodString>;
|
|
1036
1016
|
}, z.core.$strip>>;
|
|
1037
1017
|
}, z.core.$strip>;
|
|
@@ -1751,11 +1731,13 @@ declare class CentrifugoMonitoring {
|
|
|
1751
1731
|
centrifugoMonitorOverviewRetrieve(params?: {
|
|
1752
1732
|
hours?: number;
|
|
1753
1733
|
}): Promise<CentrifugoOverviewStats$1>;
|
|
1754
|
-
centrifugoMonitorPublishesList(channel?: string, page?: number, page_size?: number, status?: string): Promise<PaginatedPublishList$1>;
|
|
1734
|
+
centrifugoMonitorPublishesList(channel?: string, ordering?: string, page?: number, page_size?: number, search?: string, status?: string): Promise<PaginatedPublishList$1>;
|
|
1755
1735
|
centrifugoMonitorPublishesList(params?: {
|
|
1756
1736
|
channel?: string;
|
|
1737
|
+
ordering?: string;
|
|
1757
1738
|
page?: number;
|
|
1758
1739
|
page_size?: number;
|
|
1740
|
+
search?: string;
|
|
1759
1741
|
status?: string;
|
|
1760
1742
|
}): Promise<PaginatedPublishList$1>;
|
|
1761
1743
|
centrifugoMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<TimelineResponse$1>;
|
|
@@ -2670,8 +2652,8 @@ declare const PaginatedPublishListSchema: z.ZodObject<{
|
|
|
2670
2652
|
acks_received: z.ZodInt;
|
|
2671
2653
|
acks_expected: z.ZodNullable<z.ZodInt>;
|
|
2672
2654
|
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
2673
|
-
created_at: z.
|
|
2674
|
-
completed_at: z.ZodNullable<z.
|
|
2655
|
+
created_at: z.ZodString;
|
|
2656
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
2675
2657
|
error_code: z.ZodNullable<z.ZodString>;
|
|
2676
2658
|
error_message: z.ZodNullable<z.ZodString>;
|
|
2677
2659
|
}, z.core.$strip>>;
|
|
@@ -2699,8 +2681,8 @@ declare const PublishSchema: z.ZodObject<{
|
|
|
2699
2681
|
acks_received: z.ZodInt;
|
|
2700
2682
|
acks_expected: z.ZodNullable<z.ZodInt>;
|
|
2701
2683
|
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
2702
|
-
created_at: z.
|
|
2703
|
-
completed_at: z.ZodNullable<z.
|
|
2684
|
+
created_at: z.ZodString;
|
|
2685
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
2704
2686
|
error_code: z.ZodNullable<z.ZodString>;
|
|
2705
2687
|
error_message: z.ZodNullable<z.ZodString>;
|
|
2706
2688
|
}, z.core.$strip>;
|
|
@@ -2977,8 +2959,10 @@ declare function getCentrifugoMonitorOverviewRetrieve(params?: {
|
|
|
2977
2959
|
*/
|
|
2978
2960
|
declare function getCentrifugoMonitorPublishesList(params?: {
|
|
2979
2961
|
channel?: string;
|
|
2962
|
+
ordering?: string;
|
|
2980
2963
|
page?: number;
|
|
2981
2964
|
page_size?: number;
|
|
2965
|
+
search?: string;
|
|
2982
2966
|
status?: string;
|
|
2983
2967
|
}, client?: any): Promise<PaginatedPublishList>;
|
|
2984
2968
|
/**
|
|
@@ -3295,10 +3279,12 @@ interface DeviceList$1 {
|
|
|
3295
3279
|
declare class TotpManagement {
|
|
3296
3280
|
private client;
|
|
3297
3281
|
constructor(client: any);
|
|
3298
|
-
totpDevicesList(page?: number, page_size?: number): Promise<PaginatedDeviceListResponseList$1>;
|
|
3282
|
+
totpDevicesList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<PaginatedDeviceListResponseList$1>;
|
|
3299
3283
|
totpDevicesList(params?: {
|
|
3284
|
+
ordering?: string;
|
|
3300
3285
|
page?: number;
|
|
3301
3286
|
page_size?: number;
|
|
3287
|
+
search?: string;
|
|
3302
3288
|
}): Promise<PaginatedDeviceListResponseList$1>;
|
|
3303
3289
|
/**
|
|
3304
3290
|
* Completely disable 2FA for account. Requires verification code.
|
|
@@ -3685,9 +3671,9 @@ declare const DeviceListSchema: z.ZodObject<{
|
|
|
3685
3671
|
name: z.ZodString;
|
|
3686
3672
|
is_primary: z.ZodBoolean;
|
|
3687
3673
|
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3688
|
-
created_at: z.
|
|
3689
|
-
confirmed_at: z.ZodNullable<z.
|
|
3690
|
-
last_used_at: z.ZodNullable<z.
|
|
3674
|
+
created_at: z.ZodString;
|
|
3675
|
+
confirmed_at: z.ZodNullable<z.ZodString>;
|
|
3676
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
3691
3677
|
}, z.core.$strip>;
|
|
3692
3678
|
/**
|
|
3693
3679
|
* Infer TypeScript type from Zod schema
|
|
@@ -3703,9 +3689,9 @@ declare const DeviceListResponseSchema: z.ZodObject<{
|
|
|
3703
3689
|
name: z.ZodString;
|
|
3704
3690
|
is_primary: z.ZodBoolean;
|
|
3705
3691
|
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3706
|
-
created_at: z.
|
|
3707
|
-
confirmed_at: z.ZodNullable<z.
|
|
3708
|
-
last_used_at: z.ZodNullable<z.
|
|
3692
|
+
created_at: z.ZodString;
|
|
3693
|
+
confirmed_at: z.ZodNullable<z.ZodString>;
|
|
3694
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
3709
3695
|
}, z.core.$strip>>;
|
|
3710
3696
|
has_2fa_enabled: z.ZodBoolean;
|
|
3711
3697
|
}, z.core.$strip>;
|
|
@@ -3747,9 +3733,9 @@ declare const PaginatedDeviceListResponseListSchema: z.ZodObject<{
|
|
|
3747
3733
|
name: z.ZodString;
|
|
3748
3734
|
is_primary: z.ZodBoolean;
|
|
3749
3735
|
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3750
|
-
created_at: z.
|
|
3751
|
-
confirmed_at: z.ZodNullable<z.
|
|
3752
|
-
last_used_at: z.ZodNullable<z.
|
|
3736
|
+
created_at: z.ZodString;
|
|
3737
|
+
confirmed_at: z.ZodNullable<z.ZodString>;
|
|
3738
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
3753
3739
|
}, z.core.$strip>>;
|
|
3754
3740
|
has_2fa_enabled: z.ZodBoolean;
|
|
3755
3741
|
}, z.core.$strip>>;
|
|
@@ -3823,8 +3809,8 @@ declare const TotpVerifyUserSchema: z.ZodObject<{
|
|
|
3823
3809
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
3824
3810
|
is_staff: z.ZodBoolean;
|
|
3825
3811
|
is_superuser: z.ZodBoolean;
|
|
3826
|
-
date_joined: z.
|
|
3827
|
-
last_login: z.ZodNullable<z.
|
|
3812
|
+
date_joined: z.ZodString;
|
|
3813
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
3828
3814
|
unanswered_messages_count: z.ZodInt;
|
|
3829
3815
|
}, z.core.$strip>;
|
|
3830
3816
|
/**
|
|
@@ -3898,8 +3884,8 @@ declare const VerifyResponseSchema: z.ZodObject<{
|
|
|
3898
3884
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
3899
3885
|
is_staff: z.ZodBoolean;
|
|
3900
3886
|
is_superuser: z.ZodBoolean;
|
|
3901
|
-
date_joined: z.
|
|
3902
|
-
last_login: z.ZodNullable<z.
|
|
3887
|
+
date_joined: z.ZodString;
|
|
3888
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
3903
3889
|
unanswered_messages_count: z.ZodInt;
|
|
3904
3890
|
}, z.core.$strip>;
|
|
3905
3891
|
remaining_backup_codes: z.ZodOptional<z.ZodInt>;
|
|
@@ -3992,8 +3978,10 @@ declare function createTotpBackupCodesRegenerateCreate(data: BackupCodesRegenera
|
|
|
3992
3978
|
* @path /cfg/totp/devices/
|
|
3993
3979
|
*/
|
|
3994
3980
|
declare function getTotpDevicesList(params?: {
|
|
3981
|
+
ordering?: string;
|
|
3995
3982
|
page?: number;
|
|
3996
3983
|
page_size?: number;
|
|
3984
|
+
search?: string;
|
|
3997
3985
|
}, client?: any): Promise<PaginatedDeviceListResponseList>;
|
|
3998
3986
|
/**
|
|
3999
3987
|
* API operation
|
|
@@ -4982,8 +4970,10 @@ declare function useCentrifugoMonitorOverviewRetrieve(params?: {
|
|
|
4982
4970
|
*/
|
|
4983
4971
|
declare function useCentrifugoMonitorPublishesList(params?: {
|
|
4984
4972
|
channel?: string;
|
|
4973
|
+
ordering?: string;
|
|
4985
4974
|
page?: number;
|
|
4986
4975
|
page_size?: number;
|
|
4976
|
+
search?: string;
|
|
4987
4977
|
status?: string;
|
|
4988
4978
|
}, client?: API$2): ReturnType<typeof useSWR<PaginatedPublishList>>;
|
|
4989
4979
|
/**
|
|
@@ -5119,8 +5109,10 @@ declare function useCreateTotpBackupCodesRegenerateCreate(): (data: BackupCodesR
|
|
|
5119
5109
|
* @path /cfg/totp/devices/
|
|
5120
5110
|
*/
|
|
5121
5111
|
declare function useTotpDevicesList(params?: {
|
|
5112
|
+
ordering?: string;
|
|
5122
5113
|
page?: number;
|
|
5123
5114
|
page_size?: number;
|
|
5115
|
+
search?: string;
|
|
5124
5116
|
}, client?: API$1): ReturnType<typeof useSWR<PaginatedDeviceListResponseList>>;
|
|
5125
5117
|
/**
|
|
5126
5118
|
* API operation
|
package/dist/clients.d.ts
CHANGED
|
@@ -30,18 +30,11 @@ declare class Auth {
|
|
|
30
30
|
accountsTokenRefreshCreate(data: TokenRefreshRequest$1): Promise<TokenRefresh$1>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* OAuth provider name (github, google, etc.)
|
|
35
|
-
* * `github` - GitHub
|
|
36
|
-
*/
|
|
37
|
-
declare enum OAuthConnectionProvider {
|
|
38
|
-
GITHUB = "github"
|
|
39
|
-
}
|
|
40
33
|
/**
|
|
41
34
|
* OAuth provider to disconnect
|
|
42
35
|
* * `github` - GitHub
|
|
43
36
|
*/
|
|
44
|
-
declare enum
|
|
37
|
+
declare enum OAuthConnectionProvider {
|
|
45
38
|
GITHUB = "github"
|
|
46
39
|
}
|
|
47
40
|
/**
|
|
@@ -53,26 +46,13 @@ declare enum OTPRequestRequestChannel {
|
|
|
53
46
|
EMAIL = "email",
|
|
54
47
|
PHONE = "phone"
|
|
55
48
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
58
|
-
* * `email` - Email
|
|
59
|
-
* * `phone` - Phone
|
|
60
|
-
*/
|
|
61
|
-
declare enum OTPVerifyRequestChannel {
|
|
62
|
-
EMAIL = "email",
|
|
63
|
-
PHONE = "phone"
|
|
64
|
-
}
|
|
65
49
|
|
|
66
50
|
type enums_OAuthConnectionProvider = OAuthConnectionProvider;
|
|
67
51
|
declare const enums_OAuthConnectionProvider: typeof OAuthConnectionProvider;
|
|
68
|
-
type enums_OAuthDisconnectRequestRequestProvider = OAuthDisconnectRequestRequestProvider;
|
|
69
|
-
declare const enums_OAuthDisconnectRequestRequestProvider: typeof OAuthDisconnectRequestRequestProvider;
|
|
70
52
|
type enums_OTPRequestRequestChannel = OTPRequestRequestChannel;
|
|
71
53
|
declare const enums_OTPRequestRequestChannel: typeof OTPRequestRequestChannel;
|
|
72
|
-
type enums_OTPVerifyRequestChannel = OTPVerifyRequestChannel;
|
|
73
|
-
declare const enums_OTPVerifyRequestChannel: typeof OTPVerifyRequestChannel;
|
|
74
54
|
declare namespace enums {
|
|
75
|
-
export { enums_OAuthConnectionProvider as OAuthConnectionProvider,
|
|
55
|
+
export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel };
|
|
76
56
|
}
|
|
77
57
|
|
|
78
58
|
/**
|
|
@@ -84,7 +64,7 @@ interface OAuthDisconnectRequestRequest$1 {
|
|
|
84
64
|
/** OAuth provider to disconnect
|
|
85
65
|
|
|
86
66
|
* `github` - GitHub */
|
|
87
|
-
provider:
|
|
67
|
+
provider: OAuthConnectionProvider;
|
|
88
68
|
}
|
|
89
69
|
/**
|
|
90
70
|
* Request to start OAuth flow.
|
|
@@ -380,7 +360,7 @@ interface OTPVerifyRequest$1 {
|
|
|
380
360
|
|
|
381
361
|
* `email` - Email
|
|
382
362
|
* `phone` - Phone */
|
|
383
|
-
channel?:
|
|
363
|
+
channel?: OTPRequestRequestChannel;
|
|
384
364
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
385
365
|
source_url?: string;
|
|
386
366
|
}
|
|
@@ -602,7 +582,7 @@ type AccountDeleteResponse = z.infer<typeof AccountDeleteResponseSchema>;
|
|
|
602
582
|
declare const CentrifugoTokenSchema: z.ZodObject<{
|
|
603
583
|
token: z.ZodString;
|
|
604
584
|
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
605
|
-
expires_at: z.
|
|
585
|
+
expires_at: z.ZodString;
|
|
606
586
|
channels: z.ZodArray<z.ZodString>;
|
|
607
587
|
}, z.core.$strip>;
|
|
608
588
|
/**
|
|
@@ -699,8 +679,8 @@ declare const OAuthConnectionSchema: z.ZodObject<{
|
|
|
699
679
|
provider_username: z.ZodString;
|
|
700
680
|
provider_email: z.ZodEmail;
|
|
701
681
|
provider_avatar_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
702
|
-
connected_at: z.
|
|
703
|
-
last_login_at: z.
|
|
682
|
+
connected_at: z.ZodString;
|
|
683
|
+
last_login_at: z.ZodString;
|
|
704
684
|
}, z.core.$strip>;
|
|
705
685
|
/**
|
|
706
686
|
* Infer TypeScript type from Zod schema
|
|
@@ -718,7 +698,7 @@ type OAuthConnection = z.infer<typeof OAuthConnectionSchema>;
|
|
|
718
698
|
* Request to disconnect OAuth provider.
|
|
719
699
|
*/
|
|
720
700
|
declare const OAuthDisconnectRequestRequestSchema: z.ZodObject<{
|
|
721
|
-
provider: z.ZodEnum<typeof
|
|
701
|
+
provider: z.ZodEnum<typeof OAuthConnectionProvider>;
|
|
722
702
|
}, z.core.$strip>;
|
|
723
703
|
/**
|
|
724
704
|
* Infer TypeScript type from Zod schema
|
|
@@ -876,7 +856,7 @@ type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>;
|
|
|
876
856
|
declare const OTPVerifyRequestSchema: z.ZodObject<{
|
|
877
857
|
identifier: z.ZodString;
|
|
878
858
|
otp: z.ZodString;
|
|
879
|
-
channel: z.ZodOptional<z.ZodEnum<typeof
|
|
859
|
+
channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
|
|
880
860
|
source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
881
861
|
}, z.core.$strip>;
|
|
882
862
|
/**
|
|
@@ -933,13 +913,13 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
|
933
913
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
934
914
|
is_staff: z.ZodBoolean;
|
|
935
915
|
is_superuser: z.ZodBoolean;
|
|
936
|
-
date_joined: z.
|
|
937
|
-
last_login: z.ZodNullable<z.
|
|
916
|
+
date_joined: z.ZodString;
|
|
917
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
938
918
|
unanswered_messages_count: z.ZodInt;
|
|
939
919
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
940
920
|
token: z.ZodString;
|
|
941
921
|
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
942
|
-
expires_at: z.
|
|
922
|
+
expires_at: z.ZodString;
|
|
943
923
|
channels: z.ZodArray<z.ZodString>;
|
|
944
924
|
}, z.core.$strip>>;
|
|
945
925
|
}, z.core.$strip>>>;
|
|
@@ -1025,13 +1005,13 @@ declare const UserSchema: z.ZodObject<{
|
|
|
1025
1005
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
1026
1006
|
is_staff: z.ZodBoolean;
|
|
1027
1007
|
is_superuser: z.ZodBoolean;
|
|
1028
|
-
date_joined: z.
|
|
1029
|
-
last_login: z.ZodNullable<z.
|
|
1008
|
+
date_joined: z.ZodString;
|
|
1009
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
1030
1010
|
unanswered_messages_count: z.ZodInt;
|
|
1031
1011
|
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
1032
1012
|
token: z.ZodString;
|
|
1033
1013
|
centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
1034
|
-
expires_at: z.
|
|
1014
|
+
expires_at: z.ZodString;
|
|
1035
1015
|
channels: z.ZodArray<z.ZodString>;
|
|
1036
1016
|
}, z.core.$strip>>;
|
|
1037
1017
|
}, z.core.$strip>;
|
|
@@ -1751,11 +1731,13 @@ declare class CentrifugoMonitoring {
|
|
|
1751
1731
|
centrifugoMonitorOverviewRetrieve(params?: {
|
|
1752
1732
|
hours?: number;
|
|
1753
1733
|
}): Promise<CentrifugoOverviewStats$1>;
|
|
1754
|
-
centrifugoMonitorPublishesList(channel?: string, page?: number, page_size?: number, status?: string): Promise<PaginatedPublishList$1>;
|
|
1734
|
+
centrifugoMonitorPublishesList(channel?: string, ordering?: string, page?: number, page_size?: number, search?: string, status?: string): Promise<PaginatedPublishList$1>;
|
|
1755
1735
|
centrifugoMonitorPublishesList(params?: {
|
|
1756
1736
|
channel?: string;
|
|
1737
|
+
ordering?: string;
|
|
1757
1738
|
page?: number;
|
|
1758
1739
|
page_size?: number;
|
|
1740
|
+
search?: string;
|
|
1759
1741
|
status?: string;
|
|
1760
1742
|
}): Promise<PaginatedPublishList$1>;
|
|
1761
1743
|
centrifugoMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<TimelineResponse$1>;
|
|
@@ -2670,8 +2652,8 @@ declare const PaginatedPublishListSchema: z.ZodObject<{
|
|
|
2670
2652
|
acks_received: z.ZodInt;
|
|
2671
2653
|
acks_expected: z.ZodNullable<z.ZodInt>;
|
|
2672
2654
|
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
2673
|
-
created_at: z.
|
|
2674
|
-
completed_at: z.ZodNullable<z.
|
|
2655
|
+
created_at: z.ZodString;
|
|
2656
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
2675
2657
|
error_code: z.ZodNullable<z.ZodString>;
|
|
2676
2658
|
error_message: z.ZodNullable<z.ZodString>;
|
|
2677
2659
|
}, z.core.$strip>>;
|
|
@@ -2699,8 +2681,8 @@ declare const PublishSchema: z.ZodObject<{
|
|
|
2699
2681
|
acks_received: z.ZodInt;
|
|
2700
2682
|
acks_expected: z.ZodNullable<z.ZodInt>;
|
|
2701
2683
|
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
2702
|
-
created_at: z.
|
|
2703
|
-
completed_at: z.ZodNullable<z.
|
|
2684
|
+
created_at: z.ZodString;
|
|
2685
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
2704
2686
|
error_code: z.ZodNullable<z.ZodString>;
|
|
2705
2687
|
error_message: z.ZodNullable<z.ZodString>;
|
|
2706
2688
|
}, z.core.$strip>;
|
|
@@ -2977,8 +2959,10 @@ declare function getCentrifugoMonitorOverviewRetrieve(params?: {
|
|
|
2977
2959
|
*/
|
|
2978
2960
|
declare function getCentrifugoMonitorPublishesList(params?: {
|
|
2979
2961
|
channel?: string;
|
|
2962
|
+
ordering?: string;
|
|
2980
2963
|
page?: number;
|
|
2981
2964
|
page_size?: number;
|
|
2965
|
+
search?: string;
|
|
2982
2966
|
status?: string;
|
|
2983
2967
|
}, client?: any): Promise<PaginatedPublishList>;
|
|
2984
2968
|
/**
|
|
@@ -3295,10 +3279,12 @@ interface DeviceList$1 {
|
|
|
3295
3279
|
declare class TotpManagement {
|
|
3296
3280
|
private client;
|
|
3297
3281
|
constructor(client: any);
|
|
3298
|
-
totpDevicesList(page?: number, page_size?: number): Promise<PaginatedDeviceListResponseList$1>;
|
|
3282
|
+
totpDevicesList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<PaginatedDeviceListResponseList$1>;
|
|
3299
3283
|
totpDevicesList(params?: {
|
|
3284
|
+
ordering?: string;
|
|
3300
3285
|
page?: number;
|
|
3301
3286
|
page_size?: number;
|
|
3287
|
+
search?: string;
|
|
3302
3288
|
}): Promise<PaginatedDeviceListResponseList$1>;
|
|
3303
3289
|
/**
|
|
3304
3290
|
* Completely disable 2FA for account. Requires verification code.
|
|
@@ -3685,9 +3671,9 @@ declare const DeviceListSchema: z.ZodObject<{
|
|
|
3685
3671
|
name: z.ZodString;
|
|
3686
3672
|
is_primary: z.ZodBoolean;
|
|
3687
3673
|
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3688
|
-
created_at: z.
|
|
3689
|
-
confirmed_at: z.ZodNullable<z.
|
|
3690
|
-
last_used_at: z.ZodNullable<z.
|
|
3674
|
+
created_at: z.ZodString;
|
|
3675
|
+
confirmed_at: z.ZodNullable<z.ZodString>;
|
|
3676
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
3691
3677
|
}, z.core.$strip>;
|
|
3692
3678
|
/**
|
|
3693
3679
|
* Infer TypeScript type from Zod schema
|
|
@@ -3703,9 +3689,9 @@ declare const DeviceListResponseSchema: z.ZodObject<{
|
|
|
3703
3689
|
name: z.ZodString;
|
|
3704
3690
|
is_primary: z.ZodBoolean;
|
|
3705
3691
|
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3706
|
-
created_at: z.
|
|
3707
|
-
confirmed_at: z.ZodNullable<z.
|
|
3708
|
-
last_used_at: z.ZodNullable<z.
|
|
3692
|
+
created_at: z.ZodString;
|
|
3693
|
+
confirmed_at: z.ZodNullable<z.ZodString>;
|
|
3694
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
3709
3695
|
}, z.core.$strip>>;
|
|
3710
3696
|
has_2fa_enabled: z.ZodBoolean;
|
|
3711
3697
|
}, z.core.$strip>;
|
|
@@ -3747,9 +3733,9 @@ declare const PaginatedDeviceListResponseListSchema: z.ZodObject<{
|
|
|
3747
3733
|
name: z.ZodString;
|
|
3748
3734
|
is_primary: z.ZodBoolean;
|
|
3749
3735
|
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3750
|
-
created_at: z.
|
|
3751
|
-
confirmed_at: z.ZodNullable<z.
|
|
3752
|
-
last_used_at: z.ZodNullable<z.
|
|
3736
|
+
created_at: z.ZodString;
|
|
3737
|
+
confirmed_at: z.ZodNullable<z.ZodString>;
|
|
3738
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
3753
3739
|
}, z.core.$strip>>;
|
|
3754
3740
|
has_2fa_enabled: z.ZodBoolean;
|
|
3755
3741
|
}, z.core.$strip>>;
|
|
@@ -3823,8 +3809,8 @@ declare const TotpVerifyUserSchema: z.ZodObject<{
|
|
|
3823
3809
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
3824
3810
|
is_staff: z.ZodBoolean;
|
|
3825
3811
|
is_superuser: z.ZodBoolean;
|
|
3826
|
-
date_joined: z.
|
|
3827
|
-
last_login: z.ZodNullable<z.
|
|
3812
|
+
date_joined: z.ZodString;
|
|
3813
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
3828
3814
|
unanswered_messages_count: z.ZodInt;
|
|
3829
3815
|
}, z.core.$strip>;
|
|
3830
3816
|
/**
|
|
@@ -3898,8 +3884,8 @@ declare const VerifyResponseSchema: z.ZodObject<{
|
|
|
3898
3884
|
avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
3899
3885
|
is_staff: z.ZodBoolean;
|
|
3900
3886
|
is_superuser: z.ZodBoolean;
|
|
3901
|
-
date_joined: z.
|
|
3902
|
-
last_login: z.ZodNullable<z.
|
|
3887
|
+
date_joined: z.ZodString;
|
|
3888
|
+
last_login: z.ZodNullable<z.ZodString>;
|
|
3903
3889
|
unanswered_messages_count: z.ZodInt;
|
|
3904
3890
|
}, z.core.$strip>;
|
|
3905
3891
|
remaining_backup_codes: z.ZodOptional<z.ZodInt>;
|
|
@@ -3992,8 +3978,10 @@ declare function createTotpBackupCodesRegenerateCreate(data: BackupCodesRegenera
|
|
|
3992
3978
|
* @path /cfg/totp/devices/
|
|
3993
3979
|
*/
|
|
3994
3980
|
declare function getTotpDevicesList(params?: {
|
|
3981
|
+
ordering?: string;
|
|
3995
3982
|
page?: number;
|
|
3996
3983
|
page_size?: number;
|
|
3984
|
+
search?: string;
|
|
3997
3985
|
}, client?: any): Promise<PaginatedDeviceListResponseList>;
|
|
3998
3986
|
/**
|
|
3999
3987
|
* API operation
|
|
@@ -4982,8 +4970,10 @@ declare function useCentrifugoMonitorOverviewRetrieve(params?: {
|
|
|
4982
4970
|
*/
|
|
4983
4971
|
declare function useCentrifugoMonitorPublishesList(params?: {
|
|
4984
4972
|
channel?: string;
|
|
4973
|
+
ordering?: string;
|
|
4985
4974
|
page?: number;
|
|
4986
4975
|
page_size?: number;
|
|
4976
|
+
search?: string;
|
|
4987
4977
|
status?: string;
|
|
4988
4978
|
}, client?: API$2): ReturnType<typeof useSWR<PaginatedPublishList>>;
|
|
4989
4979
|
/**
|
|
@@ -5119,8 +5109,10 @@ declare function useCreateTotpBackupCodesRegenerateCreate(): (data: BackupCodesR
|
|
|
5119
5109
|
* @path /cfg/totp/devices/
|
|
5120
5110
|
*/
|
|
5121
5111
|
declare function useTotpDevicesList(params?: {
|
|
5112
|
+
ordering?: string;
|
|
5122
5113
|
page?: number;
|
|
5123
5114
|
page_size?: number;
|
|
5115
|
+
search?: string;
|
|
5124
5116
|
}, client?: API$1): ReturnType<typeof useSWR<PaginatedDeviceListResponseList>>;
|
|
5125
5117
|
/**
|
|
5126
5118
|
* API operation
|