@djangocfg/api 1.2.7 → 1.2.9

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 (28) hide show
  1. package/dist/index.cjs +1274 -2252
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +321 -1099
  4. package/dist/index.d.ts +321 -1099
  5. package/dist/index.mjs +1197 -2162
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +0 -14
  9. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +0 -84
  10. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +0 -56
  11. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +0 -56
  12. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +30 -0
  13. package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +0 -14
  14. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_admin_api.ts +0 -108
  15. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +0 -56
  16. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_testing.ts +0 -72
  17. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_commands.ts +34 -0
  18. package/src/cfg/generated/_utils/schemas/Command.schema.ts +2 -0
  19. package/src/cfg/generated/_utils/schemas/CommandExecuteRequestRequest.schema.ts +21 -0
  20. package/src/cfg/generated/_utils/schemas/CommandHelpResponse.schema.ts +25 -0
  21. package/src/cfg/generated/_utils/schemas/index.ts +2 -0
  22. package/src/cfg/generated/cfg__centrifugo/client.ts +0 -8
  23. package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/client.ts +0 -61
  24. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +0 -73
  25. package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/client.ts +0 -43
  26. package/src/cfg/generated/cfg__dashboard__dashboard_commands/client.ts +21 -0
  27. package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +31 -0
  28. package/src/cfg/generated/schema.ts +256 -907
@@ -2218,6 +2218,9 @@ export const OPENAPI_SCHEMA = {
2218
2218
  "help": {
2219
2219
  "type": "string"
2220
2220
  },
2221
+ "is_allowed": {
2222
+ "type": "boolean"
2223
+ },
2221
2224
  "is_core": {
2222
2225
  "type": "boolean"
2223
2226
  },
@@ -2226,6 +2229,9 @@ export const OPENAPI_SCHEMA = {
2226
2229
  },
2227
2230
  "name": {
2228
2231
  "type": "string"
2232
+ },
2233
+ "risk_level": {
2234
+ "type": "string"
2229
2235
  }
2230
2236
  },
2231
2237
  "required": [
@@ -2237,6 +2243,64 @@ export const OPENAPI_SCHEMA = {
2237
2243
  ],
2238
2244
  "type": "object"
2239
2245
  },
