@1claw/openapi-spec 0.59.2 → 0.59.6

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.yaml CHANGED
@@ -6054,6 +6054,34 @@ paths:
6054
6054
  schema:
6055
6055
  $ref: "#/components/schemas/ShroudAttestationResponse"
6056
6056
 
6057
+ /v1/shroud/inspect-content:
6058
+ post:
6059
+ tags: [Shroud]
6060
+ summary: Inspect text for security threats
6061
+ description: |
6062
+ Standalone content inspection (MCP `inspect_content` parity). Scans for command
6063
+ injection, encoding tricks, social engineering, PII, and suspicious URLs.
6064
+ Fail-closed — returns `safe: false` when high/critical threats match.
6065
+ Accepts plt_ platform keys, agent JWTs, and user JWTs.
6066
+ operationId: inspectContent
6067
+ security:
6068
+ - BearerAuth: []
6069
+ requestBody:
6070
+ required: true
6071
+ content:
6072
+ application/json:
6073
+ schema:
6074
+ $ref: "#/components/schemas/InspectContentRequest"
6075
+ responses:
6076
+ "200":
6077
+ description: Inspection report
6078
+ content:
6079
+ application/json:
6080
+ schema:
6081
+ $ref: "#/components/schemas/InspectContentResponse"
6082
+ "400":
6083
+ $ref: "#/components/responses/BadRequest"
6084
+
6057
6085
  /v1/shroud/activity:
6058
6086
  get:
6059
6087
  tags: [Shroud]
@@ -6375,6 +6403,34 @@ paths:
6375
6403
  "404":
6376
6404
  $ref: "#/components/responses/NotFound"
6377
6405
 
6406
+ /v1/platform/apps/{appId}/webhooks:
6407
+ get:
6408
+ tags: [Platform]
6409
+ summary: Platform webhook delivery catalog
6410
+ description: |
6411
+ Returns whether `webhook_url` is configured and the event types delivered to
6412
+ the platform app webhook (payload includes `connection_id` when applicable).
6413
+ Org-scoped webhook subscriptions (`GET /v1/webhooks`) are separate.
6414
+ operationId: getPlatformWebhooks
6415
+ security:
6416
+ - BearerAuth: []
6417
+ parameters:
6418
+ - name: appId
6419
+ in: path
6420
+ required: true
6421
+ schema:
6422
+ type: string
6423
+ format: uuid
6424
+ responses:
6425
+ "200":
6426
+ description: Webhook configuration summary
6427
+ content:
6428
+ application/json:
6429
+ schema:
6430
+ $ref: "#/components/schemas/PlatformWebhookInfoResponse"
6431
+ "404":
6432
+ $ref: "#/components/responses/NotFound"
6433
+
6378
6434
  /v1/platform/apps/{appId}/rotate-webhook-secret:
6379
6435
  post:
6380
6436
  tags: [Platform]
@@ -7483,6 +7539,42 @@ paths:
7483
7539
  $ref: "#/components/schemas/PendingApprovalListResponse"
7484
7540
  "404":
7485
7541
  $ref: "#/components/responses/NotFound"
7542
+ post:
7543
+ tags: [Platform]
7544
+ summary: Create a pending consensus approval for a connection agent
7545
+ description: |
7546
+ Platform apps submit over-cap or consensus-gated actions on behalf of a
7547
+ connected user's agent. When `policy_id` is omitted, the server resolves the
7548
+ matching agent `consensus_trigger` policy from `action_payload` (chain, to, value).
7549
+ Returns **202** with `pending_approval_id` and `payload_hash` for decide/execute.
7550
+ Requires plt_ auth; agent must be provisioned on the connection.
7551
+ operationId: createConnectionPendingApproval
7552
+ security:
7553
+ - BearerAuth: []
7554
+ parameters:
7555
+ - in: path
7556
+ name: connectionId
7557
+ required: true
7558
+ schema:
7559
+ type: string
7560
+ format: uuid
7561
+ requestBody:
7562
+ required: true
7563
+ content:
7564
+ application/json:
7565
+ schema:
7566
+ $ref: "#/components/schemas/ConnectionSubmitPendingApprovalRequest"
7567
+ responses:
7568
+ "202":
7569
+ description: Pending approval created
7570
+ content:
7571
+ application/json:
7572
+ schema:
7573
+ $ref: "#/components/schemas/SubmitPendingApprovalResponse"
7574
+ "400":
7575
+ $ref: "#/components/responses/BadRequest"
7576
+ "404":
7577
+ $ref: "#/components/responses/NotFound"
7486
7578
 
7487
7579
  /v1/platform/connections/{connectionId}/pending-approvals/{approvalId}:
7488
7580
  get:
