@1claw/openapi-spec 0.47.0 → 0.47.3
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 +10 -1
- package/openapi.json +110 -3
- package/openapi.yaml +74 -3
- package/package.json +2 -2
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.
|
|
43
|
+
## What's in the spec (v0.47.1)
|
|
44
|
+
|
|
45
|
+
### Turnkey parity (v0.47)
|
|
46
|
+
- **Portfolio** — `GET /v1/portfolio` (unified balance aggregator)
|
|
47
|
+
- **Cedar policies** — `POST/GET/DELETE /v1/org/cedar-policies`, dry-run `POST .../test` (Team+ tier)
|
|
48
|
+
- **OPA policies** — `POST/GET/DELETE /v1/org/opa-policies`, dry-run `POST .../test` (Business+ tier)
|
|
49
|
+
- **Sub-organizations** — `POST/GET/DELETE /v1/org/sub-orgs`, permissions, users, wallet generation
|
|
50
|
+
- **Smart account import** — `POST /v1/agents/{id}/smart-accounts/import`
|
|
51
|
+
- **Signing key BYOK** — `POST /v1/agents/{id}/signing-keys/{chain}/import` (human-only, `X-Auth-Confirm`)
|
|
52
|
+
- **Treasury wallet import** — `POST /v1/treasury/wallets/{chain}/import` (human-only, multi-chain send)
|
|
44
53
|
|
|
45
54
|
### OAuth & Platform enhancements (0.44.4)
|
|
46
55
|
- **OAuth token revocation** — `POST /v1/oauth/revoke` (RFC 7009 token revocation)
|
package/openapi.json
CHANGED
|
@@ -6527,7 +6527,7 @@
|
|
|
6527
6527
|
"Treasury Wallets"
|
|
6528
6528
|
],
|
|
6529
6529
|
"summary": "Generate multi-chain wallets for the authenticated user",
|
|
6530
|
-
"description": "Generates keypairs for the requested chains (or all supported chains if omitted).\nPrivate keys are stored in a per-org `__treasury-keys` vault with tier-appropriate\nMPC custody. Skips chains where the user already has an active wallet.
|
|
6530
|
+
"description": "Generates keypairs for the requested chains (or all supported chains if omitted).\nPrivate keys are stored in a per-org `__treasury-keys` vault with tier-appropriate\nMPC custody. Skips chains where the user already has an active wallet. Available\non all tiers (counts toward wallet quota). Human users only — agents get 403.\n",
|
|
6531
6531
|
"operationId": "generateTreasuryWallets",
|
|
6532
6532
|
"security": [
|
|
6533
6533
|
{
|
|
@@ -6740,7 +6740,7 @@
|
|
|
6740
6740
|
"Treasury Wallets"
|
|
6741
6741
|
],
|
|
6742
6742
|
"summary": "Rotate the user's wallet key for a chain",
|
|
6743
|
-
"description": "Generates a new keypair, deactivates the old wallet, and creates a\nnew active wallet. The old private key version is retained in the\nvault for audit.
|
|
6743
|
+
"description": "Generates a new keypair, deactivates the old wallet, and creates a\nnew active wallet. The old private key version is retained in the\nvault for audit. Counts toward wallet quota (does not require a paid plan).\n",
|
|
6744
6744
|
"operationId": "rotateTreasuryWallet",
|
|
6745
6745
|
"security": [
|
|
6746
6746
|
{
|
|
@@ -14467,6 +14467,52 @@
|
|
|
14467
14467
|
}
|
|
14468
14468
|
}
|
|
14469
14469
|
},
|
|
14470
|
+
"/v1/org/sub-orgs/{sub_org_id}/permissions/{permission}": {
|
|
14471
|
+
"delete": {
|
|
14472
|
+
"tags": [
|
|
14473
|
+
"Sub-Organizations"
|
|
14474
|
+
],
|
|
14475
|
+
"summary": "Revoke a sub-organization permission",
|
|
14476
|
+
"description": "Revoke a specific permission scope from the sub-organization.",
|
|
14477
|
+
"operationId": "revokeSubOrgPermission",
|
|
14478
|
+
"security": [
|
|
14479
|
+
{
|
|
14480
|
+
"BearerAuth": []
|
|
14481
|
+
}
|
|
14482
|
+
],
|
|
14483
|
+
"parameters": [
|
|
14484
|
+
{
|
|
14485
|
+
"name": "sub_org_id",
|
|
14486
|
+
"in": "path",
|
|
14487
|
+
"required": true,
|
|
14488
|
+
"schema": {
|
|
14489
|
+
"type": "string",
|
|
14490
|
+
"format": "uuid"
|
|
14491
|
+
}
|
|
14492
|
+
},
|
|
14493
|
+
{
|
|
14494
|
+
"name": "permission",
|
|
14495
|
+
"in": "path",
|
|
14496
|
+
"required": true,
|
|
14497
|
+
"schema": {
|
|
14498
|
+
"type": "string"
|
|
14499
|
+
},
|
|
14500
|
+
"description": "The permission scope to revoke"
|
|
14501
|
+
}
|
|
14502
|
+
],
|
|
14503
|
+
"responses": {
|
|
14504
|
+
"204": {
|
|
14505
|
+
"description": "Permission revoked"
|
|
14506
|
+
},
|
|
14507
|
+
"401": {
|
|
14508
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
14509
|
+
},
|
|
14510
|
+
"404": {
|
|
14511
|
+
"$ref": "#/components/responses/NotFound"
|
|
14512
|
+
}
|
|
14513
|
+
}
|
|
14514
|
+
}
|
|
14515
|
+
},
|
|
14470
14516
|
"/v1/org/sub-orgs/{sub_org_id}/wallets/generate": {
|
|
14471
14517
|
"post": {
|
|
14472
14518
|
"tags": [
|
|
@@ -14530,6 +14576,27 @@
|
|
|
14530
14576
|
"BearerAuth": []
|
|
14531
14577
|
}
|
|
14532
14578
|
],
|
|
14579
|
+
"parameters": [
|
|
14580
|
+
{
|
|
14581
|
+
"name": "chains",
|
|
14582
|
+
"in": "query",
|
|
14583
|
+
"required": false,
|
|
14584
|
+
"schema": {
|
|
14585
|
+
"type": "string"
|
|
14586
|
+
},
|
|
14587
|
+
"description": "Comma-separated list of chain names to filter by (e.g. \"ethereum,solana\")"
|
|
14588
|
+
},
|
|
14589
|
+
{
|
|
14590
|
+
"name": "include_tokens",
|
|
14591
|
+
"in": "query",
|
|
14592
|
+
"required": false,
|
|
14593
|
+
"schema": {
|
|
14594
|
+
"type": "boolean",
|
|
14595
|
+
"default": false
|
|
14596
|
+
},
|
|
14597
|
+
"description": "Whether to include token balances alongside native balances"
|
|
14598
|
+
}
|
|
14599
|
+
],
|
|
14533
14600
|
"responses": {
|
|
14534
14601
|
"200": {
|
|
14535
14602
|
"description": "Portfolio summary",
|
|
@@ -14577,7 +14644,14 @@
|
|
|
14577
14644
|
},
|
|
14578
14645
|
"responses": {
|
|
14579
14646
|
"201": {
|
|
14580
|
-
"description": "Smart account imported"
|
|
14647
|
+
"description": "Smart account imported",
|
|
14648
|
+
"content": {
|
|
14649
|
+
"application/json": {
|
|
14650
|
+
"schema": {
|
|
14651
|
+
"$ref": "#/components/schemas/ImportSmartAccountResponse"
|
|
14652
|
+
}
|
|
14653
|
+
}
|
|
14654
|
+
}
|
|
14581
14655
|
},
|
|
14582
14656
|
"400": {
|
|
14583
14657
|
"$ref": "#/components/responses/BadRequest"
|
|
@@ -19232,6 +19306,9 @@
|
|
|
19232
19306
|
"intent_transactions": {
|
|
19233
19307
|
"$ref": "#/components/schemas/UsageMeter"
|
|
19234
19308
|
},
|
|
19309
|
+
"wallets": {
|
|
19310
|
+
"$ref": "#/components/schemas/UsageMeter"
|
|
19311
|
+
},
|
|
19235
19312
|
"shares": {
|
|
19236
19313
|
"$ref": "#/components/schemas/UsageMeter"
|
|
19237
19314
|
}
|
|
@@ -25064,6 +25141,36 @@
|
|
|
25064
25141
|
"description": "Verify on-chain Safe ownership"
|
|
25065
25142
|
}
|
|
25066
25143
|
}
|
|
25144
|
+
},
|
|
25145
|
+
"ImportSmartAccountResponse": {
|
|
25146
|
+
"type": "object",
|
|
25147
|
+
"properties": {
|
|
25148
|
+
"id": {
|
|
25149
|
+
"type": "string",
|
|
25150
|
+
"format": "uuid"
|
|
25151
|
+
},
|
|
25152
|
+
"agent_id": {
|
|
25153
|
+
"type": "string",
|
|
25154
|
+
"format": "uuid"
|
|
25155
|
+
},
|
|
25156
|
+
"chain": {
|
|
25157
|
+
"type": "string"
|
|
25158
|
+
},
|
|
25159
|
+
"chain_id": {
|
|
25160
|
+
"type": "integer"
|
|
25161
|
+
},
|
|
25162
|
+
"safe_address": {
|
|
25163
|
+
"type": "string"
|
|
25164
|
+
},
|
|
25165
|
+
"nonce": {
|
|
25166
|
+
"type": "integer",
|
|
25167
|
+
"nullable": true
|
|
25168
|
+
},
|
|
25169
|
+
"created_at": {
|
|
25170
|
+
"type": "string",
|
|
25171
|
+
"format": "date-time"
|
|
25172
|
+
}
|
|
25173
|
+
}
|
|
25067
25174
|
}
|
|
25068
25175
|
}
|
|
25069
25176
|
}
|
package/openapi.yaml
CHANGED
|
@@ -4229,8 +4229,8 @@ paths:
|
|
|
4229
4229
|
description: |
|
|
4230
4230
|
Generates keypairs for the requested chains (or all supported chains if omitted).
|
|
4231
4231
|
Private keys are stored in a per-org `__treasury-keys` vault with tier-appropriate
|
|
4232
|
-
MPC custody. Skips chains where the user already has an active wallet.
|
|
4233
|
-
|
|
4232
|
+
MPC custody. Skips chains where the user already has an active wallet. Available
|
|
4233
|
+
on all tiers (counts toward wallet quota). Human users only — agents get 403.
|
|
4234
4234
|
operationId: generateTreasuryWallets
|
|
4235
4235
|
security:
|
|
4236
4236
|
- BearerAuth: []
|
|
@@ -4366,7 +4366,7 @@ paths:
|
|
|
4366
4366
|
description: |
|
|
4367
4367
|
Generates a new keypair, deactivates the old wallet, and creates a
|
|
4368
4368
|
new active wallet. The old private key version is retained in the
|
|
4369
|
-
vault for audit.
|
|
4369
|
+
vault for audit. Counts toward wallet quota (does not require a paid plan).
|
|
4370
4370
|
operationId: rotateTreasuryWallet
|
|
4371
4371
|
security:
|
|
4372
4372
|
- BearerAuth: []
|
|
@@ -9230,6 +9230,35 @@ paths:
|
|
|
9230
9230
|
"404":
|
|
9231
9231
|
$ref: "#/components/responses/NotFound"
|
|
9232
9232
|
|
|
9233
|
+
/v1/org/sub-orgs/{sub_org_id}/permissions/{permission}:
|
|
9234
|
+
delete:
|
|
9235
|
+
tags: [Sub-Organizations]
|
|
9236
|
+
summary: Revoke a sub-organization permission
|
|
9237
|
+
description: Revoke a specific permission scope from the sub-organization.
|
|
9238
|
+
operationId: revokeSubOrgPermission
|
|
9239
|
+
security:
|
|
9240
|
+
- BearerAuth: []
|
|
9241
|
+
parameters:
|
|
9242
|
+
- name: sub_org_id
|
|
9243
|
+
in: path
|
|
9244
|
+
required: true
|
|
9245
|
+
schema:
|
|
9246
|
+
type: string
|
|
9247
|
+
format: uuid
|
|
9248
|
+
- name: permission
|
|
9249
|
+
in: path
|
|
9250
|
+
required: true
|
|
9251
|
+
schema:
|
|
9252
|
+
type: string
|
|
9253
|
+
description: The permission scope to revoke
|
|
9254
|
+
responses:
|
|
9255
|
+
"204":
|
|
9256
|
+
description: Permission revoked
|
|
9257
|
+
"401":
|
|
9258
|
+
$ref: "#/components/responses/Unauthorized"
|
|
9259
|
+
"404":
|
|
9260
|
+
$ref: "#/components/responses/NotFound"
|
|
9261
|
+
|
|
9233
9262
|
/v1/org/sub-orgs/{sub_org_id}/wallets/generate:
|
|
9234
9263
|
post:
|
|
9235
9264
|
tags: [Sub-Organizations]
|
|
@@ -9275,6 +9304,20 @@ paths:
|
|
|
9275
9304
|
operationId: getPortfolio
|
|
9276
9305
|
security:
|
|
9277
9306
|
- BearerAuth: []
|
|
9307
|
+
parameters:
|
|
9308
|
+
- name: chains
|
|
9309
|
+
in: query
|
|
9310
|
+
required: false
|
|
9311
|
+
schema:
|
|
9312
|
+
type: string
|
|
9313
|
+
description: Comma-separated list of chain names to filter by (e.g. "ethereum,solana")
|
|
9314
|
+
- name: include_tokens
|
|
9315
|
+
in: query
|
|
9316
|
+
required: false
|
|
9317
|
+
schema:
|
|
9318
|
+
type: boolean
|
|
9319
|
+
default: false
|
|
9320
|
+
description: Whether to include token balances alongside native balances
|
|
9278
9321
|
responses:
|
|
9279
9322
|
"200":
|
|
9280
9323
|
description: Portfolio summary
|
|
@@ -9310,6 +9353,10 @@ paths:
|
|
|
9310
9353
|
responses:
|
|
9311
9354
|
"201":
|
|
9312
9355
|
description: Smart account imported
|
|
9356
|
+
content:
|
|
9357
|
+
application/json:
|
|
9358
|
+
schema:
|
|
9359
|
+
$ref: "#/components/schemas/ImportSmartAccountResponse"
|
|
9313
9360
|
"400":
|
|
9314
9361
|
$ref: "#/components/responses/BadRequest"
|
|
9315
9362
|
"401":
|
|
@@ -12581,6 +12628,8 @@ components:
|
|
|
12581
12628
|
$ref: "#/components/schemas/UsageMeter"
|
|
12582
12629
|
intent_transactions:
|
|
12583
12630
|
$ref: "#/components/schemas/UsageMeter"
|
|
12631
|
+
wallets:
|
|
12632
|
+
$ref: "#/components/schemas/UsageMeter"
|
|
12584
12633
|
shares:
|
|
12585
12634
|
$ref: "#/components/schemas/UsageMeter"
|
|
12586
12635
|
|
|
@@ -16537,3 +16586,25 @@ components:
|
|
|
16537
16586
|
type: boolean
|
|
16538
16587
|
default: true
|
|
16539
16588
|
description: Verify on-chain Safe ownership
|
|
16589
|
+
|
|
16590
|
+
ImportSmartAccountResponse:
|
|
16591
|
+
type: object
|
|
16592
|
+
properties:
|
|
16593
|
+
id:
|
|
16594
|
+
type: string
|
|
16595
|
+
format: uuid
|
|
16596
|
+
agent_id:
|
|
16597
|
+
type: string
|
|
16598
|
+
format: uuid
|
|
16599
|
+
chain:
|
|
16600
|
+
type: string
|
|
16601
|
+
chain_id:
|
|
16602
|
+
type: integer
|
|
16603
|
+
safe_address:
|
|
16604
|
+
type: string
|
|
16605
|
+
nonce:
|
|
16606
|
+
type: integer
|
|
16607
|
+
nullable: true
|
|
16608
|
+
created_at:
|
|
16609
|
+
type: string
|
|
16610
|
+
format: date-time
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1claw/openapi-spec",
|
|
3
|
-
"version": "0.47.
|
|
4
|
-
"description": "OpenAPI 3.1.0 specification for the 1Claw Vault API
|
|
3
|
+
"version": "0.47.3",
|
|
4
|
+
"description": "OpenAPI 3.1.0 specification for the 1Claw Vault API — generate clients in any language",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|