@1claw/sdk 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.
@@ -3660,6 +3660,29 @@ export interface paths {
3660
3660
  patch?: never;
3661
3661
  trace?: never;
3662
3662
  };
3663
+ "/v1/shroud/inspect-content": {
3664
+ parameters: {
3665
+ query?: never;
3666
+ header?: never;
3667
+ path?: never;
3668
+ cookie?: never;
3669
+ };
3670
+ get?: never;
3671
+ put?: never;
3672
+ /**
3673
+ * Inspect text for security threats
3674
+ * @description Standalone content inspection (MCP `inspect_content` parity). Scans for command
3675
+ * injection, encoding tricks, social engineering, PII, and suspicious URLs.
3676
+ * Fail-closed — returns `safe: false` when high/critical threats match.
3677
+ * Accepts plt_ platform keys, agent JWTs, and user JWTs.
3678
+ */
3679
+ post: operations["inspectContent"];
3680
+ delete?: never;
3681
+ options?: never;
3682
+ head?: never;
3683
+ patch?: never;
3684
+ trace?: never;
3685
+ };
3663
3686
  "/v1/shroud/activity": {
3664
3687
  parameters: {
3665
3688
  query?: never;
@@ -4093,6 +4116,28 @@ export interface paths {
4093
4116
  patch?: never;
4094
4117
  trace?: never;
4095
4118
  };
4119
+ "/v1/platform/apps/{appId}/webhooks": {
4120
+ parameters: {
4121
+ query?: never;
4122
+ header?: never;
4123
+ path?: never;
4124
+ cookie?: never;
4125
+ };
4126
+ /**
4127
+ * Platform webhook delivery catalog
4128
+ * @description Returns whether `webhook_url` is configured and the event types delivered to
4129
+ * the platform app webhook (payload includes `connection_id` when applicable).
4130
+ * Org-scoped webhook subscriptions (`GET /v1/webhooks`) are separate.
4131
+ */
4132
+ get: operations["getPlatformWebhooks"];
4133
+ put?: never;
4134
+ post?: never;
4135
+ delete?: never;
4136
+ options?: never;
4137
+ head?: never;
4138
+ patch?: never;
4139
+ trace?: never;
4140
+ };
4096
4141
  "/v1/platform/apps/{appId}/rotate-webhook-secret": {
4097
4142
  parameters: {
4098
4143
  query?: never;
@@ -5232,7 +5277,15 @@ export interface paths {
5232
5277
  */
5233
5278
  get: operations["listConnectionPendingApprovals"];
5234
5279
  put?: never;
5235
- post?: never;
5280
+ /**
5281
+ * Create a pending consensus approval for a connection agent
5282
+ * @description Platform apps submit over-cap or consensus-gated actions on behalf of a
5283
+ * connected user's agent. When `policy_id` is omitted, the server resolves the
5284
+ * matching agent `consensus_trigger` policy from `action_payload` (chain, to, value).
5285
+ * Returns **202** with `pending_approval_id` and `payload_hash` for decide/execute.
5286
+ * Requires plt_ auth; agent must be provisioned on the connection.
5287
+ */
5288
+ post: operations["createConnectionPendingApproval"];
5236
5289
  delete?: never;
5237
5290
  options?: never;
5238
5291
  head?: never;
@@ -5333,7 +5386,8 @@ export interface paths {
5333
5386
  /**
5334
5387
  * Get a signing key for a connection agent by chain
5335
5388
  * @description Returns public signing-key metadata for one chain on a connection agent.
5336
- * Never includes private keys. plt_ auth only.
5389
+ * Network names (e.g. `base`, `sepolia`) resolve to canonical signing keys
5390
+ * (e.g. `ethereum`). Never includes private keys. plt_ auth only.
5337
5391
  */
5338
5392
  get: operations["getConnectionSigningKey"];
5339
5393
  put?: never;
@@ -5349,6 +5403,123 @@ export interface paths {
5349
5403
  patch?: never;
5350
5404
  trace?: never;
5351
5405
  };
5406
+ "/v1/platform/connections/{connectionId}/agents/{agentId}": {
5407
+ parameters: {
5408
+ query?: never;
5409
+ header?: never;
5410
+ path?: never;
5411
+ cookie?: never;
5412
+ };
5413
+ get?: never;
5414
+ put?: never;
5415
+ post?: never;
5416
+ delete?: never;
5417
+ options?: never;
5418
+ head?: never;
5419
+ /**
5420
+ * Update limited agent settings for a connection
5421
+ * @description Platform-scoped agent update for connected end-users. Allows enabling Intents API,
5422
+ * Execution Intents, and updating the default system prompt without human dashboard access.
5423
+ * Agent must be provisioned on the connection. plt_ auth only.
5424
+ */
5425
+ patch: operations["patchConnectionAgent"];
5426
+ trace?: never;
5427
+ };
5428
+ "/v1/platform/connections/{connectionId}/portfolio": {
5429
+ parameters: {
5430
+ query?: never;
5431
+ header?: never;
5432
+ path?: never;
5433
+ cookie?: never;
5434
+ };
5435
+ /**
5436
+ * Portfolio for connection agents
5437
+ * @description Aggregates signing-key and smart-account balances for agents provisioned on
5438
+ * the connection. plt_ auth only.
5439
+ */
5440
+ get: operations["getConnectionPortfolio"];
5441
+ put?: never;
5442
+ post?: never;
5443
+ delete?: never;
5444
+ options?: never;
5445
+ head?: never;
5446
+ patch?: never;
5447
+ trace?: never;
5448
+ };
5449
+ "/v1/platform/connections/{connectionId}/balances": {
5450
+ parameters: {
5451
+ query?: never;
5452
+ header?: never;
5453
+ path?: never;
5454
+ cookie?: never;
5455
+ };
5456
+ /**
5457
+ * Balances alias for connection portfolio
5458
+ * @description Alias of `GET .../portfolio`. plt_ auth only.
5459
+ */
5460
+ get: operations["getConnectionBalances"];
5461
+ put?: never;
5462
+ post?: never;
5463
+ delete?: never;
5464
+ options?: never;
5465
+ head?: never;
5466
+ patch?: never;
5467
+ trace?: never;
5468
+ };
5469
+ "/v1/platform/connections/{connectionId}/automations": {
5470
+ parameters: {
5471
+ query?: never;
5472
+ header?: never;
5473
+ path?: never;
5474
+ cookie?: never;
5475
+ };
5476
+ /** List automations for connection agents */
5477
+ get: operations["listConnectionAutomations"];
5478
+ put?: never;
5479
+ /** Create automation for a connection agent */
5480
+ post: operations["createConnectionAutomation"];
5481
+ delete?: never;
5482
+ options?: never;
5483
+ head?: never;
5484
+ patch?: never;
5485
+ trace?: never;
5486
+ };
5487
+ "/v1/platform/connections/{connectionId}/automations/{automationId}/runs/{runId}/cancel": {
5488
+ parameters: {
5489
+ query?: never;
5490
+ header?: never;
5491
+ path?: never;
5492
+ cookie?: never;
5493
+ };
5494
+ get?: never;
5495
+ put?: never;
5496
+ /** Cancel an automation run (connection-scoped) */
5497
+ post: operations["cancelConnectionAutomationRun"];
5498
+ delete?: never;
5499
+ options?: never;
5500
+ head?: never;
5501
+ patch?: never;
5502
+ trace?: never;
5503
+ };
5504
+ "/v1/platform/connections/{connectionId}/memory/{namespace}/{key}": {
5505
+ parameters: {
5506
+ query?: never;
5507
+ header?: never;
5508
+ path?: never;
5509
+ cookie?: never;
5510
+ };
5511
+ /** Get agent memory entry (connection-scoped) */
5512
+ get: operations["getConnectionMemory"];
5513
+ /** Upsert agent memory entry (connection-scoped) */
5514
+ put: operations["putConnectionMemory"];
5515
+ post?: never;
5516
+ /** Delete agent memory entry (connection-scoped) */
5517
+ delete: operations["deleteConnectionMemory"];
5518
+ options?: never;
5519
+ head?: never;
5520
+ patch?: never;
5521
+ trace?: never;
5522
+ };
5352
5523
  "/v1/platform/connections/{connectionId}/runtimes": {
5353
5524
  parameters: {
5354
5525
  query?: never;
@@ -9710,6 +9881,18 @@ export interface components {
9710
9881
  public_key?: string;
9711
9882
  curve?: string;
9712
9883
  };
9884
+ PatchConnectionAgentRequest: {
9885
+ intents_api_enabled?: boolean;
9886
+ execution_intents_enabled?: boolean;
9887
+ system_prompt?: string | null;
9888
+ };
9889
+ PatchConnectionAgentResponse: {
9890
+ /** Format: uuid */
9891
+ agent_id?: string;
9892
+ intents_api_enabled?: boolean;
9893
+ execution_intents_enabled?: boolean;
9894
+ system_prompt?: string | null;
9895
+ };
9713
9896
  LeaseBankrKeyRequest: {
9714
9897
  /** @description Bankr wallet ID (wlt_...). Uses org default if omitted. */
9715
9898
  wallet_id?: string;
@@ -13159,6 +13342,53 @@ export interface components {
13159
13342
  action: string;
13160
13343
  action_payload: Record<string, never>;
13161
13344
  };
13345
+ ConnectionSubmitPendingApprovalRequest: {
13346
+ /**
13347
+ * Format: uuid
13348
+ * @description Required when the connection has multiple agents
13349
+ */
13350
+ agent_id?: string;
13351
+ /**
13352
+ * Format: uuid
13353
+ * @description Optional — auto-resolved from agent consensus policies when omitted
13354
+ */
13355
+ policy_id?: string;
13356
+ /** @default transaction */
13357
+ action: string;
13358
+ /** @description Transaction/intent fields (chain, to, value, …) hashed for decide binding */
13359
+ action_payload: Record<string, never>;
13360
+ /** @description Human-readable label included in webhook payloads */
13361
+ summary?: string;
13362
+ };
13363
+ InspectContentRequest: {
13364
+ content: string;
13365
+ /**
13366
+ * @description Inspection context (reserved for future rules)
13367
+ * @enum {string}
13368
+ */
13369
+ context?: "input" | "output";
13370
+ };
13371
+ InspectContentResponse: {
13372
+ safe?: boolean;
13373
+ /** @enum {string} */
13374
+ verdict?: "clean" | "malicious";
13375
+ threat_count?: number;
13376
+ threats?: {
13377
+ type?: string;
13378
+ pattern?: string;
13379
+ severity?: string;
13380
+ }[];
13381
+ unicode_normalized?: boolean;
13382
+ normalized_content?: string;
13383
+ };
13384
+ PlatformWebhookInfoResponse: {
13385
+ /** Format: uuid */
13386
+ app_id?: string;
13387
+ webhook_configured?: boolean;
13388
+ webhook_url_host?: string;
13389
+ platform_events?: string[];
13390
+ org_webhooks_note?: string;
13391
+ };
13162
13392
  SubmitPendingApprovalResponse: {
13163
13393
  /** Format: uuid */
13164
13394
  pending_approval_id?: string;
@@ -19795,6 +20025,31 @@ export interface operations {
19795
20025
  };
19796
20026
  };
19797
20027
  };
20028
+ inspectContent: {
20029
+ parameters: {
20030
+ query?: never;
20031
+ header?: never;
20032
+ path?: never;
20033
+ cookie?: never;
20034
+ };
20035
+ requestBody: {
20036
+ content: {
20037
+ "application/json": components["schemas"]["InspectContentRequest"];
20038
+ };
20039
+ };
20040
+ responses: {
20041
+ /** @description Inspection report */
20042
+ 200: {
20043
+ headers: {
20044
+ [name: string]: unknown;
20045
+ };
20046
+ content: {
20047
+ "application/json": components["schemas"]["InspectContentResponse"];
20048
+ };
20049
+ };
20050
+ 400: components["responses"]["BadRequest"];
20051
+ };
20052
+ };
19798
20053
  transferPlatformAppOwnership: {
19799
20054
  parameters: {
19800
20055
  query?: never;
@@ -19850,6 +20105,29 @@ export interface operations {
19850
20105
  404: components["responses"]["NotFound"];
19851
20106
  };
19852
20107
  };
20108
+ getPlatformWebhooks: {
20109
+ parameters: {
20110
+ query?: never;
20111
+ header?: never;
20112
+ path: {
20113
+ appId: string;
20114
+ };
20115
+ cookie?: never;
20116
+ };
20117
+ requestBody?: never;
20118
+ responses: {
20119
+ /** @description Webhook configuration summary */
20120
+ 200: {
20121
+ headers: {
20122
+ [name: string]: unknown;
20123
+ };
20124
+ content: {
20125
+ "application/json": components["schemas"]["PlatformWebhookInfoResponse"];
20126
+ };
20127
+ };
20128
+ 404: components["responses"]["NotFound"];
20129
+ };
20130
+ };
19853
20131
  rotatePlatformWebhookSecret: {
19854
20132
  parameters: {
19855
20133
  query?: never;
@@ -20287,6 +20565,34 @@ export interface operations {
20287
20565
  404: components["responses"]["NotFound"];
20288
20566
  };
20289
20567
  };
20568
+ createConnectionPendingApproval: {
20569
+ parameters: {
20570
+ query?: never;
20571
+ header?: never;
20572
+ path: {
20573
+ connectionId: string;
20574
+ };
20575
+ cookie?: never;
20576
+ };
20577
+ requestBody: {
20578
+ content: {
20579
+ "application/json": components["schemas"]["ConnectionSubmitPendingApprovalRequest"];
20580
+ };
20581
+ };
20582
+ responses: {
20583
+ /** @description Pending approval created */
20584
+ 202: {
20585
+ headers: {
20586
+ [name: string]: unknown;
20587
+ };
20588
+ content: {
20589
+ "application/json": components["schemas"]["SubmitPendingApprovalResponse"];
20590
+ };
20591
+ };
20592
+ 400: components["responses"]["BadRequest"];
20593
+ 404: components["responses"]["NotFound"];
20594
+ };
20595
+ };
20290
20596
  getConnectionPendingApproval: {
20291
20597
  parameters: {
20292
20598
  query?: never;
@@ -20484,6 +20790,243 @@ export interface operations {
20484
20790
  404: components["responses"]["NotFound"];
20485
20791
  };
20486
20792
  };
20793
+ patchConnectionAgent: {
20794
+ parameters: {
20795
+ query?: never;
20796
+ header?: never;
20797
+ path: {
20798
+ connectionId: string;
20799
+ agentId: string;
20800
+ };
20801
+ cookie?: never;
20802
+ };
20803
+ requestBody: {
20804
+ content: {
20805
+ "application/json": components["schemas"]["PatchConnectionAgentRequest"];
20806
+ };
20807
+ };
20808
+ responses: {
20809
+ /** @description Updated agent settings */
20810
+ 200: {
20811
+ headers: {
20812
+ [name: string]: unknown;
20813
+ };
20814
+ content: {
20815
+ "application/json": components["schemas"]["PatchConnectionAgentResponse"];
20816
+ };
20817
+ };
20818
+ 400: components["responses"]["BadRequest"];
20819
+ 403: components["responses"]["Forbidden"];
20820
+ 404: components["responses"]["NotFound"];
20821
+ };
20822
+ };
20823
+ getConnectionPortfolio: {
20824
+ parameters: {
20825
+ query?: {
20826
+ chains?: string;
20827
+ include_tokens?: boolean;
20828
+ };
20829
+ header?: never;
20830
+ path: {
20831
+ connectionId: string;
20832
+ };
20833
+ cookie?: never;
20834
+ };
20835
+ requestBody?: never;
20836
+ responses: {
20837
+ /** @description Connection-scoped portfolio */
20838
+ 200: {
20839
+ headers: {
20840
+ [name: string]: unknown;
20841
+ };
20842
+ content: {
20843
+ "application/json": components["schemas"]["PortfolioResponse"];
20844
+ };
20845
+ };
20846
+ 404: components["responses"]["NotFound"];
20847
+ };
20848
+ };
20849
+ getConnectionBalances: {
20850
+ parameters: {
20851
+ query?: {
20852
+ chains?: string;
20853
+ };
20854
+ header?: never;
20855
+ path: {
20856
+ connectionId: string;
20857
+ };
20858
+ cookie?: never;
20859
+ };
20860
+ requestBody?: never;
20861
+ responses: {
20862
+ /** @description Connection-scoped portfolio */
20863
+ 200: {
20864
+ headers: {
20865
+ [name: string]: unknown;
20866
+ };
20867
+ content: {
20868
+ "application/json": components["schemas"]["PortfolioResponse"];
20869
+ };
20870
+ };
20871
+ };
20872
+ };
20873
+ listConnectionAutomations: {
20874
+ parameters: {
20875
+ query?: never;
20876
+ header?: never;
20877
+ path: {
20878
+ connectionId: string;
20879
+ };
20880
+ cookie?: never;
20881
+ };
20882
+ requestBody?: never;
20883
+ responses: {
20884
+ /** @description Automations scoped to connection agents */
20885
+ 200: {
20886
+ headers: {
20887
+ [name: string]: unknown;
20888
+ };
20889
+ content: {
20890
+ "application/json": components["schemas"]["AutomationListResponse"];
20891
+ };
20892
+ };
20893
+ };
20894
+ };
20895
+ createConnectionAutomation: {
20896
+ parameters: {
20897
+ query?: never;
20898
+ header?: never;
20899
+ path: {
20900
+ connectionId: string;
20901
+ };
20902
+ cookie?: never;
20903
+ };
20904
+ requestBody: {
20905
+ content: {
20906
+ "application/json": components["schemas"]["CreateAutomationRequest"];
20907
+ };
20908
+ };
20909
+ responses: {
20910
+ /** @description Automation created */
20911
+ 201: {
20912
+ headers: {
20913
+ [name: string]: unknown;
20914
+ };
20915
+ content: {
20916
+ "application/json": components["schemas"]["AutomationCreatedResponse"];
20917
+ };
20918
+ };
20919
+ 403: components["responses"]["Forbidden"];
20920
+ };
20921
+ };
20922
+ cancelConnectionAutomationRun: {
20923
+ parameters: {
20924
+ query?: never;
20925
+ header?: never;
20926
+ path: {
20927
+ connectionId: string;
20928
+ automationId: string;
20929
+ runId: string;
20930
+ };
20931
+ cookie?: never;
20932
+ };
20933
+ requestBody?: never;
20934
+ responses: {
20935
+ /** @description Run cancelled */
20936
+ 200: {
20937
+ headers: {
20938
+ [name: string]: unknown;
20939
+ };
20940
+ content: {
20941
+ "application/json": components["schemas"]["AutomationRunResponse"];
20942
+ };
20943
+ };
20944
+ 404: components["responses"]["NotFound"];
20945
+ };
20946
+ };
20947
+ getConnectionMemory: {
20948
+ parameters: {
20949
+ query?: {
20950
+ agent_id?: string;
20951
+ };
20952
+ header?: never;
20953
+ path: {
20954
+ connectionId: string;
20955
+ namespace: string;
20956
+ key: string;
20957
+ };
20958
+ cookie?: never;
20959
+ };
20960
+ requestBody?: never;
20961
+ responses: {
20962
+ /** @description Memory entry */
20963
+ 200: {
20964
+ headers: {
20965
+ [name: string]: unknown;
20966
+ };
20967
+ content: {
20968
+ "application/json": components["schemas"]["MemoryEntry"];
20969
+ };
20970
+ };
20971
+ 403: components["responses"]["Forbidden"];
20972
+ 404: components["responses"]["NotFound"];
20973
+ };
20974
+ };
20975
+ putConnectionMemory: {
20976
+ parameters: {
20977
+ query?: {
20978
+ agent_id?: string;
20979
+ };
20980
+ header?: never;
20981
+ path: {
20982
+ connectionId: string;
20983
+ namespace: string;
20984
+ key: string;
20985
+ };
20986
+ cookie?: never;
20987
+ };
20988
+ requestBody: {
20989
+ content: {
20990
+ "application/json": components["schemas"]["PutMemoryRequest"];
20991
+ };
20992
+ };
20993
+ responses: {
20994
+ /** @description Memory entry stored */
20995
+ 200: {
20996
+ headers: {
20997
+ [name: string]: unknown;
20998
+ };
20999
+ content: {
21000
+ "application/json": components["schemas"]["MemoryEntry"];
21001
+ };
21002
+ };
21003
+ };
21004
+ };
21005
+ deleteConnectionMemory: {
21006
+ parameters: {
21007
+ query?: {
21008
+ agent_id?: string;
21009
+ };
21010
+ header?: never;
21011
+ path: {
21012
+ connectionId: string;
21013
+ namespace: string;
21014
+ key: string;
21015
+ };
21016
+ cookie?: never;
21017
+ };
21018
+ requestBody?: never;
21019
+ responses: {
21020
+ /** @description Deleted */
21021
+ 204: {
21022
+ headers: {
21023
+ [name: string]: unknown;
21024
+ };
21025
+ content?: never;
21026
+ };
21027
+ 404: components["responses"]["NotFound"];
21028
+ };
21029
+ };
20487
21030
  createConnectionRuntime: {
20488
21031
  parameters: {
20489
21032
  query?: never;