@1claw/openapi-spec 0.36.0 → 0.37.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 +2 -1
- package/openapi.json +48 -1
- package/openapi.yaml +58 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,7 +43,8 @@ import spec from "@1claw/openapi-spec/openapi.json";
|
|
|
43
43
|
## What's in the spec (v0.36.0 — API `info.version` 2.23.0)
|
|
44
44
|
|
|
45
45
|
### Non-EVM transaction signing (2.23)
|
|
46
|
-
- **Intents API** — `SubmitTransactionRequest` / `SignTransactionRequest` extended with non-EVM fields: `destination_tag` (XRP), `memo`, `fee_rate_sat_per_vbyte` (Bitcoin), `fee_limit_sun` (Tron), `token_mint` / `token_decimals` (Solana SPL + Tron TRC-20), `ttl` (Cardano). Native sign + broadcast for Bitcoin, Solana, XRP, Cardano, Tron.
|
|
46
|
+
- **Intents API** — `SubmitTransactionRequest` / `SignTransactionRequest` / `SignIntentRequest` extended with non-EVM fields: `destination_tag` (XRP), `memo`, `fee_rate_sat_per_vbyte` (Bitcoin), `fee_limit_sun` (Tron), `token_mint` / `token_decimals` (Solana SPL + Tron TRC-20), `ttl` (Cardano). Native sign + broadcast for Bitcoin, Solana, XRP, Cardano, Tron.
|
|
47
|
+
- **`xrpl_tx_json`** — Optional raw XRPL transaction JSON for 30+ transaction types beyond simple Payment. Supported types include TrustSet, OfferCreate, OfferCancel, AccountSet, AccountDelete, EscrowCreate/Finish/Cancel, PaymentChannelCreate/Fund/Claim, NFTokenMint/Burn/CreateOffer/AcceptOffer/CancelOffer, AMMCreate/Deposit/Withdraw/Bid/Delete/Vote, SetRegularKey, SignerListSet, DepositPreauth, CheckCreate/Cash/Cancel, TicketCreate, Clawback. Server auto-fills `Account`, `Sequence`, `Fee`, `Flags`, `LastLedgerSequence`, `SigningPubKey`. Legacy `to`/`value`/`destination_tag` Payment path preserved for backward compatibility.
|
|
47
48
|
|
|
48
49
|
### Risk Engine & DPoP (2.19)
|
|
49
50
|
- **Risk events** — `GET /v1/risk/events` (list, filterable by severity/principal_type)
|
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.24.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"
|
|
@@ -11841,6 +11841,11 @@
|
|
|
11841
11841
|
"ttl": {
|
|
11842
11842
|
"type": "integer",
|
|
11843
11843
|
"description": "Non-EVM (Cardano): transaction time-to-live (absolute slot)"
|
|
11844
|
+
},
|
|
11845
|
+
"xrpl_tx_json": {
|
|
11846
|
+
"type": "object",
|
|
11847
|
+
"additionalProperties": true,
|
|
11848
|
+
"description": "Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent.\n"
|
|
11844
11849
|
}
|
|
11845
11850
|
}
|
|
11846
11851
|
},
|
|
@@ -11918,6 +11923,11 @@
|
|
|
11918
11923
|
"ttl": {
|
|
11919
11924
|
"type": "integer",
|
|
11920
11925
|
"description": "Non-EVM (Cardano): transaction time-to-live (absolute slot)"
|
|
11926
|
+
},
|
|
11927
|
+
"xrpl_tx_json": {
|
|
11928
|
+
"type": "object",
|
|
11929
|
+
"additionalProperties": true,
|
|
11930
|
+
"description": "Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent.\n"
|
|
11921
11931
|
}
|
|
11922
11932
|
}
|
|
11923
11933
|
},
|
|
@@ -12259,6 +12269,43 @@
|
|
|
12259
12269
|
"items": {
|
|
12260
12270
|
"type": "object"
|
|
12261
12271
|
}
|
|
12272
|
+
},
|
|
12273
|
+
"sign_only": {
|
|
12274
|
+
"type": "boolean",
|
|
12275
|
+
"description": "When true, sign only (do not broadcast). Non-EVM transaction intents only."
|
|
12276
|
+
},
|
|
12277
|
+
"destination_tag": {
|
|
12278
|
+
"type": "integer",
|
|
12279
|
+
"description": "Non-EVM (XRP): destination tag for exchange deposits"
|
|
12280
|
+
},
|
|
12281
|
+
"memo": {
|
|
12282
|
+
"type": "string",
|
|
12283
|
+
"description": "Non-EVM (XRP, Solana): optional memo"
|
|
12284
|
+
},
|
|
12285
|
+
"fee_rate_sat_per_vbyte": {
|
|
12286
|
+
"type": "integer",
|
|
12287
|
+
"description": "Non-EVM (Bitcoin): override the fetched fee rate (sat/vByte)"
|
|
12288
|
+
},
|
|
12289
|
+
"fee_limit_sun": {
|
|
12290
|
+
"type": "integer",
|
|
12291
|
+
"description": "Non-EVM (Tron): TRC-20 energy fee limit in sun"
|
|
12292
|
+
},
|
|
12293
|
+
"token_mint": {
|
|
12294
|
+
"type": "string",
|
|
12295
|
+
"description": "Non-EVM (Solana SPL / Tron TRC-20): token mint or contract address; omit for native transfer"
|
|
12296
|
+
},
|
|
12297
|
+
"token_decimals": {
|
|
12298
|
+
"type": "integer",
|
|
12299
|
+
"description": "Non-EVM (Solana, Tron): token decimals (default 6)"
|
|
12300
|
+
},
|
|
12301
|
+
"ttl": {
|
|
12302
|
+
"type": "integer",
|
|
12303
|
+
"description": "Non-EVM (Cardano): transaction time-to-live (absolute slot)"
|
|
12304
|
+
},
|
|
12305
|
+
"xrpl_tx_json": {
|
|
12306
|
+
"type": "object",
|
|
12307
|
+
"additionalProperties": true,
|
|
12308
|
+
"description": "Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent.\n"
|
|
12262
12309
|
}
|
|
12263
12310
|
}
|
|
12264
12311
|
},
|
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.24.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,
|
|
@@ -7722,6 +7722,17 @@ components:
|
|
|
7722
7722
|
ttl:
|
|
7723
7723
|
type: integer
|
|
7724
7724
|
description: "Non-EVM (Cardano): transaction time-to-live (absolute slot)"
|
|
7725
|
+
xrpl_tx_json:
|
|
7726
|
+
type: object
|
|
7727
|
+
additionalProperties: true
|
|
7728
|
+
description: >
|
|
7729
|
+
Raw XRPL transaction JSON for full transaction type coverage.
|
|
7730
|
+
When present (and chain is XRP), the handler uses the xrpl-rust
|
|
7731
|
+
binary codec to encode and sign the transaction as-is. Supports
|
|
7732
|
+
all XRPL transaction types: Payment, TrustSet, OfferCreate,
|
|
7733
|
+
OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate,
|
|
7734
|
+
and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and
|
|
7735
|
+
SigningPubKey are auto-filled when absent.
|
|
7725
7736
|
|
|
7726
7737
|
SignTransactionRequest:
|
|
7727
7738
|
type: object
|
|
@@ -7776,6 +7787,17 @@ components:
|
|
|
7776
7787
|
ttl:
|
|
7777
7788
|
type: integer
|
|
7778
7789
|
description: "Non-EVM (Cardano): transaction time-to-live (absolute slot)"
|
|
7790
|
+
xrpl_tx_json:
|
|
7791
|
+
type: object
|
|
7792
|
+
additionalProperties: true
|
|
7793
|
+
description: >
|
|
7794
|
+
Raw XRPL transaction JSON for full transaction type coverage.
|
|
7795
|
+
When present (and chain is XRP), the handler uses the xrpl-rust
|
|
7796
|
+
binary codec to encode and sign the transaction as-is. Supports
|
|
7797
|
+
all XRPL transaction types: Payment, TrustSet, OfferCreate,
|
|
7798
|
+
OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate,
|
|
7799
|
+
and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and
|
|
7800
|
+
SigningPubKey are auto-filled when absent.
|
|
7779
7801
|
|
|
7780
7802
|
SignTransactionResponse:
|
|
7781
7803
|
type: object
|
|
@@ -8013,6 +8035,41 @@ components:
|
|
|
8013
8035
|
type: array
|
|
8014
8036
|
items:
|
|
8015
8037
|
type: object
|
|
8038
|
+
sign_only:
|
|
8039
|
+
type: boolean
|
|
8040
|
+
description: "When true, sign only (do not broadcast). Non-EVM transaction intents only."
|
|
8041
|
+
destination_tag:
|
|
8042
|
+
type: integer
|
|
8043
|
+
description: "Non-EVM (XRP): destination tag for exchange deposits"
|
|
8044
|
+
memo:
|
|
8045
|
+
type: string
|
|
8046
|
+
description: "Non-EVM (XRP, Solana): optional memo"
|
|
8047
|
+
fee_rate_sat_per_vbyte:
|
|
8048
|
+
type: integer
|
|
8049
|
+
description: "Non-EVM (Bitcoin): override the fetched fee rate (sat/vByte)"
|
|
8050
|
+
fee_limit_sun:
|
|
8051
|
+
type: integer
|
|
8052
|
+
description: "Non-EVM (Tron): TRC-20 energy fee limit in sun"
|
|
8053
|
+
token_mint:
|
|
8054
|
+
type: string
|
|
8055
|
+
description: "Non-EVM (Solana SPL / Tron TRC-20): token mint or contract address; omit for native transfer"
|
|
8056
|
+
token_decimals:
|
|
8057
|
+
type: integer
|
|
8058
|
+
description: "Non-EVM (Solana, Tron): token decimals (default 6)"
|
|
8059
|
+
ttl:
|
|
8060
|
+
type: integer
|
|
8061
|
+
description: "Non-EVM (Cardano): transaction time-to-live (absolute slot)"
|
|
8062
|
+
xrpl_tx_json:
|
|
8063
|
+
type: object
|
|
8064
|
+
additionalProperties: true
|
|
8065
|
+
description: >
|
|
8066
|
+
Raw XRPL transaction JSON for full transaction type coverage.
|
|
8067
|
+
When present (and chain is XRP), the handler uses the xrpl-rust
|
|
8068
|
+
binary codec to encode and sign the transaction as-is. Supports
|
|
8069
|
+
all XRPL transaction types: Payment, TrustSet, OfferCreate,
|
|
8070
|
+
OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate,
|
|
8071
|
+
and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and
|
|
8072
|
+
SigningPubKey are auto-filled when absent.
|
|
8016
8073
|
|
|
8017
8074
|
SignIntentResponse:
|
|
8018
8075
|
type: object
|