@@ -7654,7 +7746,8 @@ paths:
7654
7746
  summary: Get a signing key for a connection agent by chain
7655
7747
  description: |
7656
7748
  Returns public signing-key metadata for one chain on a connection agent.
7657
- Never includes private keys. plt_ auth only.
7749
+ Network names (e.g. `base`, `sepolia`) resolve to canonical signing keys
7750
+ (e.g. `ethereum`). Never includes private keys. plt_ auth only.
7658
7751
  operationId: getConnectionSigningKey
7659
7752
  security:
7660
7753
  - BearerAuth: []
@@ -7722,6 +7815,320 @@ paths:
7722
7815
  "404":
7723
7816
  $ref: "#/components/responses/NotFound"
7724
7817
 
7818
+ /v1/platform/connections/{connectionId}/agents/{agentId}:
7819
+ patch:
7820
+ tags: [Platform]
7821
+ summary: Update limited agent settings for a connection
7822
+ description: |
7823
+ Platform-scoped agent update for connected end-users. Allows enabling Intents API,
7824
+ Execution Intents, and updating the default system prompt without human dashboard access.
7825
+ Agent must be provisioned on the connection. plt_ auth only.
7826
+ operationId: patchConnectionAgent
7827
+ security:
7828
+ - BearerAuth: []
7829
+ parameters:
7830
+ - in: path
7831
+ name: connectionId
7832
+ required: true
7833
+ schema:
7834
+ type: string
7835
+ format: uuid
7836
+ - in: path
7837
+ name: agentId
7838
+ required: true
7839
+ schema:
7840
+ type: string
7841
+ format: uuid
7842
+ requestBody:
7843
+ required: true
7844
+ content:
7845
+ application/json:
7846
+ schema:
7847
+ $ref: "#/components/schemas/PatchConnectionAgentRequest"
7848
+ responses:
7849
+ "200":
7850
+ description: Updated agent settings
7851
+ content:
7852
+ application/json:
7853
+ schema:
7854
+ $ref: "#/components/schemas/PatchConnectionAgentResponse"
7855
+ "400":
7856
+ $ref: "#/components/responses/BadRequest"
7857
+ "403":
7858
+ $ref: "#/components/responses/Forbidden"
7859
+ "404":
7860
+ $ref: "#/components/responses/NotFound"
7861
+
7862
+ /v1/platform/connections/{connectionId}/portfolio:
7863
+ get:
7864
+ tags: [Platform]
7865
+ summary: Portfolio for connection agents
7866
+ description: |
7867
+ Aggregates signing-key and smart-account balances for agents provisioned on
7868
+ the connection. plt_ auth only.
7869
+ operationId: getConnectionPortfolio
7870
+ security:
7871
+ - BearerAuth: []
7872
+ parameters:
7873
+ - in: path
7874
+ name: connectionId
7875
+ required: true
7876
+ schema:
7877
+ type: string
7878
+ format: uuid
7879
+ - in: query
7880
+ name: chains
7881
+ required: false
7882
+ schema:
7883
+ type: string
7884
+ description: Comma-separated chain filter (e.g. `ethereum,base`)
7885
+ - in: query
7886
+ name: include_tokens
7887
+ required: false
7888
+ schema:
7889
+ type: boolean
7890
+ responses:
7891
+ "200":
7892
+ description: Connection-scoped portfolio
7893
+ content:
7894
+ application/json:
7895
+ schema:
7896
+ $ref: "#/components/schemas/PortfolioResponse"
7897
+ "404":
7898
+ $ref: "#/components/responses/NotFound"
7899
+
7900
+ /v1/platform/connections/{connectionId}/balances:
7901
+ get:
7902
+ tags: [Platform]
7903
+ summary: Balances alias for connection portfolio
7904
+ description: Alias of `GET .../portfolio`. plt_ auth only.
7905
+ operationId: getConnectionBalances
7906
+ security:
7907
+ - BearerAuth: []
7908
+ parameters:
7909
+ - in: path
7910
+ name: connectionId
7911
+ required: true
7912
+ schema:
7913
+ type: string
7914
+ format: uuid
7915
+ - in: query
7916
+ name: chains
7917
+ required: false
7918
+ schema:
7919
+ type: string
7920
+ responses:
7921
+ "200":
7922
+ description: Connection-scoped portfolio
7923
+ content:
7924
+ application/json:
7925
+ schema:
7926
+ $ref: "#/components/schemas/PortfolioResponse"
7927
+
7928
+ /v1/platform/connections/{connectionId}/automations:
7929
+ get:
7930
+ tags: [Platform]
7931
+ summary: List automations for connection agents
7932
+ operationId: listConnectionAutomations
7933
+ security:
7934
+ - BearerAuth: []
7935
+ parameters:
7936
+ - in: path
7937
+ name: connectionId
7938
+ required: true
7939
+ schema:
7940
+ type: string
7941
+ format: uuid
7942
+ responses:
7943
+ "200":
7944
+ description: Automations scoped to connection agents
7945
+ content:
7946
+ application/json:
7947
+ schema:
7948
+ $ref: "#/components/schemas/AutomationListResponse"
7949
+ post:
7950
+ tags: [Platform]
7951
+ summary: Create automation for a connection agent
7952
+ operationId: createConnectionAutomation
7953
+ security:
7954
+ - BearerAuth: []
7955
+ parameters:
7956
+ - in: path
7957
+ name: connectionId
7958
+ required: true
7959
+ schema:
7960
+ type: string
7961
+ format: uuid
7962
+ requestBody:
7963
+ required: true
7964
+ content:
7965
+ application/json:
7966
+ schema:
7967
+ $ref: "#/components/schemas/CreateAutomationRequest"
7968
+ responses:
7969
+ "201":
7970
+ description: Automation created
7971
+ content:
7972
+ application/json:
7973
+ schema:
7974
+ $ref: "#/components/schemas/AutomationCreatedResponse"
7975
+ "403":
7976
+ $ref: "#/components/responses/Forbidden"
7977
+
7978
+ /v1/platform/connections/{connectionId}/automations/{automationId}/runs/{runId}/cancel:
7979
+ post:
7980
+ tags: [Platform]
7981
+ summary: Cancel an automation run (connection-scoped)
7982
+ operationId: cancelConnectionAutomationRun
7983
+ security:
7984
+ - BearerAuth: []
7985
+ parameters:
7986
+ - in: path
7987
+ name: connectionId
7988
+ required: true
7989
+ schema:
7990
+ type: string
7991
+ format: uuid
7992
+ - in: path
7993
+ name: automationId
7994
+ required: true
7995
+ schema:
7996
+ type: string
7997
+ format: uuid
7998
+ - in: path
7999
+ name: runId
8000
+ required: true
8001
+ schema:
8002
+ type: string
8003
+ format: uuid
8004
+ responses:
8005
+ "200":
8006
+ description: Run cancelled
8007
+ content:
8008
+ application/json:
8009
+ schema:
8010
+ $ref: "#/components/schemas/AutomationRunResponse"
8011
+ "404":
8012
+ $ref: "#/components/responses/NotFound"
8013
+
8014
+ /v1/platform/connections/{connectionId}/memory/{namespace}/{key}:
8015
+ get:
8016
+ tags: [Platform]
8017
+ summary: Get agent memory entry (connection-scoped)
8018
+ operationId: getConnectionMemory
8019
+ security:
8020
+ - BearerAuth: []
8021
+ parameters:
8022
+ - in: path
8023
+ name: connectionId
8024
+ required: true
8025
+ schema:
8026
+ type: string
8027
+ format: uuid
8028
+ - in: path
8029
+ name: namespace
8030
+ required: true
8031
+ schema:
8032
+ type: string
8033
+ - in: path
8034
+ name: key
8035
+ required: true
8036
+ schema:
8037
+ type: string
8038
+ - in: query
8039
+ name: agent_id
8040
+ required: false
8041
+ schema:
8042
+ type: string
8043
+ format: uuid
8044
+ responses:
8045
+ "200":
8046
+ description: Memory entry
8047
+ content:
8048
+ application/json:
8049
+ schema:
8050
+ $ref: "#/components/schemas/MemoryEntry"
8051
+ "403":
8052
+ $ref: "#/components/responses/Forbidden"
8053
+ "404":
8054
+ $ref: "#/components/responses/NotFound"
8055
+ put:
8056
+ tags: [Platform]
8057
+ summary: Upsert agent memory entry (connection-scoped)
8058
+ operationId: putConnectionMemory
8059
+ security:
8060
+ - BearerAuth: []
8061
+ parameters:
8062
+ - in: path
8063
+ name: connectionId
8064
+ required: true
8065
+ schema:
8066
+ type: string
8067
+ format: uuid
8068
+ - in: path
8069
+ name: namespace
8070
+ required: true
8071
+ schema:
8072
+ type: string
8073
+ - in: path
8074
+ name: key
8075
+ required: true
8076
+ schema:
8077
+ type: string
8078
+ - in: query
8079
+ name: agent_id
8080
+ required: false
8081
+ schema:
8082
+ type: string
8083
+ format: uuid
8084
+ requestBody:
8085
+ required: true
8086
+ content:
8087
+ application/json:
8088
+ schema:
8089
+ $ref: "#/components/schemas/PutMemoryRequest"
8090
+ responses:
8091
+ "200":
8092
+ description: Memory entry stored
8093
+ content:
8094
+ application/json:
8095
+ schema:
8096
+ $ref: "#/components/schemas/MemoryEntry"
8097
+ delete:
8098
+ tags: [Platform]
8099
+ summary: Delete agent memory entry (connection-scoped)
8100
+ operationId: deleteConnectionMemory
8101
+ security:
8102
+ - BearerAuth: []
8103
+ parameters:
8104
+ - in: path
8105
+ name: connectionId
8106
+ required: true
8107
+ schema:
8108
+ type: string
8109
+ format: uuid
8110
+ - in: path
8111
+ name: namespace
8112
+ required: true
8113
+ schema:
8114
+ type: string
8115
+ - in: path
8116
+ name: key
8117
+ required: true
8118
+ schema:
8119
+ type: string
8120
+ - in: query
8121
+ name: agent_id
8122
+ required: false
8123
+ schema:
8124
+ type: string
8125
+ format: uuid
8126
+ responses:
8127
+ "204":
8128
+ description: Deleted
8129
+ "404":
8130
+ $ref: "#/components/responses/NotFound"
8131
+
7725
8132
  /v1/platform/connections/{connectionId}/runtimes:
