@1claw/openapi-spec 0.5.0 → 0.7.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/openapi.json +38 -1
- package/openapi.yaml +26 -1
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "1Claw API",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.2.0",
|
|
6
6
|
"description": "Secure secret management for AI agents. Provides vaults, secrets,\npolicy-based access control, agent identity, Intents API,\nsharing, billing, and audit logging.\n\nAll endpoints require JWT Bearer authentication unless marked with\n`security: []`.\n",
|
|
7
7
|
"contact": {
|
|
8
8
|
"email": "ops@1claw.xyz"
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
{
|
|
17
17
|
"url": "https://api.1claw.xyz",
|
|
18
18
|
"description": "Production"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"url": "https://shroud.1claw.xyz",
|
|
22
|
+
"description": "Shroud TEE Proxy (Intents API + LLM proxy)"
|
|
19
23
|
}
|
|
20
24
|
],
|
|
21
25
|
"security": [
|
|
@@ -1594,6 +1598,39 @@
|
|
|
1594
1598
|
}
|
|
1595
1599
|
}
|
|
1596
1600
|
},
|
|
1601
|
+
"/v1/agents/{agent_id}/rotate-identity-keys": {
|
|
1602
|
+
"post": {
|
|
1603
|
+
"tags": [
|
|
1604
|
+
"Agents"
|
|
1605
|
+
],
|
|
1606
|
+
"summary": "Rotate agent identity keys (SSH + ECDH)",
|
|
1607
|
+
"description": "Rotates the agent's Ed25519 SSH keypair and P-256 ECDH keypair.\nNew private keys are stored in the __agent-keys vault; old keys are overwritten.\nUser-only endpoint — agents cannot rotate their own identity keys.\n",
|
|
1608
|
+
"operationId": "rotateAgentIdentityKeys",
|
|
1609
|
+
"parameters": [
|
|
1610
|
+
{
|
|
1611
|
+
"$ref": "#/components/parameters/AgentId"
|
|
1612
|
+
}
|
|
1613
|
+
],
|
|
1614
|
+
"responses": {
|
|
1615
|
+
"200": {
|
|
1616
|
+
"description": "Agent with updated public keys",
|
|
1617
|
+
"content": {
|
|
1618
|
+
"application/json": {
|
|
1619
|
+
"schema": {
|
|
1620
|
+
"$ref": "#/components/schemas/AgentResponse"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
"403": {
|
|
1626
|
+
"$ref": "#/components/responses/Forbidden"
|
|
1627
|
+
},
|
|
1628
|
+
"404": {
|
|
1629
|
+
"$ref": "#/components/responses/NotFound"
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1597
1634
|
"/v1/agents/{agent_id}/transactions": {
|
|
1598
1635
|
"post": {
|
|
1599
1636
|
"tags": [
|
package/openapi.yaml
CHANGED
|
@@ -2,7 +2,7 @@ openapi: 3.1.0
|
|
|
2
2
|
|
|
3
3
|
info:
|
|
4
4
|
title: 1Claw API
|
|
5
|
-
version: 2.
|
|
5
|
+
version: 2.2.0
|
|
6
6
|
description: |
|
|
7
7
|
Secure secret management for AI agents. Provides vaults, secrets,
|
|
8
8
|
policy-based access control, agent identity, Intents API,
|
|
@@ -18,6 +18,8 @@ servers:
|
|
|
18
18
|
description: Development
|
|
19
19
|
- url: https://api.1claw.xyz
|
|
20
20
|
description: Production
|
|
21
|
+
- url: https://shroud.1claw.xyz
|
|
22
|
+
description: Shroud TEE Proxy (Intents API + LLM proxy)
|
|
21
23
|
|
|
22
24
|
security:
|
|
23
25
|
- BearerAuth: []
|
|
@@ -1014,6 +1016,29 @@ paths:
|
|
|
1014
1016
|
"404":
|
|
1015
1017
|
$ref: "#/components/responses/NotFound"
|
|
1016
1018
|
|
|
1019
|
+
/v1/agents/{agent_id}/rotate-identity-keys:
|
|
1020
|
+
post:
|
|
1021
|
+
tags: [Agents]
|
|
1022
|
+
summary: Rotate agent identity keys (SSH + ECDH)
|
|
1023
|
+
description: |
|
|
1024
|
+
Rotates the agent's Ed25519 SSH keypair and P-256 ECDH keypair.
|
|
1025
|
+
New private keys are stored in the __agent-keys vault; old keys are overwritten.
|
|
1026
|
+
User-only endpoint — agents cannot rotate their own identity keys.
|
|
1027
|
+
operationId: rotateAgentIdentityKeys
|
|
1028
|
+
parameters:
|
|
1029
|
+
- $ref: "#/components/parameters/AgentId"
|
|
1030
|
+
responses:
|
|
1031
|
+
"200":
|
|
1032
|
+
description: Agent with updated public keys
|
|
1033
|
+
content:
|
|
1034
|
+
application/json:
|
|
1035
|
+
schema:
|
|
1036
|
+
$ref: "#/components/schemas/AgentResponse"
|
|
1037
|
+
"403":
|
|
1038
|
+
$ref: "#/components/responses/Forbidden"
|
|
1039
|
+
"404":
|
|
1040
|
+
$ref: "#/components/responses/NotFound"
|
|
1041
|
+
|
|
1017
1042
|
# ---------------------------------------------------------------------------
|
|
1018
1043
|
# Transactions (Intents API)
|
|
1019
1044
|
# ---------------------------------------------------------------------------
|
package/package.json
CHANGED