@polaris-auth/client 0.8.0 → 0.10.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/agents.d.ts +9189 -0
- package/dist/agents.js +51 -0
- package/dist/api-keys.d.ts +2657 -0
- package/dist/api-keys.js +19 -0
- package/dist/index.d.ts +18 -2
- package/dist/index.js +13 -1
- package/dist/mcp.d.ts +456 -0
- package/dist/mcp.js +9 -0
- package/dist/oauth.d.ts +8556 -0
- package/dist/oauth.js +57 -0
- package/openapi.json +10913 -1
- package/package.json +16 -2
- package/src/agents.ts +58 -0
- package/src/api-keys.ts +26 -0
- package/src/index.ts +22 -2
- package/src/mcp.ts +16 -0
- package/src/oauth.ts +64 -0
- package/src/schema.d.ts +10537 -4370
package/dist/agents.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** The `agents` plugin's routes as methods of `client.agents`. */
|
|
2
|
+
export function agents(client) {
|
|
3
|
+
return {
|
|
4
|
+
/** GET /admin/agents: List every agent */
|
|
5
|
+
adminListAgents: (...init) => client.GET("/admin/agents", ...init),
|
|
6
|
+
/** POST /admin/agents/{id}/revoke: Revoke an agent as an operator */
|
|
7
|
+
adminRevokeAgent: (...init) => client.POST("/admin/agents/{id}/revoke", ...init),
|
|
8
|
+
/** GET /agents/capabilities: List the capabilities */
|
|
9
|
+
capabilities: (...init) => client.GET("/agents/capabilities", ...init),
|
|
10
|
+
/** GET /.well-known/agent-configuration: Agent protocol discovery */
|
|
11
|
+
configuration: (...init) => client.GET("/.well-known/agent-configuration", ...init),
|
|
12
|
+
/** POST /agents/hosts: Create a host */
|
|
13
|
+
createHost: (...init) => client.POST("/agents/hosts", ...init),
|
|
14
|
+
/** POST /agents/approvals/{id}/decide: Approve or deny a grant request */
|
|
15
|
+
decideApproval: (...init) => client.POST("/agents/approvals/{id}/decide", ...init),
|
|
16
|
+
/** DELETE /agents/grants/{id}: Revoke a grant */
|
|
17
|
+
deleteGrant: (...init) => client.DELETE("/agents/grants/{id}", ...init),
|
|
18
|
+
/** DELETE /agents/hosts/{id}: Revoke a host */
|
|
19
|
+
deleteHost: (...init) => client.DELETE("/agents/hosts/{id}", ...init),
|
|
20
|
+
/** POST /agents/enroll: Enrol an agent through a host */
|
|
21
|
+
enroll: (...init) => client.POST("/agents/enroll", ...init),
|
|
22
|
+
/** POST /agents/execute: Execute a capability */
|
|
23
|
+
execute: (...init) => client.POST("/agents/execute", ...init),
|
|
24
|
+
/** GET /agents: List my agents */
|
|
25
|
+
listAgents: (...init) => client.GET("/agents", ...init),
|
|
26
|
+
/** GET /agents/approvals: List pending approvals */
|
|
27
|
+
listApprovals: (...init) => client.GET("/agents/approvals", ...init),
|
|
28
|
+
/** GET /agents/hosts: List my hosts */
|
|
29
|
+
listHosts: (...init) => client.GET("/agents/hosts", ...init),
|
|
30
|
+
/** GET /agents/{id}/receipts: List an agent's receipts */
|
|
31
|
+
listReceipts: (...init) => client.GET("/agents/{id}/receipts", ...init),
|
|
32
|
+
/** GET /agents/approvals/code: Read the approval behind a user code */
|
|
33
|
+
readApproval: (...init) => client.GET("/agents/approvals/code", ...init),
|
|
34
|
+
/** POST /agents/register: Register an agent */
|
|
35
|
+
register: (...init) => client.POST("/agents/register", ...init),
|
|
36
|
+
/** POST /agents/grants/request: Request capability grants */
|
|
37
|
+
requestGrants: (...init) => client.POST("/agents/grants/request", ...init),
|
|
38
|
+
/** POST /agents/{id}/resume: Resume an agent */
|
|
39
|
+
resume: (...init) => client.POST("/agents/{id}/resume", ...init),
|
|
40
|
+
/** POST /agents/{id}/revoke: Revoke an agent */
|
|
41
|
+
revoke: (...init) => client.POST("/agents/{id}/revoke", ...init),
|
|
42
|
+
/** GET /agents/session: The agent's session */
|
|
43
|
+
session: (...init) => client.GET("/agents/session", ...init),
|
|
44
|
+
/** GET /agents/{id}: Read an agent */
|
|
45
|
+
showAgent: (...init) => client.GET("/agents/{id}", ...init),
|
|
46
|
+
/** POST /agents/{id}/suspend: Suspend an agent */
|
|
47
|
+
suspend: (...init) => client.POST("/agents/{id}/suspend", ...init),
|
|
48
|
+
/** GET /agents/receipts/{id}/verify: Verify a receipt */
|
|
49
|
+
verifyReceipt: (...init) => client.GET("/agents/receipts/{id}/verify", ...init),
|
|
50
|
+
};
|
|
51
|
+
}
|