@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.d.cts CHANGED
@@ -33,18 +33,11 @@ declare class Auth {
33
33
  accountsTokenRefreshCreate(data: TokenRefreshRequest$1): Promise<TokenRefresh$1>;
34
34
  }
35
35
 
36
- /**
37
- * OAuth provider name (github, google, etc.)
38
- * * `github` - GitHub
39
- */
40
- declare enum OAuthConnectionProvider {
41
- GITHUB = "github"
42
- }
43
36
  /**
44
37
  * OAuth provider to disconnect
45
38
  * * `github` - GitHub
46
39
  */
47
- declare enum OAuthDisconnectRequestRequestProvider {
40
+ declare enum OAuthConnectionProvider {
48
41
  GITHUB = "github"
49
42
  }
50
43
  /**
@@ -56,26 +49,13 @@ declare enum OTPRequestRequestChannel {
56
49
  EMAIL = "email",
57
50
  PHONE = "phone"
58
51
  }
59
- /**
60
- * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
61
- * * `email` - Email
62
- * * `phone` - Phone
63
- */
64
- declare enum OTPVerifyRequestChannel {
65
- EMAIL = "email",
66
- PHONE = "phone"
67
- }
68
52
 
69
53
  type enums_OAuthConnectionProvider = OAuthConnectionProvider;
70
54
  declare const enums_OAuthConnectionProvider: typeof OAuthConnectionProvider;
71
- type enums_OAuthDisconnectRequestRequestProvider = OAuthDisconnectRequestRequestProvider;
72
- declare const enums_OAuthDisconnectRequestRequestProvider: typeof OAuthDisconnectRequestRequestProvider;
73
55
  type enums_OTPRequestRequestChannel = OTPRequestRequestChannel;
74
56
  declare const enums_OTPRequestRequestChannel: typeof OTPRequestRequestChannel;
75
- type enums_OTPVerifyRequestChannel = OTPVerifyRequestChannel;
76
- declare const enums_OTPVerifyRequestChannel: typeof OTPVerifyRequestChannel;
77
57
  declare namespace enums {
78
- export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OAuthDisconnectRequestRequestProvider as OAuthDisconnectRequestRequestProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel, enums_OTPVerifyRequestChannel as OTPVerifyRequestChannel };
58
+ export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel };
79
59
  }
80
60
 
81
61
  /**
@@ -87,7 +67,7 @@ interface OAuthDisconnectRequestRequest$1 {
87
67
  /** OAuth provider to disconnect
88
68
 
89
69
  * `github` - GitHub */
90
- provider: OAuthDisconnectRequestRequestProvider;
70
+ provider: OAuthConnectionProvider;
91
71
  }
92
72
  /**
93
73
  * Error response for OAuth endpoints.
@@ -411,7 +391,7 @@ interface OTPVerifyRequest$1 {
411
391
 
412
392
  * `email` - Email
413
393
  * `phone` - Phone */
414
- channel?: OTPVerifyRequestChannel;
394
+ channel?: OTPRequestRequestChannel;
415
395
  /** Source URL for tracking login (e.g., https://my.djangocfg.com) */
416
396
  source_url?: string;
417
397
  }
@@ -903,7 +883,7 @@ type AccountDeleteResponse = z.infer<typeof AccountDeleteResponseSchema>;
903
883
  declare const CentrifugoTokenSchema: z.ZodObject<{
904
884
  token: z.ZodString;
905
885
  centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
906
- expires_at: z.ZodISODateTime;
886
+ expires_at: z.ZodString;
907
887
  channels: z.ZodArray<z.ZodString>;
908
888
  }, z.core.$strip>;
909
889
  /**
@@ -1000,8 +980,8 @@ declare const OAuthConnectionSchema: z.ZodObject<{
1000
980
  provider_username: z.ZodString;
1001
981
  provider_email: z.ZodEmail;
1002
982
  provider_avatar_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1003
- connected_at: z.ZodISODateTime;
1004
- last_login_at: z.ZodISODateTime;
983
+ connected_at: z.ZodString;
984
+ last_login_at: z.ZodString;
1005
985
  }, z.core.$strip>;
1006
986
  /**
1007
987
  * Infer TypeScript type from Zod schema
@@ -1019,7 +999,7 @@ type OAuthConnection = z.infer<typeof OAuthConnectionSchema>;
1019
999
  * Request to disconnect OAuth provider.
1020
1000
  */
