@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/auth-server.cjs
CHANGED
|
@@ -92,7 +92,7 @@ var Oauth = class {
|
|
|
92
92
|
*/
|
|
93
93
|
async accountsOauthConnectionsList() {
|
|
94
94
|
const response = await this.client.request("GET", "/cfg/accounts/oauth/connections/");
|
|
95
|
-
return response;
|
|
95
|
+
return response.results || response;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* Disconnect OAuth provider
|
|
@@ -870,20 +870,11 @@ var OAuthConnectionProvider = /* @__PURE__ */ ((OAuthConnectionProvider2) => {
|
|
|
870
870
|
OAuthConnectionProvider2["GITHUB"] = "github";
|
|
871
871
|
return OAuthConnectionProvider2;
|
|
872
872
|
})(OAuthConnectionProvider || {});
|
|
873
|
-
var OAuthDisconnectRequestRequestProvider = /* @__PURE__ */ ((OAuthDisconnectRequestRequestProvider2) => {
|
|
874
|
-
OAuthDisconnectRequestRequestProvider2["GITHUB"] = "github";
|
|
875
|
-
return OAuthDisconnectRequestRequestProvider2;
|
|
876
|
-
})(OAuthDisconnectRequestRequestProvider || {});
|
|
877
873
|
var OTPRequestRequestChannel = /* @__PURE__ */ ((OTPRequestRequestChannel2) => {
|
|
878
874
|
OTPRequestRequestChannel2["EMAIL"] = "email";
|
|
879
875
|
OTPRequestRequestChannel2["PHONE"] = "phone";
|
|
880
876
|
return OTPRequestRequestChannel2;
|
|
881
877
|
})(OTPRequestRequestChannel || {});
|
|
882
|
-
var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
|
|
883
|
-
OTPVerifyRequestChannel2["EMAIL"] = "email";
|
|
884
|
-
OTPVerifyRequestChannel2["PHONE"] = "phone";
|
|
885
|
-
return OTPVerifyRequestChannel2;
|
|
886
|
-
})(OTPVerifyRequestChannel || {});
|
|
887
878
|
|
|
888
879
|
// src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
889
880
|
var import_zod = require("zod");
|
|
@@ -897,7 +888,7 @@ var import_zod2 = require("zod");
|
|
|
897
888
|
var CentrifugoTokenSchema = import_zod2.z.object({
|
|
898
889
|
token: import_zod2.z.string(),
|
|
899
890
|
centrifugo_url: import_zod2.z.union([import_zod2.z.url(), import_zod2.z.literal("")]),
|
|
900
|
-
expires_at: import_zod2.z.
|
|
891
|
+
expires_at: import_zod2.z.string().datetime({ offset: true }),
|
|
901
892
|
channels: import_zod2.z.array(import_zod2.z.string())
|
|
902
893
|
});
|
|
903
894
|
|
|
@@ -938,14 +929,14 @@ var OAuthConnectionSchema = import_zod7.z.object({
|
|
|
938
929
|
provider_username: import_zod7.z.string(),
|
|
939
930
|
provider_email: import_zod7.z.email(),
|
|
940
931
|
provider_avatar_url: import_zod7.z.union([import_zod7.z.url(), import_zod7.z.literal("")]),
|
|
941
|
-
connected_at: import_zod7.z.
|
|
942
|
-
last_login_at: import_zod7.z.
|
|
932
|
+
connected_at: import_zod7.z.string().datetime({ offset: true }),
|
|
933
|
+
last_login_at: import_zod7.z.string().datetime({ offset: true })
|
|
943
934
|
});
|
|
944
935
|
|
|
945
936
|
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
946
937
|
var import_zod8 = require("zod");
|
|
947
938
|
var OAuthDisconnectRequestRequestSchema = import_zod8.z.object({
|
|
948
|
-
provider: import_zod8.z.nativeEnum(
|
|
939
|
+
provider: import_zod8.z.nativeEnum(OAuthConnectionProvider)
|
|
949
940
|
});
|
|
950
941
|
|
|
951
942
|
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
@@ -999,7 +990,7 @@ var import_zod15 = require("zod");
|
|
|
999
990
|
var OTPVerifyRequestSchema = import_zod15.z.object({
|
|
1000
991
|
identifier: import_zod15.z.string().min(1),
|
|
1001
992
|
otp: import_zod15.z.string().min(6).max(6),
|
|
1002
|
-
channel: import_zod15.z.nativeEnum(
|
|
993
|
+
channel: import_zod15.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1003
994
|
source_url: import_zod15.z.union([import_zod15.z.url(), import_zod15.z.literal("")]).optional()
|
|
1004
995
|
});
|
|
1005
996
|
|
|
@@ -1022,8 +1013,8 @@ var UserSchema = import_zod16.z.object({
|
|
|
1022
1013
|
avatar: import_zod16.z.union([import_zod16.z.url(), import_zod16.z.literal("")]).nullable(),
|
|
1023
1014
|
is_staff: import_zod16.z.boolean(),
|
|
1024
1015
|
is_superuser: import_zod16.z.boolean(),
|
|
1025
|
-
date_joined: import_zod16.z.
|
|
1026
|
-
last_login: import_zod16.z.
|
|
1016
|
+
date_joined: import_zod16.z.string().datetime({ offset: true }),
|
|
1017
|
+
last_login: import_zod16.z.string().datetime({ offset: true }).nullable(),
|
|
1027
1018
|
unanswered_messages_count: import_zod16.z.int(),
|
|
1028
1019
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
1029
1020
|
});
|
|
@@ -1629,8 +1620,8 @@ var PublishSchema = import_zod51.z.object({
|
|
|
1629
1620
|
acks_received: import_zod51.z.int(),
|
|
1630
1621
|
acks_expected: import_zod51.z.int().nullable(),
|
|
1631
1622
|
duration_ms: import_zod51.z.number().nullable(),
|
|
1632
|
-
created_at: import_zod51.z.
|
|
1633
|
-
completed_at: import_zod51.z.
|
|
1623
|
+
created_at: import_zod51.z.string().datetime({ offset: true }),
|
|
1624
|
+
completed_at: import_zod51.z.string().datetime({ offset: true }).nullable(),
|
|
1634
1625
|
error_code: import_zod51.z.string().nullable(),
|
|
1635
1626
|
error_message: import_zod51.z.string().nullable()
|
|
1636
1627
|
});
|