@1claw/openapi-spec 0.30.0 → 0.31.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/README.md CHANGED
@@ -40,7 +40,16 @@ openapi-generator generate \
40
40
  import spec from "@1claw/openapi-spec/openapi.json";
41
41
  ```
42
42
 
43
- ## What's in the spec (v0.28.0 — API `info.version` 2.15.0)
43
+ ## What's in the spec (v0.31.0 — API `info.version` 2.17.0)
44
+
45
+ ### CDP parity & embedded wallet (2.16+)
46
+ - **Deposit destinations** — `POST/GET/PATCH /v1/deposit-destinations`, `GET /v1/deposit-destinations/{id}`
47
+ - **Internal accounts** — `POST/GET /v1/internal-accounts`, `POST /v1/internal-transfers` (supports `Idempotency-Key`), `GET /v1/internal-accounts/{id}/ledger`
48
+ - **Fiat ramps** — `POST /v1/fiat/onramp/session`, `POST /v1/fiat/offramp/initiate`, `POST /v1/fiat/webhooks` (MoonPay signature required in production)
49
+ - **Social login** — `POST /v1/auth/social-login` (Google/Apple ID tokens with audience validation; Discord authorization code + `oauth_redirect_uri`; no email auto-linking — 409 on conflict)
50
+ - **Passkey tx auth** — `POST /v1/auth/passkeys/tx-assert/begin|complete` → `X-Passkey-Token` (+ optional `X-Passkey-Tx-Digest`) on treasury send
51
+
52
+ ### Core API (summary)
44
53
 
45
54
  - **OIDC Federation (1claw as IdP)** — `GET /.well-known/openid-configuration` (public discovery: issuer, jwks_uri, supported algs `["EdDSA","RS256"]`, supported grant types incl. token-exchange), `GET /.well-known/jwks.json` (public JWKS — every active EdDSA + RS256 key version, keyed by deterministic `kid`), `POST /v1/auth/federated-token` (RFC 8693 token exchange — accepts JSON or `application/x-www-form-urlencoded`; subject token is an agent JWT or `ocv_` API key; returns RS256 JWT scoped to `audience`). Agent fields: `federation_enabled`, `federation_audiences[]`, `federated_token_ttl_seconds`. Designed for Anthropic Workload Identity Federation, GCP STS, AWS STS, etc.
46
55
  - **Auth — agent JWT** — `POST /v1/auth/agent-token` documents optional JWT claim **`shroud_config`** when the agent has Shroud enabled (mirrors DB; consumed by Shroud PolicyEngine on LLM requests). Re-exchange after changing agent Shroud settings. Federation tokens use a separate KMS RSA-2048 key and are signed RS256.
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.16.0",
5
+ "version": "2.17.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"
@@ -8054,7 +8054,18 @@
8054
8054
  ]
8055
8055
  },
8056
8056
  "id_token": {
8057
- "type": "string"
8057
+ "type": "string",
8058
+ "description": "Google/Apple ID token, or Discord OAuth authorization code"
8059
+ },
8060
+ "oauth_redirect_uri": {
8061
+ "type": "string",
8062
+ "description": "Required for Discord — must match the redirect URI used in the OAuth flow"
8063
+ },
8064
+ "auto_provision_chains": {
8065
+ "type": "array",
8066
+ "items": {
8067
+ "type": "string"
8068
+ }
8058
8069
  }
8059
8070
  }
8060
8071
  }
@@ -8067,6 +8078,12 @@
8067
8078
  },
8068
8079
  "201": {
8069
8080
  "description": "New user created"
8081
+ },
8082
+ "401": {
8083
+ "description": "Invalid or unverified token"
8084
+ },
8085
+ "409": {
8086
+ "description": "Email already registered (no auto-linking)"
8070
8087
  }
8071
8088
  }
8072
8089
  }
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.16.0
5
+ version: 2.17.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,
@@ -5150,12 +5150,24 @@ paths:
5150
5150
  required: [provider, id_token]
5151
5151
  properties:
5152
5152
  provider: { type: string, enum: [google, apple, discord] }
5153
- id_token: { type: string }
5153
+ id_token:
5154
+ type: string
5155
+ description: Google/Apple ID token, or Discord OAuth authorization code
5156
+ oauth_redirect_uri:
5157
+ type: string
5158
+ description: Required for Discord — must match the redirect URI used in the OAuth flow
5159
+ auto_provision_chains:
5160
+ type: array
5161
+ items: { type: string }
5154
5162
  responses:
5155
5163
  "200":
5156
5164
  description: Login successful
5157
5165
  "201":
5158
5166
  description: New user created
5167
+ "409":
5168
+ description: Email already registered (no auto-linking)
5169
+ "401":
5170
+ description: Invalid or unverified token
5159
5171
 
5160
5172
  /v1/auth/passkeys/tx-assert/begin:
5161
5173
  post:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1claw/openapi-spec",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "OpenAPI 3.1.0 specification for the 1Claw Vault API — generate clients in any language",
5
5
  "license": "MIT",
6
6
  "repository": {