@1claw/openapi-spec 0.58.2 → 0.59.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @1claw/openapi-spec (v0.58.0)
1
+ # @1claw/openapi-spec (v0.59.2)
2
2
 
3
3
  OpenAPI 3.1.0 specification for the [1Claw Vault API](https://1claw.xyz). Use this package to generate API clients in any language.
4
4
 
package/openapi.json CHANGED
@@ -6218,6 +6218,60 @@
6218
6218
  }
6219
6219
  }
6220
6220
  },
6221
+ "/v1/org/onboarding/status": {
6222
+ "get": {
6223
+ "tags": [
6224
+ "Organization"
6225
+ ],
6226
+ "summary": "Onboarding funnel status",
6227
+ "description": "Returns welcome-bundle and MCP connection progress for the connect wizard.",
6228
+ "operationId": "getOnboardingStatus",
6229
+ "responses": {
6230
+ "200": {
6231
+ "description": "Onboarding status",
6232
+ "content": {
6233
+ "application/json": {
6234
+ "schema": {
6235
+ "$ref": "#/components/schemas/OnboardingStatus"
6236
+ }
6237
+ }
6238
+ }
6239
+ }
6240
+ }
6241
+ }
6242
+ },
6243
+ "/v1/onboarding/provision": {
6244
+ "post": {
6245
+ "tags": [
6246
+ "Organization"
6247
+ ],
6248
+ "summary": "Provision MCP onboarding bundle",
6249
+ "description": "Creates welcome vault + sample secret, MCP agent, and default ** policy. Returns one-time API key and stdio MCP config.",
6250
+ "operationId": "provisionOnboarding",
6251
+ "requestBody": {
6252
+ "required": false,
6253
+ "content": {
6254
+ "application/json": {
6255
+ "schema": {
6256
+ "$ref": "#/components/schemas/OnboardingProvisionRequest"
6257
+ }
6258
+ }
6259
+ }
6260
+ },
6261
+ "responses": {
6262
+ "200": {
6263
+ "description": "Provisioned resources",
6264
+ "content": {
6265
+ "application/json": {
6266
+ "schema": {
6267
+ "$ref": "#/components/schemas/OnboardingProvisionResponse"
6268
+ }
6269
+ }
6270
+ }
6271
+ }
6272
+ }
6273
+ }
6274
+ },
6221
6275
  "/v1/org/status": {
6222
6276
  "get": {
6223
6277
  "tags": [
@@ -10331,9 +10385,17 @@
10331
10385
  "content": {
10332
10386
  "application/json": {
10333
10387
  "schema": {
10334
- "type": "array",
10335
- "items": {
10336
- "$ref": "#/components/schemas/PlatformConnectedUserResponse"
10388
+ "type": "object",
10389
+ "required": [
10390
+ "users"
10391
+ ],
10392
+ "properties": {
10393
+ "users": {
10394
+ "type": "array",
10395
+ "items": {
10396
+ "$ref": "#/components/schemas/PlatformConnectedUserResponse"
10397
+ }
10398
+ }
10337
10399
  }
10338
10400
  }
10339
10401
  }
@@ -11813,7 +11875,119 @@
11813
11875
  }
11814
11876
  }
11815
11877
  },
11878
+ "/v1/platform/connections/{connectionId}/signing-keys": {
11879
+ "get": {
11880
+ "tags": [
11881
+ "Platform"
11882
+ ],
11883
+ "summary": "List signing keys for a connection agent",
11884
+ "description": "Returns public signing-key metadata (chain, address, public_key, curve) for\nagent(s) provisioned on the connection. Never includes private keys.\nWhen multiple agents exist, pass `agent_id` query param. plt_ auth only.\n",
11885
+ "operationId": "listConnectionSigningKeys",
11886
+ "security": [
11887
+ {
11888
+ "BearerAuth": []
11889
+ }
11890
+ ],
11891
+ "parameters": [
11892
+ {
11893
+ "in": "path",
11894
+ "name": "connectionId",
11895
+ "required": true,
11896
+ "schema": {
11897
+ "type": "string",
11898
+ "format": "uuid"
11899
+ }
11900
+ },
11901
+ {
11902
+ "in": "query",
11903
+ "name": "agent_id",
11904
+ "required": false,
11905
+ "schema": {
11906
+ "type": "string",
11907
+ "format": "uuid"
11908
+ }
11909
+ }
11910
+ ],
11911
+ "responses": {
11912
+ "200": {
11913
+ "description": "Signing keys for the connection agent",
11914
+ "content": {
11915
+ "application/json": {
11916
+ "schema": {
11917
+ "$ref": "#/components/schemas/ConnectionSigningKeyListResponse"
11918
+ }
11919
+ }
11920
+ }
11921
+ },
11922
+ "400": {
11923
+ "description": "Multiple agents — agent_id required"
11924
+ },
11925
+ "404": {
11926
+ "$ref": "#/components/responses/NotFound"
11927
+ }
11928
+ }
11929
+ }
11930
+ },
11816
11931
  "/v1/platform/connections/{connectionId}/signing-keys/{chain}": {
11932
+ "get": {
11933
+ "tags": [
11934
+ "Platform"
11935
+ ],
11936
+ "summary": "Get a signing key for a connection agent by chain",
11937
+ "description": "Returns public signing-key metadata for one chain on a connection agent.\nNever includes private keys. plt_ auth only.\n",
11938
+ "operationId": "getConnectionSigningKey",
11939
+ "security": [
11940
+ {
11941
+ "BearerAuth": []
11942
+ }
11943
+ ],
11944
+ "parameters": [
11945
+ {
11946
+ "in": "path",
11947
+ "name": "connectionId",
11948
+ "required": true,
11949
+ "schema": {
11950
+ "type": "string",
11951
+ "format": "uuid"
11952
+ }
11953
+ },
11954
+ {
11955
+ "in": "path",
11956
+ "name": "chain",
11957
+ "required": true,
11958
+ "schema": {
11959
+ "type": "string"
11960
+ }
11961
+ },
11962
+ {
11963
+ "in": "query",
11964
+ "name": "agent_id",
11965
+ "required": false,
11966
+ "schema": {
11967
+ "type": "string",
11968
+ "format": "uuid"
11969
+ }
11970
+ }
11971
+ ],
11972
+ "responses": {
11973
+ "200": {
11974
+ "description": "Signing key metadata",
11975
+ "content": {
11976
+ "application/json": {
11977
+ "schema": {
11978
+ "$ref": "#/components/schemas/ConnectionSigningKeyDetailResponse"
11979
+ }
11980
+ }
11981
+ }
11982
+ },
11983
+ "400": {
11984
+ "description": "Multiple agents — agent_id required"
11985
+ },
11986
+ "404": {
11987
+ "$ref": "#/components/responses/NotFound"
11988
+ }
11989
+ }
11990
+ },
11817
11991
  "delete": {
11818
11992
  "tags": [
11819
11993
  "Platform"
@@ -11921,6 +12095,150 @@
11921
12095
  }
11922
12096
  }
11923
12097
  },
12098
+ "/v1/platform/connections/{connectionId}/runtimes/{runtimeId}": {
12099
+ "get": {
12100
+ "tags": [
12101
+ "Platform"
12102
+ ],
12103
+ "summary": "Get a connection runtime (plt_ scoped)",
12104
+ "description": "Returns a runtime provisioned on this connection. Use instead of\n`GET /v1/runtimes/{id}` with a plt_ key (which resolves to the platform org).\n",
12105
+ "operationId": "getConnectionRuntime",
12106
+ "security": [
12107
+ {
12108
+ "BearerAuth": []
12109
+ }
12110
+ ],
12111
+ "parameters": [
12112
+ {
12113
+ "in": "path",
12114
+ "name": "connectionId",
12115
+ "required": true,
12116
+ "schema": {
12117
+ "type": "string",
12118
+ "format": "uuid"
12119
+ }
12120
+ },
12121
+ {
12122
+ "in": "path",
12123
+ "name": "runtimeId",
12124
+ "required": true,
12125
+ "schema": {
12126
+ "type": "string",
12127
+ "format": "uuid"
12128
+ }
12129
+ }
12130
+ ],
12131
+ "responses": {
12132
+ "200": {
12133
+ "description": "Runtime details",
12134
+ "content": {
12135
+ "application/json": {
12136
+ "schema": {
12137
+ "$ref": "#/components/schemas/RuntimeResponse"
12138
+ }
12139
+ }
12140
+ }
12141
+ },
12142
+ "404": {
12143
+ "$ref": "#/components/responses/NotFound"
12144
+ }
12145
+ }
12146
+ }
12147
+ },
12148
+ "/v1/platform/connections/{connectionId}/passkeys/enroll/begin": {
12149
+ "post": {
12150
+ "tags": [
12151
+ "Platform"
12152
+ ],
12153
+ "summary": "Begin passkey enrollment for a connected user",
12154
+ "description": "Starts WebAuthn registration for the end-user on this connection.\nPlatform apps use this instead of `POST /v1/auth/passkeys/register/begin` (user JWT only).\n",
12155
+ "operationId": "connectionPasskeyEnrollBegin",
12156
+ "security": [
12157
+ {
12158
+ "BearerAuth": []
12159
+ }
12160
+ ],
12161
+ "parameters": [
12162
+ {
12163
+ "in": "path",
12164
+ "name": "connectionId",
12165
+ "required": true,
12166
+ "schema": {
12167
+ "type": "string",
12168
+ "format": "uuid"
12169
+ }
12170
+ }
12171
+ ],
12172
+ "responses": {
12173
+ "200": {
12174
+ "description": "WebAuthn registration ceremony options",
12175
+ "content": {
12176
+ "application/json": {
12177
+ "schema": {
12178
+ "$ref": "#/components/schemas/PasskeyRegisterBeginResponse"
12179
+ }
12180
+ }
12181
+ }
12182
+ },
12183
+ "404": {
12184
+ "$ref": "#/components/responses/NotFound"
12185
+ }
12186
+ }
12187
+ }
12188
+ },
12189
+ "/v1/platform/connections/{connectionId}/passkeys/enroll/complete": {
12190
+ "post": {
12191
+ "tags": [
12192
+ "Platform"
12193
+ ],
12194
+ "summary": "Complete passkey enrollment for a connected user",
12195
+ "operationId": "connectionPasskeyEnrollComplete",
12196
+ "security": [
12197
+ {
12198
+ "BearerAuth": []
12199
+ }
12200
+ ],
12201
+ "parameters": [
12202
+ {
12203
+ "in": "path",
12204
+ "name": "connectionId",
12205
+ "required": true,
12206
+ "schema": {
12207
+ "type": "string",
12208
+ "format": "uuid"
12209
+ }
12210
+ }
12211
+ ],
12212
+ "requestBody": {
12213
+ "required": true,
12214
+ "content": {
12215
+ "application/json": {
12216
+ "schema": {
12217
+ "$ref": "#/components/schemas/PasskeyRegisterCompleteRequest"
12218
+ }
12219
+ }
12220
+ }
12221
+ },
12222
+ "responses": {
12223
+ "201": {
12224
+ "description": "Passkey registered",
12225
+ "content": {
12226
+ "application/json": {
12227
+ "schema": {
12228
+ "$ref": "#/components/schemas/PasskeyRegisterCompleteResponse"
12229
+ }
12230
+ }
12231
+ }
12232
+ },
12233
+ "400": {
12234
+ "$ref": "#/components/responses/BadRequest"
12235
+ },
12236
+ "404": {
12237
+ "$ref": "#/components/responses/NotFound"
12238
+ }
12239
+ }
12240
+ }
12241
+ },
11924
12242
  "/v1/platform/connections/{connectionId}/agents/{agentId}/chat": {
11925
12243
  "post": {
11926
12244
  "tags": [
@@ -11968,6 +12286,9 @@
11968
12286
  "200": {
11969
12287
  "description": "Message sent (JSON or SSE stream)"
11970
12288
  },
12289
+ "402": {
12290
+ "description": "Payment required (LLM billing / inference allowance)"
12291
+ },
11971
12292
  "403": {
11972
12293
  "$ref": "#/components/responses/Forbidden"
11973
12294
  },
@@ -20545,6 +20866,10 @@
20545
20866
  "shroud_config": {
20546
20867
  "$ref": "#/components/schemas/ShroudConfig"
20547
20868
  },
20869
+ "system_prompt": {
20870
+ "type": "string",
20871
+ "description": "Default system prompt for agent chat when requests do not override it."
20872
+ },
20548
20873
  "execution_intents_enabled": {
20549
20874
  "type": "boolean",
20550
20875
  "default": false,
@@ -20811,6 +21136,11 @@
20811
21136
  "shroud_config": {
20812
21137
  "$ref": "#/components/schemas/ShroudConfig"
20813
21138
  },
21139
+ "system_prompt": {
21140
+ "type": "string",
21141
+ "nullable": true,
21142
+ "description": "Default system prompt for agent chat (null clears)."
21143
+ },
20814
21144
  "execution_intents_enabled": {
20815
21145
  "type": "boolean",
20816
21146
  "description": "Enable/disable Execution Intents for this agent"
@@ -21154,6 +21484,10 @@
21154
21484
  "shroud_config": {
21155
21485
  "$ref": "#/components/schemas/ShroudConfig"
21156
21486
  },
21487
+ "system_prompt": {
21488
+ "type": "string",
21489
+ "description": "Default system prompt for agent chat when requests do not override it."
21490
+ },
21157
21491
  "execution_intents_enabled": {
21158
21492
  "type": "boolean",
21159
21493
  "description": "Whether Execution Intents (bindings and execute endpoint) are enabled for this agent"
@@ -22590,6 +22924,59 @@
22590
22924
  }
22591
22925
  }
22592
22926
  },
22927
+ "ConnectionSigningKeyPublic": {
22928
+ "type": "object",
22929
+ "properties": {
22930
+ "chain": {
22931
+ "type": "string"
22932
+ },
22933
+ "address": {
22934
+ "type": "string"
22935
+ },
22936
+ "public_key": {
22937
+ "type": "string"
22938
+ },
22939
+ "curve": {
22940
+ "type": "string"
22941
+ }
22942
+ }
22943
+ },
22944
+ "ConnectionSigningKeyListResponse": {
22945
+ "type": "object",
22946
+ "properties": {
22947
+ "agent_id": {
22948
+ "type": "string",
22949
+ "format": "uuid"
22950
+ },
22951
+ "keys": {
22952
+ "type": "array",
22953
+ "items": {
22954
+ "$ref": "#/components/schemas/ConnectionSigningKeyPublic"
22955
+ }
22956
+ }
22957
+ }
22958
+ },
22959
+ "ConnectionSigningKeyDetailResponse": {
22960
+ "type": "object",
22961
+ "properties": {
22962
+ "agent_id": {
22963
+ "type": "string",
22964
+ "format": "uuid"
22965
+ },
22966
+ "chain": {
22967
+ "type": "string"
22968
+ },
22969
+ "address": {
22970
+ "type": "string"
22971
+ },
22972
+ "public_key": {
22973
+ "type": "string"
22974
+ },
22975
+ "curve": {
22976
+ "type": "string"
22977
+ }
22978
+ }
22979
+ },
22593
22980
  "LeaseBankrKeyRequest": {
22594
22981
  "type": "object",
22595
22982
  "properties": {
@@ -23557,6 +23944,82 @@
23557
23944
  }
23558
23945
  }
23559
23946
  },
23947
+ "OnboardingStatus": {
23948
+ "type": "object",
23949
+ "required": [
23950
+ "has_vault",
23951
+ "has_agent",
23952
+ "has_policy",
23953
+ "has_sample_secret",
23954
+ "first_secret_read",
23955
+ "welcome_bundle_complete"
23956
+ ],
23957
+ "properties": {
23958
+ "has_vault": {
23959
+ "type": "boolean"
23960
+ },
23961
+ "has_agent": {
23962
+ "type": "boolean"
23963
+ },
23964
+ "has_policy": {
23965
+ "type": "boolean"
23966
+ },
23967
+ "has_sample_secret": {
23968
+ "type": "boolean"
23969
+ },
23970
+ "first_secret_read": {
23971
+ "type": "boolean"
23972
+ },
23973
+ "welcome_bundle_complete": {
23974
+ "type": "boolean"
23975
+ },
23976
+ "default_vault_id": {
23977
+ "type": "string",
23978
+ "format": "uuid",
23979
+ "nullable": true
23980
+ }
23981
+ }
23982
+ },
23983
+ "OnboardingProvisionRequest": {
23984
+ "type": "object",
23985
+ "properties": {
23986
+ "agent_name": {
23987
+ "type": "string"
23988
+ },
23989
+ "client": {
23990
+ "type": "string"
23991
+ }
23992
+ }
23993
+ },
23994
+ "OnboardingProvisionResponse": {
23995
+ "type": "object",
23996
+ "required": [
23997
+ "agent_id",
23998
+ "api_key",
23999
+ "vault_id",
24000
+ "mcp_stdio_config",
24001
+ "verify_prompt"
24002
+ ],
24003
+ "properties": {
24004
+ "agent_id": {
24005
+ "type": "string",
24006
+ "format": "uuid"
24007
+ },
24008
+ "api_key": {
24009
+ "type": "string"
24010
+ },
24011
+ "vault_id": {
24012
+ "type": "string",
24013
+ "format": "uuid"
24014
+ },
24015
+ "mcp_stdio_config": {
24016
+ "type": "object"
24017
+ },
24018
+ "verify_prompt": {
24019
+ "type": "string"
24020
+ }
24021
+ }
24022
+ },
23560
24023
  "AgentKeysVaultResponse": {
23561
24024
  "type": "object",
23562
24025
  "properties": {
@@ -25747,6 +26210,11 @@
25747
26210
  "format": "date-time",
25748
26211
  "nullable": true,
25749
26212
  "description": "Optional expiration time for the platform API key. Set to null to clear."
26213
+ },
26214
+ "siwe_domain": {
26215
+ "type": "string",
26216
+ "nullable": true,
26217
+ "description": "Hostname allowed in SIWE messages for wallet sign-in (EIP-4361)."
25750
26218
  }
25751
26219
  }
25752
26220
  },
@@ -25887,6 +26355,11 @@
25887
26355
  "nullable": true,
25888
26356
  "description": "When the platform API key was last rotated."
25889
26357
  },
26358
+ "siwe_domain": {
26359
+ "type": "string",
26360
+ "nullable": true,
26361
+ "description": "Hostname allowed in SIWE messages for wallet sign-in (EIP-4361)."
26362
+ },
25890
26363
  "created_at": {
25891
26364
  "type": "string",
25892
26365
  "format": "date-time"
@@ -25931,7 +26404,7 @@
25931
26404
  },
25932
26405
  "spec": {
25933
26406
  "type": "object",
25934
- "description": "Template specification defining vault, agents, policies, and signing keys to bootstrap.\nTop-level fields: `vault` (object with name, description), `agents` (array of agent specs\nwith name, description, shroud_enabled, intents, shroud_config), `policies` (array with\nvault_ref, principal_ref, paths, permissions, conditions), and `signing_keys` (array of\n`{ chain }` objects — supported chains: ethereum, bitcoin, solana, xrp, cardano, tron).\nWhen `signing_keys` is present, HSM-backed signing keys are auto-provisioned for the\nbootstrapped agent.\n"
26407
+ "description": "Template specification defining vault, agents, policies, and signing keys to bootstrap.\nTop-level fields: `vault` (object with name, description), `agents` (array of agent specs),\n`policies` (array with vault_ref, principal_ref, paths, permissions, conditions), and\n`signing_keys` (array of `{ chain }` objects — supported chains: ethereum, bitcoin, solana,\nxrp, cardano, tron). When `signing_keys` is present, HSM-backed signing keys are\nauto-provisioned for the bootstrapped agent.\n\nEach agent entry accepts Intents API and Execution Intents flags under any of these aliases\n(direct API field name, boolean shorthand, or `{ enabled: true }` object):\n- Intents API → `intents_api_enabled`, `intents: true`, or `intents: { enabled: true }`\n (maps to `agents.intents_api_enabled`)\n- Execution Intents → `execution_intents_enabled`, `execution: true`, or\n `execution: { enabled: true }` (maps to `agents.execution_intents_enabled`)\n\nOther agent fields: `name`, `description`, `shroud_enabled`, `shroud_config`, `system_prompt`,\n`environment`, `signing_keys`, `provision_eoa`, `memory`, `runtime`, `default_llm_provider`.\n"
25935
26408
  }
25936
26409
  }
25937
26410
  },