7726
8133
  post:
7727
8134
  tags: [Platform]
@@ -14959,6 +15366,31 @@ components:
14959
15366
  curve:
14960
15367
  type: string
14961
15368
 
15369
+ PatchConnectionAgentRequest:
15370
+ type: object
15371
+ properties:
15372
+ intents_api_enabled:
15373
+ type: boolean
15374
+ execution_intents_enabled:
15375
+ type: boolean
15376
+ system_prompt:
15377
+ type: string
15378
+ nullable: true
15379
+
15380
+ PatchConnectionAgentResponse:
15381
+ type: object
15382
+ properties:
15383
+ agent_id:
15384
+ type: string
15385
+ format: uuid
15386
+ intents_api_enabled:
15387
+ type: boolean
15388
+ execution_intents_enabled:
15389
+ type: boolean
15390
+ system_prompt:
15391
+ type: string
15392
+ nullable: true
15393
+
14962
15394
  # Bankr Dynamic Key Vending
14963
15395
  LeaseBankrKeyRequest:
14964
15396
  type: object
@@ -21383,6 +21815,83 @@ components:
21383
21815
  action_payload:
21384
21816
  type: object
21385
21817
 
21818
+ ConnectionSubmitPendingApprovalRequest:
21819
+ type: object
21820
+ required: [action_payload]
21821
+ properties:
21822
+ agent_id:
21823
+ type: string
21824
+ format: uuid
21825
+ description: Required when the connection has multiple agents
21826
+ policy_id:
21827
+ type: string
21828
+ format: uuid
21829
+ description: Optional — auto-resolved from agent consensus policies when omitted
21830
+ action:
21831
+ type: string
21832
+ default: transaction
21833
+ action_payload:
21834
+ type: object
21835
+ description: Transaction/intent fields (chain, to, value, …) hashed for decide binding
21836
+ summary:
21837
+ type: string
21838
+ description: Human-readable label included in webhook payloads
21839
+
21840
+ InspectContentRequest:
21841
+ type: object
21842
+ required: [content]
21843
+ properties:
21844
+ content:
21845
+ type: string
21846
+ maxLength: 102400
21847
+ context:
21848
+ type: string
21849
+ enum: [input, output]
21850
+ description: Inspection context (reserved for future rules)
21851
+
21852
+ InspectContentResponse:
21853
+ type: object
21854
+ properties:
21855
+ safe:
21856
+ type: boolean
21857
+ verdict:
21858
+ type: string
21859
+ enum: [clean, malicious]
21860
+ threat_count:
21861
+ type: integer
21862
+ threats:
21863
+ type: array
21864
+ items:
21865
+ type: object
21866
+ properties:
21867
+ type:
21868
+ type: string
21869
+ pattern:
21870
+ type: string
21871
+ severity:
21872
+ type: string
21873
+ unicode_normalized:
21874
+ type: boolean
21875
+ normalized_content:
21876
+ type: string
21877
+
21878
+ PlatformWebhookInfoResponse:
21879
+ type: object
21880
+ properties:
21881
+ app_id:
21882
+ type: string
21883
+ format: uuid
21884
+ webhook_configured:
21885
+ type: boolean
21886
+ webhook_url_host:
21887
+ type: string
21888
+ platform_events:
21889
+ type: array
21890
+ items:
21891
+ type: string
21892
+ org_webhooks_note:
21893
+ type: string
21894
+
21386
21895
  SubmitPendingApprovalResponse:
21387
21896
  type: object
21388
21897
  properties:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1claw/openapi-spec",
3
- "version": "0.59.2",
3
+ "version": "0.59.6",
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": {