1021
1001
  declare const OAuthDisconnectRequestRequestSchema: z.ZodObject<{
1022
- provider: z.ZodEnum<typeof OAuthDisconnectRequestRequestProvider>;
1002
+ provider: z.ZodEnum<typeof OAuthConnectionProvider>;
1023
1003
  }, z.core.$strip>;
1024
1004
  /**
1025
1005
  * Infer TypeScript type from Zod schema
@@ -1177,7 +1157,7 @@ type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>;
1177
1157
  declare const OTPVerifyRequestSchema: z.ZodObject<{
1178
1158
  identifier: z.ZodString;
1179
1159
  otp: z.ZodString;
1180
- channel: z.ZodOptional<z.ZodEnum<typeof OTPVerifyRequestChannel>>;
1160
+ channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
1181
1161
  source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1182
1162
  }, z.core.$strip>;
1183
1163
  /**
@@ -1234,13 +1214,13 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
1234
1214
  avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1235
1215
  is_staff: z.ZodBoolean;
1236
1216
  is_superuser: z.ZodBoolean;
1237
- date_joined: z.ZodISODateTime;
1238
- last_login: z.ZodNullable<z.ZodISODateTime>;
1217
+ date_joined: z.ZodString;
1218
+ last_login: z.ZodNullable<z.ZodString>;
1239
1219
  unanswered_messages_count: z.ZodInt;
1240
1220
  centrifugo: z.ZodNullable<z.ZodObject<{
1241
1221
  token: z.ZodString;
1242
1222
  centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1243
- expires_at: z.ZodISODateTime;
1223
+ expires_at: z.ZodString;
1244
1224
  channels: z.ZodArray<z.ZodString>;
1245
1225
  }, z.core.$strip>>;
1246
1226
  }, z.core.$strip>>>;
@@ -1326,13 +1306,13 @@ declare const UserSchema: z.ZodObject<{
1326
1306
  avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1327
1307
  is_staff: z.ZodBoolean;
1328
1308
  is_superuser: z.ZodBoolean;
1329
- date_joined: z.ZodISODateTime;
1330
- last_login: z.ZodNullable<z.ZodISODateTime>;
1309
+ date_joined: z.ZodString;
1310
+ last_login: z.ZodNullable<z.ZodString>;
1331
1311
  unanswered_messages_count: z.ZodInt;
1332
1312
  centrifugo: z.ZodNullable<z.ZodObject<{
1333
1313
  token: z.ZodString;
1334
1314
  centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1335
- expires_at: z.ZodISODateTime;
1315
+ expires_at: z.ZodString;
1336
1316
  channels: z.ZodArray<z.ZodString>;
1337
1317
  }, z.core.$strip>>;
1338
1318
  }, z.core.$strip>;
package/dist/index.d.ts CHANGED
@@ -33,18 +33,11 @@ declare class Auth {
33
33
  accountsTokenRefreshCreate(data: TokenRefreshRequest$1): Promise<TokenRefresh$1>;
34
34
  }
35
35
 
36
- /**
37
- * OAuth provider name (github, google, etc.)
38
- * * `github` - GitHub
39
- */
40
- declare enum OAuthConnectionProvider {
41
- GITHUB = "github"
42
- }
43
36
  /**
44
37
  * OAuth provider to disconnect
45
38
  * * `github` - GitHub
46
39
  */
