@1claw/openapi-spec 0.8.0 → 0.10.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 +1 -1
- package/openapi.json +209 -1
- package/openapi.yaml +142 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ openapi-generator generate \
|
|
|
40
40
|
import spec from "@1claw/openapi-spec/openapi.json";
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
## What's in the spec (
|
|
43
|
+
## What's in the spec (v0.10.0)
|
|
44
44
|
|
|
45
45
|
- **Vaults** — CRUD, CMEK enable/disable, key rotation with job tracking
|
|
46
46
|
- **Secrets** — CRUD, versioning, CMEK-encrypted flag
|
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.4.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"
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
"description": "Shroud TEE Proxy (Intents API + LLM proxy)"
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
|
+
"x-agentcash-guidance": {
|
|
26
|
+
"llmsTxtUrl": "https://1claw.xyz/llms.txt"
|
|
27
|
+
},
|
|
25
28
|
"security": [
|
|
26
29
|
{
|
|
27
30
|
"BearerAuth": []
|
|
@@ -1152,6 +1155,16 @@
|
|
|
1152
1155
|
],
|
|
1153
1156
|
"summary": "Store or update a secret",
|
|
1154
1157
|
"operationId": "putSecret",
|
|
1158
|
+
"x-agentcash-auth": {
|
|
1159
|
+
"mode": "paid"
|
|
1160
|
+
},
|
|
1161
|
+
"x-payment-info": {
|
|
1162
|
+
"protocols": [
|
|
1163
|
+
"x402"
|
|
1164
|
+
],
|
|
1165
|
+
"pricingMode": "fixed",
|
|
1166
|
+
"price": "0.0075"
|
|
1167
|
+
},
|
|
1155
1168
|
"parameters": [
|
|
1156
1169
|
{
|
|
1157
1170
|
"$ref": "#/components/parameters/VaultId"
|
|
@@ -1183,6 +1196,9 @@
|
|
|
1183
1196
|
},
|
|
1184
1197
|
"400": {
|
|
1185
1198
|
"$ref": "#/components/responses/BadRequest"
|
|
1199
|
+
},
|
|
1200
|
+
"402": {
|
|
1201
|
+
"$ref": "#/components/responses/PaymentRequired"
|
|
1186
1202
|
}
|
|
1187
1203
|
}
|
|
1188
1204
|
},
|
|
@@ -1192,6 +1208,16 @@
|
|
|
1192
1208
|
],
|
|
1193
1209
|
"summary": "Retrieve a decrypted secret",
|
|
1194
1210
|
"operationId": "getSecret",
|
|
1211
|
+
"x-agentcash-auth": {
|
|
1212
|
+
"mode": "paid"
|
|
1213
|
+
},
|
|
1214
|
+
"x-payment-info": {
|
|
1215
|
+
"protocols": [
|
|
1216
|
+
"x402"
|
|
1217
|
+
],
|
|
1218
|
+
"pricingMode": "fixed",
|
|
1219
|
+
"price": "0.0015"
|
|
1220
|
+
},
|
|
1195
1221
|
"parameters": [
|
|
1196
1222
|
{
|
|
1197
1223
|
"$ref": "#/components/parameters/VaultId"
|
|
@@ -1637,6 +1663,15 @@
|
|
|
1637
1663
|
"Transactions"
|
|
1638
1664
|
],
|
|
1639
1665
|
"summary": "Submit a transaction for signing",
|
|
1666
|
+
"x-agentcash-auth": {
|
|
1667
|
+
"mode": "paid"
|
|
1668
|
+
},
|
|
1669
|
+
"x-payment-info": {
|
|
1670
|
+
"protocols": [
|
|
1671
|
+
"x402"
|
|
1672
|
+
],
|
|
1673
|
+
"pricingMode": "quote"
|
|
1674
|
+
},
|
|
1640
1675
|
"description": "Replay protection: send an optional **Idempotency-Key** header (e.g. UUID or opaque string).\nDuplicate requests with the same key within 24 hours return the cached transaction response\n(no second sign/broadcast). Omit the header for non-idempotent submissions.\n",
|
|
1641
1676
|
"operationId": "submitTransaction",
|
|
1642
1677
|
"parameters": [
|
|
@@ -1684,6 +1719,9 @@
|
|
|
1684
1719
|
}
|
|
1685
1720
|
}
|
|
1686
1721
|
},
|
|
1722
|
+
"402": {
|
|
1723
|
+
"$ref": "#/components/responses/PaymentRequired"
|
|
1724
|
+
},
|
|
1687
1725
|
"403": {
|
|
1688
1726
|
"$ref": "#/components/responses/Forbidden"
|
|
1689
1727
|
},
|
|
@@ -1785,6 +1823,16 @@
|
|
|
1785
1823
|
],
|
|
1786
1824
|
"summary": "Simulate a transaction via Tenderly",
|
|
1787
1825
|
"operationId": "simulateTransaction",
|
|
1826
|
+
"x-agentcash-auth": {
|
|
1827
|
+
"mode": "paid"
|
|
1828
|
+
},
|
|
1829
|
+
"x-payment-info": {
|
|
1830
|
+
"protocols": [
|
|
1831
|
+
"x402"
|
|
1832
|
+
],
|
|
1833
|
+
"pricingMode": "fixed",
|
|
1834
|
+
"price": "0.075"
|
|
1835
|
+
},
|
|
1788
1836
|
"parameters": [
|
|
1789
1837
|
{
|
|
1790
1838
|
"$ref": "#/components/parameters/AgentId"
|
|
@@ -1814,6 +1862,9 @@
|
|
|
1814
1862
|
"400": {
|
|
1815
1863
|
"$ref": "#/components/responses/BadRequest"
|
|
1816
1864
|
},
|
|
1865
|
+
"402": {
|
|
1866
|
+
"$ref": "#/components/responses/PaymentRequired"
|
|
1867
|
+
},
|
|
1817
1868
|
"403": {
|
|
1818
1869
|
"$ref": "#/components/responses/Forbidden"
|
|
1819
1870
|
}
|
|
@@ -1827,6 +1878,16 @@
|
|
|
1827
1878
|
],
|
|
1828
1879
|
"summary": "Simulate a bundle of transactions",
|
|
1829
1880
|
"operationId": "simulateBundle",
|
|
1881
|
+
"x-agentcash-auth": {
|
|
1882
|
+
"mode": "paid"
|
|
1883
|
+
},
|
|
1884
|
+
"x-payment-info": {
|
|
1885
|
+
"protocols": [
|
|
1886
|
+
"x402"
|
|
1887
|
+
],
|
|
1888
|
+
"pricingMode": "fixed",
|
|
1889
|
+
"price": "0.075"
|
|
1890
|
+
},
|
|
1830
1891
|
"parameters": [
|
|
1831
1892
|
{
|
|
1832
1893
|
"$ref": "#/components/parameters/AgentId"
|
|
@@ -1855,6 +1916,9 @@
|
|
|
1855
1916
|
},
|
|
1856
1917
|
"400": {
|
|
1857
1918
|
"$ref": "#/components/responses/BadRequest"
|
|
1919
|
+
},
|
|
1920
|
+
"402": {
|
|
1921
|
+
"$ref": "#/components/responses/PaymentRequired"
|
|
1858
1922
|
}
|
|
1859
1923
|
}
|
|
1860
1924
|
}
|
|
@@ -2039,6 +2103,16 @@
|
|
|
2039
2103
|
],
|
|
2040
2104
|
"summary": "Create a share link for a secret",
|
|
2041
2105
|
"operationId": "createShare",
|
|
2106
|
+
"x-agentcash-auth": {
|
|
2107
|
+
"mode": "paid"
|
|
2108
|
+
},
|
|
2109
|
+
"x-payment-info": {
|
|
2110
|
+
"protocols": [
|
|
2111
|
+
"x402"
|
|
2112
|
+
],
|
|
2113
|
+
"pricingMode": "fixed",
|
|
2114
|
+
"price": "0.003"
|
|
2115
|
+
},
|
|
2042
2116
|
"parameters": [
|
|
2043
2117
|
{
|
|
2044
2118
|
"name": "secret_id",
|
|
@@ -2071,6 +2145,9 @@
|
|
|
2071
2145
|
}
|
|
2072
2146
|
}
|
|
2073
2147
|
},
|
|
2148
|
+
"402": {
|
|
2149
|
+
"$ref": "#/components/responses/PaymentRequired"
|
|
2150
|
+
},
|
|
2074
2151
|
"404": {
|
|
2075
2152
|
"$ref": "#/components/responses/NotFound"
|
|
2076
2153
|
}
|
|
@@ -2085,6 +2162,16 @@
|
|
|
2085
2162
|
"summary": "Access a shared secret",
|
|
2086
2163
|
"operationId": "accessShare",
|
|
2087
2164
|
"security": [],
|
|
2165
|
+
"x-agentcash-auth": {
|
|
2166
|
+
"mode": "paid"
|
|
2167
|
+
},
|
|
2168
|
+
"x-payment-info": {
|
|
2169
|
+
"protocols": [
|
|
2170
|
+
"x402"
|
|
2171
|
+
],
|
|
2172
|
+
"pricingMode": "fixed",
|
|
2173
|
+
"price": "0.0015"
|
|
2174
|
+
},
|
|
2088
2175
|
"parameters": [
|
|
2089
2176
|
{
|
|
2090
2177
|
"name": "share_id",
|
|
@@ -2617,6 +2704,16 @@
|
|
|
2617
2704
|
],
|
|
2618
2705
|
"summary": "Query audit events",
|
|
2619
2706
|
"operationId": "queryAuditEvents",
|
|
2707
|
+
"x-agentcash-auth": {
|
|
2708
|
+
"mode": "paid"
|
|
2709
|
+
},
|
|
2710
|
+
"x-payment-info": {
|
|
2711
|
+
"protocols": [
|
|
2712
|
+
"x402"
|
|
2713
|
+
],
|
|
2714
|
+
"pricingMode": "fixed",
|
|
2715
|
+
"price": "0.0008"
|
|
2716
|
+
},
|
|
2620
2717
|
"parameters": [
|
|
2621
2718
|
{
|
|
2622
2719
|
"name": "resource_id",
|
|
@@ -2682,6 +2779,9 @@
|
|
|
2682
2779
|
}
|
|
2683
2780
|
}
|
|
2684
2781
|
}
|
|
2782
|
+
},
|
|
2783
|
+
"402": {
|
|
2784
|
+
"$ref": "#/components/responses/PaymentRequired"
|
|
2685
2785
|
}
|
|
2686
2786
|
}
|
|
2687
2787
|
}
|
|
@@ -4177,6 +4277,14 @@
|
|
|
4177
4277
|
"oidc_client_id": {
|
|
4178
4278
|
"type": "string",
|
|
4179
4279
|
"description": "OIDC client ID (required for oidc_client_credentials auth)"
|
|
4280
|
+
},
|
|
4281
|
+
"shroud_enabled": {
|
|
4282
|
+
"type": "boolean",
|
|
4283
|
+
"default": false,
|
|
4284
|
+
"description": "Enable Shroud LLM Proxy for this agent"
|
|
4285
|
+
},
|
|
4286
|
+
"shroud_config": {
|
|
4287
|
+
"$ref": "#/components/schemas/ShroudConfig"
|
|
4180
4288
|
}
|
|
4181
4289
|
}
|
|
4182
4290
|
},
|
|
@@ -4230,6 +4338,13 @@
|
|
|
4230
4338
|
"type": "string",
|
|
4231
4339
|
"format": "uuid"
|
|
4232
4340
|
}
|
|
4341
|
+
},
|
|
4342
|
+
"shroud_enabled": {
|
|
4343
|
+
"type": "boolean",
|
|
4344
|
+
"description": "Enable/disable Shroud LLM Proxy"
|
|
4345
|
+
},
|
|
4346
|
+
"shroud_config": {
|
|
4347
|
+
"$ref": "#/components/schemas/ShroudConfig"
|
|
4233
4348
|
}
|
|
4234
4349
|
}
|
|
4235
4350
|
},
|
|
@@ -4241,6 +4356,7 @@
|
|
|
4241
4356
|
"auth_method",
|
|
4242
4357
|
"is_active",
|
|
4243
4358
|
"intents_api_enabled",
|
|
4359
|
+
"shroud_enabled",
|
|
4244
4360
|
"created_at"
|
|
4245
4361
|
],
|
|
4246
4362
|
"properties": {
|
|
@@ -4323,6 +4439,13 @@
|
|
|
4323
4439
|
"type": "string",
|
|
4324
4440
|
"description": "P-256 ECDH public key (base64 SEC1 uncompressed point, auto-generated at creation)"
|
|
4325
4441
|
},
|
|
4442
|
+
"shroud_enabled": {
|
|
4443
|
+
"type": "boolean",
|
|
4444
|
+
"description": "Whether this agent routes LLM traffic through the Shroud TEE proxy"
|
|
4445
|
+
},
|
|
4446
|
+
"shroud_config": {
|
|
4447
|
+
"$ref": "#/components/schemas/ShroudConfig"
|
|
4448
|
+
},
|
|
4326
4449
|
"created_at": {
|
|
4327
4450
|
"type": "string",
|
|
4328
4451
|
"format": "date-time"
|
|
@@ -4389,6 +4512,91 @@
|
|
|
4389
4512
|
"ecdh_public_key": {
|
|
4390
4513
|
"type": "string",
|
|
4391
4514
|
"description": "P-256 ECDH public key (base64 SEC1 uncompressed point)"
|
|
4515
|
+
},
|
|
4516
|
+
"shroud_enabled": {
|
|
4517
|
+
"type": "boolean",
|
|
4518
|
+
"description": "Whether this agent routes LLM traffic through the Shroud TEE proxy"
|
|
4519
|
+
},
|
|
4520
|
+
"shroud_config": {
|
|
4521
|
+
"$ref": "#/components/schemas/ShroudConfig"
|
|
4522
|
+
}
|
|
4523
|
+
}
|
|
4524
|
+
},
|
|
4525
|
+
"ShroudConfig": {
|
|
4526
|
+
"type": "object",
|
|
4527
|
+
"description": "Per-agent Shroud LLM Proxy configuration",
|
|
4528
|
+
"properties": {
|
|
4529
|
+
"pii_policy": {
|
|
4530
|
+
"type": "string",
|
|
4531
|
+
"enum": [
|
|
4532
|
+
"block",
|
|
4533
|
+
"redact",
|
|
4534
|
+
"warn",
|
|
4535
|
+
"allow"
|
|
4536
|
+
],
|
|
4537
|
+
"default": "redact",
|
|
4538
|
+
"description": "How PII detections are handled"
|
|
4539
|
+
},
|
|
4540
|
+
"injection_threshold": {
|
|
4541
|
+
"type": "number",
|
|
4542
|
+
"minimum": 0,
|
|
4543
|
+
"maximum": 1,
|
|
4544
|
+
"default": 0.7,
|
|
4545
|
+
"description": "Prompt injection score threshold (0.0–1.0). Requests above are blocked"
|
|
4546
|
+
},
|
|
4547
|
+
"context_injection_threshold": {
|
|
4548
|
+
"type": "number",
|
|
4549
|
+
"minimum": 0,
|
|
4550
|
+
"maximum": 1,
|
|
4551
|
+
"default": 0.7,
|
|
4552
|
+
"description": "Context injection score threshold (0.0–1.0)"
|
|
4553
|
+
},
|
|
4554
|
+
"allowed_providers": {
|
|
4555
|
+
"type": "array",
|
|
4556
|
+
"items": {
|
|
4557
|
+
"type": "string"
|
|
4558
|
+
},
|
|
4559
|
+
"description": "LLM providers this agent may use (empty = all)"
|
|
4560
|
+
},
|
|
4561
|
+
"allowed_models": {
|
|
4562
|
+
"type": "array",
|
|
4563
|
+
"items": {
|
|
4564
|
+
"type": "string"
|
|
4565
|
+
},
|
|
4566
|
+
"description": "Specific models allowed (empty = all)"
|
|
4567
|
+
},
|
|
4568
|
+
"denied_models": {
|
|
4569
|
+
"type": "array",
|
|
4570
|
+
"items": {
|
|
4571
|
+
"type": "string"
|
|
4572
|
+
},
|
|
4573
|
+
"description": "Models explicitly blocked"
|
|
4574
|
+
},
|
|
4575
|
+
"max_tokens_per_request": {
|
|
4576
|
+
"type": "integer",
|
|
4577
|
+
"description": "Maximum input tokens per request"
|
|
4578
|
+
},
|
|
4579
|
+
"max_requests_per_minute": {
|
|
4580
|
+
"type": "integer",
|
|
4581
|
+
"description": "Rate limit (requests per minute)"
|
|
4582
|
+
},
|
|
4583
|
+
"max_requests_per_day": {
|
|
4584
|
+
"type": "integer",
|
|
4585
|
+
"description": "Rate limit (requests per day)"
|
|
4586
|
+
},
|
|
4587
|
+
"daily_budget_usd": {
|
|
4588
|
+
"type": "number",
|
|
4589
|
+
"description": "Daily LLM spend cap in USD (0 = unlimited)"
|
|
4590
|
+
},
|
|
4591
|
+
"enable_secret_redaction": {
|
|
4592
|
+
"type": "boolean",
|
|
4593
|
+
"default": true,
|
|
4594
|
+
"description": "Whether vault secrets are redacted from prompts/responses"
|
|
4595
|
+
},
|
|
4596
|
+
"enable_response_filtering": {
|
|
4597
|
+
"type": "boolean",
|
|
4598
|
+
"default": true,
|
|
4599
|
+
"description": "Whether response credential scanning is active"
|
|
4392
4600
|
}
|
|
4393
4601
|
}
|
|
4394
4602
|
},
|
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.4.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,
|
|
@@ -21,6 +21,9 @@ servers:
|
|
|
21
21
|
- url: https://shroud.1claw.xyz
|
|
22
22
|
description: Shroud TEE Proxy (Intents API + LLM proxy)
|
|
23
23
|
|
|
24
|
+
x-agentcash-guidance:
|
|
25
|
+
llmsTxtUrl: https://1claw.xyz/llms.txt
|
|
26
|
+
|
|
24
27
|
security:
|
|
25
28
|
- BearerAuth: []
|
|
26
29
|
|
|
@@ -745,6 +748,12 @@ paths:
|
|
|
745
748
|
tags: [Secrets]
|
|
746
749
|
summary: Store or update a secret
|
|
747
750
|
operationId: putSecret
|
|
751
|
+
x-agentcash-auth:
|
|
752
|
+
mode: paid
|
|
753
|
+
x-payment-info:
|
|
754
|
+
protocols: [x402]
|
|
755
|
+
pricingMode: fixed
|
|
756
|
+
price: "0.0075"
|
|
748
757
|
parameters:
|
|
749
758
|
- $ref: "#/components/parameters/VaultId"
|
|
750
759
|
- $ref: "#/components/parameters/SecretPath"
|
|
@@ -763,10 +772,18 @@ paths:
|
|
|
763
772
|
$ref: "#/components/schemas/SecretMetadataResponse"
|
|
764
773
|
"400":
|
|
765
774
|
$ref: "#/components/responses/BadRequest"
|
|
775
|
+
"402":
|
|
776
|
+
$ref: "#/components/responses/PaymentRequired"
|
|
766
777
|
get:
|
|
767
778
|
tags: [Secrets]
|
|
768
779
|
summary: Retrieve a decrypted secret
|
|
769
780
|
operationId: getSecret
|
|
781
|
+
x-agentcash-auth:
|
|
782
|
+
mode: paid
|
|
783
|
+
x-payment-info:
|
|
784
|
+
protocols: [x402]
|
|
785
|
+
pricingMode: fixed
|
|
786
|
+
price: "0.0015"
|
|
770
787
|
parameters:
|
|
771
788
|
- $ref: "#/components/parameters/VaultId"
|
|
772
789
|
- $ref: "#/components/parameters/SecretPath"
|
|
@@ -1047,6 +1064,11 @@ paths:
|
|
|
1047
1064
|
post:
|
|
1048
1065
|
tags: [Transactions]
|
|
1049
1066
|
summary: Submit a transaction for signing
|
|
1067
|
+
x-agentcash-auth:
|
|
1068
|
+
mode: paid
|
|
1069
|
+
x-payment-info:
|
|
1070
|
+
protocols: [x402]
|
|
1071
|
+
pricingMode: quote
|
|
1050
1072
|
description: |
|
|
1051
1073
|
Replay protection: send an optional **Idempotency-Key** header (e.g. UUID or opaque string).
|
|
1052
1074
|
Duplicate requests with the same key within 24 hours return the cached transaction response
|
|
@@ -1079,6 +1101,8 @@ paths:
|
|
|
1079
1101
|
application/json:
|
|
1080
1102
|
schema:
|
|
1081
1103
|
$ref: "#/components/schemas/TransactionResponse"
|
|
1104
|
+
"402":
|
|
1105
|
+
$ref: "#/components/responses/PaymentRequired"
|
|
1082
1106
|
"403":
|
|
1083
1107
|
$ref: "#/components/responses/Forbidden"
|
|
1084
1108
|
"409":
|
|
@@ -1137,6 +1161,12 @@ paths:
|
|
|
1137
1161
|
tags: [Transactions]
|
|
1138
1162
|
summary: Simulate a transaction via Tenderly
|
|
1139
1163
|
operationId: simulateTransaction
|
|
1164
|
+
x-agentcash-auth:
|
|
1165
|
+
mode: paid
|
|
1166
|
+
x-payment-info:
|
|
1167
|
+
protocols: [x402]
|
|
1168
|
+
pricingMode: fixed
|
|
1169
|
+
price: "0.075"
|
|
1140
1170
|
parameters:
|
|
1141
1171
|
- $ref: "#/components/parameters/AgentId"
|
|
1142
1172
|
requestBody:
|
|
@@ -1156,12 +1186,20 @@ paths:
|
|
|
1156
1186
|
$ref: "#/components/responses/BadRequest"
|
|
1157
1187
|
"403":
|
|
1158
1188
|
$ref: "#/components/responses/Forbidden"
|
|
1189
|
+
"402":
|
|
1190
|
+
$ref: "#/components/responses/PaymentRequired"
|
|
1159
1191
|
|
|
1160
1192
|
/v1/agents/{agent_id}/transactions/simulate-bundle:
|
|
1161
1193
|
post:
|
|
1162
1194
|
tags: [Transactions]
|
|
1163
1195
|
summary: Simulate a bundle of transactions
|
|
1164
1196
|
operationId: simulateBundle
|
|
1197
|
+
x-agentcash-auth:
|
|
1198
|
+
mode: paid
|
|
1199
|
+
x-payment-info:
|
|
1200
|
+
protocols: [x402]
|
|
1201
|
+
pricingMode: fixed
|
|
1202
|
+
price: "0.075"
|
|
1165
1203
|
parameters:
|
|
1166
1204
|
- $ref: "#/components/parameters/AgentId"
|
|
1167
1205
|
requestBody:
|
|
@@ -1179,6 +1217,8 @@ paths:
|
|
|
1179
1217
|
$ref: "#/components/schemas/BundleSimulationResponse"
|
|
1180
1218
|
"400":
|
|
1181
1219
|
$ref: "#/components/responses/BadRequest"
|
|
1220
|
+
"402":
|
|
1221
|
+
$ref: "#/components/responses/PaymentRequired"
|
|
1182
1222
|
|
|
1183
1223
|
# ---------------------------------------------------------------------------
|
|
1184
1224
|
# Chains
|
|
@@ -1300,6 +1340,12 @@ paths:
|
|
|
1300
1340
|
tags: [Sharing]
|
|
1301
1341
|
summary: Create a share link for a secret
|
|
1302
1342
|
operationId: createShare
|
|
1343
|
+
x-agentcash-auth:
|
|
1344
|
+
mode: paid
|
|
1345
|
+
x-payment-info:
|
|
1346
|
+
protocols: [x402]
|
|
1347
|
+
pricingMode: fixed
|
|
1348
|
+
price: "0.003"
|
|
1303
1349
|
parameters:
|
|
1304
1350
|
- name: secret_id
|
|
1305
1351
|
in: path
|
|
@@ -1320,6 +1366,8 @@ paths:
|
|
|
1320
1366
|
application/json:
|
|
1321
1367
|
schema:
|
|
1322
1368
|
$ref: "#/components/schemas/ShareResponse"
|
|
1369
|
+
"402":
|
|
1370
|
+
$ref: "#/components/responses/PaymentRequired"
|
|
1323
1371
|
"404":
|
|
1324
1372
|
$ref: "#/components/responses/NotFound"
|
|
1325
1373
|
|
|
@@ -1329,6 +1377,12 @@ paths:
|
|
|
1329
1377
|
summary: Access a shared secret
|
|
1330
1378
|
operationId: accessShare
|
|
1331
1379
|
security: []
|
|
1380
|
+
x-agentcash-auth:
|
|
1381
|
+
mode: paid
|
|
1382
|
+
x-payment-info:
|
|
1383
|
+
protocols: [x402]
|
|
1384
|
+
pricingMode: fixed
|
|
1385
|
+
price: "0.0015"
|
|
1332
1386
|
parameters:
|
|
1333
1387
|
- name: share_id
|
|
1334
1388
|
in: path
|
|
@@ -1671,6 +1725,12 @@ paths:
|
|
|
1671
1725
|
tags: [Audit]
|
|
1672
1726
|
summary: Query audit events
|
|
1673
1727
|
operationId: queryAuditEvents
|
|
1728
|
+
x-agentcash-auth:
|
|
1729
|
+
mode: paid
|
|
1730
|
+
x-payment-info:
|
|
1731
|
+
protocols: [x402]
|
|
1732
|
+
pricingMode: fixed
|
|
1733
|
+
price: "0.0008"
|
|
1674
1734
|
parameters:
|
|
1675
1735
|
- name: resource_id
|
|
1676
1736
|
in: query
|
|
@@ -1711,6 +1771,8 @@ paths:
|
|
|
1711
1771
|
application/json:
|
|
1712
1772
|
schema:
|
|
1713
1773
|
$ref: "#/components/schemas/AuditEventsResponse"
|
|
1774
|
+
"402":
|
|
1775
|
+
$ref: "#/components/responses/PaymentRequired"
|
|
1714
1776
|
|
|
1715
1777
|
# ---------------------------------------------------------------------------
|
|
1716
1778
|
# Security (IP Rules)
|
|
@@ -2731,6 +2793,12 @@ components:
|
|
|
2731
2793
|
oidc_client_id:
|
|
2732
2794
|
type: string
|
|
2733
2795
|
description: OIDC client ID (required for oidc_client_credentials auth)
|
|
2796
|
+
shroud_enabled:
|
|
2797
|
+
type: boolean
|
|
2798
|
+
default: false
|
|
2799
|
+
description: Enable Shroud LLM Proxy for this agent
|
|
2800
|
+
shroud_config:
|
|
2801
|
+
$ref: '#/components/schemas/ShroudConfig'
|
|
2734
2802
|
|
|
2735
2803
|
UpdateAgentRequest:
|
|
2736
2804
|
type: object
|
|
@@ -2768,10 +2836,15 @@ components:
|
|
|
2768
2836
|
items:
|
|
2769
2837
|
type: string
|
|
2770
2838
|
format: uuid
|
|
2839
|
+
shroud_enabled:
|
|
2840
|
+
type: boolean
|
|
2841
|
+
description: Enable/disable Shroud LLM Proxy
|
|
2842
|
+
shroud_config:
|
|
2843
|
+
$ref: '#/components/schemas/ShroudConfig'
|
|
2771
2844
|
|
|
2772
2845
|
AgentResponse:
|
|
2773
2846
|
type: object
|
|
2774
|
-
required: [id, name, auth_method, is_active, intents_api_enabled, created_at]
|
|
2847
|
+
required: [id, name, auth_method, is_active, intents_api_enabled, shroud_enabled, created_at]
|
|
2775
2848
|
properties:
|
|
2776
2849
|
id:
|
|
2777
2850
|
type: string
|
|
@@ -2826,6 +2899,11 @@ components:
|
|
|
2826
2899
|
ecdh_public_key:
|
|
2827
2900
|
type: string
|
|
2828
2901
|
description: P-256 ECDH public key (base64 SEC1 uncompressed point, auto-generated at creation)
|
|
2902
|
+
shroud_enabled:
|
|
2903
|
+
type: boolean
|
|
2904
|
+
description: Whether this agent routes LLM traffic through the Shroud TEE proxy
|
|
2905
|
+
shroud_config:
|
|
2906
|
+
$ref: '#/components/schemas/ShroudConfig'
|
|
2829
2907
|
created_at:
|
|
2830
2908
|
type: string
|
|
2831
2909
|
format: date-time
|
|
@@ -2875,6 +2953,68 @@ components:
|
|
|
2875
2953
|
ecdh_public_key:
|
|
2876
2954
|
type: string
|
|
2877
2955
|
description: P-256 ECDH public key (base64 SEC1 uncompressed point)
|
|
2956
|
+
shroud_enabled:
|
|
2957
|
+
type: boolean
|
|
2958
|
+
description: Whether this agent routes LLM traffic through the Shroud TEE proxy
|
|
2959
|
+
shroud_config:
|
|
2960
|
+
$ref: '#/components/schemas/ShroudConfig'
|
|
2961
|
+
|
|
2962
|
+
ShroudConfig:
|
|
2963
|
+
type: object
|
|
2964
|
+
description: Per-agent Shroud LLM Proxy configuration
|
|
2965
|
+
properties:
|
|
2966
|
+
pii_policy:
|
|
2967
|
+
type: string
|
|
2968
|
+
enum: [block, redact, warn, allow]
|
|
2969
|
+
default: redact
|
|
2970
|
+
description: How PII detections are handled
|
|
2971
|
+
injection_threshold:
|
|
2972
|
+
type: number
|
|
2973
|
+
minimum: 0
|
|
2974
|
+
maximum: 1
|
|
2975
|
+
default: 0.7
|
|
2976
|
+
description: Prompt injection score threshold (0.0–1.0). Requests above are blocked
|
|
2977
|
+
context_injection_threshold:
|
|
2978
|
+
type: number
|
|
2979
|
+
minimum: 0
|
|
2980
|
+
maximum: 1
|
|
2981
|
+
default: 0.7
|
|
2982
|
+
description: Context injection score threshold (0.0–1.0)
|
|
2983
|
+
allowed_providers:
|
|
2984
|
+
type: array
|
|
2985
|
+
items:
|
|
2986
|
+
type: string
|
|
2987
|
+
description: LLM providers this agent may use (empty = all)
|
|
2988
|
+
allowed_models:
|
|
2989
|
+
type: array
|
|
2990
|
+
items:
|
|
2991
|
+
type: string
|
|
2992
|
+
description: Specific models allowed (empty = all)
|
|
2993
|
+
denied_models:
|
|
2994
|
+
type: array
|
|
2995
|
+
items:
|
|
2996
|
+
type: string
|
|
2997
|
+
description: Models explicitly blocked
|
|
2998
|
+
max_tokens_per_request:
|
|
2999
|
+
type: integer
|
|
3000
|
+
description: Maximum input tokens per request
|
|
3001
|
+
max_requests_per_minute:
|
|
3002
|
+
type: integer
|
|
3003
|
+
description: Rate limit (requests per minute)
|
|
3004
|
+
max_requests_per_day:
|
|
3005
|
+
type: integer
|
|
3006
|
+
description: Rate limit (requests per day)
|
|
3007
|
+
daily_budget_usd:
|
|
3008
|
+
type: number
|
|
3009
|
+
description: Daily LLM spend cap in USD (0 = unlimited)
|
|
3010
|
+
enable_secret_redaction:
|
|
3011
|
+
type: boolean
|
|
3012
|
+
default: true
|
|
3013
|
+
description: Whether vault secrets are redacted from prompts/responses
|
|
3014
|
+
enable_response_filtering:
|
|
3015
|
+
type: boolean
|
|
3016
|
+
default: true
|
|
3017
|
+
description: Whether response credential scanning is active
|
|
2878
3018
|
|
|
2879
3019
|
AgentCreatedResponse:
|
|
2880
3020
|
type: object
|
package/package.json
CHANGED