2246
+ "CommandExecuteRequestRequest": {
2247
+ "description": "Request serializer for command execution.",
2248
+ "properties": {
2249
+ "args": {
2250
+ "description": "Positional arguments for the command",
2251
+ "items": {
2252
+ "minLength": 1,
2253
+ "type": "string"
2254
+ },
2255
+ "type": "array"
2256
+ },
2257
+ "command": {
2258
+ "description": "Name of the Django management command",
2259
+ "minLength": 1,
2260
+ "type": "string"
2261
+ },
2262
+ "options": {
2263
+ "additionalProperties": {},
2264
+ "description": "Named options for the command (e.g., {\u0027verbosity\u0027: \u00272\u0027})",
2265
+ "type": "object"
2266
+ }
2267
+ },
2268
+ "required": [
2269
+ "command"
2270
+ ],
2271
+ "type": "object"
2272
+ },
2273
+ "CommandHelpResponse": {
2274
+ "description": "Response serializer for command help.",
2275
+ "properties": {
2276
+ "app": {
2277
+ "type": "string"
2278
+ },
2279
+ "command": {
2280
+ "type": "string"
2281
+ },
2282
+ "error": {
2283
+ "type": "string"
2284
+ },
2285
+ "help_text": {
2286
+ "type": "string"
2287
+ },
2288
+ "is_allowed": {
2289
+ "type": "boolean"
2290
+ },
2291
+ "risk_level": {
2292
+ "type": "string"
2293
+ },
2294
+ "status": {
2295
+ "type": "string"
2296
+ }
2297
+ },
2298
+ "required": [
2299
+ "command",
2300
+ "status"
2301
+ ],
2302
+ "type": "object"
2303
+ },
2240
2304
  "CommandsSummary": {
2241
2305
  "description": "Commands summary serializer.",
2242
2306
  "properties": {
@@ -7982,10 +8046,10 @@ export const OPENAPI_SCHEMA = {
7982
8046
  "x-async-capable": false
7983
8047
  }
7984
8048
  },
7985
- "/cfg/centrifugo/admin/api/monitor/channels/": {
8049
+ "/cfg/centrifugo/monitor/channels/": {
7986
8050
  "get": {
7987
8051
  "description": "Get statistics per channel.",
7988
- "operationId": "cfg_centrifugo_admin_api_monitor_channels_retrieve",
8052
+ "operationId": "cfg_centrifugo_monitor_channels_retrieve",
7989
8053
  "responses": {
7990
8054
  "200": {
7991
8055
  "description": "No response body"
@@ -8002,10 +8066,10 @@ export const OPENAPI_SCHEMA = {
8002
8066
  "x-async-capable": false
8003
8067
  }
8004
8068
  },
8005
- "/cfg/centrifugo/admin/api/monitor/health/": {
8069
+ "/cfg/centrifugo/monitor/health/": {
8006
8070
  "get": {
8007
8071
  "description": "Returns the current health status of the Centrifugo client.",
8008
- "operationId": "cfg_centrifugo_admin_api_monitor_health_retrieve",
8072
+ "operationId": "cfg_centrifugo_monitor_health_retrieve",
8009
8073
  "responses": {
8010
8074
  "200": {
8011
8075
  "content": {
@@ -8040,10 +8104,10 @@ export const OPENAPI_SCHEMA = {
8040
8104
  "x-async-capable": false
8041
8105
  }
8042
8106
  },
8043
- "/cfg/centrifugo/admin/api/monitor/overview/": {
8107
+ "/cfg/centrifugo/monitor/overview/": {
8044
8108
  "get": {
8045
8109
  "description": "Returns overview statistics for Centrifugo publishes.",
8046
- "operationId": "cfg_centrifugo_admin_api_monitor_overview_retrieve",
8110
+ "operationId": "cfg_centrifugo_monitor_overview_retrieve",
8047
8111
  "parameters": [
8048
8112
  {
8049
8113
  "description": "Statistics period in hours (default: 24)",
@@ -8088,10 +8152,10 @@ export const OPENAPI_SCHEMA = {
8088
8152
  "x-async-capable": false
8089
8153
  }
8090
8154
  },
8091
- "/cfg/centrifugo/admin/api/monitor/publishes/": {
8155
+ "/cfg/centrifugo/monitor/publishes/": {
8092
8156
  "get": {
8093
8157
  "description": "Returns a list of recent Centrifugo publishes with their details.",
8094
- "operationId": "cfg_centrifugo_admin_api_monitor_publishes_retrieve",
8158
+ "operationId": "cfg_centrifugo_monitor_publishes_retrieve",
8095
8159
  "parameters": [
8096
8160
  {
8097
8161
  "description": "Filter by channel name",
@@ -8160,10 +8224,10 @@ export const OPENAPI_SCHEMA = {
8160
8224
  "x-async-capable": false
8161
8225
  }
8162
8226
  },
8163
- "/cfg/centrifugo/admin/api/monitor/timeline/": {
8227
+ "/cfg/centrifugo/monitor/timeline/": {
8164
8228
  "get": {
8165
8229
  "description": "Returns statistics grouped by channel.",
8166
- "operationId": "cfg_centrifugo_admin_api_monitor_timeline_retrieve",
8230
+ "operationId": "cfg_centrifugo_monitor_timeline_retrieve",
8167
8231
  "parameters": [
8168
8232
  {
8169
8233
  "description": "Statistics period in hours (default: 24)",
@@ -8216,10 +8280,10 @@ export const OPENAPI_SCHEMA = {
8216
8280
  "x-async-capable": false
8217
8281
  }
8218
8282
  },
8219
- "/cfg/centrifugo/admin/api/server/auth/token/": {
8283
+ "/cfg/centrifugo/server/auth/token/": {
8220
8284
  "post": {
8221
8285
  "description": "Returns JWT token and config for WebSocket connection to Centrifugo.",
8222
- "operationId": "cfg_centrifugo_admin_api_server_auth_token_create",
8286
+ "operationId": "cfg_centrifugo_server_auth_token_create",
8223
8287
  "responses": {
8224
8288
  "200": {
8225
8289
  "content": {
@@ -8280,10 +8344,10 @@ export const OPENAPI_SCHEMA = {
8280
8344
  "x-async-capable": false
8281
8345
  }
8282
8346
  },
8283
- "/cfg/centrifugo/admin/api/server/channels/": {
8347
+ "/cfg/centrifugo/server/channels/": {
8284
8348
  "post": {
8285
8349
  "description": "Returns list of active channels with optional pattern filter.",
8286
- "operationId": "cfg_centrifugo_admin_api_server_channels_create",
8350
+ "operationId": "cfg_centrifugo_server_channels_create",
8287
8351
  "requestBody": {
8288
8352
  "content": {
8289
8353
  "application/json": {
@@ -8337,10 +8401,10 @@ export const OPENAPI_SCHEMA = {
8337
8401
  "x-async-capable": false
8338
8402
  }
8339
8403
  },
8340
- "/cfg/centrifugo/admin/api/server/history/": {
8404
+ "/cfg/centrifugo/server/history/": {
8341
8405
  "post": {
8342
8406
  "description": "Returns message history for a channel.",
8343
- "operationId": "cfg_centrifugo_admin_api_server_history_create",
8407
+ "operationId": "cfg_centrifugo_server_history_create",
8344
8408
  "requestBody": {
8345
8409
  "content": {
8346
8410
  "application/json": {
@@ -8395,10 +8459,10 @@ export const OPENAPI_SCHEMA = {
8395
8459
  "x-async-capable": false
8396
8460
  }
8397
8461
  },
8398
- "/cfg/centrifugo/admin/api/server/info/": {
8462
+ "/cfg/centrifugo/server/info/": {
8399
8463
  "post": {
8400
8464
  "description": "Returns server information including node count, version, and uptime.",
8401
- "operationId": "cfg_centrifugo_admin_api_server_info_create",
8465
+ "operationId": "cfg_centrifugo_server_info_create",
8402
8466
  "responses": {
8403
8467
  "200": {
8404
8468
  "content": {
@@ -8433,10 +8497,10 @@ export const OPENAPI_SCHEMA = {
8433
8497
  "x-async-capable": false
8434
8498
  }
8435
8499
  },
8436
- "/cfg/centrifugo/admin/api/server/presence-stats/": {
8500
+ "/cfg/centrifugo/server/presence-stats/": {
8437
8501
  "post": {
8438
8502
  "description": "Returns quick statistics about channel presence (num_clients, num_users).",
8439
- "operationId": "cfg_centrifugo_admin_api_server_presence_stats_create",
8503
+ "operationId": "cfg_centrifugo_server_presence_stats_create",
8440
8504
  "requestBody": {
8441
8505
  "content": {
8442
8506
  "application/json": {
@@ -8491,10 +8555,10 @@ export const OPENAPI_SCHEMA = {
8491
8555
  "x-async-capable": false
8492
8556
  }
8493
8557
  },
8494
- "/cfg/centrifugo/admin/api/server/presence/": {
8558
+ "/cfg/centrifugo/server/presence/": {
8495
8559
  "post": {
8496
8560
  "description": "Returns list of clients currently subscribed to a channel.",
8497
- "operationId": "cfg_centrifugo_admin_api_server_presence_create",
8561
+ "operationId": "cfg_centrifugo_server_presence_create",
8498
8562
  "requestBody": {
8499
8563
  "content": {
8500
8564
  "application/json": {
@@ -8549,10 +8613,10 @@ export const OPENAPI_SCHEMA = {
8549
8613
  "x-async-capable": false
8550
8614
  }
8551
8615
  },
8552
- "/cfg/centrifugo/admin/api/testing/connection-token/": {
8616
+ "/cfg/centrifugo/testing/connection-token/": {
8553
8617
  "post": {
8554
8618
  "description": "Generate JWT token for WebSocket connection to Centrifugo.",
8555
- "operationId": "cfg_centrifugo_admin_api_testing_connection_token_create",
8619
+ "operationId": "cfg_centrifugo_testing_connection_token_create",
8556
8620
  "requestBody": {
8557
8621
  "content": {
8558
8622
  "application/json": {
@@ -8617,10 +8681,10 @@ export const OPENAPI_SCHEMA = {
8617
8681
  "x-async-capable": false
8618
8682
  }
8619
8683
  },
8620
- "/cfg/centrifugo/admin/api/testing/publish-test/": {
8684
+ "/cfg/centrifugo/testing/publish-test/": {
8621
8685
  "post": {
8622
8686
  "description": "Publish test message to Centrifugo via wrapper with optional ACK tracking.",
8623
- "operationId": "cfg_centrifugo_admin_api_testing_publish_test_create",
8687
+ "operationId": "cfg_centrifugo_testing_publish_test_create",
8624
8688
  "requestBody": {
8625
8689
  "content": {
8626
8690
  "application/json": {
@@ -8685,10 +8749,10 @@ export const OPENAPI_SCHEMA = {
8685
8749
  "x-async-capable": false
8686
8750
  }
8687
8751
  },
8688
- "/cfg/centrifugo/admin/api/testing/publish-with-logging/": {
8752
+ "/cfg/centrifugo/testing/publish-with-logging/": {
8689
8753
  "post": {
8690
8754
  "description": "Publish message using CentrifugoClient with database logging. This will create CentrifugoLog records.",
8691
- "operationId": "cfg_centrifugo_admin_api_testing_publish_with_logging_create",
8755
+ "operationId": "cfg_centrifugo_testing_publish_with_logging_create",
8692
8756
  "requestBody": {
8693
8757
  "content": {
8694
8758
  "application/json": {
@@ -8753,10 +8817,10 @@ export const OPENAPI_SCHEMA = {
8753
8817
  "x-async-capable": false
8754
8818
  }
8755
8819
  },
8756
- "/cfg/centrifugo/admin/api/testing/send-ack/": {
8820
+ "/cfg/centrifugo/testing/send-ack/": {
8757
8821
  "post": {
8758
8822
  "description": "Manually send ACK for a message to the wrapper. Pass message_id in request body.",
8759
- "operationId": "cfg_centrifugo_admin_api_testing_send_ack_create",
8823
+ "operationId": "cfg_centrifugo_testing_send_ack_create",
8760
8824
  "requestBody": {
8761
8825
  "content": {
8762
8826
  "application/json": {
@@ -8821,46 +8885,64 @@ export const OPENAPI_SCHEMA = {
8821
8885
  "x-async-capable": false
8822
8886
  }
8823
8887
  },
8824
- "/cfg/centrifugo/monitor/channels/": {
8888
+ "/cfg/dashboard/api/activity/actions/": {
8825
8889
  "get": {
8826
- "description": "Get statistics per channel.",
8827
- "operationId": "cfg_centrifugo_monitor_channels_retrieve",
8890
+ "description": "Retrieve quick action buttons for dashboard",
8891
+ "operationId": "cfg_dashboard_api_activity_actions_list",
8828
8892
  "responses": {
8829
8893
  "200": {
8830
- "description": "No response body"
8894
+ "content": {
8895
+ "application/json": {
8896
+ "schema": {
8897
+ "items": {
8898
+ "$ref": "#/components/schemas/QuickAction"
8899
+ },
8900
+ "type": "array"
8901
+ }
8902
+ }
8903
+ },
8904
+ "description": ""
8831
8905
  }
8832
8906
  },
8833
8907
  "security": [
8834
8908
  {
8835
- "jwtAuth": []
8909
+ "cookieAuth": []
8910
+ },
8911
+ {
8912
+ "basicAuth": []
8836
8913
  }
8837
8914
  ],
8915
+ "summary": "Get quick actions",
8838
8916
  "tags": [
8839
- "centrifugo"
8917
+ "Dashboard - Activity"
8840
8918
  ],
8841
8919
  "x-async-capable": false
8842
8920
  }
8843
8921
  },
8844
- "/cfg/centrifugo/monitor/health/": {
8922
+ "/cfg/dashboard/api/activity/recent/": {
8845
8923
  "get": {
8846
- "description": "Returns the current health status of the Centrifugo client.",
8847
- "operationId": "cfg_centrifugo_monitor_health_retrieve",
8924
+ "description": "Retrieve recent system activity entries",
8925
+ "operationId": "cfg_dashboard_api_activity_recent_list",
8926
+ "parameters": [
8927
+ {
8928
+ "description": "Maximum number of entries to return",
8929
+ "in": "query",
8930
+ "name": "limit",
8931
+ "schema": {
8932
+ "default": 10,
8933
+ "type": "integer"
8934
+ }
8935
+ }
8936
+ ],
8848
8937
  "responses": {
8849
8938
  "200": {
8850
8939
  "content": {
8851
8940
  "application/json": {
8852
8941
  "schema": {
8853
- "$ref": "#/components/schemas/HealthCheck"
8854
- }
8855
- }
8856
- },
8857
- "description": ""
8858
- },
8859
- "503": {
8860
- "content": {
8861
- "application/json": {
8862
- "schema": {
8863
- "description": "Service unavailable"
8942
+ "items": {
8943
+ "$ref": "#/components/schemas/ActivityEntry"
8944
+ },
8945
+ "type": "array"
8864
8946
  }
8865
8947
  }
8866
8948
  },
@@ -8869,26 +8951,30 @@ export const OPENAPI_SCHEMA = {
8869
8951
  },
8870
8952
  "security": [
8871
8953
  {
8872
- "jwtAuth": []
8954
+ "cookieAuth": []
8955
+ },
8956
+ {
8957
+ "basicAuth": []
8873
8958
  }
8874
8959
  ],
8875
- "summary": "Get Centrifugo health status",
8960
+ "summary": "Get recent activity",
8876
8961
  "tags": [
8877
- "Centrifugo Monitoring"
8962
+ "Dashboard - Activity"
8878
8963
  ],
8879
8964
  "x-async-capable": false
8880
8965
  }
8881
8966
  },
8882
- "/cfg/centrifugo/monitor/overview/": {
8967
+ "/cfg/dashboard/api/charts/activity/": {
8883
8968
  "get": {
8884
- "description": "Returns overview statistics for Centrifugo publishes.",
8885
- "operationId": "cfg_centrifugo_monitor_overview_retrieve",
8969
+ "description": "Retrieve user activity data for chart visualization",
8970
+ "operationId": "cfg_dashboard_api_charts_activity_retrieve",
8886
8971
  "parameters": [
8887
8972
  {
8888
- "description": "Statistics period in hours (default: 24)",
8973
+ "description": "Number of days to include",
8889
8974
  "in": "query",
8890
- "name": "hours",
8975
+ "name": "days",
8891
8976
  "schema": {
8977
+ "default": 7,
8892
8978
  "type": "integer"
8893
8979
  }
8894
8980
  }
@@ -8898,17 +8984,7 @@ export const OPENAPI_SCHEMA = {
8898
8984
  "content": {
8899
8985
  "application/json": {
8900
8986
  "schema": {
8901
- "$ref": "#/components/schemas/OverviewStats"
8902
- }
8903
- }
8904
- },
8905
- "description": ""
8906
- },
8907
- "400": {
8908
- "content": {
8909
- "application/json": {
8910
- "schema": {
8911
- "description": "Invalid parameters"
8987
+ "$ref": "#/components/schemas/ChartData"
8912
8988
  }
8913
8989
  }
8914
8990
  },
@@ -8917,52 +8993,32 @@ export const OPENAPI_SCHEMA = {
8917
8993
  },
8918
8994
  "security": [
8919
8995
  {
8920
- "jwtAuth": []
8996
+ "cookieAuth": []
8997
+ },
8998
+ {
8999
+ "basicAuth": []
8921
9000
  }
8922
9001
  ],
8923
- "summary": "Get overview statistics",
9002
+ "summary": "Get user activity chart",
8924
9003
  "tags": [
8925
- "Centrifugo Monitoring"
9004
+ "Dashboard - Charts"
8926
9005
  ],
8927
9006
  "x-async-capable": false
8928
9007
  }
8929
9008
  },
8930
- "/cfg/centrifugo/monitor/publishes/": {
9009
+ "/cfg/dashboard/api/charts/recent-users/": {
8931
9010
  "get": {
8932
- "description": "Returns a list of recent Centrifugo publishes with their details.",
8933
- "operationId": "cfg_centrifugo_monitor_publishes_retrieve",
9011
+ "description": "Retrieve list of recently registered users",
9012
+ "operationId": "cfg_dashboard_api_charts_recent_users_list",
8934
9013
  "parameters": [
8935
9014
  {
8936
- "description": "Filter by channel name",
8937
- "in": "query",
8938
- "name": "channel",
8939
- "schema": {
8940
- "type": "string"
8941
- }
8942
- },
8943
- {
8944
- "description": "Number of publishes to return (default: 50, max: 200)",
8945
- "in": "query",
8946
- "name": "count",
8947
- "schema": {
8948
- "type": "integer"
8949
- }
8950
- },
8951
- {
8952
- "description": "Offset for pagination (default: 0)",
9015
+ "description": "Maximum number of users to return",
8953
9016
  "in": "query",
8954
- "name": "offset",
9017
+ "name": "limit",
8955
9018
  "schema": {
9019
+ "default": 10,
8956
9020
  "type": "integer"
8957
9021
  }
8958
- },
8959
- {
8960
- "description": "Filter by status (success, failed, timeout, pending, partial)",
8961
- "in": "query",
8962
- "name": "status",
8963
- "schema": {
8964
- "type": "string"
8965
- }
8966
9022
  }
8967
9023
  ],
8968
9024
  "responses": {
@@ -8970,17 +9026,10 @@ export const OPENAPI_SCHEMA = {
8970
9026
  "content": {
8971
9027
  "application/json": {
8972
9028
  "schema": {
8973
- "$ref": "#/components/schemas/RecentPublishes"
8974
- }
8975
- }
8976
- },
8977
- "description": ""
8978
- },
8979
- "400": {
8980
- "content": {
8981
- "application/json": {
8982
- "schema": {
8983
- "description": "Invalid parameters"
9029
+ "items": {
9030
+ "$ref": "#/components/schemas/RecentUser"
9031
+ },
9032
+ "type": "array"
8984
9033
  }
8985
9034
  }
8986
9035
  },
@@ -8989,36 +9038,32 @@ export const OPENAPI_SCHEMA = {
8989
9038
  },
8990
9039
  "security": [
8991
9040
  {
8992
- "jwtAuth": []
9041
+ "cookieAuth": []
9042
+ },
9043
+ {
9044
+ "basicAuth": []
8993
9045
  }
8994
9046
  ],
8995
- "summary": "Get recent publishes",
9047
+ "summary": "Get recent users",
8996
9048
  "tags": [
8997
- "Centrifugo Monitoring"
9049
+ "Dashboard - Charts"
8998
9050
  ],
8999
9051
  "x-async-capable": false
9000
9052
  }
9001
9053
  },
9002
- "/cfg/centrifugo/monitor/timeline/": {
9054
+ "/cfg/dashboard/api/charts/registrations/": {
9003
9055
  "get": {
9004
- "description": "Returns statistics grouped by channel.",
9005
- "operationId": "cfg_centrifugo_monitor_timeline_retrieve",
9056
+ "description": "Retrieve user registration data for chart visualization",
9057
+ "operationId": "cfg_dashboard_api_charts_registrations_retrieve",
9006
9058
  "parameters": [
9007
9059
  {
9008
- "description": "Statistics period in hours (default: 24)",
9060
+ "description": "Number of days to include",
9009
9061
  "in": "query",
9010
- "name": "hours",
9062
+ "name": "days",
9011
9063
  "schema": {
9064
+ "default": 7,
9012
9065
  "type": "integer"
9013
9066
  }
9014
- },
9015
- {
9016
- "description": "Time interval: \u0027hour\u0027 or \u0027day\u0027 (default: hour)",
9017
- "in": "query",
9018
- "name": "interval",
9019
- "schema": {
9020
- "type": "string"
9021
- }
9022
9067
  }
9023
9068
  ],
9024
9069
  "responses": {
@@ -9026,653 +9071,7 @@ export const OPENAPI_SCHEMA = {
9026
9071
  "content": {
9027
9072
  "application/json": {
9028
9073
  "schema": {
9029
- "$ref": "#/components/schemas/ChannelList"
9030
- }
9031
- }
9032
- },
9033
- "description": ""
9034
- },
9035
- "400": {
9036
- "content": {
9037
- "application/json": {
9038
- "schema": {
9039
- "description": "Invalid parameters"
9040
- }
9041
- }
9042
- },
9043
- "description": ""
9044
- }
9045
- },
9046
- "security": [
9047
- {
9048
- "jwtAuth": []
9049
- }
9050
- ],
9051
- "summary": "Get channel statistics",
9052
- "tags": [
9053
- "Centrifugo Monitoring"
9054
- ],
9055
- "x-async-capable": false
9056
- }
9057
- },
9058
- "/cfg/centrifugo/server/auth/token/": {
9059
- "post": {
9060
- "description": "Returns JWT token and config for WebSocket connection to Centrifugo.",
9061
- "operationId": "cfg_centrifugo_server_auth_token_create",
9062
- "responses": {
9063
- "200": {
9064
- "content": {
9065
- "application/json": {
9066
- "schema": {
9067
- "properties": {
9068
- "config": {
9069
- "properties": {
9070
- "centrifugo_url": {
9071
- "type": "string"
9072
- },
9073
- "expires_at": {
9074
- "type": "string"
9075
- }
9076
- },
9077
- "type": "object"
9078
- },
9079
- "token": {
9080
- "type": "string"
9081
- }
9082
- },
9083
- "type": "object"
9084
- }
9085
- }
9086
- },
9087
- "description": ""
9088
- },
9089
- "400": {
9090
- "content": {
9091
- "application/json": {
9092
- "schema": {
9093
- "description": "Centrifugo not configured"
9094
- }
9095
- }
9096
- },
9097
- "description": ""
9098
- },
9099
- "500": {
9100
- "content": {
9101
- "application/json": {
9102
- "schema": {
9103
- "description": "Server error"
9104
- }
9105
- }
9106
- },
9107
- "description": ""
9108
- }
9109
- },
9110
- "security": [
9111
- {
9112
- "jwtAuth": []
9113
- }
9114
- ],
9115
- "summary": "Get connection token for dashboard",
9116
- "tags": [
9117
- "Centrifugo Admin API"
9118
- ],
9119
- "x-async-capable": false
9120
- }
9121
- },
9122
- "/cfg/centrifugo/server/channels/": {
9123
- "post": {
9124
- "description": "Returns list of active channels with optional pattern filter.",
9125
- "operationId": "cfg_centrifugo_server_channels_create",
9126
- "requestBody": {
9127
- "content": {
9128
- "application/json": {
9129
- "schema": {
9130
- "$ref": "#/components/schemas/CentrifugoChannelsRequestRequest"
9131
- }
9132
- },
9133
- "application/x-www-form-urlencoded": {
9134
- "schema": {
9135
- "$ref": "#/components/schemas/CentrifugoChannelsRequestRequest"
9136
- }
9137
- },
9138
- "multipart/form-data": {
9139
- "schema": {
9140
- "$ref": "#/components/schemas/CentrifugoChannelsRequestRequest"
9141
- }
9142
- }
9143
- }
9144
- },
9145
- "responses": {
9146
- "200": {
9147
- "content": {
9148
- "application/json": {
9149
- "schema": {
9150
- "$ref": "#/components/schemas/CentrifugoChannelsResponse"
9151
- }
9152
- }
9153
- },
9154
- "description": ""
9155
- },
9156
- "500": {
9157
- "content": {
9158
- "application/json": {
9159
- "schema": {
9160
- "description": "Server error"
9161
- }
9162
- }
9163
- },
9164
- "description": ""
9165
- }
9166
- },
9167
- "security": [
9168
- {
9169
- "jwtAuth": []
9170
- }
9171
- ],
9172
- "summary": "List active channels",
9173
- "tags": [
9174
- "Centrifugo Admin API"
9175
- ],
9176
- "x-async-capable": false
9177
- }
9178
- },
9179
- "/cfg/centrifugo/server/history/": {
9180
- "post": {
9181
- "description": "Returns message history for a channel.",
9182
- "operationId": "cfg_centrifugo_server_history_create",
9183
- "requestBody": {
9184
- "content": {
9185
- "application/json": {
9186
- "schema": {
9187
- "$ref": "#/components/schemas/CentrifugoHistoryRequestRequest"
9188
- }
9189
- },
9190
- "application/x-www-form-urlencoded": {
9191
- "schema": {
9192
- "$ref": "#/components/schemas/CentrifugoHistoryRequestRequest"
9193
- }
9194
- },
9195
- "multipart/form-data": {
9196
- "schema": {
9197
- "$ref": "#/components/schemas/CentrifugoHistoryRequestRequest"
9198
- }
9199
- }
9200
- },
9201
- "required": true
9202
- },
9203
- "responses": {
9204
- "200": {
9205
- "content": {
9206
- "application/json": {
9207
- "schema": {
9208
- "$ref": "#/components/schemas/CentrifugoHistoryResponse"
9209
- }
9210
- }
9211
- },
9212
- "description": ""
9213
- },
9214
- "500": {
9215
- "content": {
9216
- "application/json": {
9217
- "schema": {
9218
- "description": "Server error"
9219
- }
9220
- }
9221
- },
9222
- "description": ""
9223
- }
9224
- },
9225
- "security": [
9226
- {
9227
- "jwtAuth": []
9228
- }
9229
- ],
9230
- "summary": "Get channel history",
9231
- "tags": [
9232
- "Centrifugo Admin API"
9233
- ],
9234
- "x-async-capable": false
9235
- }
9236
- },
9237
- "/cfg/centrifugo/server/info/": {
9238
- "post": {
9239
- "description": "Returns server information including node count, version, and uptime.",
9240
- "operationId": "cfg_centrifugo_server_info_create",
9241
- "responses": {
9242
- "200": {
9243
- "content": {
9244
- "application/json": {
9245
- "schema": {
9246
- "$ref": "#/components/schemas/CentrifugoInfoResponse"
9247
- }
9248
- }
9249
- },
9250
- "description": ""
9251
- },
9252
- "500": {
9253
- "content": {
9254
- "application/json": {
9255
- "schema": {
9256
- "description": "Server error"
9257
- }
9258
- }
9259
- },
9260
- "description": ""
9261
- }
9262
- },
9263
- "security": [
9264
- {
9265
- "jwtAuth": []
9266
- }
9267
- ],
9268
- "summary": "Get Centrifugo server info",
9269
- "tags": [
9270
- "Centrifugo Admin API"
9271
- ],
9272
- "x-async-capable": false
9273
- }
9274
- },
9275
- "/cfg/centrifugo/server/presence-stats/": {
9276
- "post": {
9277
- "description": "Returns quick statistics about channel presence (num_clients, num_users).",
9278
- "operationId": "cfg_centrifugo_server_presence_stats_create",
9279
- "requestBody": {
9280
- "content": {
9281
- "application/json": {
9282
- "schema": {
9283
- "$ref": "#/components/schemas/CentrifugoPresenceStatsRequestRequest"
9284
- }
9285
- },
9286
- "application/x-www-form-urlencoded": {
9287
- "schema": {
9288
- "$ref": "#/components/schemas/CentrifugoPresenceStatsRequestRequest"
9289
- }
9290
- },
9291
- "multipart/form-data": {
9292
- "schema": {
9293
- "$ref": "#/components/schemas/CentrifugoPresenceStatsRequestRequest"
9294
- }
9295
- }
9296
- },
9297
- "required": true
9298
- },
9299
- "responses": {
9300
- "200": {
9301
- "content": {
9302
- "application/json": {
9303
- "schema": {
9304
- "$ref": "#/components/schemas/CentrifugoPresenceStatsResponse"
9305
- }
9306
- }
9307
- },
9308
- "description": ""
9309
- },
9310
- "500": {
9311
- "content": {
9312
- "application/json": {
9313
- "schema": {
9314
- "description": "Server error"
9315
- }
9316
- }
9317
- },
9318
- "description": ""
9319
- }
9320
- },
9321
- "security": [
9322
- {
9323
- "jwtAuth": []
9324
- }
9325
- ],
9326
- "summary": "Get channel presence statistics",
9327
- "tags": [
9328
- "Centrifugo Admin API"
9329
- ],
9330
- "x-async-capable": false
9331
- }
9332
- },
9333
- "/cfg/centrifugo/server/presence/": {
9334
- "post": {
9335
- "description": "Returns list of clients currently subscribed to a channel.",
9336
- "operationId": "cfg_centrifugo_server_presence_create",
9337
- "requestBody": {
9338
- "content": {
9339
- "application/json": {
9340
- "schema": {
9341
- "$ref": "#/components/schemas/CentrifugoPresenceRequestRequest"
9342
- }
9343
- },
9344
- "application/x-www-form-urlencoded": {
9345
- "schema": {
9346
- "$ref": "#/components/schemas/CentrifugoPresenceRequestRequest"
9347
- }
9348
- },
9349
- "multipart/form-data": {
9350
- "schema": {
9351
- "$ref": "#/components/schemas/CentrifugoPresenceRequestRequest"
9352
- }
9353
- }
9354
- },
9355
- "required": true
9356
- },
9357
- "responses": {
9358
- "200": {
9359
- "content": {
9360
- "application/json": {
9361
- "schema": {
9362
- "$ref": "#/components/schemas/CentrifugoPresenceResponse"
9363
- }
9364
- }
9365
- },
9366
- "description": ""
9367
- },
9368
- "500": {
9369
- "content": {
9370
- "application/json": {
9371
- "schema": {
9372
- "description": "Server error"
9373
- }
9374
- }
9375
- },
9376
- "description": ""
9377
- }
9378
- },
9379
- "security": [
9380
- {
9381
- "jwtAuth": []
9382
- }
9383
- ],
9384
- "summary": "Get channel presence",
9385
- "tags": [
9386
- "Centrifugo Admin API"
9387
- ],
9388
- "x-async-capable": false
9389
- }
9390
- },
9391
- "/cfg/centrifugo/testing/connection-token/": {
9392
- "post": {
9393
- "description": "Generate JWT token for WebSocket connection to Centrifugo.",
9394
- "operationId": "cfg_centrifugo_testing_connection_token_create",
9395
- "requestBody": {
9396
- "content": {
9397
- "application/json": {
9398
- "schema": {
9399
- "$ref": "#/components/schemas/ConnectionTokenRequestRequest"
9400
- }
9401
- },
9402
- "application/x-www-form-urlencoded": {
9403
- "schema": {
9404
- "$ref": "#/components/schemas/ConnectionTokenRequestRequest"
9405
- }
9406
- },
9407
- "multipart/form-data": {
9408
- "schema": {
9409
- "$ref": "#/components/schemas/ConnectionTokenRequestRequest"
9410
- }
9411
- }
9412
- },
9413
- "required": true
9414
- },
9415
- "responses": {
9416
- "200": {
9417
- "content": {
9418
- "application/json": {
9419
- "schema": {
9420
- "$ref": "#/components/schemas/ConnectionTokenResponse"
9421
- }
9422
- }
9423
- },
9424
- "description": ""
9425
- },
9426
- "400": {
9427
- "content": {
9428
- "application/json": {
9429
- "schema": {
9430
- "description": "Invalid request"
9431
- }
9432
- }
9433
- },
9434
- "description": ""
9435
- },
9436
- "500": {
9437
- "content": {
9438
- "application/json": {
9439
- "schema": {
9440
- "description": "Server error"
9441
- }
9442
- }
9443
- },
9444
- "description": ""
9445
- }
9446
- },
9447
- "security": [
9448
- {
9449
- "jwtAuth": []
9450
- }
9451
- ],
9452
- "summary": "Generate connection token",
9453
- "tags": [
9454
- "Centrifugo Testing"
9455
- ],
9456
- "x-async-capable": false
9457
- }
9458
- },
9459
- "/cfg/centrifugo/testing/publish-test/": {
9460
- "post": {
9461
- "description": "Publish test message to Centrifugo via wrapper with optional ACK tracking.",
9462
- "operationId": "cfg_centrifugo_testing_publish_test_create",
9463
- "requestBody": {
9464
- "content": {
9465
- "application/json": {
9466
- "schema": {
9467
- "$ref": "#/components/schemas/PublishTestRequestRequest"
9468
- }
9469
- },
9470
- "application/x-www-form-urlencoded": {
9471
- "schema": {
9472
- "$ref": "#/components/schemas/PublishTestRequestRequest"
9473
- }
9474
- },
9475
- "multipart/form-data": {
9476
- "schema": {
9477
- "$ref": "#/components/schemas/PublishTestRequestRequest"
9478
- }
9479
- }
9480
- },
9481
- "required": true
9482
- },
9483
- "responses": {
9484
- "200": {
9485
- "content": {
9486
- "application/json": {
9487
- "schema": {
9488
- "$ref": "#/components/schemas/PublishTestResponse"
9489
- }
9490
- }
9491
- },
9492
- "description": ""
9493
- },
9494
- "400": {
9495
- "content": {
9496
- "application/json": {
9497
- "schema": {
9498
- "description": "Invalid request"
9499
- }
9500
- }
9501
- },
9502
- "description": ""
9503
- },
9504
- "500": {
9505
- "content": {
9506
- "application/json": {
9507
- "schema": {
9508
- "description": "Server error"
9509
- }
9510
- }
9511
- },
9512
- "description": ""
9513
- }
9514
- },
9515
- "security": [
9516
- {
9517
- "jwtAuth": []
9518
- }
9519
- ],
9520
- "summary": "Publish test message",
9521
- "tags": [
9522
- "Centrifugo Testing"
9523
- ],
9524
- "x-async-capable": false
9525
- }
9526
- },
9527
- "/cfg/centrifugo/testing/publish-with-logging/": {
9528
- "post": {
9529
- "description": "Publish message using CentrifugoClient with database logging. This will create CentrifugoLog records.",
9530
- "operationId": "cfg_centrifugo_testing_publish_with_logging_create",
9531
- "requestBody": {
9532
- "content": {
9533
- "application/json": {
9534
- "schema": {
9535
- "$ref": "#/components/schemas/PublishTestRequestRequest"
9536
- }
9537
- },
9538
- "application/x-www-form-urlencoded": {
9539
- "schema": {
9540
- "$ref": "#/components/schemas/PublishTestRequestRequest"
9541
- }
9542
- },
9543
- "multipart/form-data": {
9544
- "schema": {
9545
- "$ref": "#/components/schemas/PublishTestRequestRequest"
9546
- }
9547
- }
9548
- },
9549
- "required": true
9550
- },
9551
- "responses": {
9552
- "200": {
9553
- "content": {
9554
- "application/json": {
9555
- "schema": {
9556
- "$ref": "#/components/schemas/PublishTestResponse"
9557
- }
9558
- }
9559
- },
9560
- "description": ""
9561
- },
9562
- "400": {
9563
- "content": {
9564
- "application/json": {
9565
- "schema": {
9566
- "description": "Invalid request"
9567
- }
9568
- }
9569
- },
9570
- "description": ""
9571
- },
9572
- "500": {
9573
- "content": {
9574
- "application/json": {
9575
- "schema": {
9576
- "description": "Server error"
9577
- }
9578
- }
9579
- },
9580
- "description": ""
9581
- }
9582
- },
9583
- "security": [
9584
- {
9585
- "jwtAuth": []
9586
- }
9587
- ],
9588
- "summary": "Publish with database logging",
9589
- "tags": [
9590
- "Centrifugo Testing"
9591
- ],
9592
- "x-async-capable": false
9593
- }
9594
- },
9595
- "/cfg/centrifugo/testing/send-ack/": {
9596
- "post": {
9597
- "description": "Manually send ACK for a message to the wrapper. Pass message_id in request body.",
9598
- "operationId": "cfg_centrifugo_testing_send_ack_create",
9599
- "requestBody": {
9600
- "content": {
9601
- "application/json": {
9602
- "schema": {
9603
- "$ref": "#/components/schemas/ManualAckRequestRequest"
9604
- }
9605
- },
9606
- "application/x-www-form-urlencoded": {
9607
- "schema": {
9608
- "$ref": "#/components/schemas/ManualAckRequestRequest"
9609
- }
9610
- },
9611
- "multipart/form-data": {
9612
- "schema": {
9613
- "$ref": "#/components/schemas/ManualAckRequestRequest"
9614
- }
9615
- }
9616
- },
9617
- "required": true
9618
- },
9619
- "responses": {
9620
- "200": {
9621
- "content": {
9622
- "application/json": {
9623
- "schema": {
9624
- "$ref": "#/components/schemas/ManualAckResponse"
9625
- }
9626
- }
9627
- },
9628
- "description": ""
9629
- },
9630
- "400": {
9631
- "content": {
9632
- "application/json": {
9633
- "schema": {
9634
- "description": "Invalid request"
9635
- }
9636
- }
9637
- },
9638
- "description": ""
9639
- },
9640
- "500": {
9641
- "content": {
9642
- "application/json": {
9643
- "schema": {
9644
- "description": "Server error"
9645
- }
9646
- }
9647
- },
9648
- "description": ""
9649
- }
9650
- },
9651
- "security": [
9652
- {
9653
- "jwtAuth": []
9654
- }
9655
- ],
9656
- "summary": "Send manual ACK",
9657
- "tags": [
9658
- "Centrifugo Testing"
9659
- ],
9660
- "x-async-capable": false
9661
- }
9662
- },
9663
- "/cfg/dashboard/api/activity/actions/": {
9664
- "get": {
9665
- "description": "Retrieve quick action buttons for dashboard",
9666
- "operationId": "cfg_dashboard_api_activity_actions_list",
9667
- "responses": {
9668
- "200": {
9669
- "content": {
9670
- "application/json": {
9671
- "schema": {
9672
- "items": {
9673
- "$ref": "#/components/schemas/QuickAction"
9674
- },
9675
- "type": "array"
9074
+ "$ref": "#/components/schemas/ChartData"
9676
9075
  }
9677
9076
  }
9678
9077
  },
@@ -9687,24 +9086,24 @@ export const OPENAPI_SCHEMA = {
9687
9086
  "basicAuth": []
9688
9087
  }
9689
9088
  ],
9690
- "summary": "Get quick actions",
9089
+ "summary": "Get user registration chart",
9691
9090
  "tags": [
9692
- "Dashboard - Activity"
9091
+ "Dashboard - Charts"
9693
9092
  ],
9694
9093
  "x-async-capable": false
9695
9094
  }
9696
9095
  },
9697
- "/cfg/dashboard/api/activity/recent/": {
9096
+ "/cfg/dashboard/api/charts/tracker/": {
9698
9097
  "get": {
9699
- "description": "Retrieve recent system activity entries",
9700
- "operationId": "cfg_dashboard_api_activity_recent_list",
9098
+ "description": "Retrieve activity tracker data (GitHub-style contribution graph)",
9099
+ "operationId": "cfg_dashboard_api_charts_tracker_list",
9701
9100
  "parameters": [
9702
9101
  {
9703
- "description": "Maximum number of entries to return",
9102
+ "description": "Number of weeks to include",
9704
9103
  "in": "query",
9705
- "name": "limit",
9104
+ "name": "weeks",
9706
9105
  "schema": {
9707
- "default": 10,
9106
+ "default": 52,
9708
9107
  "type": "integer"
9709
9108
  }
9710
9109
  }
@@ -9715,7 +9114,7 @@ export const OPENAPI_SCHEMA = {
9715
9114
  "application/json": {
9716
9115
  "schema": {
9717
9116
  "items": {
9718
- "$ref": "#/components/schemas/ActivityEntry"
9117
+ "$ref": "#/components/schemas/ActivityTrackerDay"
9719
9118
  },
9720
9119
  "type": "array"
9721
9120
  }
@@ -9732,34 +9131,26 @@ export const OPENAPI_SCHEMA = {
9732
9131
  "basicAuth": []
9733
9132
  }
9734
9133
  ],
9735
- "summary": "Get recent activity",
9134
+ "summary": "Get activity tracker",
9736
9135
  "tags": [
9737
- "Dashboard - Activity"
9136
+ "Dashboard - Charts"
9738
9137
  ],
9739
9138
  "x-async-capable": false
9740
9139
  }
9741
9140
  },
9742
- "/cfg/dashboard/api/charts/activity/": {
9141
+ "/cfg/dashboard/api/commands/": {
9743
9142
  "get": {
9744
- "description": "Retrieve user activity data for chart visualization",
9745
- "operationId": "cfg_dashboard_api_charts_activity_retrieve",
9746
- "parameters": [
9747
- {
9748
- "description": "Number of days to include",
9749
- "in": "query",
9750
- "name": "days",
9751
- "schema": {
9752
- "default": 7,
9753
- "type": "integer"
9754
- }
9755
- }
9756
- ],
9143
+ "description": "Retrieve all available Django management commands",
9144
+ "operationId": "cfg_dashboard_api_commands_list",
9757
9145
  "responses": {
9758
9146
  "200": {
9759
9147
  "content": {
9760
9148
  "application/json": {
9761
9149
  "schema": {
9762
- "$ref": "#/components/schemas/ChartData"
9150
+ "items": {
9151
+ "$ref": "#/components/schemas/Command"
9152
+ },
9153
+ "type": "array"
9763
9154
  }
9764
9155
  }
9765
9156
  },
@@ -9767,6 +9158,9 @@ export const OPENAPI_SCHEMA = {
9767
9158
  }
9768
9159
  },
9769
9160
  "security": [
9161
+ {
9162
+ "jwtAuth": []
9163
+ },
9770
9164
  {
9771
9165
  "cookieAuth": []
9772
9166
  },
@@ -9774,124 +9168,63 @@ export const OPENAPI_SCHEMA = {
9774
9168
  "basicAuth": []
9775
9169
  }
9776
9170
  ],
9777
- "summary": "Get user activity chart",
9171
+ "summary": "Get all commands",
9778
9172
  "tags": [
9779
- "Dashboard - Charts"
9173
+ "Dashboard - Commands"
9780
9174
  ],
9781
9175
  "x-async-capable": false
9782
9176
  }
9783
9177
  },
9784
- "/cfg/dashboard/api/charts/recent-users/": {
9785
- "get": {
9786
- "description": "Retrieve list of recently registered users",
9787
- "operationId": "cfg_dashboard_api_charts_recent_users_list",
9788
- "parameters": [
9789
- {
9790
- "description": "Maximum number of users to return",
9791
- "in": "query",
9792
- "name": "limit",
9793
- "schema": {
9794
- "default": 10,
9795
- "type": "integer"
9178
+ "/cfg/dashboard/api/commands/execute/": {
9179
+ "post": {
9180
+ "description": "Execute a Django management command and stream output in Server-Sent Events format",
9181
+ "operationId": "cfg_dashboard_api_commands_execute_create",
9182
+ "requestBody": {
9183
+ "content": {
9184
+ "application/json": {
9185
+ "schema": {
9186
+ "$ref": "#/components/schemas/CommandExecuteRequestRequest"
9187
+ }
9188
+ },
9189
+ "application/x-www-form-urlencoded": {
9190
+ "schema": {
9191
+ "$ref": "#/components/schemas/CommandExecuteRequestRequest"
9192
+ }
9193
+ },
9194
+ "multipart/form-data": {
9195
+ "schema": {
9196
+ "$ref": "#/components/schemas/CommandExecuteRequestRequest"
9197
+ }
9796
9198
  }
9797
- }
9798
- ],
9199
+ },
9200
+ "required": true
9201
+ },
9799
9202
  "responses": {
9800
9203
  "200": {
9801
9204
  "content": {
9802
9205
  "application/json": {
9803
9206
  "schema": {
9804
- "items": {
9805
- "$ref": "#/components/schemas/RecentUser"
9806
- },
9807
- "type": "array"
9207
+ "description": "Command execution started (SSE stream)"
9808
9208
  }
9809
9209
  }
9810
9210
  },
9811
9211
  "description": ""
9812
- }
9813
- },
9814
- "security": [
9815
- {
9816
- "cookieAuth": []
9817
9212
  },
9818
- {
9819
- "basicAuth": []
9820
- }
9821
- ],
9822
- "summary": "Get recent users",
9823
- "tags": [
9824
- "Dashboard - Charts"
9825
- ],
9826
- "x-async-capable": false
9827
- }
9828
- },
9829
- "/cfg/dashboard/api/charts/registrations/": {
9830
- "get": {
9831
- "description": "Retrieve user registration data for chart visualization",
9832
- "operationId": "cfg_dashboard_api_charts_registrations_retrieve",
9833
- "parameters": [
9834
- {
9835
- "description": "Number of days to include",
9836
- "in": "query",
9837
- "name": "days",
9838
- "schema": {
9839
- "default": 7,
9840
- "type": "integer"
9841
- }
9842
- }
9843
- ],
9844
- "responses": {
9845
- "200": {
9213
+ "400": {
9846
9214
  "content": {
9847
9215
  "application/json": {
9848
9216
  "schema": {
9849
- "$ref": "#/components/schemas/ChartData"
9217
+ "description": "Invalid request"
9850
9218
  }
9851
9219
  }
9852
9220
  },
9853
9221
  "description": ""
9854
- }
9855
- },
9856
- "security": [
9857
- {
9858
- "cookieAuth": []
9859
9222
  },
9860
- {
9861
- "basicAuth": []
9862
- }
9863
- ],
9864
- "summary": "Get user registration chart",
9865
- "tags": [
9866
- "Dashboard - Charts"
9867
- ],
9868
- "x-async-capable": false
9869
- }
9870
- },
9871
- "/cfg/dashboard/api/charts/tracker/": {
9872
- "get": {
9873
- "description": "Retrieve activity tracker data (GitHub-style contribution graph)",
9874
- "operationId": "cfg_dashboard_api_charts_tracker_list",
9875
- "parameters": [
9876
- {
9877
- "description": "Number of weeks to include",
9878
- "in": "query",
9879
- "name": "weeks",
9880
- "schema": {
9881
- "default": 52,
9882
- "type": "integer"
9883
- }
9884
- }
9885
- ],
9886
- "responses": {
9887
- "200": {
9223
+ "403": {
9888
9224
  "content": {
9889
9225
  "application/json": {
9890
9226
  "schema": {
9891
- "items": {
9892
- "$ref": "#/components/schemas/ActivityTrackerDay"
9893
- },
9894
- "type": "array"
9227
+ "description": "Command not allowed"
9895
9228
  }
9896
9229
  }
9897
9230
  },
@@ -9899,6 +9232,9 @@ export const OPENAPI_SCHEMA = {
9899
9232
  }
9900
9233
  },
9901
9234
  "security": [
9235
+ {
9236
+ "jwtAuth": []
9237
+ },
9902
9238
  {
9903
9239
  "cookieAuth": []
9904
9240
  },
@@ -9906,26 +9242,23 @@ export const OPENAPI_SCHEMA = {
9906
9242
  "basicAuth": []
9907
9243
  }
9908
9244
  ],
9909
- "summary": "Get activity tracker",
9245
+ "summary": "Execute command",
9910
9246
  "tags": [
9911
- "Dashboard - Charts"
9247
+ "Dashboard - Commands"
9912
9248
  ],
9913
9249
  "x-async-capable": false
9914
9250
  }
9915
9251
  },
9916
- "/cfg/dashboard/api/commands/": {
9252
+ "/cfg/dashboard/api/commands/summary/": {
9917
9253
  "get": {
9918
- "description": "Retrieve all available Django management commands",
9919
- "operationId": "cfg_dashboard_api_commands_list",
9254
+ "description": "Retrieve commands summary with statistics and categorization",
9255
+ "operationId": "cfg_dashboard_api_commands_summary_retrieve",
9920
9256
  "responses": {
9921
9257
  "200": {
9922
9258
  "content": {
9923
9259
  "application/json": {
9924
9260
  "schema": {
9925
- "items": {
9926
- "$ref": "#/components/schemas/Command"
9927
- },
9928
- "type": "array"
9261
+ "$ref": "#/components/schemas/CommandsSummary"
9929
9262
  }
9930
9263
  }
9931
9264
  },
@@ -9933,6 +9266,9 @@ export const OPENAPI_SCHEMA = {
9933
9266
  }
9934
9267
  },
9935
9268
  "security": [
9269
+ {
9270
+ "jwtAuth": []
9271
+ },
9936
9272
  {
9937
9273
  "cookieAuth": []
9938
9274
  },
@@ -9940,23 +9276,33 @@ export const OPENAPI_SCHEMA = {
9940
9276
  "basicAuth": []
9941
9277
  }
9942
9278
  ],
9943
- "summary": "Get all commands",
9279
+ "summary": "Get commands summary",
9944
9280
  "tags": [
9945
9281
  "Dashboard - Commands"
9946
9282
  ],
9947
9283
  "x-async-capable": false
9948
9284
  }
9949
9285
  },
9950
- "/cfg/dashboard/api/commands/summary/": {
9286
+ "/cfg/dashboard/api/commands/{id}/help/": {
9951
9287
  "get": {
9952
- "description": "Retrieve commands summary with statistics and categorization",
9953
- "operationId": "cfg_dashboard_api_commands_summary_retrieve",
9288
+ "description": "Get detailed help text for a specific Django management command",
9289
+ "operationId": "cfg_dashboard_api_commands_help_retrieve",
9290
+ "parameters": [
9291
+ {
9292
+ "in": "path",
9293
+ "name": "id",
9294
+ "required": true,
9295
+ "schema": {
9296
+ "type": "string"
9297
+ }
9298
+ }
9299
+ ],
9954
9300
  "responses": {
9955
9301
  "200": {
9956
9302
  "content": {
9957
9303
  "application/json": {
9958
9304
  "schema": {
9959
- "$ref": "#/components/schemas/CommandsSummary"
9305
+ "$ref": "#/components/schemas/CommandHelpResponse"
9960
9306
  }
9961
9307
  }
9962
9308
  },
@@ -9964,6 +9310,9 @@ export const OPENAPI_SCHEMA = {
9964
9310
  }
9965
9311
  },
9966
9312
  "security": [
9313
+ {
9314
+ "jwtAuth": []
9315
+ },
9967
9316
  {
9968
9317
  "cookieAuth": []
9969
9318
  },
@@ -9971,7 +9320,7 @@ export const OPENAPI_SCHEMA = {
9971
9320
  "basicAuth": []
9972
9321
  }
9973
9322
  ],
9974
- "summary": "Get commands summary",
9323
+ "summary": "Get command help",
9975
9324
  "tags": [
9976
9325
  "Dashboard - Commands"
9977
9326
  ],