47
- declare enum OAuthDisconnectRequestRequestProvider {
40
+ declare enum OAuthConnectionProvider {
48
41
  GITHUB = "github"
49
42
  }
50
43
  /**
@@ -56,26 +49,13 @@ declare enum OTPRequestRequestChannel {
56
49
  EMAIL = "email",
57
50
  PHONE = "phone"
58
51
  }
59
- /**
60
- * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
61
- * * `email` - Email
62
- * * `phone` - Phone
63
- */
64
- declare enum OTPVerifyRequestChannel {
65
- EMAIL = "email",
66
- PHONE = "phone"
67
- }
68
52
 
69
53
  type enums_OAuthConnectionProvider = OAuthConnectionProvider;
70
54
  declare const enums_OAuthConnectionProvider: typeof OAuthConnectionProvider;
71
- type enums_OAuthDisconnectRequestRequestProvider = OAuthDisconnectRequestRequestProvider;
72
- declare const enums_OAuthDisconnectRequestRequestProvider: typeof OAuthDisconnectRequestRequestProvider;
73
55
  type enums_OTPRequestRequestChannel = OTPRequestRequestChannel;
74
56
  declare const enums_OTPRequestRequestChannel: typeof OTPRequestRequestChannel;
75
- type enums_OTPVerifyRequestChannel = OTPVerifyRequestChannel;
76
- declare const enums_OTPVerifyRequestChannel: typeof OTPVerifyRequestChannel;
77
57
  declare namespace enums {
78
- export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OAuthDisconnectRequestRequestProvider as OAuthDisconnectRequestRequestProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel, enums_OTPVerifyRequestChannel as OTPVerifyRequestChannel };
58
+ export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel };
79
59
  }
80
60
 
81
61
  /**
@@ -87,7 +67,7 @@ interface OAuthDisconnectRequestRequest$1 {
87
67
  /** OAuth provider to disconnect
88
68
 
89
69
  * `github` - GitHub */
90
- provider: OAuthDisconnectRequestRequestProvider;
70
+ provider: OAuthConnectionProvider;
91
71
  }
92
72
  /**
93
73
  * Error response for OAuth endpoints.
@@ -411,7 +391,7 @@ interface OTPVerifyRequest$1 {
411
391
 
412
392
  * `email` - Email
413
393
  * `phone` - Phone */
414
- channel?: OTPVerifyRequestChannel;
394
+ channel?: OTPRequestRequestChannel;
415
395
  /** Source URL for tracking login (e.g., https://my.djangocfg.com) */
416
396
  source_url?: string;
417
397
  }
@@ -903,7 +883,7 @@ type AccountDeleteResponse = z.infer<typeof AccountDeleteResponseSchema>;
903
883
  declare const CentrifugoTokenSchema: z.ZodObject<{
904
884
  token: z.ZodString;
905
885
  centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
906
- expires_at: z.ZodISODateTime;
886
+ expires_at: z.ZodString;
907
887
  channels: z.ZodArray<z.ZodString>;
908
888
  }, z.core.$strip>;
909
889
  /**
@@ -1000,8 +980,8 @@ declare const OAuthConnectionSchema: z.ZodObject<{
1000
980
  provider_username: z.ZodString;
1001
981
  provider_email: z.ZodEmail;
1002
982
  provider_avatar_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1003
- connected_at: z.ZodISODateTime;
1004
- last_login_at: z.ZodISODateTime;
983
+ connected_at: z.ZodString;
984
+ last_login_at: z.ZodString;
1005
985
  }, z.core.$strip>;
1006
986
  /**
1007
987
  * Infer TypeScript type from Zod schema
@@ -1019,7 +999,7 @@ type OAuthConnection = z.infer<typeof OAuthConnectionSchema>;
1019
999
  * Request to disconnect OAuth provider.
1020
1000
  */
1021
1001
  declare const OAuthDisconnectRequestRequestSchema: z.ZodObject<{
1022
- provider: z.ZodEnum<typeof OAuthDisconnectRequestRequestProvider>;
1002
+ provider: z.ZodEnum<typeof OAuthConnectionProvider>;
1023
1003
  }, z.core.$strip>;
