@polaris-auth/client 0.0.0-stage → 0.6.1

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.
@@ -0,0 +1,15 @@
1
+ /** The `sentinel` plugin's routes as methods of `client.sentinel`. */
2
+ export function sentinel(client) {
3
+ return {
4
+ /** POST /admin/sentinel/ip-rules: Add an IP rule */
5
+ createIpRule: (...init) => client.POST("/admin/sentinel/ip-rules", ...init),
6
+ /** DELETE /admin/sentinel/ip-rules/{id}: Remove an IP rule */
7
+ deleteIpRule: (...init) => client.DELETE("/admin/sentinel/ip-rules/{id}", ...init),
8
+ /** GET /admin/sentinel/decisions: List the sentinel's decisions */
9
+ listDecisions: (...init) => client.GET("/admin/sentinel/decisions", ...init),
10
+ /** GET /admin/sentinel/ip-rules: List the IP rules */
11
+ listIpRules: (...init) => client.GET("/admin/sentinel/ip-rules", ...init),
12
+ /** POST /admin/sentinel/unblock: Clear the counters of an identifier */
13
+ unblock: (...init) => client.POST("/admin/sentinel/unblock", ...init),
14
+ };
15
+ }