@djangocfg/api 2.1.127 → 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/hooks.cjs
CHANGED
|
@@ -95,7 +95,7 @@ var Oauth = class {
|
|
|
95
95
|
*/
|
|
96
96
|
async accountsOauthConnectionsList() {
|
|
97
97
|
const response = await this.client.request("GET", "/cfg/accounts/oauth/connections/");
|
|
98
|
-
return response;
|
|
98
|
+
return response.results || response;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Disconnect OAuth provider
|
|
@@ -873,20 +873,11 @@ var OAuthConnectionProvider = /* @__PURE__ */ ((OAuthConnectionProvider2) => {
|
|
|
873
873
|
OAuthConnectionProvider2["GITHUB"] = "github";
|
|
874
874
|
return OAuthConnectionProvider2;
|
|
875
875
|
})(OAuthConnectionProvider || {});
|
|
876
|
-
var OAuthDisconnectRequestRequestProvider = /* @__PURE__ */ ((OAuthDisconnectRequestRequestProvider2) => {
|
|
877
|
-
OAuthDisconnectRequestRequestProvider2["GITHUB"] = "github";
|
|
878
|
-
return OAuthDisconnectRequestRequestProvider2;
|
|
879
|
-
})(OAuthDisconnectRequestRequestProvider || {});
|
|
880
876
|
var OTPRequestRequestChannel = /* @__PURE__ */ ((OTPRequestRequestChannel2) => {
|
|
881
877
|
OTPRequestRequestChannel2["EMAIL"] = "email";
|
|
882
878
|
OTPRequestRequestChannel2["PHONE"] = "phone";
|
|
883
879
|
return OTPRequestRequestChannel2;
|
|
884
880
|
})(OTPRequestRequestChannel || {});
|
|
885
|
-
var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
|
|
886
|
-
OTPVerifyRequestChannel2["EMAIL"] = "email";
|
|
887
|
-
OTPVerifyRequestChannel2["PHONE"] = "phone";
|
|
888
|
-
return OTPVerifyRequestChannel2;
|
|
889
|
-
})(OTPVerifyRequestChannel || {});
|
|
890
881
|
|
|
891
882
|
// src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
892
883
|
var import_zod2 = require("zod");
|
|
@@ -900,7 +891,7 @@ var import_zod3 = require("zod");
|
|
|
900
891
|
var CentrifugoTokenSchema = import_zod3.z.object({
|
|
901
892
|
token: import_zod3.z.string(),
|
|
902
893
|
centrifugo_url: import_zod3.z.union([import_zod3.z.url(), import_zod3.z.literal("")]),
|
|
903
|
-
expires_at: import_zod3.z.
|
|
894
|
+
expires_at: import_zod3.z.string().datetime({ offset: true }),
|
|
904
895
|
channels: import_zod3.z.array(import_zod3.z.string())
|
|
905
896
|
});
|
|
906
897
|
|
|
@@ -941,14 +932,14 @@ var OAuthConnectionSchema = import_zod8.z.object({
|
|
|
941
932
|
provider_username: import_zod8.z.string(),
|
|
942
933
|
provider_email: import_zod8.z.email(),
|
|
943
934
|
provider_avatar_url: import_zod8.z.union([import_zod8.z.url(), import_zod8.z.literal("")]),
|
|
944
|
-
connected_at: import_zod8.z.
|
|
945
|
-
last_login_at: import_zod8.z.
|
|
935
|
+
connected_at: import_zod8.z.string().datetime({ offset: true }),
|
|
936
|
+
last_login_at: import_zod8.z.string().datetime({ offset: true })
|
|
946
937
|
});
|
|
947
938
|
|
|
948
939
|
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
949
940
|
var import_zod9 = require("zod");
|
|
950
941
|
var OAuthDisconnectRequestRequestSchema = import_zod9.z.object({
|
|
951
|
-
provider: import_zod9.z.nativeEnum(
|
|
942
|
+
provider: import_zod9.z.nativeEnum(OAuthConnectionProvider)
|
|
952
943
|
});
|
|
953
944
|
|
|
954
945
|
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
@@ -1002,7 +993,7 @@ var import_zod16 = require("zod");
|
|
|
1002
993
|
var OTPVerifyRequestSchema = import_zod16.z.object({
|
|
1003
994
|
identifier: import_zod16.z.string().min(1),
|
|
1004
995
|
otp: import_zod16.z.string().min(6).max(6),
|
|
1005
|
-
channel: import_zod16.z.nativeEnum(
|
|
996
|
+
channel: import_zod16.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1006
997
|
source_url: import_zod16.z.union([import_zod16.z.url(), import_zod16.z.literal("")]).optional()
|
|
1007
998
|
});
|
|
1008
999
|
|
|
@@ -1025,8 +1016,8 @@ var UserSchema = import_zod17.z.object({
|
|
|
1025
1016
|
avatar: import_zod17.z.union([import_zod17.z.url(), import_zod17.z.literal("")]).nullable(),
|
|
1026
1017
|
is_staff: import_zod17.z.boolean(),
|
|
1027
1018
|
is_superuser: import_zod17.z.boolean(),
|
|
1028
|
-
date_joined: import_zod17.z.
|
|
1029
|
-
last_login: import_zod17.z.
|
|
1019
|
+
date_joined: import_zod17.z.string().datetime({ offset: true }),
|
|
1020
|
+
last_login: import_zod17.z.string().datetime({ offset: true }).nullable(),
|
|
1030
1021
|
unanswered_messages_count: import_zod17.z.int(),
|
|
1031
1022
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
1032
1023
|
});
|