@djangocfg/api 2.1.231 → 2.1.232

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 (92) hide show
  1. package/README.md +19 -4
  2. package/dist/auth-server.cjs +45 -358
  3. package/dist/auth-server.cjs.map +1 -1
  4. package/dist/auth-server.mjs +43 -356
  5. package/dist/auth-server.mjs.map +1 -1
  6. package/dist/auth.cjs +223 -735
  7. package/dist/auth.cjs.map +1 -1
  8. package/dist/auth.mjs +218 -730
  9. package/dist/auth.mjs.map +1 -1
  10. package/dist/clients.cjs +313 -1568
  11. package/dist/clients.cjs.map +1 -1
  12. package/dist/clients.d.cts +211 -1932
  13. package/dist/clients.d.ts +211 -1932
  14. package/dist/clients.mjs +309 -1564
  15. package/dist/clients.mjs.map +1 -1
  16. package/dist/hooks.cjs +36 -32
  17. package/dist/hooks.cjs.map +1 -1
  18. package/dist/hooks.d.cts +76 -76
  19. package/dist/hooks.d.ts +76 -76
  20. package/dist/hooks.mjs +36 -32
  21. package/dist/hooks.mjs.map +1 -1
  22. package/dist/index.cjs +88 -593
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +88 -88
  25. package/dist/index.d.ts +88 -88
  26. package/dist/index.mjs +88 -593
  27. package/dist/index.mjs.map +1 -1
  28. package/package.json +2 -2
  29. package/src/_api/generated/cfg_accounts/accounts/models.ts +34 -34
  30. package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +41 -41
  31. package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +18 -18
  32. package/src/_api/generated/cfg_accounts/client.ts +39 -42
  33. package/src/_api/generated/cfg_centrifugo/CLAUDE.md +2 -27
  34. package/src/_api/generated/cfg_centrifugo/_utils/fetchers/index.ts +0 -3
  35. package/src/_api/generated/cfg_centrifugo/_utils/hooks/index.ts +0 -3
  36. package/src/_api/generated/cfg_centrifugo/_utils/schemas/index.ts +0 -34
  37. package/src/_api/generated/cfg_centrifugo/client.ts +39 -51
  38. package/src/_api/generated/cfg_centrifugo/index.ts +0 -21
  39. package/src/_api/generated/cfg_centrifugo/schema.json +4 -2039
  40. package/src/_api/generated/cfg_totp/client.ts +39 -42
  41. package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
  42. package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +12 -12
  43. package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +8 -8
  44. package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +0 -344
  45. package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +0 -326
  46. package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +0 -211
  47. package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +0 -141
  48. package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +0 -99
  49. package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +0 -82
  50. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -19
  51. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -19
  52. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -22
  53. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -20
  54. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -22
  55. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +0 -20
  56. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -22
  57. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -23
  58. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -22
  59. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -22
  60. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -22
  61. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -20
  62. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts +0 -20
  63. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -30
  64. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -26
  65. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -19
  66. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -22
  67. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -20
  68. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -19
  69. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -22
  70. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -20
  71. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +0 -20
  72. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +0 -23
  73. package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -20
  74. package/src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +0 -21
  75. package/src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +0 -25
  76. package/src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -20
  77. package/src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts +0 -21
  78. package/src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +0 -24
  79. package/src/_api/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts +0 -29
  80. package/src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -22
  81. package/src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +0 -24
  82. package/src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +0 -23
  83. package/src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +0 -22
  84. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts +0 -76
  85. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +0 -4
  86. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +0 -268
  87. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +0 -110
  88. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +0 -4
  89. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +0 -144
  90. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts +0 -48
  91. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +0 -4
  92. package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +0 -64
@@ -61,1704 +61,10 @@
61
61
  },
62
62
  "x-async-capable": false
63
63
  }
