@djangocfg/api 2.1.360 → 2.1.362
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.
- package/dist/auth-server.cjs +1 -0
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +1 -0
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +1 -0
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +1 -0
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +1 -0
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.mjs +1 -0
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +1 -0
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.mjs +1 -0
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/_cfg_accounts/openapi.json +1811 -0
- package/src/_api/generated/_cfg_centrifugo/openapi.json +132 -0
- package/src/_api/generated/_cfg_totp/openapi.json +927 -0
- package/src/_api/generated/helpers/auth.ts +13 -2
- package/src/_api/generated/openapi.json +2789 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Django CFG API",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": "RESTful API with modern architecture"
|
|
7
|
+
},
|
|
8
|
+
"paths": {
|
|
9
|
+
"/cfg/centrifugo/auth/token/": {
|
|
10
|
+
"get": {
|
|
11
|
+
"operationId": "cfg_centrifugo_auth_token_retrieve",
|
|
12
|
+
"description": "Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.",
|
|
13
|
+
"summary": "Get Centrifugo connection token",
|
|
14
|
+
"tags": [
|
|
15
|
+
"cfg_centrifugo"
|
|
16
|
+
],
|
|
17
|
+
"security": [
|
|
18
|
+
{
|
|
19
|
+
"apiKeyAuth": []
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"jwtAuthWithLastLogin": []
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"responses": {
|
|
26
|
+
"200": {
|
|
27
|
+
"content": {
|
|
28
|
+
"application/json": {
|
|
29
|
+
"schema": {
|
|
30
|
+
"$ref": "#/components/schemas/ConnectionTokenResponse"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"description": ""
|
|
35
|
+
},
|
|
36
|
+
"401": {
|
|
37
|
+
"content": {
|
|
38
|
+
"application/json": {
|
|
39
|
+
"schema": {
|
|
40
|
+
"description": "Unauthorized - authentication required"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"description": ""
|
|
45
|
+
},
|
|
46
|
+
"500": {
|
|
47
|
+
"content": {
|
|
48
|
+
"application/json": {
|
|
49
|
+
"schema": {
|
|
50
|
+
"description": "Server error"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"description": ""
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"x-async-capable": false
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"components": {
|
|
62
|
+
"schemas": {
|
|
63
|
+
"ConnectionTokenResponse": {
|
|
64
|
+
"description": "Response model for Centrifugo connection token.",
|
|
65
|
+
"properties": {
|
|
66
|
+
"token": {
|
|
67
|
+
"description": "JWT token for Centrifugo connection",
|
|
68
|
+
"title": "Token",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"centrifugo_url": {
|
|
72
|
+
"description": "Centrifugo WebSocket URL",
|
|
73
|
+
"title": "Centrifugo Url",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"expires_at": {
|
|
77
|
+
"description": "Token expiration time (ISO 8601)",
|
|
78
|
+
"title": "Expires At",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"channels": {
|
|
82
|
+
"description": "List of allowed channels",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"title": "Channels",
|
|
87
|
+
"type": "array"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"token",
|
|
92
|
+
"centrifugo_url",
|
|
93
|
+
"expires_at",
|
|
94
|
+
"channels"
|
|
95
|
+
],
|
|
96
|
+
"title": "ConnectionTokenResponse",
|
|
97
|
+
"type": "object"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"securitySchemes": {
|
|
101
|
+
"apiKeyAuth": {
|
|
102
|
+
"type": "apiKey",
|
|
103
|
+
"in": "header",
|
|
104
|
+
"name": "X-API-Key"
|
|
105
|
+
},
|
|
106
|
+
"basicAuth": {
|
|
107
|
+
"type": "http",
|
|
108
|
+
"scheme": "basic"
|
|
109
|
+
},
|
|
110
|
+
"cookieAuth": {
|
|
111
|
+
"type": "apiKey",
|
|
112
|
+
"in": "cookie",
|
|
113
|
+
"name": "sessionid"
|
|
114
|
+
},
|
|
115
|
+
"jwtAuth": {
|
|
116
|
+
"type": "http",
|
|
117
|
+
"scheme": "bearer",
|
|
118
|
+
"bearerFormat": "JWT"
|
|
119
|
+
},
|
|
120
|
+
"jwtAuthWithLastLogin": {
|
|
121
|
+
"type": "http",
|
|
122
|
+
"scheme": "bearer",
|
|
123
|
+
"bearerFormat": "JWT"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"servers": [
|
|
128
|
+
{
|
|
129
|
+
"url": "http://localhost:8000"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|