1024
1004
  /**
1025
1005
  * Infer TypeScript type from Zod schema
@@ -1177,7 +1157,7 @@ type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>;
1177
1157
  declare const OTPVerifyRequestSchema: z.ZodObject<{
1178
1158
  identifier: z.ZodString;
1179
1159
  otp: z.ZodString;
1180
- channel: z.ZodOptional<z.ZodEnum<typeof OTPVerifyRequestChannel>>;
1160
+ channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
1181
1161
  source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1182
1162
  }, z.core.$strip>;
1183
1163
  /**
@@ -1234,13 +1214,13 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
1234
1214
  avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1235
1215
  is_staff: z.ZodBoolean;
1236
1216
  is_superuser: z.ZodBoolean;
1237
- date_joined: z.ZodISODateTime;
1238
- last_login: z.ZodNullable<z.ZodISODateTime>;
1217
+ date_joined: z.ZodString;
1218
+ last_login: z.ZodNullable<z.ZodString>;
1239
1219
  unanswered_messages_count: z.ZodInt;
1240
1220
  centrifugo: z.ZodNullable<z.ZodObject<{
1241
1221
  token: z.ZodString;
1242
1222
  centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1243
- expires_at: z.ZodISODateTime;
1223
+ expires_at: z.ZodString;
1244
1224
  channels: z.ZodArray<z.ZodString>;
1245
1225
  }, z.core.$strip>>;
1246
1226
  }, z.core.$strip>>>;
@@ -1326,13 +1306,13 @@ declare const UserSchema: z.ZodObject<{
1326
1306
  avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1327
1307
  is_staff: z.ZodBoolean;
1328
1308
  is_superuser: z.ZodBoolean;
1329
- date_joined: z.ZodISODateTime;
1330
- last_login: z.ZodNullable<z.ZodISODateTime>;
1309
+ date_joined: z.ZodString;
1310
+ last_login: z.ZodNullable<z.ZodString>;
1331
1311
  unanswered_messages_count: z.ZodInt;
1332
1312
  centrifugo: z.ZodNullable<z.ZodObject<{
1333
1313
  token: z.ZodString;
1334
1314
  centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1335
- expires_at: z.ZodISODateTime;
1315
+ expires_at: z.ZodString;
1336
1316
  channels: z.ZodArray<z.ZodString>;
1337
1317
  }, z.core.$strip>>;
1338
1318
  }, z.core.$strip>;
package/dist/index.mjs CHANGED
@@ -112,7 +112,7 @@ var Oauth = class {
112
112
  */
113
113
  async accountsOauthConnectionsList() {
114
114
  const response = await this.client.request("GET", "/cfg/accounts/oauth/connections/");
115
- return response;
115
+ return response.results || response;
116
116
  }
117
117
  /**
118
118
  * Disconnect OAuth provider
@@ -971,28 +971,17 @@ var MemoryStorageAdapter = class {
971
971
  var enums_exports = {};
972
972
  __export(enums_exports, {
973
973
  OAuthConnectionProvider: () => OAuthConnectionProvider,
974
- OAuthDisconnectRequestRequestProvider: () => OAuthDisconnectRequestRequestProvider,
975
- OTPRequestRequestChannel: () => OTPRequestRequestChannel,
976
- OTPVerifyRequestChannel: () => OTPVerifyRequestChannel
974
+ OTPRequestRequestChannel: () => OTPRequestRequestChannel
977
975
  });
978
976
  var OAuthConnectionProvider = /* @__PURE__ */ ((OAuthConnectionProvider2) => {
979
977
  OAuthConnectionProvider2["GITHUB"] = "github";
980
978
  return OAuthConnectionProvider2;
981
979
  })(OAuthConnectionProvider || {});
982
- var OAuthDisconnectRequestRequestProvider = /* @__PURE__ */ ((OAuthDisconnectRequestRequestProvider2) => {
983
- OAuthDisconnectRequestRequestProvider2["GITHUB"] = "github";
984
- return OAuthDisconnectRequestRequestProvider2;
985
- })(OAuthDisconnectRequestRequestProvider || {});
986
980
  var OTPRequestRequestChannel = /* @__PURE__ */ ((OTPRequestRequestChannel2) => {
987
981
  OTPRequestRequestChannel2["EMAIL"] = "email";
988
982
  OTPRequestRequestChannel2["PHONE"] = "phone";
989
983
  return OTPRequestRequestChannel2;
990
984
  })(OTPRequestRequestChannel || {});