64
- },
65
- "/cfg/centrifugo/monitor/channels/": {
66
- "get": {
67
- "operationId": "cfg_centrifugo_monitor_channels_retrieve",
68
- "description": "Returns statistics grouped by channel.",
69
- "summary": "Get channel statistics",
70
- "parameters": [
71
- {
72
- "in": "query",
73
- "name": "hours",
74
- "schema": {
75
- "type": "integer"
76
- },
77
- "description": "Statistics period in hours (default: 24)"
78
- }
79
- ],
80
- "tags": [
81
- "Centrifugo Monitoring"
82
- ],
83
- "security": [
84
- {
85
- "jwtAuth": []
86
- },
87
- {
88
- "cookieAuth": []
89
- },
90
- {
91
- "basicAuth": []
92
- }
93
- ],
94
- "responses": {
95
- "200": {
96
- "content": {
97
- "application/json": {
98
- "schema": {
99
- "$ref": "#/components/schemas/ChannelList"
100
- }
101
- }
102
- },
103
- "description": ""
104
- },
105
- "400": {
106
- "content": {
107
- "application/json": {
108
- "schema": {
109
- "description": "Invalid parameters"
110
- }
111
- }
112
- },
113
- "description": ""
114
- }
115
- },
116
- "x-async-capable": false
117
- }
118
- },
119
- "/cfg/centrifugo/monitor/health/": {
120
- "get": {
121
- "operationId": "cfg_centrifugo_monitor_health_retrieve",
122
- "description": "Returns the current health status of the Centrifugo client.",
123
- "summary": "Get Centrifugo health status",
124
- "tags": [
125
- "Centrifugo Monitoring"
126
- ],
127
- "security": [
128
- {
129
- "jwtAuth": []
130
- },
131
- {
132
- "cookieAuth": []
133
- },
134
- {
135
- "basicAuth": []
136
- }
137
- ],
138
- "responses": {
139
- "200": {
140
- "content": {
141
- "application/json": {
142
- "schema": {
143
- "$ref": "#/components/schemas/CentrifugoHealthCheck"
144
- }
145
- }
146
- },
147
- "description": ""
148
- },
149
- "503": {
150
- "content": {
151
- "application/json": {
152
- "schema": {
153
- "description": "Service unavailable"
154
- }
155
- }
156
- },
157
- "description": ""
158
- }
159
- },
160
- "x-async-capable": false
161
- }
162
- },
163
- "/cfg/centrifugo/monitor/overview/": {
164
- "get": {
165
- "operationId": "cfg_centrifugo_monitor_overview_retrieve",
166
- "description": "Returns overview statistics for Centrifugo publishes.",
167
- "summary": "Get overview statistics",
168
- "parameters": [
169
- {
170
- "in": "query",
171
- "name": "hours",
172
- "schema": {
173
- "type": "integer"
174
- },
175
- "description": "Statistics period in hours (default: 24)"
176
- }
177
- ],
178
- "tags": [
179
- "Centrifugo Monitoring"
180
- ],
181
- "security": [
182
- {
183
- "jwtAuth": []
184
- },
185
- {
186
- "cookieAuth": []
187
- },
188
- {
189
- "basicAuth": []
190
- }
191
- ],
192
- "responses": {
193
- "200": {
194
- "content": {
195
- "application/json": {
196
- "schema": {
197
- "$ref": "#/components/schemas/CentrifugoOverviewStats"
198
- }
199
- }
200
- },
201
- "description": ""
202
- },
203
- "400": {
204
- "content": {
205
- "application/json": {
206
- "schema": {
207
- "description": "Invalid parameters"
208
- }
209
- }
210
- },
211
- "description": ""
212
- }
213
- },
214
- "x-async-capable": false
215
- }
216
- },
217
- "/cfg/centrifugo/monitor/publishes/": {
218
- "get": {
219
- "operationId": "cfg_centrifugo_monitor_publishes_list",
220
- "description": "Returns a paginated list of recent Centrifugo publishes with their details. Uses standard DRF pagination.",
221
- "summary": "Get recent publishes",
222
- "parameters": [
223
- {
224
- "in": "query",
225
- "name": "channel",
226
- "schema": {
227
- "type": "string"
228
- },
229
- "description": "Filter by channel name"
230
- },
231
- {
232
- "name": "ordering",
233
- "required": false,
234
- "in": "query",
235
- "description": "Which field to use when ordering the results.",
236
- "schema": {
237
- "type": "string"
238
- }
239
- },
240
- {
241
- "in": "query",
242
- "name": "page",
243
- "schema": {
244
- "type": "integer"
245
- },
246
- "description": "Page number"
247
- },
248
- {
249
- "in": "query",
250
- "name": "page_size",
251
- "schema": {
252
- "type": "integer"
253
- },
254
- "description": "Items per page (default: 10, max: 100)"
255
- },
256
- {
257
- "name": "search",
258
- "required": false,
259
- "in": "query",
260
- "description": "A search term.",
261
- "schema": {
262
- "type": "string"
263
- }
264
- },
265
- {
266
- "in": "query",
267
- "name": "status",
268
- "schema": {
269
- "type": "string"
270
- },
271
- "description": "Filter by status (success, failed, timeout, pending, partial)"
272
- }
273
- ],
274
- "tags": [
275
- "Centrifugo Monitoring"
276
- ],
277
- "security": [
278
- {
279
- "jwtAuth": []
280
- },
281
- {
282
- "cookieAuth": []
283
- },
284
- {
285
- "basicAuth": []
286
- }
287
- ],
288
- "responses": {
289
- "200": {
290
- "content": {
291
- "application/json": {
292
- "schema": {
293
- "$ref": "#/components/schemas/PaginatedPublishList"
294
- }
295
- }
296
- },
297
- "description": ""
298
- },
299
- "400": {
300
- "content": {
301
- "application/json": {
302
- "schema": {
303
- "description": "Invalid parameters"
304
- }
305
- }
306
- },
307
- "description": ""
308
- }
309
- },
310
- "x-async-capable": false
311
- }
312
- },
313
- "/cfg/centrifugo/monitor/timeline/": {
314
- "get": {
315
- "operationId": "cfg_centrifugo_monitor_timeline_retrieve",
316
- "description": "Returns hourly or daily breakdown of publish counts for charts.",
317
- "summary": "Get publish timeline",
318
- "parameters": [
319
- {
320
- "in": "query",
321
- "name": "hours",
322
- "schema": {
323
- "type": "integer"
324
- },
325
- "description": "Time period in hours (default: 24)"
326
- },
327
- {
328
- "in": "query",
329
- "name": "interval",
330
- "schema": {
331
- "type": "string"
332
- },
333
- "description": "Time interval: 'hour' or 'day' (default: hour)"
334
- }
335
- ],
336
- "tags": [
337
- "Centrifugo Monitoring"
338
- ],
339
- "security": [
340
- {
341
- "jwtAuth": []
342
- },
343
- {
344
- "cookieAuth": []
345
- },
346
- {
347
- "basicAuth": []
348
- }
349
- ],
350
- "responses": {
351
- "200": {
352
- "content": {
353
- "application/json": {
354
- "schema": {
355
- "$ref": "#/components/schemas/TimelineResponse"
356
- }
357
- }
358
- },
359
- "description": ""
360
- },
361
- "400": {
362
- "content": {
363
- "application/json": {
364
- "schema": {
365
- "description": "Invalid parameters"
366
- }
367
- }
368
- },
369
- "description": ""
370
- }
371
- },
372
- "x-async-capable": false
373
- }
374
- },
375
- "/cfg/centrifugo/server/auth/token/": {
376
- "post": {
377
- "operationId": "cfg_centrifugo_server_auth_token_create",
378
- "description": "Returns JWT token and config for WebSocket connection to Centrifugo.",
379
- "summary": "Get connection token for dashboard",
380
- "tags": [
381
- "Centrifugo Admin API"
382
- ],
383
- "security": [
384
- {
385
- "jwtAuth": []
386
- },
387
- {
388
- "cookieAuth": []
389
- },
390
- {
391
- "basicAuth": []
392
- }
393
- ],
394
- "responses": {
395
- "200": {
396
- "content": {
397
- "application/json": {
398
- "schema": {
399
- "type": "object",
400
- "properties": {
401
- "token": {
402
- "type": "string"
403
- },
404
- "config": {
405
- "type": "object",
406
- "properties": {
407
- "centrifugo_url": {
408
- "type": "string"
409
- },
410
- "expires_at": {
411
- "type": "string"
412
- }
413
- }
414
- }
415
- }
416
- }
417
- }
418
- },
419
- "description": ""
420
- },
421
- "400": {
422
- "content": {
423
- "application/json": {
424
- "schema": {
425
- "description": "Centrifugo not configured"
426
- }
427
- }
428
- },
429
- "description": ""
430
- },
431
- "500": {
432
- "content": {
433
- "application/json": {
434
- "schema": {
435
- "description": "Server error"
436
- }
437
- }
438
- },
439
- "description": ""
440
- }
441
- },
442
- "x-async-capable": false
443
- }
444
- },
445
- "/cfg/centrifugo/server/channels/": {
446
- "post": {
447
- "operationId": "cfg_centrifugo_server_channels_create",
448
- "description": "Returns list of active channels with optional pattern filter.",
449
- "summary": "List active channels",
450
- "tags": [
451
- "Centrifugo Admin API"
452
- ],
453
- "requestBody": {
454
- "content": {
455
- "application/json": {
456
- "schema": {
457
- "$ref": "#/components/schemas/CentrifugoChannelsRequestRequest"
458
- }
459
- },
460
- "application/x-www-form-urlencoded": {
461
- "schema": {
462
- "$ref": "#/components/schemas/CentrifugoChannelsRequestRequest"
463
- }
464
- },
465
- "multipart/form-data": {
466
- "schema": {
467
- "$ref": "#/components/schemas/CentrifugoChannelsRequestRequest"
468
- }
469
- }
470
- }
471
- },
472
- "security": [
473
- {
474
- "jwtAuth": []
475
- },
476
- {
477
- "cookieAuth": []
478
- },
479
- {
480
- "basicAuth": []
481
- }
482
- ],
483
- "responses": {
484
- "200": {
485
- "content": {
486
- "application/json": {
487
- "schema": {
488
- "$ref": "#/components/schemas/CentrifugoChannelsResponse"
489
- }
490
- }
491
- },
492
- "description": ""
493
- },
494
- "500": {
495
- "content": {
496
- "application/json": {
497
- "schema": {
498
- "description": "Server error"
499
- }
500
- }
501
- },
502
- "description": ""
503
- }
504
- },
505
- "x-async-capable": false
506
- }
507
- },
508
- "/cfg/centrifugo/server/history/": {
509
- "post": {
510
- "operationId": "cfg_centrifugo_server_history_create",
511
- "description": "Returns message history for a channel.",
512
- "summary": "Get channel history",
513
- "tags": [
514
- "Centrifugo Admin API"
515
- ],
516
- "requestBody": {
517
- "content": {
518
- "application/json": {
519
- "schema": {
520
- "$ref": "#/components/schemas/CentrifugoHistoryRequestRequest"
521
- }
522
- },
523
- "application/x-www-form-urlencoded": {
524
- "schema": {
525
- "$ref": "#/components/schemas/CentrifugoHistoryRequestRequest"
526
- }
527
- },
528
- "multipart/form-data": {
529
- "schema": {
530
- "$ref": "#/components/schemas/CentrifugoHistoryRequestRequest"
531
- }
532
- }
533
- },
534
- "required": true
535
- },
536
- "security": [
537
- {
538
- "jwtAuth": []
539
- },
540
- {
541
- "cookieAuth": []
542
- },
543
- {
544
- "basicAuth": []
545
- }
546
- ],
547
- "responses": {
548
- "200": {
549
- "content": {
550
- "application/json": {
551
- "schema": {
552
- "$ref": "#/components/schemas/CentrifugoHistoryResponse"
553
- }
554
- }
555
- },
556
- "description": ""
557
- },
558
- "500": {
559
- "content": {
560
- "application/json": {
561
- "schema": {
562
- "description": "Server error"
563
- }
564
- }
565
- },
566
- "description": ""
567
- }
568
- },
569
- "x-async-capable": false
570
- }
571
- },
572
- "/cfg/centrifugo/server/info/": {
573
- "post": {
574
- "operationId": "cfg_centrifugo_server_info_create",
575
- "description": "Returns server information including node count, version, and uptime.",
576
- "summary": "Get Centrifugo server info",
577
- "tags": [
578
- "Centrifugo Admin API"
579
- ],
580
- "security": [
581
- {
582
- "jwtAuth": []
583
- },
584
- {
585
- "cookieAuth": []
586
- },
587
- {
588
- "basicAuth": []
589
- }
590
- ],
591
- "responses": {
592
- "200": {
593
- "content": {
594
- "application/json": {
595
- "schema": {
596
- "$ref": "#/components/schemas/CentrifugoInfoResponse"
597
- }
598
- }
599
- },
600
- "description": ""
601
- },
602
- "500": {
603
- "content": {
604
- "application/json": {
605
- "schema": {
606
- "description": "Server error"
607
- }
608
- }
609
- },
610
- "description": ""
611
- }
612
- },
613
- "x-async-capable": false
614
- }
615
- },
616
- "/cfg/centrifugo/server/presence/": {
617
- "post": {
618
- "operationId": "cfg_centrifugo_server_presence_create",
619
- "description": "Returns list of clients currently subscribed to a channel.",
620
- "summary": "Get channel presence",
621
- "tags": [
622
- "Centrifugo Admin API"
623
- ],
624
- "requestBody": {
625
- "content": {
626
- "application/json": {
627
- "schema": {
628
- "$ref": "#/components/schemas/CentrifugoPresenceRequestRequest"
629
- }
630
- },
631
- "application/x-www-form-urlencoded": {
632
- "schema": {
633
- "$ref": "#/components/schemas/CentrifugoPresenceRequestRequest"
634
- }
635
- },
636
- "multipart/form-data": {
637
- "schema": {
638
- "$ref": "#/components/schemas/CentrifugoPresenceRequestRequest"
639
- }
640
- }
641
- },
642
- "required": true
643
- },
644
- "security": [
645
- {
646
- "jwtAuth": []
647
- },
648
- {
649
- "cookieAuth": []
650
- },
651
- {
652
- "basicAuth": []
653
- }
654
- ],
655
- "responses": {
656
- "200": {
657
- "content": {
658
- "application/json": {
659
- "schema": {
660
- "$ref": "#/components/schemas/CentrifugoPresenceResponse"
661
- }
662
- }
663
- },
664
- "description": ""
665
- },
666
- "500": {
667
- "content": {
668
- "application/json": {
669
- "schema": {
670
- "description": "Server error"
671
- }
672
- }
673
- },
674
- "description": ""
675
- }
676
- },
677
- "x-async-capable": false
678
- }
679
- },
680
- "/cfg/centrifugo/server/presence-stats/": {
681
- "post": {
682
- "operationId": "cfg_centrifugo_server_presence_stats_create",
683
- "description": "Returns quick statistics about channel presence (num_clients, num_users).",
684
- "summary": "Get channel presence statistics",
685
- "tags": [
686
- "Centrifugo Admin API"
687
- ],
688
- "requestBody": {
689
- "content": {
690
- "application/json": {
691
- "schema": {
692
- "$ref": "#/components/schemas/CentrifugoPresenceStatsRequestRequest"
693
- }
694
- },
695
- "application/x-www-form-urlencoded": {
696
- "schema": {
697
- "$ref": "#/components/schemas/CentrifugoPresenceStatsRequestRequest"
698
- }
699
- },
700
- "multipart/form-data": {
701
- "schema": {
702
- "$ref": "#/components/schemas/CentrifugoPresenceStatsRequestRequest"
703
- }
704
- }
705
- },
706
- "required": true
707
- },
708
- "security": [
709
- {
710
- "jwtAuth": []
711
- },
712
- {
713
- "cookieAuth": []
714
- },
715
- {
716
- "basicAuth": []
717
- }
718
- ],
719
- "responses": {
720
- "200": {
721
- "content": {
722
- "application/json": {
723
- "schema": {
724
- "$ref": "#/components/schemas/CentrifugoPresenceStatsResponse"
725
- }
726
- }
727
- },
728
- "description": ""
729
- },
730
- "500": {
731
- "content": {
732
- "application/json": {
733
- "schema": {
734
- "description": "Server error"
735
- }
736
- }
737
- },
738
- "description": ""
739
- }
740
- },
741
- "x-async-capable": false
742
- }
743
- },
744
- "/cfg/centrifugo/testing/publish-test/": {
745
- "post": {
746
- "operationId": "cfg_centrifugo_testing_publish_test_create",
747
- "description": "Publish test message to Centrifugo via wrapper with optional ACK tracking.",
748
- "summary": "Publish test message",
749
- "tags": [
750
- "Centrifugo Testing"
751
- ],
752
- "requestBody": {
753
- "content": {
754
- "application/json": {
755
- "schema": {
756
- "$ref": "#/components/schemas/PublishTestRequestRequest"
757
- }
758
- },
759
- "application/x-www-form-urlencoded": {
760
- "schema": {
761
- "$ref": "#/components/schemas/PublishTestRequestRequest"
762
- }
763
- },
764
- "multipart/form-data": {
765
- "schema": {
766
- "$ref": "#/components/schemas/PublishTestRequestRequest"
767
- }
768
- }
769
- },
770
- "required": true
771
- },
772
- "security": [
773
- {
774
- "jwtAuth": []
775
- },
776
- {
777
- "cookieAuth": []
778
- },
779
- {
780
- "basicAuth": []
781
- }
782
- ],
783
- "responses": {
784
- "200": {
785
- "content": {
786
- "application/json": {
787
- "schema": {
788
- "$ref": "#/components/schemas/PublishTestResponse"
789
- }
790
- }
791
- },
792
- "description": ""
793
- },
794
- "400": {
795
- "content": {
796
- "application/json": {
797
- "schema": {
798
- "description": "Invalid request"
799
- }
800
- }
801
- },
802
- "description": ""
803
- },
804
- "500": {
805
- "content": {
806
- "application/json": {
807
- "schema": {
808
- "description": "Server error"
809
- }
810
- }
811
- },
812
- "description": ""
813
- }
814
- },
815
- "x-async-capable": false
816
- }
817
- },
818
- "/cfg/centrifugo/testing/publish-with-logging/": {
819
- "post": {
820
- "operationId": "cfg_centrifugo_testing_publish_with_logging_create",
821
- "description": "Publish message using CentrifugoClient with database logging. This will create CentrifugoLog records.",
822
- "summary": "Publish with database logging",
823
- "tags": [
824
- "Centrifugo Testing"
825
- ],
826
- "requestBody": {
827
- "content": {
828
- "application/json": {
829
- "schema": {
830
- "$ref": "#/components/schemas/PublishTestRequestRequest"
831
- }
832
- },
833
- "application/x-www-form-urlencoded": {
834
- "schema": {
835
- "$ref": "#/components/schemas/PublishTestRequestRequest"
836
- }
837
- },
838
- "multipart/form-data": {
839
- "schema": {
840
- "$ref": "#/components/schemas/PublishTestRequestRequest"
841
- }
842
- }
843
- },
844
- "required": true
845
- },
846
- "security": [
847
- {
848
- "jwtAuth": []
849
- },
850
- {
851
- "cookieAuth": []
852
- },
853
- {
854
- "basicAuth": []
855
- }
856
- ],
857
- "responses": {
858
- "200": {
859
- "content": {
860
- "application/json": {
861
- "schema": {
862
- "$ref": "#/components/schemas/PublishTestResponse"
863
- }
864
- }
865
- },
866
- "description": ""
867
- },
868
- "400": {
869
- "content": {
870
- "application/json": {
871
- "schema": {
872
- "description": "Invalid request"
873
- }
874
- }
875
- },
876
- "description": ""
877
- },
878
- "500": {
879
- "content": {
880
- "application/json": {
881
- "schema": {
882
- "description": "Server error"
883
- }
884
- }
885
- },
886
- "description": ""
887
- }
888
- },
889
- "x-async-capable": false
890
- }
891
- },
892
- "/cfg/centrifugo/testing/send-ack/": {
893
- "post": {
894
- "operationId": "cfg_centrifugo_testing_send_ack_create",
895
- "description": "Manually send ACK for a message to the wrapper. Pass message_id in request body.",
896
- "summary": "Send manual ACK",
897
- "tags": [
898
- "Centrifugo Testing"
899
- ],
900
- "requestBody": {
901
- "content": {
902
- "application/json": {
903
- "schema": {
904
- "$ref": "#/components/schemas/ManualAckRequestRequest"
905
- }
906
- },
907
- "application/x-www-form-urlencoded": {
908
- "schema": {
909
- "$ref": "#/components/schemas/ManualAckRequestRequest"
910
- }
911
- },
912
- "multipart/form-data": {
913
- "schema": {
914
- "$ref": "#/components/schemas/ManualAckRequestRequest"
915
- }
916
- }
917
- },
918
- "required": true
919
- },
920
- "security": [
921
- {
922
- "jwtAuth": []
923
- },
924
- {
925
- "cookieAuth": []
926
- },
927
- {
928
- "basicAuth": []
929
- }
930
- ],
931
- "responses": {
932
- "200": {
933
- "content": {
934
- "application/json": {
935
- "schema": {
936
- "$ref": "#/components/schemas/ManualAckResponse"
937
- }
938
- }
939
- },
940
- "description": ""
941
- },
942
- "400": {
943
- "content": {
944
- "application/json": {
945
- "schema": {
946
- "description": "Invalid request"
947
- }
948
- }
949
- },
950
- "description": ""
951
- },
952
- "500": {
953
- "content": {
954
- "application/json": {
955
- "schema": {
956
- "description": "Server error"
957
- }
958
- }
959
- },
960
- "description": ""
961
- }
962
- },
963
- "x-async-capable": false
964
- }
965
- }
966
- },
967
- "components": {
968
- "schemas": {
969
- "CentrifugoChannelInfo": {
970
- "description": "Information about a single channel.",
971
- "properties": {
972
- "num_clients": {
973
- "description": "Number of connected clients in channel",
974
- "title": "Num Clients",
975
- "type": "integer"
976
- }
977
- },
978
- "required": [
979
- "num_clients"
980
- ],
981
- "title": "CentrifugoChannelInfo",
982
- "type": "object"
983
- },
984
- "CentrifugoChannelsRequestRequest": {
985
- "description": "Request to list active channels.",
986
- "properties": {
987
- "pattern": {
988
- "anyOf": [
989
- {
990
- "type": "string"
991
- },
992
- {
993
- "type": "null"
994
- }
995
- ],
996
- "default": null,
997
- "description": "Pattern to filter channels (e.g., 'user:*')",
998
- "title": "Pattern"
999
- }
1000
- },
1001
- "title": "CentrifugoChannelsRequest",
1002
- "type": "object"
1003
- },
1004
- "CentrifugoChannelsResponse": {
1005
- "description": "List of active channels response.",
1006
- "properties": {
1007
- "error": {
1008
- "anyOf": [
1009
- {
1010
- "$ref": "#/components/schemas/CentrifugoError"
1011
- },
1012
- {
1013
- "type": "null"
1014
- }
1015
- ],
1016
- "default": null,
1017
- "description": "Error if any"
1018
- },
1019
- "result": {
1020
- "anyOf": [
1021
- {
1022
- "$ref": "#/components/schemas/CentrifugoChannelsResult"
1023
- },
1024
- {
1025
- "type": "null"
1026
- }
1027
- ],
1028
- "default": null,
1029
- "description": "Result data"
1030
- }
1031
- },
1032
- "title": "CentrifugoChannelsResponse",
1033
- "type": "object"
1034
- },
1035
- "CentrifugoChannelsResult": {
1036
- "description": "Channels result wrapper.",
1037
- "properties": {
1038
- "channels": {
1039
- "additionalProperties": {
1040
- "$ref": "#/components/schemas/CentrifugoChannelInfo"
1041
- },
1042
- "description": "Map of channel names to channel info",
1043
- "title": "Channels",
1044
- "type": "object"
1045
- }
1046
- },
1047
- "required": [
1048
- "channels"
1049
- ],
1050
- "title": "CentrifugoChannelsResult",
1051
- "type": "object"
1052
- },
1053
- "CentrifugoClientInfo": {
1054
- "description": "Information about connected client.",
1055
- "properties": {
1056
- "user": {
1057
- "description": "User ID",
1058
- "title": "User",
1059
- "type": "string"
1060
- },
1061
- "client": {
1062
- "description": "Client UUID",
1063
- "title": "Client",
1064
- "type": "string"
1065
- },
1066
- "conn_info": {
1067
- "anyOf": [
1068
- {
1069
- "additionalProperties": true,
1070
- "type": "object"
1071
- },
1072
- {
1073
- "type": "null"
1074
- }
1075
- ],
1076
- "default": null,
1077
- "description": "Connection metadata",
1078
- "title": "Conn Info"
1079
- },
1080
- "chan_info": {
1081
- "anyOf": [
1082
- {
1083
- "additionalProperties": true,
1084
- "type": "object"
1085
- },
1086
- {
1087
- "type": "null"
1088
- }
1089
- ],
1090
- "default": null,
1091
- "description": "Channel-specific metadata",
1092
- "title": "Chan Info"
1093
- }
1094
- },
1095
- "required": [
1096
- "user",
1097
- "client"
1098
- ],
1099
- "title": "CentrifugoClientInfo",
1100
- "type": "object"
1101
- },
1102
- "CentrifugoError": {
1103
- "description": "Centrifugo API error structure.",
1104
- "properties": {
1105
- "code": {
1106
- "default": 0,
1107
- "description": "Error code (0 = no error)",
1108
- "title": "Code",
1109
- "type": "integer"
1110
- },
1111
- "message": {
1112
- "default": "",
1113
- "description": "Error message",
1114
- "title": "Message",
1115
- "type": "string"
1116
- }
1117
- },
1118
- "title": "CentrifugoError",
1119
- "type": "object"
1120
- },
1121
- "CentrifugoHealthCheck": {
1122
- "type": "object",
1123
- "description": "Health check response.",
1124
- "properties": {
1125
- "status": {
1126
- "type": "string",
1127
- "description": "Health status: healthy or unhealthy"
1128
- },
1129
- "wrapper_url": {
1130
- "type": "string",
1131
- "description": "Configured wrapper URL"
1132
- },
1133
- "has_api_key": {
1134
- "type": "boolean",
1135
- "description": "Whether API key is configured"
1136
- },
1137
- "timestamp": {
1138
- "type": "string",
1139
- "description": "Current timestamp"
1140
- }
1141
- },
1142
- "required": [
1143
- "has_api_key",
1144
- "status",
1145
- "timestamp",
1146
- "wrapper_url"
1147
- ]
1148
- },
1149
- "CentrifugoHistoryRequestRequest": {
1150
- "description": "Request to get channel history.",
1151
- "properties": {
1152
- "channel": {
1153
- "description": "Channel name",
1154
- "title": "Channel",
1155
- "type": "string"
1156
- },
1157
- "limit": {
1158
- "anyOf": [
1159
- {
1160
- "maximum": 1000,
1161
- "minimum": 1,
1162
- "type": "integer"
1163
- },
1164
- {
1165
- "type": "null"
1166
- }
1167
- ],
1168
- "default": null,
1169
- "description": "Maximum number of messages to return",
1170
- "title": "Limit"
1171
- },
1172
- "since": {
1173
- "anyOf": [
1174
- {
1175
- "$ref": "#/components/schemas/CentrifugoStreamPosition"
1176
- },
1177
- {
1178
- "type": "null"
1179
- }
1180
- ],
1181
- "default": null,
1182
- "description": "Stream position to get messages since"
1183
- },
1184
- "reverse": {
1185
- "anyOf": [
1186
- {
1187
- "type": "boolean"
1188
- },
1189
- {
1190
- "type": "null"
1191
- }
1192
- ],
1193
- "default": false,
1194
- "description": "Reverse message order (newest first)",
1195
- "title": "Reverse"
1196
- }
1197
- },
1198
- "required": [
1199
- "channel"
1200
- ],
1201
- "title": "CentrifugoHistoryRequest",
1202
- "type": "object"
1203
- },
1204
- "CentrifugoHistoryResponse": {
1205
- "description": "Channel history response.",
1206
- "properties": {
1207
- "error": {
1208
- "anyOf": [
1209
- {
1210
- "$ref": "#/components/schemas/CentrifugoError"
1211
- },
1212
- {
1213
- "type": "null"
1214
- }
1215
- ],
1216
- "default": null,
1217
- "description": "Error if any"
1218
- },
1219
- "result": {
1220
- "anyOf": [
1221
- {
1222
- "$ref": "#/components/schemas/CentrifugoHistoryResult"
1223
- },
1224
- {
1225
- "type": "null"
1226
- }
1227
- ],
1228
- "default": null,
1229
- "description": "Result data"
1230
- }
1231
- },
1232
- "title": "CentrifugoHistoryResponse",
1233
- "type": "object"
1234
- },
1235
- "CentrifugoHistoryResult": {
1236
- "description": "History result wrapper.",
1237
- "properties": {
1238
- "publications": {
1239
- "description": "List of publications",
1240
- "items": {
1241
- "$ref": "#/components/schemas/CentrifugoPublication"
1242
- },
1243
- "title": "Publications",
1244
- "type": "array"
1245
- },
1246
- "epoch": {
1247
- "description": "Current stream epoch",
1248
- "title": "Epoch",
1249
- "type": "string"
1250
- },
1251
- "offset": {
1252
- "description": "Latest stream offset",
1253
- "title": "Offset",
1254
- "type": "integer"
1255
- }
1256
- },
1257
- "required": [
1258
- "publications",
1259
- "epoch",
1260
- "offset"
1261
- ],
1262
- "title": "CentrifugoHistoryResult",
1263
- "type": "object"
1264
- },
1265
- "CentrifugoInfoResponse": {
1266
- "description": "Server info response.",
1267
- "properties": {
1268
- "error": {
1269
- "anyOf": [
1270
- {
1271
- "$ref": "#/components/schemas/CentrifugoError"
1272
- },
1273
- {
1274
- "type": "null"
1275
- }
1276
- ],
1277
- "default": null,
1278
- "description": "Error if any"
1279
- },
1280
- "result": {
1281
- "anyOf": [
1282
- {
1283
- "$ref": "#/components/schemas/CentrifugoInfoResult"
1284
- },
1285
- {
1286
- "type": "null"
1287
- }
1288
- ],
1289
- "default": null,
1290
- "description": "Result data"
1291
- }
1292
- },
1293
- "title": "CentrifugoInfoResponse",
1294
- "type": "object"
1295
- },
1296
- "CentrifugoInfoResult": {
1297
- "description": "Info result wrapper.",
1298
- "properties": {
1299
- "nodes": {
1300
- "description": "List of Centrifugo nodes",
1301
- "items": {
1302
- "$ref": "#/components/schemas/CentrifugoNodeInfo"
1303
- },
1304
- "title": "Nodes",
1305
- "type": "array"
1306
- }
1307
- },
1308
- "required": [
1309
- "nodes"
1310
- ],
1311
- "title": "CentrifugoInfoResult",
1312
- "type": "object"
1313
- },
1314
- "CentrifugoMetrics": {
1315
- "description": "Server metrics.",
1316
- "properties": {
1317
- "interval": {
1318
- "description": "Metrics collection interval",
1319
- "title": "Interval",
1320
- "type": "number"
1321
- },
1322
- "items": {
1323
- "additionalProperties": {
1324
- "type": "number"
1325
- },
1326
- "description": "Metric name to value mapping",
1327
- "title": "Items",
1328
- "type": "object"
1329
- }
1330
- },
1331
- "required": [
1332
- "interval",
1333
- "items"
1334
- ],
1335
- "title": "CentrifugoMetrics",
1336
- "type": "object"
1337
- },
1338
- "CentrifugoNodeInfo": {
1339
- "description": "Information about a single Centrifugo node.",
1340
- "properties": {
1341
- "uid": {
1342
- "description": "Unique node identifier",
1343
- "title": "Uid",
1344
- "type": "string"
1345
- },
1346
- "name": {
1347
- "description": "Node name",
1348
- "title": "Name",
1349
- "type": "string"
1350
- },
1351
- "version": {
1352
- "description": "Centrifugo version",
1353
- "title": "Version",
1354
- "type": "string"
1355
- },
1356
- "num_clients": {
1357
- "description": "Number of connected clients",
1358
- "title": "Num Clients",
1359
- "type": "integer"
1360
- },
1361
- "num_users": {
1362
- "description": "Number of unique users",
1363
- "title": "Num Users",
1364
- "type": "integer"
1365
- },
1366
- "num_channels": {
1367
- "description": "Number of active channels",
1368
- "title": "Num Channels",
1369
- "type": "integer"
1370
- },
1371
- "uptime": {
1372
- "description": "Node uptime in seconds",
1373
- "title": "Uptime",
1374
- "type": "integer"
1375
- },
1376
- "num_subs": {
1377
- "description": "Total number of subscriptions",
1378
- "title": "Num Subs",
1379
- "type": "integer"
1380
- },
1381
- "metrics": {
1382
- "anyOf": [
1383
- {
1384
- "$ref": "#/components/schemas/CentrifugoMetrics"
1385
- },
1386
- {
1387
- "type": "null"
1388
- }
1389
- ],
1390
- "default": null,
1391
- "description": "Server metrics"
1392
- },
1393
- "process": {
1394
- "anyOf": [
1395
- {
1396
- "$ref": "#/components/schemas/CentrifugoProcess"
1397
- },
1398
- {
1399
- "type": "null"
1400
- }
1401
- ],
1402
- "default": null,
1403
- "description": "Process information"
1404
- }
1405
- },
1406
- "required": [
1407
- "uid",
1408
- "name",
1409
- "version",
1410
- "num_clients",
1411
- "num_users",
1412
- "num_channels",
1413
- "uptime",
1414
- "num_subs"
1415
- ],
1416
- "title": "CentrifugoNodeInfo",
1417
- "type": "object"
1418
- },
1419
- "CentrifugoOverviewStats": {
1420
- "type": "object",
1421
- "description": "Overview statistics for Centrifugo publishes.",
1422
- "properties": {
1423
- "total": {
1424
- "type": "integer",
1425
- "description": "Total publishes in period"
1426
- },
1427
- "successful": {
1428
- "type": "integer",
1429
- "description": "Successful publishes"
1430
- },
1431
- "failed": {
1432
- "type": "integer",
1433
- "description": "Failed publishes"
1434
- },
1435
- "timeout": {
1436
- "type": "integer",
1437
- "description": "Timeout publishes"
1438
- },
1439
- "success_rate": {
1440
- "type": "number",
1441
- "format": "double",
1442
- "description": "Success rate percentage"
1443
- },
1444
- "avg_duration_ms": {
1445
- "type": "number",
1446
- "format": "double",
1447
- "description": "Average duration in milliseconds"
1448
- },
1449
- "avg_acks_received": {
1450
- "type": "number",
1451
- "format": "double",
1452
- "description": "Average ACKs received"
1453
- },
1454
- "period_hours": {
1455
- "type": "integer",
1456
- "description": "Statistics period in hours"
1457
- }
1458
- },
1459
- "required": [
1460
- "avg_acks_received",
1461
- "avg_duration_ms",
1462
- "failed",
1463
- "period_hours",
1464
- "success_rate",
1465
- "successful",
1466
- "timeout",
1467
- "total"
1468
- ]
1469
- },
1470
- "CentrifugoPresenceRequestRequest": {
1471
- "description": "Request to get channel presence.",
1472
- "properties": {
1473
- "channel": {
1474
- "description": "Channel name",
1475
- "title": "Channel",
1476
- "type": "string"
1477
- }
1478
- },
1479
- "required": [
1480
- "channel"
1481
- ],
1482
- "title": "CentrifugoPresenceRequest",
1483
- "type": "object"
1484
- },
1485
- "CentrifugoPresenceResponse": {
1486
- "description": "Channel presence response.",
1487
- "properties": {
1488
- "error": {
1489
- "anyOf": [
1490
- {
1491
- "$ref": "#/components/schemas/CentrifugoError"
1492
- },
1493
- {
1494
- "type": "null"
1495
- }
1496
- ],
1497
- "default": null,
1498
- "description": "Error if any"
1499
- },
1500
- "result": {
1501
- "anyOf": [
1502
- {
1503
- "$ref": "#/components/schemas/CentrifugoPresenceResult"
1504
- },
1505
- {
1506
- "type": "null"
1507
- }
1508
- ],
1509
- "default": null,
1510
- "description": "Result data"
1511
- }
1512
- },
1513
- "title": "CentrifugoPresenceResponse",
1514
- "type": "object"
1515
- },
1516
- "CentrifugoPresenceResult": {
1517
- "description": "Presence result wrapper.",
1518
- "properties": {
1519
- "presence": {
1520
- "additionalProperties": {
1521
- "$ref": "#/components/schemas/CentrifugoClientInfo"
1522
- },
1523
- "description": "Map of client IDs to client info",
1524
- "title": "Presence",
1525
- "type": "object"
1526
- }
1527
- },
1528
- "required": [
1529
- "presence"
1530
- ],
1531
- "title": "CentrifugoPresenceResult",
1532
- "type": "object"
1533
- },
1534
- "CentrifugoPresenceStatsRequestRequest": {
1535
- "description": "Request to get channel presence statistics.",
1536
- "properties": {
1537
- "channel": {
1538
- "description": "Channel name",
1539
- "title": "Channel",
1540
- "type": "string"
1541
- }
1542
- },
1543
- "required": [
1544
- "channel"
1545
- ],
1546
- "title": "CentrifugoPresenceStatsRequest",
1547
- "type": "object"
1548
- },
1549
- "CentrifugoPresenceStatsResponse": {
1550
- "description": "Channel presence stats response.",
1551
- "properties": {
1552
- "error": {
1553
- "anyOf": [
1554
- {
1555
- "$ref": "#/components/schemas/CentrifugoError"
1556
- },
1557
- {
1558
- "type": "null"
1559
- }
1560
- ],
1561
- "default": null,
1562
- "description": "Error if any"
1563
- },
1564
- "result": {
1565
- "anyOf": [
1566
- {
1567
- "$ref": "#/components/schemas/CentrifugoPresenceStatsResult"
1568
- },
1569
- {
1570
- "type": "null"
1571
- }
1572
- ],
1573
- "default": null,
1574
- "description": "Result data"
1575
- }
1576
- },
1577
- "title": "CentrifugoPresenceStatsResponse",
1578
- "type": "object"
1579
- },
1580
- "CentrifugoPresenceStatsResult": {
1581
- "description": "Presence stats result.",
1582
- "properties": {
1583
- "num_clients": {
1584
- "description": "Number of connected clients",
1585
- "title": "Num Clients",
1586
- "type": "integer"
1587
- },
1588
- "num_users": {
1589
- "description": "Number of unique users",
1590
- "title": "Num Users",
1591
- "type": "integer"
1592
- }
1593
- },
1594
- "required": [
1595
- "num_clients",
1596
- "num_users"
1597
- ],
1598
- "title": "CentrifugoPresenceStatsResult",
1599
- "type": "object"
1600
- },
1601
- "CentrifugoProcess": {
1602
- "description": "Process information.",
1603
- "properties": {
1604
- "cpu": {
1605
- "description": "CPU usage percentage",
1606
- "title": "Cpu",
1607
- "type": "number"
1608
- },
1609
- "rss": {
1610
- "description": "Resident set size in bytes",
1611
- "title": "Rss",
1612
- "type": "integer"
1613
- }
1614
- },
1615
- "required": [
1616
- "cpu",
1617
- "rss"
1618
- ],
1619
- "title": "CentrifugoProcess",
1620
- "type": "object"
1621
- },
1622
- "CentrifugoPublication": {
1623
- "description": "Single publication (message) in channel history.",
1624
- "properties": {
1625
- "data": {
1626
- "additionalProperties": true,
1627
- "description": "Message payload",
1628
- "title": "Data",
1629
- "type": "object"
1630
- },
1631
- "info": {
1632
- "anyOf": [
1633
- {
1634
- "$ref": "#/components/schemas/CentrifugoClientInfo"
1635
- },
1636
- {
1637
- "type": "null"
1638
- }
1639
- ],
1640
- "default": null,
1641
- "description": "Publisher client info"
1642
- },
1643
- "offset": {
1644
- "description": "Message offset in channel stream",
1645
- "title": "Offset",
1646
- "type": "integer"
1647
- },
1648
- "tags": {
1649
- "anyOf": [
1650
- {
1651
- "additionalProperties": {
1652
- "type": "string"
1653
- },
1654
- "type": "object"
1655
- },
1656
- {
1657
- "type": "null"
1658
- }
1659
- ],
1660
- "default": null,
1661
- "description": "Optional message tags",
1662
- "title": "Tags"
1663
- }
1664
- },
1665
- "required": [
1666
- "data",
1667
- "offset"
1668
- ],
1669
- "title": "CentrifugoPublication",
1670
- "type": "object"
1671
- },
1672
- "CentrifugoStreamPosition": {
1673
- "description": "Stream position for pagination.",
1674
- "properties": {
1675
- "offset": {
1676
- "description": "Stream offset",
1677
- "title": "Offset",
1678
- "type": "integer"
1679
- },
1680
- "epoch": {
1681
- "description": "Stream epoch",
1682
- "title": "Epoch",
1683
- "type": "string"
1684
- }
1685
- },
1686
- "required": [
1687
- "offset",
1688
- "epoch"
1689
- ],
1690
- "title": "CentrifugoStreamPosition",
1691
- "type": "object"
1692
- },
1693
- "ChannelList": {
1694
- "type": "object",
1695
- "description": "List of channel statistics.",
1696
- "properties": {
1697
- "channels": {
1698
- "type": "array",
1699
- "items": {
1700
- "$ref": "#/components/schemas/ChannelStats"
1701
- },
1702
- "description": "Channel statistics"
1703
- },
1704
- "total_channels": {
1705
- "type": "integer",
1706
- "description": "Total number of channels"
1707
- }
1708
- },
1709
- "required": [
1710
- "channels",
1711
- "total_channels"
1712
- ]
1713
- },
1714
- "ChannelStats": {
1715
- "type": "object",
1716
- "description": "Statistics per channel.",
1717
- "properties": {
1718
- "channel": {
1719
- "type": "string",
1720
- "description": "Channel name"
1721
- },
1722
- "total": {
1723
- "type": "integer",
1724
- "description": "Total publishes to this channel"
1725
- },
1726
- "successful": {
1727
- "type": "integer",
1728
- "description": "Successful publishes"
1729
- },
1730
- "failed": {
1731
- "type": "integer",
1732
- "description": "Failed publishes"
1733
- },
1734
- "avg_duration_ms": {
1735
- "type": "number",
1736
- "format": "double",
1737
- "description": "Average duration"
1738
- },
1739
- "avg_acks": {
1740
- "type": "number",
1741
- "format": "double",
1742
- "description": "Average ACKs received"
1743
- },
1744
- "last_activity_at": {
1745
- "type": [
1746
- "string",
1747
- "null"
1748
- ],
1749
- "description": "Last activity timestamp (ISO format)"
1750
- }
1751
- },
1752
- "required": [
1753
- "avg_acks",
1754
- "avg_duration_ms",
1755
- "channel",
1756
- "failed",
1757
- "last_activity_at",
1758
- "successful",
1759
- "total"
1760
- ]
1761
- },
64
+ }
65
+ },
66
+ "components": {
67
+ "schemas": {
1762
68
  "ConnectionTokenResponse": {
1763
69
  "description": "Response model for Centrifugo connection token.",
1764
70
  "properties": {
@@ -1794,350 +100,9 @@
1794
100
  ],
1795
101
  "title": "ConnectionTokenResponse",
1796
102
  "type": "object"
1797
- },
1798
- "ManualAckRequestRequest": {
1799
- "description": "Request model for manual ACK sending.",
1800
- "properties": {
1801
- "message_id": {
1802
- "description": "Message ID to acknowledge",
1803
- "title": "Message Id",
1804
- "type": "string"
1805
- },
1806
- "client_id": {
1807
- "description": "Client ID sending the ACK",
1808
- "title": "Client Id",
1809
- "type": "string"
1810
- }
1811
- },
1812
- "required": [
1813
- "message_id",
1814
- "client_id"
1815
- ],
1816
- "title": "ManualAckRequest",
1817
- "type": "object"
1818
- },
1819
- "ManualAckResponse": {
1820
- "description": "Response model for manual ACK.",
1821
- "properties": {
1822
- "success": {
1823
- "description": "Whether ACK was sent successfully",
1824
- "title": "Success",
1825
- "type": "boolean"
1826
- },
1827
- "message_id": {
1828
- "description": "Message ID that was acknowledged",
1829
- "title": "Message Id",
1830
- "type": "string"
1831
- },
1832
- "error": {
1833
- "anyOf": [
1834
- {
1835
- "type": "string"
1836
- },
1837
- {
1838
- "type": "null"
1839
- }
1840
- ],
1841
- "default": null,
1842
- "description": "Error message if failed",
1843
- "title": "Error"
1844
- }
1845
- },
1846
- "required": [
1847
- "success",
1848
- "message_id"
1849
- ],
1850
- "title": "ManualAckResponse",
1851
- "type": "object"
1852
- },
1853
- "PaginatedPublishList": {
1854
- "type": "object",
1855
- "required": [
1856
- "count",
1857
- "page",
1858
- "pages",
1859
- "page_size",
1860
- "has_next",
1861
- "has_previous",
1862
- "results"
1863
- ],
1864
- "properties": {
1865
- "count": {
1866
- "type": "integer",
1867
- "description": "Total number of items across all pages",
1868
- "example": 150
1869
- },
1870
- "page": {
1871
- "type": "integer",
1872
- "description": "Current page number (1-based)",
1873
- "example": 2
1874
- },
1875
- "pages": {
1876
- "type": "integer",
1877
- "description": "Total number of pages",
1878
- "example": 15
1879
- },
1880
- "page_size": {
1881
- "type": "integer",
1882
- "description": "Number of items per page",
1883
- "example": 10
1884
- },
1885
- "has_next": {
1886
- "type": "boolean",
1887
- "description": "Whether there is a next page",
1888
- "example": true
1889
- },
1890
- "has_previous": {
1891
- "type": "boolean",
1892
- "description": "Whether there is a previous page",
1893
- "example": true
1894
- },
1895
- "next_page": {
1896
- "type": "integer",
1897
- "nullable": true,
1898
- "description": "Next page number (null if no next page)",
1899
- "example": 3
1900
- },
1901
- "previous_page": {
1902
- "type": "integer",
1903
- "nullable": true,
1904
- "description": "Previous page number (null if no previous page)",
1905
- "example": 1
1906
- },
1907
- "results": {
1908
- "type": "array",
1909
- "items": {
1910
- "$ref": "#/components/schemas/Publish"
1911
- },
1912
- "description": "Array of items for current page"
1913
- }
1914
- }
1915
- },
1916
- "Publish": {
1917
- "type": "object",
1918
- "description": "Single publish item for DRF pagination.",
1919
- "properties": {
1920
- "message_id": {
1921
- "type": "string"
1922
- },
1923
- "channel": {
1924
- "type": "string"
1925
- },
1926
- "status": {
1927
- "type": "string"
1928
- },
1929
- "wait_for_ack": {
1930
- "type": "boolean"
1931
- },
1932
- "acks_received": {
1933
- "type": "integer"
1934
- },
1935
- "acks_expected": {
1936
- "type": [
1937
- "integer",
1938
- "null"
1939
- ]
1940
- },
1941
- "duration_ms": {
1942
- "type": [
1943
- "number",
1944
- "null"
1945
- ],
1946
- "format": "double"
1947
- },
1948
- "created_at": {
1949
- "type": "string",
1950
- "format": "date-time"
1951
- },
1952
- "completed_at": {
1953
- "type": [
1954
- "string",
1955
- "null"
1956
- ],
1957
- "format": "date-time"
1958
- },
1959
- "error_code": {
1960
- "type": [
1961
- "string",
1962
- "null"
1963
- ]
1964
- },
1965
- "error_message": {
1966
- "type": [
1967
- "string",
1968
- "null"
1969
- ]
1970
- }
1971
- },
1972
- "required": [
1973
- "acks_expected",
1974
- "acks_received",
1975
- "channel",
1976
- "completed_at",
1977
- "created_at",
1978
- "duration_ms",
1979
- "error_code",
1980
- "error_message",
1981
- "message_id",
1982
- "status",
1983
- "wait_for_ack"
1984
- ]
1985
- },
1986
- "PublishTestRequestRequest": {
1987
- "description": "Request model for test message publishing.",
1988
- "properties": {
1989
- "channel": {
1990
- "description": "Target channel name",
1991
- "title": "Channel",
1992
- "type": "string"
1993
- },
1994
- "data": {
1995
- "additionalProperties": true,
1996
- "description": "Message data (any JSON object)",
1997
- "title": "Data",
1998
- "type": "object"
1999
- },
2000
- "wait_for_ack": {
2001
- "default": false,
2002
- "description": "Wait for client acknowledgment",
2003
- "title": "Wait For Ack",
2004
- "type": "boolean"
2005
- },
2006
- "ack_timeout": {
2007
- "default": 10,
2008
- "description": "ACK timeout in seconds",
2009
- "maximum": 60,
2010
- "minimum": 1,
2011
- "title": "Ack Timeout",
2012
- "type": "integer"
2013
- }
2014
- },
2015
- "required": [
2016
- "channel",
2017
- "data"
2018
- ],
2019
- "title": "PublishTestRequest",
2020
- "type": "object"
2021
- },
2022
- "PublishTestResponse": {
2023
- "description": "Response model for test message publishing.",
2024
- "properties": {
2025
- "success": {
2026
- "description": "Whether publish succeeded",
2027
- "title": "Success",
2028
- "type": "boolean"
2029
- },
2030
- "message_id": {
2031
- "description": "Unique message ID",
2032
- "title": "Message Id",
2033
- "type": "string"
2034
- },
2035
- "channel": {
2036
- "description": "Target channel",
2037
- "title": "Channel",
2038
- "type": "string"
2039
- },
2040
- "acks_received": {
2041
- "default": 0,
2042
- "description": "Number of ACKs received",
2043
- "title": "Acks Received",
2044
- "type": "integer"
2045
- },
2046
- "delivered": {
2047
- "default": false,
2048
- "description": "Whether message was delivered",
2049
- "title": "Delivered",
2050
- "type": "boolean"
2051
- },
2052
- "error": {
2053
- "anyOf": [
2054
- {
2055
- "type": "string"
2056
- },
2057
- {
2058
- "type": "null"
2059
- }
2060
- ],
2061
- "default": null,
2062
- "description": "Error message if failed",
2063
- "title": "Error"
2064
- }
2065
- },
2066
- "required": [
2067
- "success",
2068
- "message_id",
2069
- "channel"
2070
- ],
2071
- "title": "PublishTestResponse",
2072
- "type": "object"
2073
- },
2074
- "TimelineItem": {
2075
- "type": "object",
2076
- "description": "Single timeline data point for DRF.",
2077
- "properties": {
2078
- "timestamp": {
2079
- "type": "string"
2080
- },
2081
- "count": {
2082
- "type": "integer"
2083
- },
2084
- "successful": {
2085
- "type": "integer"
2086
- },
2087
- "failed": {
2088
- "type": "integer"
2089
- },
2090
- "timeout": {
2091
- "type": "integer"
2092
- }
2093
- },
2094
- "required": [
2095
- "count",
2096
- "failed",
2097
- "successful",
2098
- "timeout",
2099
- "timestamp"
2100
- ]
2101
- },
2102
- "TimelineResponse": {
2103
- "type": "object",
2104
- "description": "Timeline response with hourly/daily breakdown for DRF.",
2105
- "properties": {
2106
- "timeline": {
2107
- "type": "array",
2108
- "items": {
2109
- "$ref": "#/components/schemas/TimelineItem"
2110
- }
2111
- },
2112
- "period_hours": {
2113
- "type": "integer"
2114
- },
2115
- "interval": {
2116
- "type": "string"
2117
- }
2118
- },
2119
- "required": [
2120
- "interval",
2121
- "period_hours",
2122
- "timeline"
2123
- ]
2124
103
  }
2125
104
  },
2126
105
  "securitySchemes": {
2127
- "basicAuth": {
2128
- "type": "http",
2129
- "scheme": "basic"
2130
- },
2131
- "cookieAuth": {
2132
- "type": "apiKey",
2133
- "in": "cookie",
2134
- "name": "sessionid"
2135
- },
2136
- "jwtAuth": {
2137
- "type": "http",
2138
- "scheme": "bearer",
2139
- "bearerFormat": "JWT"
2140
- },
2141
106
  "jwtAuthWithLastLogin": {
2142
107
  "type": "http",
2143
108
  "scheme": "bearer",