@djangocfg/api 2.1.42 → 2.1.43

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 (102) hide show
  1. package/dist/auth.cjs +42 -44
  2. package/dist/auth.cjs.map +1 -1
  3. package/dist/auth.mjs +50 -45
  4. package/dist/auth.mjs.map +1 -1
  5. package/dist/clients.cjs +1842 -1842
  6. package/dist/clients.cjs.map +1 -1
  7. package/dist/clients.d.cts +1627 -1837
  8. package/dist/clients.d.ts +1627 -1837
  9. package/dist/clients.mjs +1840 -1840
  10. package/dist/clients.mjs.map +1 -1
  11. package/dist/hooks.cjs.map +1 -1
  12. package/dist/hooks.d.cts +0 -66
  13. package/dist/hooks.d.ts +0 -66
  14. package/dist/hooks.mjs.map +1 -1
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +0 -210
  17. package/dist/index.d.ts +0 -210
  18. package/dist/index.mjs.map +1 -1
  19. package/package.json +3 -3
  20. package/src/auth/context/AccountsContext.tsx +15 -15
  21. package/src/auth/context/AuthContext.tsx +6 -5
  22. package/src/auth/hooks/useAuthForm.ts +1 -1
  23. package/src/auth/hooks/useAuthGuard.ts +2 -1
  24. package/src/auth/hooks/useAutoAuth.ts +4 -2
  25. package/src/auth/hooks/useGithubAuth.ts +3 -2
  26. package/src/auth/hooks/useLocalStorage.ts +1 -0
  27. package/src/auth/hooks/useProfileCache.ts +1 -1
  28. package/src/auth/hooks/useSessionStorage.ts +1 -0
  29. package/src/clients.ts +1 -1
  30. package/src/generated/cfg_accounts/CLAUDE.md +92 -0
  31. package/src/generated/cfg_accounts/_utils/fetchers/accounts.ts +1 -8
  32. package/src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts +1 -8
  33. package/src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts +1 -8
  34. package/src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +1 -8
  35. package/src/generated/cfg_accounts/_utils/fetchers/index.ts +1 -8
  36. package/src/generated/cfg_accounts/_utils/hooks/accounts.ts +1 -8
  37. package/src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts +1 -8
  38. package/src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts +1 -8
  39. package/src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts +1 -8
  40. package/src/generated/cfg_accounts/_utils/hooks/index.ts +1 -8
  41. package/src/generated/cfg_accounts/_utils/schemas/index.ts +1 -8
  42. package/src/generated/cfg_accounts/accounts/index.ts +1 -8
  43. package/src/generated/cfg_accounts/accounts/models.ts +1 -8
  44. package/src/generated/cfg_accounts/accounts__auth/index.ts +1 -8
  45. package/src/generated/cfg_accounts/accounts__auth/models.ts +1 -8
  46. package/src/generated/cfg_accounts/accounts__oauth/index.ts +1 -8
  47. package/src/generated/cfg_accounts/accounts__oauth/models.ts +1 -8
  48. package/src/generated/cfg_accounts/accounts__user_profile/index.ts +1 -8
  49. package/src/generated/cfg_accounts/accounts__user_profile/models.ts +1 -8
  50. package/src/generated/cfg_accounts/api-instance.ts +1 -8
  51. package/src/generated/cfg_accounts/enums.ts +1 -8
  52. package/src/generated/cfg_accounts/errors.ts +1 -8
  53. package/src/generated/cfg_accounts/http.ts +1 -8
  54. package/src/generated/cfg_accounts/index.ts +1 -8
  55. package/src/generated/cfg_accounts/logger.ts +1 -8
  56. package/src/generated/cfg_accounts/retry.ts +1 -8
  57. package/src/generated/cfg_accounts/storage.ts +1 -8
  58. package/src/generated/cfg_accounts/validation-events.ts +1 -8
  59. package/src/generated/cfg_centrifugo/CLAUDE.md +92 -0
  60. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +1 -8
  61. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts +1 -8
  62. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +1 -8
  63. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +1 -8
  64. package/src/generated/cfg_centrifugo/_utils/fetchers/index.ts +1 -8
  65. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +1 -8
  66. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts +1 -8
  67. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +1 -8
  68. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +1 -8
  69. package/src/generated/cfg_centrifugo/_utils/hooks/index.ts +1 -8
  70. package/src/generated/cfg_centrifugo/_utils/schemas/index.ts +1 -8
  71. package/src/generated/cfg_centrifugo/api-instance.ts +1 -8
  72. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +1 -8
  73. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +1 -8
  74. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +1 -8
  75. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/models.ts +1 -8
  76. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +1 -8
  77. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +1 -8
  78. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +1 -8
  79. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +1 -8
  80. package/src/generated/cfg_centrifugo/errors.ts +1 -8
  81. package/src/generated/cfg_centrifugo/http.ts +1 -8
  82. package/src/generated/cfg_centrifugo/index.ts +1 -8
  83. package/src/generated/cfg_centrifugo/logger.ts +1 -8
  84. package/src/generated/cfg_centrifugo/retry.ts +1 -8
  85. package/src/generated/cfg_centrifugo/storage.ts +1 -8
  86. package/src/generated/cfg_centrifugo/validation-events.ts +1 -8
  87. package/src/generated/cfg_webpush/CLAUDE.md +70 -0
  88. package/src/generated/cfg_webpush/_utils/fetchers/index.ts +1 -8
  89. package/src/generated/cfg_webpush/_utils/fetchers/webpush__web_push.ts +1 -8
  90. package/src/generated/cfg_webpush/_utils/hooks/index.ts +1 -8
  91. package/src/generated/cfg_webpush/_utils/hooks/webpush__web_push.ts +1 -8
  92. package/src/generated/cfg_webpush/_utils/schemas/index.ts +1 -8
  93. package/src/generated/cfg_webpush/api-instance.ts +1 -8
  94. package/src/generated/cfg_webpush/errors.ts +1 -8
  95. package/src/generated/cfg_webpush/http.ts +1 -8
  96. package/src/generated/cfg_webpush/index.ts +1 -8
  97. package/src/generated/cfg_webpush/logger.ts +1 -8
  98. package/src/generated/cfg_webpush/retry.ts +1 -8
  99. package/src/generated/cfg_webpush/storage.ts +1 -8
  100. package/src/generated/cfg_webpush/validation-events.ts +1 -8
  101. package/src/generated/cfg_webpush/webpush__web_push/index.ts +1 -8
  102. package/src/generated/cfg_webpush/webpush__web_push/models.ts +1 -8
package/dist/clients.d.ts CHANGED
@@ -2,14 +2,6 @@ import { ConsolaInstance } from 'consola';
2
2
  import { z } from 'zod';
3
3
  import useSWR from 'swr';
4
4
 
5
- /**
6
- * AUTO-GENERATED FILE - DO NOT EDIT
7
- *
8
- * This file is automatically generated by DjangoCFG.
9
- * Any manual changes will be lost when the code is regenerated.
10
- *
11
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
12
- */
13
5
  /**
14
6
  *
15
7
  * Request model (no read-only fields).
@@ -38,14 +30,6 @@ declare class Auth {
38
30
  accountsTokenRefreshCreate(data: TokenRefreshRequest$1): Promise<TokenRefresh$1>;
39
31
  }
40
32
 
41
- /**
42
- * AUTO-GENERATED FILE - DO NOT EDIT
43
- *
44
- * This file is automatically generated by DjangoCFG.
45
- * Any manual changes will be lost when the code is regenerated.
46
- *
47
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
48
- */
49
33
  /**
50
34
  * OAuth provider name (github, google, etc.)
51
35
  * * `github` - GitHub
@@ -91,15 +75,6 @@ declare namespace enums {
91
75
  export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OAuthDisconnectRequestRequestProvider as OAuthDisconnectRequestRequestProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel, enums_OTPVerifyRequestChannel as OTPVerifyRequestChannel };
92
76
  }
93
77
 
94
- /**
95
- * AUTO-GENERATED FILE - DO NOT EDIT
96
- *
97
- * This file is automatically generated by DjangoCFG.
98
- * Any manual changes will be lost when the code is regenerated.
99
- *
100
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
101
- */
102
-
103
78
  /**
104
79
  * Request to disconnect OAuth provider.
105
80
  *
@@ -213,14 +188,6 @@ declare class Oauth {
213
188
  accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse$1>;
214
189
  }
215
190
 
216
- /**
217
- * AUTO-GENERATED FILE - DO NOT EDIT
218
- *
219
- * This file is automatically generated by DjangoCFG.
220
- * Any manual changes will be lost when the code is regenerated.
221
- *
222
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
223
- */
224
191
  /**
225
192
  * Serializer for user details.
226
193
  *
@@ -338,15 +305,6 @@ declare class UserProfile {
338
305
  accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
339
306
  }
340
307
 
341
- /**
342
- * AUTO-GENERATED FILE - DO NOT EDIT
343
- *
344
- * This file is automatically generated by DjangoCFG.
345
- * Any manual changes will be lost when the code is regenerated.
346
- *
347
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
348
- */
349
-
350
308
  /**
351
309
  * Serializer for OTP request.
352
310
  *
@@ -463,14 +421,6 @@ declare class Accounts {
463
421
  otpVerifyCreate(data: OTPVerifyRequest$1): Promise<OTPVerifyResponse$1>;
464
422
  }
465
423
 
466
- /**
467
- * AUTO-GENERATED FILE - DO NOT EDIT
468
- *
469
- * This file is automatically generated by DjangoCFG.
470
- * Any manual changes will be lost when the code is regenerated.
471
- *
472
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
473
- */
474
424
  /**
475
425
  * API Logger with Consola
476
426
  * Beautiful console logging for API requests and responses
@@ -499,14 +449,6 @@ interface LoggerConfig$2 {
499
449
  consola?: ConsolaInstance;
500
450
  }
501
451
 
502
- /**
503
- * AUTO-GENERATED FILE - DO NOT EDIT
504
- *
505
- * This file is automatically generated by DjangoCFG.
506
- * Any manual changes will be lost when the code is regenerated.
507
- *
508
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
509
- */
510
452
  /**
511
453
  * Retry Configuration and Utilities
512
454
  *
@@ -562,14 +504,6 @@ interface RetryConfig$2 {
562
504
  onFailedAttempt?: (info: FailedAttemptInfo$2) => void;
563
505
  }
564
506
 
565
- /**
566
- * AUTO-GENERATED FILE - DO NOT EDIT
567
- *
568
- * This file is automatically generated by DjangoCFG.
569
- * Any manual changes will be lost when the code is regenerated.
570
- *
571
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
572
- */
573
507
  /**
574
508
  * Storage adapters for cross-platform token storage.
575
509
  *
@@ -1103,14 +1037,6 @@ declare function updateAccountsProfileUpdateUpdate(data: UserProfileUpdateReques
1103
1037
  */
1104
1038
  declare function partialUpdateAccountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest, client?: any): Promise<User>;
1105
1039
 
1106
- /**
1107
- * AUTO-GENERATED FILE - DO NOT EDIT
1108
- *
1109
- * This file is automatically generated by DjangoCFG.
1110
- * Any manual changes will be lost when the code is regenerated.
1111
- *
1112
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1113
- */
1114
1040
  /**
1115
1041
  * Django CFG API - API Client with JWT Management
1116
1042
  *
@@ -1215,2125 +1141,2179 @@ declare class API$2 {
1215
1141
  }
1216
1142
 
1217
1143
  /**
1218
- * AUTO-GENERATED FILE - DO NOT EDIT
1144
+ * Request to list active channels.
1219
1145
  *
1220
- * This file is automatically generated by DjangoCFG.
1221
- * Any manual changes will be lost when the code is regenerated.
1146
+ * Request model (no read-only fields).
1147
+ */
1148
+ interface CentrifugoChannelsRequestRequest$1 {
1149
+ /** Pattern to filter channels (e.g., 'user:*') */
1150
+ pattern?: string | null;
1151
+ }
1152
+ /**
1153
+ * List of active channels response.
1222
1154
  *
1223
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1155
+ * Response model (includes read-only fields).
1224
1156
  */
1157
+ interface CentrifugoChannelsResponse$1 {
1158
+ error?: CentrifugoError$1;
1159
+ result?: CentrifugoChannelsResult$1;
1160
+ }
1225
1161
  /**
1226
- * Request serializer for sending push notifications.
1162
+ * Request to get channel history.
1227
1163
  *
1228
1164
  * Request model (no read-only fields).
1229
1165
  */
