@1claw/openapi-spec 0.47.0 → 0.47.1
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 +105 -1
- package/openapi.yaml +69 -0
- package/package.json +2 -2
package/openapi.json
CHANGED
|
@@ -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"
|
|
@@ -25064,6 +25138,36 @@
|
|
|
25064
25138
|
"description": "Verify on-chain Safe ownership"
|
|
25065
25139
|
}
|
|
25066
25140
|
}
|
|
25141
|
+
},
|
|
25142
|
+
"ImportSmartAccountResponse": {
|
|
25143
|
+
"type": "object",
|
|
25144
|
+
"properties": {
|
|
25145
|
+
"id": {
|
|
25146
|
+
"type": "string",
|
|
25147
|
+
"format": "uuid"
|
|
25148
|
+
},
|
|
25149
|
+
"agent_id": {
|
|
25150
|
+
"type": "string",
|
|
25151
|
+
"format": "uuid"
|
|
25152
|
+
},
|
|
25153
|
+
"chain": {
|
|
25154
|
+
"type": "string"
|
|
25155
|
+
},
|
|
25156
|
+
"chain_id": {
|
|
25157
|
+
"type": "integer"
|
|
25158
|
+
},
|
|
25159
|
+
"safe_address": {
|
|
25160
|
+
"type": "string"
|
|
25161
|
+
},
|
|
25162
|
+
"nonce": {
|
|
25163
|
+
"type": "integer",
|
|
25164
|
+
"nullable": true
|
|
25165
|
+
},
|
|
25166
|
+
"created_at": {
|
|
25167
|
+
"type": "string",
|
|
25168
|
+
"format": "date-time"
|
|
25169
|
+
}
|
|
25170
|
+
}
|
|
25067
25171
|
}
|
|
25068
25172
|
}
|
|
25069
25173
|
}
|
package/openapi.yaml
CHANGED
|
@@ -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":
|
|
@@ -16537,3 +16584,25 @@ components:
|
|
|
16537
16584
|
type: boolean
|
|
16538
16585
|
default: true
|
|
16539
16586
|
description: Verify on-chain Safe ownership
|
|
16587
|
+
|
|
16588
|
+
ImportSmartAccountResponse:
|
|
16589
|
+
type: object
|
|
16590
|
+
properties:
|
|
16591
|
+
id:
|
|
16592
|
+
type: string
|
|
16593
|
+
format: uuid
|
|
16594
|
+
agent_id:
|
|
16595
|
+
type: string
|
|
16596
|
+
format: uuid
|
|
16597
|
+
chain:
|
|
16598
|
+
type: string
|
|
16599
|
+
chain_id:
|
|
16600
|
+
type: integer
|
|
16601
|
+
safe_address:
|
|
16602
|
+
type: string
|
|
16603
|
+
nonce:
|
|
16604
|
+
type: integer
|
|
16605
|
+
nullable: true
|
|
16606
|
+
created_at:
|
|
16607
|
+
type: string
|
|
16608
|
+
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.1",
|
|
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",
|