@@ -27256,6 +27729,11 @@
27256
27729
  "entitlement_status": {
27257
27730
  "type": "string"
27258
27731
  },
27732
+ "provisioned_tier": {
27733
+ "type": "string",
27734
+ "nullable": true,
27735
+ "description": "Billing tier granted to the end-user org when billing_model is platform_pays\n(from template plan at bootstrap). Null when not provisioned.\n"
27736
+ },
27259
27737
  "wallet_address": {
27260
27738
  "type": "string",
27261
27739
  "nullable": true
@@ -27664,6 +28142,84 @@
27664
28142
  }
27665
28143
  }
27666
28144
  },
28145
+ "PasskeyRegisterBeginResponse": {
28146
+ "type": "object",
28147
+ "properties": {
28148
+ "challenge": {
28149
+ "type": "string"
28150
+ },
28151
+ "rp_id": {
28152
+ "type": "string"
28153
+ },
28154
+ "rp_name": {
28155
+ "type": "string"
28156
+ },
28157
+ "user_id": {
28158
+ "type": "string"
28159
+ },
28160
+ "user_name": {
28161
+ "type": "string"
28162
+ },
28163
+ "user_display_name": {
28164
+ "type": "string"
28165
+ },
28166
+ "attestation": {
28167
+ "type": "string"
28168
+ },
28169
+ "authenticator_selection": {
28170
+ "type": "object"
28171
+ },
28172
+ "pub_key_cred_params": {
28173
+ "type": "array",
28174
+ "items": {
28175
+ "type": "object"
28176
+ }
28177
+ }
28178
+ }
28179
+ },
28180
+ "PasskeyRegisterCompleteRequest": {
28181
+ "type": "object",
28182
+ "required": [
28183
+ "credential_id",
28184
+ "attestation_object",
28185
+ "client_data_json"
28186
+ ],
28187
+ "properties": {
28188
+ "credential_id": {
28189
+ "type": "string"
28190
+ },
28191
+ "attestation_object": {
28192
+ "type": "string"
28193
+ },
28194
+ "client_data_json": {
28195
+ "type": "string"
28196
+ },
28197
+ "transports": {
28198
+ "type": "array",
28199
+ "items": {
28200
+ "type": "string"
28201
+ }
28202
+ },
28203
+ "name": {
28204
+ "type": "string"
28205
+ }
28206
+ }
28207
+ },
28208
+ "PasskeyRegisterCompleteResponse": {
28209
+ "type": "object",
28210
+ "properties": {
28211
+ "passkey_id": {
28212
+ "type": "string",
28213
+ "format": "uuid"
28214
+ },
28215
+ "credential_id": {
28216
+ "type": "string"
28217
+ },
28218
+ "name": {
28219
+ "type": "string"
28220
+ }
28221
+ }
28222
+ },
27667
28223
  "PasskeyTxAssertBeginRequest": {
27668
28224
  "type": "object",
27669
28225
  "required": [
@@ -29758,12 +30314,10 @@
29758
30314
  },
29759
30315
  "SendChatMessageRequest": {
29760
30316
  "type": "object",
29761
- "required": [
29762
- "message"
29763
- ],
29764
30317
  "properties": {
29765
30318
  "message": {
29766
- "type": "string"
30319
+ "type": "string",
30320
+ "description": "User message text. Optional when `messages` includes a user turn."
29767
30321
  },
29768
30322
  "conversation_id": {
29769
30323
  "type": "string",
@@ -29779,6 +30333,40 @@
29779
30333
  "type": "string"
29780
30334
  },
29781
30335
  "system_prompt": {
30336
+ "type": "string",
30337
+ "description": "Stored on new conversations when `conversation_id` is omitted."
30338
+ },
30339
+ "system": {
30340
+ "type": "string",
30341
+ "description": "Per-request system prompt alias (same precedence as `system_prompt_override`)."
30342
+ },
30343
+ "system_prompt_override": {
30344
+ "type": "string",
30345
+ "description": "Per-request override; highest precedence except inline `messages` system role."
30346
+ },
30347
+ "messages": {
30348
+ "type": "array",
30349
+ "description": "Optional OpenAI-shaped history. When set, used for LLM context instead of DB history.",
30350
+ "items": {
30351
+ "type": "object",
30352
+ "required": [
30353
+ "role",
30354
+ "content"
30355
+ ],
30356
+ "properties": {
30357
+ "role": {
30358
+ "type": "string"
30359
+ },
30360
+ "content": {
30361
+ "type": "string"
30362
+ }
30363
+ }
30364
+ }
30365
+ },
30366
+ "llm_api_key_vault_id": {
30367
+ "type": "string"
30368
+ },
30369
+ "llm_api_key_path": {
29782
30370
  "type": "string"
29783
30371
  }
29784
30372
  }
package/openapi.yaml CHANGED
@@ -4018,6 +4018,40 @@ paths:
4018
4018
  "404":
4019
4019
  description: Agent-keys vault not found
4020
4020
 
4021
+ /v1/org/onboarding/status:
4022
+ get:
4023
+ tags: [Organization]
4024
+ summary: Onboarding funnel status
4025
+ description: Returns welcome-bundle and MCP connection progress for the connect wizard.
4026
+ operationId: getOnboardingStatus
4027
+ responses:
4028
+ "200":
4029
+ description: Onboarding status
4030
+ content:
4031
+ application/json:
4032
+ schema:
4033
+ $ref: "#/components/schemas/OnboardingStatus"
4034
+
4035
+ /v1/onboarding/provision:
4036
+ post:
4037
+ tags: [Organization]
4038
+ summary: Provision MCP onboarding bundle
4039
+ description: Creates welcome vault + sample secret, MCP agent, and default ** policy. Returns one-time API key and stdio MCP config.
4040
+ operationId: provisionOnboarding
4041
+ requestBody:
4042
+ required: false
4043
+ content:
4044
+ application/json:
4045
+ schema:
4046
+ $ref: "#/components/schemas/OnboardingProvisionRequest"
4047
+ responses:
4048
+ "200":
4049
+ description: Provisioned resources
4050
+ content:
4051
+ application/json:
4052
+ schema:
4053
+ $ref: "#/components/schemas/OnboardingProvisionResponse"
4054
+
4021
4055
  /v1/org/status:
4022
4056
  get:
4023
4057
  tags: [Organization]
@@ -6641,9 +6675,13 @@ paths:
6641
6675
  content:
6642
6676
  application/json:
6643
6677
  schema:
6644
- type: array
6645
- items:
6646
- $ref: "#/components/schemas/PlatformConnectedUserResponse"
6678
+ type: object
6679
+ required: [users]
6680
+ properties:
6681
+ users:
6682
+ type: array
6683
+ items:
6684
+ $ref: "#/components/schemas/PlatformConnectedUserResponse"
6647
6685
 
6648
6686
  /v1/platform/connections/{connectionId}/bootstrap:
6649
6687
  post:
@@ -7574,7 +7612,81 @@ paths:
7574
7612
  "409":
7575
7613
  description: Already decided
7576
7614
 
7615
+ /v1/platform/connections/{connectionId}/signing-keys:
7616
+ get:
7617
+ tags: [Platform]
7618
+ summary: List signing keys for a connection agent
7619
+ description: |
7620
+ Returns public signing-key metadata (chain, address, public_key, curve) for
7621
+ agent(s) provisioned on the connection. Never includes private keys.
7622
+ When multiple agents exist, pass `agent_id` query param. plt_ auth only.
7623
+ operationId: listConnectionSigningKeys
7624
+ security:
7625
+ - BearerAuth: []
7626
+ parameters:
7627
+ - in: path
7628
+ name: connectionId
7629
+ required: true
7630
+ schema:
7631
+ type: string
7632
+ format: uuid
7633
+ - in: query
7634
+ name: agent_id
7635
+ required: false
7636
+ schema:
7637
+ type: string
7638
+ format: uuid
7639
+ responses:
7640
+ "200":
7641
+ description: Signing keys for the connection agent
7642
+ content:
7643
+ application/json:
7644
+ schema:
7645
+ $ref: "#/components/schemas/ConnectionSigningKeyListResponse"
7646
+ "400":
7647
+ description: Multiple agents — agent_id required
7648
+ "404":
7649
+ $ref: "#/components/responses/NotFound"
7650
+
7577
7651
  /v1/platform/connections/{connectionId}/signing-keys/{chain}:
7652
+ get:
7653
+ tags: [Platform]
7654
+ summary: Get a signing key for a connection agent by chain
7655
+ description: |
7656
+ Returns public signing-key metadata for one chain on a connection agent.
7657
+ Never includes private keys. plt_ auth only.
7658
+ operationId: getConnectionSigningKey
7659
+ security:
7660
+ - BearerAuth: []
7661
+ parameters:
7662
+ - in: path
7663
+ name: connectionId
7664
+ required: true
7665
+ schema:
7666
+ type: string
7667
+ format: uuid
7668
+ - in: path
7669
+ name: chain
7670
+ required: true
7671
+ schema:
7672
+ type: string
7673
+ - in: query
7674
+ name: agent_id
7675
+ required: false
7676
+ schema:
7677
+ type: string
7678
+ format: uuid
7679
+ responses:
7680
+ "200":
7681
+ description: Signing key metadata
7682
+ content:
7683
+ application/json:
7684
+ schema:
7685
+ $ref: "#/components/schemas/ConnectionSigningKeyDetailResponse"
7686
+ "400":
7687
+ description: Multiple agents — agent_id required
7688
+ "404":
7689
+ $ref: "#/components/responses/NotFound"
7578
7690
  delete:
7579
7691
  tags: [Platform]
7580
7692
  summary: Deactivate a signing key for a connection agent
@@ -7646,6 +7758,98 @@ paths:
7646
7758
  "404":
7647
7759
  $ref: "#/components/responses/NotFound"
7648
7760
 
7761
+ /v1/platform/connections/{connectionId}/runtimes/{runtimeId}:
7762
+ get:
7763
+ tags: [Platform]
7764
+ summary: Get a connection runtime (plt_ scoped)
7765
+ description: |
7766
+ Returns a runtime provisioned on this connection. Use instead of
7767
+ `GET /v1/runtimes/{id}` with a plt_ key (which resolves to the platform org).
7768
+ operationId: getConnectionRuntime
7769
+ security:
7770
+ - BearerAuth: []
7771
+ parameters:
7772
+ - in: path
7773
+ name: connectionId
7774
+ required: true
7775
+ schema:
7776
+ type: string
7777
+ format: uuid
7778
+ - in: path
7779
+ name: runtimeId
7780
+ required: true
7781
+ schema:
7782
+ type: string
7783
+ format: uuid
7784
+ responses:
7785
+ "200":
7786
+ description: Runtime details
7787
+ content:
7788
+ application/json:
7789
+ schema:
7790
+ $ref: "#/components/schemas/RuntimeResponse"
7791
+ "404":
7792
+ $ref: "#/components/responses/NotFound"
7793
+
7794
+ /v1/platform/connections/{connectionId}/passkeys/enroll/begin:
7795
+ post:
7796
+ tags: [Platform]
7797
+ summary: Begin passkey enrollment for a connected user
7798
+ description: |
7799
+ Starts WebAuthn registration for the end-user on this connection.
7800
+ Platform apps use this instead of `POST /v1/auth/passkeys/register/begin` (user JWT only).
7801
+ operationId: connectionPasskeyEnrollBegin
7802
+ security:
7803
+ - BearerAuth: []
7804
+ parameters:
7805
+ - in: path
7806
+ name: connectionId
7807
+ required: true
7808
+ schema:
7809
+ type: string
7810
+ format: uuid
7811
+ responses:
7812
+ "200":
7813
+ description: WebAuthn registration ceremony options
7814
+ content:
7815
+ application/json:
7816
+ schema:
7817
+ $ref: "#/components/schemas/PasskeyRegisterBeginResponse"
7818
+ "404":
7819
+ $ref: "#/components/responses/NotFound"
7820
+
7821
+ /v1/platform/connections/{connectionId}/passkeys/enroll/complete:
7822
+ post:
7823
+ tags: [Platform]
7824
+ summary: Complete passkey enrollment for a connected user
7825
+ operationId: connectionPasskeyEnrollComplete
7826
+ security:
7827
+ - BearerAuth: []
7828
+ parameters:
7829
+ - in: path
7830
+ name: connectionId
7831
+ required: true
7832
+ schema:
7833
+ type: string
7834
+ format: uuid
7835
+ requestBody:
7836
+ required: true
7837
+ content:
7838
+ application/json:
7839
+ schema:
7840
+ $ref: "#/components/schemas/PasskeyRegisterCompleteRequest"
7841
+ responses:
7842
+ "201":
7843
+ description: Passkey registered
7844
+ content:
7845
+ application/json:
7846
+ schema:
7847
+ $ref: "#/components/schemas/PasskeyRegisterCompleteResponse"
7848
+ "400":
7849
+ $ref: "#/components/responses/BadRequest"
7850
+ "404":
7851
+ $ref: "#/components/responses/NotFound"
7852
+
7649
7853
  /v1/platform/connections/{connectionId}/agents/{agentId}/chat:
7650
7854
  post:
7651
7855
  tags: [Platform]
@@ -7678,6 +7882,8 @@ paths:
7678
7882
  responses:
7679
7883
  "200":
7680
7884
  description: Message sent (JSON or SSE stream)
7885
+ "402":
7886
+ description: Payment required (LLM billing / inference allowance)
7681
7887
  "403":
7682
7888
  $ref: "#/components/responses/Forbidden"
7683
7889
  "404":
@@ -13218,6 +13424,9 @@ components:
13218
13424
  description: Enable Shroud LLM Proxy for this agent
13219
13425
  shroud_config:
13220
13426
  $ref: "#/components/schemas/ShroudConfig"
13427
+ system_prompt:
13428
+ type: string
13429
+ description: Default system prompt for agent chat when requests do not override it.
13221
13430
  execution_intents_enabled:
13222
13431
  type: boolean
13223
13432
  default: false
@@ -13421,6 +13630,10 @@ components:
13421
13630
  description: Enable/disable Shroud LLM Proxy
13422
13631
  shroud_config:
13423
13632
  $ref: "#/components/schemas/ShroudConfig"
13633
+ system_prompt:
13634
+ type: string
13635
+ nullable: true
13636
+ description: Default system prompt for agent chat (null clears).
13424
13637
  execution_intents_enabled:
13425
13638
  type: boolean
13426
13639
  description: Enable/disable Execution Intents for this agent
@@ -13691,6 +13904,9 @@ components:
13691
13904
  description: Whether this agent routes LLM traffic through the Shroud TEE proxy
13692
13905
  shroud_config:
13693
13906
  $ref: "#/components/schemas/ShroudConfig"
13907
+ system_prompt:
13908
+ type: string
13909
+ description: Default system prompt for agent chat when requests do not override it.
13694
13910
  execution_intents_enabled:
13695
13911
  type: boolean
13696
13912
  description: Whether Execution Intents (bindings and execute endpoint) are enabled for this agent
@@ -14705,6 +14921,44 @@ components:
14705
14921
  items:
14706
14922
  $ref: "#/components/schemas/SigningKeyResponse"
14707
14923
 
14924
+ ConnectionSigningKeyPublic:
14925
+ type: object
14926
+ properties:
14927
+ chain:
14928
+ type: string
14929
+ address:
14930
+ type: string
14931
+ public_key:
14932
+ type: string
14933
+ curve:
14934
+ type: string
14935
+
14936
+ ConnectionSigningKeyListResponse:
14937
+ type: object
14938
+ properties:
14939
+ agent_id:
14940
+ type: string
14941
+ format: uuid
14942
+ keys:
14943
+ type: array
14944
+ items:
14945
+ $ref: "#/components/schemas/ConnectionSigningKeyPublic"
14946
+
14947
+ ConnectionSigningKeyDetailResponse:
14948
+ type: object
14949
+ properties:
14950
+ agent_id:
14951
+ type: string
14952
+ format: uuid
14953
+ chain:
14954
+ type: string
14955
+ address:
14956
+ type: string
14957
+ public_key:
14958
+ type: string
14959
+ curve:
14960
+ type: string
14961
+
14708
14962
  # Bankr Dynamic Key Vending
14709
14963
  LeaseBankrKeyRequest:
14710
14964
  type: object
@@ -15404,6 +15658,58 @@ components:
15404
15658
  email:
15405
15659
  type: string
15406
15660
 
15661
+ OnboardingStatus:
15662
+ type: object
15663
+ required:
15664
+ - has_vault
15665
+ - has_agent
15666
+ - has_policy
15667
+ - has_sample_secret
15668
+ - first_secret_read
15669
+ - welcome_bundle_complete
15670
+ properties:
15671
+ has_vault:
15672
+ type: boolean
15673
+ has_agent:
15674
+ type: boolean
15675
+ has_policy:
15676
+ type: boolean
15677
+ has_sample_secret:
15678
+ type: boolean
15679
+ first_secret_read:
15680
+ type: boolean
15681
+ welcome_bundle_complete:
15682
+ type: boolean
15683
+ default_vault_id:
15684
+ type: string
15685
+ format: uuid
15686
+ nullable: true
15687
+
15688
+ OnboardingProvisionRequest:
15689
+ type: object
15690
+ properties:
15691
+ agent_name:
15692
+ type: string
15693
+ client:
15694
+ type: string
15695
+
15696
+ OnboardingProvisionResponse:
15697
+ type: object
15698
+ required: [agent_id, api_key, vault_id, mcp_stdio_config, verify_prompt]
15699
+ properties:
15700
+ agent_id:
15701
+ type: string
15702
+ format: uuid
15703
+ api_key:
15704
+ type: string
15705
+ vault_id:
15706
+ type: string
15707
+ format: uuid
15708
+ mcp_stdio_config:
15709
+ type: object
15710
+ verify_prompt:
15711
+ type: string
15712
+
15407
15713
  AgentKeysVaultResponse:
15408
15714
  type: object
15409
15715
  properties:
@@ -16903,6 +17209,10 @@ components:
16903
17209
  format: date-time
16904
17210
  nullable: true
16905
17211
  description: Optional expiration time for the platform API key. Set to null to clear.
17212
+ siwe_domain:
17213
+ type: string
17214
+ nullable: true
17215
+ description: Hostname allowed in SIWE messages for wallet sign-in (EIP-4361).
16906
17216
 
16907
17217
  PlatformAppDeleteResponse:
16908
17218
  type: object
@@ -16999,6 +17309,10 @@ components:
16999
17309
  format: date-time
17000
17310
  nullable: true
17001
17311
  description: When the platform API key was last rotated.
17312
+ siwe_domain:
17313
+ type: string
17314
+ nullable: true
17315
+ description: Hostname allowed in SIWE messages for wallet sign-in (EIP-4361).
17002
17316
  created_at:
17003
17317
  type: string
17004
17318
  format: date-time
@@ -17028,12 +17342,21 @@ components:
17028
17342
  type: object
17029
17343
  description: |
17030
17344
  Template specification defining vault, agents, policies, and signing keys to bootstrap.
17031
- Top-level fields: `vault` (object with name, description), `agents` (array of agent specs
17032
- with name, description, shroud_enabled, intents, shroud_config), `policies` (array with
17033
- vault_ref, principal_ref, paths, permissions, conditions), and `signing_keys` (array of
17034
- `{ chain }` objects supported chains: ethereum, bitcoin, solana, xrp, cardano, tron).
17035
- When `signing_keys` is present, HSM-backed signing keys are auto-provisioned for the
17036
- bootstrapped agent.
17345
+ Top-level fields: `vault` (object with name, description), `agents` (array of agent specs),
17346
+ `policies` (array with vault_ref, principal_ref, paths, permissions, conditions), and
17347
+ `signing_keys` (array of `{ chain }` objects — supported chains: ethereum, bitcoin, solana,
17348
+ xrp, cardano, tron). When `signing_keys` is present, HSM-backed signing keys are
17349
+ auto-provisioned for the bootstrapped agent.
17350
+
17351
+ Each agent entry accepts Intents API and Execution Intents flags under any of these aliases
17352
+ (direct API field name, boolean shorthand, or `{ enabled: true }` object):
17353
+ - Intents API → `intents_api_enabled`, `intents: true`, or `intents: { enabled: true }`
17354
+ (maps to `agents.intents_api_enabled`)
17355
+ - Execution Intents → `execution_intents_enabled`, `execution: true`, or
17356
+ `execution: { enabled: true }` (maps to `agents.execution_intents_enabled`)
17357
+
17358
+ Other agent fields: `name`, `description`, `shroud_enabled`, `shroud_config`, `system_prompt`,
17359
+ `environment`, `signing_keys`, `provision_eoa`, `memory`, `runtime`, `default_llm_provider`.
17037
17360
 
17038
17361
  PlatformTemplateResponse:
17039
17362
  type: object
@@ -17947,6 +18270,12 @@ components:
17947
18270
  type: string
17948
18271
  entitlement_status:
17949
18272
  type: string
18273
+ provisioned_tier:
18274
+ type: string
18275
+ nullable: true
18276
+ description: |
18277
+ Billing tier granted to the end-user org when billing_model is platform_pays
18278
+ (from template plan at bootstrap). Null when not provisioned.
17950
18279
  wallet_address:
17951
18280
  type: string
17952
18281
  nullable: true
@@ -18210,6 +18539,58 @@ components:
18210
18539
  minimum: 0
18211
18540
  description: Number of WebAuthn passkeys registered for the calling user.
18212
18541
 
18542
+ PasskeyRegisterBeginResponse:
18543
+ type: object
18544
+ properties:
18545
+ challenge:
18546
+ type: string
18547
+ rp_id:
18548
+ type: string
18549
+ rp_name:
18550
+ type: string
18551
+ user_id:
18552
+ type: string
18553
+ user_name:
18554
+ type: string
18555
+ user_display_name:
18556
+ type: string
18557
+ attestation:
18558
+ type: string
18559
+ authenticator_selection:
18560
+ type: object
18561
+ pub_key_cred_params:
18562
+ type: array
18563
+ items:
18564
+ type: object
18565
+
18566
+ PasskeyRegisterCompleteRequest:
18567
+ type: object
18568
+ required: [credential_id, attestation_object, client_data_json]
18569
+ properties:
18570
+ credential_id:
18571
+ type: string
18572
+ attestation_object:
18573
+ type: string
18574
+ client_data_json:
18575
+ type: string
18576
+ transports:
18577
+ type: array
18578
+ items:
18579
+ type: string
18580
+ name:
18581
+ type: string
18582
+
18583
+ PasskeyRegisterCompleteResponse:
18584
+ type: object
18585
+ properties:
18586
+ passkey_id:
18587
+ type: string
18588
+ format: uuid
18589
+ credential_id:
18590
+ type: string
18591
+ name:
18592
+ type: string
18593
+
18213
18594
  PasskeyTxAssertBeginRequest:
18214
18595
  type: object
18215
18596
  required: [tx_digest]
@@ -19558,10 +19939,10 @@ components:
19558
19939
 
19559
19940
  SendChatMessageRequest:
19560
19941
  type: object
19561
- required: [message]
19562
19942
  properties:
19563
19943
  message:
19564
19944
  type: string
19945
+ description: User message text. Optional when `messages` includes a user turn.
19565
19946
  conversation_id:
19566
19947
  type: string
19567
19948
  format: uuid
@@ -19573,6 +19954,28 @@ components:
19573
19954
  type: string
19574
19955
  system_prompt:
19575
19956
  type: string
19957
+ description: Stored on new conversations when `conversation_id` is omitted.
19958
+ system:
19959
+ type: string
19960
+ description: Per-request system prompt alias (same precedence as `system_prompt_override`).
19961
+ system_prompt_override:
19962
+ type: string
19963
+ description: Per-request override; highest precedence except inline `messages` system role.
19964
+ messages:
19965
+ type: array
19966
+ description: Optional OpenAI-shaped history. When set, used for LLM context instead of DB history.
19967
+ items:
19968
+ type: object
19969
+ required: [role, content]
19970
+ properties:
19971
+ role:
19972
+ type: string
19973
+ content:
19974
+ type: string
19975
+ llm_api_key_vault_id:
19976
+ type: string
19977
+ llm_api_key_path:
19978
+ type: string
19576
19979
 
19577
19980
  ChatMessageResponse:
19578
19981
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1claw/openapi-spec",
3
- "version": "0.58.2",
3
+ "version": "0.59.2",
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": {