@polaris-auth/client 0.8.0 → 0.9.0
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/api-keys.d.ts +2657 -0
- package/dist/api-keys.js +19 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.js +7 -1
- package/dist/oauth.d.ts +8556 -0
- package/dist/oauth.js +57 -0
- package/openapi.json +5444 -1
- package/package.json +12 -2
- package/src/api-keys.ts +26 -0
- package/src/index.ts +12 -2
- package/src/oauth.ts +64 -0
- package/src/schema.d.ts +7451 -4337
package/dist/oauth.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** The `oauth` plugin's routes as methods of `client.oauth`. */
|
|
2
|
+
export function oauth(client) {
|
|
3
|
+
return {
|
|
4
|
+
/** POST /admin/oauth/clients: Register an OAuth client as an operator */
|
|
5
|
+
adminCreateClient: (...init) => client.POST("/admin/oauth/clients", ...init),
|
|
6
|
+
/** DELETE /admin/oauth/clients/{id}: Delete an OAuth client as an operator */
|
|
7
|
+
adminDeleteClient: (...init) => client.DELETE("/admin/oauth/clients/{id}", ...init),
|
|
8
|
+
/** GET /admin/oauth/clients: List every OAuth client */
|
|
9
|
+
adminListClients: (...init) => client.GET("/admin/oauth/clients", ...init),
|
|
10
|
+
/** GET /.well-known/oauth-authorization-server: Authorization server metadata */
|
|
11
|
+
authorizationServer: (...init) => client.GET("/.well-known/oauth-authorization-server", ...init),
|
|
12
|
+
/** GET /oauth2/authorize: Start an authorization (consent) request */
|
|
13
|
+
authorize: (...init) => client.GET("/oauth2/authorize", ...init),
|
|
14
|
+
/** POST /oauth2/ciba: Backchannel authentication request */
|
|
15
|
+
ciba: (...init) => client.POST("/oauth2/ciba", ...init),
|
|
16
|
+
/** POST /oauth2/ciba/{id}/decide: Approve or refuse a backchannel request */
|
|
17
|
+
cibaDecide: (...init) => client.POST("/oauth2/ciba/{id}/decide", ...init),
|
|
18
|
+
/** GET /oauth2/ciba/pending: List pending backchannel requests */
|
|
19
|
+
cibaPending: (...init) => client.GET("/oauth2/ciba/pending", ...init),
|
|
20
|
+
/** DELETE /oauth2/consents/{clientId}: Revoke a consent */
|
|
21
|
+
consentRevoke: (...init) => client.DELETE("/oauth2/consents/{clientId}", ...init),
|
|
22
|
+
/** GET /oauth2/consents: List your consents */
|
|
23
|
+
consentsList: (...init) => client.GET("/oauth2/consents", ...init),
|
|
24
|
+
/** POST /orgs/{id}/oauth/clients: Register an OAuth client for the organization */
|
|
25
|
+
createClient: (...init) => client.POST("/orgs/{id}/oauth/clients", ...init),
|
|
26
|
+
/** POST /oauth2/authorize/decision: Approve or refuse an authorization request */
|
|
27
|
+
decision: (...init) => client.POST("/oauth2/authorize/decision", ...init),
|
|
28
|
+
/** DELETE /orgs/{id}/oauth/clients/{clientId}: Delete an OAuth client of the organization */
|
|
29
|
+
deleteClient: (...init) => client.DELETE("/orgs/{id}/oauth/clients/{clientId}", ...init),
|
|
30
|
+
/** POST /oauth2/device/approve: Approve or refuse a device */
|
|
31
|
+
deviceApprove: (...init) => client.POST("/oauth2/device/approve", ...init),
|
|
32
|
+
/** POST /oauth2/device/code: Start the device flow */
|
|
33
|
+
deviceCode: (...init) => client.POST("/oauth2/device/code", ...init),
|
|
34
|
+
/** GET /oauth2/device/verify: Read the device behind a user code */
|
|
35
|
+
deviceVerify: (...init) => client.GET("/oauth2/device/verify", ...init),
|
|
36
|
+
/** POST /oauth2/introspect: Introspect a token */
|
|
37
|
+
introspect: (...init) => client.POST("/oauth2/introspect", ...init),
|
|
38
|
+
/** GET /orgs/{id}/oauth/clients: List the organization's OAuth clients */
|
|
39
|
+
listClients: (...init) => client.GET("/orgs/{id}/oauth/clients", ...init),
|
|
40
|
+
/** GET /.well-known/openid-configuration: OpenID Connect Discovery */
|
|
41
|
+
openIdConfiguration: (...init) => client.GET("/.well-known/openid-configuration", ...init),
|
|
42
|
+
/** GET /orgs/{id}/oauth/clients/{clientId}: Read an OAuth client of the organization */
|
|
43
|
+
readClient: (...init) => client.GET("/orgs/{id}/oauth/clients/{clientId}", ...init),
|
|
44
|
+
/** POST /oauth2/register: Register a client (RFC 7591) */
|
|
45
|
+
register: (...init) => client.POST("/oauth2/register", ...init),
|
|
46
|
+
/** POST /oauth2/revoke: Revoke a token */
|
|
47
|
+
revoke: (...init) => client.POST("/oauth2/revoke", ...init),
|
|
48
|
+
/** POST /oauth2/token: Issue tokens */
|
|
49
|
+
token: (...init) => client.POST("/oauth2/token", ...init),
|
|
50
|
+
/** PATCH /orgs/{id}/oauth/clients/{clientId}: Update an OAuth client of the organization */
|
|
51
|
+
updateClient: (...init) => client.PATCH("/orgs/{id}/oauth/clients/{clientId}", ...init),
|
|
52
|
+
/** GET /oauth2/userinfo: The user's OpenID claims */
|
|
53
|
+
userinfo: (...init) => client.GET("/oauth2/userinfo", ...init),
|
|
54
|
+
/** POST /oauth2/userinfo: The user's OpenID claims (POST) */
|
|
55
|
+
userinfoPost: (...init) => client.POST("/oauth2/userinfo", ...init),
|
|
56
|
+
};
|
|
57
|
+
}
|