@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/index.cjs
CHANGED
|
@@ -212,7 +212,7 @@ var Oauth = class {
|
|
|
212
212
|
*/
|
|
213
213
|
async accountsOauthConnectionsList() {
|
|
214
214
|
const response = await this.client.request("GET", "/cfg/accounts/oauth/connections/");
|
|
215
|
-
return response;
|
|
215
|
+
return response.results || response;
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
218
|
* Disconnect OAuth provider
|
|
@@ -1071,28 +1071,17 @@ var MemoryStorageAdapter = class {
|
|
|
1071
1071
|
var enums_exports = {};
|
|
1072
1072
|
__export(enums_exports, {
|
|
1073
1073
|
OAuthConnectionProvider: () => OAuthConnectionProvider,
|
|
1074
|
-
|
|
1075
|
-
OTPRequestRequestChannel: () => OTPRequestRequestChannel,
|
|
1076
|
-
OTPVerifyRequestChannel: () => OTPVerifyRequestChannel
|
|
1074
|
+
OTPRequestRequestChannel: () => OTPRequestRequestChannel
|
|
1077
1075
|
});
|
|
1078
1076
|
var OAuthConnectionProvider = /* @__PURE__ */ ((OAuthConnectionProvider2) => {
|
|
1079
1077
|
OAuthConnectionProvider2["GITHUB"] = "github";
|
|
1080
1078
|
return OAuthConnectionProvider2;
|
|
1081
1079
|
})(OAuthConnectionProvider || {});
|
|
1082
|
-
var OAuthDisconnectRequestRequestProvider = /* @__PURE__ */ ((OAuthDisconnectRequestRequestProvider2) => {
|
|
1083
|
-
OAuthDisconnectRequestRequestProvider2["GITHUB"] = "github";
|
|
1084
|
-
return OAuthDisconnectRequestRequestProvider2;
|
|
1085
|
-
})(OAuthDisconnectRequestRequestProvider || {});
|
|
1086
1080
|
var OTPRequestRequestChannel = /* @__PURE__ */ ((OTPRequestRequestChannel2) => {
|
|
1087
1081
|
OTPRequestRequestChannel2["EMAIL"] = "email";
|
|
1088
1082
|
OTPRequestRequestChannel2["PHONE"] = "phone";
|
|
1089
1083
|
return OTPRequestRequestChannel2;
|
|
1090
1084
|
})(OTPRequestRequestChannel || {});
|
|
1091
|
-
var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
|
|
1092
|
-
OTPVerifyRequestChannel2["EMAIL"] = "email";
|
|
1093
|
-
OTPVerifyRequestChannel2["PHONE"] = "phone";
|
|
1094
|
-
return OTPVerifyRequestChannel2;
|
|
1095
|
-
})(OTPVerifyRequestChannel || {});
|
|
1096
1085
|
|
|
1097
1086
|
// src/generated/cfg_accounts/_utils/schemas/index.ts
|
|
1098
1087
|
var schemas_exports = {};
|
|
@@ -1132,7 +1121,7 @@ var import_zod2 = require("zod");
|
|
|
1132
1121
|
var CentrifugoTokenSchema = import_zod2.z.object({
|
|
1133
1122
|
token: import_zod2.z.string(),
|
|
1134
1123
|
centrifugo_url: import_zod2.z.union([import_zod2.z.url(), import_zod2.z.literal("")]),
|
|
1135
|
-
expires_at: import_zod2.z.
|
|
1124
|
+
expires_at: import_zod2.z.string().datetime({ offset: true }),
|
|
1136
1125
|
channels: import_zod2.z.array(import_zod2.z.string())
|
|
1137
1126
|
});
|
|
1138
1127
|
|
|
@@ -1173,14 +1162,14 @@ var OAuthConnectionSchema = import_zod7.z.object({
|
|
|
1173
1162
|
provider_username: import_zod7.z.string(),
|
|
1174
1163
|
provider_email: import_zod7.z.email(),
|
|
1175
1164
|
provider_avatar_url: import_zod7.z.union([import_zod7.z.url(), import_zod7.z.literal("")]),
|
|
1176
|
-
connected_at: import_zod7.z.
|
|
1177
|
-
last_login_at: import_zod7.z.
|
|
1165
|
+
connected_at: import_zod7.z.string().datetime({ offset: true }),
|
|
1166
|
+
last_login_at: import_zod7.z.string().datetime({ offset: true })
|
|
1178
1167
|
});
|
|
1179
1168
|
|
|
1180
1169
|
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
1181
1170
|
var import_zod8 = require("zod");
|
|
1182
1171
|
var OAuthDisconnectRequestRequestSchema = import_zod8.z.object({
|
|
1183
|
-
provider: import_zod8.z.nativeEnum(
|
|
1172
|
+
provider: import_zod8.z.nativeEnum(OAuthConnectionProvider)
|
|
1184
1173
|
});
|
|
1185
1174
|
|
|
1186
1175
|
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
@@ -1234,7 +1223,7 @@ var import_zod15 = require("zod");
|
|
|
1234
1223
|
var OTPVerifyRequestSchema = import_zod15.z.object({
|
|
1235
1224
|
identifier: import_zod15.z.string().min(1),
|
|
1236
1225
|
otp: import_zod15.z.string().min(6).max(6),
|
|
1237
|
-
channel: import_zod15.z.nativeEnum(
|
|
1226
|
+
channel: import_zod15.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1238
1227
|
source_url: import_zod15.z.union([import_zod15.z.url(), import_zod15.z.literal("")]).optional()
|
|
1239
1228
|
});
|
|
1240
1229
|
|
|
@@ -1257,8 +1246,8 @@ var UserSchema = import_zod16.z.object({
|
|
|
1257
1246
|
avatar: import_zod16.z.union([import_zod16.z.url(), import_zod16.z.literal("")]).nullable(),
|
|
1258
1247
|
is_staff: import_zod16.z.boolean(),
|
|
1259
1248
|
is_superuser: import_zod16.z.boolean(),
|
|
1260
|
-
date_joined: import_zod16.z.
|
|
1261
|
-
last_login: import_zod16.z.
|
|
1249
|
+
date_joined: import_zod16.z.string().datetime({ offset: true }),
|
|
1250
|
+
last_login: import_zod16.z.string().datetime({ offset: true }).nullable(),
|
|
1262
1251
|
unanswered_messages_count: import_zod16.z.int(),
|
|
1263
1252
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
1264
1253
|
});
|
|
@@ -2298,7 +2287,7 @@ var CentrifugoMonitoring = class {
|
|
|
2298
2287
|
if (isParamsObject) {
|
|
2299
2288
|
params = args[0];
|
|
2300
2289
|
} else {
|
|
2301
|
-
params = { channel: args[0],
|
|
2290
|
+
params = { channel: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4], status: args[5] };
|
|
2302
2291
|
}
|
|
2303
2292
|
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/publishes/", { params });
|
|
2304
2293
|
return response;
|
|
@@ -3243,8 +3232,8 @@ var PublishSchema = import_zod51.z.object({
|
|
|
3243
3232
|
acks_received: import_zod51.z.int(),
|
|
3244
3233
|
acks_expected: import_zod51.z.int().nullable(),
|
|
3245
3234
|
duration_ms: import_zod51.z.number().nullable(),
|
|
3246
|
-
created_at: import_zod51.z.
|
|
3247
|
-
completed_at: import_zod51.z.
|
|
3235
|
+
created_at: import_zod51.z.string().datetime({ offset: true }),
|
|
3236
|
+
completed_at: import_zod51.z.string().datetime({ offset: true }).nullable(),
|
|
3248
3237
|
error_code: import_zod51.z.string().nullable(),
|
|
3249
3238
|
error_message: import_zod51.z.string().nullable()
|
|
3250
3239
|
});
|