@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.
Files changed (49) hide show
  1. package/dist/auth-server.cjs +10 -19
  2. package/dist/auth-server.cjs.map +1 -1
  3. package/dist/auth-server.mjs +10 -19
  4. package/dist/auth-server.mjs.map +1 -1
  5. package/dist/auth.cjs +18 -29
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.d.cts +7 -16
  8. package/dist/auth.d.ts +7 -16
  9. package/dist/auth.mjs +18 -29
  10. package/dist/auth.mjs.map +1 -1
  11. package/dist/clients.cjs +20 -31
  12. package/dist/clients.cjs.map +1 -1
  13. package/dist/clients.d.cts +46 -54
  14. package/dist/clients.d.ts +46 -54
  15. package/dist/clients.mjs +20 -31
  16. package/dist/clients.mjs.map +1 -1
  17. package/dist/hooks.cjs +8 -17
  18. package/dist/hooks.cjs.map +1 -1
  19. package/dist/hooks.d.cts +11 -20
  20. package/dist/hooks.d.ts +11 -20
  21. package/dist/hooks.mjs +8 -17
  22. package/dist/hooks.mjs.map +1 -1
  23. package/dist/index.cjs +12 -23
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +15 -35
  26. package/dist/index.d.ts +15 -35
  27. package/dist/index.mjs +12 -23
  28. package/dist/index.mjs.map +1 -1
  29. package/package.json +2 -2
  30. package/src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts +1 -1
  31. package/src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts +2 -2
  32. package/src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts +1 -1
  33. package/src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts +1 -1
  34. package/src/generated/cfg_accounts/_utils/schemas/User.schema.ts +2 -2
  35. package/src/generated/cfg_accounts/accounts/models.ts +1 -1
  36. package/src/generated/cfg_accounts/accounts__oauth/client.ts +1 -1
  37. package/src/generated/cfg_accounts/accounts__oauth/models.ts +1 -1
  38. package/src/generated/cfg_accounts/enums.ts +1 -19
  39. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +2 -2
  40. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +1 -1
  41. package/src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts +2 -2
  42. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +3 -3
  43. package/src/generated/cfg_centrifugo/schema.json +18 -0
  44. package/src/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts +2 -2
  45. package/src/generated/cfg_totp/_utils/hooks/totp__totp_management.ts +1 -1
  46. package/src/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts +3 -3
  47. package/src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts +2 -2
  48. package/src/generated/cfg_totp/schema.json +18 -0
  49. 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
- OAuthDisconnectRequestRequestProvider: () => OAuthDisconnectRequestRequestProvider,
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.iso.datetime(),
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.iso.datetime(),
1177
- last_login_at: import_zod7.z.iso.datetime()
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(OAuthDisconnectRequestRequestProvider)
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(OTPVerifyRequestChannel).optional(),
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.iso.datetime(),
1261
- last_login: import_zod16.z.iso.datetime().nullable(),
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], page: args[1], page_size: args[2], status: args[3] };
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.iso.datetime(),
3247
- completed_at: import_zod51.z.iso.datetime().nullable(),
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
  });