1230
- interface SendPushRequestRequest$1 {
1231
- /** Notification title */
1232
- title: string;
1233
- /** Notification body */
1234
- body: string;
1235
- /** Notification icon URL */
1236
- icon?: string | null;
1237
- /** URL to open on click */
1238
- url?: string | null;
1166
+ interface CentrifugoHistoryRequestRequest$1 {
1167
+ /** Channel name */
1168
+ channel: string;
1169
+ /** Maximum number of messages to return */
1170
+ limit?: number | null;
1171
+ since?: CentrifugoStreamPosition$1;
1172
+ /** Reverse message order (newest first) */
1173
+ reverse?: boolean | null;
1239
1174
  }
1240
1175
  /**
1241
- * Response serializer for send push endpoint.
1176
+ * Channel history response.
1242
1177
  *
1243
1178
  * Response model (includes read-only fields).
1244
1179
  */
1245
- interface SendPushResponse$1 {
1246
- /** Whether send was successful */
1247
- success: boolean;
1248
- /** Number of devices notification was sent to */
1249
- sent_to: number;
1180
+ interface CentrifugoHistoryResponse$1 {
1181
+ error?: CentrifugoError$1;
1182
+ result?: CentrifugoHistoryResult$1;
1250
1183
  }
1251
1184
  /**
1252
- * Request serializer for subscribing to push notifications.
1185
+ * Server info response.
1186
+ *
1187
+ * Response model (includes read-only fields).
1188
+ */
1189
+ interface CentrifugoInfoResponse$1 {
1190
+ error?: CentrifugoError$1;
1191
+ result?: CentrifugoInfoResult$1;
1192
+ }
1193
+ /**
1194
+ * Request to get channel presence.
1253
1195
  *
1254
1196
  * Request model (no read-only fields).
1255
1197
  */
1256
- interface SubscribeRequestRequest$1 {
1257
- /** Push service endpoint URL from browser */
1258
- endpoint: string;
1259
- /** Encryption keys (p256dh and auth) */
1260
- keys: Record<string, any>;
1198
+ interface CentrifugoPresenceRequestRequest$1 {
1199
+ /** Channel name */
1200
+ channel: string;
1261
1201
  }
1262
1202
  /**
1263
- * Response serializer for subscription endpoint.
1203
+ * Channel presence response.
1264
1204
  *
1265
1205
  * Response model (includes read-only fields).
1266
1206
  */
1267
- interface SubscribeResponse$1 {
1268
- /** Whether subscription was successful */
1269
- success: boolean;
1270
- /** ID of the subscription */
1271
- subscription_id: number;
1272
- /** Whether subscription was newly created */
1273
- created: boolean;
1207
+ interface CentrifugoPresenceResponse$1 {
1208
+ error?: CentrifugoError$1;
1209
+ result?: CentrifugoPresenceResult$1;
1274
1210
  }
1275
1211
  /**
1276
- * Response serializer for VAPID public key endpoint.
1212
+ * Request to get channel presence statistics.
1277
1213
  *
1278
- * Response model (includes read-only fields).
1214
+ * Request model (no read-only fields).
1279
1215
  */
1280
- interface VapidPublicKeyResponse$1 {
1281
- /** VAPID public key for client subscription */
1282
- publicKey: string;
1216
+ interface CentrifugoPresenceStatsRequestRequest$1 {
1217
+ /** Channel name */
1218
+ channel: string;
1283
1219
  }
1284
-
1285
1220
  /**
1286
- * API endpoints for Web Push.
1221
+ * Channel presence stats response.
1222
+ *
1223
+ * Response model (includes read-only fields).
1287
1224
  */
1288
- declare class WebPush {
1289
- private client;
1290
- constructor(client: any);
1291
- /**
1292
- * Send push notification
1293
- *
1294
- * Send push notification to all active subscriptions for the authenticated
1295
- * user.
1296
- */
1297
- webpushSendCreate(data: SendPushRequestRequest$1): Promise<SendPushResponse$1>;
1298
- /**
1299
- * Subscribe to push notifications
1300
- *
1301
- * Save push subscription from browser for the authenticated user.
1302
- */
1303
- webpushSubscribeCreate(data: SubscribeRequestRequest$1): Promise<SubscribeResponse$1>;
1304
- /**
1305
- * Get VAPID public key
1306
- *
1307
- * Get VAPID public key for client subscription.
1308
- */
1309
- webpushVapidRetrieve(): Promise<VapidPublicKeyResponse$1>;
1225
+ interface CentrifugoPresenceStatsResponse$1 {
1226
+ error?: CentrifugoError$1;
1227
+ result?: CentrifugoPresenceStatsResult$1;
1310
1228
  }
1311
-
1312
1229
  /**
1313
- * AUTO-GENERATED FILE - DO NOT EDIT
1230
+ * Centrifugo API error structure.
1314
1231
  *
1315
- * This file is automatically generated by DjangoCFG.
1316
- * Any manual changes will be lost when the code is regenerated.
1232
+ * Response model (includes read-only fields).
1233
+ */
1234
+ interface CentrifugoError$1 {
1235
+ /** Error code (0 = no error) */
1236
+ code?: number;
1237
+ /** Error message */
1238
+ message?: string;
1239
+ }
1240
+ /**
1241
+ * Channels result wrapper.
1317
1242
  *
1318
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1243
+ * Response model (includes read-only fields).
1319
1244
  */
1245
+ interface CentrifugoChannelsResult$1 {
1246
+ /** Map of channel names to channel info */
1247
+ channels: Record<string, CentrifugoChannelInfo$1>;
1248
+ }
1320
1249
  /**
1321
- * API Logger with Consola
1322
- * Beautiful console logging for API requests and responses
1250
+ * Stream position for pagination.
1323
1251
  *
1324
- * Installation:
1325
- * npm install consola
1252
+ * Response model (includes read-only fields).
1326
1253
  */
1327
-
1254
+ interface CentrifugoStreamPosition$1 {
1255
+ /** Stream offset */
1256
+ offset: number;
1257
+ /** Stream epoch */
1258
+ epoch: string;
1259
+ }
1328
1260
  /**
1329
- * Logger configuration
1261
+ * History result wrapper.
1262
+ *
1263
+ * Response model (includes read-only fields).
1330
1264
  */
1331
- interface LoggerConfig$1 {
1332
- /** Enable logging */
1333
- enabled: boolean;
1334
- /** Log requests */
1335
- logRequests: boolean;
1336
- /** Log responses */
1337
- logResponses: boolean;
1338
- /** Log errors */
1339
- logErrors: boolean;
1340
- /** Log request/response bodies */
1341
- logBodies: boolean;
1342
- /** Log headers (excluding sensitive ones) */
1343
- logHeaders: boolean;
1344
- /** Custom consola instance */
1345
- consola?: ConsolaInstance;
1265
+ interface CentrifugoHistoryResult$1 {
1266
+ /** List of publications */
1267
+ publications: Array<CentrifugoPublication$1>;
1268
+ /** Current stream epoch */
1269
+ epoch: string;
1270
+ /** Latest stream offset */
1271
+ offset: number;
1346
1272
  }
1347
-
1348
1273
  /**
1349
- * AUTO-GENERATED FILE - DO NOT EDIT
1274
+ * Info result wrapper.
1350
1275
  *
1351
- * This file is automatically generated by DjangoCFG.
1352
- * Any manual changes will be lost when the code is regenerated.
1276
+ * Response model (includes read-only fields).
1277
+ */
1278
+ interface CentrifugoInfoResult$1 {
1279
+ /** List of Centrifugo nodes */
1280
+ nodes: Array<CentrifugoNodeInfo$1>;
1281
+ }
1282
+ /**
1283
+ * Presence result wrapper.
1353
1284
  *
1354
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1285
+ * Response model (includes read-only fields).
1355
1286
  */
1287
+ interface CentrifugoPresenceResult$1 {
1288
+ /** Map of client IDs to client info */
1289
+ presence: Record<string, CentrifugoClientInfo$1>;
1290
+ }
1356
1291
  /**
1357
- * Retry Configuration and Utilities
1292
+ * Presence stats result.
1358
1293
  *
1359
- * Provides automatic retry logic for failed HTTP requests using p-retry.
1360
- * Retries only on network errors and server errors (5xx), not client errors (4xx).
1294
+ * Response model (includes read-only fields).
1361
1295
  */
1296
+ interface CentrifugoPresenceStatsResult$1 {
1297
+ /** Number of connected clients */
1298
+ num_clients: number;
1299
+ /** Number of unique users */
1300
+ num_users: number;
1301
+ }
1362
1302
  /**
1363
- * Information about a failed retry attempt.
1303
+ * Information about a single channel.
1304
+ *
1305
+ * Response model (includes read-only fields).
1364
1306
  */
1365
- interface FailedAttemptInfo$1 {
1366
- /** The error that caused the failure */
1367
- error: Error;
1368
- /** The attempt number (1-indexed) */
1369
- attemptNumber: number;
1370
- /** Number of retries left */
1371
- retriesLeft: number;
1307
+ interface CentrifugoChannelInfo$1 {
1308
+ /** Number of connected clients in channel */
1309
+ num_clients: number;
1372
1310
  }
1373
1311
  /**
1374
- * Retry configuration options.
1312
+ * Single publication (message) in channel history.
1375
1313
  *
1376
- * Uses exponential backoff with jitter by default to avoid thundering herd.
1314
+ * Response model (includes read-only fields).
1377
1315
  */
1378
- interface RetryConfig$1 {
1379
- /**
1380
- * Maximum number of retry attempts.
1381
- * @default 3
1316
+ interface CentrifugoPublication$1 {
1317
+ /** Message payload */
1318
+ data: Record<string, any>;
1319
+ info?: CentrifugoClientInfo$1;
1320
+ /** Message offset in channel stream */
1321
+ offset: number;
1322
+ /** Optional message tags */
1323
+ tags?: Record<string, any> | null;
1324
+ }
1325
+ /**
1326
+ * Information about a single Centrifugo node.
1327
+ *
1328
+ * Response model (includes read-only fields).
1329
+ */
1330
+ interface CentrifugoNodeInfo$1 {
1331
+ /** Unique node identifier */
1332
+ uid: string;
1333
+ /** Node name */
1334
+ name: string;
1335
+ /** Centrifugo version */
1336
+ version: string;
1337
+ /** Number of connected clients */
1338
+ num_clients: number;
1339
+ /** Number of unique users */
1340
+ num_users: number;
1341
+ /** Number of active channels */
1342
+ num_channels: number;
1343
+ /** Node uptime in seconds */
1344
+ uptime: number;
1345
+ /** Total number of subscriptions */
1346
+ num_subs: number;
1347
+ metrics?: CentrifugoMetrics$1;
1348
+ process?: CentrifugoProcess$1;
1349
+ }
1350
+ /**
1351
+ * Information about connected client.
1352
+ *
1353
+ * Response model (includes read-only fields).
1354
+ */
1355
+ interface CentrifugoClientInfo$1 {
1356
+ /** User ID */
1357
+ user: string;
1358
+ /** Client UUID */
1359
+ client: string;
1360
+ /** Connection metadata */
1361
+ conn_info?: Record<string, any> | null;
1362
+ /** Channel-specific metadata */
1363
+ chan_info?: Record<string, any> | null;
1364
+ }
1365
+ /**
1366
+ * Server metrics.
1367
+ *
1368
+ * Response model (includes read-only fields).
1369
+ */
1370
+ interface CentrifugoMetrics$1 {
1371
+ /** Metrics collection interval */
1372
+ interval: number;
1373
+ /** Metric name to value mapping */
1374
+ items: Record<string, any>;
1375
+ }
1376
+ /**
1377
+ * Process information.
1378
+ *
1379
+ * Response model (includes read-only fields).
1380
+ */
1381
+ interface CentrifugoProcess$1 {
1382
+ /** CPU usage percentage */
1383
+ cpu: number;
1384
+ /** Resident set size in bytes */
1385
+ rss: number;
1386
+ }
1387
+
1388
+ /**
1389
+ * API endpoints for Centrifugo Admin API.
1390
+ */
1391
+ declare class CentrifugoAdminApi {
1392
+ private client;
1393
+ constructor(client: any);
1394
+ /**
1395
+ * Get connection token for dashboard
1396
+ *
1397
+ * Returns JWT token and config for WebSocket connection to Centrifugo.
1382
1398
  */
1383
- retries?: number;
1399
+ centrifugoServerAuthTokenCreate(): Promise<any>;
1384
1400
  /**
1385
- * Exponential backoff factor.
1386
- * @default 2
1401
+ * List active channels
1402
+ *
1403
+ * Returns list of active channels with optional pattern filter.
1387
1404
  */
1388
- factor?: number;
1405
+ centrifugoServerChannelsCreate(data: CentrifugoChannelsRequestRequest$1): Promise<CentrifugoChannelsResponse$1>;
1389
1406
  /**
1390
- * Minimum wait time between retries (ms).
1391
- * @default 1000
1407
+ * Get channel history
1408
+ *
1409
+ * Returns message history for a channel.
1392
1410
  */
1393
- minTimeout?: number;
1411
+ centrifugoServerHistoryCreate(data: CentrifugoHistoryRequestRequest$1): Promise<CentrifugoHistoryResponse$1>;
1394
1412
  /**
1395
- * Maximum wait time between retries (ms).
1396
- * @default 60000
1413
+ * Get Centrifugo server info
1414
+ *
1415
+ * Returns server information including node count, version, and uptime.
1397
1416
  */
1398
- maxTimeout?: number;
1417
+ centrifugoServerInfoCreate(): Promise<CentrifugoInfoResponse$1>;
1399
1418
  /**
1400
- * Add randomness to wait times (jitter).
1401
- * Helps avoid thundering herd problem.
1402
- * @default true
1419
+ * Get channel presence
1420
+ *
1421
+ * Returns list of clients currently subscribed to a channel.
1403
1422
  */
1404
- randomize?: boolean;
1423
+ centrifugoServerPresenceCreate(data: CentrifugoPresenceRequestRequest$1): Promise<CentrifugoPresenceResponse$1>;
1405
1424
  /**
1406
- * Callback called on each failed attempt.
1425
+ * Get channel presence statistics
1426
+ *
1427
+ * Returns quick statistics about channel presence (num_clients,
1428
+ * num_users).
1407
1429
  */
1408
- onFailedAttempt?: (info: FailedAttemptInfo$1) => void;
1430
+ centrifugoServerPresenceStatsCreate(data: CentrifugoPresenceStatsRequestRequest$1): Promise<CentrifugoPresenceStatsResponse$1>;
1409
1431
  }
1410
1432
 
1411
1433
  /**
1412
- * AUTO-GENERATED FILE - DO NOT EDIT
1413
- *
1414
- * This file is automatically generated by DjangoCFG.
1415
- * Any manual changes will be lost when the code is regenerated.
1416
- *
1417
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1418
- */
1419
- /**
1420
- * Storage adapters for cross-platform token storage.
1434
+ * Response model for Centrifugo connection token.
1421
1435
  *
1422
- * Supports:
1423
- * - LocalStorage (browser)
1424
- * - Cookies (SSR/browser)
1425
- * - Memory (Node.js/Electron/testing)
1436
+ * Response model (includes read-only fields).
1426
1437
  */
1438
+ interface ConnectionTokenResponse$1 {
1439
+ /** JWT token for Centrifugo connection */
1440
+ token: string;
1441
+ /** Centrifugo WebSocket URL */
1442
+ centrifugo_url: string;
1443
+ /** Token expiration time (ISO 8601) */
1444
+ expires_at: string;
1445
+ /** List of allowed channels */
1446
+ channels: Array<string>;
1447
+ }
1427
1448
 
1428
1449
  /**
1429
- * Storage adapter interface for cross-platform token storage.
1450
+ * API endpoints for Centrifugo Auth.
1430
1451
  */
1431
- interface StorageAdapter$1 {
1432
- getItem(key: string): string | null;
1433
- setItem(key: string, value: string): void;
1434
- removeItem(key: string): void;
1452
+ declare class CentrifugoAuth {
1453
+ private client;
1454
+ constructor(client: any);
1455
+ /**
1456
+ * Get Centrifugo connection token
1457
+ *
1458
+ * Generate JWT token for WebSocket connection to Centrifugo. Token
1459
+ * includes user's allowed channels based on their permissions. Requires
1460
+ * authentication.
1461
+ */
1462
+ tokenRetrieve(): Promise<ConnectionTokenResponse$1>;
1435
1463
  }
1436
1464
 
1437
1465
  /**
1438
- * Zod schema for SendPushRequestRequest
1466
+ * List of channel statistics.
1439
1467
  *
1440
- * This schema provides runtime validation and type inference.
1441
- * * Request serializer for sending push notifications.
1442
- * */
1443
-
1444
- /**
1445
- * Request serializer for sending push notifications.
1446
- */
1447
- declare const SendPushRequestRequestSchema: z.ZodObject<{
1448
- title: z.ZodString;
1449
- body: z.ZodString;
1450
- icon: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1451
- url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1452
- }, z.core.$strip>;
1453
- /**
1454
- * Infer TypeScript type from Zod schema
1468
+ * Response model (includes read-only fields).
1455
1469
  */
1456
- type SendPushRequestRequest = z.infer<typeof SendPushRequestRequestSchema>;
1457
-
1470
+ interface ChannelList$1 {
1471
+ /** Channel statistics */
1472
+ channels: Array<ChannelStats$1>;
1473
+ /** Total number of channels */
1474
+ total_channels: number;
1475
+ }
1458
1476
  /**
1459
- * Zod schema for SendPushResponse
1477
+ * Health check response.
1460
1478
  *
1461
- * This schema provides runtime validation and type inference.
1462
- * * Response serializer for send push endpoint.
1463
- * */
1464
-
1465
- /**
1466
- * Response serializer for send push endpoint.
1467
- */
1468
- declare const SendPushResponseSchema: z.ZodObject<{
1469
- success: z.ZodBoolean;
1470
- sent_to: z.ZodInt;
1471
- }, z.core.$strip>;
1472
- /**
1473
- * Infer TypeScript type from Zod schema
1479
+ * Response model (includes read-only fields).
1474
1480
  */
1475
- type SendPushResponse = z.infer<typeof SendPushResponseSchema>;
1476
-
1481
+ interface CentrifugoHealthCheck$1 {
1482
+ /** Health status: healthy or unhealthy */
1483
+ status: string;
1484
+ /** Configured wrapper URL */
1485
+ wrapper_url: string;
1486
+ /** Whether API key is configured */
1487
+ has_api_key: boolean;
1488
+ /** Current timestamp */
1489
+ timestamp: string;
1490
+ }
1477
1491
  /**
1478
- * Zod schema for SubscribeRequestRequest
1492
+ * Overview statistics for Centrifugo publishes.
1479
1493
  *
1480
- * This schema provides runtime validation and type inference.
1481
- * * Request serializer for subscribing to push notifications.
1482
- * */
1483
-
1484
- /**
1485
- * Request serializer for subscribing to push notifications.
1486
- */
1487
- declare const SubscribeRequestRequestSchema: z.ZodObject<{
1488
- endpoint: z.ZodURL;
1489
- keys: z.ZodRecord<z.ZodString, z.ZodString>;
1490
- }, z.core.$strip>;
1491
- /**
1492
- * Infer TypeScript type from Zod schema
1494
+ * Response model (includes read-only fields).
1493
1495
  */
1494
- type SubscribeRequestRequest = z.infer<typeof SubscribeRequestRequestSchema>;
1495
-
1496
+ interface CentrifugoOverviewStats$1 {
1497
+ /** Total publishes in period */
1498
+ total: number;
1499
+ /** Successful publishes */
1500
+ successful: number;
1501
+ /** Failed publishes */
1502
+ failed: number;
1503
+ /** Timeout publishes */
1504
+ timeout: number;
1505
+ /** Success rate percentage */
1506
+ success_rate: number;
1507
+ /** Average duration in milliseconds */
1508
+ avg_duration_ms: number;
1509
+ /** Average ACKs received */
1510
+ avg_acks_received: number;
1511
+ /** Statistics period in hours */
1512
+ period_hours: number;
1513
+ }
1496
1514
  /**
1497
- * Zod schema for SubscribeResponse
1498
1515
  *
1499
- * This schema provides runtime validation and type inference.
1500
- * * Response serializer for subscription endpoint.
1501
- * */
1502
-
1503
- /**
1504
- * Response serializer for subscription endpoint.
1516
+ * Response model (includes read-only fields).
1505
1517
  */
1506
- declare const SubscribeResponseSchema: z.ZodObject<{
1507
- success: z.ZodBoolean;
1508
- subscription_id: z.ZodInt;
1509
- created: z.ZodBoolean;
1510
- }, z.core.$strip>;
1511
- /**
1512
- * Infer TypeScript type from Zod schema
1513
- */
1514
- type SubscribeResponse = z.infer<typeof SubscribeResponseSchema>;
1515
-
1518
+ interface PaginatedPublishList$1 {
1519
+ /** Total number of items across all pages */
1520
+ count: number;
1521
+ /** Current page number (1-based) */
1522
+ page: number;
1523
+ /** Total number of pages */
1524
+ pages: number;
1525
+ /** Number of items per page */
1526
+ page_size: number;
1527
+ /** Whether there is a next page */
1528
+ has_next: boolean;
1529
+ /** Whether there is a previous page */
1530
+ has_previous: boolean;
1531
+ /** Next page number (null if no next page) */
1532
+ next_page?: number | null;
1533
+ /** Previous page number (null if no previous page) */
1534
+ previous_page?: number | null;
1535
+ /** Array of items for current page */
1536
+ results: Array<Publish$1>;
1537
+ }
1516
1538
  /**
1517
- * Zod schema for VapidPublicKeyResponse
1539
+ * Timeline response with hourly/daily breakdown for DRF.
1518
1540
  *
1519
- * This schema provides runtime validation and type inference.
1520
- * * Response serializer for VAPID public key endpoint.
1521
- * */
1522
-
1523
- /**
1524
- * Response serializer for VAPID public key endpoint.
1541
+ * Response model (includes read-only fields).
1525
1542
  */
1526
- declare const VapidPublicKeyResponseSchema: z.ZodObject<{
1527
- publicKey: z.ZodString;
1528
- }, z.core.$strip>;
1543
+ interface TimelineResponse$1 {
1544
+ timeline: Array<TimelineItem$1>;
1545
+ period_hours: number;
1546
+ interval: string;
1547
+ }
1529
1548
  /**
1530
- * Infer TypeScript type from Zod schema
1549
+ * Statistics per channel.
1550
+ *
1551
+ * Response model (includes read-only fields).
1531
1552
  */
1532
- type VapidPublicKeyResponse = z.infer<typeof VapidPublicKeyResponseSchema>;
1533
-
1553
+ interface ChannelStats$1 {
1554
+ /** Channel name */
1555
+ channel: string;
1556
+ /** Total publishes to this channel */
1557
+ total: number;
1558
+ /** Successful publishes */
1559
+ successful: number;
1560
+ /** Failed publishes */
1561
+ failed: number;
1562
+ /** Average duration */
1563
+ avg_duration_ms: number;
1564
+ /** Average ACKs received */
1565
+ avg_acks: number;
1566
+ /** Last activity timestamp (ISO format) */
1567
+ last_activity_at: string | null;
1568
+ }
1534
1569
  /**
1535
- * AUTO-GENERATED FILE - DO NOT EDIT
1536
- *
1537
- * This file is automatically generated by DjangoCFG.
1538
- * Any manual changes will be lost when the code is regenerated.
1570
+ * Single publish item for DRF pagination.
1539
1571
  *
1540
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1572
+ * Response model (includes read-only fields).
1541
1573
  */
1574
+ interface Publish$1 {
1575
+ message_id: string;
1576
+ channel: string;
1577
+ status: string;
1578
+ wait_for_ack: boolean;
1579
+ acks_received: number;
1580
+ acks_expected: number | null;
1581
+ duration_ms: number | null;
1582
+ created_at: string;
1583
+ completed_at: string | null;
1584
+ error_code: string | null;
1585
+ error_message: string | null;
1586
+ }
1542
1587
  /**
1543
- * Zod Schemas - Runtime validation and type inference
1544
- *
1545
- * Auto-generated from OpenAPI specification.
1546
- * Provides runtime validation for API requests and responses.
1547
- *
1548
- * Usage:
1549
- * ```typescript
1550
- * import { UserSchema } from './schemas'
1551
- *
1552
- * // Validate data
1553
- * const user = UserSchema.parse(data)
1588
+ * Single timeline data point for DRF.
1554
1589
  *
1555
- * // Type inference
1556
- * type User = z.infer<typeof UserSchema>
1557
- * ```
1590
+ * Response model (includes read-only fields).
1558
1591
  */
1559
-
1560
- type index$5_SendPushRequestRequest = SendPushRequestRequest;
1561
- declare const index$5_SendPushRequestRequestSchema: typeof SendPushRequestRequestSchema;
1562
- type index$5_SendPushResponse = SendPushResponse;
1563
- declare const index$5_SendPushResponseSchema: typeof SendPushResponseSchema;
1564
- type index$5_SubscribeRequestRequest = SubscribeRequestRequest;
1565
- declare const index$5_SubscribeRequestRequestSchema: typeof SubscribeRequestRequestSchema;
1566
- type index$5_SubscribeResponse = SubscribeResponse;
1567
- declare const index$5_SubscribeResponseSchema: typeof SubscribeResponseSchema;
1568
- type index$5_VapidPublicKeyResponse = VapidPublicKeyResponse;
1569
- declare const index$5_VapidPublicKeyResponseSchema: typeof VapidPublicKeyResponseSchema;
1570
- declare namespace index$5 {
1571
- export { type index$5_SendPushRequestRequest as SendPushRequestRequest, index$5_SendPushRequestRequestSchema as SendPushRequestRequestSchema, type index$5_SendPushResponse as SendPushResponse, index$5_SendPushResponseSchema as SendPushResponseSchema, type index$5_SubscribeRequestRequest as SubscribeRequestRequest, index$5_SubscribeRequestRequestSchema as SubscribeRequestRequestSchema, type index$5_SubscribeResponse as SubscribeResponse, index$5_SubscribeResponseSchema as SubscribeResponseSchema, type index$5_VapidPublicKeyResponse as VapidPublicKeyResponse, index$5_VapidPublicKeyResponseSchema as VapidPublicKeyResponseSchema };
1592
+ interface TimelineItem$1 {
1593
+ timestamp: string;
1594
+ count: number;
1595
+ successful: number;
1596
+ failed: number;
1597
+ timeout: number;
1572
1598
  }
1573
1599
 
1574
1600
  /**
1575
- * Send push notification
1576
- *
1577
- * @method POST
1578
- * @path /cfg/webpush/send/
1601
+ * API endpoints for Centrifugo Monitoring.
1579
1602
  */
1580
- declare function createWebpushSendCreate(data: SendPushRequestRequest, client?: any): Promise<SendPushResponse>;
1603
+ declare class CentrifugoMonitoring {
1604
+ private client;
1605
+ constructor(client: any);
1606
+ centrifugoMonitorChannelsRetrieve(hours?: number): Promise<ChannelList$1[]>;
1607
+ centrifugoMonitorChannelsRetrieve(params?: {
1608
+ hours?: number;
1609
+ }): Promise<ChannelList$1[]>;
1610
+ /**
1611
+ * Get Centrifugo health status
1612
+ *
1613
+ * Returns the current health status of the Centrifugo client.
1614
+ */
1615
+ centrifugoMonitorHealthRetrieve(): Promise<CentrifugoHealthCheck$1>;
1616
+ centrifugoMonitorOverviewRetrieve(hours?: number): Promise<CentrifugoOverviewStats$1>;
1617
+ centrifugoMonitorOverviewRetrieve(params?: {
1618
+ hours?: number;
1619
+ }): Promise<CentrifugoOverviewStats$1>;
1620
+ centrifugoMonitorPublishesList(channel?: string, page?: number, page_size?: number, status?: string): Promise<PaginatedPublishList$1>;
1621
+ centrifugoMonitorPublishesList(params?: {
1622
+ channel?: string;
1623
+ page?: number;
1624
+ page_size?: number;
1625
+ status?: string;
1626
+ }): Promise<PaginatedPublishList$1>;
1627
+ centrifugoMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<TimelineResponse$1>;
1628
+ centrifugoMonitorTimelineRetrieve(params?: {
1629
+ hours?: number;
1630
+ interval?: string;
1631
+ }): Promise<TimelineResponse$1>;
1632
+ }
1633
+
1581
1634
  /**
1582
- * Subscribe to push notifications
1635
+ * Request model for test message publishing.
1583
1636
  *
1584
- * @method POST
1585
- * @path /cfg/webpush/subscribe/
1637
+ * Request model (no read-only fields).
1586
1638
  */
1587
- declare function createWebpushSubscribeCreate(data: SubscribeRequestRequest, client?: any): Promise<SubscribeResponse>;
1639
+ interface PublishTestRequestRequest$1 {
1640
+ /** Target channel name */
1641
+ channel: string;
1642
+ /** Message data (any JSON object) */
1643
+ data: Record<string, any>;
1644
+ /** Wait for client acknowledgment */
1645
+ wait_for_ack?: boolean;
1646
+ /** ACK timeout in seconds */
1647
+ ack_timeout?: number;
1648
+ }
1588
1649
  /**
1589
- * Get VAPID public key
1650
+ * Response model for test message publishing.
1590
1651
  *
1591
- * @method GET
1592
- * @path /cfg/webpush/vapid/
1652
+ * Response model (includes read-only fields).
1593
1653
  */
1594
- declare function getWebpushVapidRetrieve(client?: any): Promise<VapidPublicKeyResponse>;
1595
-
1654
+ interface PublishTestResponse$1 {
1655
+ /** Whether publish succeeded */
1656
+ success: boolean;
1657
+ /** Unique message ID */
1658
+ message_id: string;
1659
+ /** Target channel */
1660
+ channel: string;
1661
+ /** Number of ACKs received */
1662
+ acks_received?: number;
1663
+ /** Whether message was delivered */
1664
+ delivered?: boolean;
1665
+ /** Error message if failed */
1666
+ error?: string | null;
1667
+ }
1596
1668
  /**
1597
- * AUTO-GENERATED FILE - DO NOT EDIT
1598
- *
1599
- * This file is automatically generated by DjangoCFG.
1600
- * Any manual changes will be lost when the code is regenerated.
1669
+ * Request model for manual ACK sending.
1601
1670
  *
1602
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1671
+ * Request model (no read-only fields).
1603
1672
  */
1673
+ interface ManualAckRequestRequest$1 {
1674
+ /** Message ID to acknowledge */
1675
+ message_id: string;
1676
+ /** Client ID sending the ACK */
1677
+ client_id: string;
1678
+ }
1604
1679
  /**
1605
- * Typed Fetchers - Universal API functions
1606
- *
1607
- * Auto-generated from OpenAPI specification.
1608
- * These functions work in any JavaScript environment.
1609
- *
1610
- * Features:
1611
- * - Runtime validation with Zod
1612
- * - Type-safe parameters and responses
1613
- * - Works with any data-fetching library (SWR, React Query, etc)
1614
- * - Server Component compatible
1615
- *
1616
- * Usage:
1617
- * ```typescript
1618
- * import * as fetchers from './fetchers'
1619
- *
1620
- * // Direct usage
1621
- * const user = await fetchers.getUser(1)
1622
- *
1623
- * // With SWR
1624
- * const { data } = useSWR('user-1', () => fetchers.getUser(1))
1680
+ * Response model for manual ACK.
1625
1681
  *
1626
- * // With React Query
1627
- * const { data } = useQuery(['user', 1], () => fetchers.getUser(1))
1628
- * ```
1682
+ * Response model (includes read-only fields).
1629
1683
  */
1630
-
1631
- declare const index$4_createWebpushSendCreate: typeof createWebpushSendCreate;
1632
- declare const index$4_createWebpushSubscribeCreate: typeof createWebpushSubscribeCreate;
1633
- declare const index$4_getWebpushVapidRetrieve: typeof getWebpushVapidRetrieve;
1634
- declare namespace index$4 {
1635
- export { index$4_createWebpushSendCreate as createWebpushSendCreate, index$4_createWebpushSubscribeCreate as createWebpushSubscribeCreate, index$4_getWebpushVapidRetrieve as getWebpushVapidRetrieve };
1684
+ interface ManualAckResponse$1 {
1685
+ /** Whether ACK was sent successfully */
1686
+ success: boolean;
1687
+ /** Message ID that was acknowledged */
1688
+ message_id: string;
1689
+ /** Error message if failed */
1690
+ error?: string | null;
1636
1691
  }
1637
1692
 
1638
1693
  /**
1639
- * AUTO-GENERATED FILE - DO NOT EDIT
1640
- *
1641
- * This file is automatically generated by DjangoCFG.
1642
- * Any manual changes will be lost when the code is regenerated.
1643
- *
1644
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1694
+ * API endpoints for Centrifugo Testing.
1645
1695
  */
1696
+ declare class CentrifugoTesting {
1697
+ private client;
1698
+ constructor(client: any);
1699
+ /**
1700
+ * Publish test message
1701
+ *
1702
+ * Publish test message to Centrifugo via wrapper with optional ACK
1703
+ * tracking.
1704
+ */
1705
+ publishTestCreate(data: PublishTestRequestRequest$1): Promise<PublishTestResponse$1>;
1706
+ /**
1707
+ * Publish with database logging
1708
+ *
1709
+ * Publish message using CentrifugoClient with database logging. This will
1710
+ * create CentrifugoLog records.
1711
+ */
1712
+ publishWithLoggingCreate(data: PublishTestRequestRequest$1): Promise<PublishTestResponse$1>;
1713
+ /**
1714
+ * Send manual ACK
1715
+ *
1716
+ * Manually send ACK for a message to the wrapper. Pass message_id in
1717
+ * request body.
1718
+ */
1719
+ sendAckCreate(data: ManualAckRequestRequest$1): Promise<ManualAckResponse$1>;
1720
+ }
1721
+
1646
1722
  /**
1647
- * Django CFG API - API Client with JWT Management
1648
- *
1649
- * Usage:
1650
- * ```typescript
1651
- * import { API } from './api';
1652
- *
1653
- * const api = new API('https://api.example.com');
1654
- *
1655
- * // Set JWT token
1656
- * api.setToken('your-jwt-token', 'refresh-token');
1657
- *
1658
- * // Use API
1659
- * const posts = await api.posts.list();
1660
- * const user = await api.users.retrieve(1);
1661
- *
1662
- * // Check authentication
1663
- * if (api.isAuthenticated()) {
1664
- * // ...
1665
- * }
1666
- *
1667
- * // Custom storage with logging (for Electron/Node.js)
1668
- * import { MemoryStorageAdapter, APILogger } from './storage';
1669
- * const logger = new APILogger({ enabled: true, logLevel: 'debug' });
1670
- * const api = new API('https://api.example.com', {
1671
- * storage: new MemoryStorageAdapter(logger),
1672
- * loggerConfig: { enabled: true, logLevel: 'debug' }
1673
- * });
1723
+ * API Logger with Consola
1724
+ * Beautiful console logging for API requests and responses
1674
1725
  *
1675
- * // Get OpenAPI schema
1676
- * const schema = api.getSchema();
1677
- * ```
1726
+ * Installation:
1727
+ * npm install consola
1678
1728
  */
1679
1729
 
1680
- interface APIOptions$1 {
1681
- /** Custom storage adapter (defaults to LocalStorageAdapter) */
1682
- storage?: StorageAdapter$1;
1683
- /** Retry configuration for failed requests */
1684
- retryConfig?: RetryConfig$1;
1685
- /** Logger configuration */
1686
- loggerConfig?: Partial<LoggerConfig$1>;
1730
+ /**
1731
+ * Logger configuration
1732
+ */
1733
+ interface LoggerConfig$1 {
1734
+ /** Enable logging */
1735
+ enabled: boolean;
1736
+ /** Log requests */
1737
+ logRequests: boolean;
1738
+ /** Log responses */
1739
+ logResponses: boolean;
1740
+ /** Log errors */
1741
+ logErrors: boolean;
1742
+ /** Log request/response bodies */
1743
+ logBodies: boolean;
1744
+ /** Log headers (excluding sensitive ones) */
1745
+ logHeaders: boolean;
1746
+ /** Custom consola instance */
1747
+ consola?: ConsolaInstance;
1687
1748
  }
1688
- declare class API$1 {
1689
- private baseUrl;
1690
- private _client;
1691
- private _token;
1692
- private _refreshToken;
1693
- private storage;
1694
- private options?;
1695
- web_push: WebPush;
1696
- constructor(baseUrl: string, options?: APIOptions$1);
1697
- private _loadTokensFromStorage;
1698
- private _reinitClients;
1699
- private _injectAuthHeader;
1700
- /**
1701
- * Get current JWT token
1702
- */
1703
- getToken(): string | null;
1704
- /**
1705
- * Get current refresh token
1706
- */
1707
- getRefreshToken(): string | null;
1749
+
1750
+ /**
1751
+ * Retry Configuration and Utilities
1752
+ *
1753
+ * Provides automatic retry logic for failed HTTP requests using p-retry.
1754
+ * Retries only on network errors and server errors (5xx), not client errors (4xx).
1755
+ */
1756
+ /**
1757
+ * Information about a failed retry attempt.
1758
+ */
1759
+ interface FailedAttemptInfo$1 {
1760
+ /** The error that caused the failure */
1761
+ error: Error;
1762
+ /** The attempt number (1-indexed) */
1763
+ attemptNumber: number;
1764
+ /** Number of retries left */
1765
+ retriesLeft: number;
1766
+ }
1767
+ /**
1768
+ * Retry configuration options.
1769
+ *
1770
+ * Uses exponential backoff with jitter by default to avoid thundering herd.
1771
+ */
1772
+ interface RetryConfig$1 {
1708
1773
  /**
1709
- * Set JWT token and refresh token
1710
- * @param token - JWT access token
1711
- * @param refreshToken - JWT refresh token (optional)
1774
+ * Maximum number of retry attempts.
1775
+ * @default 3
1712
1776
  */
1713
- setToken(token: string, refreshToken?: string): void;
1777
+ retries?: number;
1714
1778
  /**
1715
- * Clear all tokens
1779
+ * Exponential backoff factor.
1780
+ * @default 2
1716
1781
  */
1717
- clearTokens(): void;
1782
+ factor?: number;
1718
1783
  /**
1719
- * Check if user is authenticated
1784
+ * Minimum wait time between retries (ms).
1785
+ * @default 1000
1720
1786
  */
1721
- isAuthenticated(): boolean;
1787
+ minTimeout?: number;
1722
1788
  /**
1723
- * Update base URL and reinitialize clients
1724
- * @param url - New base URL
1789
+ * Maximum wait time between retries (ms).
1790
+ * @default 60000
1725
1791
  */
1726
- setBaseUrl(url: string): void;
1792
+ maxTimeout?: number;
1727
1793
  /**
1728
- * Get current base URL
1794
+ * Add randomness to wait times (jitter).
1795
+ * Helps avoid thundering herd problem.
1796
+ * @default true
1729
1797
  */
1730
- getBaseUrl(): string;
1798
+ randomize?: boolean;
1731
1799
  /**
1732
- * Get OpenAPI schema path
1733
- * @returns Path to the OpenAPI schema JSON file
1734
- *
1735
- * Note: The OpenAPI schema is available in the schema.json file.
1736
- * You can load it dynamically using:
1737
- * ```typescript
1738
- * const schema = await fetch('./schema.json').then(r => r.json());
1739
- * // or using fs in Node.js:
1740
- * // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
1741
- * ```
1800
+ * Callback called on each failed attempt.
1742
1801
  */
1743
- getSchemaPath(): string;
1802
+ onFailedAttempt?: (info: FailedAttemptInfo$1) => void;
1744
1803
  }
1745
1804
 
1746
1805
  /**
1747
- * AUTO-GENERATED FILE - DO NOT EDIT
1748
- *
1749
- * This file is automatically generated by DjangoCFG.
1750
- * Any manual changes will be lost when the code is regenerated.
1806
+ * Storage adapters for cross-platform token storage.
1751
1807
  *
1752
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1808
+ * Supports:
1809
+ * - LocalStorage (browser)
1810
+ * - Cookies (SSR/browser)
1811
+ * - Memory (Node.js/Electron/testing)
1753
1812
  */
1813
+
1754
1814
  /**
1755
- * Request to list active channels.
1756
- *
1757
- * Request model (no read-only fields).
1815
+ * Storage adapter interface for cross-platform token storage.
1758
1816
  */
1759
- interface CentrifugoChannelsRequestRequest$1 {
1760
- /** Pattern to filter channels (e.g., 'user:*') */
1761
- pattern?: string | null;
1817
+ interface StorageAdapter$1 {
1818
+ getItem(key: string): string | null;
1819
+ setItem(key: string, value: string): void;
1820
+ removeItem(key: string): void;
1762
1821
  }
1822
+
1763
1823
  /**
1764
- * List of active channels response.
1824
+ * Zod schema for CentrifugoChannelInfo
1765
1825
  *
1766
- * Response model (includes read-only fields).
1826
+ * This schema provides runtime validation and type inference.
1827
+ * * Information about a single channel.
1828
+ * */
1829
+
1830
+ /**
1831
+ * Information about a single channel.
1767
1832
  */
1768
- interface CentrifugoChannelsResponse$1 {
1769
- error?: CentrifugoError$1;
1770
- result?: CentrifugoChannelsResult$1;
1771
- }
1833
+ declare const CentrifugoChannelInfoSchema: z.ZodObject<{
1834
+ num_clients: z.ZodInt;
1835
+ }, z.core.$strip>;
1772
1836
  /**
1773
- * Request to get channel history.
1774
- *
1775
- * Request model (no read-only fields).
1837
+ * Infer TypeScript type from Zod schema
1776
1838
  */
1777
- interface CentrifugoHistoryRequestRequest$1 {
1778
- /** Channel name */
1779
- channel: string;
1780
- /** Maximum number of messages to return */
1781
- limit?: number | null;
1782
- since?: CentrifugoStreamPosition$1;
1783
- /** Reverse message order (newest first) */
1784
- reverse?: boolean | null;
1785
- }
1839
+ type CentrifugoChannelInfo = z.infer<typeof CentrifugoChannelInfoSchema>;
1840
+
1786
1841
  /**
1787
- * Channel history response.
1842
+ * Zod schema for CentrifugoChannelsRequestRequest
1788
1843
  *
1789
- * Response model (includes read-only fields).
1844
+ * This schema provides runtime validation and type inference.
1845
+ * * Request to list active channels.
1846
+ * */
1847
+
1848
+ /**
1849
+ * Request to list active channels.
1790
1850
  */
1791
- interface CentrifugoHistoryResponse$1 {
1792
- error?: CentrifugoError$1;
1793
- result?: CentrifugoHistoryResult$1;
1794
- }
1851
+ declare const CentrifugoChannelsRequestRequestSchema: z.ZodObject<{
1852
+ pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1853
+ }, z.core.$strip>;
1795
1854
  /**
1796
- * Server info response.
1797
- *
1798
- * Response model (includes read-only fields).
1855
+ * Infer TypeScript type from Zod schema
1799
1856
  */
1800
- interface CentrifugoInfoResponse$1 {
1801
- error?: CentrifugoError$1;
1802
- result?: CentrifugoInfoResult$1;
1803
- }
1857
+ type CentrifugoChannelsRequestRequest = z.infer<typeof CentrifugoChannelsRequestRequestSchema>;
1858
+
1804
1859
  /**
1805
- * Request to get channel presence.
1860
+ * Zod schema for CentrifugoChannelsResponse
1806
1861
  *
1807
- * Request model (no read-only fields).
1862
+ * This schema provides runtime validation and type inference.
1863
+ * * List of active channels response.
1864
+ * */
1865
+
1866
+ /**
1867
+ * List of active channels response.
1808
1868
  */
1809
- interface CentrifugoPresenceRequestRequest$1 {
1810
- /** Channel name */
1811
- channel: string;
1812
- }
1869
+ declare const CentrifugoChannelsResponseSchema: z.ZodObject<{
1870
+ error: z.ZodOptional<z.ZodObject<{
1871
+ code: z.ZodOptional<z.ZodInt>;
1872
+ message: z.ZodOptional<z.ZodString>;
1873
+ }, z.core.$strip>>;
1874
+ result: z.ZodOptional<z.ZodObject<{
1875
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
1876
+ num_clients: z.ZodInt;
1877
+ }, z.core.$strip>>;
1878
+ }, z.core.$strip>>;
1879
+ }, z.core.$strip>;
1813
1880
  /**
1814
- * Channel presence response.
1815
- *
1816
- * Response model (includes read-only fields).
1881
+ * Infer TypeScript type from Zod schema
1817
1882
  */
1818
- interface CentrifugoPresenceResponse$1 {
1819
- error?: CentrifugoError$1;
1820
- result?: CentrifugoPresenceResult$1;
1821
- }
1883
+ type CentrifugoChannelsResponse = z.infer<typeof CentrifugoChannelsResponseSchema>;
1884
+
1822
1885
  /**
1823
- * Request to get channel presence statistics.
1886
+ * Zod schema for CentrifugoChannelsResult
1824
1887
  *
1825
- * Request model (no read-only fields).
1826
- */
1827
- interface CentrifugoPresenceStatsRequestRequest$1 {
1828
- /** Channel name */
1829
- channel: string;
1830
- }
1888
+ * This schema provides runtime validation and type inference.
1889
+ * * Channels result wrapper.
1890
+ * */
1891
+
1831
1892
  /**
1832
- * Channel presence stats response.
1833
- *
1834
- * Response model (includes read-only fields).
1893
+ * Channels result wrapper.
1835
1894
  */
1836
- interface CentrifugoPresenceStatsResponse$1 {
1837
- error?: CentrifugoError$1;
1838
- result?: CentrifugoPresenceStatsResult$1;
1839
- }
1895
+ declare const CentrifugoChannelsResultSchema: z.ZodObject<{
1896
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
1897
+ num_clients: z.ZodInt;
1898
+ }, z.core.$strip>>;
1899
+ }, z.core.$strip>;
1840
1900
  /**
1841
- * Centrifugo API error structure.
1842
- *
1843
- * Response model (includes read-only fields).
1901
+ * Infer TypeScript type from Zod schema
1844
1902
  */
1845
- interface CentrifugoError$1 {
1846
- /** Error code (0 = no error) */
1847
- code?: number;
1848
- /** Error message */
1849
- message?: string;
1850
- }
1903
+ type CentrifugoChannelsResult = z.infer<typeof CentrifugoChannelsResultSchema>;
1904
+
1851
1905
  /**
1852
- * Channels result wrapper.
1906
+ * Zod schema for CentrifugoClientInfo
1853
1907
  *
1854
- * Response model (includes read-only fields).
1855
- */
1856
- interface CentrifugoChannelsResult$1 {
1857
- /** Map of channel names to channel info */
1858
- channels: Record<string, CentrifugoChannelInfo$1>;
1859
- }
1908
+ * This schema provides runtime validation and type inference.
1909
+ * * Information about connected client.
1910
+ * */
1911
+
1860
1912
  /**
1861
- * Stream position for pagination.
1862
- *
1863
- * Response model (includes read-only fields).
1913
+ * Information about connected client.
1864
1914
  */
1865
- interface CentrifugoStreamPosition$1 {
1866
- /** Stream offset */
1867
- offset: number;
1868
- /** Stream epoch */
1869
- epoch: string;
1870
- }
1915
+ declare const CentrifugoClientInfoSchema: z.ZodObject<{
1916
+ user: z.ZodString;
1917
+ client: z.ZodString;
1918
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1919
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1920
+ }, z.core.$strip>;
1871
1921
  /**
1872
- * History result wrapper.
1873
- *
1874
- * Response model (includes read-only fields).
1922
+ * Infer TypeScript type from Zod schema
1875
1923
  */
1876
- interface CentrifugoHistoryResult$1 {
1877
- /** List of publications */
1878
- publications: Array<CentrifugoPublication$1>;
1879
- /** Current stream epoch */
1880
- epoch: string;
1881
- /** Latest stream offset */
1882
- offset: number;
1883
- }
1924
+ type CentrifugoClientInfo = z.infer<typeof CentrifugoClientInfoSchema>;
1925
+
1884
1926
  /**
1885
- * Info result wrapper.
1927
+ * Zod schema for CentrifugoError
1886
1928
  *
1887
- * Response model (includes read-only fields).
1929
+ * This schema provides runtime validation and type inference.
1930
+ * * Centrifugo API error structure.
1931
+ * */
1932
+
1933
+ /**
1934
+ * Centrifugo API error structure.
1888
1935
  */
1889
- interface CentrifugoInfoResult$1 {
1890
- /** List of Centrifugo nodes */
1891
- nodes: Array<CentrifugoNodeInfo$1>;
1892
- }
1936
+ declare const CentrifugoErrorSchema: z.ZodObject<{
1937
+ code: z.ZodOptional<z.ZodInt>;
1938
+ message: z.ZodOptional<z.ZodString>;
1939
+ }, z.core.$strip>;
1893
1940
  /**
1894
- * Presence result wrapper.
1895
- *
1896
- * Response model (includes read-only fields).
1941
+ * Infer TypeScript type from Zod schema
1897
1942
  */
1898
- interface CentrifugoPresenceResult$1 {
1899
- /** Map of client IDs to client info */
1900
- presence: Record<string, CentrifugoClientInfo$1>;
1901
- }
1943
+ type CentrifugoError = z.infer<typeof CentrifugoErrorSchema>;
1944
+
1902
1945
  /**
1903
- * Presence stats result.
1946
+ * Zod schema for CentrifugoHealthCheck
1904
1947
  *
1905
- * Response model (includes read-only fields).
1948
+ * This schema provides runtime validation and type inference.
1949
+ * * Health check response.
1950
+ * */
1951
+
1952
+ /**
1953
+ * Health check response.
1906
1954
  */
1907
- interface CentrifugoPresenceStatsResult$1 {
1908
- /** Number of connected clients */
1909
- num_clients: number;
1910
- /** Number of unique users */
1911
- num_users: number;
1912
- }
1955
+ declare const CentrifugoHealthCheckSchema: z.ZodObject<{
1956
+ status: z.ZodString;
1957
+ wrapper_url: z.ZodString;
1958
+ has_api_key: z.ZodBoolean;
1959
+ timestamp: z.ZodString;
1960
+ }, z.core.$strip>;
1913
1961
  /**
1914
- * Information about a single channel.
1915
- *
1916
- * Response model (includes read-only fields).
1962
+ * Infer TypeScript type from Zod schema
1917
1963
  */
1918
- interface CentrifugoChannelInfo$1 {
1919
- /** Number of connected clients in channel */
1920
- num_clients: number;
1921
- }
1964
+ type CentrifugoHealthCheck = z.infer<typeof CentrifugoHealthCheckSchema>;
1965
+
1922
1966
  /**
1923
- * Single publication (message) in channel history.
1967
+ * Zod schema for CentrifugoHistoryRequestRequest
1924
1968
  *
1925
- * Response model (includes read-only fields).
1969
+ * This schema provides runtime validation and type inference.
1970
+ * * Request to get channel history.
1971
+ * */
1972
+
1973
+ /**
1974
+ * Request to get channel history.
1926
1975
  */
1927
- interface CentrifugoPublication$1 {
1928
- /** Message payload */
1929
- data: Record<string, any>;
1930
- info?: CentrifugoClientInfo$1;
1931
- /** Message offset in channel stream */
1932
- offset: number;
1933
- /** Optional message tags */
1934
- tags?: Record<string, any> | null;
1935
- }
1976
+ declare const CentrifugoHistoryRequestRequestSchema: z.ZodObject<{
1977
+ channel: z.ZodString;
1978
+ limit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1979
+ since: z.ZodOptional<z.ZodObject<{
1980
+ offset: z.ZodInt;
1981
+ epoch: z.ZodString;
1982
+ }, z.core.$strip>>;
1983
+ reverse: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1984
+ }, z.core.$strip>;
1936
1985
  /**
1937
- * Information about a single Centrifugo node.
1938
- *
1939
- * Response model (includes read-only fields).
1986
+ * Infer TypeScript type from Zod schema
1940
1987
  */
1941
- interface CentrifugoNodeInfo$1 {
1942
- /** Unique node identifier */
1943
- uid: string;
1944
- /** Node name */
1945
- name: string;
1946
- /** Centrifugo version */
1947
- version: string;
1948
- /** Number of connected clients */
1949
- num_clients: number;
1950
- /** Number of unique users */
1951
- num_users: number;
1952
- /** Number of active channels */
1953
- num_channels: number;
1954
- /** Node uptime in seconds */
1955
- uptime: number;
1956
- /** Total number of subscriptions */
1957
- num_subs: number;
1958
- metrics?: CentrifugoMetrics$1;
1959
- process?: CentrifugoProcess$1;
1960
- }
1988
+ type CentrifugoHistoryRequestRequest = z.infer<typeof CentrifugoHistoryRequestRequestSchema>;
1989
+
1961
1990
  /**
1962
- * Information about connected client.
1991
+ * Zod schema for CentrifugoHistoryResponse
1963
1992
  *
1964
- * Response model (includes read-only fields).
1993
+ * This schema provides runtime validation and type inference.
1994
+ * * Channel history response.
1995
+ * */
1996
+
1997
+ /**
1998
+ * Channel history response.
1965
1999
  */
1966
- interface CentrifugoClientInfo$1 {
1967
- /** User ID */
1968
- user: string;
1969
- /** Client UUID */
1970
- client: string;
1971
- /** Connection metadata */
1972
- conn_info?: Record<string, any> | null;
1973
- /** Channel-specific metadata */
1974
- chan_info?: Record<string, any> | null;
1975
- }
2000
+ declare const CentrifugoHistoryResponseSchema: z.ZodObject<{
2001
+ error: z.ZodOptional<z.ZodObject<{
2002
+ code: z.ZodOptional<z.ZodInt>;
2003
+ message: z.ZodOptional<z.ZodString>;
2004
+ }, z.core.$strip>>;
2005
+ result: z.ZodOptional<z.ZodObject<{
2006
+ publications: z.ZodArray<z.ZodObject<{
2007
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2008
+ info: z.ZodOptional<z.ZodObject<{
2009
+ user: z.ZodString;
2010
+ client: z.ZodString;
2011
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2012
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2013
+ }, z.core.$strip>>;
2014
+ offset: z.ZodInt;
2015
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2016
+ }, z.core.$strip>>;
2017
+ epoch: z.ZodString;
2018
+ offset: z.ZodInt;
2019
+ }, z.core.$strip>>;
2020
+ }, z.core.$strip>;
1976
2021
  /**
1977
- * Server metrics.
1978
- *
1979
- * Response model (includes read-only fields).
2022
+ * Infer TypeScript type from Zod schema
1980
2023
  */
1981
- interface CentrifugoMetrics$1 {
1982
- /** Metrics collection interval */
1983
- interval: number;
1984
- /** Metric name to value mapping */
1985
- items: Record<string, any>;
1986
- }
2024
+ type CentrifugoHistoryResponse = z.infer<typeof CentrifugoHistoryResponseSchema>;
2025
+
1987
2026
  /**
1988
- * Process information.
2027
+ * Zod schema for CentrifugoHistoryResult
1989
2028
  *
1990
- * Response model (includes read-only fields).
1991
- */
1992
- interface CentrifugoProcess$1 {
1993
- /** CPU usage percentage */
1994
- cpu: number;
1995
- /** Resident set size in bytes */
1996
- rss: number;
1997
- }
2029
+ * This schema provides runtime validation and type inference.
2030
+ * * History result wrapper.
2031
+ * */
1998
2032
 
1999
2033
  /**
2000
- * API endpoints for Centrifugo Admin API.
2034
+ * History result wrapper.
2001
2035
  */
2002
- declare class CentrifugoAdminApi {
2003
- private client;
2004
- constructor(client: any);
2005
- /**
2006
- * Get connection token for dashboard
2007
- *
2008
- * Returns JWT token and config for WebSocket connection to Centrifugo.
2009
- */
2010
- centrifugoServerAuthTokenCreate(): Promise<any>;
2011
- /**
2012
- * List active channels
2013
- *
2014
- * Returns list of active channels with optional pattern filter.
2015
- */
2016
- centrifugoServerChannelsCreate(data: CentrifugoChannelsRequestRequest$1): Promise<CentrifugoChannelsResponse$1>;
2017
- /**
2018
- * Get channel history
2019
- *
2020
- * Returns message history for a channel.
2021
- */
2022
- centrifugoServerHistoryCreate(data: CentrifugoHistoryRequestRequest$1): Promise<CentrifugoHistoryResponse$1>;
2023
- /**
2024
- * Get Centrifugo server info
2025
- *
2026
- * Returns server information including node count, version, and uptime.
2027
- */
2028
- centrifugoServerInfoCreate(): Promise<CentrifugoInfoResponse$1>;
2029
- /**
2030
- * Get channel presence
2031
- *
2032
- * Returns list of clients currently subscribed to a channel.
2033
- */
2034
- centrifugoServerPresenceCreate(data: CentrifugoPresenceRequestRequest$1): Promise<CentrifugoPresenceResponse$1>;
2035
- /**
2036
- * Get channel presence statistics
2037
- *
2038
- * Returns quick statistics about channel presence (num_clients,
2039
- * num_users).
2040
- */
2041
- centrifugoServerPresenceStatsCreate(data: CentrifugoPresenceStatsRequestRequest$1): Promise<CentrifugoPresenceStatsResponse$1>;
2042
- }
2043
-
2044
- /**
2045
- * AUTO-GENERATED FILE - DO NOT EDIT
2046
- *
2047
- * This file is automatically generated by DjangoCFG.
2048
- * Any manual changes will be lost when the code is regenerated.
2049
- *
2050
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2051
- */
2052
- /**
2053
- * Response model for Centrifugo connection token.
2054
- *
2055
- * Response model (includes read-only fields).
2056
- */
2057
- interface ConnectionTokenResponse$1 {
2058
- /** JWT token for Centrifugo connection */
2059
- token: string;
2060
- /** Centrifugo WebSocket URL */
2061
- centrifugo_url: string;
2062
- /** Token expiration time (ISO 8601) */
2063
- expires_at: string;
2064
- /** List of allowed channels */
2065
- channels: Array<string>;
2066
- }
2067
-
2036
+ declare const CentrifugoHistoryResultSchema: z.ZodObject<{
2037
+ publications: z.ZodArray<z.ZodObject<{
2038
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2039
+ info: z.ZodOptional<z.ZodObject<{
2040
+ user: z.ZodString;
2041
+ client: z.ZodString;
2042
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2043
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2044
+ }, z.core.$strip>>;
2045
+ offset: z.ZodInt;
2046
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2047
+ }, z.core.$strip>>;
2048
+ epoch: z.ZodString;
2049
+ offset: z.ZodInt;
2050
+ }, z.core.$strip>;
2068
2051
  /**
2069
- * API endpoints for Centrifugo Auth.
2052
+ * Infer TypeScript type from Zod schema
2070
2053
  */
2071
- declare class CentrifugoAuth {
2072
- private client;
2073
- constructor(client: any);
2074
- /**
2075
- * Get Centrifugo connection token
2076
- *
2077
- * Generate JWT token for WebSocket connection to Centrifugo. Token
2078
- * includes user's allowed channels based on their permissions. Requires
2079
- * authentication.
2080
- */
2081
- tokenRetrieve(): Promise<ConnectionTokenResponse$1>;
2082
- }
2054
+ type CentrifugoHistoryResult = z.infer<typeof CentrifugoHistoryResultSchema>;
2083
2055
 
2084
2056
  /**
2085
- * AUTO-GENERATED FILE - DO NOT EDIT
2086
- *
2087
- * This file is automatically generated by DjangoCFG.
2088
- * Any manual changes will be lost when the code is regenerated.
2089
- *
2090
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2091
- */
2092
- /**
2093
- * List of channel statistics.
2094
- *
2095
- * Response model (includes read-only fields).
2096
- */
2097
- interface ChannelList$1 {
2098
- /** Channel statistics */
2099
- channels: Array<ChannelStats$1>;
2100
- /** Total number of channels */
2101
- total_channels: number;
2102
- }
2103
- /**
2104
- * Health check response.
2105
- *
2106
- * Response model (includes read-only fields).
2107
- */
2108
- interface CentrifugoHealthCheck$1 {
2109
- /** Health status: healthy or unhealthy */
2110
- status: string;
2111
- /** Configured wrapper URL */
2112
- wrapper_url: string;
2113
- /** Whether API key is configured */
2114
- has_api_key: boolean;
2115
- /** Current timestamp */
2116
- timestamp: string;
2117
- }
2118
- /**
2119
- * Overview statistics for Centrifugo publishes.
2120
- *
2121
- * Response model (includes read-only fields).
2122
- */
2123
- interface CentrifugoOverviewStats$1 {
2124
- /** Total publishes in period */
2125
- total: number;
2126
- /** Successful publishes */
2127
- successful: number;
2128
- /** Failed publishes */
2129
- failed: number;
2130
- /** Timeout publishes */
2131
- timeout: number;
2132
- /** Success rate percentage */
2133
- success_rate: number;
2134
- /** Average duration in milliseconds */
2135
- avg_duration_ms: number;
2136
- /** Average ACKs received */
2137
- avg_acks_received: number;
2138
- /** Statistics period in hours */
2139
- period_hours: number;
2140
- }
2141
- /**
2142
- *
2143
- * Response model (includes read-only fields).
2144
- */
2145
- interface PaginatedPublishList$1 {
2146
- /** Total number of items across all pages */
2147
- count: number;
2148
- /** Current page number (1-based) */
2149
- page: number;
2150
- /** Total number of pages */
2151
- pages: number;
2152
- /** Number of items per page */
2153
- page_size: number;
2154
- /** Whether there is a next page */
2155
- has_next: boolean;
2156
- /** Whether there is a previous page */
2157
- has_previous: boolean;
2158
- /** Next page number (null if no next page) */
2159
- next_page?: number | null;
2160
- /** Previous page number (null if no previous page) */
2161
- previous_page?: number | null;
2162
- /** Array of items for current page */
2163
- results: Array<Publish$1>;
2164
- }
2165
- /**
2166
- * Timeline response with hourly/daily breakdown for DRF.
2167
- *
2168
- * Response model (includes read-only fields).
2169
- */
2170
- interface TimelineResponse$1 {
2171
- timeline: Array<TimelineItem$1>;
2172
- period_hours: number;
2173
- interval: string;
2174
- }
2175
- /**
2176
- * Statistics per channel.
2177
- *
2178
- * Response model (includes read-only fields).
2179
- */
2180
- interface ChannelStats$1 {
2181
- /** Channel name */
2182
- channel: string;
2183
- /** Total publishes to this channel */
2184
- total: number;
2185
- /** Successful publishes */
2186
- successful: number;
2187
- /** Failed publishes */
2188
- failed: number;
2189
- /** Average duration */
2190
- avg_duration_ms: number;
2191
- /** Average ACKs received */
2192
- avg_acks: number;
2193
- /** Last activity timestamp (ISO format) */
2194
- last_activity_at: string | null;
2195
- }
2196
- /**
2197
- * Single publish item for DRF pagination.
2198
- *
2199
- * Response model (includes read-only fields).
2200
- */
2201
- interface Publish$1 {
2202
- message_id: string;
2203
- channel: string;
2204
- status: string;
2205
- wait_for_ack: boolean;
2206
- acks_received: number;
2207
- acks_expected: number | null;
2208
- duration_ms: number | null;
2209
- created_at: string;
2210
- completed_at: string | null;
2211
- error_code: string | null;
2212
- error_message: string | null;
2213
- }
2214
- /**
2215
- * Single timeline data point for DRF.
2057
+ * Zod schema for CentrifugoInfoResponse
2216
2058
  *
2217
- * Response model (includes read-only fields).
2218
- */
2219
- interface TimelineItem$1 {
2220
- timestamp: string;
2221
- count: number;
2222
- successful: number;
2223
- failed: number;
2224
- timeout: number;
2225
- }
2226
-
2227
- /**
2228
- * API endpoints for Centrifugo Monitoring.
2229
- */
2230
- declare class CentrifugoMonitoring {
2231
- private client;
2232
- constructor(client: any);
2233
- centrifugoMonitorChannelsRetrieve(hours?: number): Promise<ChannelList$1[]>;
2234
- centrifugoMonitorChannelsRetrieve(params?: {
2235
- hours?: number;
2236
- }): Promise<ChannelList$1[]>;
2237
- /**
2238
- * Get Centrifugo health status
2239
- *
2240
- * Returns the current health status of the Centrifugo client.
2241
- */
2242
- centrifugoMonitorHealthRetrieve(): Promise<CentrifugoHealthCheck$1>;
2243
- centrifugoMonitorOverviewRetrieve(hours?: number): Promise<CentrifugoOverviewStats$1>;
2244
- centrifugoMonitorOverviewRetrieve(params?: {
2245
- hours?: number;
2246
- }): Promise<CentrifugoOverviewStats$1>;
2247
- centrifugoMonitorPublishesList(channel?: string, page?: number, page_size?: number, status?: string): Promise<PaginatedPublishList$1>;
2248
- centrifugoMonitorPublishesList(params?: {
2249
- channel?: string;
2250
- page?: number;
2251
- page_size?: number;
2252
- status?: string;
2253
- }): Promise<PaginatedPublishList$1>;
2254
- centrifugoMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<TimelineResponse$1>;
2255
- centrifugoMonitorTimelineRetrieve(params?: {
2256
- hours?: number;
2257
- interval?: string;
2258
- }): Promise<TimelineResponse$1>;
2259
- }
2059
+ * This schema provides runtime validation and type inference.
2060
+ * * Server info response.
2061
+ * */
2260
2062
 
2261
2063
  /**
2262
- * AUTO-GENERATED FILE - DO NOT EDIT
2263
- *
2264
- * This file is automatically generated by DjangoCFG.
2265
- * Any manual changes will be lost when the code is regenerated.
2266
- *
2267
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2064
+ * Server info response.
2268
2065
  */
2269
- /**
2270
- * Request model for test message publishing.
2271
- *
2272
- * Request model (no read-only fields).
2066
+ declare const CentrifugoInfoResponseSchema: z.ZodObject<{
2067
+ error: z.ZodOptional<z.ZodObject<{
2068
+ code: z.ZodOptional<z.ZodInt>;
2069
+ message: z.ZodOptional<z.ZodString>;
2070
+ }, z.core.$strip>>;
2071
+ result: z.ZodOptional<z.ZodObject<{
2072
+ nodes: z.ZodArray<z.ZodObject<{
2073
+ uid: z.ZodString;
2074
+ name: z.ZodString;
2075
+ version: z.ZodString;
2076
+ num_clients: z.ZodInt;
2077
+ num_users: z.ZodInt;
2078
+ num_channels: z.ZodInt;
2079
+ uptime: z.ZodInt;
2080
+ num_subs: z.ZodInt;
2081
+ metrics: z.ZodOptional<z.ZodObject<{
2082
+ interval: z.ZodNumber;
2083
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2084
+ }, z.core.$strip>>;
2085
+ process: z.ZodOptional<z.ZodObject<{
2086
+ cpu: z.ZodNumber;
2087
+ rss: z.ZodInt;
2088
+ }, z.core.$strip>>;
2089
+ }, z.core.$strip>>;
2090
+ }, z.core.$strip>>;
2091
+ }, z.core.$strip>;
2092
+ /**
2093
+ * Infer TypeScript type from Zod schema
2273
2094
  */
2274
- interface PublishTestRequestRequest$1 {
2275
- /** Target channel name */
2276
- channel: string;
2277
- /** Message data (any JSON object) */
2278
- data: Record<string, any>;
2279
- /** Wait for client acknowledgment */
2280
- wait_for_ack?: boolean;
2281
- /** ACK timeout in seconds */
2282
- ack_timeout?: number;
2283
- }
2095
+ type CentrifugoInfoResponse = z.infer<typeof CentrifugoInfoResponseSchema>;
2096
+
2284
2097
  /**
2285
- * Response model for test message publishing.
2098
+ * Zod schema for CentrifugoInfoResult
2286
2099
  *
2287
- * Response model (includes read-only fields).
2100
+ * This schema provides runtime validation and type inference.
2101
+ * * Info result wrapper.
2102
+ * */
2103
+
2104
+ /**
2105
+ * Info result wrapper.
2288
2106
  */
2289
- interface PublishTestResponse$1 {
2290
- /** Whether publish succeeded */
2291
- success: boolean;
2292
- /** Unique message ID */
2293
- message_id: string;
2294
- /** Target channel */
2295
- channel: string;
2296
- /** Number of ACKs received */
2297
- acks_received?: number;
2298
- /** Whether message was delivered */
2299
- delivered?: boolean;
2300
- /** Error message if failed */
2301
- error?: string | null;
2302
- }
2107
+ declare const CentrifugoInfoResultSchema: z.ZodObject<{
2108
+ nodes: z.ZodArray<z.ZodObject<{
2109
+ uid: z.ZodString;
2110
+ name: z.ZodString;
2111
+ version: z.ZodString;
2112
+ num_clients: z.ZodInt;
2113
+ num_users: z.ZodInt;
2114
+ num_channels: z.ZodInt;
2115
+ uptime: z.ZodInt;
2116
+ num_subs: z.ZodInt;
2117
+ metrics: z.ZodOptional<z.ZodObject<{
2118
+ interval: z.ZodNumber;
2119
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2120
+ }, z.core.$strip>>;
2121
+ process: z.ZodOptional<z.ZodObject<{
2122
+ cpu: z.ZodNumber;
2123
+ rss: z.ZodInt;
2124
+ }, z.core.$strip>>;
2125
+ }, z.core.$strip>>;
2126
+ }, z.core.$strip>;
2303
2127
  /**
2304
- * Request model for manual ACK sending.
2305
- *
2306
- * Request model (no read-only fields).
2128
+ * Infer TypeScript type from Zod schema
2307
2129
  */
2308
- interface ManualAckRequestRequest$1 {
2309
- /** Message ID to acknowledge */
2310
- message_id: string;
2311
- /** Client ID sending the ACK */
2312
- client_id: string;
2313
- }
2130
+ type CentrifugoInfoResult = z.infer<typeof CentrifugoInfoResultSchema>;
2131
+
2314
2132
  /**
2315
- * Response model for manual ACK.
2133
+ * Zod schema for CentrifugoMetrics
2316
2134
  *
2317
- * Response model (includes read-only fields).
2318
- */
2319
- interface ManualAckResponse$1 {
2320
- /** Whether ACK was sent successfully */
2321
- success: boolean;
2322
- /** Message ID that was acknowledged */
2323
- message_id: string;
2324
- /** Error message if failed */
2325
- error?: string | null;
2326
- }
2135
+ * This schema provides runtime validation and type inference.
2136
+ * * Server metrics.
2137
+ * */
2327
2138
 
2328
2139
  /**
2329
- * API endpoints for Centrifugo Testing.
2140
+ * Server metrics.
2330
2141
  */
2331
- declare class CentrifugoTesting {
2332
- private client;
2333
- constructor(client: any);
2334
- /**
2335
- * Publish test message
2336
- *
2337
- * Publish test message to Centrifugo via wrapper with optional ACK
2338
- * tracking.
2339
- */
2340
- publishTestCreate(data: PublishTestRequestRequest$1): Promise<PublishTestResponse$1>;
2341
- /**
2342
- * Publish with database logging
2343
- *
2344
- * Publish message using CentrifugoClient with database logging. This will
2345
- * create CentrifugoLog records.
2346
- */
2347
- publishWithLoggingCreate(data: PublishTestRequestRequest$1): Promise<PublishTestResponse$1>;
2348
- /**
2349
- * Send manual ACK
2350
- *
2351
- * Manually send ACK for a message to the wrapper. Pass message_id in
2352
- * request body.
2353
- */
2354
- sendAckCreate(data: ManualAckRequestRequest$1): Promise<ManualAckResponse$1>;
2355
- }
2356
-
2142
+ declare const CentrifugoMetricsSchema: z.ZodObject<{
2143
+ interval: z.ZodNumber;
2144
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2145
+ }, z.core.$strip>;
2357
2146
  /**
2358
- * AUTO-GENERATED FILE - DO NOT EDIT
2359
- *
2360
- * This file is automatically generated by DjangoCFG.
2361
- * Any manual changes will be lost when the code is regenerated.
2362
- *
2363
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2147
+ * Infer TypeScript type from Zod schema
2364
2148
  */
2149
+ type CentrifugoMetrics = z.infer<typeof CentrifugoMetricsSchema>;
2150
+
2365
2151
  /**
2366
- * API Logger with Consola
2367
- * Beautiful console logging for API requests and responses
2152
+ * Zod schema for CentrifugoNodeInfo
2368
2153
  *
2369
- * Installation:
2370
- * npm install consola
2371
- */
2154
+ * This schema provides runtime validation and type inference.
2155
+ * * Information about a single Centrifugo node.
2156
+ * */
2372
2157
 
2373
2158
  /**
2374
- * Logger configuration
2159
+ * Information about a single Centrifugo node.
2375
2160
  */
2376
- interface LoggerConfig {
2377
- /** Enable logging */
2378
- enabled: boolean;
2379
- /** Log requests */
2380
- logRequests: boolean;
2381
- /** Log responses */
2382
- logResponses: boolean;
2383
- /** Log errors */
2384
- logErrors: boolean;
2385
- /** Log request/response bodies */
2386
- logBodies: boolean;
2387
- /** Log headers (excluding sensitive ones) */
2388
- logHeaders: boolean;
2389
- /** Custom consola instance */
2390
- consola?: ConsolaInstance;
2391
- }
2392
-
2161
+ declare const CentrifugoNodeInfoSchema: z.ZodObject<{
2162
+ uid: z.ZodString;
2163
+ name: z.ZodString;
2164
+ version: z.ZodString;
2165
+ num_clients: z.ZodInt;
2166
+ num_users: z.ZodInt;
2167
+ num_channels: z.ZodInt;
2168
+ uptime: z.ZodInt;
2169
+ num_subs: z.ZodInt;
2170
+ metrics: z.ZodOptional<z.ZodObject<{
2171
+ interval: z.ZodNumber;
2172
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2173
+ }, z.core.$strip>>;
2174
+ process: z.ZodOptional<z.ZodObject<{
2175
+ cpu: z.ZodNumber;
2176
+ rss: z.ZodInt;
2177
+ }, z.core.$strip>>;
2178
+ }, z.core.$strip>;
2393
2179
  /**
2394
- * AUTO-GENERATED FILE - DO NOT EDIT
2395
- *
2396
- * This file is automatically generated by DjangoCFG.
2397
- * Any manual changes will be lost when the code is regenerated.
2398
- *
2399
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2180
+ * Infer TypeScript type from Zod schema
2400
2181
  */
2182
+ type CentrifugoNodeInfo = z.infer<typeof CentrifugoNodeInfoSchema>;
2183
+
2401
2184
  /**
2402
- * Retry Configuration and Utilities
2185
+ * Zod schema for CentrifugoOverviewStats
2403
2186
  *
2404
- * Provides automatic retry logic for failed HTTP requests using p-retry.
2405
- * Retries only on network errors and server errors (5xx), not client errors (4xx).
2406
- */
2187
+ * This schema provides runtime validation and type inference.
2188
+ * * Overview statistics for Centrifugo publishes.
2189
+ * */
2190
+
2407
2191
  /**
2408
- * Information about a failed retry attempt.
2192
+ * Overview statistics for Centrifugo publishes.
2409
2193
  */
2410
- interface FailedAttemptInfo {
2411
- /** The error that caused the failure */
2412
- error: Error;
2413
- /** The attempt number (1-indexed) */
2414
- attemptNumber: number;
2415
- /** Number of retries left */
2416
- retriesLeft: number;
2417
- }
2194
+ declare const CentrifugoOverviewStatsSchema: z.ZodObject<{
2195
+ total: z.ZodInt;
2196
+ successful: z.ZodInt;
2197
+ failed: z.ZodInt;
2198
+ timeout: z.ZodInt;
2199
+ success_rate: z.ZodNumber;
2200
+ avg_duration_ms: z.ZodNumber;
2201
+ avg_acks_received: z.ZodNumber;
2202
+ period_hours: z.ZodInt;
2203
+ }, z.core.$strip>;
2418
2204
  /**
2419
- * Retry configuration options.
2420
- *
2421
- * Uses exponential backoff with jitter by default to avoid thundering herd.
2205
+ * Infer TypeScript type from Zod schema
2422
2206
  */
2423
- interface RetryConfig {
2424
- /**
2425
- * Maximum number of retry attempts.
2426
- * @default 3
2427
- */
2428
- retries?: number;
2429
- /**
2430
- * Exponential backoff factor.
2431
- * @default 2
2432
- */
2433
- factor?: number;
2434
- /**
2435
- * Minimum wait time between retries (ms).
2436
- * @default 1000
2437
- */
2438
- minTimeout?: number;
2439
- /**
2440
- * Maximum wait time between retries (ms).
2441
- * @default 60000
2442
- */
2443
- maxTimeout?: number;
2444
- /**
2445
- * Add randomness to wait times (jitter).
2446
- * Helps avoid thundering herd problem.
2447
- * @default true
2448
- */
2449
- randomize?: boolean;
2450
- /**
2451
- * Callback called on each failed attempt.
2452
- */
2453
- onFailedAttempt?: (info: FailedAttemptInfo) => void;
2454
- }
2207
+ type CentrifugoOverviewStats = z.infer<typeof CentrifugoOverviewStatsSchema>;
2455
2208
 
2456
2209
  /**
2457
- * AUTO-GENERATED FILE - DO NOT EDIT
2458
- *
2459
- * This file is automatically generated by DjangoCFG.
2460
- * Any manual changes will be lost when the code is regenerated.
2210
+ * Zod schema for CentrifugoPresenceRequestRequest
2461
2211
  *
2462
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2463
- */
2212
+ * This schema provides runtime validation and type inference.
2213
+ * * Request to get channel presence.
2214
+ * */
2215
+
2464
2216
  /**
2465
- * Storage adapters for cross-platform token storage.
2466
- *
2467
- * Supports:
2468
- * - LocalStorage (browser)
2469
- * - Cookies (SSR/browser)
2470
- * - Memory (Node.js/Electron/testing)
2217
+ * Request to get channel presence.
2471
2218
  */
2472
-
2219
+ declare const CentrifugoPresenceRequestRequestSchema: z.ZodObject<{
2220
+ channel: z.ZodString;
2221
+ }, z.core.$strip>;
2473
2222
  /**
2474
- * Storage adapter interface for cross-platform token storage.
2223
+ * Infer TypeScript type from Zod schema
2475
2224
  */
2476
- interface StorageAdapter {
2477
- getItem(key: string): string | null;
2478
- setItem(key: string, value: string): void;
2479
- removeItem(key: string): void;
2480
- }
2225
+ type CentrifugoPresenceRequestRequest = z.infer<typeof CentrifugoPresenceRequestRequestSchema>;
2481
2226
 
2482
2227
  /**
2483
- * Zod schema for CentrifugoChannelInfo
2228
+ * Zod schema for CentrifugoPresenceResponse
2484
2229
  *
2485
2230
  * This schema provides runtime validation and type inference.
2486
- * * Information about a single channel.
2231
+ * * Channel presence response.
2487
2232
  * */
2488
2233
 
2489
2234
  /**
2490
- * Information about a single channel.
2235
+ * Channel presence response.
2491
2236
  */
2492
- declare const CentrifugoChannelInfoSchema: z.ZodObject<{
2493
- num_clients: z.ZodInt;
2237
+ declare const CentrifugoPresenceResponseSchema: z.ZodObject<{
2238
+ error: z.ZodOptional<z.ZodObject<{
2239
+ code: z.ZodOptional<z.ZodInt>;
2240
+ message: z.ZodOptional<z.ZodString>;
2241
+ }, z.core.$strip>>;
2242
+ result: z.ZodOptional<z.ZodObject<{
2243
+ presence: z.ZodRecord<z.ZodString, z.ZodObject<{
2244
+ user: z.ZodString;
2245
+ client: z.ZodString;
2246
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2247
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2248
+ }, z.core.$strip>>;
2249
+ }, z.core.$strip>>;
2494
2250
  }, z.core.$strip>;
2495
2251
  /**
2496
2252
  * Infer TypeScript type from Zod schema
2497
2253
  */
2498
- type CentrifugoChannelInfo = z.infer<typeof CentrifugoChannelInfoSchema>;
2254
+ type CentrifugoPresenceResponse = z.infer<typeof CentrifugoPresenceResponseSchema>;
2499
2255
 
2500
2256
  /**
2501
- * Zod schema for CentrifugoChannelsRequestRequest
2257
+ * Zod schema for CentrifugoPresenceResult
2502
2258
  *
2503
2259
  * This schema provides runtime validation and type inference.
2504
- * * Request to list active channels.
2260
+ * * Presence result wrapper.
2505
2261
  * */
2506
2262
 
2507
2263
  /**
2508
- * Request to list active channels.
2264
+ * Presence result wrapper.
2509
2265
  */
2510
- declare const CentrifugoChannelsRequestRequestSchema: z.ZodObject<{
2511
- pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2266
+ declare const CentrifugoPresenceResultSchema: z.ZodObject<{
2267
+ presence: z.ZodRecord<z.ZodString, z.ZodObject<{
2268
+ user: z.ZodString;
2269
+ client: z.ZodString;
2270
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2271
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2272
+ }, z.core.$strip>>;
2512
2273
  }, z.core.$strip>;
2513
2274
  /**
2514
2275
  * Infer TypeScript type from Zod schema
2515
2276
  */
2516
- type CentrifugoChannelsRequestRequest = z.infer<typeof CentrifugoChannelsRequestRequestSchema>;
2277
+ type CentrifugoPresenceResult = z.infer<typeof CentrifugoPresenceResultSchema>;
2517
2278
 
2518
2279
  /**
2519
- * Zod schema for CentrifugoChannelsResponse
2280
+ * Zod schema for CentrifugoPresenceStatsRequestRequest
2520
2281
  *
2521
2282
  * This schema provides runtime validation and type inference.
2522
- * * List of active channels response.
2283
+ * * Request to get channel presence statistics.
2523
2284
  * */
2524
2285
 
2525
2286
  /**
2526
- * List of active channels response.
2287
+ * Request to get channel presence statistics.
2527
2288
  */
2528
- declare const CentrifugoChannelsResponseSchema: z.ZodObject<{
2529
- error: z.ZodOptional<z.ZodObject<{
2530
- code: z.ZodOptional<z.ZodInt>;
2531
- message: z.ZodOptional<z.ZodString>;
2532
- }, z.core.$strip>>;
2533
- result: z.ZodOptional<z.ZodObject<{
2534
- channels: z.ZodRecord<z.ZodString, z.ZodObject<{
2535
- num_clients: z.ZodInt;
2536
- }, z.core.$strip>>;
2537
- }, z.core.$strip>>;
2289
+ declare const CentrifugoPresenceStatsRequestRequestSchema: z.ZodObject<{
2290
+ channel: z.ZodString;
2538
2291
  }, z.core.$strip>;
2539
2292
  /**
2540
2293
  * Infer TypeScript type from Zod schema
2541
2294
  */
2542
- type CentrifugoChannelsResponse = z.infer<typeof CentrifugoChannelsResponseSchema>;
2295
+ type CentrifugoPresenceStatsRequestRequest = z.infer<typeof CentrifugoPresenceStatsRequestRequestSchema>;
2543
2296
 
2544
2297
  /**
2545
- * Zod schema for CentrifugoChannelsResult
2298
+ * Zod schema for CentrifugoPresenceStatsResponse
2546
2299
  *
2547
2300
  * This schema provides runtime validation and type inference.
2548
- * * Channels result wrapper.
2301
+ * * Channel presence stats response.
2549
2302
  * */
2550
2303
 
2551
2304
  /**
2552
- * Channels result wrapper.
2305
+ * Channel presence stats response.
2553
2306
  */
2554
- declare const CentrifugoChannelsResultSchema: z.ZodObject<{
2555
- channels: z.ZodRecord<z.ZodString, z.ZodObject<{
2307
+ declare const CentrifugoPresenceStatsResponseSchema: z.ZodObject<{
2308
+ error: z.ZodOptional<z.ZodObject<{
2309
+ code: z.ZodOptional<z.ZodInt>;
2310
+ message: z.ZodOptional<z.ZodString>;
2311
+ }, z.core.$strip>>;
2312
+ result: z.ZodOptional<z.ZodObject<{
2556
2313
  num_clients: z.ZodInt;
2314
+ num_users: z.ZodInt;
2557
2315
  }, z.core.$strip>>;
2558
2316
  }, z.core.$strip>;
2559
2317
  /**
2560
2318
  * Infer TypeScript type from Zod schema
2561
2319
  */
2562
- type CentrifugoChannelsResult = z.infer<typeof CentrifugoChannelsResultSchema>;
2320
+ type CentrifugoPresenceStatsResponse = z.infer<typeof CentrifugoPresenceStatsResponseSchema>;
2563
2321
 
2564
2322
  /**
2565
- * Zod schema for CentrifugoClientInfo
2323
+ * Zod schema for CentrifugoPresenceStatsResult
2566
2324
  *
2567
2325
  * This schema provides runtime validation and type inference.
2568
- * * Information about connected client.
2326
+ * * Presence stats result.
2569
2327
  * */
2570
2328
 
2571
2329
  /**
2572
- * Information about connected client.
2330
+ * Presence stats result.
2573
2331
  */
2574
- declare const CentrifugoClientInfoSchema: z.ZodObject<{
2575
- user: z.ZodString;
2576
- client: z.ZodString;
2577
- conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2578
- chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2332
+ declare const CentrifugoPresenceStatsResultSchema: z.ZodObject<{
2333
+ num_clients: z.ZodInt;
2334
+ num_users: z.ZodInt;
2579
2335
  }, z.core.$strip>;
2580
2336
  /**
2581
2337
  * Infer TypeScript type from Zod schema
2582
2338
  */
2583
- type CentrifugoClientInfo = z.infer<typeof CentrifugoClientInfoSchema>;
2339
+ type CentrifugoPresenceStatsResult = z.infer<typeof CentrifugoPresenceStatsResultSchema>;
2584
2340
 
2585
2341
  /**
2586
- * Zod schema for CentrifugoError
2342
+ * Zod schema for CentrifugoProcess
2587
2343
  *
2588
2344
  * This schema provides runtime validation and type inference.
2589
- * * Centrifugo API error structure.
2345
+ * * Process information.
2590
2346
  * */
2591
2347
 
2592
2348
  /**
2593
- * Centrifugo API error structure.
2349
+ * Process information.
2594
2350
  */
2595
- declare const CentrifugoErrorSchema: z.ZodObject<{
2596
- code: z.ZodOptional<z.ZodInt>;
2597
- message: z.ZodOptional<z.ZodString>;
2351
+ declare const CentrifugoProcessSchema: z.ZodObject<{
2352
+ cpu: z.ZodNumber;
2353
+ rss: z.ZodInt;
2598
2354
  }, z.core.$strip>;
2599
2355
  /**
2600
2356
  * Infer TypeScript type from Zod schema
2601
2357
  */
2602
- type CentrifugoError = z.infer<typeof CentrifugoErrorSchema>;
2358
+ type CentrifugoProcess = z.infer<typeof CentrifugoProcessSchema>;
2603
2359
 
2604
2360
  /**
2605
- * Zod schema for CentrifugoHealthCheck
2361
+ * Zod schema for CentrifugoPublication
2606
2362
  *
2607
2363
  * This schema provides runtime validation and type inference.
2608
- * * Health check response.
2364
+ * * Single publication (message) in channel history.
2609
2365
  * */
2610
2366
 
2611
2367
  /**
2612
- * Health check response.
2368
+ * Single publication (message) in channel history.
2613
2369
  */
2614
- declare const CentrifugoHealthCheckSchema: z.ZodObject<{
2615
- status: z.ZodString;
2616
- wrapper_url: z.ZodString;
2617
- has_api_key: z.ZodBoolean;
2618
- timestamp: z.ZodString;
2370
+ declare const CentrifugoPublicationSchema: z.ZodObject<{
2371
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2372
+ info: z.ZodOptional<z.ZodObject<{
2373
+ user: z.ZodString;
2374
+ client: z.ZodString;
2375
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2376
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2377
+ }, z.core.$strip>>;
2378
+ offset: z.ZodInt;
2379
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2619
2380
  }, z.core.$strip>;
2620
2381
  /**
2621
2382
  * Infer TypeScript type from Zod schema
2622
2383
  */
2623
- type CentrifugoHealthCheck = z.infer<typeof CentrifugoHealthCheckSchema>;
2384
+ type CentrifugoPublication = z.infer<typeof CentrifugoPublicationSchema>;
2624
2385
 
2625
2386
  /**
2626
- * Zod schema for CentrifugoHistoryRequestRequest
2387
+ * Zod schema for CentrifugoStreamPosition
2627
2388
  *
2628
2389
  * This schema provides runtime validation and type inference.
2629
- * * Request to get channel history.
2390
+ * * Stream position for pagination.
2630
2391
  * */
2631
2392
 
2632
2393
  /**
2633
- * Request to get channel history.
2394
+ * Stream position for pagination.
2634
2395
  */
2635
- declare const CentrifugoHistoryRequestRequestSchema: z.ZodObject<{
2636
- channel: z.ZodString;
2637
- limit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2638
- since: z.ZodOptional<z.ZodObject<{
2639
- offset: z.ZodInt;
2640
- epoch: z.ZodString;
2641
- }, z.core.$strip>>;
2642
- reverse: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2396
+ declare const CentrifugoStreamPositionSchema: z.ZodObject<{
2397
+ offset: z.ZodInt;
2398
+ epoch: z.ZodString;
2643
2399
  }, z.core.$strip>;
2644
2400
  /**
2645
2401
  * Infer TypeScript type from Zod schema
2646
2402
  */
2647
- type CentrifugoHistoryRequestRequest = z.infer<typeof CentrifugoHistoryRequestRequestSchema>;
2403
+ type CentrifugoStreamPosition = z.infer<typeof CentrifugoStreamPositionSchema>;
2648
2404
 
2649
2405
  /**
2650
- * Zod schema for CentrifugoHistoryResponse
2406
+ * Zod schema for ChannelList
2651
2407
  *
2652
2408
  * This schema provides runtime validation and type inference.
2653
- * * Channel history response.
2409
+ * * List of channel statistics.
2654
2410
  * */
2655
2411
 
2656
2412
  /**
2657
- * Channel history response.
2413
+ * List of channel statistics.
2658
2414
  */
2659
- declare const CentrifugoHistoryResponseSchema: z.ZodObject<{
2660
- error: z.ZodOptional<z.ZodObject<{
2661
- code: z.ZodOptional<z.ZodInt>;
2662
- message: z.ZodOptional<z.ZodString>;
2663
- }, z.core.$strip>>;
2664
- result: z.ZodOptional<z.ZodObject<{
2665
- publications: z.ZodArray<z.ZodObject<{
2666
- data: z.ZodRecord<z.ZodString, z.ZodAny>;
2667
- info: z.ZodOptional<z.ZodObject<{
2668
- user: z.ZodString;
2669
- client: z.ZodString;
2670
- conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2671
- chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2672
- }, z.core.$strip>>;
2673
- offset: z.ZodInt;
2674
- tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2675
- }, z.core.$strip>>;
2676
- epoch: z.ZodString;
2677
- offset: z.ZodInt;
2415
+ declare const ChannelListSchema: z.ZodObject<{
2416
+ channels: z.ZodArray<z.ZodObject<{
2417
+ channel: z.ZodString;
2418
+ total: z.ZodInt;
2419
+ successful: z.ZodInt;
2420
+ failed: z.ZodInt;
2421
+ avg_duration_ms: z.ZodNumber;
2422
+ avg_acks: z.ZodNumber;
2423
+ last_activity_at: z.ZodNullable<z.ZodString>;
2678
2424
  }, z.core.$strip>>;
2425
+ total_channels: z.ZodInt;
2679
2426
  }, z.core.$strip>;
2680
2427
  /**
2681
2428
  * Infer TypeScript type from Zod schema
2682
2429
  */
2683
- type CentrifugoHistoryResponse = z.infer<typeof CentrifugoHistoryResponseSchema>;
2430
+ type ChannelList = z.infer<typeof ChannelListSchema>;
2684
2431
 
2685
2432
  /**
2686
- * Zod schema for CentrifugoHistoryResult
2433
+ * Zod schema for ChannelStats
2687
2434
  *
2688
2435
  * This schema provides runtime validation and type inference.
2689
- * * History result wrapper.
2436
+ * * Statistics per channel.
2690
2437
  * */
2691
2438
 
2692
2439
  /**
2693
- * History result wrapper.
2440
+ * Statistics per channel.
2694
2441
  */
2695
- declare const CentrifugoHistoryResultSchema: z.ZodObject<{
2696
- publications: z.ZodArray<z.ZodObject<{
2697
- data: z.ZodRecord<z.ZodString, z.ZodAny>;
2698
- info: z.ZodOptional<z.ZodObject<{
2699
- user: z.ZodString;
2700
- client: z.ZodString;
2701
- conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2702
- chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2703
- }, z.core.$strip>>;
2704
- offset: z.ZodInt;
2705
- tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2706
- }, z.core.$strip>>;
2707
- epoch: z.ZodString;
2708
- offset: z.ZodInt;
2442
+ declare const ChannelStatsSchema: z.ZodObject<{
2443
+ channel: z.ZodString;
2444
+ total: z.ZodInt;
2445
+ successful: z.ZodInt;
2446
+ failed: z.ZodInt;
2447
+ avg_duration_ms: z.ZodNumber;
2448
+ avg_acks: z.ZodNumber;
2449
+ last_activity_at: z.ZodNullable<z.ZodString>;
2709
2450
  }, z.core.$strip>;
2710
2451
  /**
2711
2452
  * Infer TypeScript type from Zod schema
2712
2453
  */
2713
- type CentrifugoHistoryResult = z.infer<typeof CentrifugoHistoryResultSchema>;
2454
+ type ChannelStats = z.infer<typeof ChannelStatsSchema>;
2714
2455
 
2715
2456
  /**
2716
- * Zod schema for CentrifugoInfoResponse
2457
+ * Zod schema for ConnectionTokenResponse
2717
2458
  *
2718
2459
  * This schema provides runtime validation and type inference.
2719
- * * Server info response.
2460
+ * * Response model for Centrifugo connection token.
2720
2461
  * */
2721
2462
 
2722
2463
  /**
2723
- * Server info response.
2464
+ * Response model for Centrifugo connection token.
2724
2465
  */
2725
- declare const CentrifugoInfoResponseSchema: z.ZodObject<{
2726
- error: z.ZodOptional<z.ZodObject<{
2727
- code: z.ZodOptional<z.ZodInt>;
2728
- message: z.ZodOptional<z.ZodString>;
2729
- }, z.core.$strip>>;
2730
- result: z.ZodOptional<z.ZodObject<{
2731
- nodes: z.ZodArray<z.ZodObject<{
2732
- uid: z.ZodString;
2733
- name: z.ZodString;
2734
- version: z.ZodString;
2735
- num_clients: z.ZodInt;
2736
- num_users: z.ZodInt;
2737
- num_channels: z.ZodInt;
2738
- uptime: z.ZodInt;
2739
- num_subs: z.ZodInt;
2740
- metrics: z.ZodOptional<z.ZodObject<{
2741
- interval: z.ZodNumber;
2742
- items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2743
- }, z.core.$strip>>;
2744
- process: z.ZodOptional<z.ZodObject<{
2745
- cpu: z.ZodNumber;
2746
- rss: z.ZodInt;
2747
- }, z.core.$strip>>;
2748
- }, z.core.$strip>>;
2749
- }, z.core.$strip>>;
2466
+ declare const ConnectionTokenResponseSchema: z.ZodObject<{
2467
+ token: z.ZodString;
2468
+ centrifugo_url: z.ZodString;
2469
+ expires_at: z.ZodString;
2470
+ channels: z.ZodArray<z.ZodString>;
2750
2471
  }, z.core.$strip>;
2751
2472
  /**
2752
2473
  * Infer TypeScript type from Zod schema
2753
2474
  */
2754
- type CentrifugoInfoResponse = z.infer<typeof CentrifugoInfoResponseSchema>;
2475
+ type ConnectionTokenResponse = z.infer<typeof ConnectionTokenResponseSchema>;
2755
2476
 
2756
2477
  /**
2757
- * Zod schema for CentrifugoInfoResult
2478
+ * Zod schema for ManualAckRequestRequest
2758
2479
  *
2759
2480
  * This schema provides runtime validation and type inference.
2760
- * * Info result wrapper.
2481
+ * * Request model for manual ACK sending.
2761
2482
  * */
2762
2483
 
2763
2484
  /**
2764
- * Info result wrapper.
2485
+ * Request model for manual ACK sending.
2765
2486
  */
2766
- declare const CentrifugoInfoResultSchema: z.ZodObject<{
2767
- nodes: z.ZodArray<z.ZodObject<{
2768
- uid: z.ZodString;
2769
- name: z.ZodString;
2770
- version: z.ZodString;
2771
- num_clients: z.ZodInt;
2772
- num_users: z.ZodInt;
2773
- num_channels: z.ZodInt;
2774
- uptime: z.ZodInt;
2775
- num_subs: z.ZodInt;
2776
- metrics: z.ZodOptional<z.ZodObject<{
2777
- interval: z.ZodNumber;
2778
- items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2779
- }, z.core.$strip>>;
2780
- process: z.ZodOptional<z.ZodObject<{
2781
- cpu: z.ZodNumber;
2782
- rss: z.ZodInt;
2783
- }, z.core.$strip>>;
2784
- }, z.core.$strip>>;
2487
+ declare const ManualAckRequestRequestSchema: z.ZodObject<{
2488
+ message_id: z.ZodString;
2489
+ client_id: z.ZodString;
2785
2490
  }, z.core.$strip>;
2786
2491
  /**
2787
2492
  * Infer TypeScript type from Zod schema
2788
2493
  */
2789
- type CentrifugoInfoResult = z.infer<typeof CentrifugoInfoResultSchema>;
2494
+ type ManualAckRequestRequest = z.infer<typeof ManualAckRequestRequestSchema>;
2790
2495
 
2791
2496
  /**
2792
- * Zod schema for CentrifugoMetrics
2497
+ * Zod schema for ManualAckResponse
2793
2498
  *
2794
2499
  * This schema provides runtime validation and type inference.
2795
- * * Server metrics.
2500
+ * * Response model for manual ACK.
2796
2501
  * */
2797
2502
 
2798
2503
  /**
2799
- * Server metrics.
2504
+ * Response model for manual ACK.
2800
2505
  */
2801
- declare const CentrifugoMetricsSchema: z.ZodObject<{
2802
- interval: z.ZodNumber;
2803
- items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2506
+ declare const ManualAckResponseSchema: z.ZodObject<{
2507
+ success: z.ZodBoolean;
2508
+ message_id: z.ZodString;
2509
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2804
2510
  }, z.core.$strip>;
2805
2511
  /**
2806
2512
  * Infer TypeScript type from Zod schema
2807
2513
  */
2808
- type CentrifugoMetrics = z.infer<typeof CentrifugoMetricsSchema>;
2514
+ type ManualAckResponse = z.infer<typeof ManualAckResponseSchema>;
2809
2515
 
2810
2516
  /**
2811
- * Zod schema for CentrifugoNodeInfo
2517
+ * Zod schema for PaginatedPublishList
2812
2518
  *
2813
2519
  * This schema provides runtime validation and type inference.
2814
- * * Information about a single Centrifugo node.
2815
2520
  * */
2816
2521
 
2817
- /**
2818
- * Information about a single Centrifugo node.
2819
- */
2820
- declare const CentrifugoNodeInfoSchema: z.ZodObject<{
2821
- uid: z.ZodString;
2822
- name: z.ZodString;
2823
- version: z.ZodString;
2824
- num_clients: z.ZodInt;
2825
- num_users: z.ZodInt;
2826
- num_channels: z.ZodInt;
2827
- uptime: z.ZodInt;
2828
- num_subs: z.ZodInt;
2829
- metrics: z.ZodOptional<z.ZodObject<{
2830
- interval: z.ZodNumber;
2831
- items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2832
- }, z.core.$strip>>;
2833
- process: z.ZodOptional<z.ZodObject<{
2834
- cpu: z.ZodNumber;
2835
- rss: z.ZodInt;
2522
+ declare const PaginatedPublishListSchema: z.ZodObject<{
2523
+ count: z.ZodInt;
2524
+ page: z.ZodInt;
2525
+ pages: z.ZodInt;
2526
+ page_size: z.ZodInt;
2527
+ has_next: z.ZodBoolean;
2528
+ has_previous: z.ZodBoolean;
2529
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2530
+ previous_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2531
+ results: z.ZodArray<z.ZodObject<{
2532
+ message_id: z.ZodString;
2533
+ channel: z.ZodString;
2534
+ status: z.ZodString;
2535
+ wait_for_ack: z.ZodBoolean;
2536
+ acks_received: z.ZodInt;
2537
+ acks_expected: z.ZodNullable<z.ZodInt>;
2538
+ duration_ms: z.ZodNullable<z.ZodNumber>;
2539
+ created_at: z.ZodISODateTime;
2540
+ completed_at: z.ZodNullable<z.ZodISODateTime>;
2541
+ error_code: z.ZodNullable<z.ZodString>;
2542
+ error_message: z.ZodNullable<z.ZodString>;
2836
2543
  }, z.core.$strip>>;
2837
2544
  }, z.core.$strip>;
2838
2545
  /**
2839
2546
  * Infer TypeScript type from Zod schema
2840
2547
  */
2841
- type CentrifugoNodeInfo = z.infer<typeof CentrifugoNodeInfoSchema>;
2548
+ type PaginatedPublishList = z.infer<typeof PaginatedPublishListSchema>;
2842
2549
 
2843
2550
  /**
2844
- * Zod schema for CentrifugoOverviewStats
2551
+ * Zod schema for Publish
2845
2552
  *
2846
2553
  * This schema provides runtime validation and type inference.
2847
- * * Overview statistics for Centrifugo publishes.
2554
+ * * Single publish item for DRF pagination.
2848
2555
  * */
2849
2556
 
2850
2557
  /**
2851
- * Overview statistics for Centrifugo publishes.
2558
+ * Single publish item for DRF pagination.
2852
2559
  */
2853
- declare const CentrifugoOverviewStatsSchema: z.ZodObject<{
2854
- total: z.ZodInt;
2855
- successful: z.ZodInt;
2856
- failed: z.ZodInt;
2857
- timeout: z.ZodInt;
2858
- success_rate: z.ZodNumber;
2859
- avg_duration_ms: z.ZodNumber;
2860
- avg_acks_received: z.ZodNumber;
2861
- period_hours: z.ZodInt;
2560
+ declare const PublishSchema: z.ZodObject<{
2561
+ message_id: z.ZodString;
2562
+ channel: z.ZodString;
2563
+ status: z.ZodString;
2564
+ wait_for_ack: z.ZodBoolean;
2565
+ acks_received: z.ZodInt;
2566
+ acks_expected: z.ZodNullable<z.ZodInt>;
2567
+ duration_ms: z.ZodNullable<z.ZodNumber>;
2568
+ created_at: z.ZodISODateTime;
2569
+ completed_at: z.ZodNullable<z.ZodISODateTime>;
2570
+ error_code: z.ZodNullable<z.ZodString>;
2571
+ error_message: z.ZodNullable<z.ZodString>;
2862
2572
  }, z.core.$strip>;
2863
2573
  /**
2864
2574
  * Infer TypeScript type from Zod schema
2865
2575
  */
2866
- type CentrifugoOverviewStats = z.infer<typeof CentrifugoOverviewStatsSchema>;
2576
+ type Publish = z.infer<typeof PublishSchema>;
2867
2577
 
2868
2578
  /**
2869
- * Zod schema for CentrifugoPresenceRequestRequest
2579
+ * Zod schema for PublishTestRequestRequest
2870
2580
  *
2871
2581
  * This schema provides runtime validation and type inference.
2872
- * * Request to get channel presence.
2582
+ * * Request model for test message publishing.
2873
2583
  * */
2874
2584
 
2875
2585
  /**
2876
- * Request to get channel presence.
2586
+ * Request model for test message publishing.
2877
2587
  */
2878
- declare const CentrifugoPresenceRequestRequestSchema: z.ZodObject<{
2588
+ declare const PublishTestRequestRequestSchema: z.ZodObject<{
2879
2589
  channel: z.ZodString;
2590
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2591
+ wait_for_ack: z.ZodOptional<z.ZodBoolean>;
2592
+ ack_timeout: z.ZodOptional<z.ZodInt>;
2880
2593
  }, z.core.$strip>;
2881
2594
  /**
2882
2595
  * Infer TypeScript type from Zod schema
2883
2596
  */
2884
- type CentrifugoPresenceRequestRequest = z.infer<typeof CentrifugoPresenceRequestRequestSchema>;
2597
+ type PublishTestRequestRequest = z.infer<typeof PublishTestRequestRequestSchema>;
2885
2598
 
2886
2599
  /**
2887
- * Zod schema for CentrifugoPresenceResponse
2600
+ * Zod schema for PublishTestResponse
2888
2601
  *
2889
2602
  * This schema provides runtime validation and type inference.
2890
- * * Channel presence response.
2603
+ * * Response model for test message publishing.
2891
2604
  * */
2892
2605
 
2893
2606
  /**
2894
- * Channel presence response.
2607
+ * Response model for test message publishing.
2895
2608
  */
2896
- declare const CentrifugoPresenceResponseSchema: z.ZodObject<{
2897
- error: z.ZodOptional<z.ZodObject<{
2898
- code: z.ZodOptional<z.ZodInt>;
2899
- message: z.ZodOptional<z.ZodString>;
2900
- }, z.core.$strip>>;
2901
- result: z.ZodOptional<z.ZodObject<{
2902
- presence: z.ZodRecord<z.ZodString, z.ZodObject<{
2903
- user: z.ZodString;
2904
- client: z.ZodString;
2905
- conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2906
- chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2907
- }, z.core.$strip>>;
2908
- }, z.core.$strip>>;
2609
+ declare const PublishTestResponseSchema: z.ZodObject<{
2610
+ success: z.ZodBoolean;
2611
+ message_id: z.ZodString;
2612
+ channel: z.ZodString;
2613
+ acks_received: z.ZodOptional<z.ZodInt>;
2614
+ delivered: z.ZodOptional<z.ZodBoolean>;
2615
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2909
2616
  }, z.core.$strip>;
2910
2617
  /**
2911
2618
  * Infer TypeScript type from Zod schema
2912
2619
  */
2913
- type CentrifugoPresenceResponse = z.infer<typeof CentrifugoPresenceResponseSchema>;
2620
+ type PublishTestResponse = z.infer<typeof PublishTestResponseSchema>;
2914
2621
 
2915
2622
  /**
2916
- * Zod schema for CentrifugoPresenceResult
2623
+ * Zod schema for TimelineItem
2917
2624
  *
2918
2625
  * This schema provides runtime validation and type inference.
2919
- * * Presence result wrapper.
2626
+ * * Single timeline data point for DRF.
2920
2627
  * */
2921
2628
 
2922
2629
  /**
2923
- * Presence result wrapper.
2630
+ * Single timeline data point for DRF.
2924
2631
  */
2925
- declare const CentrifugoPresenceResultSchema: z.ZodObject<{
2926
- presence: z.ZodRecord<z.ZodString, z.ZodObject<{
2927
- user: z.ZodString;
2928
- client: z.ZodString;
2929
- conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2930
- chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2931
- }, z.core.$strip>>;
2632
+ declare const TimelineItemSchema: z.ZodObject<{
2633
+ timestamp: z.ZodString;
2634
+ count: z.ZodInt;
2635
+ successful: z.ZodInt;
2636
+ failed: z.ZodInt;
2637
+ timeout: z.ZodInt;
2932
2638
  }, z.core.$strip>;
2933
2639
  /**
2934
2640
  * Infer TypeScript type from Zod schema
2935
2641
  */
2936
- type CentrifugoPresenceResult = z.infer<typeof CentrifugoPresenceResultSchema>;
2642
+ type TimelineItem = z.infer<typeof TimelineItemSchema>;
2937
2643
 
2938
2644
  /**
2939
- * Zod schema for CentrifugoPresenceStatsRequestRequest
2645
+ * Zod schema for TimelineResponse
2940
2646
  *
2941
2647
  * This schema provides runtime validation and type inference.
2942
- * * Request to get channel presence statistics.
2648
+ * * Timeline response with hourly/daily breakdown for DRF.
2943
2649
  * */
2944
2650
 
2945
2651
  /**
2946
- * Request to get channel presence statistics.
2652
+ * Timeline response with hourly/daily breakdown for DRF.
2947
2653
  */
2948
- declare const CentrifugoPresenceStatsRequestRequestSchema: z.ZodObject<{
2949
- channel: z.ZodString;
2654
+ declare const TimelineResponseSchema: z.ZodObject<{
2655
+ timeline: z.ZodArray<z.ZodObject<{
2656
+ timestamp: z.ZodString;
2657
+ count: z.ZodInt;
2658
+ successful: z.ZodInt;
2659
+ failed: z.ZodInt;
2660
+ timeout: z.ZodInt;
2661
+ }, z.core.$strip>>;
2662
+ period_hours: z.ZodInt;
2663
+ interval: z.ZodString;
2950
2664
  }, z.core.$strip>;
2951
2665
  /**
2952
2666
  * Infer TypeScript type from Zod schema
2953
2667
  */
2954
- type CentrifugoPresenceStatsRequestRequest = z.infer<typeof CentrifugoPresenceStatsRequestRequestSchema>;
2668
+ type TimelineResponse = z.infer<typeof TimelineResponseSchema>;
2669
+
2670
+ /**
2671
+ * Zod Schemas - Runtime validation and type inference
2672
+ *
2673
+ * Auto-generated from OpenAPI specification.
2674
+ * Provides runtime validation for API requests and responses.
2675
+ *
2676
+ * Usage:
2677
+ * ```typescript
2678
+ * import { UserSchema } from './schemas'
2679
+ *
2680
+ * // Validate data
2681
+ * const user = UserSchema.parse(data)
2682
+ *
2683
+ * // Type inference
2684
+ * type User = z.infer<typeof UserSchema>
2685
+ * ```
2686
+ */
2687
+
2688
+ type index$5_CentrifugoChannelInfo = CentrifugoChannelInfo;
2689
+ declare const index$5_CentrifugoChannelInfoSchema: typeof CentrifugoChannelInfoSchema;
2690
+ type index$5_CentrifugoChannelsRequestRequest = CentrifugoChannelsRequestRequest;
2691
+ declare const index$5_CentrifugoChannelsRequestRequestSchema: typeof CentrifugoChannelsRequestRequestSchema;
2692
+ type index$5_CentrifugoChannelsResponse = CentrifugoChannelsResponse;
2693
+ declare const index$5_CentrifugoChannelsResponseSchema: typeof CentrifugoChannelsResponseSchema;
2694
+ type index$5_CentrifugoChannelsResult = CentrifugoChannelsResult;
2695
+ declare const index$5_CentrifugoChannelsResultSchema: typeof CentrifugoChannelsResultSchema;
2696
+ type index$5_CentrifugoClientInfo = CentrifugoClientInfo;
2697
+ declare const index$5_CentrifugoClientInfoSchema: typeof CentrifugoClientInfoSchema;
2698
+ type index$5_CentrifugoError = CentrifugoError;
2699
+ declare const index$5_CentrifugoErrorSchema: typeof CentrifugoErrorSchema;
2700
+ type index$5_CentrifugoHealthCheck = CentrifugoHealthCheck;
2701
+ declare const index$5_CentrifugoHealthCheckSchema: typeof CentrifugoHealthCheckSchema;
2702
+ type index$5_CentrifugoHistoryRequestRequest = CentrifugoHistoryRequestRequest;
2703
+ declare const index$5_CentrifugoHistoryRequestRequestSchema: typeof CentrifugoHistoryRequestRequestSchema;
2704
+ type index$5_CentrifugoHistoryResponse = CentrifugoHistoryResponse;
2705
+ declare const index$5_CentrifugoHistoryResponseSchema: typeof CentrifugoHistoryResponseSchema;
2706
+ type index$5_CentrifugoHistoryResult = CentrifugoHistoryResult;
2707
+ declare const index$5_CentrifugoHistoryResultSchema: typeof CentrifugoHistoryResultSchema;
2708
+ type index$5_CentrifugoInfoResponse = CentrifugoInfoResponse;
2709
+ declare const index$5_CentrifugoInfoResponseSchema: typeof CentrifugoInfoResponseSchema;
2710
+ type index$5_CentrifugoInfoResult = CentrifugoInfoResult;
2711
+ declare const index$5_CentrifugoInfoResultSchema: typeof CentrifugoInfoResultSchema;
2712
+ type index$5_CentrifugoMetrics = CentrifugoMetrics;
2713
+ declare const index$5_CentrifugoMetricsSchema: typeof CentrifugoMetricsSchema;
2714
+ type index$5_CentrifugoNodeInfo = CentrifugoNodeInfo;
2715
+ declare const index$5_CentrifugoNodeInfoSchema: typeof CentrifugoNodeInfoSchema;
2716
+ type index$5_CentrifugoOverviewStats = CentrifugoOverviewStats;
2717
+ declare const index$5_CentrifugoOverviewStatsSchema: typeof CentrifugoOverviewStatsSchema;
2718
+ type index$5_CentrifugoPresenceRequestRequest = CentrifugoPresenceRequestRequest;
2719
+ declare const index$5_CentrifugoPresenceRequestRequestSchema: typeof CentrifugoPresenceRequestRequestSchema;
2720
+ type index$5_CentrifugoPresenceResponse = CentrifugoPresenceResponse;
2721
+ declare const index$5_CentrifugoPresenceResponseSchema: typeof CentrifugoPresenceResponseSchema;
2722
+ type index$5_CentrifugoPresenceResult = CentrifugoPresenceResult;
2723
+ declare const index$5_CentrifugoPresenceResultSchema: typeof CentrifugoPresenceResultSchema;
2724
+ type index$5_CentrifugoPresenceStatsRequestRequest = CentrifugoPresenceStatsRequestRequest;
2725
+ declare const index$5_CentrifugoPresenceStatsRequestRequestSchema: typeof CentrifugoPresenceStatsRequestRequestSchema;
2726
+ type index$5_CentrifugoPresenceStatsResponse = CentrifugoPresenceStatsResponse;
2727
+ declare const index$5_CentrifugoPresenceStatsResponseSchema: typeof CentrifugoPresenceStatsResponseSchema;
2728
+ type index$5_CentrifugoPresenceStatsResult = CentrifugoPresenceStatsResult;
2729
+ declare const index$5_CentrifugoPresenceStatsResultSchema: typeof CentrifugoPresenceStatsResultSchema;
2730
+ type index$5_CentrifugoProcess = CentrifugoProcess;
2731
+ declare const index$5_CentrifugoProcessSchema: typeof CentrifugoProcessSchema;
2732
+ type index$5_CentrifugoPublication = CentrifugoPublication;
2733
+ declare const index$5_CentrifugoPublicationSchema: typeof CentrifugoPublicationSchema;
2734
+ type index$5_CentrifugoStreamPosition = CentrifugoStreamPosition;
2735
+ declare const index$5_CentrifugoStreamPositionSchema: typeof CentrifugoStreamPositionSchema;
2736
+ type index$5_ChannelList = ChannelList;
2737
+ declare const index$5_ChannelListSchema: typeof ChannelListSchema;
2738
+ type index$5_ChannelStats = ChannelStats;
2739
+ declare const index$5_ChannelStatsSchema: typeof ChannelStatsSchema;
2740
+ type index$5_ConnectionTokenResponse = ConnectionTokenResponse;
2741
+ declare const index$5_ConnectionTokenResponseSchema: typeof ConnectionTokenResponseSchema;
2742
+ type index$5_ManualAckRequestRequest = ManualAckRequestRequest;
2743
+ declare const index$5_ManualAckRequestRequestSchema: typeof ManualAckRequestRequestSchema;
2744
+ type index$5_ManualAckResponse = ManualAckResponse;
2745
+ declare const index$5_ManualAckResponseSchema: typeof ManualAckResponseSchema;
2746
+ type index$5_PaginatedPublishList = PaginatedPublishList;
2747
+ declare const index$5_PaginatedPublishListSchema: typeof PaginatedPublishListSchema;
2748
+ type index$5_Publish = Publish;
2749
+ declare const index$5_PublishSchema: typeof PublishSchema;
2750
+ type index$5_PublishTestRequestRequest = PublishTestRequestRequest;
2751
+ declare const index$5_PublishTestRequestRequestSchema: typeof PublishTestRequestRequestSchema;
2752
+ type index$5_PublishTestResponse = PublishTestResponse;
2753
+ declare const index$5_PublishTestResponseSchema: typeof PublishTestResponseSchema;
2754
+ type index$5_TimelineItem = TimelineItem;
2755
+ declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
2756
+ type index$5_TimelineResponse = TimelineResponse;
2757
+ declare const index$5_TimelineResponseSchema: typeof TimelineResponseSchema;
2758
+ declare namespace index$5 {
2759
+ export { type index$5_CentrifugoChannelInfo as CentrifugoChannelInfo, index$5_CentrifugoChannelInfoSchema as CentrifugoChannelInfoSchema, type index$5_CentrifugoChannelsRequestRequest as CentrifugoChannelsRequestRequest, index$5_CentrifugoChannelsRequestRequestSchema as CentrifugoChannelsRequestRequestSchema, type index$5_CentrifugoChannelsResponse as CentrifugoChannelsResponse, index$5_CentrifugoChannelsResponseSchema as CentrifugoChannelsResponseSchema, type index$5_CentrifugoChannelsResult as CentrifugoChannelsResult, index$5_CentrifugoChannelsResultSchema as CentrifugoChannelsResultSchema, type index$5_CentrifugoClientInfo as CentrifugoClientInfo, index$5_CentrifugoClientInfoSchema as CentrifugoClientInfoSchema, type index$5_CentrifugoError as CentrifugoError, index$5_CentrifugoErrorSchema as CentrifugoErrorSchema, type index$5_CentrifugoHealthCheck as CentrifugoHealthCheck, index$5_CentrifugoHealthCheckSchema as CentrifugoHealthCheckSchema, type index$5_CentrifugoHistoryRequestRequest as CentrifugoHistoryRequestRequest, index$5_CentrifugoHistoryRequestRequestSchema as CentrifugoHistoryRequestRequestSchema, type index$5_CentrifugoHistoryResponse as CentrifugoHistoryResponse, index$5_CentrifugoHistoryResponseSchema as CentrifugoHistoryResponseSchema, type index$5_CentrifugoHistoryResult as CentrifugoHistoryResult, index$5_CentrifugoHistoryResultSchema as CentrifugoHistoryResultSchema, type index$5_CentrifugoInfoResponse as CentrifugoInfoResponse, index$5_CentrifugoInfoResponseSchema as CentrifugoInfoResponseSchema, type index$5_CentrifugoInfoResult as CentrifugoInfoResult, index$5_CentrifugoInfoResultSchema as CentrifugoInfoResultSchema, type index$5_CentrifugoMetrics as CentrifugoMetrics, index$5_CentrifugoMetricsSchema as CentrifugoMetricsSchema, type index$5_CentrifugoNodeInfo as CentrifugoNodeInfo, index$5_CentrifugoNodeInfoSchema as CentrifugoNodeInfoSchema, type index$5_CentrifugoOverviewStats as CentrifugoOverviewStats, index$5_CentrifugoOverviewStatsSchema as CentrifugoOverviewStatsSchema, type index$5_CentrifugoPresenceRequestRequest as CentrifugoPresenceRequestRequest, index$5_CentrifugoPresenceRequestRequestSchema as CentrifugoPresenceRequestRequestSchema, type index$5_CentrifugoPresenceResponse as CentrifugoPresenceResponse, index$5_CentrifugoPresenceResponseSchema as CentrifugoPresenceResponseSchema, type index$5_CentrifugoPresenceResult as CentrifugoPresenceResult, index$5_CentrifugoPresenceResultSchema as CentrifugoPresenceResultSchema, type index$5_CentrifugoPresenceStatsRequestRequest as CentrifugoPresenceStatsRequestRequest, index$5_CentrifugoPresenceStatsRequestRequestSchema as CentrifugoPresenceStatsRequestRequestSchema, type index$5_CentrifugoPresenceStatsResponse as CentrifugoPresenceStatsResponse, index$5_CentrifugoPresenceStatsResponseSchema as CentrifugoPresenceStatsResponseSchema, type index$5_CentrifugoPresenceStatsResult as CentrifugoPresenceStatsResult, index$5_CentrifugoPresenceStatsResultSchema as CentrifugoPresenceStatsResultSchema, type index$5_CentrifugoProcess as CentrifugoProcess, index$5_CentrifugoProcessSchema as CentrifugoProcessSchema, type index$5_CentrifugoPublication as CentrifugoPublication, index$5_CentrifugoPublicationSchema as CentrifugoPublicationSchema, type index$5_CentrifugoStreamPosition as CentrifugoStreamPosition, index$5_CentrifugoStreamPositionSchema as CentrifugoStreamPositionSchema, type index$5_ChannelList as ChannelList, index$5_ChannelListSchema as ChannelListSchema, type index$5_ChannelStats as ChannelStats, index$5_ChannelStatsSchema as ChannelStatsSchema, type index$5_ConnectionTokenResponse as ConnectionTokenResponse, index$5_ConnectionTokenResponseSchema as ConnectionTokenResponseSchema, type index$5_ManualAckRequestRequest as ManualAckRequestRequest, index$5_ManualAckRequestRequestSchema as ManualAckRequestRequestSchema, type index$5_ManualAckResponse as ManualAckResponse, index$5_ManualAckResponseSchema as ManualAckResponseSchema, type index$5_PaginatedPublishList as PaginatedPublishList, index$5_PaginatedPublishListSchema as PaginatedPublishListSchema, type index$5_Publish as Publish, index$5_PublishSchema as PublishSchema, type index$5_PublishTestRequestRequest as PublishTestRequestRequest, index$5_PublishTestRequestRequestSchema as PublishTestRequestRequestSchema, type index$5_PublishTestResponse as PublishTestResponse, index$5_PublishTestResponseSchema as PublishTestResponseSchema, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema, type index$5_TimelineResponse as TimelineResponse, index$5_TimelineResponseSchema as TimelineResponseSchema };
2760
+ }
2955
2761
 
2956
2762
  /**
2957
- * Zod schema for CentrifugoPresenceStatsResponse
2763
+ * Get connection token for dashboard
2764
+ *
2765
+ * @method POST
2766
+ * @path /cfg/centrifugo/server/auth/token/
2767
+ */
2768
+ declare function createCentrifugoServerAuthTokenCreate(client?: any): Promise<any>;
2769
+ /**
2770
+ * List active channels
2771
+ *
2772
+ * @method POST
2773
+ * @path /cfg/centrifugo/server/channels/
2774
+ */
2775
+ declare function createCentrifugoServerChannelsCreate(data: CentrifugoChannelsRequestRequest, client?: any): Promise<CentrifugoChannelsResponse>;
2776
+ /**
2777
+ * Get channel history
2778
+ *
2779
+ * @method POST
2780
+ * @path /cfg/centrifugo/server/history/
2781
+ */
2782
+ declare function createCentrifugoServerHistoryCreate(data: CentrifugoHistoryRequestRequest, client?: any): Promise<CentrifugoHistoryResponse>;
2783
+ /**
2784
+ * Get Centrifugo server info
2785
+ *
2786
+ * @method POST
2787
+ * @path /cfg/centrifugo/server/info/
2788
+ */
2789
+ declare function createCentrifugoServerInfoCreate(client?: any): Promise<CentrifugoInfoResponse>;
2790
+ /**
2791
+ * Get channel presence
2958
2792
  *
2959
- * This schema provides runtime validation and type inference.
2960
- * * Channel presence stats response.
2961
- * */
2962
-
2963
- /**
2964
- * Channel presence stats response.
2793
+ * @method POST
2794
+ * @path /cfg/centrifugo/server/presence/
2965
2795
  */
2966
- declare const CentrifugoPresenceStatsResponseSchema: z.ZodObject<{
2967
- error: z.ZodOptional<z.ZodObject<{
2968
- code: z.ZodOptional<z.ZodInt>;
2969
- message: z.ZodOptional<z.ZodString>;
2970
- }, z.core.$strip>>;
2971
- result: z.ZodOptional<z.ZodObject<{
2972
- num_clients: z.ZodInt;
2973
- num_users: z.ZodInt;
2974
- }, z.core.$strip>>;
2975
- }, z.core.$strip>;
2796
+ declare function createCentrifugoServerPresenceCreate(data: CentrifugoPresenceRequestRequest, client?: any): Promise<CentrifugoPresenceResponse>;
2976
2797
  /**
2977
- * Infer TypeScript type from Zod schema
2798
+ * Get channel presence statistics
2799
+ *
2800
+ * @method POST
2801
+ * @path /cfg/centrifugo/server/presence-stats/
2978
2802
  */
2979
- type CentrifugoPresenceStatsResponse = z.infer<typeof CentrifugoPresenceStatsResponseSchema>;
2803
+ declare function createCentrifugoServerPresenceStatsCreate(data: CentrifugoPresenceStatsRequestRequest, client?: any): Promise<CentrifugoPresenceStatsResponse>;
2980
2804
 
2981
2805
  /**
2982
- * Zod schema for CentrifugoPresenceStatsResult
2806
+ * Get Centrifugo connection token
2983
2807
  *
2984
- * This schema provides runtime validation and type inference.
2985
- * * Presence stats result.
2986
- * */
2808
+ * @method GET
2809
+ * @path /cfg/centrifugo/auth/token/
2810
+ */
2811
+ declare function getCentrifugoAuthTokenRetrieve(client?: any): Promise<ConnectionTokenResponse>;
2987
2812
 
2988
2813
  /**
2989
- * Presence stats result.
2814
+ * Get channel statistics
2815
+ *
2816
+ * @method GET
2817
+ * @path /cfg/centrifugo/monitor/channels/
2990
2818
  */
2991
- declare const CentrifugoPresenceStatsResultSchema: z.ZodObject<{
2992
- num_clients: z.ZodInt;
2993
- num_users: z.ZodInt;
2994
- }, z.core.$strip>;
2819
+ declare function getCentrifugoMonitorChannelsRetrieve(params?: {
2820
+ hours?: number;
2821
+ }, client?: any): Promise<ChannelList>;
2995
2822
  /**
2996
- * Infer TypeScript type from Zod schema
2823
+ * Get Centrifugo health status
2824
+ *
2825
+ * @method GET
2826
+ * @path /cfg/centrifugo/monitor/health/
2997
2827
  */
2998
- type CentrifugoPresenceStatsResult = z.infer<typeof CentrifugoPresenceStatsResultSchema>;
2999
-
2828
+ declare function getCentrifugoMonitorHealthRetrieve(client?: any): Promise<CentrifugoHealthCheck>;
3000
2829
  /**
3001
- * Zod schema for CentrifugoProcess
2830
+ * Get overview statistics
3002
2831
  *
3003
- * This schema provides runtime validation and type inference.
3004
- * * Process information.
3005
- * */
3006
-
3007
- /**
3008
- * Process information.
2832
+ * @method GET
2833
+ * @path /cfg/centrifugo/monitor/overview/
3009
2834
  */
3010
- declare const CentrifugoProcessSchema: z.ZodObject<{
3011
- cpu: z.ZodNumber;
3012
- rss: z.ZodInt;
3013
- }, z.core.$strip>;
2835
+ declare function getCentrifugoMonitorOverviewRetrieve(params?: {
2836
+ hours?: number;
2837
+ }, client?: any): Promise<CentrifugoOverviewStats>;
3014
2838
  /**
3015
- * Infer TypeScript type from Zod schema
2839
+ * Get recent publishes
2840
+ *
2841
+ * @method GET
2842
+ * @path /cfg/centrifugo/monitor/publishes/
3016
2843
  */
3017
- type CentrifugoProcess = z.infer<typeof CentrifugoProcessSchema>;
3018
-
2844
+ declare function getCentrifugoMonitorPublishesList(params?: {
2845
+ channel?: string;
2846
+ page?: number;
2847
+ page_size?: number;
2848
+ status?: string;
2849
+ }, client?: any): Promise<PaginatedPublishList>;
3019
2850
  /**
3020
- * Zod schema for CentrifugoPublication
2851
+ * Get publish timeline
3021
2852
  *
3022
- * This schema provides runtime validation and type inference.
3023
- * * Single publication (message) in channel history.
3024
- * */
2853
+ * @method GET
2854
+ * @path /cfg/centrifugo/monitor/timeline/
2855
+ */
2856
+ declare function getCentrifugoMonitorTimelineRetrieve(params?: {
2857
+ hours?: number;
2858
+ interval?: string;
2859
+ }, client?: any): Promise<TimelineResponse>;
3025
2860
 
3026
2861
  /**
3027
- * Single publication (message) in channel history.
2862
+ * Publish test message
2863
+ *
2864
+ * @method POST
2865
+ * @path /cfg/centrifugo/testing/publish-test/
3028
2866
  */
3029
- declare const CentrifugoPublicationSchema: z.ZodObject<{
3030
- data: z.ZodRecord<z.ZodString, z.ZodAny>;
3031
- info: z.ZodOptional<z.ZodObject<{
3032
- user: z.ZodString;
3033
- client: z.ZodString;
3034
- conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3035
- chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3036
- }, z.core.$strip>>;
3037
- offset: z.ZodInt;
3038
- tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3039
- }, z.core.$strip>;
2867
+ declare function createCentrifugoTestingPublishTestCreate(data: PublishTestRequestRequest, client?: any): Promise<PublishTestResponse>;
3040
2868
  /**
3041
- * Infer TypeScript type from Zod schema
2869
+ * Publish with database logging
2870
+ *
2871
+ * @method POST
2872
+ * @path /cfg/centrifugo/testing/publish-with-logging/
3042
2873
  */
3043
- type CentrifugoPublication = z.infer<typeof CentrifugoPublicationSchema>;
3044
-
2874
+ declare function createCentrifugoTestingPublishWithLoggingCreate(data: PublishTestRequestRequest, client?: any): Promise<PublishTestResponse>;
3045
2875
  /**
3046
- * Zod schema for CentrifugoStreamPosition
2876
+ * Send manual ACK
3047
2877
  *
3048
- * This schema provides runtime validation and type inference.
3049
- * * Stream position for pagination.
3050
- * */
2878
+ * @method POST
2879
+ * @path /cfg/centrifugo/testing/send-ack/
2880
+ */
2881
+ declare function createCentrifugoTestingSendAckCreate(data: ManualAckRequestRequest, client?: any): Promise<ManualAckResponse>;
3051
2882
 
3052
2883
  /**
3053
- * Stream position for pagination.
2884
+ * Typed Fetchers - Universal API functions
2885
+ *
2886
+ * Auto-generated from OpenAPI specification.
2887
+ * These functions work in any JavaScript environment.
2888
+ *
2889
+ * Features:
2890
+ * - Runtime validation with Zod
2891
+ * - Type-safe parameters and responses
2892
+ * - Works with any data-fetching library (SWR, React Query, etc)
2893
+ * - Server Component compatible
2894
+ *
2895
+ * Usage:
2896
+ * ```typescript
2897
+ * import * as fetchers from './fetchers'
2898
+ *
2899
+ * // Direct usage
2900
+ * const user = await fetchers.getUser(1)
2901
+ *
2902
+ * // With SWR
2903
+ * const { data } = useSWR('user-1', () => fetchers.getUser(1))
2904
+ *
2905
+ * // With React Query
2906
+ * const { data } = useQuery(['user', 1], () => fetchers.getUser(1))
2907
+ * ```
3054
2908
  */
3055
- declare const CentrifugoStreamPositionSchema: z.ZodObject<{
3056
- offset: z.ZodInt;
3057
- epoch: z.ZodString;
3058
- }, z.core.$strip>;
2909
+
2910
+ declare const index$4_createCentrifugoServerAuthTokenCreate: typeof createCentrifugoServerAuthTokenCreate;
2911
+ declare const index$4_createCentrifugoServerChannelsCreate: typeof createCentrifugoServerChannelsCreate;
2912
+ declare const index$4_createCentrifugoServerHistoryCreate: typeof createCentrifugoServerHistoryCreate;
2913
+ declare const index$4_createCentrifugoServerInfoCreate: typeof createCentrifugoServerInfoCreate;
2914
+ declare const index$4_createCentrifugoServerPresenceCreate: typeof createCentrifugoServerPresenceCreate;
2915
+ declare const index$4_createCentrifugoServerPresenceStatsCreate: typeof createCentrifugoServerPresenceStatsCreate;
2916
+ declare const index$4_createCentrifugoTestingPublishTestCreate: typeof createCentrifugoTestingPublishTestCreate;
2917
+ declare const index$4_createCentrifugoTestingPublishWithLoggingCreate: typeof createCentrifugoTestingPublishWithLoggingCreate;
2918
+ declare const index$4_createCentrifugoTestingSendAckCreate: typeof createCentrifugoTestingSendAckCreate;
2919
+ declare const index$4_getCentrifugoAuthTokenRetrieve: typeof getCentrifugoAuthTokenRetrieve;
2920
+ declare const index$4_getCentrifugoMonitorChannelsRetrieve: typeof getCentrifugoMonitorChannelsRetrieve;
2921
+ declare const index$4_getCentrifugoMonitorHealthRetrieve: typeof getCentrifugoMonitorHealthRetrieve;
2922
+ declare const index$4_getCentrifugoMonitorOverviewRetrieve: typeof getCentrifugoMonitorOverviewRetrieve;
2923
+ declare const index$4_getCentrifugoMonitorPublishesList: typeof getCentrifugoMonitorPublishesList;
2924
+ declare const index$4_getCentrifugoMonitorTimelineRetrieve: typeof getCentrifugoMonitorTimelineRetrieve;
2925
+ declare namespace index$4 {
2926
+ export { index$4_createCentrifugoServerAuthTokenCreate as createCentrifugoServerAuthTokenCreate, index$4_createCentrifugoServerChannelsCreate as createCentrifugoServerChannelsCreate, index$4_createCentrifugoServerHistoryCreate as createCentrifugoServerHistoryCreate, index$4_createCentrifugoServerInfoCreate as createCentrifugoServerInfoCreate, index$4_createCentrifugoServerPresenceCreate as createCentrifugoServerPresenceCreate, index$4_createCentrifugoServerPresenceStatsCreate as createCentrifugoServerPresenceStatsCreate, index$4_createCentrifugoTestingPublishTestCreate as createCentrifugoTestingPublishTestCreate, index$4_createCentrifugoTestingPublishWithLoggingCreate as createCentrifugoTestingPublishWithLoggingCreate, index$4_createCentrifugoTestingSendAckCreate as createCentrifugoTestingSendAckCreate, index$4_getCentrifugoAuthTokenRetrieve as getCentrifugoAuthTokenRetrieve, index$4_getCentrifugoMonitorChannelsRetrieve as getCentrifugoMonitorChannelsRetrieve, index$4_getCentrifugoMonitorHealthRetrieve as getCentrifugoMonitorHealthRetrieve, index$4_getCentrifugoMonitorOverviewRetrieve as getCentrifugoMonitorOverviewRetrieve, index$4_getCentrifugoMonitorPublishesList as getCentrifugoMonitorPublishesList, index$4_getCentrifugoMonitorTimelineRetrieve as getCentrifugoMonitorTimelineRetrieve };
2927
+ }
2928
+
3059
2929
  /**
3060
- * Infer TypeScript type from Zod schema
2930
+ * Django CFG API - API Client with JWT Management
2931
+ *
2932
+ * Usage:
2933
+ * ```typescript
2934
+ * import { API } from './api';
2935
+ *
2936
+ * const api = new API('https://api.example.com');
2937
+ *
2938
+ * // Set JWT token
2939
+ * api.setToken('your-jwt-token', 'refresh-token');
2940
+ *
2941
+ * // Use API
2942
+ * const posts = await api.posts.list();
2943
+ * const user = await api.users.retrieve(1);
2944
+ *
2945
+ * // Check authentication
2946
+ * if (api.isAuthenticated()) {
2947
+ * // ...
2948
+ * }
2949
+ *
2950
+ * // Custom storage with logging (for Electron/Node.js)
2951
+ * import { MemoryStorageAdapter, APILogger } from './storage';
2952
+ * const logger = new APILogger({ enabled: true, logLevel: 'debug' });
2953
+ * const api = new API('https://api.example.com', {
2954
+ * storage: new MemoryStorageAdapter(logger),
2955
+ * loggerConfig: { enabled: true, logLevel: 'debug' }
2956
+ * });
2957
+ *
2958
+ * // Get OpenAPI schema
2959
+ * const schema = api.getSchema();
2960
+ * ```
3061
2961
  */
3062
- type CentrifugoStreamPosition = z.infer<typeof CentrifugoStreamPositionSchema>;
2962
+
2963
+ interface APIOptions$1 {
2964
+ /** Custom storage adapter (defaults to LocalStorageAdapter) */
2965
+ storage?: StorageAdapter$1;
2966
+ /** Retry configuration for failed requests */
2967
+ retryConfig?: RetryConfig$1;
2968
+ /** Logger configuration */
2969
+ loggerConfig?: Partial<LoggerConfig$1>;
2970
+ }
2971
+ declare class API$1 {
2972
+ private baseUrl;
2973
+ private _client;
2974
+ private _token;
2975
+ private _refreshToken;
2976
+ private storage;
2977
+ private options?;
2978
+ centrifugo_admin_api: CentrifugoAdminApi;
2979
+ centrifugo_auth: CentrifugoAuth;
2980
+ centrifugo_monitoring: CentrifugoMonitoring;
2981
+ centrifugo_testing: CentrifugoTesting;
2982
+ constructor(baseUrl: string, options?: APIOptions$1);
2983
+ private _loadTokensFromStorage;
2984
+ private _reinitClients;
2985
+ private _injectAuthHeader;
2986
+ /**
2987
+ * Get current JWT token
2988
+ */
2989
+ getToken(): string | null;
2990
+ /**
2991
+ * Get current refresh token
2992
+ */
2993
+ getRefreshToken(): string | null;
2994
+ /**
2995
+ * Set JWT token and refresh token
2996
+ * @param token - JWT access token
2997
+ * @param refreshToken - JWT refresh token (optional)
2998
+ */
2999
+ setToken(token: string, refreshToken?: string): void;
3000
+ /**
3001
+ * Clear all tokens
3002
+ */
3003
+ clearTokens(): void;
3004
+ /**
3005
+ * Check if user is authenticated
3006
+ */
3007
+ isAuthenticated(): boolean;
3008
+ /**
3009
+ * Update base URL and reinitialize clients
3010
+ * @param url - New base URL
3011
+ */
3012
+ setBaseUrl(url: string): void;
3013
+ /**
3014
+ * Get current base URL
3015
+ */
3016
+ getBaseUrl(): string;
3017
+ /**
3018
+ * Get OpenAPI schema path
3019
+ * @returns Path to the OpenAPI schema JSON file
3020
+ *
3021
+ * Note: The OpenAPI schema is available in the schema.json file.
3022
+ * You can load it dynamically using:
3023
+ * ```typescript
3024
+ * const schema = await fetch('./schema.json').then(r => r.json());
3025
+ * // or using fs in Node.js:
3026
+ * // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
3027
+ * ```
3028
+ */
3029
+ getSchemaPath(): string;
3030
+ }
3063
3031
 
3064
3032
  /**
3065
- * Zod schema for ChannelList
3033
+ * Request serializer for sending push notifications.
3066
3034
  *
3067
- * This schema provides runtime validation and type inference.
3068
- * * List of channel statistics.
3069
- * */
3070
-
3071
- /**
3072
- * List of channel statistics.
3035
+ * Request model (no read-only fields).
3073
3036
  */
3074
- declare const ChannelListSchema: z.ZodObject<{
3075
- channels: z.ZodArray<z.ZodObject<{
3076
- channel: z.ZodString;
3077
- total: z.ZodInt;
3078
- successful: z.ZodInt;
3079
- failed: z.ZodInt;
3080
- avg_duration_ms: z.ZodNumber;
3081
- avg_acks: z.ZodNumber;
3082
- last_activity_at: z.ZodNullable<z.ZodString>;
3083
- }, z.core.$strip>>;
3084
- total_channels: z.ZodInt;
3085
- }, z.core.$strip>;
3037
+ interface SendPushRequestRequest$1 {
3038
+ /** Notification title */
3039
+ title: string;
3040
+ /** Notification body */
3041
+ body: string;
3042
+ /** Notification icon URL */
3043
+ icon?: string | null;
3044
+ /** URL to open on click */
3045
+ url?: string | null;
3046
+ }
3086
3047
  /**
3087
- * Infer TypeScript type from Zod schema
3048
+ * Response serializer for send push endpoint.
3049
+ *
3050
+ * Response model (includes read-only fields).
3088
3051
  */
3089
- type ChannelList = z.infer<typeof ChannelListSchema>;
3090
-
3052
+ interface SendPushResponse$1 {
3053
+ /** Whether send was successful */
3054
+ success: boolean;
3055
+ /** Number of devices notification was sent to */
3056
+ sent_to: number;
3057
+ }
3091
3058
  /**
3092
- * Zod schema for ChannelStats
3059
+ * Request serializer for subscribing to push notifications.
3093
3060
  *
3094
- * This schema provides runtime validation and type inference.
3095
- * * Statistics per channel.
3096
- * */
3097
-
3098
- /**
3099
- * Statistics per channel.
3061
+ * Request model (no read-only fields).
3100
3062
  */
3101
- declare const ChannelStatsSchema: z.ZodObject<{
3102
- channel: z.ZodString;
3103
- total: z.ZodInt;
3104
- successful: z.ZodInt;
3105
- failed: z.ZodInt;
3106
- avg_duration_ms: z.ZodNumber;
3107
- avg_acks: z.ZodNumber;
3108
- last_activity_at: z.ZodNullable<z.ZodString>;
3109
- }, z.core.$strip>;
3063
+ interface SubscribeRequestRequest$1 {
3064
+ /** Push service endpoint URL from browser */
3065
+ endpoint: string;
3066
+ /** Encryption keys (p256dh and auth) */
3067
+ keys: Record<string, any>;
3068
+ }
3110
3069
  /**
3111
- * Infer TypeScript type from Zod schema
3070
+ * Response serializer for subscription endpoint.
3071
+ *
3072
+ * Response model (includes read-only fields).
3112
3073
  */
3113
- type ChannelStats = z.infer<typeof ChannelStatsSchema>;
3114
-
3074
+ interface SubscribeResponse$1 {
3075
+ /** Whether subscription was successful */
3076
+ success: boolean;
3077
+ /** ID of the subscription */
3078
+ subscription_id: number;
3079
+ /** Whether subscription was newly created */
3080
+ created: boolean;
3081
+ }
3115
3082
  /**
3116
- * Zod schema for ConnectionTokenResponse
3083
+ * Response serializer for VAPID public key endpoint.
3117
3084
  *
3118
- * This schema provides runtime validation and type inference.
3119
- * * Response model for Centrifugo connection token.
3120
- * */
3121
-
3122
- /**
3123
- * Response model for Centrifugo connection token.
3085
+ * Response model (includes read-only fields).
3124
3086
  */
3125
- declare const ConnectionTokenResponseSchema: z.ZodObject<{
3126
- token: z.ZodString;
3127
- centrifugo_url: z.ZodString;
3128
- expires_at: z.ZodString;
3129
- channels: z.ZodArray<z.ZodString>;
3130
- }, z.core.$strip>;
3087
+ interface VapidPublicKeyResponse$1 {
3088
+ /** VAPID public key for client subscription */
3089
+ publicKey: string;
3090
+ }
3091
+
3131
3092
  /**
3132
- * Infer TypeScript type from Zod schema
3093
+ * API endpoints for Web Push.
3133
3094
  */
3134
- type ConnectionTokenResponse = z.infer<typeof ConnectionTokenResponseSchema>;
3095
+ declare class WebPush {
3096
+ private client;
3097
+ constructor(client: any);
3098
+ /**
3099
+ * Send push notification
3100
+ *
3101
+ * Send push notification to all active subscriptions for the authenticated
3102
+ * user.
3103
+ */
3104
+ webpushSendCreate(data: SendPushRequestRequest$1): Promise<SendPushResponse$1>;
3105
+ /**
3106
+ * Subscribe to push notifications
3107
+ *
3108
+ * Save push subscription from browser for the authenticated user.
3109
+ */
3110
+ webpushSubscribeCreate(data: SubscribeRequestRequest$1): Promise<SubscribeResponse$1>;
3111
+ /**
3112
+ * Get VAPID public key
3113
+ *
3114
+ * Get VAPID public key for client subscription.
3115
+ */
3116
+ webpushVapidRetrieve(): Promise<VapidPublicKeyResponse$1>;
3117
+ }
3135
3118
 
3136
3119
  /**
3137
- * Zod schema for ManualAckRequestRequest
3120
+ * API Logger with Consola
3121
+ * Beautiful console logging for API requests and responses
3138
3122
  *
3139
- * This schema provides runtime validation and type inference.
3140
- * * Request model for manual ACK sending.
3141
- * */
3142
-
3143
- /**
3144
- * Request model for manual ACK sending.
3123
+ * Installation:
3124
+ * npm install consola
3145
3125
  */
3146
- declare const ManualAckRequestRequestSchema: z.ZodObject<{
3147
- message_id: z.ZodString;
3148
- client_id: z.ZodString;
3149
- }, z.core.$strip>;
3126
+
3150
3127
  /**
3151
- * Infer TypeScript type from Zod schema
3128
+ * Logger configuration
3152
3129
  */
3153
- type ManualAckRequestRequest = z.infer<typeof ManualAckRequestRequestSchema>;
3130
+ interface LoggerConfig {
3131
+ /** Enable logging */
3132
+ enabled: boolean;
3133
+ /** Log requests */
3134
+ logRequests: boolean;
3135
+ /** Log responses */
3136
+ logResponses: boolean;
3137
+ /** Log errors */
3138
+ logErrors: boolean;
3139
+ /** Log request/response bodies */
3140
+ logBodies: boolean;
3141
+ /** Log headers (excluding sensitive ones) */
3142
+ logHeaders: boolean;
3143
+ /** Custom consola instance */
3144
+ consola?: ConsolaInstance;
3145
+ }
3154
3146
 
3155
3147
  /**
3156
- * Zod schema for ManualAckResponse
3148
+ * Retry Configuration and Utilities
3157
3149
  *
3158
- * This schema provides runtime validation and type inference.
3159
- * * Response model for manual ACK.
3160
- * */
3161
-
3162
- /**
3163
- * Response model for manual ACK.
3150
+ * Provides automatic retry logic for failed HTTP requests using p-retry.
3151
+ * Retries only on network errors and server errors (5xx), not client errors (4xx).
3164
3152
  */
3165
- declare const ManualAckResponseSchema: z.ZodObject<{
3166
- success: z.ZodBoolean;
3167
- message_id: z.ZodString;
3168
- error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3169
- }, z.core.$strip>;
3170
3153
  /**
3171
- * Infer TypeScript type from Zod schema
3154
+ * Information about a failed retry attempt.
3172
3155
  */
3173
- type ManualAckResponse = z.infer<typeof ManualAckResponseSchema>;
3174
-
3156
+ interface FailedAttemptInfo {
3157
+ /** The error that caused the failure */
3158
+ error: Error;
3159
+ /** The attempt number (1-indexed) */
3160
+ attemptNumber: number;
3161
+ /** Number of retries left */
3162
+ retriesLeft: number;
3163
+ }
3175
3164
  /**
3176
- * Zod schema for PaginatedPublishList
3165
+ * Retry configuration options.
3177
3166
  *
3178
- * This schema provides runtime validation and type inference.
3179
- * */
3180
-
3181
- declare const PaginatedPublishListSchema: z.ZodObject<{
3182
- count: z.ZodInt;
3183
- page: z.ZodInt;
3184
- pages: z.ZodInt;
3185
- page_size: z.ZodInt;
3186
- has_next: z.ZodBoolean;
3187
- has_previous: z.ZodBoolean;
3188
- next_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3189
- previous_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3190
- results: z.ZodArray<z.ZodObject<{
3191
- message_id: z.ZodString;
3192
- channel: z.ZodString;
3193
- status: z.ZodString;
3194
- wait_for_ack: z.ZodBoolean;
3195
- acks_received: z.ZodInt;
3196
- acks_expected: z.ZodNullable<z.ZodInt>;
3197
- duration_ms: z.ZodNullable<z.ZodNumber>;
3198
- created_at: z.ZodISODateTime;
3199
- completed_at: z.ZodNullable<z.ZodISODateTime>;
3200
- error_code: z.ZodNullable<z.ZodString>;
3201
- error_message: z.ZodNullable<z.ZodString>;
3202
- }, z.core.$strip>>;
3203
- }, z.core.$strip>;
3167
+ * Uses exponential backoff with jitter by default to avoid thundering herd.
3168
+ */
3169
+ interface RetryConfig {
3170
+ /**
3171
+ * Maximum number of retry attempts.
3172
+ * @default 3
3173
+ */
3174
+ retries?: number;
3175
+ /**
3176
+ * Exponential backoff factor.
3177
+ * @default 2
3178
+ */
3179
+ factor?: number;
3180
+ /**
3181
+ * Minimum wait time between retries (ms).
3182
+ * @default 1000
3183
+ */
3184
+ minTimeout?: number;
3185
+ /**
3186
+ * Maximum wait time between retries (ms).
3187
+ * @default 60000
3188
+ */
3189
+ maxTimeout?: number;
3190
+ /**
3191
+ * Add randomness to wait times (jitter).
3192
+ * Helps avoid thundering herd problem.
3193
+ * @default true
3194
+ */
3195
+ randomize?: boolean;
3196
+ /**
3197
+ * Callback called on each failed attempt.
3198
+ */
3199
+ onFailedAttempt?: (info: FailedAttemptInfo) => void;
3200
+ }
3201
+
3204
3202
  /**
3205
- * Infer TypeScript type from Zod schema
3203
+ * Storage adapters for cross-platform token storage.
3204
+ *
3205
+ * Supports:
3206
+ * - LocalStorage (browser)
3207
+ * - Cookies (SSR/browser)
3208
+ * - Memory (Node.js/Electron/testing)
3206
3209
  */
3207
- type PaginatedPublishList = z.infer<typeof PaginatedPublishListSchema>;
3208
3210
 
3209
3211
  /**
3210
- * Zod schema for Publish
3212
+ * Storage adapter interface for cross-platform token storage.
3213
+ */
3214
+ interface StorageAdapter {
3215
+ getItem(key: string): string | null;
3216
+ setItem(key: string, value: string): void;
3217
+ removeItem(key: string): void;
3218
+ }
3219
+
3220
+ /**
3221
+ * Zod schema for SendPushRequestRequest
3211
3222
  *
3212
3223
  * This schema provides runtime validation and type inference.
3213
- * * Single publish item for DRF pagination.
3224
+ * * Request serializer for sending push notifications.
3214
3225
  * */
3215
3226
 
3216
3227
  /**
3217
- * Single publish item for DRF pagination.
3228
+ * Request serializer for sending push notifications.
3218
3229
  */
3219
- declare const PublishSchema: z.ZodObject<{
3220
- message_id: z.ZodString;
3221
- channel: z.ZodString;
3222
- status: z.ZodString;
3223
- wait_for_ack: z.ZodBoolean;
3224
- acks_received: z.ZodInt;
3225
- acks_expected: z.ZodNullable<z.ZodInt>;
3226
- duration_ms: z.ZodNullable<z.ZodNumber>;
3227
- created_at: z.ZodISODateTime;
3228
- completed_at: z.ZodNullable<z.ZodISODateTime>;
3229
- error_code: z.ZodNullable<z.ZodString>;
3230
- error_message: z.ZodNullable<z.ZodString>;
3230
+ declare const SendPushRequestRequestSchema: z.ZodObject<{
3231
+ title: z.ZodString;
3232
+ body: z.ZodString;
3233
+ icon: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
3234
+ url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
3231
3235
  }, z.core.$strip>;
3232
3236
  /**
3233
3237
  * Infer TypeScript type from Zod schema
3234
3238
  */
3235
- type Publish = z.infer<typeof PublishSchema>;
3239
+ type SendPushRequestRequest = z.infer<typeof SendPushRequestRequestSchema>;
3236
3240
 
3237
3241
  /**
3238
- * Zod schema for PublishTestRequestRequest
3242
+ * Zod schema for SendPushResponse
3239
3243
  *
3240
3244
  * This schema provides runtime validation and type inference.
3241
- * * Request model for test message publishing.
3245
+ * * Response serializer for send push endpoint.
3242
3246
  * */
3243
3247
 
3244
3248
  /**
3245
- * Request model for test message publishing.
3249
+ * Response serializer for send push endpoint.
3246
3250
  */
3247
- declare const PublishTestRequestRequestSchema: z.ZodObject<{
3248
- channel: z.ZodString;
3249
- data: z.ZodRecord<z.ZodString, z.ZodAny>;
3250
- wait_for_ack: z.ZodOptional<z.ZodBoolean>;
3251
- ack_timeout: z.ZodOptional<z.ZodInt>;
3251
+ declare const SendPushResponseSchema: z.ZodObject<{
3252
+ success: z.ZodBoolean;
3253
+ sent_to: z.ZodInt;
3252
3254
  }, z.core.$strip>;
3253
3255
  /**
3254
3256
  * Infer TypeScript type from Zod schema
3255
3257
  */
3256
- type PublishTestRequestRequest = z.infer<typeof PublishTestRequestRequestSchema>;
3258
+ type SendPushResponse = z.infer<typeof SendPushResponseSchema>;
3257
3259
 
3258
3260
  /**
3259
- * Zod schema for PublishTestResponse
3261
+ * Zod schema for SubscribeRequestRequest
3260
3262
  *
3261
3263
  * This schema provides runtime validation and type inference.
3262
- * * Response model for test message publishing.
3264
+ * * Request serializer for subscribing to push notifications.
3263
3265
  * */
3264
3266
 
3265
3267
  /**
3266
- * Response model for test message publishing.
3268
+ * Request serializer for subscribing to push notifications.
3267
3269
  */
3268
- declare const PublishTestResponseSchema: z.ZodObject<{
3269
- success: z.ZodBoolean;
3270
- message_id: z.ZodString;
3271
- channel: z.ZodString;
3272
- acks_received: z.ZodOptional<z.ZodInt>;
3273
- delivered: z.ZodOptional<z.ZodBoolean>;
3274
- error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3270
+ declare const SubscribeRequestRequestSchema: z.ZodObject<{
3271
+ endpoint: z.ZodURL;
3272
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
3275
3273
  }, z.core.$strip>;
3276
3274
  /**
3277
3275
  * Infer TypeScript type from Zod schema
3278
3276
  */
3279
- type PublishTestResponse = z.infer<typeof PublishTestResponseSchema>;
3277
+ type SubscribeRequestRequest = z.infer<typeof SubscribeRequestRequestSchema>;
3280
3278
 
3281
3279
  /**
3282
- * Zod schema for TimelineItem
3280
+ * Zod schema for SubscribeResponse
3283
3281
  *
3284
3282
  * This schema provides runtime validation and type inference.
3285
- * * Single timeline data point for DRF.
3283
+ * * Response serializer for subscription endpoint.
3286
3284
  * */
3287
3285
 
3288
3286
  /**
3289
- * Single timeline data point for DRF.
3287
+ * Response serializer for subscription endpoint.
3290
3288
  */
3291
- declare const TimelineItemSchema: z.ZodObject<{
3292
- timestamp: z.ZodString;
3293
- count: z.ZodInt;
3294
- successful: z.ZodInt;
3295
- failed: z.ZodInt;
3296
- timeout: z.ZodInt;
3289
+ declare const SubscribeResponseSchema: z.ZodObject<{
3290
+ success: z.ZodBoolean;
3291
+ subscription_id: z.ZodInt;
3292
+ created: z.ZodBoolean;
3297
3293
  }, z.core.$strip>;
3298
3294
  /**
3299
3295
  * Infer TypeScript type from Zod schema
3300
3296
  */
3301
- type TimelineItem = z.infer<typeof TimelineItemSchema>;
3297
+ type SubscribeResponse = z.infer<typeof SubscribeResponseSchema>;
3302
3298
 
3303
3299
  /**
3304
- * Zod schema for TimelineResponse
3300
+ * Zod schema for VapidPublicKeyResponse
3305
3301
  *
3306
3302
  * This schema provides runtime validation and type inference.
3307
- * * Timeline response with hourly/daily breakdown for DRF.
3303
+ * * Response serializer for VAPID public key endpoint.
3308
3304
  * */
3309
3305
 
3310
3306
  /**
3311
- * Timeline response with hourly/daily breakdown for DRF.
3307
+ * Response serializer for VAPID public key endpoint.
3312
3308
  */
3313
- declare const TimelineResponseSchema: z.ZodObject<{
3314
- timeline: z.ZodArray<z.ZodObject<{
3315
- timestamp: z.ZodString;
3316
- count: z.ZodInt;
3317
- successful: z.ZodInt;
3318
- failed: z.ZodInt;
3319
- timeout: z.ZodInt;
3320
- }, z.core.$strip>>;
3321
- period_hours: z.ZodInt;
3322
- interval: z.ZodString;
3309
+ declare const VapidPublicKeyResponseSchema: z.ZodObject<{
3310
+ publicKey: z.ZodString;
3323
3311
  }, z.core.$strip>;
3324
3312
  /**
3325
3313
  * Infer TypeScript type from Zod schema
3326
3314
  */
3327
- type TimelineResponse = z.infer<typeof TimelineResponseSchema>;
3315
+ type VapidPublicKeyResponse = z.infer<typeof VapidPublicKeyResponseSchema>;
3328
3316
 
3329
- /**
3330
- * AUTO-GENERATED FILE - DO NOT EDIT
3331
- *
3332
- * This file is automatically generated by DjangoCFG.
3333
- * Any manual changes will be lost when the code is regenerated.
3334
- *
3335
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
3336
- */
3337
3317
  /**
3338
3318
  * Zod Schemas - Runtime validation and type inference
3339
3319
  *
@@ -3352,209 +3332,42 @@ type TimelineResponse = z.infer<typeof TimelineResponseSchema>;
3352
3332
  * ```
3353
3333
  */
3354
3334
 
3355
- type index$3_CentrifugoChannelInfo = CentrifugoChannelInfo;
3356
- declare const index$3_CentrifugoChannelInfoSchema: typeof CentrifugoChannelInfoSchema;
3357
- type index$3_CentrifugoChannelsRequestRequest = CentrifugoChannelsRequestRequest;
3358
- declare const index$3_CentrifugoChannelsRequestRequestSchema: typeof CentrifugoChannelsRequestRequestSchema;
3359
- type index$3_CentrifugoChannelsResponse = CentrifugoChannelsResponse;
3360
- declare const index$3_CentrifugoChannelsResponseSchema: typeof CentrifugoChannelsResponseSchema;
3361
- type index$3_CentrifugoChannelsResult = CentrifugoChannelsResult;
3362
- declare const index$3_CentrifugoChannelsResultSchema: typeof CentrifugoChannelsResultSchema;
3363
- type index$3_CentrifugoClientInfo = CentrifugoClientInfo;
3364
- declare const index$3_CentrifugoClientInfoSchema: typeof CentrifugoClientInfoSchema;
3365
- type index$3_CentrifugoError = CentrifugoError;
3366
- declare const index$3_CentrifugoErrorSchema: typeof CentrifugoErrorSchema;
3367
- type index$3_CentrifugoHealthCheck = CentrifugoHealthCheck;
3368
- declare const index$3_CentrifugoHealthCheckSchema: typeof CentrifugoHealthCheckSchema;
3369
- type index$3_CentrifugoHistoryRequestRequest = CentrifugoHistoryRequestRequest;
3370
- declare const index$3_CentrifugoHistoryRequestRequestSchema: typeof CentrifugoHistoryRequestRequestSchema;
3371
- type index$3_CentrifugoHistoryResponse = CentrifugoHistoryResponse;
3372
- declare const index$3_CentrifugoHistoryResponseSchema: typeof CentrifugoHistoryResponseSchema;
3373
- type index$3_CentrifugoHistoryResult = CentrifugoHistoryResult;
3374
- declare const index$3_CentrifugoHistoryResultSchema: typeof CentrifugoHistoryResultSchema;
3375
- type index$3_CentrifugoInfoResponse = CentrifugoInfoResponse;
3376
- declare const index$3_CentrifugoInfoResponseSchema: typeof CentrifugoInfoResponseSchema;
3377
- type index$3_CentrifugoInfoResult = CentrifugoInfoResult;
3378
- declare const index$3_CentrifugoInfoResultSchema: typeof CentrifugoInfoResultSchema;
3379
- type index$3_CentrifugoMetrics = CentrifugoMetrics;
3380
- declare const index$3_CentrifugoMetricsSchema: typeof CentrifugoMetricsSchema;
3381
- type index$3_CentrifugoNodeInfo = CentrifugoNodeInfo;
3382
- declare const index$3_CentrifugoNodeInfoSchema: typeof CentrifugoNodeInfoSchema;
3383
- type index$3_CentrifugoOverviewStats = CentrifugoOverviewStats;
3384
- declare const index$3_CentrifugoOverviewStatsSchema: typeof CentrifugoOverviewStatsSchema;
3385
- type index$3_CentrifugoPresenceRequestRequest = CentrifugoPresenceRequestRequest;
3386
- declare const index$3_CentrifugoPresenceRequestRequestSchema: typeof CentrifugoPresenceRequestRequestSchema;
3387
- type index$3_CentrifugoPresenceResponse = CentrifugoPresenceResponse;
3388
- declare const index$3_CentrifugoPresenceResponseSchema: typeof CentrifugoPresenceResponseSchema;
3389
- type index$3_CentrifugoPresenceResult = CentrifugoPresenceResult;
3390
- declare const index$3_CentrifugoPresenceResultSchema: typeof CentrifugoPresenceResultSchema;
3391
- type index$3_CentrifugoPresenceStatsRequestRequest = CentrifugoPresenceStatsRequestRequest;
3392
- declare const index$3_CentrifugoPresenceStatsRequestRequestSchema: typeof CentrifugoPresenceStatsRequestRequestSchema;
3393
- type index$3_CentrifugoPresenceStatsResponse = CentrifugoPresenceStatsResponse;
3394
- declare const index$3_CentrifugoPresenceStatsResponseSchema: typeof CentrifugoPresenceStatsResponseSchema;
3395
- type index$3_CentrifugoPresenceStatsResult = CentrifugoPresenceStatsResult;
3396
- declare const index$3_CentrifugoPresenceStatsResultSchema: typeof CentrifugoPresenceStatsResultSchema;
3397
- type index$3_CentrifugoProcess = CentrifugoProcess;
3398
- declare const index$3_CentrifugoProcessSchema: typeof CentrifugoProcessSchema;
3399
- type index$3_CentrifugoPublication = CentrifugoPublication;
3400
- declare const index$3_CentrifugoPublicationSchema: typeof CentrifugoPublicationSchema;
3401
- type index$3_CentrifugoStreamPosition = CentrifugoStreamPosition;
3402
- declare const index$3_CentrifugoStreamPositionSchema: typeof CentrifugoStreamPositionSchema;
3403
- type index$3_ChannelList = ChannelList;
3404
- declare const index$3_ChannelListSchema: typeof ChannelListSchema;
3405
- type index$3_ChannelStats = ChannelStats;
3406
- declare const index$3_ChannelStatsSchema: typeof ChannelStatsSchema;
3407
- type index$3_ConnectionTokenResponse = ConnectionTokenResponse;
3408
- declare const index$3_ConnectionTokenResponseSchema: typeof ConnectionTokenResponseSchema;
3409
- type index$3_ManualAckRequestRequest = ManualAckRequestRequest;
3410
- declare const index$3_ManualAckRequestRequestSchema: typeof ManualAckRequestRequestSchema;
3411
- type index$3_ManualAckResponse = ManualAckResponse;
3412
- declare const index$3_ManualAckResponseSchema: typeof ManualAckResponseSchema;
3413
- type index$3_PaginatedPublishList = PaginatedPublishList;
3414
- declare const index$3_PaginatedPublishListSchema: typeof PaginatedPublishListSchema;
3415
- type index$3_Publish = Publish;
3416
- declare const index$3_PublishSchema: typeof PublishSchema;
3417
- type index$3_PublishTestRequestRequest = PublishTestRequestRequest;
3418
- declare const index$3_PublishTestRequestRequestSchema: typeof PublishTestRequestRequestSchema;
3419
- type index$3_PublishTestResponse = PublishTestResponse;
3420
- declare const index$3_PublishTestResponseSchema: typeof PublishTestResponseSchema;
3421
- type index$3_TimelineItem = TimelineItem;
3422
- declare const index$3_TimelineItemSchema: typeof TimelineItemSchema;
3423
- type index$3_TimelineResponse = TimelineResponse;
3424
- declare const index$3_TimelineResponseSchema: typeof TimelineResponseSchema;
3335
+ type index$3_SendPushRequestRequest = SendPushRequestRequest;
3336
+ declare const index$3_SendPushRequestRequestSchema: typeof SendPushRequestRequestSchema;
3337
+ type index$3_SendPushResponse = SendPushResponse;
3338
+ declare const index$3_SendPushResponseSchema: typeof SendPushResponseSchema;
3339
+ type index$3_SubscribeRequestRequest = SubscribeRequestRequest;
3340
+ declare const index$3_SubscribeRequestRequestSchema: typeof SubscribeRequestRequestSchema;
3341
+ type index$3_SubscribeResponse = SubscribeResponse;
3342
+ declare const index$3_SubscribeResponseSchema: typeof SubscribeResponseSchema;
3343
+ type index$3_VapidPublicKeyResponse = VapidPublicKeyResponse;
3344
+ declare const index$3_VapidPublicKeyResponseSchema: typeof VapidPublicKeyResponseSchema;
3425
3345
  declare namespace index$3 {
3426
- export { type index$3_CentrifugoChannelInfo as CentrifugoChannelInfo, index$3_CentrifugoChannelInfoSchema as CentrifugoChannelInfoSchema, type index$3_CentrifugoChannelsRequestRequest as CentrifugoChannelsRequestRequest, index$3_CentrifugoChannelsRequestRequestSchema as CentrifugoChannelsRequestRequestSchema, type index$3_CentrifugoChannelsResponse as CentrifugoChannelsResponse, index$3_CentrifugoChannelsResponseSchema as CentrifugoChannelsResponseSchema, type index$3_CentrifugoChannelsResult as CentrifugoChannelsResult, index$3_CentrifugoChannelsResultSchema as CentrifugoChannelsResultSchema, type index$3_CentrifugoClientInfo as CentrifugoClientInfo, index$3_CentrifugoClientInfoSchema as CentrifugoClientInfoSchema, type index$3_CentrifugoError as CentrifugoError, index$3_CentrifugoErrorSchema as CentrifugoErrorSchema, type index$3_CentrifugoHealthCheck as CentrifugoHealthCheck, index$3_CentrifugoHealthCheckSchema as CentrifugoHealthCheckSchema, type index$3_CentrifugoHistoryRequestRequest as CentrifugoHistoryRequestRequest, index$3_CentrifugoHistoryRequestRequestSchema as CentrifugoHistoryRequestRequestSchema, type index$3_CentrifugoHistoryResponse as CentrifugoHistoryResponse, index$3_CentrifugoHistoryResponseSchema as CentrifugoHistoryResponseSchema, type index$3_CentrifugoHistoryResult as CentrifugoHistoryResult, index$3_CentrifugoHistoryResultSchema as CentrifugoHistoryResultSchema, type index$3_CentrifugoInfoResponse as CentrifugoInfoResponse, index$3_CentrifugoInfoResponseSchema as CentrifugoInfoResponseSchema, type index$3_CentrifugoInfoResult as CentrifugoInfoResult, index$3_CentrifugoInfoResultSchema as CentrifugoInfoResultSchema, type index$3_CentrifugoMetrics as CentrifugoMetrics, index$3_CentrifugoMetricsSchema as CentrifugoMetricsSchema, type index$3_CentrifugoNodeInfo as CentrifugoNodeInfo, index$3_CentrifugoNodeInfoSchema as CentrifugoNodeInfoSchema, type index$3_CentrifugoOverviewStats as CentrifugoOverviewStats, index$3_CentrifugoOverviewStatsSchema as CentrifugoOverviewStatsSchema, type index$3_CentrifugoPresenceRequestRequest as CentrifugoPresenceRequestRequest, index$3_CentrifugoPresenceRequestRequestSchema as CentrifugoPresenceRequestRequestSchema, type index$3_CentrifugoPresenceResponse as CentrifugoPresenceResponse, index$3_CentrifugoPresenceResponseSchema as CentrifugoPresenceResponseSchema, type index$3_CentrifugoPresenceResult as CentrifugoPresenceResult, index$3_CentrifugoPresenceResultSchema as CentrifugoPresenceResultSchema, type index$3_CentrifugoPresenceStatsRequestRequest as CentrifugoPresenceStatsRequestRequest, index$3_CentrifugoPresenceStatsRequestRequestSchema as CentrifugoPresenceStatsRequestRequestSchema, type index$3_CentrifugoPresenceStatsResponse as CentrifugoPresenceStatsResponse, index$3_CentrifugoPresenceStatsResponseSchema as CentrifugoPresenceStatsResponseSchema, type index$3_CentrifugoPresenceStatsResult as CentrifugoPresenceStatsResult, index$3_CentrifugoPresenceStatsResultSchema as CentrifugoPresenceStatsResultSchema, type index$3_CentrifugoProcess as CentrifugoProcess, index$3_CentrifugoProcessSchema as CentrifugoProcessSchema, type index$3_CentrifugoPublication as CentrifugoPublication, index$3_CentrifugoPublicationSchema as CentrifugoPublicationSchema, type index$3_CentrifugoStreamPosition as CentrifugoStreamPosition, index$3_CentrifugoStreamPositionSchema as CentrifugoStreamPositionSchema, type index$3_ChannelList as ChannelList, index$3_ChannelListSchema as ChannelListSchema, type index$3_ChannelStats as ChannelStats, index$3_ChannelStatsSchema as ChannelStatsSchema, type index$3_ConnectionTokenResponse as ConnectionTokenResponse, index$3_ConnectionTokenResponseSchema as ConnectionTokenResponseSchema, type index$3_ManualAckRequestRequest as ManualAckRequestRequest, index$3_ManualAckRequestRequestSchema as ManualAckRequestRequestSchema, type index$3_ManualAckResponse as ManualAckResponse, index$3_ManualAckResponseSchema as ManualAckResponseSchema, type index$3_PaginatedPublishList as PaginatedPublishList, index$3_PaginatedPublishListSchema as PaginatedPublishListSchema, type index$3_Publish as Publish, index$3_PublishSchema as PublishSchema, type index$3_PublishTestRequestRequest as PublishTestRequestRequest, index$3_PublishTestRequestRequestSchema as PublishTestRequestRequestSchema, type index$3_PublishTestResponse as PublishTestResponse, index$3_PublishTestResponseSchema as PublishTestResponseSchema, type index$3_TimelineItem as TimelineItem, index$3_TimelineItemSchema as TimelineItemSchema, type index$3_TimelineResponse as TimelineResponse, index$3_TimelineResponseSchema as TimelineResponseSchema };
3346
+ export { type index$3_SendPushRequestRequest as SendPushRequestRequest, index$3_SendPushRequestRequestSchema as SendPushRequestRequestSchema, type index$3_SendPushResponse as SendPushResponse, index$3_SendPushResponseSchema as SendPushResponseSchema, type index$3_SubscribeRequestRequest as SubscribeRequestRequest, index$3_SubscribeRequestRequestSchema as SubscribeRequestRequestSchema, type index$3_SubscribeResponse as SubscribeResponse, index$3_SubscribeResponseSchema as SubscribeResponseSchema, type index$3_VapidPublicKeyResponse as VapidPublicKeyResponse, index$3_VapidPublicKeyResponseSchema as VapidPublicKeyResponseSchema };
3427
3347
  }
3428
3348
 
3429
3349
  /**
3430
- * Get connection token for dashboard
3431
- *
3432
- * @method POST
3433
- * @path /cfg/centrifugo/server/auth/token/
3434
- */
3435
- declare function createCentrifugoServerAuthTokenCreate(client?: any): Promise<any>;
3436
- /**
3437
- * List active channels
3438
- *
3439
- * @method POST
3440
- * @path /cfg/centrifugo/server/channels/
3441
- */
3442
- declare function createCentrifugoServerChannelsCreate(data: CentrifugoChannelsRequestRequest, client?: any): Promise<CentrifugoChannelsResponse>;
3443
- /**
3444
- * Get channel history
3445
- *
3446
- * @method POST
3447
- * @path /cfg/centrifugo/server/history/
3448
- */
3449
- declare function createCentrifugoServerHistoryCreate(data: CentrifugoHistoryRequestRequest, client?: any): Promise<CentrifugoHistoryResponse>;
3450
- /**
3451
- * Get Centrifugo server info
3452
- *
3453
- * @method POST
3454
- * @path /cfg/centrifugo/server/info/
3455
- */
3456
- declare function createCentrifugoServerInfoCreate(client?: any): Promise<CentrifugoInfoResponse>;
3457
- /**
3458
- * Get channel presence
3350
+ * Send push notification
3459
3351
  *
3460
3352
  * @method POST
3461
- * @path /cfg/centrifugo/server/presence/
3353
+ * @path /cfg/webpush/send/
3462
3354
  */
3463
- declare function createCentrifugoServerPresenceCreate(data: CentrifugoPresenceRequestRequest, client?: any): Promise<CentrifugoPresenceResponse>;
3355
+ declare function createWebpushSendCreate(data: SendPushRequestRequest, client?: any): Promise<SendPushResponse>;
3464
3356
  /**
3465
- * Get channel presence statistics
3357
+ * Subscribe to push notifications
3466
3358
  *
3467
3359
  * @method POST
3468
- * @path /cfg/centrifugo/server/presence-stats/
3469
- */
3470
- declare function createCentrifugoServerPresenceStatsCreate(data: CentrifugoPresenceStatsRequestRequest, client?: any): Promise<CentrifugoPresenceStatsResponse>;
3471
-
3472
- /**
3473
- * Get Centrifugo connection token
3474
- *
3475
- * @method GET
3476
- * @path /cfg/centrifugo/auth/token/
3477
- */
3478
- declare function getCentrifugoAuthTokenRetrieve(client?: any): Promise<ConnectionTokenResponse>;
3479
-
3480
- /**
3481
- * Get channel statistics
3482
- *
3483
- * @method GET
3484
- * @path /cfg/centrifugo/monitor/channels/
3485
- */
3486
- declare function getCentrifugoMonitorChannelsRetrieve(params?: {
3487
- hours?: number;
3488
- }, client?: any): Promise<ChannelList>;
3489
- /**
3490
- * Get Centrifugo health status
3491
- *
3492
- * @method GET
3493
- * @path /cfg/centrifugo/monitor/health/
3494
- */
3495
- declare function getCentrifugoMonitorHealthRetrieve(client?: any): Promise<CentrifugoHealthCheck>;
3496
- /**
3497
- * Get overview statistics
3498
- *
3499
- * @method GET
3500
- * @path /cfg/centrifugo/monitor/overview/
3501
- */
3502
- declare function getCentrifugoMonitorOverviewRetrieve(params?: {
3503
- hours?: number;
3504
- }, client?: any): Promise<CentrifugoOverviewStats>;
3505
- /**
3506
- * Get recent publishes
3507
- *
3508
- * @method GET
3509
- * @path /cfg/centrifugo/monitor/publishes/
3360
+ * @path /cfg/webpush/subscribe/
3510
3361
  */
3511
- declare function getCentrifugoMonitorPublishesList(params?: {
3512
- channel?: string;
3513
- page?: number;
3514
- page_size?: number;
3515
- status?: string;
3516
- }, client?: any): Promise<PaginatedPublishList>;
3362
+ declare function createWebpushSubscribeCreate(data: SubscribeRequestRequest, client?: any): Promise<SubscribeResponse>;
3517
3363
  /**
3518
- * Get publish timeline
3364
+ * Get VAPID public key
3519
3365
  *
3520
3366
  * @method GET
3521
- * @path /cfg/centrifugo/monitor/timeline/
3522
- */
3523
- declare function getCentrifugoMonitorTimelineRetrieve(params?: {
3524
- hours?: number;
3525
- interval?: string;
3526
- }, client?: any): Promise<TimelineResponse>;
3527
-
3528
- /**
3529
- * Publish test message
3530
- *
3531
- * @method POST
3532
- * @path /cfg/centrifugo/testing/publish-test/
3533
- */
3534
- declare function createCentrifugoTestingPublishTestCreate(data: PublishTestRequestRequest, client?: any): Promise<PublishTestResponse>;
3535
- /**
3536
- * Publish with database logging
3537
- *
3538
- * @method POST
3539
- * @path /cfg/centrifugo/testing/publish-with-logging/
3540
- */
3541
- declare function createCentrifugoTestingPublishWithLoggingCreate(data: PublishTestRequestRequest, client?: any): Promise<PublishTestResponse>;
3542
- /**
3543
- * Send manual ACK
3544
- *
3545
- * @method POST
3546
- * @path /cfg/centrifugo/testing/send-ack/
3367
+ * @path /cfg/webpush/vapid/
3547
3368
  */
3548
- declare function createCentrifugoTestingSendAckCreate(data: ManualAckRequestRequest, client?: any): Promise<ManualAckResponse>;
3369
+ declare function getWebpushVapidRetrieve(client?: any): Promise<VapidPublicKeyResponse>;
3549
3370
 
3550
- /**
3551
- * AUTO-GENERATED FILE - DO NOT EDIT
3552
- *
3553
- * This file is automatically generated by DjangoCFG.
3554
- * Any manual changes will be lost when the code is regenerated.
3555
- *
3556
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
3557
- */
3558
3371
  /**
3559
3372
  * Typed Fetchers - Universal API functions
3560
3373
  *
@@ -3582,33 +3395,13 @@ declare function createCentrifugoTestingSendAckCreate(data: ManualAckRequestRequ
3582
3395
  * ```
3583
3396
  */
3584
3397
 
3585
- declare const index$2_createCentrifugoServerAuthTokenCreate: typeof createCentrifugoServerAuthTokenCreate;
3586
- declare const index$2_createCentrifugoServerChannelsCreate: typeof createCentrifugoServerChannelsCreate;
3587
- declare const index$2_createCentrifugoServerHistoryCreate: typeof createCentrifugoServerHistoryCreate;
3588
- declare const index$2_createCentrifugoServerInfoCreate: typeof createCentrifugoServerInfoCreate;
3589
- declare const index$2_createCentrifugoServerPresenceCreate: typeof createCentrifugoServerPresenceCreate;
3590
- declare const index$2_createCentrifugoServerPresenceStatsCreate: typeof createCentrifugoServerPresenceStatsCreate;
3591
- declare const index$2_createCentrifugoTestingPublishTestCreate: typeof createCentrifugoTestingPublishTestCreate;
3592
- declare const index$2_createCentrifugoTestingPublishWithLoggingCreate: typeof createCentrifugoTestingPublishWithLoggingCreate;
3593
- declare const index$2_createCentrifugoTestingSendAckCreate: typeof createCentrifugoTestingSendAckCreate;
3594
- declare const index$2_getCentrifugoAuthTokenRetrieve: typeof getCentrifugoAuthTokenRetrieve;
3595
- declare const index$2_getCentrifugoMonitorChannelsRetrieve: typeof getCentrifugoMonitorChannelsRetrieve;
3596
- declare const index$2_getCentrifugoMonitorHealthRetrieve: typeof getCentrifugoMonitorHealthRetrieve;
3597
- declare const index$2_getCentrifugoMonitorOverviewRetrieve: typeof getCentrifugoMonitorOverviewRetrieve;
3598
- declare const index$2_getCentrifugoMonitorPublishesList: typeof getCentrifugoMonitorPublishesList;
3599
- declare const index$2_getCentrifugoMonitorTimelineRetrieve: typeof getCentrifugoMonitorTimelineRetrieve;
3398
+ declare const index$2_createWebpushSendCreate: typeof createWebpushSendCreate;
3399
+ declare const index$2_createWebpushSubscribeCreate: typeof createWebpushSubscribeCreate;
3400
+ declare const index$2_getWebpushVapidRetrieve: typeof getWebpushVapidRetrieve;
3600
3401
  declare namespace index$2 {
3601
- export { index$2_createCentrifugoServerAuthTokenCreate as createCentrifugoServerAuthTokenCreate, index$2_createCentrifugoServerChannelsCreate as createCentrifugoServerChannelsCreate, index$2_createCentrifugoServerHistoryCreate as createCentrifugoServerHistoryCreate, index$2_createCentrifugoServerInfoCreate as createCentrifugoServerInfoCreate, index$2_createCentrifugoServerPresenceCreate as createCentrifugoServerPresenceCreate, index$2_createCentrifugoServerPresenceStatsCreate as createCentrifugoServerPresenceStatsCreate, index$2_createCentrifugoTestingPublishTestCreate as createCentrifugoTestingPublishTestCreate, index$2_createCentrifugoTestingPublishWithLoggingCreate as createCentrifugoTestingPublishWithLoggingCreate, index$2_createCentrifugoTestingSendAckCreate as createCentrifugoTestingSendAckCreate, index$2_getCentrifugoAuthTokenRetrieve as getCentrifugoAuthTokenRetrieve, index$2_getCentrifugoMonitorChannelsRetrieve as getCentrifugoMonitorChannelsRetrieve, index$2_getCentrifugoMonitorHealthRetrieve as getCentrifugoMonitorHealthRetrieve, index$2_getCentrifugoMonitorOverviewRetrieve as getCentrifugoMonitorOverviewRetrieve, index$2_getCentrifugoMonitorPublishesList as getCentrifugoMonitorPublishesList, index$2_getCentrifugoMonitorTimelineRetrieve as getCentrifugoMonitorTimelineRetrieve };
3402
+ export { index$2_createWebpushSendCreate as createWebpushSendCreate, index$2_createWebpushSubscribeCreate as createWebpushSubscribeCreate, index$2_getWebpushVapidRetrieve as getWebpushVapidRetrieve };
3602
3403
  }
3603
3404
 
3604
- /**
3605
- * AUTO-GENERATED FILE - DO NOT EDIT
3606
- *
3607
- * This file is automatically generated by DjangoCFG.
3608
- * Any manual changes will be lost when the code is regenerated.
3609
- *
3610
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
3611
- */
3612
3405
  /**
3613
3406
  * Django CFG API - API Client with JWT Management
3614
3407
  *
@@ -3658,10 +3451,7 @@ declare class API {
3658
3451
  private _refreshToken;
3659
3452
  private storage;
3660
3453
  private options?;
3661
- centrifugo_admin_api: CentrifugoAdminApi;
3662
- centrifugo_auth: CentrifugoAuth;
3663
- centrifugo_monitoring: CentrifugoMonitoring;
3664
- centrifugo_testing: CentrifugoTesting;
3454
+ web_push: WebPush;
3665
3455
  constructor(baseUrl: string, options?: APIOptions);
3666
3456
  private _loadTokensFromStorage;
3667
3457
  private _reinitClients;
@@ -3871,21 +3661,21 @@ declare function useCreateAccountsOtpVerifyCreate(): (data: OTPVerifyRequest, cl
3871
3661
  * @method POST
3872
3662
  * @path /cfg/webpush/send/
3873
3663
  */
3874
- declare function useCreateWebpushSendCreate(): (data: SendPushRequestRequest, client?: API$1) => Promise<SendPushResponse>;
3664
+ declare function useCreateWebpushSendCreate(): (data: SendPushRequestRequest, client?: API) => Promise<SendPushResponse>;
3875
3665
  /**
3876
3666
  * Subscribe to push notifications
3877
3667
  *
3878
3668
  * @method POST
3879
3669
  * @path /cfg/webpush/subscribe/
3880
3670
  */
3881
- declare function useCreateWebpushSubscribeCreate(): (data: SubscribeRequestRequest, client?: API$1) => Promise<SubscribeResponse>;
3671
+ declare function useCreateWebpushSubscribeCreate(): (data: SubscribeRequestRequest, client?: API) => Promise<SubscribeResponse>;
3882
3672
  /**
3883
3673
  * Get VAPID public key
3884
3674
  *
3885
3675
  * @method GET
3886
3676
  * @path /cfg/webpush/vapid/
3887
3677
  */
3888
- declare function useWebpushVapidRetrieve(client?: API$1): ReturnType<typeof useSWR<VapidPublicKeyResponse>>;
3678
+ declare function useWebpushVapidRetrieve(client?: API): ReturnType<typeof useSWR<VapidPublicKeyResponse>>;
3889
3679
 
3890
3680
  /**
3891
3681
  * SWR Hooks - React data fetching hooks
@@ -3925,42 +3715,42 @@ declare namespace index$1 {
3925
3715
  * @method POST
3926
3716
  * @path /cfg/centrifugo/server/auth/token/
3927
3717
  */
3928
- declare function useCreateCentrifugoServerAuthTokenCreate(): (client?: API) => Promise<any>;
3718
+ declare function useCreateCentrifugoServerAuthTokenCreate(): (client?: API$1) => Promise<any>;
3929
3719
  /**
3930
3720
  * List active channels
3931
3721
  *
3932
3722
  * @method POST
3933
3723
  * @path /cfg/centrifugo/server/channels/
3934
3724
  */
3935
- declare function useCreateCentrifugoServerChannelsCreate(): (data: CentrifugoChannelsRequestRequest, client?: API) => Promise<CentrifugoChannelsResponse>;
3725
+ declare function useCreateCentrifugoServerChannelsCreate(): (data: CentrifugoChannelsRequestRequest, client?: API$1) => Promise<CentrifugoChannelsResponse>;
3936
3726
  /**
3937
3727
  * Get channel history
3938
3728
  *
3939
3729
  * @method POST
3940
3730
  * @path /cfg/centrifugo/server/history/
3941
3731
  */
3942
- declare function useCreateCentrifugoServerHistoryCreate(): (data: CentrifugoHistoryRequestRequest, client?: API) => Promise<CentrifugoHistoryResponse>;
3732
+ declare function useCreateCentrifugoServerHistoryCreate(): (data: CentrifugoHistoryRequestRequest, client?: API$1) => Promise<CentrifugoHistoryResponse>;
3943
3733
  /**
3944
3734
  * Get Centrifugo server info
3945
3735
  *
3946
3736
  * @method POST
3947
3737
  * @path /cfg/centrifugo/server/info/
3948
3738
  */
3949
- declare function useCreateCentrifugoServerInfoCreate(): (client?: API) => Promise<CentrifugoInfoResponse>;
3739
+ declare function useCreateCentrifugoServerInfoCreate(): (client?: API$1) => Promise<CentrifugoInfoResponse>;
3950
3740
  /**
3951
3741
  * Get channel presence
3952
3742
  *
3953
3743
  * @method POST
3954
3744
  * @path /cfg/centrifugo/server/presence/
3955
3745
  */
3956
- declare function useCreateCentrifugoServerPresenceCreate(): (data: CentrifugoPresenceRequestRequest, client?: API) => Promise<CentrifugoPresenceResponse>;
3746
+ declare function useCreateCentrifugoServerPresenceCreate(): (data: CentrifugoPresenceRequestRequest, client?: API$1) => Promise<CentrifugoPresenceResponse>;
3957
3747
  /**
3958
3748
  * Get channel presence statistics
3959
3749
  *
3960
3750
  * @method POST
3961
3751
  * @path /cfg/centrifugo/server/presence-stats/
3962
3752
  */
3963
- declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: CentrifugoPresenceStatsRequestRequest, client?: API) => Promise<CentrifugoPresenceStatsResponse>;
3753
+ declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: CentrifugoPresenceStatsRequestRequest, client?: API$1) => Promise<CentrifugoPresenceStatsResponse>;
3964
3754
 
3965
3755
  /**
3966
3756
  * SWR Hooks for Centrifugo Auth
@@ -3985,7 +3775,7 @@ declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: Centrifu
3985
3775
  * @method GET
3986
3776
  * @path /cfg/centrifugo/auth/token/
3987
3777
  */
3988
- declare function useCentrifugoAuthTokenRetrieve(client?: API): ReturnType<typeof useSWR<ConnectionTokenResponse>>;
3778
+ declare function useCentrifugoAuthTokenRetrieve(client?: API$1): ReturnType<typeof useSWR<ConnectionTokenResponse>>;
3989
3779
 
3990
3780
  /**
3991
3781
  * SWR Hooks for Centrifugo Monitoring
@@ -4012,14 +3802,14 @@ declare function useCentrifugoAuthTokenRetrieve(client?: API): ReturnType<typeof
4012
3802
  */
4013
3803
  declare function useCentrifugoMonitorChannelsRetrieve(params?: {
4014
3804
  hours?: number;
4015
- }, client?: API): ReturnType<typeof useSWR<ChannelList>>;
3805
+ }, client?: API$1): ReturnType<typeof useSWR<ChannelList>>;
4016
3806
  /**
4017
3807
  * Get Centrifugo health status
4018
3808
  *
4019
3809
  * @method GET
4020
3810
  * @path /cfg/centrifugo/monitor/health/
4021
3811
  */
4022
- declare function useCentrifugoMonitorHealthRetrieve(client?: API): ReturnType<typeof useSWR<CentrifugoHealthCheck>>;
3812
+ declare function useCentrifugoMonitorHealthRetrieve(client?: API$1): ReturnType<typeof useSWR<CentrifugoHealthCheck>>;
4023
3813
  /**
4024
3814
  * Get overview statistics
4025
3815
  *
@@ -4028,7 +3818,7 @@ declare function useCentrifugoMonitorHealthRetrieve(client?: API): ReturnType<ty
4028
3818
  */
4029
3819
  declare function useCentrifugoMonitorOverviewRetrieve(params?: {
4030
3820
  hours?: number;
4031
- }, client?: API): ReturnType<typeof useSWR<CentrifugoOverviewStats>>;
3821
+ }, client?: API$1): ReturnType<typeof useSWR<CentrifugoOverviewStats>>;
4032
3822
  /**
4033
3823
  * Get recent publishes
4034
3824
  *
@@ -4040,7 +3830,7 @@ declare function useCentrifugoMonitorPublishesList(params?: {
4040
3830
  page?: number;
4041
3831
  page_size?: number;
4042
3832
  status?: string;
4043
- }, client?: API): ReturnType<typeof useSWR<PaginatedPublishList>>;
3833
+ }, client?: API$1): ReturnType<typeof useSWR<PaginatedPublishList>>;
4044
3834
  /**
4045
3835
  * Get publish timeline
4046
3836
  *
@@ -4050,7 +3840,7 @@ declare function useCentrifugoMonitorPublishesList(params?: {
4050
3840
  declare function useCentrifugoMonitorTimelineRetrieve(params?: {
4051
3841
  hours?: number;
4052
3842
  interval?: string;
4053
- }, client?: API): ReturnType<typeof useSWR<TimelineResponse>>;
3843
+ }, client?: API$1): ReturnType<typeof useSWR<TimelineResponse>>;
4054
3844
 
4055
3845
  /**
4056
3846
  * Publish test message
@@ -4058,21 +3848,21 @@ declare function useCentrifugoMonitorTimelineRetrieve(params?: {
4058
3848
  * @method POST
4059
3849
  * @path /cfg/centrifugo/testing/publish-test/
4060
3850
  */
4061
- declare function useCreateCentrifugoTestingPublishTestCreate(): (data: PublishTestRequestRequest, client?: API) => Promise<PublishTestResponse>;
3851
+ declare function useCreateCentrifugoTestingPublishTestCreate(): (data: PublishTestRequestRequest, client?: API$1) => Promise<PublishTestResponse>;
4062
3852
  /**
4063
3853
  * Publish with database logging
4064
3854
  *
4065
3855
  * @method POST
4066
3856
  * @path /cfg/centrifugo/testing/publish-with-logging/
4067
3857
  */
4068
- declare function useCreateCentrifugoTestingPublishWithLoggingCreate(): (data: PublishTestRequestRequest, client?: API) => Promise<PublishTestResponse>;
3858
+ declare function useCreateCentrifugoTestingPublishWithLoggingCreate(): (data: PublishTestRequestRequest, client?: API$1) => Promise<PublishTestResponse>;
4069
3859
  /**
4070
3860
  * Send manual ACK
4071
3861
  *
4072
3862
  * @method POST
4073
3863
  * @path /cfg/centrifugo/testing/send-ack/
4074
3864
  */
4075
- declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequestRequest, client?: API) => Promise<ManualAckResponse>;
3865
+ declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequestRequest, client?: API$1) => Promise<ManualAckResponse>;
4076
3866
 
4077
3867
  /**
4078
3868
  * SWR Hooks - React data fetching hooks
@@ -4129,7 +3919,7 @@ declare namespace index {
4129
3919
  */
4130
3920
 
4131
3921
  declare const apiAccounts: API$2;
4132
- declare const apiWebPush: API$1;
4133
- declare const apiCentrifugo: API;
3922
+ declare const apiWebPush: API;
3923
+ declare const apiCentrifugo: API$1;
4134
3924
 
4135
- export { API$2 as AccountsAPI, API as CentrifugoAPI, index$2 as CentrifugoFetchers, index as CentrifugoHooks, type CentrifugoToken, CentrifugoTokenSchema, index$3 as CentrifugoTypes, enums as Enums, type OAuthAuthorizeRequestRequest, OAuthAuthorizeRequestRequestSchema, type OAuthAuthorizeResponse, OAuthAuthorizeResponseSchema, type OAuthCallbackRequestRequest, OAuthCallbackRequestRequestSchema, type OAuthConnection, OAuthConnectionSchema, type OAuthDisconnectRequestRequest, OAuthDisconnectRequestRequestSchema, type OAuthError, OAuthErrorSchema, type OAuthProvidersResponse, OAuthProvidersResponseSchema, type OAuthTokenResponse, OAuthTokenResponseSchema, type OTPErrorResponse, OTPErrorResponseSchema, type OTPRequestRequest, OTPRequestRequestSchema, type OTPRequestResponse, OTPRequestResponseSchema, type OTPVerifyRequest, OTPVerifyRequestSchema, type OTPVerifyResponse, OTPVerifyResponseSchema, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, type User, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, API$1 as WebPushAPI, index$4 as WebPushFetchers, index$1 as WebPushHooks, index$5 as WebPushTypes, apiAccounts, apiCentrifugo, apiWebPush, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, updateAccountsProfileUpdateUpdate, useAccountsOauthConnectionsList, useAccountsOauthProvidersRetrieve, useAccountsProfileRetrieve, useCreateAccountsOauthDisconnectCreate, useCreateAccountsOauthGithubAuthorizeCreate, useCreateAccountsOauthGithubCallbackCreate, useCreateAccountsOtpRequestCreate, useCreateAccountsOtpVerifyCreate, useCreateAccountsProfileAvatarCreate, useCreateAccountsTokenRefreshCreate, usePartialUpdateAccountsProfilePartialPartialUpdate, usePartialUpdateAccountsProfilePartialUpdate, usePartialUpdateAccountsProfileUpdatePartialUpdate, useUpdateAccountsProfileUpdateUpdate };
3925
+ export { API$2 as AccountsAPI, API$1 as CentrifugoAPI, index$4 as CentrifugoFetchers, index as CentrifugoHooks, type CentrifugoToken, CentrifugoTokenSchema, index$5 as CentrifugoTypes, enums as Enums, type OAuthAuthorizeRequestRequest, OAuthAuthorizeRequestRequestSchema, type OAuthAuthorizeResponse, OAuthAuthorizeResponseSchema, type OAuthCallbackRequestRequest, OAuthCallbackRequestRequestSchema, type OAuthConnection, OAuthConnectionSchema, type OAuthDisconnectRequestRequest, OAuthDisconnectRequestRequestSchema, type OAuthError, OAuthErrorSchema, type OAuthProvidersResponse, OAuthProvidersResponseSchema, type OAuthTokenResponse, OAuthTokenResponseSchema, type OTPErrorResponse, OTPErrorResponseSchema, type OTPRequestRequest, OTPRequestRequestSchema, type OTPRequestResponse, OTPRequestResponseSchema, type OTPVerifyRequest, OTPVerifyRequestSchema, type OTPVerifyResponse, OTPVerifyResponseSchema, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, type User, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, API as WebPushAPI, index$2 as WebPushFetchers, index$1 as WebPushHooks, index$3 as WebPushTypes, apiAccounts, apiCentrifugo, apiWebPush, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, updateAccountsProfileUpdateUpdate, useAccountsOauthConnectionsList, useAccountsOauthProvidersRetrieve, useAccountsProfileRetrieve, useCreateAccountsOauthDisconnectCreate, useCreateAccountsOauthGithubAuthorizeCreate, useCreateAccountsOauthGithubCallbackCreate, useCreateAccountsOtpRequestCreate, useCreateAccountsOtpVerifyCreate, useCreateAccountsProfileAvatarCreate, useCreateAccountsTokenRefreshCreate, usePartialUpdateAccountsProfilePartialPartialUpdate, usePartialUpdateAccountsProfilePartialUpdate, usePartialUpdateAccountsProfileUpdatePartialUpdate, useUpdateAccountsProfileUpdateUpdate };