991
- var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
992
- OTPVerifyRequestChannel2["EMAIL"] = "email";
993
- OTPVerifyRequestChannel2["PHONE"] = "phone";
994
- return OTPVerifyRequestChannel2;
995
- })(OTPVerifyRequestChannel || {});
996
985
 
997
986
  // src/generated/cfg_accounts/_utils/schemas/index.ts
998
987
  var schemas_exports = {};
@@ -1032,7 +1021,7 @@ import { z as z2 } from "zod";
1032
1021
  var CentrifugoTokenSchema = z2.object({
1033
1022
  token: z2.string(),
1034
1023
  centrifugo_url: z2.union([z2.url(), z2.literal("")]),
1035
- expires_at: z2.iso.datetime(),
1024
+ expires_at: z2.string().datetime({ offset: true }),
1036
1025
  channels: z2.array(z2.string())
1037
1026
  });
1038
1027
 
@@ -1073,14 +1062,14 @@ var OAuthConnectionSchema = z7.object({
1073
1062
  provider_username: z7.string(),
1074
1063
  provider_email: z7.email(),
1075
1064
  provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
1076
- connected_at: z7.iso.datetime(),
1077
- last_login_at: z7.iso.datetime()
1065
+ connected_at: z7.string().datetime({ offset: true }),
1066
+ last_login_at: z7.string().datetime({ offset: true })
1078
1067
  });
1079
1068
 
1080
1069
  // src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
1081
1070
  import { z as z8 } from "zod";
1082
1071
  var OAuthDisconnectRequestRequestSchema = z8.object({
1083
- provider: z8.nativeEnum(OAuthDisconnectRequestRequestProvider)
1072
+ provider: z8.nativeEnum(OAuthConnectionProvider)
1084
1073
  });
1085
1074
 
1086
1075
  // src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
@@ -1134,7 +1123,7 @@ import { z as z15 } from "zod";
1134
1123
  var OTPVerifyRequestSchema = z15.object({
1135
1124
  identifier: z15.string().min(1),
1136
1125
  otp: z15.string().min(6).max(6),
1137
- channel: z15.nativeEnum(OTPVerifyRequestChannel).optional(),
1126
+ channel: z15.nativeEnum(OTPRequestRequestChannel).optional(),
1138
1127
  source_url: z15.union([z15.url(), z15.literal("")]).optional()
1139
1128
  });
1140
1129
 
@@ -1157,8 +1146,8 @@ var UserSchema = z16.object({
1157
1146
  avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
1158
1147
  is_staff: z16.boolean(),
1159
1148
  is_superuser: z16.boolean(),
1160
- date_joined: z16.iso.datetime(),
1161
- last_login: z16.iso.datetime().nullable(),
1149
+ date_joined: z16.string().datetime({ offset: true }),
1150
+ last_login: z16.string().datetime({ offset: true }).nullable(),
1162
1151
  unanswered_messages_count: z16.int(),
1163
1152
  centrifugo: CentrifugoTokenSchema.nullable()
1164
1153
  });
@@ -2198,7 +2187,7 @@ var CentrifugoMonitoring = class {
2198
2187
  if (isParamsObject) {
2199
2188
  params = args[0];
2200
2189
  } else {
2201
- params = { channel: args[0], page: args[1], page_size: args[2], status: args[3] };
2190
+ params = { channel: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4], status: args[5] };
2202
2191
  }
2203
2192
  const response = await this.client.request("GET", "/cfg/centrifugo/monitor/publishes/", { params });
2204
2193
  return response;
@@ -3143,8 +3132,8 @@ var PublishSchema = z51.object({
3143
3132
  acks_received: z51.int(),
3144
3133
  acks_expected: z51.int().nullable(),
3145
3134
  duration_ms: z51.number().nullable(),
3146
- created_at: z51.iso.datetime(),
3147
- completed_at: z51.iso.datetime().nullable(),
3135
+ created_at: z51.string().datetime({ offset: true }),
3136
+ completed_at: z51.string().datetime({ offset: true }).nullable(),
3148
3137
  error_code: z51.string().nullable(),
3149
3138
  error_message: z51.string().nullable()
3150
3139
  });