@1claw/openapi-spec 0.6.0 → 0.8.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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "1Claw API",
5
- "version": "2.1.0",
5
+ "version": "2.3.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": [
@@ -2983,7 +3020,7 @@
2983
3020
  ],
2984
3021
  "summary": "Set org billing tier (without Stripe)",
2985
3022
  "operationId": "adminSetBillingTier",
2986
- "description": "Manually set an organization's billing tier to free, pro, or business.\nFor testing and manual upgrades — does not create a Stripe subscription.\nSetting to \"pro\" or \"business\" sets period_end to +1 year.\nSetting to \"free\" clears subscription data.\n",
3023
+ "description": "Manually set an organization's billing tier to free, pro, business, or enterprise.\nFor testing, manual upgrades, and trial grants — does not create a Stripe subscription.\nSetting to \"pro\", \"business\", or \"enterprise\" sets period_end to now + duration_days (default 365).\nSetting to \"free\" clears subscription data. Use duration_days: 90 for a 3-month trial.\n",
2987
3024
  "parameters": [
2988
3025
  {
2989
3026
  "name": "org_id",
@@ -5539,8 +5576,15 @@
5539
5576
  "enum": [
5540
5577
  "free",
5541
5578
  "pro",
5542
- "business"
5579
+ "business",
5580
+ "enterprise"
5543
5581
  ]
5582
+ },
5583
+ "duration_days": {
5584
+ "type": "integer",
5585
+ "description": "How many days the tier lasts (default 365). Use 90 for a 3-month trial.",
5586
+ "minimum": 1,
5587
+ "maximum": 3650
5544
5588
  }
5545
5589
  }
5546
5590
  },
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.1.0
5
+ version: 2.3.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
  # ---------------------------------------------------------------------------
@@ -1901,10 +1926,10 @@ paths:
1901
1926
  summary: Set org billing tier (without Stripe)
1902
1927
  operationId: adminSetBillingTier
1903
1928
  description: |
1904
- Manually set an organization's billing tier to free, pro, or business.
1905
- For testing and manual upgrades — does not create a Stripe subscription.
1906
- Setting to "pro" or "business" sets period_end to +1 year.
1907
- Setting to "free" clears subscription data.
1929
+ Manually set an organization's billing tier to free, pro, business, or enterprise.
1930
+ For testing, manual upgrades, and trial grants — does not create a Stripe subscription.
1931
+ Setting to "pro", "business", or "enterprise" sets period_end to now + duration_days (default 365).
1932
+ Setting to "free" clears subscription data. Use duration_days: 90 for a 3-month trial.
1908
1933
  parameters:
1909
1934
  - name: org_id
1910
1935
  in: path
@@ -3670,7 +3695,12 @@ components:
3670
3695
  properties:
3671
3696
  tier:
3672
3697
  type: string
3673
- enum: [free, pro, business]
3698
+ enum: [free, pro, business, enterprise]
3699
+ duration_days:
3700
+ type: integer
3701
+ description: How many days the tier lasts (default 365). Use 90 for a 3-month trial.
3702
+ minimum: 1
3703
+ maximum: 3650
3674
3704
 
3675
3705
  # --- x402 ---
3676
3706
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1claw/openapi-spec",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "OpenAPI 3.1.0 specification for the 1Claw Vault API — generate clients in any language",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "repository": {